Repository navigation
Releases: mengwEX/dsh-block-ptc
Release list
v0.2.2
修复同一个 block 跨过用户追加消息后,block_summary 被“受保护的用户消息”限制拒绝的问题。
区间内的用户追加消息现在随工作一起总结,摘要要求准确保留新增需求、纠正和约束。系统和 developer 消息仍受保护,错误会标明具体事件类型和序号。
如果新消息在模型写好摘要后才到达,旧摘要会被拒绝,避免延迟提交清理掉尚未读到的新要求。
更新 dsh-block-ptc@0.2.2 后,请彻底退出并重开 DSH。已有历史摘要仍保留原文本,新生成的摘要使用 <block-summary> 格式,不显示空 ids。
验证:逻辑及客户端回归、DSH 0.2.0-rc.2 原生 Session 追加/回放与工具 schema 离线检查、发布包核对;未运行新的模型 API 评测或 Windows 实机验收。
v0.2.1
新增 block 划分提示:按内聚、相对解耦的中等工作单元组织 block,每块有明确的子目标和完成条件。同一子目标的调查、实现和验证归在一起;各块完成后及时总结收口。
大任务按可分开的子目标拆分,避免整个大任务始终共用一个 block,也避免每次工具调用都新建 block。小任务可以只用一块,不限制并行数量或固定调用次数。
更新了系统提示、ids 参数说明及中英文 README。
安装/更新 dsh-block-ptc@0.2.1,重启 DSH 后选择 Block PTC 预设并新建会话。
验证:语法、逻辑及客户端检查,发布包内容核对。未重新运行模型 API 评测。
v0.2.0
本版支持两个工具使用 ids 数组,兼容旧参数 id。收口会替换目标 ids 最早到最晚出现之间的完整区间,摘要继承其他剩余 ids,并可继续参与后续总结。
- 使用独立的
<block-summary>标签;空 ids 不再出现在正文或工具返回值中。 - 摘要说明已完成结果、未完成事项及下一步;当前收口调用仍属于原区间,不额外保留或重复插入摘要。
- 修复
tool-jobs后台完成通知阻断收口的问题。 - 保留原来的上下文与缓存机制示意图,明确标注人工指定 token 权重。
在 DSH Plugin Manager 中安装/更新 dsh-block-ptc,重启后选择 Block PTC 预设。
兼容声明:DSH >=0.2.0-rc.2、Cordis >=4.0.4,不设版本上限。
验证:逻辑及客户端回归、发布包检查、DSH 0.2.0-rc.2 原生 Session 和工具 schema 的离线校验。此次未重新运行付费 API 任务。
v0.1.1
block_run_code now has a dedicated PTC-style tool row, including program code,
output and nested tool calls. This release also simplifies the model-facing
instructions and allows newer DSH versions without an upper version bound.
Changes
- Keep the single-string
idAPI. Summary instructions focus on writing and
submitting the block's summary, with necessary details retained as needed. - Require DSH
>=0.2.0-rc.2and Cordis>=4.0.4, without upper bounds. Missing
tool, prompt or session APIs now produce explicit errors. - Add a browser tool-row renderer and a discovery anchor that leaves other
presets unaffected. Preserve the outer call ID so program sub-calls attach
to the visible block row.
Install or update
In the Harness Plugin Manager, install/update dsh-block-ptc to 0.1.1.
The exact npm package spec is dsh-block-ptc@0.1.1.
Restart Harness and select the Block PTC preset.
Validation
Local syntax checks, standalone host/client tests and npm package-content checks
passed. GitHub Actions checks Node 22/24 on Linux and Windows. The browser tests
use a stubbed React/slot runtime; live browser loading/rendering and newer DSH
hosts have not been validated for this release.
No new real API requests or context/cache savings benchmark were run. README
comparison charts remain illustrative. Declared version ranges permit loading;
they are not a guarantee that every newer host has passed compatibility checks.
本版本保留单个 id,精简摘要使用说明,移除版本上限,并修复 PTC 工具卡片与
子调用树的显示接入。更新后请重启 Harness,并选择 Block PTC 预设。
本地离线检查通过;新版浏览器渲染与更新宿主尚未完成真实验收,未进行 API
节省量实测。README 对比图仍为示意图。
v0.1.0
Initial open-source release of dsh-block-ptc, a community bundle for DeepSeek Harness 0.2.0-rc.2.
Features
block_run_codegroups program execution into named context blocks and delegates execution to the built-in PTCrun_codetransport.tools.block_summaryreplaces completed block messages in the model-visible context with a summary written by the model, without an extra summarization request.- The original session log is retained; system and user messages are preserved.
- A separate Block PTC preset, English/Chinese documentation, and an MIT license with upstream preset attribution.
Install
Install dsh-block-ptc from npm through the Harness Plugin Manager:
plugin_manager install_bundle dsh-block-ptc
Restart the host and start a session with the Block PTC preset. For local development, clone this repository and install the absolute checkout path instead. The .tgz attachment contains the same distributable bundle published to npm; extract it and install the extracted package directory if an offline archive is preferred.
Validation and limits
- Syntax checks and the mock-session logic suite pass locally.
- The actual release archive was extracted in isolation; its entry, package/preset naming and logic suite were checked.
- GitHub CI checks Node 22/24 on Linux and Windows.
- Historical live-host validation is documented in the READMEs. This release's automated checks do not start a DSH host or rerun end-to-end model sessions.
- Summaries are lossy.
tokensFreedcounts estimated replaced-message tokens before the new summary's cost.
首次开源发布:包名统一为 dsh-block-ptc,适配 DSH 0.2.0-rc.2。已同步发布到 npm,可在 Harness 的 Plugin Manager 中按包名 dsh-block-ptc 直接安装;安装后重启宿主并选择 Block PTC 预设。