v0.1.7: Bug fixes, ValidationError codes, code simplification
Bug fixes, ValidationError codes, code simplification
Fixes a bug where external-id and url statement data types were collapsed to { type: 'string' }, losing the type discriminant in the StatementValue union. Corrects error codes from InvalidParams to ValidationError for caller-supplied bad input. Simplifies REST and SPARQL service internals.
Fixed:
- normalizeStatementValue — external-id and url now map to their own StatementValue union members instead of collapsing to { type: 'string' }
- Error codes — invalid_id, invalid_ids, not_an_item, invalid_property, parse_error changed from InvalidParams to ValidationError
Changed:
- Code simplification — isHtmlResponse helper, Object.fromEntries for label maps, chained SPARQL error extraction, single-regex SERVICE injection, extractQid helper, Map-based dedup
- mcp-ts-core ^0.9.7 → ^0.9.9
55 tests pass; bun run devcheck clean.