@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.
Files changed (2) hide show
  1. package/dist/schema.js +21 -10
  2. 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
- const lines = [
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
- for (const param of PARAMS) {
660
- if (param.flags.length === 0)
661
- continue;
662
- const value = param.type === "boolean" ? "" : param.type === "number" ? " N" : " VALUE";
663
- lines.push(` ${param.flags.join(", ").padEnd(28)}${value.trim().padEnd(6)}${param.description}`);
664
- }
665
- lines.push("", "Guards: writes refuse zswarm's own pane (--allow-self) and exited panes (--force). --expect requires the screen to contain a substring first.", "Bus: `zswarm bus --install` once per Zellij session. `--force` closes orphan bus panes and reloads; do not use it as a retry.", "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 (host:port, tcp://, or ssh://user@host?servePort=9419) plus ZSWARM_SERVE_TOKEN. Serve defaults to loopback and always requires a token; an explicit local Tailscale IP is allowed only after host verification. Private raw TCP Tailscale Serve keeps the backend on 127.0.0.1 behind `tailscale serve --tcp=…` (docs/tailscale.md). ssh:// does not start remote serve. Windows default recipe: `zswarm serve --install` (verified readiness).", "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): a send-only ssh key. Receiver: `zswarm gate allow ID --key-file K --session S --pane P`. Sender: `zswarm send --gate DEST --session S --to P --body …`.", "Doctor: `zswarm doctor --session crew` inspects local, --ssh, and --serve routes without installs, pane changes, or plugin launch. See docs/doctor.md and docs/tailscale.md.", "Env: ZSWARM_BIN, ZSWARM_PATH, ZSWARM_SESSION, ZSWARM_SELF_PANE, ZSWARM_FROM, ZSWARM_HOST, ZELLIJ_PANE_ID, ZELLIJ_SESSION_NAME, ZSWARM_BUS, ZSWARM_BUS_PLUGIN, ZSWARM_SSH, ZSWARM_SSH_BIN, ZSWARM_SSH_OPTS, ZSWARM_TMP, ZSWARM_SSH_MODE, ZSWARM_GATE_CONFIG, ZSWARM_SERVE, ZSWARM_SERVE_TOKEN, ZSWARM_TAILSCALE_BIN, ZSWARM_CACHE_TTL_MS", "");
666
- return lines.join("\n");
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zswarm/core",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "description": "zSwarm Zellij client and shared ops dispatch",
6
6
  "exports": {