patchcord 0.5.46 → 0.5.47

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/bin/patchcord.mjs CHANGED
@@ -383,6 +383,13 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
383
383
  } catch {}
384
384
  }
385
385
 
386
+ // ── Install patchcord as a global CLI tool ───────────────────
387
+ // Avoids relying on `npx patchcord subscribe` which is subject to npx
388
+ // caching and supply-chain-protection min-release-age policies that
389
+ // cause npx to silently downgrade to an older version.
390
+ // --prefer-offline reuses what npx already downloaded — no extra network.
391
+ run(`npm install -g patchcord@${currentVersion} --prefer-offline`);
392
+
386
393
  // ── Global setup (silent if nothing changed) ──
387
394
  let globalChanges = [];
388
395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.46",
3
+ "version": "0.5.47",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@ User invoked /patchcord:subscribe — do NOT substitute `wait_for_message()`. Sp
20
20
  description: "patchcord realtime listener",
21
21
  persistent: true,
22
22
  timeout_ms: 3600000,
23
- command: "exec npx patchcord subscribe"
23
+ command: "exec patchcord subscribe"
24
24
  )
25
25
  ```
26
26