Files
prompt-optimizer/packages/core/package.json
T
linshen 63ab9e66cd feat(test): 建立完整的测试基础设施和集成测试
- 建立 VCR 测试基础设施,支持 LLM API 回放
- 添加错误门禁和冒烟测试
- 添加 LLM 服务集成测试(P0)
- 记录测试进展并更新任务计划
2026-01-03 21:08:00 +08:00

47 lines
1.2 KiB
JSON

{
"name": "@prompt-optimizer/core",
"version": "0.0.0",
"private": true,
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:gate": "vitest run tests/unit/utils/vcr.spec.ts tests/unit/utils/llm-mock-service.spec.ts",
"test:unit": "vitest run tests/unit",
"test:integration": "vitest run tests/integration"
},
"devDependencies": {
"@types/node": "^20.11.0",
"dotenv": "^16.4.7",
"msw": "^2.6.0",
"tsup": "^8.5.1",
"typescript": "^5.3.3",
"vitest": "^4.0.15"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.65.0",
"@google/genai": "^1.32.0",
"@types/mustache": "^4.2.5",
"dexie": "^4.0.11",
"diff": "^8.0.2",
"jsonrepair": "^3.13.1",
"mustache": "^4.2.0",
"openai": "^4.83.0",
"uuid": "^11.0.5",
"zod": "^3.22.4"
}
}