v1.3.2 — Serve API JSON errors
v1.3.2 — Serve API JSON errors
Bug Fixes
All serve API error responses now return JSON:
- Unknown node: 404 +
{"error":{"type":"not_found",...}} - Missing/empty
qparam: 400 +{"error":{"type":"invalid_argument",...}} - Wrong HTTP method: 405 +
{"error":{"type":"method_not_allowed",...}} - Empty graph: 503 +
{"error":{"type":"graph_empty",...}} - Internal errors: 500 +
{"error":{"type":"internal_error",...}}
Added writeJSONError helper for consistent JSON error responses across all API handlers.
Smoke Tests Passed
- 19 regression queries — all pass
- 10 serve API edge cases (404, 400, 405, 503, CORS, long queries) — all return JSON
- 6 recall/search tests (weights, tag-only, empty, limit) — all pass
- 6 demo/import/export tests — all pass
- 6 scoring tests (numbers, versions, ports, mixed case, all caps) — all pass
- Dogfooding: 3/3 correct skill matches (CRM tracking, social media publishing, changelog HTML)
Download
Single static binary — no dependencies, no runtime, no Docker.