patchcord 0.3.8 → 0.3.9
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 +13 -11
- 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.3.
|
|
4
|
+
"version": "0.3.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "ppravdin"
|
|
7
7
|
},
|
package/bin/patchcord.mjs
CHANGED
|
@@ -41,12 +41,14 @@ if (cmd === "install") {
|
|
|
41
41
|
const fullStatusline = flags.includes("--full");
|
|
42
42
|
const { readFileSync, writeFileSync } = await import("fs");
|
|
43
43
|
|
|
44
|
+
console.log("Patchcord — setting up agent messaging\n");
|
|
45
|
+
|
|
44
46
|
let installedSomething = false;
|
|
45
47
|
|
|
46
48
|
// ── Claude Code ──
|
|
47
49
|
const hasClaude = run("which claude");
|
|
48
50
|
if (hasClaude) {
|
|
49
|
-
console.log(
|
|
51
|
+
console.log(`\n🔧 Claude Code`);
|
|
50
52
|
|
|
51
53
|
// Register npm package as a local marketplace (idempotent)
|
|
52
54
|
const marketplaceExists = run(`claude plugin marketplace list`)?.includes("patchcord");
|
|
@@ -83,37 +85,37 @@ if (cmd === "install") {
|
|
|
83
85
|
run(`bash "${enableScript}"${slArg}`);
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
console.log(
|
|
88
|
+
console.log(` ✓ Plugin installed${fullStatusline ? " (full statusline)" : ""}`);
|
|
89
|
+
console.log(` ✓ OAuth tool leakage blocked`);
|
|
87
90
|
installedSomething = true;
|
|
88
91
|
}
|
|
89
92
|
|
|
90
93
|
// ── Codex CLI ──
|
|
91
94
|
const codexConfig = join(process.env.HOME || "", ".codex", "config.toml");
|
|
92
95
|
if (existsSync(codexConfig)) {
|
|
93
|
-
console.log("Found Codex CLI config.");
|
|
94
|
-
|
|
95
|
-
// Disable patchcord as ChatGPT app (prevents OAuth identity conflict)
|
|
96
96
|
const content = readFileSync(codexConfig, "utf-8");
|
|
97
97
|
if (!content.includes("[apps.patchcord]")) {
|
|
98
98
|
writeFileSync(codexConfig, content.trimEnd() + "\n\n[apps.patchcord]\nenabled = false\n");
|
|
99
|
-
console.log("✓ Disabled patchcord ChatGPT app in Codex (prevents identity conflict).");
|
|
100
99
|
}
|
|
101
|
-
|
|
100
|
+
console.log(`\n🔧 Codex CLI`);
|
|
101
|
+
console.log(` ✓ ChatGPT app conflict prevented`);
|
|
102
102
|
installedSomething = true;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
if (!installedSomething) {
|
|
106
|
-
console.log(`No Claude Code or Codex CLI
|
|
106
|
+
console.log(`No Claude Code or Codex CLI found on this machine.
|
|
107
107
|
|
|
108
108
|
Install one first:
|
|
109
|
-
Claude Code
|
|
110
|
-
Codex CLI
|
|
109
|
+
Claude Code → https://claude.ai/code
|
|
110
|
+
Codex CLI → npm install -g @openai/codex
|
|
111
111
|
|
|
112
112
|
Then run: npx patchcord@latest install`);
|
|
113
113
|
process.exit(1);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
console.log(`\
|
|
116
|
+
console.log(`\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━`);
|
|
117
|
+
console.log(`Next: cd into your project and run:`);
|
|
118
|
+
console.log(` npx patchcord@latest agent`);
|
|
117
119
|
process.exit(0);
|
|
118
120
|
}
|
|
119
121
|
|