oyi77
adf77053c5
fix(cliproxyapi): address PR #916 review — auth on all version-manager routes, Docker healthcheck
...
- Add requireManagementAuth to all 6 version-manager API routes
(status, check-update, install, start, stop, restart)
- Parameterize Docker healthcheck port via CLIPROXYAPI_PORT env var
- Improve error message to be actionable when binary is missing
2026-04-02 15:10:42 +07:00
oyi77
2e2afa616d
feat(cliproxyapi): add version manager service, API routes, CLI Tools UI & Docker
...
Part 3 of CLIProxyAPI integration (#902 ). Depends on PR1 + PR2.
- releaseChecker.ts: GitHub releases API with 5min cache
- binaryManager.ts: download, SHA256 verify, install, symlink, rollback
- processManager.ts: spawn, graceful stop (SIGTERM→SIGKILL with interval cleanup), restart
- healthMonitor.ts: periodic /v1/models health checks
- index.ts: orchestrator (install/start/stop/restart/checkUpdates/pin/rollback)
- 6 API routes under /api/version-manager/ with Zod validation
- CliproxyapiToolCard: CLI Tools page card
- Docker: cliproxyapi profile with sidecar service + healthcheck
- 78 unit tests across 5 test files
2026-04-02 13:37:43 +07:00