dsh-dsml-guard

抹掉漏进助手正文的 DSML 标记;只在发「继续」确实有用时补一条——毫无产出的标记泄漏、单次回复输出 token 到顶(max-tokens),以及宿主重试策略不覆盖的错误;与 DSH 0.2.2 起「重试策略」重叠的 EMPTY_RESPONSE / SERVER / TIMEOUT / TRANSPORT 默认交给宿主在 step 内重试,把 skipHostRetriedCodes 置 false 可恢复插件自己续跑。被上游误分类的错误码按报文细分;默认连续 3 次失败后停下,任何正常回复都会清零。额度、限流、鉴权、上下文总体超限与人为取消一律不续。适用 DSH 0.2.1-rc.2 起、0.3.0 以下,Node 20 起。

插件介绍

抹掉漏进助手正文的 DSML 标记;只在发「继续」确实有用时补一条——毫无产出的标记泄漏、单次回复输出 token 到顶(max-tokens),以及宿主重试策略不覆盖的错误;与 DSH 0.2.2 起「重试策略」重叠的 EMPTY_RESPONSE / SERVER / TIMEOUT / TRANSPORT 默认交给宿主在 step 内重试,把 skipHostRetriedCodes 置 false 可恢复插件自己续跑。被上游误分类的错误码按报文细分;默认连续 3 次失败后停下,任何正常回复都会清零。额度、限流、鉴权、上下文总体超限与人为取消一律不续。适用 DSH 0.2.1-rc.2 起、0.3.0 以下,Node 20 起。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-dsml-guard

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:Jessicaisleep/dsh-dsml-guard

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。