dsh-approval-ai

DSH PLUGIN安全与权限

仓库 ang-XWBWZ/dsh-approval-ai · npm @llangtop/dsh-approval-ai

安全与权限 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

DSH plugin 基于统一 LLM 路由自动应答审批请求,支持 fail-closed 策略与多种审批模式,提升审批效率与安全性。

一句话选型结论

按资料字段整理

dsh-approval-ai 是安全与权限类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类安全与权限 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 2 复刻 0 · 未关闭 issue 0
最近更新 2026-08-14 创建于 2026-08-14
README 8.3 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add @llangtop/dsh-approval-ai@0.1.0-rc.5
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名@llangtop/dsh-approval-ai可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-approval-ai:DeepSeek Harness 的 AI 审批应答插件

  • AI自动审批
  • fail-closed安全策略
  • 多模式切换
  • 设置命令

上游标签

agent-harnessapprovalcordisdeepseek-harnessdsh-plugindsh-pluginsllmnpmsecuritytypescript

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度稳定按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 插件目录树加载失败
  • L5.3_HTTP_SERVED HTTP 服务响应

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在安全与权限场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-approval-ai当前 L4 · 沙盒安装通过 低风险 2 未标注 有
dsh-infinite-gen-4 未做沙盒验证 未标注 1,611 未标注 无
cc-safety-net 未做沙盒验证 未标注 1,591 未标注 无
dsh-wallpaper-engine L5 · 运行验证通过 低风险 1,018 0.2.0-rc.2 等 10 个 有
api-relay-audit L5 · 运行验证通过 低风险 875 0.2.0-rc.2 等 10 个 有
hol-guard L4 · 沙盒安装通过 不在扫描口径 828 未标注 有

仓库档案

安全与权限
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方ang-XWBWZ仓库 dsh-approval-ai · 默认分支 main
分类安全与权限security
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue2 / 0 / 0收录时的数值,非实时
创建 / 更新2026-08-14 · 2026-08-14最后推送 2026-08-14
本站收录2026-08-19首次进入本站目录的时间

README 全文

8.3 KB
作者原文,中文版优先;只做安全转义,不改内容

@llangtop/dsh-approval-ai

English | 中文

AI approval answerer for approval/request. DSH creates and routes the approval request; this plugin only answers that already-created request with a minimal ctx.llm assessment. It adds no path, workspace, shell, sandbox, or risk trigger of its own. The default route is provider deepseek-official with model deepseek-v4-flash; the adapter owns credentials and provider protocol.

Configuration

- id: approval-ai
name: '@llangtop/dsh-approval-ai'
config:
provider: deepseek-official
model: deepseek-v4-flash
mode: ai-only
currentPath: /workspace/project
projectArchitecture: 'Configuration-supplied summary; the plugin never reads project files.'
implementationArchitecture: 'Approval policy plugin over approval/request and ctx.llm.'
agentsMd: 'Configuration-supplied guidance; the plugin never reads AGENTS.md.'
securityApprovalPrompt: 'Assess only this approval request; do not read files or call tools.'
timeoutMs: 3000
failClosed: true

mode is ai-only, ai-then-human, or human-only. The plugin receives every approval request that reaches its listener; it does not decide whether an approval request should exist. human-only delegates every request. ai-only maps valid allow assessments to allowed-once; deny, high/critical risk, review, malformed output, missing routes, cancellation, timeout, and provider errors fail closed. ai-then-human maps review to the configured reviewOutcome because listener order is not a priority mechanism.

Page operations

In the Web composition, the client bundle contributes a card to the native settings page and the host registers the approval-ai settings namespace. The card can be used at Settings → Plugins → Plugin configuration → AI Approval when the DSH Web settings API exposes that namespace; Save writes the namespace, Discard drops page-local edits, and Reset removes user overrides. Version 0.1.0-rc.5 did not include the client card, so install 0.1.0-rc.6 or later and restart Web after updating the profile.

The current DSH Web host filters settings namespaces through a fixed allowlist before /api/settings.describe responds. approval-ai is registered by this plugin but is not currently in that host allowlist, so the expected result can be that the package is installed and the client bundle is loaded while the settings card is absent. This is a host API exposure limitation, not a slot-order, npm-scope, or client-export problem. A third-party package cannot add a namespace to the fixed host allowlist by itself; use /approval-ai below until the host provides an extensible settings registration mechanism.

The plugin registers the native DSH /approval-ai slash command. Open the Web / command menu or type a command directly; changes are written to the approval-ai settings namespace and take effect live, so users do not need to edit cordis.patch.yml:

/approval-ai                 Show provider, model, mode, and failClosed
/approval-ai enable          Enable automatic AI approval (ai-only)
/approval-ai disable         Disable AI approval and delegate to a human (human-only)
/approval-ai mode ai-only
/approval-ai mode ai-then-human
/approval-ai mode human-only
/approval-ai provider    Select a registered LLM provider route
/approval-ai model       Select a model ID on that route
/approval-ai reset           Clear this plugin's user overrides

provider must be a route currently registered by DSH, and model must be served by that route. disable does not unload the plugin; it switches it to human-only so DSH's existing human approval page handles requests. Command results are shown directly in the session and are not sent to the model.

The model receives the DSH approval request fields plus explicitly configured background: the current path, architecture summaries, mounted AGENTS.md guidance, and the security-approval prompt. These are configuration values, not files the plugin reads. The plugin never reads the project, session history, tool schemas, credentials, or the main system prompt, and does not write the model request or response to the agent session. Arguments and response reasons are byte-bounded and model output is runtime-validated JSON.

Local development and DSH testing

Run these commands from this repository:

pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run build
npm pack --dry-run

To mount the checkout into a local DSH profile, run the DSH CLI from its own repository and use an absolute path:

cd /path/to/deepseek-harness
pnpm dsh plugin --profile approval-ai-local add /mnt/data/demo/dsh插件/approval-ai
pnpm dsh --profile approval-ai-local --dump-config
pnpm dsh --profile approval-ai-local

The profile should show an approval-ai entry inserted beside the existing approval service. The default patch uses provider deepseek-official, so the profile must have a working DSH LLM configuration and credentials before an approval request can receive an AI answer. pnpm dsh plugin --profile why @llangtop/dsh-approval-ai proves only that the package is in the profile dependency graph; it does not prove that the patch was applied or that the current Web process loaded the package. Stop and restart pnpm dsh web after changing the profile. Remove the local installation with pnpm dsh plugin --profile approval-ai-local remove @llangtop/dsh-approval-ai.

To test the exact npm artifact without publishing it, build and pack the repository, then install the generated .tgz path with dsh plugin --profile add /absolute/path/to/package.tgz.

Release and installation

The source repository is github.com/ang-XWBWZ/dsh-approval-ai. The public npm package is @llangtop/dsh-approval-ai; the current 0.1.0-rc.6 version is a prerelease and should use the next dist-tag.

Publish from this repository after logging in with an npm account that can publish the @llangtop scope:

npm login
npm whoami
npm publish --access public --tag next

Install the published bundle into a DSH profile:

cd /path/to/deepseek-harness
pnpm dsh plugin --profile approval-ai add @llangtop/dsh-approval-ai@next
pnpm dsh --profile approval-ai --dump-config

dsh plugin reads the package's dsh.bundle.patch entry, adds the package to the profile, and applies cordis.patch.yml during composition. The patch inserts the approval-ai row beside DSH's existing approval service; no change to the DSH source tree is required. The package's peer versions target DSH 0.1.0-rc.6, Cordis 4.0.1, and Schemastery 3.18.1.

For a release candidate that is not yet on npm, create a tarball and install that file instead:

pnpm pack
pnpm dsh plugin --profile approval-ai add /absolute/path/to/llangtop-dsh-approval-ai-0.1.0-rc.6.tgz

The GitHub repository is the source and release workspace; npm and a local tarball are the supported runtime distribution paths because prepack builds the published lib/ artifacts.

Model Experience

Approval assessment

What the model sees

The auxiliary model sees a fixed classifier instruction and a JSON user payload constructed from the already-created DSH approval request. It must return decision, risk, and reason; no tool calls are available. The plugin does not add approval triggers or read project content.

Token effect

Each approval request creates one bounded auxiliary request. The request is independent of the main conversation and is not added to the main transcript.

KV Cache effect

The auxiliary request does not alter the main conversation cache. Provider adapters may apply their own transport caching.

Known Limitations and Deferred Work

  • No approval-result cache, permanent authorization, or multi-model arbitration is provided. The Web settings card, when exposed by the host settings API, edits only this plugin's four runtime settings; it does not replace DSH's approval interaction page. The /approval-ai command remains the supported control surface when the host allowlist hides the card.
  • The current ApprovalRequest carries tool arguments but not a provider-specific workspace resolver; callers must provide optional context when available.
  • A human review handoff is represented by reviewOutcome; a separate human answerer remains responsible for interactive handling.

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
dsh-approval-ai 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add @llangtop/dsh-approval-ai@0.1.0-rc.5` 即可。对应的 npm 包名是 `@llangtop/dsh-approval-ai`。

dsh-approval-ai 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-approval-ai 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-approval-ai 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-approval-ai 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-approval-ai 有哪些功能?

AI自动审批、fail-closed安全策略、多模式切换、设置命令。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

安全与权限
按星标排序,可作替代方案

dsh-infinite-gen-4

dsh-infinite-gen-4

DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投

未标注验证等级 1,611 星

cc-safety-net

cc-safety-net

为 DeepSeek Harness 等编码 CLI 提供执行前防护,在工具调用前拦截破坏性 Git 与文件系统命令,并阻止读取 SSH 密

未标注验证等级 1,591 星

dsh-wallpaper-engine

dsh-wallpaper-engine

DSH plugin 将本机 Wallpaper Engine 壁纸变为网页界面背景,支持视频、网页、场景壁纸渲染,并配以 iOS 液态玻璃

L5 · 运行验证通过 1,018 星

api-relay-audit

api-relay-audit

DSH plugin 本地安全审计工具,检测 AI API 中继与 LLM 代理的提示注入、模型替换、工具调用改写、SSE 异常及 Web3

L5 · 运行验证通过 875 星

hol-guard

hol-guard

L4 · 沙盒安装通过 828 星

sandbase-harness

sandbase-harness

SandBase Harness 是本地优先的 AI Agent 运行时,提供沙箱会话、MCP 工具、记忆、凭据管理与审计回放,并内置控制台

L4 · 沙盒安装通过 708 星

ang-XWBWZ 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。