chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-14 16:42:18 +00:00
parent 22de34c4de
commit 756488d534
5 changed files with 80 additions and 45 deletions

View File

@@ -111,9 +111,11 @@ describe("tool.registry", () => {
const agent = yield* Agent.Service
const build = yield* agent.get("build")
if (!build) throw new Error("build agent not found")
const task = (
yield* registry.tools({ providerID: ProviderID.opencode, modelID: ModelID.make("test"), agent: build })
).find((tool) => tool.id === "task")
const task = (yield* registry.tools({
providerID: ProviderID.opencode,
modelID: ModelID.make("test"),
agent: build,
})).find((tool) => tool.id === "task")
expect(task?.jsonSchema).toBeDefined()
expect((task?.jsonSchema?.properties as Record<string, unknown> | undefined)?.background).toBeUndefined()