@zswarm/core 0.8.2 → 0.8.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.
- package/dist/schema.js +21 -10
- package/package.json +1 -1
package/dist/schema.js
CHANGED
|
@@ -650,20 +650,31 @@ export const MCP_TOOL_DESCRIPTION = `zSwarm Zellij pane coordination (op=${OP_NA
|
|
|
650
650
|
"Same host as Zellij, or ZSWARM_SSH / ZSWARM_SERVE for a remote crew.";
|
|
651
651
|
const FLAG_INDEX = new Map(PARAMS.flatMap((p) => p.flags.map((flag) => [flag, p])));
|
|
652
652
|
export function cliUsage() {
|
|
653
|
-
|
|
653
|
+
return [
|
|
654
654
|
`usage: zswarm <${OP_NAMES.join("|")}> [options]`,
|
|
655
655
|
"",
|
|
656
656
|
" positional: first bare argument is --to, second is --body for send",
|
|
657
657
|
"",
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
658
|
+
" --session, -s VALUE Zellij session (or ZSWARM_SESSION / ZELLIJ_SESSION_NAME)",
|
|
659
|
+
" --to, -t, --pane VALUE target pane: id, terminal_3, or a unique title; broadcast takes a comma list",
|
|
660
|
+
" --fresh bypass the short-lived session/pane/tab listing cache",
|
|
661
|
+
" --local route this call to the local machine only",
|
|
662
|
+
" --ssh VALUE route this call over SSH to user@host or an alias",
|
|
663
|
+
" --serve VALUE existing serve endpoint: host:port, tcp://, or ssh://user@host",
|
|
664
|
+
" --help, -h this list; `zswarm <op> --help` shows that op's flags",
|
|
665
|
+
"",
|
|
666
|
+
" examples:",
|
|
667
|
+
" zswarm list",
|
|
668
|
+
" zswarm send --session crew --to worker --body \"text\"",
|
|
669
|
+
" zswarm wait --session crew --to worker --match \"RESULT\" --timeout-ms 900000",
|
|
670
|
+
"",
|
|
671
|
+
"Remote: ZSWARM_SSH (+ ZSWARM_TMP=auto or ZSWARM_SSH_MODE=interactive on Windows), or run `zswarm serve --listen` next to Zellij and set ZSWARM_SERVE / --serve plus ZSWARM_SERVE_TOKEN. Serve defaults to loopback and always requires a token; an explicit local Tailscale IP is allowed only after host verification. See docs/tailscale.md.",
|
|
672
|
+
"Guards: writes refuse zswarm's own pane (--allow-self) and exited panes (--force). --expect requires the screen to contain a substring first.",
|
|
673
|
+
"Bus: `zswarm bus --install` once per Zellij session; `--force` closes orphan bus panes and reloads, not a retry.",
|
|
674
|
+
"Hosts (CLI only, see docs/hosts.md): `zswarm slot`, `zswarm crew`, `zswarm relay`, `zswarm host`, `zswarm gate`; `zswarm <command> --help` for each. Gate: docs/gate.md. Doctor: docs/doctor.md.",
|
|
675
|
+
"Env: ZSWARM_SESSION, ZSWARM_SELF_PANE, ZSWARM_FROM, ZSWARM_HOST, ZSWARM_BUS, ZSWARM_SSH, ZSWARM_SSH_MODE, ZSWARM_SERVE, ZSWARM_SERVE_TOKEN, ZSWARM_CACHE_TTL_MS (full list in docs/hosts.md).",
|
|
676
|
+
"",
|
|
677
|
+
].join("\n");
|
|
667
678
|
}
|
|
668
679
|
/**
|
|
669
680
|
* True when argv asks for help: `--help` or `-h` as a flag of its own, not the
|