v0.1.3: Field-test fixes, input validation, tool-description improvements
Field-test fixes, input validation, tool-description improvements
Bug fixes from a full field-test pass plus Zod schema hardening.
Fixed:
- not_found errors from the service layer now propagate via ctx.fail() in all 4 lookup tools, giving callers consistent data.reason
- invalid_section guard extended to all section_index < 1 (including negatives)
- wikipedia-service.ts getSummary now throws notFound (not serviceUnavailable) on empty pages key
- limit and radius_meters in wikipedia_search and wikipedia_search_nearby reject negative, zero, and float values at parse time
Changed:
- Tool descriptions condensed and clarified across all 6 tools
- title field examples added to input/output schemas
- pageid output descriptions note cross-tool usability
- Service simplification: heading extraction to filter+map, dropped redundant await on withRetry, tightened signal spread
53 tests pass; bun run devcheck clean.