- 新增 script-common/disease-knowledge.ts:病种知识的 tier-agnostic 单一访问源
· diseaseKnowledgeForSubKey(subKey):subKey → {label,risks,advantages,reviewDuration}
· resolveDisease(reason):subKey 优先 + 文本兜底(prompt + fallback 共用唯一入口)
· SUBKEY_MAP 显式声明每病种在两套字典的中文 key → 收掉"双跳 + exact/includes 混用"脆弱性
- 修 bug:jaw_cyst 的 keypoints 字典 key 是「囊肿」、duration 是「颌骨囊肿」,
原 exact 查表静默丢 risks/advantages → 现分列对齐,颌骨囊肿召回拿回风险/优势要点
- prompt.ts / call.ts(fallback)改用 resolveDisease,删散落的 missedFromReason+lookupKeyPoints+lookupReviewDuration 三连
- 为标准/深度档铺路:同一份病种知识,后续档直接 resolveDisease 拿规则自由组织
- promptVersion bump v10
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| admin | Loading commit data... | |
| agent | Loading commit data... | |
| ai | Loading commit data... | |
| auth | Loading commit data... | |
| facts | Loading commit data... | |
| patient | Loading commit data... | |
| persona | Loading commit data... | |
| plan | Loading commit data... | |
| plan-aggregate | Loading commit data... | |
| realtime-coach | Loading commit data... | |
| sync | Loading commit data... |