编者按

dsh-mock

确定性 mock 模型回合:/mock run 与 /mock replay 走真实 DSH AgentLoop、ToolRuntime 与事件流(早期测试版,API 可能变化)。

这是一个 DeepSeek Harness(DSH)插件。本站汇总其 GitHub README、安装信息、维护状态与公开安全信号。

上游未提供中文 README,当前展示仓库原始内容。

🧪 dsh-mock

⚠️ Unstable release: dsh-mock@0.1.0 is available for early testing. The command, API, and UI surface may change before a stable release.

📦 Install

Add the plugin to the DSH web profile with one command:

dsh plugin --profile web add dsh-mock@0.1.0

Or install the npm package directly:

npm install dsh-mock@0.1.0

This is an external Cordis plugin. It registers the internal per-turn provider route mock with the mock model and routes accepted /mock run and /mock replay commands through the public AgentLoop request waterfall. The route is deliberately omitted from the advertised model catalog, so the normal model selector remains unchanged; only the slash command activates it. The plugin also registers mock in the public slash-command catalog, and its command handler queues the exact line as a normal AgentLoop follow-up. The adapter emits ordinary model chunks; the host AgentLoop and ToolRuntime execute and record the actual calls.

Replay is read-only and in-memory. A relative path is resolved against the current session's absolute session.header.cwd; when that value is missing, relative paths are rejected. Absolute paths are accepted for read-only input, and the plugin never creates, copies, rewrites, renames, or deletes a replay source. --overwrite-wait-time-ms changes only explicit waits in the detached canonical plan.

The plugin emits ephemeral mock/status events for a host UI bridge. The bridge should render a compact status row above the existing composer and leave normal DSH tool/result/error cards authoritative.

REPOSITORY SIGNALS

安全与安装证据

该分数只基于公开仓库元数据与本站登记的安装证据,不等同于代码安全审计。

来源可追溯

来自公开插件目录,并链接到公开 GitHub 仓库。

许可证

仓库声明 MIT 许可证。

维护活跃度

最近 180 天内有代码更新。

安装证据

已登记精确 npm 版本、完整性哈希与 bundle 检查结果。

安装生命周期脚本

已检查的包元数据未声明安装生命周期脚本。