patchcord 0.3.91 → 0.3.92

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.
Files changed (2) hide show
  1. package/bin/patchcord.mjs +3 -26
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -352,32 +352,9 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
352
352
  }
353
353
  } catch {}
354
354
  }
355
- if (!existingToken) {
356
- const openclawJsonPath = join(HOME, ".openclaw", "openclaw.json");
357
- if (existsSync(openclawJsonPath)) {
358
- try {
359
- const oc = JSON.parse(readFileSync(openclawJsonPath, "utf-8"));
360
- const pt = oc?.mcp?.servers?.patchcord;
361
- if (pt?.headers?.Authorization) {
362
- existingToken = pt.headers.Authorization.replace(/^Bearer\s+/i, "");
363
- existingConfigFile = openclawJsonPath;
364
- }
365
- } catch {}
366
- }
367
- }
368
- if (!existingToken) {
369
- const agJsonPath = join(HOME, ".gemini", "antigravity", "mcp_config.json");
370
- if (existsSync(agJsonPath)) {
371
- try {
372
- const ag = JSON.parse(readFileSync(agJsonPath, "utf-8"));
373
- const pt = ag?.mcpServers?.patchcord;
374
- if (pt?.headers?.Authorization) {
375
- existingToken = pt.headers.Authorization.replace(/^Bearer\s+/i, "");
376
- existingConfigFile = agJsonPath;
377
- }
378
- } catch {}
379
- }
380
- }
355
+ // Global configs (Antigravity, OpenClaw, Gemini, Windsurf, Zed) are NOT
356
+ // checked here. They're set up once globally and should not block new
357
+ // project setup. Only per-project configs trigger "already configured."
381
358
  if (existingToken) {
382
359
  // Figure out which tool is already configured
383
360
  const existingToolName = existingConfigFile.includes(".codex") ? "Codex"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.91",
3
+ "version": "0.3.92",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",