pro-app 0.1.1 → 0.1.2

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/bin/proapp.js +5 -2
  2. package/package.json +1 -1
package/bin/proapp.js CHANGED
@@ -17,9 +17,12 @@ const APPS = [
17
17
  remove: ['mcp', 'remove', NAME] },
18
18
  ];
19
19
 
20
- const run = (bin, args, quiet = false) => spawnSync(bin, args, { stdio: quiet ? 'ignore' : 'inherit', shell: false });
20
+ // On Windows, npm installs CLIs as .cmd/.ps1 shims that can only be started through a
21
+ // shell. Every argument here is a fixed string (no user input), so this is safe.
22
+ const SHELL = process.platform === 'win32';
23
+ const run = (bin, args, quiet = false) => spawnSync(bin, args, { stdio: quiet ? 'ignore' : 'inherit', shell: SHELL });
21
24
  const installed = (bin) => {
22
- const probe = spawnSync(bin, ['--version'], { stdio: 'ignore', shell: false });
25
+ const probe = spawnSync(bin, ['--version'], { stdio: 'ignore', shell: SHELL });
23
26
  return !probe.error && probe.status === 0;
24
27
  };
25
28
  const fail = (message) => { console.error(message); process.exit(1); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pro-app",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Connect Claude Code or Codex to your PROApp workspace.",
5
5
  "bin": {
6
6
  "pro-app": "bin/proapp.js"