fix: add multimodal-looker to Zod config schema (#36)

The agent was missing from AgentNameSchema and AgentOverridesSchema,
causing model overrides in oh-my-opencode.json to be silently dropped.

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Nguyen Quang Huy
2025-12-13 17:47:35 +07:00
committed by GitHub
parent 40c1e62a30
commit ab522aff1a
2 changed files with 6 additions and 2 deletions

View File

@@ -27,7 +27,8 @@
"librarian", "librarian",
"explore", "explore",
"frontend-ui-ux-engineer", "frontend-ui-ux-engineer",
"document-writer" "document-writer",
"multimodal-looker"
] ]
} }
}, },
@@ -63,7 +64,8 @@
"librarian", "librarian",
"explore", "explore",
"frontend-ui-ux-engineer", "frontend-ui-ux-engineer",
"document-writer" "document-writer",
"multimodal-looker"
] ]
}, },
"additionalProperties": { "additionalProperties": {

View File

@@ -22,6 +22,7 @@ export const AgentNameSchema = z.enum([
"explore", "explore",
"frontend-ui-ux-engineer", "frontend-ui-ux-engineer",
"document-writer", "document-writer",
"multimodal-looker",
]) ])
export const HookNameSchema = z.enum([ export const HookNameSchema = z.enum([
@@ -65,6 +66,7 @@ export const AgentOverridesSchema = z
explore: AgentOverrideConfigSchema.optional(), explore: AgentOverrideConfigSchema.optional(),
"frontend-ui-ux-engineer": AgentOverrideConfigSchema.optional(), "frontend-ui-ux-engineer": AgentOverrideConfigSchema.optional(),
"document-writer": AgentOverrideConfigSchema.optional(), "document-writer": AgentOverrideConfigSchema.optional(),
"multimodal-looker": AgentOverrideConfigSchema.optional(),
}) })
.partial() .partial()