Commit 7738cafde932d6fa0a49c82ac3daddf55e90bef7
1 parent
4d6e754f
fix: register company routes in agent-server.js for start.sh compatibility
Showing
2 changed files
with
6 additions
and
2 deletions
data/templates/_registry.json
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | "description": "公司战略规划、团队管理、OKR 制定、任务委派", |
| 7 | 7 | "benchmarkScore": 97, |
| 8 | 8 | "trainedAt": "2026-03-20", |
| 9 | - "usedCount": 5 | |
| 9 | + "usedCount": 6 | |
| 10 | 10 | }, |
| 11 | 11 | { |
| 12 | 12 | "id": "qa-judge", |
| ... | ... | @@ -15,6 +15,6 @@ |
| 15 | 15 | "description": "质量验收、OKR 进度审查、标准化仲裁", |
| 16 | 16 | "benchmarkScore": 95, |
| 17 | 17 | "trainedAt": "2026-03-25", |
| 18 | - "usedCount": 5 | |
| 18 | + "usedCount": 6 | |
| 19 | 19 | } |
| 20 | 20 | ] |
| 21 | 21 | \ No newline at end of file | ... | ... |
server/agent-server.js
| ... | ... | @@ -17,6 +17,10 @@ app.use(express.json()); |
| 17 | 17 | // Agent Chat API |
| 18 | 18 | app.use('/api/agent', agentChatRoute); |
| 19 | 19 | |
| 20 | +// Company API | |
| 21 | +app.use('/api/company', require('./routes/company')); | |
| 22 | +app.use('/api/goals', require('./routes/goals')); | |
| 23 | + | |
| 20 | 24 | // Health |
| 21 | 25 | app.get('/api/health', (req, res) => res.json({ status: 'ok', service: 'agent-chat' })); |
| 22 | 26 | ... | ... |