@pkgseer/cli 0.1.4 → 0.1.5
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/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
version
|
|
4
|
-
} from "./shared/chunk-
|
|
4
|
+
} from "./shared/chunk-0fnprry7.js";
|
|
5
5
|
|
|
6
6
|
// src/cli.ts
|
|
7
7
|
import { Command } from "commander";
|
|
@@ -2586,22 +2586,13 @@ function getCodexConfigPaths(fs, scope) {
|
|
|
2586
2586
|
function getClaudeCodeConfigPaths(fs, scope) {
|
|
2587
2587
|
if (scope === "project") {
|
|
2588
2588
|
const cwd = fs.getCwd();
|
|
2589
|
-
const configPath2 = fs.joinPath(cwd, ".
|
|
2590
|
-
const backupPath2 = fs.joinPath(cwd, ".
|
|
2589
|
+
const configPath2 = fs.joinPath(cwd, ".mcp.json");
|
|
2590
|
+
const backupPath2 = fs.joinPath(cwd, ".mcp.json.bak");
|
|
2591
2591
|
return { configPath: configPath2, backupPath: backupPath2 };
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
if (platform === "win32") {
|
|
2597
|
-
const appData = process.env.APPDATA || fs.joinPath(fs.getHomeDir(), "AppData", "Roaming");
|
|
2598
|
-
configPath = fs.joinPath(appData, "Claude Code", "mcp.json");
|
|
2599
|
-
backupPath = fs.joinPath(appData, "Claude Code", "mcp.json.bak");
|
|
2600
|
-
} else {
|
|
2601
|
-
const home = fs.getHomeDir();
|
|
2602
|
-
configPath = fs.joinPath(home, ".claude-code", "mcp.json");
|
|
2603
|
-
backupPath = fs.joinPath(home, ".claude-code", "mcp.json.bak");
|
|
2604
|
-
}
|
|
2593
|
+
const home = fs.getHomeDir();
|
|
2594
|
+
const configPath = fs.joinPath(home, ".claude.json");
|
|
2595
|
+
const backupPath = fs.joinPath(home, ".claude.json.bak");
|
|
2605
2596
|
return { configPath, backupPath };
|
|
2606
2597
|
}
|
|
2607
2598
|
async function parseConfigFile(fs, path) {
|
|
@@ -2685,8 +2676,8 @@ args = ["-y", "@pkgseer/cli", "mcp", "start"]`;
|
|
|
2685
2676
|
};
|
|
2686
2677
|
console.log(JSON.stringify(configExample, null, 2));
|
|
2687
2678
|
}
|
|
2688
|
-
if ((tool === "cursor" || tool === "codex"
|
|
2689
|
-
const dirName = tool === "cursor" ? ".cursor" :
|
|
2679
|
+
if ((tool === "cursor" || tool === "codex") && scope === "project") {
|
|
2680
|
+
const dirName = tool === "cursor" ? ".cursor" : ".codex";
|
|
2690
2681
|
console.log(dim(`
|
|
2691
2682
|
Note: Create the ${dirName} directory if it doesn't exist.`, useColors));
|
|
2692
2683
|
}
|
|
@@ -2743,8 +2734,8 @@ Run ${highlight("pkgseer project init", useColors)} first, then ${highlight("pkg
|
|
|
2743
2734
|
}
|
|
2744
2735
|
let scope;
|
|
2745
2736
|
if (tool === "cursor" || tool === "codex" || tool === "claude-code") {
|
|
2746
|
-
const projectPath = tool === "cursor" ? ".cursor/mcp.json" : tool === "codex" ? ".codex/config.toml" : ".
|
|
2747
|
-
const globalPath = tool === "cursor" ? "~/.cursor/mcp.json" : tool === "codex" ? "~/.codex/config.toml" : "~/.claude
|
|
2737
|
+
const projectPath = tool === "cursor" ? ".cursor/mcp.json" : tool === "codex" ? ".codex/config.toml" : ".mcp.json";
|
|
2738
|
+
const globalPath = tool === "cursor" ? "~/.cursor/mcp.json" : tool === "codex" ? "~/.codex/config.toml" : "~/.claude.json";
|
|
2748
2739
|
if (hasProject) {
|
|
2749
2740
|
scope = await promptService.select("Where should the MCP config be created?", [
|
|
2750
2741
|
{
|
package/dist/index.js
CHANGED