@zswarm/core 0.2.1 → 0.2.2

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 CHANGED
@@ -10,7 +10,7 @@ the CLI flags, and the CLI help, so they cannot drift.
10
10
  npm install @zswarm/core
11
11
  ```
12
12
 
13
- From a checkout of this repo:
13
+ From a checkout of this repo (build first with `pnpm build`):
14
14
 
15
15
  ```bash
16
16
  npm install ./packages/core
@@ -36,11 +36,11 @@ SSH LocalForward and calls `probeServe` before ops (including before reuse);
36
36
  pass a `serveTunnels` manager if the caller (MCP) should reuse it. Omitting
37
37
  the SSH port leaves `Port` to OpenSSH instead of forcing 22. `tcp://` also
38
38
  names a private Tailscale Serve frontend over a loopback backend; see
39
- [Tailscale crew](../../docs/tailscale.md).
39
+ [Tailscale crew](https://github.com/brandonkramer/zswarm/blob/master/docs/tailscale.md).
40
40
 
41
- 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
42
 
43
- Ops, env, and the event bus: the [zswarm README](../../README.md).
43
+ Ops, env, and the event bus: the [zswarm README](https://github.com/brandonkramer/zswarm#readme).
44
44
 
45
45
  ## License
46
46
 
package/dist/host/cli.js CHANGED
@@ -183,7 +183,7 @@ const COMMANDS = {
183
183
  "zswarm host install --ssh DEST [--sudo] [--prefix /usr/local/lib/zswarm] [--bin-dir /usr/local/bin]",
184
184
  " [--node V] [--zellij V] [--zswarm V] Node.js, zswarm and Zellij on a Linux/macOS host",
185
185
  "zswarm host install --script [same options] print the script (run it as: sh -s -- <args printed on stderr>)",
186
- "zswarm host doctor [--ssh DEST] [--serve TARGET] [--session S] tools, disk, services, serve, session, panes",
186
+ "zswarm host doctor (--ssh DEST | --serve TARGET) [--session S] tools, disk, services, serve, session, panes",
187
187
  ].join("\n"),
188
188
  run: host,
189
189
  },
@@ -293,6 +293,7 @@ export function launchRelay(dir, env = process.env) {
293
293
  "submit", "-l", label, "-o", log, "-e", log, "--",
294
294
  "/usr/bin/env", `PATH=${env.PATH ?? "/usr/bin:/bin"}`, `HOME=${env.HOME ?? ""}`,
295
295
  ...(env.ZSWARM_STATE_DIR ? [`ZSWARM_STATE_DIR=${env.ZSWARM_STATE_DIR}`] : []),
296
+ ...(env.ZSWARM_RELAY_DELAYS ? [`ZSWARM_RELAY_DELAYS=${env.ZSWARM_RELAY_DELAYS}`] : []),
296
297
  `ZSWARM_RELAY_LABEL=${label}`, ...argv,
297
298
  ], { encoding: "utf8" });
298
299
  if (res.status !== 0)
@@ -304,6 +305,7 @@ export function launchRelay(dir, env = process.env) {
304
305
  const res = spawnSync("systemd-run", ["--user", "--collect", "--quiet", `--unit=${unit}`,
305
306
  `--setenv=PATH=${env.PATH ?? "/usr/bin:/bin"}`,
306
307
  ...(env.ZSWARM_STATE_DIR ? [`--setenv=ZSWARM_STATE_DIR=${env.ZSWARM_STATE_DIR}`] : []),
308
+ ...(env.ZSWARM_RELAY_DELAYS ? [`--setenv=ZSWARM_RELAY_DELAYS=${env.ZSWARM_RELAY_DELAYS}`] : []),
307
309
  ...argv], { encoding: "utf8" });
308
310
  if (res.status === 0)
309
311
  return `systemd unit ${unit}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zswarm/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "zSwarm Zellij client and shared ops dispatch",
6
6
  "exports": {