patchcord 0.5.91 → 0.5.92
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 -3
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -2141,15 +2141,16 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
2143
|
// Warn about gitignore for per-project configs with tokens
|
|
2144
|
-
if (!isWindsurf && !isGemini && !isZed && !isOpenClaw && !isAntigravity && !isCline
|
|
2144
|
+
if (!isWindsurf && !isGemini && !isZed && !isOpenClaw && !isAntigravity && !isCline) {
|
|
2145
2145
|
const gitignorePath = join(cwd, ".gitignore");
|
|
2146
|
-
const configFile = isCodex ? ".codex/config.toml" : isCursor ? ".cursor/mcp.json" : isVSCode ? ".vscode/mcp.json" : isOpenCode ? "opencode.json" : ".mcp.json";
|
|
2146
|
+
const configFile = isKimi ? ".kimi/mcp.json" : isCodex ? ".codex/config.toml" : isCursor ? ".cursor/mcp.json" : isVSCode ? ".vscode/mcp.json" : isOpenCode ? "opencode.json" : ".mcp.json";
|
|
2147
2147
|
let needsWarning = true;
|
|
2148
2148
|
if (existsSync(gitignorePath)) {
|
|
2149
2149
|
const gi = readFileSync(gitignorePath, "utf-8");
|
|
2150
2150
|
// Only check patterns relevant to this agent's config file
|
|
2151
2151
|
const patterns = [configFile];
|
|
2152
|
-
if (
|
|
2152
|
+
if (isKimi) patterns.push(".kimi/");
|
|
2153
|
+
else if (isCodex) patterns.push(".codex/");
|
|
2153
2154
|
else if (isCursor) patterns.push(".cursor/");
|
|
2154
2155
|
else if (isVSCode) patterns.push(".vscode/");
|
|
2155
2156
|
if (patterns.some(p => gi.includes(p))) needsWarning = false;
|