patchcord 0.3.81 → 0.3.83

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/bin/patchcord.mjs +10 -7
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -115,13 +115,12 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
115
115
  // Claude Code
116
116
  const hasClaude = run("which claude");
117
117
  if (hasClaude) {
118
- const marketplaceExists = run(`claude plugin marketplace list`)?.includes("patchcord");
119
- if (!marketplaceExists) {
120
- run(`claude plugin marketplace add "${pluginRoot}"`);
121
- const installed = run(`claude plugin list`)?.includes("patchcord");
122
- installed ? run(`claude plugin update patchcord`) : run(`claude plugin install patchcord`);
123
- globalChanges.push("Claude Code plugin installed");
124
- }
118
+ // Always re-add marketplace (copies fresh files from this npx package)
119
+ // and re-install plugin (overwrites stale cache). Claude Code's built-in
120
+ // plugin update doesn't detect new versions from local sources (#37252).
121
+ run(`claude plugin marketplace add "${pluginRoot}"`);
122
+ run(`claude plugin install patchcord`);
123
+ globalChanges.push("Claude Code plugin updated");
125
124
 
126
125
  const claudeSettings = join(HOME, ".claude", "settings.json");
127
126
  if (existsSync(claudeSettings)) {
@@ -407,6 +406,10 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
407
406
  if (addAnswer === "y" || addAnswer === "yes") {
408
407
  // Drop into browser connect flow — don't reuse token, fresh setup
409
408
  token = "";
409
+ } else {
410
+ // Both N — nothing to do
411
+ console.log(`\n ${dim}Nothing to update.${r}`);
412
+ process.exit(0);
410
413
  }
411
414
  }
412
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.81",
3
+ "version": "0.3.83",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",