claudish 1.2.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/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "claudish",
3
+ "version": "1.2.1",
4
+ "description": "CLI tool to run Claude Code with any OpenRouter model (Grok, GPT-5, MiniMax, etc.) via local Anthropic API-compatible proxy",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "bin": {
8
+ "claudish": "dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "dev": "bun run src/index.ts",
12
+ "dev:grok": "bun run src/index.ts --interactive --model x-ai/grok-code-fast-1",
13
+ "dev:grok:debug": "bun run src/index.ts --interactive --debug --log-level info --model x-ai/grok-code-fast-1",
14
+ "dev:info": "bun run src/index.ts --interactive --monitor",
15
+ "build": "bun build src/index.ts --outdir dist --target bun && chmod +x dist/index.js",
16
+ "link": "npm link",
17
+ "unlink": "npm unlink -g claudish",
18
+ "install-global": "bun run build && npm link",
19
+ "kill-all": "pkill -f 'bun.*claudish' || pkill -f 'claude.*claudish-settings' || echo 'No claudish processes found'",
20
+ "test": "bun test ./tests/comprehensive-model-test.ts",
21
+ "typecheck": "tsc --noEmit",
22
+ "lint": "biome check .",
23
+ "format": "biome format --write .",
24
+ "install": "bun run build && bun link",
25
+ "postinstall": "node scripts/postinstall.cjs"
26
+ },
27
+ "dependencies": {
28
+ "hono": "^4.9.0"
29
+ },
30
+ "devDependencies": {
31
+ "@biomejs/biome": "^1.9.4",
32
+ "@types/bun": "latest",
33
+ "@types/react": "^19.2.2",
34
+ "typescript": "^5.7.0"
35
+ },
36
+ "files": [
37
+ "dist/",
38
+ "scripts/"
39
+ ],
40
+ "engines": {
41
+ "bun": ">=1.0.0"
42
+ },
43
+ "preferGlobal": true,
44
+ "keywords": [
45
+ "claude",
46
+ "claude-code",
47
+ "openrouter",
48
+ "proxy",
49
+ "cli",
50
+ "ai"
51
+ ],
52
+ "author": "Jack Rudenko <i@madappgang.com>",
53
+ "license": "MIT"
54
+ }
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require('child_process');
4
+
5
+ try {
6
+ // Check if bun is installed
7
+ execSync('bun --version', { stdio: 'ignore' });
8
+ console.log('\x1b[32m✓ Bun runtime detected\x1b[0m');
9
+ console.log('\x1b[32m✓ Claudish installed successfully!\x1b[0m');
10
+ console.log('');
11
+ console.log('\x1b[1mUsage:\x1b[0m');
12
+ console.log(' claudish --model x-ai/grok-code-fast-1 "your prompt"');
13
+ console.log('');
14
+ } catch (error) {
15
+ console.error('\x1b[33m⚠ WARNING: Bun runtime not found!\x1b[0m');
16
+ console.error('');
17
+ console.error('Claudish requires Bun for optimal performance (10x faster than Node.js).');
18
+ console.error('');
19
+ console.error('\x1b[1mInstall Bun:\x1b[0m');
20
+ console.error(' curl -fsSL https://bun.sh/install | bash');
21
+ console.error('');
22
+ console.error('Or visit: https://bun.sh');
23
+ console.error('');
24
+ process.exit(0); // Don't fail installation, just warn
25
+ }