@hy-sde-org/dsh-tool-av

中文文档
0.2.1-rc.5发布于 2026/11/01MITTypeScriptES Module

Model-facing Automic Vault tools (av_scan audit, av_doctor hardening check, av_catalog, av_list) over the host ctx.av service — read-only, never returns secret values — plus an av:tools system-prompt section; standalone, no harness changes required.

原始使用文档
文档目录4 节
  1. Tool surface
  2. Security rules
  3. Configuration
  4. Install

@hy-sde-org/dsh-tool-av

Model-facing Automic Vault tools over the host ctx.av service, plus an av:tools system-prompt section. The surface is deliberately read-only: audit the Mac for exposed credentials, verify hardening, inspect the detector/hardener catalog, and list saved secret names — never release a Secret Value into model context. Ported standalone from the fork-only @deepseek-ai/dsh-tool-av — no upstream harness changes required.

Tool surface

  • av_scan [severity] [detector] [max_findings] — full audit; findings carry severity, explanation, remediation, affected files/lines, and the detectors that produced them. severity filters (high/medium/low), detector narrows to one tool (names from av_catalog scope=detectors).
  • av_doctor [tool] — hardening verification: healthy/issue per hardener with remediation and stub/target paths.
  • av_catalog [scope] [max_entries] — which detectors and hardeners Automic Vault knows (names + docs links + hardened/applicable status), so the agent can target av_scan and av_doctor correctly.
  • av_list — saved secret names only, never values.

When the av CLI is missing or broken, every tool degrades to a structured { available: false, reason } value with an installation hint (brew install --cask automic-vault/isotopes/automic-vault) instead of throwing.

Security rules

  1. No tool output ever contains a Secret Value. av_list returns names only; scan/doctor/catalog return paths, configs, and advice.
  2. Hardening is reported and proposed (av harden <tool> as a terminal command the user runs); never auto-approved or executed by the agent.
  3. Findings and catalog entries are capped (maxFindings default 30, maxCatalogEntries default 60) and summarized.

Configuration

configdefaultmeaning
maxFindings30cap on av_scan findings rendered + returned
maxCatalogEntries60cap on catalog entries per scope
enabledtrueset false to disable the av:tools prompt section

Install

Agent-plane: mounts as a preset row and resolves the host av service (no realm/isolate needed). Copy the ready-made preset from examples/agent-preset/ into ~/.dsh/.agent-presets/<id>/.

pnpm --filter @hy-sde-org/dsh-tool-av test    # end-to-end tool tests over a fake av CLI
pnpm --filter @hy-sde-org/dsh-tool-av build   # tsc -> dist

版本与发布记录

@hy-sde-org/dsh-tool-av 共发布 9 个版本,首次发布于 2026/09/06;过去 12 个月发布了 9 个版本。

版本发布日期距今
0.2.1-rc.5latest2026/11/012 天前
0.2.1-rc.32026/10/259 天前
0.2.1-alpha.42026/10/1618 天前
0.2.1-alpha.22026/10/1321 天前
0.2.0-rc.22026/10/031 个月前
0.1.7-rc.22026/09/291 个月前

关于 @hy-sde-org/dsh-tool-av 的常见问题

@hy-sde-org/dsh-tool-av 是什么?

主机ctx上面向模型的自动保险库工具(av_scan审计,av_doctor加固检查,av_catalog, av_list)。Av服务-只读,从不返回秘密值-加上Av:tools系统提示部分;独立,不需要改变线束。

如何安装 @hy-sde-org/dsh-tool-av?

在项目目录运行 npm install @hy-sde-org/dsh-tool-av,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@hy-sde-org/dsh-av(^0.2.1-rc.5)、@deepseek-ai/cordis(~4.0.5)、@deepseek-ai/dsh-tools(^0.2.1-rc.5)、@deepseek-ai/dsh-system-prompt(^0.2.1-rc.5)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@hy-sde-org/dsh-tool-av 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@hy-sde-org/dsh-tool-av 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@hy-sde-org/dsh-tool-av 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@hy-sde-org/dsh-tool-av 可以商用吗?

@hy-sde-org/dsh-tool-av 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@hy-sde-org/dsh-tool-av 还在维护吗?

最新版本 0.2.1-rc.5 发布于 2026/11/01(2 天前);至今共发布 9 个版本,其中过去 12 个月发布了 9 个;首次发布于 2026/09/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。