Files
kurihada c3db79c00d feat: 支持 Bun standalone 单文件打包
- core: 工具描述从文件系统加载改为编译时内联生成
- core: 添加 WASM 加载器支持嵌入式 WASM 数据
- core: bash-parser 使用动态导入 web-tree-sitter
- server: 添加静态文件托管支持 (--static 参数)
- server: 新增 standalone 入口点 (嵌入 Web UI + WASM)
- scripts: 添加 build-standalone.ts 构建脚本
- 更新 .gitignore 忽略生成文件
2025-12-30 13:57:29 +08:00

40 lines
1.1 KiB
JSON

{
"name": "@ai-assistant/server",
"version": "1.0.0",
"description": "HTTP Server for AI terminal assistant - REST API, WebSocket, SSE",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
"build": "tsc",
"build:bundle": "bun build src/bin/server.ts --target bun --outfile dist/server.bundle.js",
"build:standalone": "bun build src/bin/server.ts --compile --outfile dist/ai-server",
"dev": "tsc --watch",
"start": "bun run src/bin/server.ts",
"start:dev": "bun --watch run src/bin/server.ts",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@ai-assistant/core": "workspace:*",
"hono": "^4.6.0",
"uuid": "^13.0.0",
"zod": "^4.1.13"
},
"devDependencies": {
"@types/bun": "^1.1.0",
"@types/node": "^22.0.0",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^4.0.15",
"fuzzysort": "^3.1.0",
"typescript": "^5.6.0",
"vitest": "^4.0.15"
}
}