D
dsh-urge-risk-light
v0.1.0 · 0 天前发布
催办风险灯(Urge Risk Light)— 根据流程节点停留时间与 SLA 对比批量判定红/黄/绿催办风险的 DeepSeek Harness 工具插件,含结果卡片与右下角悬浮组件
README
催办风险灯(urge-risk-light)
根据流程节点停留时间批量判定催办风险的 DeepSeek Harness 工具插件,提供模型可见工具analyze_urge_risks。
判断规则
| 条件 | riskLevel | riskLabel | shouldUrge | suggestedAction |
| --- | --- | --- | --- | --- |
| nodeStayHours < slaHours × 0.8 | green | 正常 | false | 暂不处理 |
| slaHours × 0.8 ≤ nodeStayHours < slaHours | yellow | 临期 | true | 提前提醒 |
| nodeStayHours ≥ slaHours | red | 超时 | true | 立即催办 |
| lastUrgedHoursAgo 存在且 < 4(冷却覆盖) | 保留原等级 | 保留原标签 | 改为 false | 暂缓重复催办 |
冷却覆盖规则:suppressedByCooldown = true,并返回距允许再次催办的剩余小时数
(cooldownRemainingHours = 4 - lastUrgedHoursAgo)。
工具输入(processes 数组,必填非空)
| 字段 | 类型 | 必填 | 说明 |
| --- |
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-urge-risk-light
- Repo
- git+https://github.com/MurrayJoe/dsh-urge-risk-light.git
- Engines
{"node":">=22"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"client":{"inject":["slots"],"platform":"web","immediately":true}}