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.
- package/bin/patchcord.mjs +10 -7
- 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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
}
|