feat(core): bridge GET /config through experimental HttpApi (#23712)

This commit is contained in:
Kit Langton
2026-04-21 12:05:23 -04:00
committed by GitHub
parent 5f6b99b45f
commit 58f44430d7
8 changed files with 56 additions and 34 deletions
+2 -1
View File
@@ -101,7 +101,8 @@ const normalize = (agent: z.infer<typeof Info>) => {
}
globalThis.Object.assign(permission, agent.permission)
return { ...agent, options, permission, steps: agent.steps ?? agent.maxSteps }
const steps = agent.steps ?? agent.maxSteps
return { ...agent, options, permission, ...(steps !== undefined ? { steps } : {}) }
}
export const Info = zod(AgentSchema).transform(normalize).meta({ ref: "AgentConfig" }) as unknown as z.ZodType<