dshbase

插件目录 / Automation / dsh-auto-approval

dsh-auto-approval

已验证 · 实测可装 Andy8647

✓ 持续维护 基于 16 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

4Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-13最近推送
跨平台平台

功能简介

(无描述)

✅
我们的评价
可用 — 实测通过,早期项目

(无描述) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-auto-approval

[English](README.md) | [中文](README.zh.md) Automated tool-call approval for DeepSeek Harness: an auto tier for the approval policy that classifies every tool call as **allow / deny** (fully autonomous — no human in the loop, uncertain calls are denied). A monorepo of two packages: | Package | Role | |---|---| | [packages/dsh-auto-approval](./packages/dsh-auto-approval) | **host half**: pre-execute classifier (L0 rules + L1 LLM, two-state allow/deny) | | [packages/dsh-client-ui-auto-approval](./packages/dsh-client-ui-auto-approval) | **client half**: AA status chip beside the composer access-mode selector, fed by the host via a Typert remote |

Demo

!https://raw.githubusercontent.com/Andy8647/dsh-auto-approval/main/docs/demo.gif The **chip** next to the composer shows the run state (AA on / AA off); hover for cumulative stats, click for a dialog with the on/off switch, config summary and the recent-decisions table. The demo covers: file read/write and ls whitelisted and dispatched directly, a harmless command allowed by the L1 classifier, and dangerous commands rejected by deny rules / legacy-ask rules (now denying) / the self-kill guard.

Install

Install both packages into the same profile (published to npm, ships built artifacts — no build environment needed): ``sh

host half (required: the approval decision logic)

dsh plugin --profile web add dsh-auto-approval

client half (optional: the AA status chip in the composer)

dsh plugin --profile web add dsh-client-ui-auto-approval
` For source-based installs (development / self-hosting), see the [host package README](./packages/dsh-auto-approval).

Development

`sh pnpm install # export NPM_TOKEN=$(cat ~/.dsh/npm-token) if any @deepseek-ai/* dep is still private pnpm -r run build # build both packages pnpm -r run test # host unit tests ``

License

BSD-3-Clause

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-auto-approval」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

Web profile:

dsh plugin --profile web add dsh-auto-approval

Headless(CLI)profile:

dsh plugin --profile headless add dsh-auto-approval

包信息

npm:dsh-auto-approval · 版本 0.1.0 · 实测环境 dsh 0.1.0-rc.6

实测报告

端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。

使用场景

自动化一项重复工作——调度、串联任务或响应事件——不用你亲手启动。

适合谁

有周期性工作、想 cron 式无人值守而非手动触发的人。

二次开发建议

触发器和任务模板是缝——加事件驱动或文件监听触发,以及更丰富的流程编排。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Automation 里更多

浏览全部 7797 个插件 →