patchcord 0.2.3 → 0.2.4
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/plugin.json +1 -1
- package/bin/patchcord.mjs +21 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchcord",
|
|
3
3
|
"description": "Cross-machine agent messaging with auto-inbox checking. Agents automatically respond to messages from other agents without human intervention.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ppravdin"
|
|
7
7
|
},
|
package/bin/patchcord.mjs
CHANGED
|
@@ -50,10 +50,28 @@ Then run: patchcord install`);
|
|
|
50
50
|
const fullStatusline = flags.includes("--full");
|
|
51
51
|
|
|
52
52
|
console.log("Installing patchcord plugin into Claude Code...");
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
|
|
54
|
+
// Register npm package as a local marketplace (idempotent)
|
|
55
|
+
const marketplaceExists = run(`claude plugin marketplace list`)?.includes("patchcord");
|
|
56
|
+
if (!marketplaceExists) {
|
|
57
|
+
const addResult = run(`claude plugin marketplace add "${pluginRoot}"`);
|
|
58
|
+
if (addResult === null) {
|
|
59
|
+
console.log(`✗ Could not add marketplace. Try manually:
|
|
60
|
+
claude plugin marketplace add "${pluginRoot}"
|
|
61
|
+
claude plugin install patchcord`);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Install or update the plugin from the marketplace
|
|
67
|
+
const installed = run(`claude plugin list`)?.includes("patchcord");
|
|
68
|
+
const result = installed
|
|
69
|
+
? run(`claude plugin update patchcord`)
|
|
70
|
+
: run(`claude plugin install patchcord`);
|
|
71
|
+
if (result === null && !installed) {
|
|
55
72
|
console.log(`✗ Plugin install failed. Try manually:
|
|
56
|
-
claude plugin
|
|
73
|
+
claude plugin marketplace add "${pluginRoot}"
|
|
74
|
+
claude plugin install patchcord`);
|
|
57
75
|
process.exit(1);
|
|
58
76
|
}
|
|
59
77
|
|