feat(http-api): Phase 2 — CLI remote access + bearer token auth #137

Merged
xiaomo merged 1 commits from feat/133-phase2-cli-remote into main 2026-04-25 06:37:33 +00:00

1 Commits

Author SHA1 Message Date
xingyue 203cd8d3c9 feat(http-api): Phase 2 — CLI remote access + bearer token auth
- Bearer token auth middleware with timingSafeEqual
- Enforce api.token when host is non-loopback (security)
- api.host config option (default 127.0.0.1)
- HttpTransport implementing DaemonTransport interface
- CLI --host and --api-token global flags for remote access
- Request body size limit (1MB, 413 on overflow)
- Deduplicate type guards to @uncaged/nerve-core
- 322 tests passing

Refs #133
2026-04-25 14:25:36 +08:00