Architecture overview
The CLI is a Node.js + TypeScript application that compiles todist/ and exposes a single binary entrypoint.
Key areas
src/cli.ts: entrypoint wiring, option parsing, and command registrationsrc/commands/: command implementations grouped by domain (auth,context,tasks, etc.)src/lib/: shared utilities (config, paths, HTTP client helpers, formatting)tests/: unit tests
Runtime model
- Load local config from
config.json. - Merge CLI flags and environment variable overrides.
- Perform an authenticated request to the configured base URL.
- Render results as JSON or Markdown depending on output mode.