patchcord 0.3.29 → 0.3.30
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 +14 -0
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -436,9 +436,23 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
436
436
|
Authorization: `Bearer ${token}`,
|
|
437
437
|
},
|
|
438
438
|
};
|
|
439
|
+
// Auto-approve patchcord tools (skip confirmation dialogs)
|
|
440
|
+
if (!geminiSettings.tools) geminiSettings.tools = {};
|
|
441
|
+
if (!geminiSettings.tools.allowed) geminiSettings.tools.allowed = [];
|
|
442
|
+
const patchcordTools = [
|
|
443
|
+
"mcp_patchcord_inbox", "mcp_patchcord_send_message", "mcp_patchcord_reply",
|
|
444
|
+
"mcp_patchcord_wait_for_message", "mcp_patchcord_attachment",
|
|
445
|
+
"mcp_patchcord_recall", "mcp_patchcord_unsend",
|
|
446
|
+
];
|
|
447
|
+
for (const t of patchcordTools) {
|
|
448
|
+
if (!geminiSettings.tools.allowed.includes(t)) {
|
|
449
|
+
geminiSettings.tools.allowed.push(t);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
439
452
|
mkdirSync(join(process.env.HOME || "", ".gemini"), { recursive: true });
|
|
440
453
|
writeFileSync(geminiPath, JSON.stringify(geminiSettings, null, 2) + "\n");
|
|
441
454
|
console.log(`\n ${green}✓${r} Gemini CLI configured: ${dim}${geminiPath}${r}`);
|
|
455
|
+
console.log(` ${green}✓${r} Tool auto-approval configured`);
|
|
442
456
|
console.log(` ${yellow}Global config — all Gemini CLI projects share this agent.${r}`);
|
|
443
457
|
} else if (isCodex) {
|
|
444
458
|
// Codex: copy skill + write config
|