Enable GPT-5 support (again)
This commit is contained in:
parent
c64dbf87d0
commit
8962b98d51
11 changed files with 840 additions and 42 deletions
19
package.json
19
package.json
|
|
@ -13,16 +13,20 @@
|
|||
"bin": {
|
||||
"anyclaude": "./dist/main.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/main.js",
|
||||
"dist/main.cjs"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"@types/json-schema": "^7.0.15",
|
||||
"@types/yargs-parser": "^21.0.3",
|
||||
"@ai-sdk/anthropic": "^2.0.1",
|
||||
"@ai-sdk/azure": "^2.0.6",
|
||||
"@ai-sdk/google": "^2.0.3",
|
||||
"@ai-sdk/openai": "^2.0.6",
|
||||
"@ai-sdk/xai": "^2.0.3",
|
||||
"@types/bun": "latest",
|
||||
"@types/json-schema": "^7.0.15",
|
||||
"ai": "^5.0.8",
|
||||
"json-schema": "^0.4.0",
|
||||
"zod": "3.25.76"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
@ -31,6 +35,13 @@
|
|||
"description": "Run Claude Code with OpenAI, Google, xAI, and others.",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "bun build --target node --outfile dist/main.js ./src/main.ts --format cjs --external ai --external @ai-sdk/* --external zod && node -e \"const fs=require('fs');const p='dist/main.js';fs.writeFileSync(p,'#!/usr/bin/env node\\n'+fs.readFileSync(p,'utf8'))\" && chmod +x dist/main.js"
|
||||
"build": "bun build --target node --format cjs --outfile dist/main.cjs ./src/main.ts && node -e \"const fs=require('fs');const f='dist/main.cjs';fs.writeFileSync(f,fs.readFileSync(f,'utf8').replace(/import\\.meta\\.url/g,'__filename'))\" && printf '#!/usr/bin/env node\\nrequire(\"./main.cjs\");\\n' > dist/main.js && chmod +x dist/main.js",
|
||||
"test": "bun test",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"install:global": "bun run build && npm pack --silent && npm install -g anyclaude-*.tgz"
|
||||
},
|
||||
"dependencies": {
|
||||
"yargs-parser": "^22.0.0",
|
||||
"json-schema": "^0.4.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue