chore: fix lint/format
This commit is contained in:
@@ -309,9 +309,7 @@ describe("config identity defaults", () => {
|
||||
expect(cfg.messages?.groupChat?.mentionPatterns).toBeUndefined();
|
||||
expect(cfg.agents?.list).toBeUndefined();
|
||||
expect(cfg.agents?.defaults?.maxConcurrent).toBe(DEFAULT_AGENT_MAX_CONCURRENT);
|
||||
expect(cfg.agents?.defaults?.subagents?.maxConcurrent).toBe(
|
||||
DEFAULT_SUBAGENT_MAX_CONCURRENT,
|
||||
);
|
||||
expect(cfg.agents?.defaults?.subagents?.maxConcurrent).toBe(DEFAULT_SUBAGENT_MAX_CONCURRENT);
|
||||
expect(cfg.session).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -258,9 +258,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
applyCompactionDefaults(
|
||||
applyContextPruningDefaults(
|
||||
applyAgentDefaults(
|
||||
applySessionDefaults(
|
||||
applyLoggingDefaults(applyMessageDefaults(validated.config)),
|
||||
),
|
||||
applySessionDefaults(applyLoggingDefaults(applyMessageDefaults(validated.config))),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import type { ClawdbotConfig } from "./config.js";
|
||||
import { getChatChannelMeta, listChatChannels, normalizeChatChannelId } from "../channels/registry.js";
|
||||
import {
|
||||
getChatChannelMeta,
|
||||
listChatChannels,
|
||||
normalizeChatChannelId,
|
||||
} from "../channels/registry.js";
|
||||
import {
|
||||
getChannelPluginCatalogEntry,
|
||||
listChannelPluginCatalogEntries,
|
||||
|
||||
@@ -50,12 +50,7 @@ export const ModelProviderSchema = z
|
||||
baseUrl: z.string().min(1),
|
||||
apiKey: z.string().optional(),
|
||||
auth: z
|
||||
.union([
|
||||
z.literal("api-key"),
|
||||
z.literal("aws-sdk"),
|
||||
z.literal("oauth"),
|
||||
z.literal("token"),
|
||||
])
|
||||
.union([z.literal("api-key"), z.literal("aws-sdk"), z.literal("oauth"), z.literal("token")])
|
||||
.optional(),
|
||||
api: ModelApiSchema.optional(),
|
||||
headers: z.record(z.string(), z.string()).optional(),
|
||||
|
||||
Reference in New Issue
Block a user