@4pm/cli 0.6.0 → 0.8.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.
- package/README.md +7 -7
- package/dist/index.js +998 -228
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# @4pm/cli
|
|
2
2
|
|
|
3
|
-
**
|
|
4
|
-
|
|
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
|
-
|
|
8
|
-
WebSocket
|
|
9
|
-
server.
|
|
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
|
-
>
|
|
16
|
-
>
|
|
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).
|