dsh-pstack 0.2.0-beta.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +16 -3
  2. package/README.zh.md +18 -5
  3. package/assets/pstack-config-entry.png +0 -0
  4. package/cordis.patch.yml +8 -0
  5. package/dist/client.mjs +2341 -0
  6. package/dist/client.mjs.map +1 -0
  7. package/dist/remote.d.mts +27 -0
  8. package/dist/remote.mjs +234 -0
  9. package/dist/role-config-NNn5r1JX.mjs +415 -0
  10. package/dist/role-manifest-C3fUzjLI.d.mts +19 -0
  11. package/dist/role-wire-DZwTn2wF.d.mts +55 -0
  12. package/dist/roles.d.mts +18 -0
  13. package/dist/roles.mjs +323 -0
  14. package/dist/skills/authored/decision-audit/SKILL.md +21 -17
  15. package/dist/skills/authored/decision-audit/SKILL.zh.md +21 -17
  16. package/dist/skills/authored/decision-audit/references/recover-commit.md +3 -3
  17. package/dist/skills/authored/decision-audit/references/recover-commit.zh.md +3 -3
  18. package/dist/skills/authored/decision-write/SKILL.md +11 -9
  19. package/dist/skills/authored/decision-write/SKILL.zh.md +11 -9
  20. package/dist/skills/authored/decision-write/references/land.md +3 -3
  21. package/dist/skills/authored/decision-write/references/land.zh.md +3 -3
  22. package/dist/skills/authored/decision-write/references/scope.md +16 -0
  23. package/dist/skills/authored/decision-write/references/scope.zh.md +16 -0
  24. package/dist/skills/authored/docs-drift/SKILL.md +120 -0
  25. package/dist/skills/authored/docs-drift/SKILL.zh.md +120 -0
  26. package/dist/skills/authored/setup-project-docs/SKILL.md +14 -9
  27. package/dist/skills/authored/setup-project-docs/SKILL.zh.md +14 -9
  28. package/dist/skills/authored/setup-project-docs/references/decision-conventions.md +3 -1
  29. package/dist/skills/authored/setup-project-docs/references/decision-conventions.zh.md +3 -1
  30. package/dist/subagent.d.mts +3 -18
  31. package/dist/subagent.mjs +5 -412
  32. package/package.json +32 -2
package/README.md CHANGED
@@ -52,7 +52,7 @@ Most upstream pstack skills declare `disable-model-invocation: true`. `poteto-mo
52
52
  See [`pstack/README.md`](./pstack/README.md) for the full capability map, gaps, and acceptance status.
53
53
 
54
54
  > [!IMPORTANT]
55
- > This release targets DSH `0.2.2-alpha.2` or newer and requires Node.js `>=24.21.1`. `engines.dsh` is the range `>=0.2.2-alpha.2`: newer DSH versions are assumed compatible, and the requirement is only raised after a fix to the port is needed. See [Compatibility](#compatibility) before installing or upgrading.
55
+ > Requires DSH `>=0.2.1-rc.5` and Node.js `>=24.21.1`. Newer DSH versions remain supported by default; only confirmed incompatibilities are listed in [Compatibility](#compatibility).
56
56
 
57
57
  ## Quick start
58
58
 
@@ -72,7 +72,7 @@ See [`pstack/README.md`](./pstack/README.md) for the full capability map, gaps,
72
72
  /setup-pstack
73
73
  ```
74
74
 
75
- This command reads the providers, models, and reasoning efforts available in the current deployment. It writes them to `$DSH_HOME/pstack-models.mdc`. Without this file, every role inherits the parent's routing.
75
+ This command reads the providers, models, and reasoning efforts available in the current deployment. It writes them to `$DSH_HOME/pstack-models.mdc`. Without this file, every role inherits the parent's routing. After setup, the same values can be viewed and edited on **Plugins → Installed plugins → dsh-pstack**.
76
76
 
77
77
  ### Common entry points
78
78
 
@@ -86,6 +86,7 @@ See [`pstack/README.md`](./pstack/README.md) for the full capability map, gaps,
86
86
  | `/statechart` | Checks state models with TLA+ and TLC, and outputs a Mermaid state diagram. |
87
87
  | `/show-me-your-work` | Maintains a TSV decision log and audits the current work. |
88
88
  | `/retro` | Reviews a coding session's environment. |
89
+ | `/docs-drift` | Audits project-discovered documentation; `report` is read-only, while `fix` repairs approved findings. |
89
90
 
90
91
  ## Capabilities
91
92
 
@@ -100,6 +101,12 @@ See [`pstack/README.md`](./pstack/README.md) for the full capability map, gaps,
100
101
 
101
102
  The `poteto-agent` and `comment-sicko` presets handle implementation delegation and read-only comment review. `pstack_script` can run five bundled scripts: `check-plan`, `watch-pr`, `worktree-audit`, `log`, and `statechart`. The script ids form a closed enum and cannot be used to build arbitrary paths.
102
103
 
104
+ ### Plugin configuration entry
105
+
106
+ ![Click Configure in the Plugins page header](assets/pstack-config-entry.png)
107
+
108
+ Open **Plugins → Installed plugins → dsh-pstack** and click **Configure** in the bundle page header to open the configuration dialog.
109
+
103
110
  ## Skills directory
104
111
 
105
112
  `skills/` is not an upstream pstack directory. It contains skills that pstack does not provide but real projects need. The source directories are `skills/authored/` and `skills/.agents/skills/`. The build publishes them to `dist/skills/authored/` and `dist/skills/vendored/`. `vendored` preserves open-source upstreams verbatim, while this repository maintains `authored`. References from pstack skills do not change these inclusion criteria.
@@ -111,6 +118,7 @@ The `poteto-agent` and `comment-sicko` presets handle implementation delegation
111
118
  | `authored` | `decision-write` | Writes, lands, and supersedes decision records in Draft and Land modes, requiring `Status` and `Implemented-by` to appear together. | Adds the decision lifecycle that real projects often lack. |
112
119
  | `authored` | `decision-audit` | Read-only audit of decision-record routing, status, scope, anchors, and supersession relationships. | Keeps decision records searchable and reviewable over time. |
113
120
  | `authored` | `setup-project-docs` | Sets up architecture, glossary, decisions, and the root `AGENTS.md` pointers, and can be run repeatedly to fill gaps. | Gives a new project a sustainable documentation entry point. |
121
+ | `authored` | `docs-drift` | Discovers maintained documents through project pointers, checks implementation drift, contradictions, terminology, links, redundancy, and unsupported elaboration, and repairs approved findings. | Adds periodic documentation inspection and controlled cleanup without assuming a fixed document layout. |
114
122
 
115
123
  `vendored` skills come from `mattpocock/skills@59db609eb1e18aaf59b63284d0e52255aff0c63c`. [`skills/skills-lock.json`](./skills/skills-lock.json) records their sources, paths, and hashes. Both skill trees ship with the package, but they do not correspond to upstream pstack versions.
116
124
 
@@ -154,11 +162,16 @@ Choose one of three browser providers: `@deepseek-ai/dsh-experimental-browser-us
154
162
 
155
163
  | Item | Version | Notes |
156
164
  |---|---|---|
157
- | DSH | `>=0.2.2-alpha.2` | Baseline `0.2.2-alpha.2`; newer versions are assumed compatible until the port needs a fix |
165
+ | DSH | `>=0.2.1-rc.5` | Minimum supported version; verified through the `0.2.2-alpha.2` baseline |
158
166
  | pstack | `0.15.36` | Upstream baseline commit `4dd1d05` |
159
167
  | Node.js | `>=24.21.1` | Runtime requirement |
160
168
  | Cordis | `~4.0.6-alpha.1` | Peer dependency |
161
169
 
170
+ > [!NOTE]
171
+ > **DSH version support:** `engines.dsh` accepts every version `>=0.2.1-rc.5`, including newer prereleases. Routine DSH upgrades require no changes here. Add an entry only when a specific version is confirmed unsupported; raise the minimum only when a port fix requires it.
172
+ >
173
+ > **Known incompatible DSH versions:** None.
174
+
162
175
  Before upgrading DSH, verify experimental plugin package names, tool names, and configuration in a test profile. Upgrading upstream pstack requires regenerating the tree and rechecking the adaptation table.
163
176
 
164
177
  > [!CAUTION]
package/README.zh.md CHANGED
@@ -52,7 +52,7 @@
52
52
  完整能力映射、缺口和验收状态见 [`pstack/README.md`](./pstack/README.md)。
53
53
 
54
54
  > [!IMPORTANT]
55
- > 此版本以 DSH `0.2.2-alpha.2` 为基准、要求 Node.js `>=24.21.1`。`engines.dsh` 为 `>=0.2.2-alpha.2` 范围:默认认为更高版本兼容,只有移植内容需要修复时才提高版本要求。安装或升级前请先查看 [兼容性](#兼容性)。
55
+ > 要求 DSH `>=0.2.1-rc.5`、Node.js `>=24.21.1`。默认支持更高版本的 DSH;只有确认不兼容的版本才会列入 [兼容性](#兼容性)。
56
56
 
57
57
  ## 快速开始
58
58
 
@@ -62,7 +62,7 @@
62
62
  dsh plugin --profile web add dsh-pstack
63
63
  ```
64
64
 
65
- 也可以在 Web 或 Desktop 的 Plugins 页面安装。
65
+ 也可以在 Web 或 Desktop 的「插件」页面安装。
66
66
 
67
67
  2. 重启对应的 profile,或新开一个 Session。
68
68
 
@@ -72,7 +72,7 @@
72
72
  /setup-pstack
73
73
  ```
74
74
 
75
- 该命令读取当前部署提供的 provider、model 与 reasoning effort,并写入 `$DSH_HOME/pstack-models.mdc`。缺少这个文件时,所有角色继承父级路由。
75
+ 该命令读取当前部署提供的 provider、model 与 reasoning effort,并写入 `$DSH_HOME/pstack-models.mdc`。缺少这个文件时,所有角色继承父级路由。初始化后可在 **插件 → 已安装插件 → dsh-pstack** 查看和编辑同一份配置。
76
76
 
77
77
  ### 常用入口
78
78
 
@@ -86,6 +86,7 @@
86
86
  | `/statechart` | 用 TLA+ 与 TLC 检查状态模型,输出 Mermaid 状态图 |
87
87
  | `/show-me-your-work` | 维护 TSV 决策日志,审计当前工作 |
88
88
  | `/retro` | 对一次编码会话做环境复盘 |
89
+ | `/docs-drift` | 巡检项目自身指针发现的文档;`report` 只读,`fix` 仅修复获批项。 |
89
90
 
90
91
  ## 能力
91
92
 
@@ -100,6 +101,12 @@
100
101
 
101
102
  `poteto-agent` 和 `comment-sicko` 两个 preset 分别负责实现型委派与只读评论审查。`pstack_script` 可以运行 `check-plan`、`watch-pr`、`worktree-audit`、`log`、`statechart` 五个随包脚本,脚本 id 是封闭枚举,不能拼任意路径。
102
103
 
104
+ ### 插件配置入口
105
+
106
+ ![在插件页头右上角点击「配置」入口](assets/pstack-config-entry.png)
107
+
108
+ 打开 **插件 → 已安装插件 → dsh-pstack**,点击 bundle 页头右上角的 **配置** 按钮即可打开配置弹窗。
109
+
103
110
  ## skills 目录
104
111
 
105
112
  `skills/` 不是 pstack 上游目录。它只收 pstack 没提供、真实项目开发中又需要的技能。源目录是 `skills/authored/` 和 `skills/.agents/skills/`,构建后分别发布到 `dist/skills/authored/` 和 `dist/skills/vendored/`。`vendored` 逐字保留开源上游,`authored` 由本仓维护。pstack 技能对它们的引用只是使用关系,不改变收录标准。
@@ -111,12 +118,13 @@
111
118
  | `authored` | `decision-write` | 决策记录的写入、落地和取代,Draft 与 Land 两种模式,`Status` 与 `Implemented-by` 必须成对。 | 补上真实项目常缺的决策生命周期。 |
112
119
  | `authored` | `decision-audit` | 只读审计决策记录的路由、状态、Scope、锚点与取代关系。 | 让决策记录持续可检索、可复核。 |
113
120
  | `authored` | `setup-project-docs` | 搭建 architecture、glossary、decisions 与根 `AGENTS.md` 指针,可重复补齐。 | 给新项目一套可持续的项目文档入口。 |
121
+ | `authored` | `docs-drift` | 从项目指针发现维护文档,检查实现漂移、矛盾、术语、链接、冗余与无依据扩写,仅修复获批项。 | 不依赖固定文档布局,补充周期性文档巡检与受控清理。 |
114
122
 
115
123
  `vendored` 技能来自 `mattpocock/skills@59db609eb1e18aaf59b63284d0e52255aff0c63c`,来源、路径和哈希记录在 [`skills/skills-lock.json`](./skills/skills-lock.json)。两棵技能树都随包发布,但和 pstack 上游版本没有对应关系。
116
124
 
117
125
  ## 可选 DSH 插件
118
126
 
119
- 以下插件随 DSH 提供,默认关闭。安装 dsh-pstack 时不要求安装这些插件,但部分 pstack 流程需要它们才能完整执行。要启用插件,在 Plugins 页面用 **Add plugin** 输入包名。也可以运行 `dsh plugin --profile <profile> add <package>`,然后重启 profile。除 `@deepseek-ai/dsh-mcp-client` 外,本节列出的 bundle 与 provider 都是实验性的。
127
+ 以下插件随 DSH 提供,默认关闭。安装 dsh-pstack 时不要求安装这些插件,但部分 pstack 流程需要它们才能完整执行。要启用插件,在「插件」页面用**添加插件**输入包名。也可以运行 `dsh plugin --profile <profile> add <package>`,然后重启 profile。除 `@deepseek-ai/dsh-mcp-client` 外,本节列出的 bundle 与 provider 都是实验性的。
120
128
 
121
129
  > [!NOTE]
122
130
  > 未启用可选插件时,pstack 技能仍可加载。需要插件的步骤会输出 `Skipped in DeepSeek Harness: <step>. <reason>.` 后继续。缺少 `gh`、Java/TLC 或视频工具时,对应步骤会报告 blocked 或降级为截图。dsh-pstack 不会把未运行的步骤标记为通过。
@@ -154,11 +162,16 @@
154
162
 
155
163
  | 项目 | 版本 | 说明 |
156
164
  |---|---|---|
157
- | DSH | `>=0.2.2-alpha.2` | 基准 `0.2.2-alpha.2`;默认认为更高版本兼容,移植内容需要修复时再提高要求 |
165
+ | DSH | `>=0.2.1-rc.5` | 最低支持版本;已验证至 `0.2.2-alpha.2` 基线 |
158
166
  | pstack | `0.15.36` | 上游基线提交 `4dd1d05` |
159
167
  | Node.js | `>=24.21.1` | 运行时要求 |
160
168
  | Cordis | `~4.0.6-alpha.1` | peer dependency |
161
169
 
170
+ > [!NOTE]
171
+ > **DSH 版本支持:** `engines.dsh` 接受所有 `>=0.2.1-rc.5` 的版本,包括更高的预发布版。DSH 正常升级时无需修改此处;只有确认某个版本不受支持时才添加条目,只有移植修复需要时才提高最低版本。
172
+ >
173
+ > **已知不兼容的 DSH 版本:** 暂无。
174
+
162
175
  升级 DSH 前,先在测试 profile 中验证实验性插件的包名、工具名和配置。升级上游 pstack 需要重新生成树并复核适配表。
163
176
 
164
177
  > [!CAUTION]
Binary file
package/cordis.patch.yml CHANGED
@@ -3,6 +3,8 @@
3
3
  # `pstack` registers the bundled skill provider and `pstack_skill`, the trusted loader
4
4
  # that can reach skills hidden with `disable-model-invocation`.
5
5
  # `pstack-models` registers the read-only model/effort directory used by `/setup-pstack`.
6
+ # `pstack-roles` exposes the same role file to the Plugins configuration page through a
7
+ # Typert Remote service; its browser half is declared by `dsh.client` in package.json.
6
8
  # `pstack-subagent` registers `pstack_subagent`, which re-reads the role file on every
7
9
  # delegation and selects one of the pstack agent presets below.
8
10
  # `pstack-script` registers `pstack_script`, the only supported way to run the bundled
@@ -17,6 +19,8 @@
17
19
  name: dsh-pstack
18
20
  - id: pstack-models
19
21
  name: dsh-pstack/models
22
+ - id: pstack-roles
23
+ name: dsh-pstack/roles
20
24
  - id: pstack-subagent
21
25
  name: dsh-pstack/subagent
22
26
  config:
@@ -46,6 +50,8 @@
46
50
  name: "@deepseek-ai/dsh-tool-fs"
47
51
  - id: tool-fs-search
48
52
  name: "@deepseek-ai/dsh-tool-fs-search"
53
+ config:
54
+ sampleOverCapGlobResults: false
49
55
  - id: tool-todo
50
56
  name: "@deepseek-ai/dsh-tool-todo"
51
57
  config:
@@ -107,3 +113,5 @@
107
113
  edit: false
108
114
  - id: tool-fs-search
109
115
  name: "@deepseek-ai/dsh-tool-fs-search"
116
+ config:
117
+ sampleOverCapGlobResults: false