patchcord 0.3.68 → 0.3.69
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 +5 -4
- 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 (
|
|
230
|
-
|
|
231
|
-
|
|
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
|
|