Overview
dsh-plugin-pact
README / EN
Package documentation
Registry summary
dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHubLIMITATIONS
Known limitations
- `resume` 的钩子在会话发布后安装,恢复后的第一步不受门控。 - 本轮不做 token 级工具映射(produce/consume 与补偿),也不注册 PACT 原生工具。 - 依赖 DSH 预发布 API(`AgentLoop`、`AgentFactory`、`agent/pre-step`、`tools/pre-execute`);DSH 升级需复核。 - 已用 `@deepseek-ai/dsh@0.2.1-rc.2` 验证真实装载:`--dump-config` 显示原行禁用与替代行插入,启动后 `ctx.agentLoop` 为 `PactAgentLoop` 且继承官方 `AgentLoop`。 - 已在真实 DSH 会话中验证门控(`deepseek-official/deepseek-flash`):`pact-*` 预设下 `govern` 允许 `bash` 执行并返回 `PACT_TOOL_OK`、`denyTools` 返回 `pact: tool denied by policy`、`fakeEnabled=false` 使 `agent/pre-step` 拒绝并直接结束 turn(无模型请求)。 - 已用 `backend=wasm`(`wasm-bindgen 0.2.127` 产物 + `open-host.js`)在同一 headless profile 复跑上述三条路径并通过;插件退出时不显式关闭宿主,实例锁文件可能残留,下次打开按 pid 存活检测自动回收。
