mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 05:10:58 +08:00
chore: generate
This commit is contained in:
@@ -104,9 +104,7 @@ const normalize = (agent: z.infer<typeof Info>) => {
|
||||
return { ...agent, options, permission, steps: agent.steps ?? agent.maxSteps }
|
||||
}
|
||||
|
||||
export const Info = zod(AgentSchema)
|
||||
.transform(normalize)
|
||||
.meta({ ref: "AgentConfig" }) as unknown as z.ZodType<
|
||||
export const Info = zod(AgentSchema).transform(normalize).meta({ ref: "AgentConfig" }) as unknown as z.ZodType<
|
||||
Omit<z.infer<ReturnType<typeof zod<typeof AgentSchema>>>, "options" | "permission" | "steps"> & {
|
||||
options?: Record<string, unknown>
|
||||
permission?: ConfigPermission.Info
|
||||
|
||||
Reference in New Issue
Block a user