patchcord 0.3.83 → 0.3.84
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/.claude-plugin/marketplace.json +13 -0
- package/bin/patchcord.mjs +10 -4
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "patchcord-marketplace",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "ppravdin"
|
|
5
|
+
},
|
|
6
|
+
"plugins": [
|
|
7
|
+
{
|
|
8
|
+
"name": "patchcord",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"description": "Cross-machine agent messaging — connect Claude Code, Codex, Cursor, ChatGPT, and other agents across projects and machines."
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
package/bin/patchcord.mjs
CHANGED
|
@@ -116,11 +116,17 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
116
116
|
const hasClaude = run("which claude");
|
|
117
117
|
if (hasClaude) {
|
|
118
118
|
// Always re-add marketplace (copies fresh files from this npx package)
|
|
119
|
-
// and
|
|
120
|
-
//
|
|
119
|
+
// and install/update plugin. Claude Code's built-in plugin update
|
|
120
|
+
// doesn't detect new versions from local sources (#37252).
|
|
121
121
|
run(`claude plugin marketplace add "${pluginRoot}"`);
|
|
122
|
-
run(`claude plugin
|
|
123
|
-
|
|
122
|
+
const installed = run(`claude plugin list`)?.includes("patchcord");
|
|
123
|
+
if (installed) {
|
|
124
|
+
run(`claude plugin update patchcord@patchcord-marketplace`);
|
|
125
|
+
globalChanges.push("Claude Code plugin updated");
|
|
126
|
+
} else {
|
|
127
|
+
run(`claude plugin install patchcord@patchcord-marketplace`);
|
|
128
|
+
globalChanges.push("Claude Code plugin installed");
|
|
129
|
+
}
|
|
124
130
|
|
|
125
131
|
const claudeSettings = join(HOME, ".claude", "settings.json");
|
|
126
132
|
if (existsSync(claudeSettings)) {
|