Commit Graph

11 Commits

Author SHA1 Message Date
Levi Neely 2d8b404338 httpgw: remove 9P backend, D-Bus only
Drop ninep.go and all 9P-related flags/imports. The gateway now
exclusively uses D-Bus calls to org.ollie.SessionManager.

The 9P transport was unreliable for HTTP gateway use; D-Bus is
synchronous and well-suited for request/response translation.
2026-07-18 21:36:16 +02:00
Levi Neely 250af7967f update httpgw: add dbus and ninep support 2026-07-06 18:22:38 +02:00
Levi Neely 11b542c217 httpgw: return /models as [{backend, models}] JSON 2026-05-21 18:49:38 +02:00
Levi Neely 3ed5e8229f httpgw: inject state into cfg response for web UI stop button 2026-05-20 14:16:10 +02:00
Levi Neely 292448c05d add /open endpoint: open files with EDITOR or xdg-open 2026-04-26 15:54:12 +02:00
Levi Neely ed0cce92f1 add PUT method for raw file writes, open a/m/t for writes 2026-04-26 15:22:59 +02:00
Levi Neely 4338acd2df add start, fgstart, stop, status subcommands
Modelled after 9p/main.go. Pid file in 9P namespace dir; running check
via TCP dial to -listen address. No-subcommand path preserved for
backwards compatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-26 12:35:38 +02:00
Levi Neely 14bcbf0646 open read-only access to /a, /m, /t, /sk; preserve blank lines
- Allow GET/HEAD on agent, memory, tool, skill paths
- Preserve empty lines in multi-line file content
2026-04-24 21:13:41 +02:00
Levi Neely 830849e193 fix chat streaming and prompt writes
- Return chat file as text/plain to preserve line ordering
- Fix handleWrite: single-key JSON writes raw value, not key=value
- Fixes broken chat display and 'prompt=' corruption in chat log
2026-04-24 20:10:50 +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