claudish 5.12.2 → 5.12.3
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/bin/claudish.cjs +55 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/bin/claudish.cjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Launcher script: checks for Bun runtime before starting claudish.
|
|
4
|
+
// Claudish uses Bun-specific APIs (bun:ffi for TUI, Bun.spawn, etc.)
|
|
5
|
+
// so it cannot run under Node.js directly.
|
|
6
|
+
|
|
7
|
+
const { execFileSync, execSync } = require("child_process");
|
|
8
|
+
const { resolve } = require("path");
|
|
9
|
+
|
|
10
|
+
function findBun() {
|
|
11
|
+
try {
|
|
12
|
+
const path = execSync("which bun", { encoding: "utf-8" }).trim();
|
|
13
|
+
if (path) return path;
|
|
14
|
+
} catch {}
|
|
15
|
+
// Common install locations
|
|
16
|
+
const candidates = [
|
|
17
|
+
process.env.HOME + "/.bun/bin/bun",
|
|
18
|
+
"/usr/local/bin/bun",
|
|
19
|
+
"/opt/homebrew/bin/bun",
|
|
20
|
+
];
|
|
21
|
+
for (const c of candidates) {
|
|
22
|
+
try {
|
|
23
|
+
execFileSync(c, ["--version"], { stdio: "ignore" });
|
|
24
|
+
return c;
|
|
25
|
+
} catch {}
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const bun = findBun();
|
|
31
|
+
if (!bun) {
|
|
32
|
+
console.error(`claudish requires the Bun runtime but it was not found.
|
|
33
|
+
|
|
34
|
+
Install Bun (one command):
|
|
35
|
+
curl -fsSL https://bun.sh/install | bash
|
|
36
|
+
|
|
37
|
+
Then retry:
|
|
38
|
+
claudish --version
|
|
39
|
+
|
|
40
|
+
Learn more: https://bun.sh`);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Exec into bun with the real entry point
|
|
45
|
+
const entry = resolve(__dirname, "..", "dist", "index.js");
|
|
46
|
+
try {
|
|
47
|
+
const result = require("child_process").spawnSync(bun, [entry, ...process.argv.slice(2)], {
|
|
48
|
+
stdio: "inherit",
|
|
49
|
+
env: process.env,
|
|
50
|
+
});
|
|
51
|
+
process.exit(result.status ?? 1);
|
|
52
|
+
} catch (err) {
|
|
53
|
+
console.error("Failed to start claudish:", err.message);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -31844,7 +31844,7 @@ async function fetchGLMCodingModels() {
|
|
|
31844
31844
|
return [];
|
|
31845
31845
|
}
|
|
31846
31846
|
}
|
|
31847
|
-
var __filename4, __dirname4, VERSION = "5.12.
|
|
31847
|
+
var __filename4, __dirname4, VERSION = "5.12.3", CACHE_MAX_AGE_DAYS2 = 2, CLAUDISH_CACHE_DIR2, BUNDLED_MODELS_PATH, CACHED_MODELS_PATH, ALL_MODELS_JSON_PATH;
|
|
31848
31848
|
var init_cli = __esm(() => {
|
|
31849
31849
|
init_config();
|
|
31850
31850
|
init_model_loader();
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.3",
|
|
4
4
|
"description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"claudish": "
|
|
8
|
+
"claudish": "bin/claudish.cjs"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "bun run src/index.ts",
|