@vibeapi/cli 0.0.56 → 0.0.58
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/README.md +2 -1
- package/dist/cli.js +1 -1
- package/dist/commands/completion.js +1 -1
- package/dist/commands/doctor.d.ts +3 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/upgrade.d.ts +2 -0
- package/dist/commands/upgrade.js +1 -0
- package/dist/lib/claude-code-manager.d.ts +4 -5
- package/dist/lib/claude-code-manager.js +1 -1
- package/dist/lib/command.js +1 -1
- package/dist/lib/config.d.ts +6 -0
- package/dist/lib/config.js +1 -1
- package/dist/lib/env-cleanup.d.ts +12 -0
- package/dist/lib/env-cleanup.js +1 -1
- package/dist/lib/gateway-models.d.ts +1 -1
- package/dist/lib/gateway-models.js +1 -1
- package/dist/lib/model-refresh.d.ts +21 -0
- package/dist/lib/model-refresh.js +1 -0
- package/dist/lib/model-registry.d.ts +4 -0
- package/dist/lib/model-registry.js +1 -1
- package/dist/lib/post-apply.d.ts +6 -0
- package/dist/lib/post-apply.js +1 -0
- package/dist/lib/tool-manager.js +1 -1
- package/dist/lib/tool-upgrade.d.ts +10 -0
- package/dist/lib/tool-upgrade.js +1 -0
- package/dist/lib/tools/claude-code.js +1 -1
- package/dist/lib/tools/claude-desktop.js +1 -1
- package/dist/lib/tools/claude-managed.d.ts +8 -0
- package/dist/lib/tools/claude-managed.js +1 -0
- package/dist/lib/tools/claude-native-mirror.d.ts +39 -0
- package/dist/lib/tools/claude-native-mirror.js +1 -0
- package/dist/lib/tools/codex.js +1 -1
- package/dist/lib/tools/desktop-process.d.ts +24 -0
- package/dist/lib/tools/desktop-process.js +1 -0
- package/dist/lib/tools/tool-installs.d.ts +50 -0
- package/dist/lib/tools/tool-installs.js +1 -0
- package/dist/lib/tools/types.d.ts +26 -3
- package/dist/lib/wizard.js +1 -1
- package/dist/locales/en_US.json +81 -26
- package/dist/locales/zh_CN.json +81 -26
- package/dist/models.json +77 -31
- package/models.json +77 -31
- package/package.json +1 -1
- package/dist/lib/tools/claude-installs.d.ts +0 -20
- package/dist/lib/tools/claude-installs.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibeapi/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
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",
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every copy of Claude Code a terminal could start. Users often end up with both
|
|
3
|
-
* the official native install (`~/.local/bin/claude`, updated by `claude update`)
|
|
4
|
-
* and an npm global one; only the first on PATH runs, and `claude update` only
|
|
5
|
-
* updates that one.
|
|
6
|
-
*/
|
|
7
|
-
export interface ClaudeInstall {
|
|
8
|
-
path: string;
|
|
9
|
-
kind: 'native' | 'npm' | 'other';
|
|
10
|
-
version: string | null;
|
|
11
|
-
}
|
|
12
|
-
/** Same package, same binary (npm ships the native build as an optional dependency); npmmirror is reachable from mainland China. */
|
|
13
|
-
export declare const CLAUDE_NPM_MIRROR_INSTALL = "npm install -g @anthropic-ai/claude-code@latest --registry=https://registry.npmmirror.com";
|
|
14
|
-
export declare const CLAUDE_NPM_UNINSTALL = "npm uninstall -g @anthropic-ai/claude-code";
|
|
15
|
-
/** Tests swap in a fake `<path> --version`. */
|
|
16
|
-
export declare function setClaudeVersionRunnerForTests(fake: (path: string) => string): void;
|
|
17
|
-
/** In PATH order (the first one is what `claude` starts), one entry per real file. Probed once per run. */
|
|
18
|
-
export declare function findClaudeInstalls(): ClaudeInstall[];
|
|
19
|
-
/** `autoUpdatesChannel` in ~/.claude/settings.json; unset means `latest`. */
|
|
20
|
-
export declare function claudeUpdateChannel(): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{spawnSync as t}from"child_process";import{existsSync as e,readFileSync as n,realpathSync as o,statSync as r}from"fs";import{delimiter as s,dirname as i,isAbsolute as c,join as a}from"path";import{toolHome as l}from"./types.js";export const CLAUDE_NPM_MIRROR_INSTALL="npm install -g @anthropic-ai/claude-code@latest --registry=https://registry.npmmirror.com";export const CLAUDE_NPM_UNINSTALL="npm uninstall -g @anthropic-ai/claude-code";let u=e=>{const n={encoding:"utf-8",timeout:1e4,windowsHide:!0,stdio:["ignore","pipe","pipe"]};return`${(/\.cmd$/i.test(e)?t(`"${e}" --version`,{...n,shell:!0}):t(e,["--version"],n)).stdout??""}`};export function setClaudeVersionRunnerForTests(t){u=t,f=null}function p(t){try{return r(t).isFile()}catch{return!1}}function d(t){if(n=i(t),r=a(l(),".local","bin"),"win32"===process.platform?n.toLowerCase()===r.toLowerCase():n===r)return"native";var n,r;const s=a("node_modules","@anthropic-ai","claude-code");if(e(a(i(t),s)))return"npm";try{if(o(t).includes(s))return"npm"}catch{}return"other"}let f=null;export function findClaudeInstalls(){if(f)return f;const t="win32"===process.platform?["claude.exe","claude.cmd"]:["claude"],e=new Set,n=[];for(const r of(process.env.PATH??"").split(s))if(r&&c(r))for(const s of t){const t=a(r,s);if(!p(t))continue;let i=t;try{i=o(t)}catch{}const c="win32"===process.platform?i.toLowerCase():i;if(e.has(c))continue;e.add(c);const l=u(t).match(/(\d+)\.(\d+)\.(\d+)/);n.push({path:t,kind:d(t),version:l?l[0]:null})}return f=n,n}export function claudeUpdateChannel(){try{const t=JSON.parse(n(a(l(),".claude","settings.json"),"utf-8"));return"string"==typeof t.autoUpdatesChannel?t.autoUpdatesChannel:"latest"}catch{return"latest"}}
|