zswarm 0.3.1 → 0.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zswarm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Coordinate CLI agent crews in Zellij panes",
|
|
6
6
|
"engines": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"skills"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@zswarm/cli": "0.
|
|
27
|
-
"@zswarm/mcp": "0.
|
|
26
|
+
"@zswarm/cli": "0.4.0",
|
|
27
|
+
"@zswarm/mcp": "0.3.0"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
package/skills/zswarm/SKILL.md
CHANGED
|
@@ -43,13 +43,15 @@ CLI backup: `zswarm <op>` (`@zswarm/cli`).
|
|
|
43
43
|
Unless `raw: true`:
|
|
44
44
|
|
|
45
45
|
```text
|
|
46
|
-
[zswarm from=<sender>]
|
|
46
|
+
[zswarm from=<sender> @ <session>/<pane> on <host> via serve]
|
|
47
47
|
<body>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
`<sender>` is `from` if you pass it, else `ZSWARM_FROM`, else the sending
|
|
51
51
|
pane's title when `ZELLIJ_PANE_ID` / `ZSWARM_SELF_PANE` is visible, else
|
|
52
|
-
`swarm`.
|
|
52
|
+
`swarm`. zswarm appends the sender's session/pane and host (`ZSWARM_HOST`, `-`
|
|
53
|
+
hides it) when known, and `via serve` when the message arrived over serve.
|
|
54
|
+
MCP hosts that drop Zellij env need those vars listed (or set
|
|
53
55
|
`from` / `ZSWARM_FROM`).
|
|
54
56
|
|
|
55
57
|
## Rules
|
|
@@ -5,7 +5,7 @@ MCP: `zswarm({ op, ... })`. CLI: `zswarm <op>`. Same surface.
|
|
|
5
5
|
| op | Purpose |
|
|
6
6
|
|----|---------|
|
|
7
7
|
| `list` | Terminal panes (id, title, command, tab); `verbose` adds cwd/flags |
|
|
8
|
-
| `send` | Paste body + Enter (`to` = id / title / command). `from` labels `[zswarm from=…]` (default: `ZSWARM_FROM`, else the sending pane's title, else `swarm`). `submit`: `auto` (default; Codex panes default to `double-enter`) / `double-enter` / `none`. `submitted`: `true` (accepted and running) \| `"queued"` (accepted behind a running turn) \| `false` (still in the composer, not submitted) \| `"unverified"` (inconclusive) \| `"not-delivered"` (the pane was unchanged apart from the composer; op fails `not_delivered`, resend is safe). Settle (`--settle-ms`, default 300) and pane-observe (`--observe-ms`, default 1000) budgets scale up to 5x on a slow Zellij, explicit flags win. `--confirm` re-pastes only on `not-delivered` (Enter when still in the composer, an extra dump on `unverified`) and never pastes twice. `expect` refuses unless the screen already shows that substring `ifIdle: true` (`--if-idle`) refuses a live-leased pane (`pane_leased`) or a harness that shows it is working (`pane_busy`; OpenCode's progress bar, Claude Code's `esc to interrupt`) instead of sending. |
|
|
8
|
+
| `send` | Paste body + Enter (`to` = id / title / command). `from` labels `[zswarm from=…]` (default: `ZSWARM_FROM`, else the sending pane's title, else `swarm`); zswarm also appends the sender's session/pane, host (`ZSWARM_HOST`, `-` hides it) and `via serve` when known. `submit`: `auto` (default; Codex panes default to `double-enter`) / `double-enter` / `none`. `submitted`: `true` (accepted and running) \| `"queued"` (accepted behind a running turn) \| `false` (still in the composer, not submitted) \| `"unverified"` (inconclusive) \| `"not-delivered"` (the pane was unchanged apart from the composer; op fails `not_delivered`, resend is safe). Settle (`--settle-ms`, default 300) and pane-observe (`--observe-ms`, default 1000) budgets scale up to 5x on a slow Zellij, explicit flags win. `--confirm` re-pastes only on `not-delivered` (Enter when still in the composer, an extra dump on `unverified`) and never pastes twice. `expect` refuses unless the screen already shows that substring `ifIdle: true` (`--if-idle`) refuses a live-leased pane (`pane_leased`) or a harness that shows it is working (`pane_busy`; OpenCode's progress bar, Claude Code's `esc to interrupt`) instead of sending. |
|
|
9
9
|
| `dump` | Full-screen read; capped at 8000 chars (tail) — expensive vs `tail` |
|
|
10
10
|
| `tail` | Incremental read since last cursor; `reset: true` returns the whole screen |
|
|
11
11
|
| `wait` | Block until quiet or `match`; returns `reason` + a 2000-char tail. Bus holds one pipe for the wait |
|