pleumrouter 0.5.11 → 0.5.12

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/package.json +1 -1
  2. package/src/menu.mjs +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pleumrouter",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "Official PleumRouter terminal CLI — launch any coding agent against PleumRouter.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/menu.mjs CHANGED
@@ -142,7 +142,9 @@ async function ensureInstalled(r) {
142
142
  }
143
143
  console.log(style.dim(`$ ${r.install}`));
144
144
  const code = await new Promise((res) => {
145
- const c = spawn(r.install, { shell: true, stdio: "inherit" });
145
+ const [cmd, ...args] = r.install.trim().split(/\s+/);
146
+ const bin = process.platform === "win32" && (cmd === "npm" || cmd === "npx" || cmd === "yarn" || cmd === "pnpm") ? `${cmd}.cmd` : cmd;
147
+ const c = spawn(bin, args, { stdio: "inherit" });
146
148
  c.on("exit", (n) => res(n ?? 1));
147
149
  c.on("error", () => res(1));
148
150
  });