Files
RiskAgent/package.json
T
freedakgmail c670b9e454 外包风险评估系统:领域引擎+前端+服务端持久化与生产部署
- 确定性领域引擎(分类/评分/分级/红线/费用/裁决)+LLM(通义千问)语言理解
- 6步评估向导、服务端草稿持久化(跨设备/编辑草稿保护)
- 工作流(草稿→风控→管理层)、RBAC、报告导出、校准、客户/费率/红线/最低工资管理
- 专业图标体系替换全部emoji、看板美化
- 生产化:API_BASE可配置(同源反代)、auth密钥惰性读取修复RBAC
- 444单测+204前端测试+51 e2e
2026-06-13 01:06:39 +08:00

61 lines
1.9 KiB
JSON

{
"name": "outsourcing-risk-assessment",
"version": "0.1.0",
"private": true,
"description": "外包项目风险评估 AI 智能体 - 领域引擎与前端表现层",
"type": "module",
"engines": {
"node": ">=20"
},
"scripts": {
"build": "tsc --build && tsc -p web/tsconfig.json --noEmit",
"dev": "vite",
"build:web": "tsc -p web/tsconfig.json --noEmit && vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit && tsc -p web/tsconfig.json --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"e2e": "node scripts/e2e-full.mjs",
"migrate": "node-pg-migrate -m migrations",
"migrate:up": "node-pg-migrate -m migrations up",
"migrate:down": "node-pg-migrate -m migrations down",
"lint": "eslint \"src/**/*.ts\" \"web/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"src/**/*.ts\" \"web/**/*.{ts,tsx}\" --fix"
},
"dependencies": {
"@hono/node-server": "^2.0.4",
"@types/pg": "^8.20.0",
"hono": "^4.12.25",
"node-pg-migrate": "^8.0.4",
"nodejieba": "^3.5.8",
"pg": "^8.21.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.0",
"recharts": "^2.13.3",
"zustand": "^5.0.14"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^25.9.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"axe-core": "^4.10.2",
"eslint": "^9.17.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"fast-check": "^3.23.1",
"jsdom": "^25.0.1",
"playwright": "^1.58.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.0",
"vitest": "^2.1.8",
"vitest-axe": "^0.1.0"
}
}