v0.1.8: invalid_section contract fix for out-of-range section_index
invalid_section contract fix for out-of-range section_index
Catches ValidationError (-32007) from getArticleSection() for the nosuchsection
API code and re-throws via ctx.fail('invalid_section', ...), populating data.reason
for structured agent routing. Previously only NotFound (-32001) was intercepted.
Fixed:
- wikipedia_get_article: out-of-range section_index now yields data.reason === 'invalid_section' (#15)
114 tests pass; bun run devcheck clean.