patchcord 0.3.33 → 0.3.35
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 +12 -14
- package/commands/patchcord-wait.toml +1 -0
- package/commands/patchcord.toml +1 -0
- package/package.json +2 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -149,6 +149,7 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
149
149
|
if (existsSync(join(process.env.HOME || "", ".gemini"))) {
|
|
150
150
|
const geminiSkillDir = join(process.env.HOME || "", ".gemini", "skills", "patchcord");
|
|
151
151
|
const geminiWaitDir = join(process.env.HOME || "", ".gemini", "skills", "patchcord-wait");
|
|
152
|
+
const geminiCmdDir = join(process.env.HOME || "", ".gemini", "commands");
|
|
152
153
|
let geminiChanged = false;
|
|
153
154
|
if (!existsSync(geminiSkillDir)) {
|
|
154
155
|
mkdirSync(geminiSkillDir, { recursive: true });
|
|
@@ -160,7 +161,13 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
160
161
|
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(geminiWaitDir, "SKILL.md"));
|
|
161
162
|
geminiChanged = true;
|
|
162
163
|
}
|
|
163
|
-
if (
|
|
164
|
+
if (!existsSync(join(geminiCmdDir, "patchcord.toml"))) {
|
|
165
|
+
mkdirSync(geminiCmdDir, { recursive: true });
|
|
166
|
+
cpSync(join(pluginRoot, "commands", "patchcord.toml"), join(geminiCmdDir, "patchcord.toml"));
|
|
167
|
+
cpSync(join(pluginRoot, "commands", "patchcord-wait.toml"), join(geminiCmdDir, "patchcord-wait.toml"));
|
|
168
|
+
geminiChanged = true;
|
|
169
|
+
}
|
|
170
|
+
if (geminiChanged) globalChanges.push("Gemini CLI skills + commands installed");
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
// Codex CLI
|
|
@@ -470,23 +477,14 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
470
477
|
Authorization: `Bearer ${token}`,
|
|
471
478
|
},
|
|
472
479
|
};
|
|
473
|
-
//
|
|
474
|
-
if (
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
"mcp_patchcord_inbox", "mcp_patchcord_send_message", "mcp_patchcord_reply",
|
|
478
|
-
"mcp_patchcord_wait_for_message", "mcp_patchcord_attachment",
|
|
479
|
-
"mcp_patchcord_recall", "mcp_patchcord_unsend",
|
|
480
|
-
];
|
|
481
|
-
for (const t of patchcordTools) {
|
|
482
|
-
if (!geminiSettings.tools.allowed.includes(t)) {
|
|
483
|
-
geminiSettings.tools.allowed.push(t);
|
|
484
|
-
}
|
|
480
|
+
// Clean up deprecated tools.allowed if present (removed in Gemini CLI 1.0)
|
|
481
|
+
if (geminiSettings.tools?.allowed) {
|
|
482
|
+
geminiSettings.tools.allowed = geminiSettings.tools.allowed.filter(t => !t.startsWith("mcp_patchcord_"));
|
|
483
|
+
if (geminiSettings.tools.allowed.length === 0) delete geminiSettings.tools;
|
|
485
484
|
}
|
|
486
485
|
mkdirSync(join(process.env.HOME || "", ".gemini"), { recursive: true });
|
|
487
486
|
writeFileSync(geminiPath, JSON.stringify(geminiSettings, null, 2) + "\n");
|
|
488
487
|
console.log(`\n ${green}✓${r} Gemini CLI configured: ${dim}${geminiPath}${r}`);
|
|
489
|
-
console.log(` ${green}✓${r} Tool auto-approval configured`);
|
|
490
488
|
console.log(` ${yellow}Global config — all Gemini CLI projects share this agent.${r}`);
|
|
491
489
|
} else if (isCodex) {
|
|
492
490
|
// Codex: copy skill + write config + install slash commands
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
prompt = "Enter listening mode. Call wait_for_message() to block until a message arrives. When one arrives: do the work, reply with what you did, then call wait_for_message() again to keep listening."
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
prompt = "Call inbox() to check for pending patchcord messages. Reply to all immediately — do the work first, then reply with what you did. After replying, call wait_for_message() to stay responsive."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchcord",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.35",
|
|
4
4
|
"description": "Cross-machine agent messaging for Claude Code and Codex",
|
|
5
5
|
"author": "ppravdin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"hooks/",
|
|
27
27
|
"scripts/",
|
|
28
28
|
"skills/",
|
|
29
|
+
"commands/",
|
|
29
30
|
"README.md"
|
|
30
31
|
]
|
|
31
32
|
}
|