patchcord 0.3.68 → 0.3.70

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 +16 -5
  2. package/package.json +1 -1
package/bin/patchcord.mjs CHANGED
@@ -222,13 +222,14 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
222
222
  if (geminiChanged) globalChanges.push("Gemini CLI skills + commands installed");
223
223
  }
224
224
 
225
- // Codex CLI
225
+ // Codex CLI — clean up old apps.patchcord setting (it blocks the plugin)
226
226
  const codexConfig = join(HOME, ".codex", "config.toml");
227
227
  if (existsSync(codexConfig)) {
228
228
  const content = readFileSync(codexConfig, "utf-8");
229
- if (!content.includes("[apps.patchcord]")) {
230
- writeFileSync(codexConfig, content.trimEnd() + "\n\n[apps.patchcord]\nenabled = false\n");
231
- globalChanges.push("Codex ChatGPT app conflict prevented");
229
+ if (content.includes("[apps.patchcord]")) {
230
+ const cleaned = content.replace(/\[apps\.patchcord\]\n(?:(?!\[)[^\n]*\n?)*/g, "").replace(/\n{3,}/g, "\n\n").trim();
231
+ writeFileSync(codexConfig, cleaned + "\n");
232
+ globalChanges.push("Removed old apps.patchcord setting");
232
233
  }
233
234
  }
234
235
 
@@ -643,7 +644,17 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
643
644
  console.log(`\n ${green}✓${r} VS Code configured: ${dim}${vscodePath}${r}`);
644
645
  console.log(` ${dim}Requires GitHub Copilot extension with agent mode enabled.${r}`);
645
646
  } else if (isCodex) {
646
- // Codex: write MCP config + install global skills
647
+ // Codex: write MCP config + per-project skills + global plugin
648
+ // Per-project skills (working @patchcord in Codex v0.117)
649
+ const skillDest = join(cwd, ".agents", "skills", "patchcord");
650
+ mkdirSync(skillDest, { recursive: true });
651
+ writeFileSync(join(skillDest, "SKILL.md"),
652
+ readFileSync(join(pluginRoot, "skills", "codex", "SKILL.md"), "utf-8"));
653
+ const waitDest = join(cwd, ".agents", "skills", "patchcord-wait");
654
+ mkdirSync(waitDest, { recursive: true });
655
+ writeFileSync(join(waitDest, "SKILL.md"),
656
+ readFileSync(join(pluginRoot, "skills", "wait", "SKILL.md"), "utf-8"));
657
+
647
658
  const codexDir = join(cwd, ".codex");
648
659
  mkdirSync(codexDir, { recursive: true });
649
660
  const configPath = join(codexDir, "config.toml");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.68",
3
+ "version": "0.3.70",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",