@4pm/cli 0.5.0 → 0.7.0

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 +7 -7
  2. package/dist/index.js +1229 -199
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # @4pm/cli
2
2
 
3
- **Agent chạy trên máy worker** — nhận lệnh từ `@4pm/server` qua WebSocket và điều phối
4
- các CLI AI (`claude` / `codex`) cùng công cụ khác (`git`, `gh`, `glab`, `shell`).
3
+ **An agent running on the worker machine** — receives commands from `@4pm/server` over WebSocket and orchestrates
4
+ the AI CLIs (`claude` / `codex`) plus other tools (`git`, `gh`, `glab`, `shell`).
5
5
  Node ESM + TypeScript.
6
6
 
7
- Vòng đời: **pairing** với server bằng hashcode (file `.cre`) → xin `ws_token` → mở
8
- WebSocket TLS → nhận lệnh → **spawn tiến trình con**, gom output (backpressure) trả về
9
- server. Nhiều instance trên một máy dùng profile riêng, server gom về một **worker**.
7
+ Lifecycle: **pairing** with the server via a hashcode (the `.cre` file) → request a `ws_token` → open a
8
+ TLS WebSocket → receive commands → **spawn child processes**, gather the output (backpressure) back to the
9
+ server. Multiple instances on one machine use separate profiles, and the server groups them into one **worker**.
10
10
 
11
11
  ```bash
12
12
  pnpm --filter @4pm/cli dev
13
13
  ```
14
14
 
15
- > Tổ chức mã, quy ước & phần còn thiếu: [`CLAUDE.md`](./CLAUDE.md).
16
- > Đặc tả hành vi cli: [`11-docs/61-cli/`](../../11-docs/61-cli/README.md).
15
+ > Code organization, conventions & what's missing: [`CLAUDE.md`](./CLAUDE.md).
16
+ > The cli behavior spec: [`11-docs/61-cli/`](../../11-docs/61-cli/README.md).