patchcord 0.3.32 → 0.3.33
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 +7 -2
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -489,7 +489,7 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
489
489
|
console.log(` ${green}✓${r} Tool auto-approval configured`);
|
|
490
490
|
console.log(` ${yellow}Global config — all Gemini CLI projects share this agent.${r}`);
|
|
491
491
|
} else if (isCodex) {
|
|
492
|
-
// Codex: copy skill + write config
|
|
492
|
+
// Codex: copy skill + write config + install slash commands
|
|
493
493
|
const dest = join(cwd, ".agents", "skills", "patchcord");
|
|
494
494
|
mkdirSync(dest, { recursive: true });
|
|
495
495
|
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(dest, "SKILL.md"));
|
|
@@ -502,8 +502,13 @@ if (!cmd || cmd === "install" || cmd === "agent") {
|
|
|
502
502
|
existing = existing.trimEnd() + `\n\n[mcp_servers.patchcord]\nurl = "${serverUrl}/mcp/bearer"\nhttp_headers = { "Authorization" = "Bearer ${token}", "X-Patchcord-Client-Type" = "codex" }\n`;
|
|
503
503
|
writeFileSync(configPath, existing);
|
|
504
504
|
}
|
|
505
|
+
// Slash commands (.codex/prompts/)
|
|
506
|
+
const codexPromptsDir = join(codexDir, "prompts");
|
|
507
|
+
mkdirSync(codexPromptsDir, { recursive: true });
|
|
508
|
+
cpSync(join(pluginRoot, "skills", "inbox", "SKILL.md"), join(codexPromptsDir, "patchcord.md"));
|
|
509
|
+
cpSync(join(pluginRoot, "skills", "wait", "SKILL.md"), join(codexPromptsDir, "patchcord-wait.md"));
|
|
505
510
|
console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
|
|
506
|
-
console.log(` ${green}✓${r}
|
|
511
|
+
console.log(` ${green}✓${r} Slash commands: ${dim}/patchcord${r}, ${dim}/patchcord-wait${r}`);
|
|
507
512
|
} else {
|
|
508
513
|
// Claude Code: write .mcp.json
|
|
509
514
|
const mcpPath = join(cwd, ".mcp.json");
|