patchcord 0.3.33 → 0.3.34
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 +4 -13
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -470,23 +470,14 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
470
470
|
Authorization: `Bearer ${token}`,
|
|
471
471
|
},
|
|
472
472
|
};
|
|
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
|
-
}
|
|
473
|
+
// Clean up deprecated tools.allowed if present (removed in Gemini CLI 1.0)
|
|
474
|
+
if (geminiSettings.tools?.allowed) {
|
|
475
|
+
geminiSettings.tools.allowed = geminiSettings.tools.allowed.filter(t => !t.startsWith("mcp_patchcord_"));
|
|
476
|
+
if (geminiSettings.tools.allowed.length === 0) delete geminiSettings.tools;
|
|
485
477
|
}
|
|
486
478
|
mkdirSync(join(process.env.HOME || "", ".gemini"), { recursive: true });
|
|
487
479
|
writeFileSync(geminiPath, JSON.stringify(geminiSettings, null, 2) + "\n");
|
|
488
480
|
console.log(`\n ${green}✓${r} Gemini CLI configured: ${dim}${geminiPath}${r}`);
|
|
489
|
-
console.log(` ${green}✓${r} Tool auto-approval configured`);
|
|
490
481
|
console.log(` ${yellow}Global config — all Gemini CLI projects share this agent.${r}`);
|
|
491
482
|
} else if (isCodex) {
|
|
492
483
|
// Codex: copy skill + write config + install slash commands
|