patchcord 0.3.90 → 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 +11 -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"
@@ -783,6 +760,14 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
783
760
  mkdirSync(agDir, { recursive: true });
784
761
  writeFileSync(agPath, JSON.stringify(agConfig, null, 2) + "\n");
785
762
  console.log(`\n ${green}✓${r} Antigravity configured: ${dim}${agPath}${r}`);
763
+ // Install global skills
764
+ const agSkillDir = join(agDir, "skills", "patchcord");
765
+ const agWaitDir = join(agDir, "skills", "patchcord-wait");
766
+ mkdirSync(agSkillDir, { recursive: true });
767
+ mkdirSync(agWaitDir, { recursive: true });
768
+ cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(agSkillDir, "SKILL.md"));
769
+ cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(agWaitDir, "SKILL.md"));
770
+ console.log(` ${green}✓${r} Skills installed: ${dim}patchcord${r}, ${dim}patchcord-wait${r}`);
786
771
  console.log(` ${yellow}Global config — all Antigravity projects share this agent.${r}`);
787
772
  } else if (isVSCode) {
788
773
  // VS Code: write .vscode/mcp.json (per-project)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.90",
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",