fraim 2.0.136 → 2.0.137

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.
@@ -261,8 +261,10 @@ function hubCommandVersion(command) {
261
261
  }
262
262
  function hubRunProcess(command, args, env) {
263
263
  return new Promise((resolve, reject) => {
264
- const executable = process.platform === 'win32' && command === 'npm' ? 'npm.cmd' : command;
265
- const child = (0, child_process_1.spawn)(executable, args, {
264
+ const [realCmd, realArgs] = process.platform === 'win32'
265
+ ? ['cmd.exe', ['/d', '/s', '/c', command, ...args]]
266
+ : [command, args];
267
+ const child = (0, child_process_1.spawn)(realCmd, realArgs, {
266
268
  env: { ...process.env, ...env },
267
269
  stdio: ['ignore', 'pipe', 'pipe'],
268
270
  });
@@ -62,13 +62,10 @@ const detectWindsurf = () => {
62
62
  return checkMultiplePaths(paths);
63
63
  };
64
64
  const detectGeminiCli = () => {
65
- const paths = [
66
- '~/.gemini/settings.json',
67
- '~/.gemini',
68
- '~/AppData/Roaming/gemini/settings.json',
69
- '~/.config/gemini/settings.json'
70
- ];
71
- return checkMultiplePaths(paths) || availableByVersionProbe('gemini');
65
+ // Require the binary to be in PATH. The ~/.gemini directory alone is not
66
+ // sufficient — it exists when only Antigravity or other Gemini-adjacent
67
+ // tools are installed, which would produce a false positive.
68
+ return availableByVersionProbe('gemini');
72
69
  };
73
70
  exports.IDE_CONFIGS = [
74
71
  {
@@ -168,7 +165,7 @@ exports.IDE_CONFIGS = [
168
165
  configFormat: 'toml',
169
166
  configType: 'codex',
170
167
  invocationProfile: 'codex-skill',
171
- detectMethod: () => fs_1.default.existsSync(expandPath('~/.codex')),
168
+ detectMethod: () => availableByVersionProbe('codex'),
172
169
  description: 'Codex AI development environment'
173
170
  },
174
171
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fraim",
3
- "version": "2.0.136",
3
+ "version": "2.0.137",
4
4
  "description": "FRAIM CLI - Framework for Rigor-based AI Management (alias for fraim-framework)",
5
5
  "main": "index.js",
6
6
  "bin": {