@4pm/cli 0.9.0 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/dist/index.js +1524 -255
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,5 +12,21 @@ server. Multiple instances on one machine use separate profiles, and the server
12
12
  pnpm --filter @4pm/cli dev
13
13
  ```
14
14
 
15
+ ## Run as a container (ADR-0192)
16
+
17
+ Package the cli as a Docker image — the **container is the OS sandbox** (one cli per container).
18
+ Build + run + pair (full runbook: [`11-docs/41-guides/0015-cli-container.md`](../../11-docs/41-guides/0015-cli-container.md)):
19
+
20
+ ```bash
21
+ docker build -f 31-docker/cli.Dockerfile --target full -t 4pm-cli:full . # base = cli only
22
+ FOURPM_SERVER=https://app.example docker compose -f 31-docker/docker-compose.cli.yml run --rm cli link # pair once
23
+ FOURPM_SERVER=https://app.example docker compose -f 31-docker/docker-compose.cli.yml up -d # run headless
24
+ docker compose -f 31-docker/docker-compose.cli.yml exec cli 4pm attach # TUI (optional)
25
+ ```
26
+
27
+ Headless (ECS/pool): boot with `FOURPM_PAIR_TOKEN` (a provisioning token) ⇒ the cli self-pairs, no
28
+ interactive step (ADR-0192 §6). In a container the in-process auto-update is moot — redeploy a new
29
+ image tag instead.
30
+
15
31
  > Code organization, conventions & what's missing: [`CLAUDE.md`](./CLAUDE.md).
16
32
  > The cli behavior spec: [`11-docs/61-cli/`](../../11-docs/61-cli/README.md).