← 返回列表
D

dsh-urge-risk-light

v0.1.0 · 0 天前发布

催办风险灯(Urge Risk Light)— 根据流程节点停留时间与 SLA 对比批量判定红/黄/绿催办风险的 DeepSeek Harness 工具插件,含结果卡片与右下角悬浮组件

dshdsh-plugindeepseek-harnessagentworkflowtypescriptslaurgeriskprocess

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 数组,必填非空)

    | 字段 | 类型 | 必填 | 说明 |
    | --- |

    查看完整 README →

    版本兼容矩阵

    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}}