v0.1.6: Service alert + block schedule tools; error-contract fixes
Service alert + block schedule tools; error-contract fixes
Two new tools and two bug fixes across the service layer.
Added:
- onebusaway_get_alert — full service alert detail by situation ID: summary, description, reason, affected stops/routes, consequence, active time windows (#10)
- onebusaway_get_block — full-day vehicle block schedule by block ID; all trips in order with GTFS stop times (#10)
Fixed:
- classifyError() re-throws McpError as-is — previously re-wrapped and dropped data.reason (#12)
- data.reason now populated on all NotFound errors across 8 service methods (#12)
- Null-response guards (resp?.data, resp?.data?.entry) so invalid IDs throw notFound instead of TypeError (#12)
- onebusaway_list_routes_for_agency emits ctx.enrich.notice() on empty result, consistent with other collection tools (#14)
113 tests pass; bun run devcheck clean.