cloudaxe-opencode/packages/opencode/test
Kyle Mistele 32ef11da1f feat: add structured output (JSON schema) support
Add outputFormat option to session.prompt() for requesting structured JSON
output. When type is 'json_schema', injects a StructuredOutput tool that
validates model output against the provided schema.

- Add OutputFormat schema types (text, json_schema) to message-v2.ts
- Add structured_output field to AssistantMessage
- Add StructuredOutputError for validation failures
- Implement createStructuredOutputTool helper in prompt.ts
- Integrate structured output into agent loop with retry support
- Regenerate OpenAPI spec with new types
- Add unit tests for schema validation
2026-01-12 20:09:51 -08:00
..
agent core: add verification that at least 1 primary agent is enabled, add regression tests (#5881) 2025-12-20 21:36:22 -06:00
cli fix: github install cmd if repo has . in it 2025-12-16 11:19:18 -06:00
config core: add verification that at least 1 primary agent is enabled, add regression tests (#5881) 2025-12-20 21:36:22 -06:00
file ignore: improve file ignore performance and cross-platform support 2025-10-09 15:54:01 -04:00
fixture ci 2025-12-09 19:53:50 -05:00
ide chore: format code 2025-11-08 01:59:02 +00:00
lsp fix(lsp): handle optional requests to avoid MethodNotFound (-32601) with MATLAB Language Server (#4007) 2025-11-08 16:31:39 -06:00
mcp core: add test to prevent MCP headers regression when OAuth is enabled 2025-12-09 12:06:40 -06:00
patch big format 2025-11-06 13:03:12 -05:00
project fix tests 2025-12-09 16:03:33 -05:00
provider fix: add transform case for gemini if mcp tool has missing array items (#5846) 2025-12-20 11:41:52 -06:00
session feat: add structured output (JSON schema) support 2026-01-12 20:09:51 -08:00
skill feat: add native skill tool with permission system (#5930) 2025-12-22 18:24:06 -05:00
snapshot core: fix project event emission to include updated worktree data 2025-12-09 15:41:38 -05:00
tool fix: handle Windows CRLF line endings in grep tool (#5948) 2025-12-22 22:26:15 -06:00
util chore: format code 2025-11-08 01:59:02 +00:00
bun.test.ts ci: format 2025-09-09 23:44:04 -04:00
keybind.test.ts fix super modifier parsing 2025-12-11 19:20:23 +01:00
preload.ts test: fixture cleanup 2025-12-19 17:00:23 -06:00