fetch_ml/cmd/api-server
Jeremie Fraeys cd5640ebd2 Slim and secure: move scripts, clean configs, remove secrets
- Move ci-test.sh and setup.sh to scripts/
- Trim docs/src/zig-cli.md to current structure
- Replace hardcoded secrets with placeholders in configs
- Update .gitignore to block .env*, secrets/, keys, build artifacts
- Slim README.md to reflect current CLI/TUI split
- Add cleanup trap to ci-test.sh
- Ensure no secrets are committed
2025-12-07 13:57:51 -05:00
..
main.go Slim and secure: move scripts, clean configs, remove secrets 2025-12-07 13:57:51 -05:00
README.md feat: implement Go backend with comprehensive API and internal packages 2025-12-04 16:53:53 -05:00

API Server

WebSocket API server for the ML CLI tool...

Usage

./bin/api-server --config configs/config-dev.yaml --listen :9100

Endpoints

  • GET /health - Health check
  • WS /ws - WebSocket endpoint for CLI communication

Binary Protocol

See CLI README for protocol details.

Configuration

Uses the same configuration file as the worker. Experiment base path is read from base_path configuration key.

Example

# Start API server
./bin/api-server --listen :9100

# In another terminal, test with CLI
./cli/zig-out/bin/ml status