patchcord 0.3.53 → 0.3.55

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.
package/bin/patchcord.mjs CHANGED
@@ -696,7 +696,8 @@ if (!cmd || cmd === "install" || cmd === "agent") {
696
696
  const dest = join(cwd, ".agents", "skills", "patchcord");
697
697
  mkdirSync(dest, { recursive: true });
698
698
  const skillSrc = readFileSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), "utf-8");
699
- writeFileSync(join(dest, "SKILL.md"), `IMPORTANT: Use the "patchcord-codex" MCP server for all patchcord tools (e.g. patchcord-codex.inbox, patchcord-codex.send_message). Do NOT use codex_apps.patchcord_* tools — they use the wrong identity.\n\n` + skillSrc);
699
+ const codexNote = `\nIMPORTANT: Use the "patchcord-codex" MCP server for all patchcord tools (e.g. patchcord-codex.inbox, patchcord-codex.send_message). Do NOT use codex_apps.patchcord_* tools — they use the wrong identity.\n`;
700
+ writeFileSync(join(dest, "SKILL.md"), skillSrc.replace(/^(---\n[\s\S]*?---\n)/, `$1${codexNote}\n`));
700
701
 
701
702
  const codexDir = join(cwd, ".codex");
702
703
  mkdirSync(codexDir, { recursive: true });
@@ -716,14 +717,11 @@ if (!cmd || cmd === "install" || cmd === "agent") {
716
717
  console.log(` ${green}✓${r} Cleaned PATCHCORD_TOKEN from .env`);
717
718
  }
718
719
  }
719
- // Slash commands (.codex/prompts/)
720
+ // Slash commands (.codex/prompts/) — plain text, no YAML frontmatter
720
721
  const codexPromptsDir = join(codexDir, "prompts");
721
722
  mkdirSync(codexPromptsDir, { recursive: true });
722
- // Write Codex-specific prompts that reference the correct MCP server name
723
- const skillContent = readFileSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), "utf-8");
724
- const codexSkill = `IMPORTANT: Use the "patchcord-codex" MCP server for all patchcord tools (e.g. patchcord-codex.inbox, patchcord-codex.send_message). Do NOT use codex_apps.patchcord_* tools — they use the wrong identity.\n\n` + skillContent;
725
- writeFileSync(join(codexPromptsDir, "patchcord.md"), codexSkill);
726
- cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(codexPromptsDir, "patchcord-wait.md"));
723
+ writeFileSync(join(codexPromptsDir, "patchcord.md"), `Check patchcord inbox using the patchcord-codex MCP server. Call patchcord-codex.inbox() to see pending messages and who is online. Reply to all pending messages immediately — do the work first, then reply with what you did. After replying, call patchcord-codex.wait_for_message() to stay responsive for follow-ups. Do NOT use codex_apps tools.\n`);
724
+ writeFileSync(join(codexPromptsDir, "patchcord-wait.md"), `Enter patchcord listening mode using the patchcord-codex MCP server. Call patchcord-codex.wait_for_message() to block until a message arrives. When one arrives, do the work described, reply with what you did, then call patchcord-codex.wait_for_message() again. Do NOT use codex_apps tools.\n`);
727
725
  console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
728
726
  console.log(` ${green}✓${r} Slash commands: ${dim}/patchcord${r}, ${dim}/patchcord-wait${r}`);
729
727
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.53",
3
+ "version": "0.3.55",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",