v0.1.12: Error classification fixes and typed error contracts
Error classification fixes and typed error contracts
Fix three error-classification bugs where error codes and data.reason
were not reaching clients as declared in the tool/resource contracts.
Fixed:
- earthquake-feed resource: invalid tier/window params now throw validationError (-32007) instead of notFound (-32001) (#9)
- earthquake_search tool: source_unavailable contract wired via ctx.fail(); data.reason populated on ServiceUnavailable (#10)
- earthquake_search tool: query_too_broad contract wired via ctx.fail(); plain Error data.reason no longer silently discarded (#8)
- earthquake_count tool: source_unavailable contract wired via ctx.fail(); data.reason populated on ServiceUnavailable (#10)
186 tests pass; bun run devcheck clean.