claudish 2.6.1 → 2.8.1
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/dist/index.js +3404 -431
- package/package.json +12 -2
- package/scripts/generate-manifest.ts +89 -0
- package/dist/mcp-server.js +0 -30705
- package/recommended-models.json +0 -133
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudish",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Run Claude Code with any OpenRouter model - CLI tool and MCP server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
"dev:info": "bun run src/index.ts --interactive --monitor",
|
|
16
16
|
"extract-models": "bun run scripts/extract-models.ts",
|
|
17
17
|
"build": "bun run extract-models && bun build src/index.ts --outdir dist --target node && chmod +x dist/index.js",
|
|
18
|
+
"build:ci": "bun build src/index.ts --outdir dist --target node && chmod +x dist/index.js",
|
|
19
|
+
"build:binary": "bun run extract-models && bun build src/index.ts --compile --outfile claudish",
|
|
20
|
+
"build:binary:linux": "bun run extract-models && bun build src/index.ts --compile --target=bun-linux-x64 --outfile claudish-linux-x64",
|
|
21
|
+
"build:binary:mac": "bun run extract-models && bun build src/index.ts --compile --target=bun-darwin-arm64 --outfile claudish-darwin-arm64",
|
|
18
22
|
"link": "npm link",
|
|
19
23
|
"unlink": "npm unlink -g claudish",
|
|
20
24
|
"install-global": "bun run build && npm link",
|
|
@@ -27,6 +31,8 @@
|
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
33
|
"@hono/node-server": "^1.19.6",
|
|
34
|
+
"@inquirer/prompts": "^8.0.1",
|
|
35
|
+
"@inquirer/search": "^4.0.1",
|
|
30
36
|
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
31
37
|
"dotenv": "^17.2.3",
|
|
32
38
|
"hono": "^4.10.6",
|
|
@@ -60,5 +66,9 @@
|
|
|
60
66
|
"ai"
|
|
61
67
|
],
|
|
62
68
|
"author": "Jack Rudenko <i@madappgang.com>",
|
|
63
|
-
"license": "MIT"
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "https://github.com/MadAppGang/claudish"
|
|
73
|
+
}
|
|
64
74
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* Generate release manifest with checksums
|
|
4
|
+
*
|
|
5
|
+
* Usage: bun scripts/generate-manifest.ts <version> <release-dir>
|
|
6
|
+
*
|
|
7
|
+
* Creates manifest.json with checksums and file sizes for all platforms
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { createHash } from "node:crypto";
|
|
11
|
+
import { readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
12
|
+
import { join } from "node:path";
|
|
13
|
+
|
|
14
|
+
interface PlatformInfo {
|
|
15
|
+
checksum: string;
|
|
16
|
+
size: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface Manifest {
|
|
20
|
+
version: string;
|
|
21
|
+
buildDate: string;
|
|
22
|
+
platforms: Record<string, PlatformInfo>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const PLATFORM_MAP: Record<string, string> = {
|
|
26
|
+
"claudish-darwin-arm64": "darwin-arm64",
|
|
27
|
+
"claudish-darwin-x64": "darwin-x64",
|
|
28
|
+
"claudish-linux-x64": "linux-x64",
|
|
29
|
+
"claudish-linux-arm64": "linux-arm64",
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
function computeSha256(filePath: string): string {
|
|
33
|
+
const content = readFileSync(filePath);
|
|
34
|
+
return createHash("sha256").update(content).digest("hex");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function generateManifest(version: string, releaseDir: string): Manifest {
|
|
38
|
+
const platforms: Record<string, PlatformInfo> = {};
|
|
39
|
+
|
|
40
|
+
const files = readdirSync(releaseDir);
|
|
41
|
+
|
|
42
|
+
for (const file of files) {
|
|
43
|
+
const platform = PLATFORM_MAP[file];
|
|
44
|
+
if (!platform) continue;
|
|
45
|
+
|
|
46
|
+
const filePath = join(releaseDir, file);
|
|
47
|
+
const stats = statSync(filePath);
|
|
48
|
+
|
|
49
|
+
platforms[platform] = {
|
|
50
|
+
checksum: computeSha256(filePath),
|
|
51
|
+
size: stats.size,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
version,
|
|
57
|
+
buildDate: new Date().toISOString(),
|
|
58
|
+
platforms,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Main
|
|
63
|
+
const args = process.argv.slice(2);
|
|
64
|
+
|
|
65
|
+
if (args.length < 2) {
|
|
66
|
+
console.error("Usage: bun scripts/generate-manifest.ts <version> <release-dir>");
|
|
67
|
+
process.exit(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const [version, releaseDir] = args;
|
|
71
|
+
|
|
72
|
+
const manifest = generateManifest(version, releaseDir);
|
|
73
|
+
|
|
74
|
+
// Write manifest.json
|
|
75
|
+
const manifestPath = join(releaseDir, "manifest.json");
|
|
76
|
+
writeFileSync(manifestPath, JSON.stringify(manifest, null, 2));
|
|
77
|
+
|
|
78
|
+
console.log("Generated manifest.json:");
|
|
79
|
+
console.log(JSON.stringify(manifest, null, 2));
|
|
80
|
+
|
|
81
|
+
// Also write checksums.txt for backwards compatibility
|
|
82
|
+
const checksumsPath = join(releaseDir, "checksums.txt");
|
|
83
|
+
const checksums = Object.entries(PLATFORM_MAP)
|
|
84
|
+
.filter(([file]) => manifest.platforms[PLATFORM_MAP[file]])
|
|
85
|
+
.map(([file, platform]) => `${manifest.platforms[platform].checksum} ${file}`)
|
|
86
|
+
.join("\n");
|
|
87
|
+
|
|
88
|
+
writeFileSync(checksumsPath, checksums + "\n");
|
|
89
|
+
console.log("\nGenerated checksums.txt");
|