patchcord 0.6.32 → 0.6.33

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. Messages from other agents land in the inbox and wake the agent to reply.",
4
- "version": "0.6.32",
4
+ "version": "0.6.33",
5
5
  "author": {
6
6
  "name": "ppravdin"
7
7
  },
package/bin/patchcord.mjs CHANGED
@@ -2865,7 +2865,12 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
2865
2865
 
2866
2866
  const CLIENT_TYPE_MAP = {
2867
2867
  "claude_code": "1", "codex": "2", "cursor": "3", "grok": "14", "grok_cli": "14", "grok_build": "14", "windsurf": "4",
2868
- "gemini": "5", "vscode": "6", "zed": "7", "opencode": "8", "openclaw": "9", "antigravity": "10",
2868
+ // "gemini" is deliberately ABSENT: Gemini CLI is retired as an install
2869
+ // target (Antigravity covers Google's agent). Slot "5" is left unassigned
2870
+ // rather than reused, so an old connect page sending client_type=gemini
2871
+ // falls through to no choice instead of silently configuring a DIFFERENT
2872
+ // harness and writing someone's token to the wrong file.
2873
+ "vscode": "6", "zed": "7", "opencode": "8", "openclaw": "9", "antigravity": "10",
2869
2874
  "cline": "11", "kimi": "12", "hermes": "13",
2870
2875
  };
2871
2876
 
@@ -3242,7 +3247,11 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
3242
3247
  const isCursor = choice === "3";
3243
3248
  const isGrok = choice === "14";
3244
3249
  const isWindsurf = choice === "4";
3245
- const isGemini = choice === "5";
3250
+ // Gemini CLI retired as an install target. Kept as a permanent false so the
3251
+ // guards below still read as "this harness gets no project-local config"
3252
+ // for anything that reaches them, and so removing the slot cannot flip a
3253
+ // condition that used to exclude it into one that now includes it.
3254
+ const isGemini = false;
3246
3255
  const isVSCode = choice === "6";
3247
3256
  const isZed = choice === "7";
3248
3257
  const isOpenCode = choice === "8";
@@ -3371,28 +3380,6 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
3371
3380
  console.log(`\n ${green}✓${r} Windsurf configured: ${dim}${wsPath}${r}`);
3372
3381
  console.log(` ${yellow}Global config — all Windsurf projects share this agent.${r}`);
3373
3382
  }
3374
- } else if (isGemini) {
3375
- // Gemini CLI: global only (~/.gemini/settings.json)
3376
- const geminiPath = join(HOME, ".gemini", "settings.json");
3377
- const geminiOk = updateJsonConfig(geminiPath, (obj) => {
3378
- obj.mcpServers = obj.mcpServers || {};
3379
- obj.mcpServers.patchcord = {
3380
- httpUrl: `${serverUrl}/mcp`,
3381
- headers: {
3382
- Authorization: `Bearer ${token}`,
3383
- "X-Patchcord-Machine": hostname,
3384
- },
3385
- };
3386
- // Clean up deprecated tools.allowed if present (removed in Gemini CLI 1.0)
3387
- if (obj.tools?.allowed) {
3388
- obj.tools.allowed = obj.tools.allowed.filter(t => !t.startsWith("mcp_patchcord_"));
3389
- if (obj.tools.allowed.length === 0) delete obj.tools;
3390
- }
3391
- });
3392
- if (geminiOk) {
3393
- console.log(`\n ${green}✓${r} Gemini CLI configured: ${dim}${geminiPath}${r}`);
3394
- console.log(` ${yellow}Global config — all Gemini CLI projects share this agent.${r}`);
3395
- }
3396
3383
  } else if (isZed) {
3397
3384
  // Zed: global settings.json → context_servers
3398
3385
  const zedPath = process.platform === "darwin"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.6.32",
3
+ "version": "0.6.33",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "scripts": {
6
6
  "version": "node scripts/sync-plugin-version.mjs && git add .claude-plugin/plugin.json"