Commit Graph

4 Commits

Author SHA1 Message Date
Levi Neely ec092055fe gitignore 2026-04-24 18:30:59 +02:00
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
Levi Neely ac79ebf733 initial httpgw: HTTP gateway for 9P file operations 2026-04-24 17:45:00 +02:00
Levi Neely 1d8e6c8df4 initial commit 2026-04-24 17:19:30 +02:00