DNAlec/dsh-auto-approve0

@dnalec/dsh-auto-approve

DSH 自动审批门控插件:支持自动审批、QQ 官方 Bot 审批推送及设置页配置。

AI 分析

核心用途是实现无人值守的自动审批或移动端远程审批。适合需要让 Agent 自动执行高风险操作,同时保留第三方即时通讯工具通知与干预手段的用户。

包名
@dnalec/dsh-auto-approve
版本
0.1.3
许可证
MIT
最近更新
2026年9月11日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:DNAlec/dsh-auto-approve

Configuration

- id: dsh-auto-approve
  config:
    onlyAutoApprovePreset: true
    presetSandbox: workspace-write   # or read-only: workspace writes also go through the judge
    judge:
      provider: ''
      model: ''
      reasoningEffort: ''
      timeoutMs: 20000
    notify:
      enabled: true
      chatId: ''
      userId: ''
      timeoutSecs: 120

Empty judge fields follow the deployment default model. If there is no default and nothing is configured, or the route is invalid, that request goes to a human. There is no hardcoded fallback model. The settings Judge timeout writes judgeTimeoutMs in allowlist.json (that is what runtime uses); yaml judge.timeoutMs is only a default when allowlist does not exist yet.

If a JSON file cannot be parsed, this process uses in-memory defaults and does not overwrite the file. Settings will not write a corrupt allowlist except Restore defaults; a corrupt plugin config needs an explicit overwrite; corrupt QQ credentials need a re-save or QR scan.