patchcord 0.3.52 → 0.3.54
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 +4 -2
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -695,7 +695,9 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
695
695
|
// Codex: copy skill + write config + install slash commands
|
|
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
|
+
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`));
|
|
699
701
|
|
|
700
702
|
const codexDir = join(cwd, ".codex");
|
|
701
703
|
mkdirSync(codexDir, { recursive: true });
|
|
@@ -718,7 +720,7 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
718
720
|
// Slash commands (.codex/prompts/)
|
|
719
721
|
const codexPromptsDir = join(codexDir, "prompts");
|
|
720
722
|
mkdirSync(codexPromptsDir, { recursive: true });
|
|
721
|
-
|
|
723
|
+
writeFileSync(join(codexPromptsDir, "patchcord.md"), skillSrc.replace(/^(---\n[\s\S]*?---\n)/, `$1${codexNote}\n`));
|
|
722
724
|
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(codexPromptsDir, "patchcord-wait.md"));
|
|
723
725
|
console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
|
|
724
726
|
console.log(` ${green}✓${r} Slash commands: ${dim}/patchcord${r}, ${dim}/patchcord-wait${r}`);
|