@cccarv82/freya 3.7.2 → 3.7.3

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.
Files changed (2) hide show
  1. package/cli/web.js +2 -8
  2. package/package.json +1 -1
package/cli/web.js CHANGED
@@ -909,14 +909,8 @@ function run(cmd, args, cwd, extraEnv, stdinData) {
909
909
  const env = extraEnv ? { ...process.env, ...extraEnv } : process.env;
910
910
 
911
911
  try {
912
- // On Windows, reliably execute CLI tools through cmd.exe.
913
- // This ensures PATH resolution works for tools like copilot, gh, npx, npm.
914
- if (process.platform === 'win32') {
915
- const comspec = process.env.ComSpec || 'cmd.exe';
916
- child = spawn(comspec, ['/d', '/s', '/c', cmd, ...args], { cwd, shell: false, env });
917
- } else {
918
- child = spawn(cmd, args, { cwd, shell: false, env });
919
- }
912
+ // Use shell: true on all platforms ensures .cmd/.bat shims (npm globals) are found on Windows
913
+ child = spawn(cmd, args, { cwd, shell: true, env, windowsHide: true });
920
914
  } catch (e) {
921
915
  return resolve({ code: 1, stdout: '', stderr: e.message || String(e) });
922
916
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js && node scripts/validate-structure.js",