pleumrouter 0.5.10 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pleumrouter",
3
- "version": "0.5.10",
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/config.mjs CHANGED
@@ -3,8 +3,10 @@ import { join } from "node:path";
3
3
  import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
4
4
  import { t } from "./i18n.mjs";
5
5
 
6
- // 공개 게이트웨이 루트. 셀프호스트/스테이징은 PLEUM_BASE_URL로 덮어쓴다.
7
- export const ROOT = (process.env.PLEUM_BASE_URL ?? "https://router.pleum.ai")
6
+ // 공개 게이트웨이 루트(canonical API). /v1/* 를 Next.js Route Handler 가 프록시하는
7
+ // router.pleum.ai 와 달리, 이 도메인은 백엔드에 직접 붙는다 — /v1beta/* (Gemini native)
8
+ // 경로도 라우팅된다. 셀프호스트/스테이징은 PLEUM_BASE_URL로 덮어쓴다.
9
+ export const ROOT = (process.env.PLEUM_BASE_URL ?? "https://apirouter.pleum.ai")
8
10
  .replace(/\/+$/, "")
9
11
  .replace(/\/v1$/, ""); // 사용자가 실수로 /v1까지 붙여도 V1이 /v1/v1 이중 경로가 되지 않게 정리(L12)
10
12
  // OpenAI 호환 엔드포인트는 /v1. (Claude Code만 루트를 쓴다 — recipes 참고)
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
  });