refactor(schema): replace deprecated .merge() with .extend() and add council-member override
Replace deprecated Zod .merge(z.object({...})) with .extend({...}) for AthenaOverrideConfigSchema. Add council-member to AgentOverridesSchema to match OverridableAgentNameSchema.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
d30d80abbd
commit
7b6d3206ce
@ -56,11 +56,9 @@ export const AgentOverrideConfigSchema = z.object({
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
|
|
||||||
export const AthenaOverrideConfigSchema = AgentOverrideConfigSchema.merge(
|
export const AthenaOverrideConfigSchema = AgentOverrideConfigSchema.extend({
|
||||||
z.object({
|
council: AthenaConfigSchema.shape.council.optional(),
|
||||||
council: AthenaConfigSchema.shape.council.optional(),
|
})
|
||||||
})
|
|
||||||
)
|
|
||||||
|
|
||||||
export const AgentOverridesSchema = z.object({
|
export const AgentOverridesSchema = z.object({
|
||||||
build: AgentOverrideConfigSchema.optional(),
|
build: AgentOverrideConfigSchema.optional(),
|
||||||
@ -77,6 +75,7 @@ export const AgentOverridesSchema = z.object({
|
|||||||
explore: AgentOverrideConfigSchema.optional(),
|
explore: AgentOverrideConfigSchema.optional(),
|
||||||
"multimodal-looker": AgentOverrideConfigSchema.optional(),
|
"multimodal-looker": AgentOverrideConfigSchema.optional(),
|
||||||
atlas: AgentOverrideConfigSchema.optional(),
|
atlas: AgentOverrideConfigSchema.optional(),
|
||||||
|
"council-member": AgentOverrideConfigSchema.optional(),
|
||||||
athena: AthenaOverrideConfigSchema.optional(),
|
athena: AthenaOverrideConfigSchema.optional(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user