- Go module with chi router, sqlite3, uuid deps
- Directory structure per spec
- SQLite store with embedded migrations
- Core types: Message, Attachment, Command, Contact, Channel
- REST API:
- GET /health, GET /ready (no auth)
- POST /oauth/token (client_credentials grant)
- GET /api/v1/messages (list with filters)
- GET /api/v1/messages/:id
- POST /api/v1/messages (stub, creates pending)
- POST /api/v1/commands (stub, creates pending)
- GET /api/v1/channels (stub, lists configured)
- OAuth 2.0 with Bearer token validation
- YAML config with env var expansion (supports ${VAR:-default})
- Ready for v0.2 (email adapter)
|
||
|---|---|---|
| .. | ||
| channels.go | ||
| commands.go | ||
| context.go | ||
| messages.go | ||
| oauth.go | ||
| router.go | ||