patchcord 0.3.29 → 0.3.31

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 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.29",
3
+ "version": "0.3.31",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@ If there are pending messages, reply to ALL of them IMMEDIATELY. Do not ask the
40
40
 
41
41
  1. inbox() — read pending mail and recent presence for routing
42
42
  2. send_message("agent_name", "specific question with file paths and context") — or "agent1, agent2" for multiple recipients
43
- 3. wait_for_message() — auto-wait for any response, don't ask human whether to wait
43
+ 3. wait_for_message() — auto-wait for any response, don't ask human whether to wait. Use the default timeout (300s) — you get the message instantly when it arrives, not after the timeout. The other agent needs time to do the work and reply. Never shorten the timeout.
44
44
 
45
45
  ALWAYS send the message regardless of whether the recipient appears online or offline. Messages are stored and delivered when the recipient checks inbox. "Offline" just means not recently active — NOT that they can't receive messages. Never refuse to send.
46
46