Go to file
Levi Neely c4750dcb64 httpgw: JSON API with structured parsing and consumer-facing endpoint filtering
- All responses use application/json; errors use {"error": "..."}
- File reads parse content by format: key=value → object, tab-separated → arrays, newline list → []string, single value → {name: value}
- /s/idx parsed into typed IdxEntry structs (id, state, cwd, backend, model)
- POST for all writes (actions/updates); PUT removed
- /s/new is POST-only (session creation)
- /s/{id}/cfg is POST (partial update)
- /s/{id}/chat is read-only
- Internal paths blocked: /, /a, /p, /m, /t, /sk, /help, /tr, /u, /x, /tmp
- Per-file blocked: systemprompt, statewait
- /s returns array of session IDs only
- Embedded OpenAPI 3.0 spec at /openapi.json
- OPTIONS handler with accurate method descriptions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 18:29:37 +02:00
go.mod initial httpgw: HTTP gateway for 9P file operations 2026-04-24 17:45:00 +02:00
go.sum initial httpgw: HTTP gateway for 9P file operations 2026-04-24 17:45:00 +02:00
main.go httpgw: JSON API with structured parsing and consumer-facing endpoint filtering 2026-04-24 18:29:37 +02:00
mkfile initial httpgw: HTTP gateway for 9P file operations 2026-04-24 17:45:00 +02:00
openapi.json httpgw: JSON API with structured parsing and consumer-facing endpoint filtering 2026-04-24 18:29:37 +02:00