patchcord 0.3.9 → 0.3.10

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.
@@ -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.9",
4
+ "version": "0.3.10",
5
5
  "author": {
6
6
  "name": "ppravdin"
7
7
  },
package/bin/patchcord.mjs CHANGED
@@ -65,13 +65,24 @@ if (cmd === "install") {
65
65
  if (existsSync(claudeSettings)) {
66
66
  try {
67
67
  const settings = JSON.parse(readFileSync(claudeSettings, "utf-8"));
68
- const deny = settings.permissions?.deny || [];
69
- if (!deny.includes("mcp__claude_ai_Patchcord__*")) {
70
- if (!settings.permissions) settings.permissions = {};
71
- if (!settings.permissions.deny) settings.permissions.deny = [];
72
- settings.permissions.deny.push("mcp__claude_ai_Patchcord__*");
68
+ if (!settings.permissions) settings.permissions = {};
69
+ if (!settings.permissions.allow) settings.permissions.allow = [];
70
+ if (!settings.permissions.deny) settings.permissions.deny = [];
71
+ let changed = false;
72
+ // Allow patchcord MCP tools without prompts
73
+ if (!settings.permissions.allow.includes("mcp__patchcord__*")) {
74
+ settings.permissions.allow.push("mcp__patchcord__*");
75
+ changed = true;
76
+ }
77
+ // Block OAuth tool leakage (both casings)
78
+ for (const pattern of ["mcp__claude_ai_Patchcord__*", "mcp__claude_ai_patchcord__*"]) {
79
+ if (!settings.permissions.deny.includes(pattern)) {
80
+ settings.permissions.deny.push(pattern);
81
+ changed = true;
82
+ }
83
+ }
84
+ if (changed) {
73
85
  writeFileSync(claudeSettings, JSON.stringify(settings, null, 2) + "\n");
74
- console.log("✓ Blocked OAuth tool leakage from claude.ai web connector.");
75
86
  }
76
87
  } catch {
77
88
  // Non-fatal — settings.json might be malformed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",