cli-guide
Installation
SKILL.md
CLI Architecture Guide
Read docs/architecture.md and the current command registration before proposing
a change. The standalone entry point lives in packages/tui.
Entry points
| Path | Responsibility |
|---|---|
packages/tui/src/index.ts |
Process bootstrap and runtime environment |
packages/tui/src/cli/main.ts |
Command execution and process lifecycle |
packages/tui/src/cli/program.ts |
Commander command registration |
packages/tui/src/cli/contract.ts |
Interactive and exec option contracts |
packages/tui/src/tui/ |
Interactive terminal UI |
packages/tui/src/headless/ |
Exec invocation, output, cancellation and settlement |
packages/tui/src/acp/ |
ACP protocol adapter |
packages/tui/src/runtime/adapter.ts |
Adapter to the in-process CliService |
packages/local-runtime-v2/src/local/ |
Local product service entry points |
packages/protocol/src/local.ts |
Shared CLI data structures |