singularity-forge/src/resources/extensions/claude-code-cli
Tom Boucher 2f3ffbfc10 fix: repair YAML bullet lists in malformed tool-call JSON (#3090)
* fix: repair YAML bullet lists in malformed tool-call JSON (#2660)

When LLMs copy YAML template formatting into tool-call arguments, they
produce `"key": - item` instead of `"key": ["item"]`, causing JSON parse
errors that block milestone completion. Add a repairToolJson() utility
that detects and converts YAML-style bullet lists into JSON arrays before
parsing. Integrated into both the PartialMessageBuilder (claude-code-cli)
and the anthropic-shared streaming provider, with fallback in
parseStreamingJson for all other providers.

Closes #2660

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use .js import extension in repair-tool-json test

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 14:37:09 -06:00
..
tests fix: repair YAML bullet lists in malformed tool-call JSON (#3090) 2026-03-30 14:37:09 -06:00
index.ts feat(provider): add Claude Code CLI provider extension 2026-03-25 12:07:08 -06:00
models.ts fix(claude-code-cli): resolve SDK executable path and update model IDs 2026-03-25 12:22:40 -06:00
package.json feat(provider): add Claude Code CLI provider extension 2026-03-25 12:07:08 -06:00
partial-builder.ts fix: repair YAML bullet lists in malformed tool-call JSON (#3090) 2026-03-30 14:37:09 -06:00
readiness.ts feat(provider): add Claude Code CLI provider extension 2026-03-25 12:07:08 -06:00
sdk-types.ts feat(provider): add Claude Code CLI provider extension 2026-03-25 12:07:08 -06:00
stream-adapter.ts fix: make claude-code provider stateful with full context and sidechain events (#2859) (#3254) 2026-03-30 13:52:14 -06:00