@cg3/equip 0.2.4 → 0.2.6

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/equip.js CHANGED
@@ -44,7 +44,7 @@ if (!entry) {
44
44
 
45
45
  // Spawn: npx -y <package> <command> [...extraArgs]
46
46
  const npxCmd = process.platform === "win32" ? "npx.cmd" : "npx";
47
- const child = spawn(npxCmd, ["-y", entry.package, entry.command, ...extraArgs], {
47
+ const child = spawn(npxCmd, ["-y", `${entry.package}@latest`, entry.command, ...extraArgs], {
48
48
  stdio: "inherit",
49
49
  shell: process.platform === "win32",
50
50
  env: { ...process.env, EQUIP_VERSION },
package/lib/detect.js CHANGED
@@ -7,7 +7,7 @@ const fs = require("fs");
7
7
  const path = require("path");
8
8
  const os = require("os");
9
9
  const { execSync } = require("child_process");
10
- const { getVsCodeMcpPath, getVsCodeUserDir, getClineConfigPath, getRooConfigPath, getCodexConfigPath, getGeminiSettingsPath } = require("./platforms");
10
+ const { getVsCodeMcpPath, getVsCodeUserDir, getClineConfigPath, getRooConfigPath, getCodexConfigPath, getGeminiSettingsPath, getJunieMcpPath } = require("./platforms");
11
11
  const { readMcpEntry } = require("./mcp");
12
12
 
13
13
  // ─── Helpers ─────────────────────────────────────────────────
@@ -182,6 +182,22 @@ function detectPlatforms(serverName) {
182
182
  });
183
183
  }
184
184
 
185
+ // Junie (JetBrains CLI)
186
+ const junieDir = path.join(home, ".junie");
187
+ const junieMcpPath = getJunieMcpPath();
188
+ if (whichSync("junie") || dirExists(junieDir)) {
189
+ platforms.push({
190
+ platform: "junie",
191
+ version: cliVersion("junie") || "unknown",
192
+ configPath: junieMcpPath,
193
+ rulesPath: null, // Junie guidelines are project-scoped only
194
+ existingMcp: serverName ? readMcpEntry(junieMcpPath, "mcpServers", serverName) : null,
195
+ hasCli: !!whichSync("junie"),
196
+ rootKey: "mcpServers",
197
+ configFormat: "json",
198
+ });
199
+ }
200
+
185
201
  return platforms;
186
202
  }
187
203
 
package/lib/platforms.js CHANGED
@@ -39,6 +39,11 @@ function getGeminiSettingsPath() {
39
39
  return path.join(home, ".gemini", "settings.json");
40
40
  }
41
41
 
42
+ function getJunieMcpPath() {
43
+ const home = os.homedir();
44
+ return path.join(home, ".junie", "mcp", "mcp.json");
45
+ }
46
+
42
47
  // ─── Platform Registry ──────────────────────────────────────
43
48
 
44
49
  /**
@@ -97,6 +102,12 @@ function createManualPlatform(platformId) {
97
102
  rootKey: "mcpServers",
98
103
  configFormat: "json",
99
104
  },
105
+ junie: {
106
+ configPath: getJunieMcpPath(),
107
+ rulesPath: null, // Junie: .junie/guidelines.md is project-scoped only, no global rules file
108
+ rootKey: "mcpServers",
109
+ configFormat: "json",
110
+ },
100
111
  };
101
112
 
102
113
  const def = configs[platformId];
@@ -120,6 +131,7 @@ function platformName(id) {
120
131
  "roo-code": "Roo Code",
121
132
  codex: "Codex",
122
133
  "gemini-cli": "Gemini CLI",
134
+ junie: "Junie",
123
135
  };
124
136
  return names[id] || id;
125
137
  }
@@ -127,7 +139,7 @@ function platformName(id) {
127
139
  /**
128
140
  * All known platform IDs.
129
141
  */
130
- const KNOWN_PLATFORMS = ["claude-code", "cursor", "windsurf", "vscode", "cline", "roo-code", "codex", "gemini-cli"];
142
+ const KNOWN_PLATFORMS = ["claude-code", "cursor", "windsurf", "vscode", "cline", "roo-code", "codex", "gemini-cli", "junie"];
131
143
 
132
144
  module.exports = {
133
145
  getVsCodeUserDir,
@@ -136,6 +148,7 @@ module.exports = {
136
148
  getRooConfigPath,
137
149
  getCodexConfigPath,
138
150
  getGeminiSettingsPath,
151
+ getJunieMcpPath,
139
152
  createManualPlatform,
140
153
  platformName,
141
154
  KNOWN_PLATFORMS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/equip",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Universal MCP + behavioral rules installer for AI coding agents",
5
5
  "main": "index.js",
6
6
  "bin": {