refactor(config): drop agent.provider

This commit is contained in:
Peter Steinberger
2025-12-26 00:43:44 +01:00
parent 8b815bce94
commit 1ef888ca23
14 changed files with 98 additions and 61 deletions

View File

@@ -306,8 +306,7 @@ export type ClawdisConfig = {
models?: ModelsConfig;
agent?: {
/** Provider id, e.g. "anthropic" or "openai" (pi-ai catalog). */
provider?: string;
/** Model id within provider, e.g. "claude-opus-4-5". */
/** Model id (provider/model), e.g. "anthropic/claude-opus-4-5". */
model?: string;
/** Agent working directory (preferred). Used as the default cwd for agent runs. */
workspace?: string;
@@ -565,7 +564,6 @@ const ClawdisSchema = z.object({
models: ModelsConfigSchema,
agent: z
.object({
provider: z.string().optional(),
model: z.string().optional(),
workspace: z.string().optional(),
allowedModels: z.array(z.string()).optional(),