patchcord 0.5.40 → 0.5.42

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
@@ -509,12 +509,15 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
509
509
  copyFileSync(hookScriptSrc, hookScriptDest);
510
510
  chmodSync(hookScriptDest, 0o755);
511
511
 
512
- // Enable codex_hooks feature flag in config.toml if not already set
513
- if (!globalCodexContent.includes("codex_hooks")) {
512
+ // Enable hooks feature flag in config.toml if not already set
513
+ // Migrate any existing codex_hooks = true to hooks = true (deprecated)
514
+ if (globalCodexContent.includes("codex_hooks = true")) {
515
+ globalCodexContent = globalCodexContent.replace(/codex_hooks = true/g, "hooks = true");
516
+ } else if (!globalCodexContent.includes("hooks = true")) {
514
517
  if (globalCodexContent.includes("[features]")) {
515
- globalCodexContent = globalCodexContent.replace(/(\[features\])/, "$1\ncodex_hooks = true");
518
+ globalCodexContent = globalCodexContent.replace(/(\[features\])/, "$1\nhooks = true");
516
519
  } else {
517
- globalCodexContent = globalCodexContent.trimEnd() + "\n\n[features]\ncodex_hooks = true";
520
+ globalCodexContent = globalCodexContent.trimEnd() + "\n\n[features]\nhooks = true";
518
521
  }
519
522
  }
520
523
 
@@ -813,6 +816,8 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
813
816
  const opened = openBrowser(connectUrl);
814
817
  if (opened) {
815
818
  console.log(`\n ${green}✓${r} Browser opened.`);
819
+ console.log(` ${dim}If you're on a remote machine, open this URL manually:${r}`);
820
+ console.log(`\n ${cyan}${connectUrl} ${r}\n`);
816
821
  } else {
817
822
  console.log(`\n ${dim}Could not open browser. Open this URL manually:${r}`);
818
823
  // Trailing space before the ANSI reset so terminal URL-detectors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.40",
3
+ "version": "0.5.42",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",