iconsulting/packages
hailin cc4b7d50e3 feat(admin-client): add manual experience creation in ExperiencePage
管理员现在可以在"系统经验管理"页面手动创建经验,而不仅限于审核系统自动生成的经验。

实现细节:
- experience.api.ts: 新增 CreateExperienceDto 类型和 createExperience() API 方法
  - 调用 POST /memory/experience 创建经验
  - 创建后自动调用 POST /memory/experience/:id/approve 激活
  - 管理员手动创建的经验无需额外审核流程
  - sourceConversationId 标记为 'admin-manual' 以区分来源
  - 默认置信度 80%(高于系统自动生成的 45%)
- useExperience.ts: 新增 useCreateExperience mutation hook
  - 创建成功后自动刷新经验列表和统计数据
- ExperiencePage.tsx: 新增"新建经验"按钮和创建表单弹窗
  - 表单字段:经验类型、适用场景、经验内容、相关移民类别(可选)、置信度
  - 移民类别下拉:QMAS/GEP/IANG/TTPS/CIES/TechTAS
  - 表单验证:类型、场景、内容为必填

这与方案A(评估门控失败自动沉淀经验)互补:
- 自动路径:Gate failure → PENDING experience → 管理员审核 → 激活
- 手动路径:管理员直接创建 → 自动激活(无需审核)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 22:09:47 -08:00
..
admin-client feat(admin-client): add manual experience creation in ExperiencePage 2026-02-06 22:09:47 -08:00
services feat(agents): add capability boundary guardrails — input gate, cascading fallback, output gate rules 2026-02-06 21:59:10 -08:00
shared feat(agents): implement multi-agent collaboration architecture 2026-02-06 04:26:39 -08:00
web-client feat(agents): implement multi-agent collaboration architecture 2026-02-06 04:26:39 -08:00