@hy-sde-org/dsh-tool-pi-durable

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

Model-facing durable-agent tools for DeepSeek Harness (durable_agent_submit / write / status / history / fork / abort) over the @hy-sde-org/dsh-pi-durable engine service.

原始使用文档

@hy-sde-org/dsh-tool-pi-durable

The tools half of the dsh-pi-durable plugin for DeepSeek Harness: a preset row (hy-sde-tool-pi-durable) exposing the durable agent to the model — durable_agent_submit, durable_agent_write, durable_agent_status, durable_agent_history, durable_agent_fork, durable_agent_abort — plus the durable-agent prompt section. It resolves the engine service published by @hy-sde-org/dsh-pi-durable by name; without the engine the tools still mount and every call fails loud with [pi-durable-unavailable] — mounting a preset must never break session creation over an optional host.

dsh plugin --profile web add @hy-sde-org/dsh-pi-durable @hy-sde-org/dsh-tool-pi-durable

Disable per deployment by patching the row by id (hy-sde-tool-pi-durable → config.enabled: false). Full usage and configuration: https://github.com/hy-sde/dsh-pi-durable#readme

MIT License. Based on pi by franekp, mounted as unmodified npm dependencies; see THIRD-PARTY-NOTICES.md in the repo.

版本与发布记录

@hy-sde-org/dsh-tool-pi-durable 共发布 6 个版本,首次发布于 2026/10/03;过去 12 个月发布了 6 个版本。

版本发布日期距今
0.2.1-rc.5latest2026/11/012 天前
0.2.1-rc.3.12026/10/258 天前
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 个月前

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

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

DeepSeek Harness的面向模型的持久代理工具(durable_agent_submit / write / status / history / fork / abort)通过@hy-sde-org/dsh-pi-durable engine服务。

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

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

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

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

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

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

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

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

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

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

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

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