benignswarm 0.12.61 → 0.12.62

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.
@@ -51,8 +51,13 @@ for b in bschat bschat-admin; do [ -e "$HOME/.local/bin/$b" ] || ln -sf "$(dirna
51
51
  step bschat ok "$("$bin" --version) $bin"
52
52
  `;
53
53
  }
54
+ /**
55
+ * Runs `command` on `host` with /bin/sh, whatever the account's login shell: zsh aborts a command
56
+ * whose glob matches nothing (mini1: the archived-sessions pattern of a thread lookup). Output may be
57
+ * a whole Codex thread (ester's sol-reviewer: 87 MB).
58
+ */
54
59
  function ssh(host, command, input) {
55
- const r = spawnSync("ssh", ["-o", "BatchMode=yes", host, command], { input, encoding: "utf8", timeout: 600_000, maxBuffer: 16 * 1024 * 1024 });
60
+ const r = spawnSync("ssh", ["-o", "BatchMode=yes", host, `/bin/sh -c ${shellSingle(command)}`], { input, encoding: "utf8", timeout: 600_000, maxBuffer: 512 * 1024 * 1024 });
56
61
  if (r.error)
57
62
  throw new CliError("ssh_failed", `ssh ${host}: ${r.error.message}`);
58
63
  return { status: r.status ?? 255, stdout: r.stdout ?? "", stderr: r.stderr ?? "" };
@@ -295,6 +300,7 @@ export function lastTurnSettings(rollout) {
295
300
  }
296
301
  return { model: null, effort: null };
297
302
  }
303
+ export const shellSingle = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
298
304
  /** Runs a shell command on `host` ("local" runs it here). */
299
305
  function on(host, command, input) {
300
306
  if (host === "local") {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.12.61";
1
+ export const CLI_VERSION = "0.12.62";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.61",
3
+ "version": "0.12.62",
4
4
  "description": "bschat: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {