chore: fix lint/format

This commit is contained in:
Peter Steinberger
2026-01-20 13:52:59 +00:00
parent a81989048d
commit d69f246ba7
11 changed files with 25 additions and 43 deletions

View File

@@ -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();
});
});

View File

@@ -258,9 +258,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
applyCompactionDefaults(
applyContextPruningDefaults(
applyAgentDefaults(
applySessionDefaults(
applyLoggingDefaults(applyMessageDefaults(validated.config)),
),
applySessionDefaults(applyLoggingDefaults(applyMessageDefaults(validated.config))),
),
),
),

View File

@@ -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,

View File

@@ -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(),