pleumrouter 0.5.47 → 0.5.48

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.47",
3
+ "version": "0.5.48",
4
4
  "description": "Official PleumRouter terminal CLI — launch any coding agent against PleumRouter.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,13 +49,14 @@ _pleum() {
49
49
  _pleum "$@"`;
50
50
  }
51
51
 
52
- export function completion(shell) {
52
+ export function completion(shell, platform = process.platform) {
53
53
  if (shell === "bash") return void console.log(bash());
54
54
  if (shell === "zsh") return void console.log(zsh());
55
55
  console.error(
56
56
  t("Usage: pleum completion <zsh|bash>") + "\n" +
57
57
  ` zsh: eval "$(pleum completion zsh)" (${t("or add to ~/.zshrc")})\n` +
58
- ` bash: eval "$(pleum completion bash)" (${t("or add to ~/.bashrc")})`,
58
+ ` bash: eval "$(pleum completion bash)" (${t("or add to ~/.bashrc")})` +
59
+ (platform === "win32" ? `\n${t("PowerShell and cmd completion are not supported; use Git Bash or WSL.")}` : ""),
59
60
  );
60
61
  process.exit(1);
61
62
  }
package/src/install.mjs CHANGED
@@ -82,9 +82,12 @@ function runCurlPipe(pipe, spawnImpl, resolve) {
82
82
  export async function runInstallCommand(install, {
83
83
  spawnImpl = spawn,
84
84
  resolve = resolveLaunchCommand,
85
+ platform = process.platform,
85
86
  } = {}) {
86
87
  const parsed = parseInstallCommand(install);
87
88
  if (parsed.manual) return { manual: true, reason: parsed.reason, code: null };
89
+ // Windows엔 sh/bash가 없다 — curl|sh는 시도하지 않고 수동 안내로 넘긴다.
90
+ if (parsed.pipe && platform === "win32") return { manual: true, reason: "windows-pipe", code: null };
88
91
  if (parsed.pipe) {
89
92
  return { manual: false, code: await runCurlPipe(parsed.pipe, spawnImpl, resolve) };
90
93
  }
@@ -193,6 +193,8 @@ export const ES = {
193
193
  "Update CLI": "Actualizar la CLI",
194
194
  "Usage": "Uso",
195
195
  "Usage: pleum completion <zsh|bash>": "Uso: pleum completion <zsh|bash>",
196
+ "{tool}: wire needs a zsh/bash shell and is not supported on Windows. Use `pleum launch {tool}` instead.": "{tool}: wire necesita un shell zsh/bash y no es compatible con Windows. Usa `pleum launch {tool}` en su lugar.",
197
+ "PowerShell and cmd completion are not supported; use Git Bash or WSL.": "El autocompletado para PowerShell y cmd no es compatible; usa Git Bash o WSL.",
196
198
  "Usage: pleum launch <tool> [--model id] [-- tool args]\n": "Uso: pleum launch <tool> [--model id] [-- tool args]\n",
197
199
  "Usage: pleum models <model-id> --info": "Uso: pleum models <model-id> --info",
198
200
  "Usage: pleum run <model> [\"prompt\"]\nModel list: pleum models": "Uso: pleum run <model> [\"prompt\"]\nLista de modelos: pleum models",
@@ -191,6 +191,8 @@ export const JA = {
191
191
  "Update CLI": "CLIを更新",
192
192
  "Usage": "使用状況",
193
193
  "Usage: pleum completion <zsh|bash>": "使い方: pleum completion <zsh|bash>",
194
+ "{tool}: wire needs a zsh/bash shell and is not supported on Windows. Use `pleum launch {tool}` instead.": "{tool}: wire は zsh/bash シェルが必要なため Windows では使えません。代わりに `pleum launch {tool}` を使ってください。",
195
+ "PowerShell and cmd completion are not supported; use Git Bash or WSL.": "PowerShell・cmd の補完には対応していません。Git Bash か WSL を使ってください。",
194
196
  "Usage: pleum launch <tool> [--model id] [-- tool args]\n": "使い方: pleum launch <tool> [--model id] [-- tool args]\n",
195
197
  "Usage: pleum models <model-id> --info": "使い方: pleum models <model-id> --info",
196
198
  "Usage: pleum run <model> [\"prompt\"]\nModel list: pleum models": "使い方: pleum run <model> [\"prompt\"]\nモデル一覧: pleum models",
@@ -65,6 +65,8 @@ export const KO = {
65
65
 
66
66
  // completion.mjs
67
67
  "Usage: pleum completion <zsh|bash>": "사용법: pleum completion <zsh|bash>",
68
+ "{tool}: wire needs a zsh/bash shell and is not supported on Windows. Use `pleum launch {tool}` instead.": "{tool}: wire는 zsh/bash 셸이 필요해 Windows에서 지원하지 않습니다. 대신 `pleum launch {tool}`을 사용하세요.",
69
+ "PowerShell and cmd completion are not supported; use Git Bash or WSL.": "PowerShell·cmd 자동완성은 지원하지 않습니다. Git Bash나 WSL을 사용하세요.",
68
70
  "or add to ~/.zshrc": "또는 ~/.zshrc에 추가",
69
71
  "or add to ~/.bashrc": "또는 ~/.bashrc에 추가",
70
72
  "or add _pleum to fpath": "또는 fpath에 _pleum로 추가",
@@ -193,6 +193,8 @@ export const ZH = {
193
193
  "Update CLI": "更新 CLI",
194
194
  "Usage": "用量",
195
195
  "Usage: pleum completion <zsh|bash>": "用法:pleum completion <zsh|bash>",
196
+ "{tool}: wire needs a zsh/bash shell and is not supported on Windows. Use `pleum launch {tool}` instead.": "{tool}:wire 需要 zsh/bash shell,不支持 Windows。请改用 `pleum launch {tool}`。",
197
+ "PowerShell and cmd completion are not supported; use Git Bash or WSL.": "不支持 PowerShell 和 cmd 自动补全,请使用 Git Bash 或 WSL。",
196
198
  "Usage: pleum launch <tool> [--model id] [-- tool args]\n": "用法:pleum launch <tool> [--model id] [-- tool args]\n",
197
199
  "Usage: pleum models <model-id> --info": "用法:pleum models <model-id> --info",
198
200
  "Usage: pleum run <model> [\"prompt\"]\nModel list: pleum models": "用法:pleum run <model> [\"prompt\"]\n模型列表:pleum models",
package/src/wire.mjs CHANGED
@@ -895,7 +895,13 @@ function originalValues(tool, paths, state, text) {
895
895
  return fromText ?? pickPrevious(tool, readText(paths[`${tool}Bak`])) ?? {};
896
896
  }
897
897
 
898
- export function applyToolWiring(tool, paths, { key, model, models = [], billingOnly = false, activeContext } = {}) {
898
+ // 셸 rc 래퍼 없이 설정 파일만으로 배선되는 도구. 나머지는 zsh/bash rc가 필요해 Windows에서 효과가 없다.
899
+ const FILE_WIRED_TOOLS = new Set(["claude", "codex", "opencode", "aider", "crush", "pi"]);
900
+
901
+ export function applyToolWiring(tool, paths, { key, model, models = [], billingOnly = false, activeContext, platform = process.platform } = {}) {
902
+ if (platform === "win32" && !FILE_WIRED_TOOLS.has(tool)) {
903
+ throw new Error(t("{tool}: wire needs a zsh/bash shell and is not supported on Windows. Use `pleum launch {tool}` instead.", { tool }));
904
+ }
899
905
  const state = readWiredState(paths);
900
906
  const mode = billingOnly ? "billing" : (models.length > 0 ? "list" : (model ? "custom" : "billing"));
901
907
  let previous; // claude·agy가 덮어쓰는 사용자 원래 값 — unwire가 복원한다