Skip to content

feat(ai): add partial JSON parser - #44792

Merged
rekram1-node merged 1 commit into
v2from
partial-json-parser
Aug 24, 2026
Merged

feat(ai): add partial JSON parser#44792
rekram1-node merged 1 commit into
v2from
partial-json-parser

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • add an attributed internal partial JSON parser
  • support configurable partial strings, numbers, collections, and literals
  • use Effect Schema for strict and repaired JSON decoding
  • cover complete, partial, malformed, and empty inputs

Verification

  • bun test test/partial-json.test.ts
  • bun typecheck
  • bun run build
  • bunx prettier --check src/protocols/utils/partial-json.ts src/protocols/utils/partial-json-options.ts test/partial-json.test.ts

@rekram1-node
rekram1-node merged commit a9042a5 into v2 Aug 24, 2026
7 checks passed
@rekram1-node
rekram1-node deleted the partial-json-parser branch August 24, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant