@vibeapi/api-helper 0.0.147 → 0.0.149

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 (47) hide show
  1. package/components.json +157 -0
  2. package/dist/brand.json +2 -1
  3. package/dist/commands/components.d.ts +26 -0
  4. package/dist/commands/components.js +1 -0
  5. package/dist/commands/doctor.js +1 -1
  6. package/dist/commands/setup.d.ts +4 -3
  7. package/dist/commands/setup.js +1 -1
  8. package/dist/commands/upgrade.d.ts +7 -3
  9. package/dist/commands/upgrade.js +1 -1
  10. package/dist/components.json +157 -0
  11. package/dist/lib/app-update.d.ts +46 -6
  12. package/dist/lib/app-update.js +1 -1
  13. package/dist/lib/brand.d.ts +2 -0
  14. package/dist/lib/brand.js +1 -1
  15. package/dist/lib/codex-sessions.js +1 -1
  16. package/dist/lib/components.d.ts +204 -0
  17. package/dist/lib/components.js +1 -0
  18. package/dist/lib/dry-run.js +1 -1
  19. package/dist/lib/i18n.js +1 -1
  20. package/dist/lib/post-apply.js +1 -1
  21. package/dist/lib/powershell-env.d.ts +12 -0
  22. package/dist/lib/powershell-env.js +1 -0
  23. package/dist/lib/program.js +1 -1
  24. package/dist/lib/runtime-options.d.ts +5 -0
  25. package/dist/lib/runtime-options.js +1 -1
  26. package/dist/lib/tool-upgrade.d.ts +2 -0
  27. package/dist/lib/tool-upgrade.js +1 -1
  28. package/dist/lib/tools/chatgpt-desktop.d.ts +45 -0
  29. package/dist/lib/tools/chatgpt-desktop.js +1 -0
  30. package/dist/lib/tools/claude-desktop-app.d.ts +17 -58
  31. package/dist/lib/tools/claude-desktop-app.js +1 -1
  32. package/dist/lib/tools/claude-desktop-cli.js +1 -1
  33. package/dist/lib/tools/claude-desktop.js +1 -1
  34. package/dist/lib/tools/codex.js +1 -1
  35. package/dist/lib/tools/desktop-app-installer.d.ts +102 -0
  36. package/dist/lib/tools/desktop-app-installer.js +1 -0
  37. package/dist/lib/tools/desktop-process.d.ts +4 -1
  38. package/dist/lib/tools/desktop-process.js +1 -1
  39. package/dist/lib/tools/elevated-reg.js +1 -1
  40. package/dist/lib/tools/tool-installs.d.ts +8 -0
  41. package/dist/lib/tools/tool-installs.js +1 -1
  42. package/dist/lib/tools/types.d.ts +32 -4
  43. package/dist/lib/windows-env.js +1 -1
  44. package/dist/lib/wizard.js +1 -1
  45. package/dist/locales/en_US.json +152 -12
  46. package/dist/locales/zh_CN.json +152 -12
  47. package/package.json +2 -1
@@ -366,7 +366,7 @@
366
366
  "gui_preconfigured": "{{tool}} is not installed yet; its config is written already, so it works once you install and open it (download: {{install}})",
367
367
  "validate_failed": "Couldn't validate the API key for {{label}}: {{reason}}",
368
368
  "skip_no_claude_desktop": "This API key has no Claude model group; skipped Claude Code and Claude Desktop",
369
- "install_app_confirm": "Install {{tools}}? (about 300 MB from the download site)",
369
+ "install_app_confirm": "Install {{tools}}? (about {{size}} MB from the download site)",
370
370
  "install_app_hint": "{{tool}} isn't installed: run {{command}} to install it (its config is ready, so it works once opened)"
371
371
  },
372
372
  "tools": {
@@ -462,6 +462,83 @@
462
462
  "native_mirror_failed": "Couldn't replace from the mirror: {{reason}}",
463
463
  "install_label": "{{kind}} {{version}} ({{path}})"
464
464
  },
465
+ "components": {
466
+ "category": {
467
+ "runtime": "Runtimes",
468
+ "cli": "Command-line tools",
469
+ "app": "Desktop apps"
470
+ },
471
+ "col": {
472
+ "name": "Component",
473
+ "current": "Installed",
474
+ "latest": "Latest",
475
+ "managed": "Installed by",
476
+ "state": "State"
477
+ },
478
+ "by": {
479
+ "fnm": "fnm",
480
+ "brew": "Homebrew",
481
+ "nvm": "nvm",
482
+ "volta": "Volta",
483
+ "scoop": "Scoop",
484
+ "asdf": "asdf",
485
+ "mise": "mise",
486
+ "system": "system",
487
+ "standalone": "standalone",
488
+ "pipx": "pipx",
489
+ "pip": "pip",
490
+ "winget": "winget",
491
+ "git-for-windows-user": "Git for Windows (this user)",
492
+ "git-for-windows": "Git for Windows",
493
+ "xcode": "Apple Command Line Tools",
494
+ "native": "native",
495
+ "npm": "npm",
496
+ "app": "app",
497
+ "other": "other"
498
+ },
499
+ "state": {
500
+ "unsupported": "not available on this system",
501
+ "missing": "not installed: {{command}}",
502
+ "outdated_auto": "upgrade available: {{command}}",
503
+ "outdated_manual": "upgrade available: {{how}}",
504
+ "latest": "up to date",
505
+ "unknown_latest": "installed"
506
+ },
507
+ "source": "Source: {{source}}",
508
+ "latest_unknown": "Couldn't check the latest version of: {{tools}} (try {{cli}} list --refresh later)",
509
+ "unknown": "Unknown component: {{names}}",
510
+ "known": "Components: {{ids}}",
511
+ "unsupported_platform": "{{tool}} isn't available on this system",
512
+ "blocked_sudo": "Don't install {{tool}} with sudo: it would go into root's home directory and belong to root. Run it again without sudo",
513
+ "blocked_system": "This is the SYSTEM account; {{tool}} would go into the system profile. Run it again signed in as the person who uses it",
514
+ "blocked_unsupported_platform": "{{tool}} isn't available on this system",
515
+ "reason_sudo": "not with sudo",
516
+ "reason_system": "SYSTEM account",
517
+ "reason_unsupported_platform": "not available on this system",
518
+ "no_mirror": "Can't install {{tool}}: no install script location is configured",
519
+ "already_installed": "{{tool}} {{current}} is installed",
520
+ "up_to_date": "{{tool}} {{current}} is up to date",
521
+ "force_hint": "To reinstall it, run {{command}}",
522
+ "outdated_auto": "{{tool}} {{current}} can be upgraded to {{latest}}: run {{command}}",
523
+ "outdated_manual": "{{tool}} {{current}} can be upgraded to {{latest}}. It was installed with {{by}}, which {{cli}} leaves alone: run {{how}}; to add a copy {{cli}} manages, run {{command}}",
524
+ "no_latest": "{{tool}} {{current}} is managed by the system, {{cli}} doesn't upgrade it: {{how}}",
525
+ "how_system": "upgrade it the way it was installed (system package manager or the official installer), or add --force for a copy {{cli}} manages",
526
+ "how_xcode": "update the Command Line Tools in System Settings → General → Software Update",
527
+ "how_other": "upgrade it the way it was installed",
528
+ "force_beside": "{{tool}} is already at {{path}} (installed with {{by}}); --force adds a copy {{cli}} manages",
529
+ "installing": "Installing {{tool}} {{latest}} ({{source}})…",
530
+ "upgrading": "Upgrading {{tool}} to {{latest}} ({{source}})…",
531
+ "script_failed": "{{tool}} wasn't installed; see above. Then run {{command}}",
532
+ "installed": "Installed {{tool}} {{version}}",
533
+ "upgraded": "Upgraded {{tool}} from {{from}} to {{to}}",
534
+ "reinstalled": "Reinstalled {{tool}} {{version}}",
535
+ "reinstalling": "Reinstalling {{tool}} (--force; now {{current}})",
536
+ "path_shadowed": "Your terminal finds {{active}} first, not the {{tool}} {{version}} just installed ({{path}}): put the latter's directory earlier on PATH, or remove the former",
537
+ "capped": "{{tool}} {{latest}} doesn't run on this computer; the install script put in the newest one that does ({{version}}). Upgrades are offered again once a newer version is out",
538
+ "new_terminal": "Open a new terminal window to use it",
539
+ "migrating_globals": "The new Node doesn't have the packages installed globally before; installing the same versions: {{packages}}",
540
+ "migrate_failed": "Not all global packages made it to the new Node; run: {{command}}"
541
+ },
465
542
  "install": {
466
543
  "permission_unix": "npm probably cannot write its global directory. Either ① sudo {{command}}; or ② run npm config set prefix ~/.npm-global, add export PATH=~/.npm-global/bin:$PATH to ~/.zshrc or ~/.bashrc, open a new terminal and run {{command}}",
467
544
  "permission_windows": "Probably missing permissions or a file in use: close the tool if it is running, open an elevated terminal and run {{command}}",
@@ -851,22 +928,66 @@
851
928
  "doctor": "Check the common problems first"
852
929
  }
853
930
  },
931
+ "list": {
932
+ "summary": "List the runtimes, command-line tools and desktop apps {{cli}} can install, and which versions are installed",
933
+ "description": "Lists Node.js, Git, uv, Claude Code, Codex, Grok Build, Antigravity CLI, Claude Desktop and ChatGPT: installed or not, the installed and the latest version, how it was installed and where it comes from. Latest versions are cached for an hour; --refresh checks again now.",
934
+ "when": "To see which tools this computer has and which can be upgraded.",
935
+ "alt": {
936
+ "doctor": "Check the API key and each tool's config"
937
+ },
938
+ "opt": {
939
+ "refresh": "Check the latest versions again instead of using the cache"
940
+ },
941
+ "ex": {
942
+ "all": "List every component",
943
+ "refresh": "Check the latest versions again",
944
+ "json": "JSON output for scripts"
945
+ }
946
+ },
947
+ "install": {
948
+ "summary": "Install runtimes (Node.js, Git, uv), command-line tools or desktop apps",
949
+ "description": "Installs missing components from China-reachable mirrors, checking checksums (and, for desktop apps, the vendor's signature). One that is already installed is left as it is: its version is shown, with the upgrade command when it is behind; --force reinstalls it.\nNode.js, Git and uv are installed into your own user directory by {{brand}}'s install scripts, no administrator needed; don't use sudo. Several components can be given; what they depend on is installed first.",
950
+ "arg": {
951
+ "components": "node, git, uv, claude-code, codex, grok, agy, claude-desktop, chatgpt; several allowed"
952
+ },
953
+ "opt": {
954
+ "force": "Reinstall even when it is already installed"
955
+ },
956
+ "when": "To add a tool to this computer; other apps' install scripts can call it too (npx {{package}} install …).",
957
+ "needs": "Node.js on this computer ({{cli}} itself runs on Node); without Node, use the one-line installer first",
958
+ "alt": {
959
+ "upgrade": "Upgrade components that are installed",
960
+ "setup": "Then save your API key and configure the tools"
961
+ },
962
+ "ex": {
963
+ "runtimes": "Install Node.js and uv",
964
+ "clis": "Install Claude Code and Codex",
965
+ "app": "Install the ChatGPT desktop app (contains Codex)",
966
+ "force": "Reinstall uv",
967
+ "json": "Install from a script, JSON output"
968
+ }
969
+ },
854
970
  "upgrade": {
855
- "summary": "Upgrade Claude Code, Codex, Claude Desktop and other coding tools",
856
- "description": "Upgrades each copy the way it was installed: native installs use the tool's own updater, npm installs are reinstalled from the China mirror (npmmirror), Homebrew installs use brew upgrade; if a native or Homebrew upgrade doesn't work, {{brand}}'s install script is used (programs from the China mirror). A named tool that is not installed yet is installed with that script.\nClaude Desktop (macOS / Windows) older than the download site's build is upgraded from the official installer there, after checking its checksum and Anthropic's signature; its own auto-update stays on, {{cli}} only steps in when it falls behind. A running Claude Desktop is only closed after a yes at a terminal; with --yes or without a terminal it is left running and only a hint is printed.\nWith no tool named, upgrades every installed one.\nTo update {{product}} itself, use {{cli}} update.",
971
+ "summary": "Upgrade coding tools, desktop apps and runtimes (Node.js, Git, uv)",
972
+ "description": "Upgrades each copy the way it was installed: native installs use the tool's own updater, npm installs are reinstalled from the China mirror (npmmirror), Homebrew installs use brew upgrade; if a native or Homebrew upgrade doesn't work, {{brand}}'s install script is used (programs from the China mirror). A named tool that is not installed yet is installed with that script.\nClaude Desktop and ChatGPT (with Codex inside; macOS / Windows) older than the download site's build are upgraded from the official installer there, after checking its checksum and the vendor's (Anthropic / OpenAI) signature; their own auto-update stays on, {{cli}} only steps in when they fall behind. A running app is only closed after a yes at a terminal; with --yes or without a terminal it is left running and only a hint is printed. Add --force to reinstall one that is already the latest. ChatGPT for Mac needs Apple silicon.\nNode.js, Git and uv are only upgraded where {{brand}}'s install scripts manage them (Node under fnm, uv in ~/.local/bin, Git for Windows installed for the current user); a copy from Homebrew, nvm, a system package manager … is left alone and the command that upgrades it is shown; --force adds a copy {{cli}} manages. After fnm's Node is upgraded, the npm packages installed globally before are installed into the new one at the same versions.\nWith nothing named, upgrades every installed coding tool and desktop app, and points out runtimes that are behind.\nTo update {{product}} itself, use {{cli}} update.",
857
973
  "arg": {
858
- "tools": "claude-code, codex, grok, agy, claude-desktop; one or more"
974
+ "tools": "claude-code, codex, grok, agy, claude-desktop, chatgpt, node, git, uv; one or more"
859
975
  },
860
976
  "ex": {
861
977
  "all": "Upgrade every installed tool",
862
978
  "one": "Upgrade only Claude Code",
863
979
  "many": "Upgrade Codex and Antigravity CLI",
864
- "desktop": "Install Claude Desktop, or upgrade it to the download site's latest build"
980
+ "desktop": "Install Claude Desktop, or upgrade it to the download site's latest build",
981
+ "force": "Reinstall ChatGPT even though it is the latest (when the app is broken)",
982
+ "runtime": "Upgrade Node.js (fnm-managed; otherwise the command that upgrades it)"
865
983
  },
866
984
  "when": "When {{cli}} doctor reports an old version, or the tool's own updater doesn't finish.",
867
985
  "needs": "Without tool names, only installed tools are upgraded",
868
986
  "alt": {
869
987
  "update": "Update {{product}} itself"
988
+ },
989
+ "opt": {
990
+ "force": "Reinstall desktop apps and runtimes that are already the latest; for a runtime installed another way, add a copy {{cli}} manages"
870
991
  }
871
992
  },
872
993
  "refresh": {
@@ -1061,8 +1182,8 @@
1061
1182
  "not_installed": "not installed; the download site has {{latest}}",
1062
1183
  "outdated": "{{current}} installed, {{latest}} available",
1063
1184
  "up_to_date": "{{current}} (latest)",
1064
- "downloading": "Downloading {{tool}} {{version}} from the download site (about 300 MB)…",
1065
- "verifying": "Checking the checksum and Anthropic's signature…",
1185
+ "downloading": "Downloading {{tool}} {{version}} from the download site (about {{size}} MB)…",
1186
+ "verifying": "Checking the checksum and {{vendor}}'s signature…",
1066
1187
  "installing": "Installing…",
1067
1188
  "already_latest": "{{tool}} is up to date ({{current}})",
1068
1189
  "latest_unknown": "Couldn't look up the latest {{tool}}: {{reason}}",
@@ -1070,13 +1191,15 @@
1070
1191
  "offer_quit": "Quit {{tool}} and upgrade to {{latest}}?",
1071
1192
  "declined_hint": "Not upgraded. Run {{command}} later",
1072
1193
  "quit_failed": "Couldn't quit {{tool}}, so it wasn't upgraded: quit it yourself, then run {{command}}",
1194
+ "quit_confirm_in_app": "{{tool}} didn't quit: it may have a task running or be asking you to confirm. Switch to {{tool}} and confirm the quit there (or quit it once the task is done); the upgrade goes on here (waiting up to {{seconds}} s)…",
1195
+ "quit_refused": "{{tool}} didn't quit, so it wasn't upgraded: it has a task running or is waiting for you to confirm. Confirm the quit in {{tool}} (or quit it once the task is done), then run {{command}}",
1073
1196
  "upgraded": "Upgraded {{tool}} from {{from}} to {{to}}",
1074
1197
  "installed": "Installed {{tool}} {{version}}",
1075
1198
  "upgrade_failed": "Couldn't upgrade {{tool}}: {{reason}}. {{current}} still works; fix the cause, then run {{command}}",
1076
1199
  "install_failed": "Couldn't install {{tool}}: {{reason}}. Fix the cause, then run {{command}}",
1077
- "blocked_unsupported_platform": "On this computer, install {{tool}} from https://claude.ai/download",
1078
- "blocked_no_mirror": "Install {{tool}} from https://claude.ai/download",
1079
- "blocked_classic_install": "This computer has the classic installer build of {{tool}}, which {{cli}} doesn't replace: check for updates in {{tool}}, or uninstall it and run {{cli}} upgrade claude-desktop to get the current build",
1200
+ "blocked_unsupported_platform": "On this computer, install {{tool}} from {{url}}",
1201
+ "blocked_no_mirror": "Install {{tool}} from {{url}}",
1202
+ "blocked_classic_install": "This computer has the classic installer build of {{tool}}, which {{cli}} doesn't replace: check for updates in {{tool}}, or uninstall it and run {{command}} to get the current build",
1080
1203
  "reason_unsupported_platform": "there is no installer for this system",
1081
1204
  "reason_no_mirror": "no download site is configured",
1082
1205
  "reason_classic_install": "the classic installer build is installed",
@@ -1084,11 +1207,28 @@
1084
1207
  "error_download": "download failed ({{reason}})",
1085
1208
  "error_no_checksum": "the download site has no checksum for {{file}}",
1086
1209
  "error_checksum": "{{file}} has the wrong checksum (expected {{expected}}…, got {{actual}}…); the download was deleted",
1087
- "error_signature": "the package isn't signed by Anthropic or the signature is broken ({{reason}}); nothing was installed",
1210
+ "error_signature": "the package's signature is wrong or broken ({{reason}}); nothing was installed",
1088
1211
  "error_mount": "couldn't open the package ({{reason}})",
1089
1212
  "error_bad_package": "the package has no {{reason}}",
1090
1213
  "error_no_permission": "no permission to write {{path}}: run as an administrator, or give {{path}} to this user",
1091
1214
  "error_copy": "copying the app failed ({{reason}})",
1092
- "error_install": "the system installer failed ({{reason}})"
1215
+ "error_install": "the system installer failed ({{reason}})",
1216
+ "blocked_unsupported_arch": "{{tool}} is only built for Apple silicon Macs; this Mac can't run it",
1217
+ "reason_unsupported_arch": "there is no installer for this chip",
1218
+ "reason_unknown": "reason unknown",
1219
+ "blocked_other_app": "The ChatGPT.app in Applications is another app (the earlier ChatGPT without Codex), which {{cli}} doesn't replace: remove or rename it, then run {{command}}",
1220
+ "reason_other_app": "another app with the same name is in the way",
1221
+ "blocked_root": "Don't install {{tool}} with sudo: the app would belong to root and its own updates would fail. Run {{command}} as your usual account",
1222
+ "blocked_system_account": "This is the system account (SYSTEM); {{tool}} would be installed for no real user. Sign in as the account that uses it and run {{command}}",
1223
+ "reason_root": "it can't be installed with sudo",
1224
+ "reason_system_account": "this is the system account (SYSTEM)",
1225
+ "error_app_management": "macOS doesn't let this terminal replace {{path}}: allow it under System Settings → Privacy & Security → App Management, or check for updates in the app",
1226
+ "upgrade_offer": "Upgrade {{tool}} from {{current}} to {{latest}}?",
1227
+ "upgrade_hint": "{{tool}} is at {{current}}, {{latest}} is available: run {{command}}",
1228
+ "reinstalling": "Reinstalling {{tool}} {{latest}} (--force; current {{current}})",
1229
+ "reinstalled": "Reinstalled {{tool}} {{version}}",
1230
+ "force_hint": "To reinstall it, run {{command}} --force",
1231
+ "blocked_remote_session": "This is a remote (SSH) session, where Windows doesn't allow installing {{tool}}: run {{command}} in a terminal on this computer",
1232
+ "reason_remote_session": "Windows apps can't be installed from a remote (SSH) session"
1093
1233
  }
1094
1234
  }
@@ -366,7 +366,7 @@
366
366
  "gui_preconfigured": "{{tool}} 还没有安装,已提前写好配置,安装后打开即可使用(下载:{{install}})",
367
367
  "validate_failed": "无法验证 {{label}} 的令牌:{{reason}}",
368
368
  "skip_no_claude_desktop": "这个令牌没有开通 Claude 模型分组,已跳过 Claude Code 和 Claude Desktop",
369
- "install_app_confirm": "安装 {{tools}}?(从高速下载站下载约 300 MB)",
369
+ "install_app_confirm": "安装 {{tools}}?(从高速下载站下载约 {{size}} MB)",
370
370
  "install_app_hint": "没装 {{tool}}:要安装就运行 {{command}}(已写好配置,装好打开就能用)"
371
371
  },
372
372
  "tools": {
@@ -462,6 +462,83 @@
462
462
  "native_mirror_failed": "无法从国内镜像替换:{{reason}}",
463
463
  "install_label": "{{kind}} {{version}}({{path}})"
464
464
  },
465
+ "components": {
466
+ "category": {
467
+ "runtime": "运行环境",
468
+ "cli": "命令行工具",
469
+ "app": "桌面应用"
470
+ },
471
+ "col": {
472
+ "name": "组件",
473
+ "current": "已装",
474
+ "latest": "最新",
475
+ "managed": "安装方式",
476
+ "state": "状态"
477
+ },
478
+ "by": {
479
+ "fnm": "fnm",
480
+ "brew": "Homebrew",
481
+ "nvm": "nvm",
482
+ "volta": "Volta",
483
+ "scoop": "Scoop",
484
+ "asdf": "asdf",
485
+ "mise": "mise",
486
+ "system": "系统自带",
487
+ "standalone": "独立安装",
488
+ "pipx": "pipx",
489
+ "pip": "pip",
490
+ "winget": "winget",
491
+ "git-for-windows-user": "Git for Windows(当前用户)",
492
+ "git-for-windows": "Git for Windows",
493
+ "xcode": "苹果命令行工具",
494
+ "native": "原生安装",
495
+ "npm": "npm",
496
+ "app": "应用",
497
+ "other": "其他"
498
+ },
499
+ "state": {
500
+ "unsupported": "这个系统不提供",
501
+ "missing": "未安装:{{command}}",
502
+ "outdated_auto": "可升级:{{command}}",
503
+ "outdated_manual": "可升级:{{how}}",
504
+ "latest": "已是最新",
505
+ "unknown_latest": "已安装"
506
+ },
507
+ "source": "来源:{{source}}",
508
+ "latest_unknown": "暂时查不到最新版本:{{tools}}(稍后运行 {{cli}} list --refresh 再查)",
509
+ "unknown": "不认识的组件:{{names}}",
510
+ "known": "可以安装的组件:{{ids}}",
511
+ "unsupported_platform": "这个系统不提供 {{tool}}",
512
+ "blocked_sudo": "不要用 sudo 安装 {{tool}}:会装进 root 的用户目录,归 root 所有。去掉 sudo,用平常的账号再运行一次",
513
+ "blocked_system": "当前是系统账号(SYSTEM),{{tool}} 会装进系统配置目录:登录要用它的账号后再运行",
514
+ "blocked_unsupported_platform": "这个系统不提供 {{tool}}",
515
+ "reason_sudo": "不能用 sudo 安装",
516
+ "reason_system": "当前是系统账号(SYSTEM)",
517
+ "reason_unsupported_platform": "这个系统不提供",
518
+ "no_mirror": "无法安装 {{tool}}:没有配置安装脚本的下载地址",
519
+ "already_installed": "已安装 {{tool}} {{current}}",
520
+ "up_to_date": "{{tool}} {{current}} 已是最新",
521
+ "force_hint": "要重新安装就运行 {{command}}",
522
+ "outdated_auto": "{{tool}} 当前 {{current}},可升到 {{latest}}:运行 {{command}}",
523
+ "outdated_manual": "{{tool}} 当前 {{current}},可升到 {{latest}}。这份是用 {{by}} 安装的,{{cli}} 不改动它:运行 {{how}} 升级;要另装一份由 {{cli}} 管理的,运行 {{command}}",
524
+ "no_latest": "{{tool}} {{current}} 由系统管理,{{cli}} 不升级它:{{how}}",
525
+ "how_system": "用安装它的方式升级(系统包管理器或官方安装包),或加 --force 另装一份由 {{cli}} 管理的",
526
+ "how_xcode": "在「系统设置 → 通用 → 软件更新」里更新苹果命令行工具",
527
+ "how_other": "用安装它的方式升级",
528
+ "force_beside": "{{tool}} 已有一份({{path}},{{by}} 安装),按 --force 另装一份由 {{cli}} 管理的",
529
+ "installing": "正在安装 {{tool}} {{latest}}({{source}})…",
530
+ "upgrading": "正在升级 {{tool}} 到 {{latest}}({{source}})…",
531
+ "script_failed": "{{tool}} 没有装好,原因见上方。排除原因后运行 {{command}}",
532
+ "installed": "已安装 {{tool}} {{version}}",
533
+ "upgraded": "已把 {{tool}} 从 {{from}} 升到 {{to}}",
534
+ "reinstalled": "已重新安装 {{tool}} {{version}}",
535
+ "reinstalling": "按 --force 重新安装 {{tool}}(当前 {{current}})",
536
+ "path_shadowed": "终端里先找到的是 {{active}},不是刚装好的 {{tool}} {{version}}({{path}}):把后者所在目录放到 PATH 前面,或删掉前者",
537
+ "capped": "{{tool}} {{latest}} 不能在这台电脑上运行,安装脚本装的是能运行的最新版 {{version}};有更新的版本时再提示升级",
538
+ "new_terminal": "新开一个终端窗口后可以直接使用",
539
+ "migrating_globals": "新版 Node 里还没有原来全局安装的这些包,正在装上同一版本:{{packages}}",
540
+ "migrate_failed": "原来全局安装的包没有全部装到新版 Node 里,可以手动运行:{{command}}"
541
+ },
465
542
  "install": {
466
543
  "permission_unix": "多半是 npm 没有权限写入全局目录。可以任选一种:① sudo {{command}};② 运行 npm config set prefix ~/.npm-global,把 export PATH=~/.npm-global/bin:$PATH 加入 ~/.zshrc 或 ~/.bashrc,重新打开终端后再运行 {{command}}",
467
544
  "permission_windows": "多半是权限不足或文件被占用:请关闭正在运行的这个工具,以管理员身份打开终端,再运行 {{command}}",
@@ -851,22 +928,66 @@
851
928
  "doctor": "先自行检查常见问题"
852
929
  }
853
930
  },
931
+ "list": {
932
+ "summary": "列出 {{cli}} 能装的运行环境、命令行工具和桌面应用,以及装了哪个版本",
933
+ "description": "列出 Node.js、Git、uv、Claude Code、Codex、Grok Build、Antigravity CLI、Claude Desktop、ChatGPT:装了没有、当前版本、最新版本、用什么方式装的、从哪下载。最新版本缓存一小时,加 --refresh 立即重新查。",
934
+ "when": "想知道这台电脑上装了哪些工具、哪些可以升级时。",
935
+ "alt": {
936
+ "doctor": "检查令牌和各工具的配置"
937
+ },
938
+ "opt": {
939
+ "refresh": "不用缓存,重新查最新版本"
940
+ },
941
+ "ex": {
942
+ "all": "列出全部组件",
943
+ "refresh": "重新查最新版本",
944
+ "json": "输出 JSON,给脚本用"
945
+ }
946
+ },
947
+ "install": {
948
+ "summary": "安装运行环境(Node.js、Git、uv)、命令行工具或桌面应用",
949
+ "description": "从国内镜像安装缺少的组件,下载后核对校验值(桌面应用还核对厂商签名)。已经装过的不覆盖:只显示当前版本,落后时给出升级命令;加 --force 重新安装。\nNode.js、Git、uv 用 {{brand}} 的安装脚本装进当前用户目录,不需要管理员权限;不要加 sudo。可以写多个组件,有依赖的先装依赖。",
950
+ "arg": {
951
+ "components": "node、git、uv、claude-code、codex、grok、agy、claude-desktop、chatgpt,可以填写多个"
952
+ },
953
+ "opt": {
954
+ "force": "已经装过也重新安装"
955
+ },
956
+ "when": "要在这台电脑上补装某个工具时;别的应用的安装脚本也可以调用它(npx {{package}} install …)。",
957
+ "needs": "这台电脑已有 Node.js({{cli}} 本身要 Node);还没有 Node 时先用一键安装脚本",
958
+ "alt": {
959
+ "upgrade": "升级已经装好的组件",
960
+ "setup": "装好后写入令牌并配置各工具"
961
+ },
962
+ "ex": {
963
+ "runtimes": "安装 Node.js 和 uv",
964
+ "clis": "安装 Claude Code 和 Codex",
965
+ "app": "安装 ChatGPT 桌面版(内含 Codex)",
966
+ "force": "uv 已经装过也重新安装",
967
+ "json": "在脚本里安装,输出 JSON"
968
+ }
969
+ },
854
970
  "upgrade": {
855
- "summary": "升级 Claude Code、Codex、Claude Desktop 等编码工具",
856
- "description": "按每份工具当初的安装方式升级:原生安装用工具自带的更新,npm 安装从国内镜像(npmmirror)重新安装,Homebrew 安装用 brew upgrade;原生或 Homebrew 方式无法升级时,改用 {{brand}} 一键安装脚本(程序取自国内镜像)。指定了但还没有安装的工具,也用这个脚本安装。\nClaude Desktop(macOS / Windows)比高速下载站上的版本旧时,从高速下载站下载官方安装包,核对校验值和 Anthropic 的签名后安装;它自带的自动更新照常开着,{{cli}} 只在它没跟上时补上。Claude Desktop 正在运行时,在终端里问过才关掉它升级,带 --yes 或没有终端时只提示、不关。\n不填工具名则升级已安装的全部工具。\n升级 {{product}} 本身请用 {{cli}} update。",
971
+ "summary": "升级编码工具、桌面应用和运行环境(Node.js、Git、uv)",
972
+ "description": "按每份工具当初的安装方式升级:原生安装用工具自带的更新,npm 安装从国内镜像(npmmirror)重新安装,Homebrew 安装用 brew upgrade;原生或 Homebrew 方式无法升级时,改用 {{brand}} 一键安装脚本(程序取自国内镜像)。指定了但还没有安装的工具,也用这个脚本安装。\nClaude Desktop 和 ChatGPT(内含 Codex;macOS / Windows)比高速下载站上的版本旧时,从高速下载站下载官方安装包,核对校验值和厂商(Anthropic / OpenAI)的签名后安装;它们自带的自动更新照常开着,{{cli}} 只在没跟上时补上。应用正在运行时,在终端里问过才关掉它升级,带 --yes 或没有终端时只提示、不关。已是最新时加 --force 重新安装。ChatGPT 的 Mac 版只支持 Apple 芯片。\nNode.js、Git、uv 只升级由 {{brand}} 安装脚本管理的那一份(fnm 装的 Node、~/.local/bin 里的 uv、装在当前用户下的 Git for Windows);用 Homebrew、nvm、系统包管理器等装的,给出对应的升级命令、不改动它,加 --force 另装一份由 {{cli}} 管理的。fnm 的 Node 升级后,原来全局安装的 npm 包会按原版本装到新版里。\n不填名字则升级已安装的全部编码工具和桌面应用,并提示可以升级的运行环境。\n升级 {{product}} 本身请用 {{cli}} update。",
857
973
  "arg": {
858
- "tools": "claude-code、codex、grok、agy、claude-desktop,可以填写多个"
974
+ "tools": "claude-code、codex、grok、agy、claude-desktop、chatgpt、node、git、uv,可以填写多个"
859
975
  },
860
976
  "ex": {
861
977
  "all": "升级已安装的全部工具",
862
978
  "one": "只升级 Claude Code",
863
979
  "many": "升级 Codex 和 Antigravity CLI",
864
- "desktop": "安装 Claude Desktop,或升到高速下载站上的最新版"
980
+ "desktop": "安装 Claude Desktop,或升到高速下载站上的最新版",
981
+ "force": "ChatGPT 已是最新也重新安装一遍(应用损坏时)",
982
+ "runtime": "升级 Node.js(fnm 安装的;别的方式装的给出升级命令)"
865
983
  },
866
984
  "when": "{{cli}} doctor 提示版本过低,或工具自带的更新无法完成时。",
867
985
  "needs": "不填工具名时,只升级已经安装的工具",
868
986
  "alt": {
869
987
  "update": "升级 {{product}} 本身"
988
+ },
989
+ "opt": {
990
+ "force": "桌面应用和运行环境已是最新也重新安装;运行环境由别的方式装的,另装一份由 {{cli}} 管理的"
870
991
  }
871
992
  },
872
993
  "refresh": {
@@ -1061,8 +1182,8 @@
1061
1182
  "not_installed": "没有安装,高速下载站上最新是 {{latest}}",
1062
1183
  "outdated": "当前 {{current}},可升到 {{latest}}",
1063
1184
  "up_to_date": "{{current}}(已是最新)",
1064
- "downloading": "正在从高速下载站下载 {{tool}} {{version}}(约 300 MB)…",
1065
- "verifying": "正在核对校验值和 Anthropic 的签名…",
1185
+ "downloading": "正在从高速下载站下载 {{tool}} {{version}}(约 {{size}} MB)…",
1186
+ "verifying": "正在核对校验值和 {{vendor}} 的签名…",
1066
1187
  "installing": "正在安装…",
1067
1188
  "already_latest": "{{tool}} 已是最新({{current}})",
1068
1189
  "latest_unknown": "无法查到 {{tool}} 的最新版本:{{reason}}",
@@ -1070,13 +1191,15 @@
1070
1191
  "offer_quit": "关掉 {{tool}} 并升到 {{latest}}?",
1071
1192
  "declined_hint": "没有升级。之后可以运行 {{command}}",
1072
1193
  "quit_failed": "无法退出 {{tool}},这次没有升级:手动退出后运行 {{command}}",
1194
+ "quit_confirm_in_app": "{{tool}} 没有退出:它可能有任务正在运行,或弹出了确认框。请切到 {{tool}},在它的提示里确认退出(或等任务结束后退出),这里会接着升级(最多等 {{seconds}} 秒)…",
1195
+ "quit_refused": "{{tool}} 没有退出,这次没有升级:它有任务正在运行或在等你确认。在 {{tool}} 里确认退出(或等任务结束后退出),再运行 {{command}}",
1073
1196
  "upgraded": "已把 {{tool}} 从 {{from}} 升到 {{to}}",
1074
1197
  "installed": "已安装 {{tool}} {{version}}",
1075
1198
  "upgrade_failed": "无法升级 {{tool}}:{{reason}}。当前的 {{current}} 照常可用;排除原因后运行 {{command}}",
1076
1199
  "install_failed": "无法安装 {{tool}}:{{reason}}。排除原因后运行 {{command}}",
1077
- "blocked_unsupported_platform": "这台电脑的 {{tool}} 要从官网下载安装:https://claude.ai/download",
1078
- "blocked_no_mirror": "{{tool}} 要从官网下载安装:https://claude.ai/download",
1079
- "blocked_classic_install": "这台电脑装的是旧式安装版 {{tool}},{{cli}} 不替换它:在 {{tool}} 里检查更新,或卸载后运行 {{cli}} upgrade claude-desktop 装新版",
1200
+ "blocked_unsupported_platform": "这台电脑的 {{tool}} 要从官网下载安装:{{url}}",
1201
+ "blocked_no_mirror": "{{tool}} 要从官网下载安装:{{url}}",
1202
+ "blocked_classic_install": "这台电脑装的是旧式安装版 {{tool}},{{cli}} 不替换它:在 {{tool}} 里检查更新,或卸载后运行 {{command}} 装新版",
1080
1203
  "reason_unsupported_platform": "这个系统没有可用的安装包",
1081
1204
  "reason_no_mirror": "没有配置高速下载站",
1082
1205
  "reason_classic_install": "装的是旧式安装版",
@@ -1084,11 +1207,28 @@
1084
1207
  "error_download": "下载失败({{reason}})",
1085
1208
  "error_no_checksum": "高速下载站上没有 {{file}} 的校验值",
1086
1209
  "error_checksum": "{{file}} 的校验值不对(应为 {{expected}}…,实际 {{actual}}…),下载的文件已删除",
1087
- "error_signature": "安装包的签名不是 Anthropic 的或已损坏({{reason}}),没有安装",
1210
+ "error_signature": "安装包的签名不对或已损坏({{reason}}),没有安装",
1088
1211
  "error_mount": "无法打开安装包({{reason}})",
1089
1212
  "error_bad_package": "安装包里缺少 {{reason}}",
1090
1213
  "error_no_permission": "没有权限写入 {{path}}:用管理员账号运行,或把 {{path}} 交给当前用户",
1091
1214
  "error_copy": "复制应用失败({{reason}})",
1092
- "error_install": "系统安装失败({{reason}})"
1215
+ "error_install": "系统安装失败({{reason}})",
1216
+ "blocked_unsupported_arch": "{{tool}} 只有 Apple 芯片的 Mac 版,这台 Mac 装不了",
1217
+ "reason_unsupported_arch": "官方没有这种芯片的安装包",
1218
+ "reason_unknown": "原因不明",
1219
+ "blocked_other_app": "“应用程序”里的 ChatGPT.app 是另一个应用(不含 Codex 的旧版 ChatGPT),{{cli}} 不替换它:删掉或改名后运行 {{command}}",
1220
+ "reason_other_app": "同名的另一个应用已经在那里",
1221
+ "blocked_root": "不要用 sudo 安装 {{tool}}:装出来的应用归 root 所有,它自己的更新会失败。用平常的账号运行 {{command}}",
1222
+ "blocked_system_account": "当前是系统账号(SYSTEM),{{tool}} 会装给不存在的用户:登录要用它的账号后运行 {{command}}",
1223
+ "reason_root": "不能用 sudo 安装",
1224
+ "reason_system_account": "当前是系统账号(SYSTEM)",
1225
+ "error_app_management": "macOS 不允许这个终端替换 {{path}}:在「系统设置 → 隐私与安全性 → App 管理」里打开当前终端,或在应用里检查更新",
1226
+ "upgrade_offer": "把 {{tool}} 从 {{current}} 升到 {{latest}}?",
1227
+ "upgrade_hint": "{{tool}} 当前 {{current}},可升到 {{latest}}:运行 {{command}}",
1228
+ "reinstalling": "按 --force 重新安装 {{tool}} {{latest}}(当前 {{current}})",
1229
+ "reinstalled": "已重新安装 {{tool}} {{version}}",
1230
+ "force_hint": "要重新安装就运行 {{command}} --force",
1231
+ "blocked_remote_session": "这是远程(SSH)登录的会话,Windows 不允许在这里安装 {{tool}}:在这台电脑本机的终端里运行 {{command}}",
1232
+ "reason_remote_session": "远程(SSH)会话里不能安装 Windows 应用"
1093
1233
  }
1094
1234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeapi/api-helper",
3
- "version": "0.0.147",
3
+ "version": "0.0.149",
4
4
  "description": "CLI tool for managing AI coding assistants (Claude Code, Codex, OpenClaw, Hermes, AtomCode, Grok Build) with one unified config",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,6 +16,7 @@
16
16
  "files": [
17
17
  "dist",
18
18
  "models.json",
19
+ "components.json",
19
20
  "client-config.snapshot.json",
20
21
  "settings-template.json",
21
22
  "codex-base-instructions.md",