Inbox Module
inbox/ is now the V2 control-plane server for this repository.
What Remains
- One startup command:
server - One AI CLI wrapper command:
api - One business entry: HTTP API under
/api/v2/* - One persistence implementation: SQLite V2 store
Old CLI business commands, old HTTP route tree, old runtime/store compatibility layers, and old tests have been removed from this module.
Current Layout
| Path | Responsibility |
|---|---|
cmd/inbox/ |
Process entrypoint |
top-level inbox/*.go |
Minimal server wiring only |
internal/cli/ |
Small CLI shell that only dispatches server and api |
internal/client/, internal/clientcmd/ |
HTTP client and AI-oriented CLI wrapper |
internal/servercmd/ |
Server boot runner and flag handling |
internal/base/, internal/domain/, internal/app/, internal/httpapi/, internal/store/sqlite/ |
Current business implementation |
Local Commands
go build ./cmd/inbox
go test ./...
./cmd/inbox api GET /api/v2/projects
Rule
New Inbox business logic should go under the current formal modules: internal/base/, internal/domain/, internal/app/, internal/httpapi/, and internal/store/sqlite/.
Top-level files should stay limited to startup and composition.