@zswarm/cli 0.2.1 → 0.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 (2) hide show
  1. package/README.md +15 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  The `zswarm` command. Same ops as the MCP tool, through `@zswarm/core`. Two
4
4
  conveniences: the first bare argument is `--to` and the second is `--body` for
5
- `send`; `--key` / `--keys` repeat into an array.
5
+ `send`; `--key` / `--keys` repeat into an array. Also includes agent host commands
6
+ (`slot`, `crew`, `relay`, `host`) and `--version` / `-V`.
6
7
 
7
8
  ## Install
8
9
 
@@ -10,7 +11,7 @@ conveniences: the first bare argument is `--to` and the second is `--body` for
10
11
  npm install -g @zswarm/cli
11
12
  ```
12
13
 
13
- From a checkout of this repo:
14
+ From a checkout of this repo (build first with `pnpm build`):
14
15
 
15
16
  ```bash
16
17
  npm install ./packages/cli
@@ -21,19 +22,29 @@ Requires Zellij >= 0.42 and Node >= 20.
21
22
  ## Usage
22
23
 
23
24
  ```bash
25
+ zswarm --version
24
26
  zswarm list
25
27
  zswarm send terminal_2 ping
26
28
  zswarm send --to terminal_2 --body ping
27
29
  zswarm keys --to terminal_2 --key "Ctrl c" --key Esc
30
+
31
+ # Agent host commands
32
+ zswarm host install --ssh root@build-host
33
+ zswarm crew up crew --layout crew.kdl
34
+ zswarm relay --serve 'ssh://crew1@build-host?servePort=9419' --to worker --done DONE --reply-to me
35
+ zswarm slot -- cargo test
28
36
  ```
29
37
 
30
38
  Prints JSON. No arguments prints usage, generated from the same schema as the
31
39
  MCP tool.
32
40
 
33
- Spawn lifecycle, body files, guarded keys, status tabs and routing context: [crew operations](../../docs/crew-operations.md).
41
+ Spawn lifecycle, body files, guarded keys, status tabs and routing context: [crew operations](https://github.com/brandonkramer/zswarm/blob/master/docs/crew-operations.md).
42
+
43
+ Agent host management: [hosts guide](https://github.com/brandonkramer/zswarm/blob/master/docs/hosts.md).
34
44
 
35
- Ops, env, and the event bus: the [zswarm README](../../README.md).
45
+ Ops, env, and the event bus: the [zswarm README](https://github.com/brandonkramer/zswarm#readme).
36
46
 
37
47
  ## License
38
48
 
39
49
  MIT
50
+
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@zswarm/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "zSwarm CLI — list, send, dump Zellij panes",
6
6
  "bin": {
7
7
  "zswarm": "./dist/cli.js"
8
8
  },
9
9
  "dependencies": {
10
- "@zswarm/core": "0.2.1"
10
+ "@zswarm/core": "0.2.3"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "22.14.1",