dsh-claude-project-ui 0.4.3 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.4 — 2026-12-01
4
+
5
+ **前置可选用:装不装 `@kyf-eng/dsh-threads` 都能用,两个包同时装也不冲突。** 上一轮考虑过把
6
+ dsh-threads 声明成本插件的 dependency 一起装——**放弃**:那会把用户自己装的那份挤掉,造成重复加载
7
+ 和版本冲突,正好和「装了也不冲突」相反。
8
+
9
+ - **新增 `src/threads-probe.js`**:两个独立信号交叉判断 dsh-threads 是否真的在本进程里——
10
+ ① `storageDomain.get("dsh_threads")` 有没有句柄(dsh-threads 自己在 `apply` 里打开并持有,
11
+ 本插件从不自己打开这个域);② Cordis 插件注册表里有没有 `name` 为 `dsh-threads` 的运行时
12
+ (覆盖「entry 在、apply 还没跑完或失败」那段窗口)。**不看存储文件**:装了但没建项目照样没这个
13
+ 文件,卸载之后文件也还在——它只作为佐证出现在返回值里,不参与判断。任一为真即算装了;探测永不
14
+ 抛异常,宿主没有这些服务时按「没装」处理。
15
+ - **board 路由新增能力标志**:`threads: { installed, signals: { domain, runtime, storageFile }, projects }`。
16
+ 每次快照现读,装/卸 dsh-threads 不需要重载本插件。
17
+ - **面板改成三态**(客户端纯函数 `boardState()`):① 没装 → 一条提示「未检测到 @kyf-eng/dsh-threads」,
18
+ 说明装它才会有讨论串与任务、现在能用的四项(知识库、上下文简报、项目文件夹、`/hub`),并给出在
19
+ DSH 插件市场里搜索安装的指引;② 装了但没有项目 → 保留原来的「还没有 dsh-threads 项目」(只有这时
20
+ 它才准确);③ 正常看板。没装时不抛异常、不刷警告日志,folders / settings / kb 全部照常。
21
+ - **文案**:zh/en 各 +6 条(97 → **103**:5 条未安装提示 + 1 条版本不符提示),README 里的「97 条」同步改成 103。
22
+ - **id / 槽位冲突核查(结论:不改名)**:两个包的 `cordis.patch.yml` 各插一条 entry,id 分别是
23
+ `dsh-claude-project-ui` 与 `dsh-threads`,不重名,所以不改 id;改名会让用户 patch 层里按 id 写的
24
+ 配置失效(cordis patch 按 id 定位)——本机 desktop patch 层当前没有针对本插件 id 的覆盖,实测没有
25
+ 配置可丢,但没有理由为「已唯一」的 id 承担这个风险。客户端槽位 key/id 也各带前缀:本插件
26
+ `project-hub` / `project-folders` / `project-hub-folders` / locale `project-hub`,上游
27
+ `@kyf-eng/dsh-threads`、`@kyf-eng/dsh-threads/chat`、`dsh-threads`、`dsh-threads-sidebar-projects`、
28
+ `dsh-threads-projects`、locale `dshThreads`——两个页签、两个会话头部按钮各渲染一次,不重复注册。
29
+ - **只读边界未变**:仍然只有 `src/mainfolder.js`(切主文件夹)会写 `dsh_threads.json`,新代码纯读。
30
+ - **钉版(用户 2026-12-01 追加要求)**:以后**总是基于我们的 fork**,不跟上游最新。
31
+ fork `lanechenhku/dsh-threads` 上打了轻量 tag `v0.2.0-baseline` → commit
32
+ `469f32c3de8ccce61f88acdb527e5e0131c2ddd1`(= 上游 `v0.2.0` tag 指向的 release commit,不是 HEAD)。
33
+ 核对:npm 0.2.0 tarball 的 5 个随包文件(`package.json`/`dist/index.js`/`dist/client.js`/`cordis.patch.yml`/`LICENSE`)
34
+ 与该 commit 的 blob sha **逐字节一致**;tarball sha512 与 registry 元数据一致;HEAD 只多改了一个 `vitest.config.ts`。
35
+ 完整事实与命令见 [`docs/dsh-threads-baseline.md`](docs/dsh-threads-baseline.md)。
36
+ - **包名不变**:fork 保持 `@kyf-eng/dsh-threads`,不改名——同名就是同一个包,用户只会装到一份;
37
+ 改名反而会同时加载并抢同一个 `dsh_threads` 域。**换源换的是安装来源,不是包名。**
38
+ - **钉版安装写法已核实**(没有装进任何 profile):DSH 的 `parseInstallSpec` 接受 `github:` 前缀,
39
+ 并用隔离的 pnpm 11.28.5 在 `/tmp` 跑 `--lockfile-only` 实测
40
+ `github:lanechenhku/dsh-threads#v0.2.0-baseline` 解析到 `codeload…/tar.gz/469f32c3…`(包名一致,pnpm 未拒绝)。
41
+ - **版本不一致只提示不拦**:宿主读「本插件所在 profile 安装的 dsh-threads 版本」(只认依赖本插件且在
42
+ `dsh.profile.bundles` 里选了本插件的 profile;多个 profile 版本冲突 → 读作未知,不猜),
43
+ 快照多出 `threads.version` / `threads.verified`;不是 0.2.0 时看板上方一行提示「未在此版本上验证」,
44
+ 不报错、不阻断;读不到就什么都不说。新增配置 `threadsProfilesDir`(默认 `~/.dsh/profiles`,只读)。
45
+ - **保险**:fork 了上游 `lanechenhku/dsh-threads`(纯净镜像,不改内容、不同步改动)。
46
+ 授权核对(2026-12-01 用 GitHub API 实测):上游仓库根目录**有** `LICENSE`(MIT,Copyright 2026 fky),
47
+ npm 包内也带同一份,`package.json` 的 `license` 是 `MIT`(旧记录说「上游没有 LICENSE 文件」,已过时不采用)。
48
+ - **测试**:harness 54 → **61** 条全绿(探测两信号、无 dsh-threads 的宿主照常加载且零警告、patch id
49
+ 不冲突、面板三态、槽位 id 不撞、版本探测只认运行中的 profile、版本不符只提示不拦),`test/spec-check.mjs` 通过。
50
+ - **商店文案(本轮重写,定位:Claude Projects)**:`package.json` 的 `description` 换成中文在前的
51
+ 候选 1(125 字符)——第一句就是「想要 Claude Projects 的项目界面?DeepSeek Harness 里就有」,
52
+ 后接一屏看板 / 多辅助文件夹(系统原生选择器)/ 回报自动变任务,`dsh-threads` 只在句尾一句「可选」
53
+ (商店卡片与 npm 首段都读这个字段,**发布 0.4.4 后才生效**)。README 中英首屏重排为
54
+ 「一句话 + 三个最能打的 + 从 Claude Projects 过来会看到什么」;原「和 dsh-threads 的关系」
55
+ 「前置:是可选的」「版本与兼容性」三节合入安装前的 `## 兼容性`,dsh-threads 降级为其中一个小节。
56
+ GitHub About 换成 333 字符版(中文在前、英文在后,写明可选 / 共存),**尚未执行** `gh repo edit`;
57
+ 候选、计数命令与一致性核对记在 [`docs/store-copy-0.4.4.md`](docs/store-copy-0.4.4.md),
58
+ 历史候选见 [`docs/about-drafts.md`](docs/about-drafts.md)。README 里文案条数 97 → 103
59
+ (与 `src/client.js` 的 `MESSAGES.zh/en` 实测一致),侧栏页签名统一写「项目看板」。
60
+ - **0.4.4 其他文档**:README 里原来写「需要 dsh-threads」的地方改成「可选前置」;
61
+ 探测/共存/隔离 profile 的可复现证据记在 [`docs/optional-threads-0.4.4.md`](docs/optional-threads-0.4.4.md)。
62
+
63
+ - **一键装 dsh-threads(A 档,本轮新增)**:面板的「未检测到 @kyf-eng/dsh-threads」提示里加了按钮。
64
+ 真相是 DSH 把装插件整套流程做成了 Cordis 服务 `pluginManager`(`installBundle` / `setBundleEnabled`),
65
+ 和 **Web 插件市场、`plugin_manager` 模型工具**调用的是同一个服务(后者就在
66
+ `dsh-plugin-manager/lib/types/tools.js:102,139` 直接调它);本插件用 `ctx.get("pluginManager")`
67
+ 取服务(Cordis 的 `get` 不要求 `inject`,缺服务返回 `undefined`),所以 headless 宿主照常加载。
68
+ 三个分支按 profile 的 `package.json` **现读**决定:没依赖 → `installBundle` 装钉版
69
+ `github:lanechenhku/dsh-threads#v0.2.0-baseline`;依赖在但 `dsh.profile.bundles` 没有 → 只
70
+ `setBundleEnabled`(不跑 pnpm、不联网);两样都有 → **不调用**、只提示「已配置,重启后生效」。
71
+ 新路由 `POST /project-hub/threads-install`(`x-project-hub: 1` 头、405/501/409/400 各有语义,
72
+ **永不抛到进程外**),面板两步确认(第二次才写 profile),结果区分 `applied`(不用重启)/
73
+ `restart-required` / `skip` / 失败(`build-blocked` 点名待放行脚本)。拿不到服务的宿主退回 C 档:
74
+ 非桌面 profile 给一条可复制的命令,**桌面版不给命令**(CLI 无条件拒 `desktop`)只指回插件市场。
75
+ **B 档(自己写 profile)刻意不做**:DSH 在那里加锁、跑 pnpm、失败还原,再写一遍只会抢同一个文件。
76
+ **前提纠错(实测)**:把 dsh-threads 从 `dsh.profile.bundles` 删掉、依赖留着,隔离 `DSH_HOME` 里
77
+ `--dump-config` 得到的 `dsh-threads` 行数是 **0**——所以「声明成 dependency 会重复加载」不成立,
78
+ 不写进依赖的真实理由是换源与 hoisted 布局打架、且会把本插件的安装拖上 git 构建风险。
79
+ 完整证据(文件:行 + 复现命令)见 [`docs/two-installs-problem.md`](docs/two-installs-problem.md)。
80
+ - **文案**:zh/en 各 +15 条(103 → **118**),README 的条数同步改。
81
+ - **测试**:61 → **71** 条全绿(新增 8 条安装路由:无服务/桌面无命令/一键装/已装跳过/只差启用/
82
+ 失败与抛异常/**成功或失败都不自己写 profile**/头与 POST 校验;2 条客户端:按钮何时出现、
83
+ 失败文案两种语言)。
84
+
85
+ - **内嵌(vendor)@kyf-eng/dsh-threads 已评估——不可行,没有搬代码**:宿主侧可行(patch 行的 `name`
86
+ 可以是包内子路径,只要 `exports` 开口子;实测未声明的子路径 → `ERR_PACKAGE_PATH_NOT_EXPORTED`);
87
+ 但**客户端侧不可行**:client 半边按**包**发现(`exports["./client"]` + Loader 行名必须是精确包名),
88
+ 子路径行名不产生 client 源,`dsh.client` 也没有第二个入口字段,一个包只能有一份 client bundle。
89
+ 共存同样互斥:同包名两个活跃 Loader 源会让 `client-modules` 直接抛
90
+ "resolves from multiple active Loader sources",存储域第二次 open 抛 `DomainError('already-open')`。
91
+ 因此保留 A 档「一键安装」作为唯一形态。三问的结论、文件:行证据与复现命令见
92
+ [`docs/vendoring-feasibility.md`](docs/vendoring-feasibility.md)。
93
+ - **致谢(用户明确要求)**:README **顶部**(中英各一段)新增「致谢 / Credits」——讨论串与项目工作流
94
+ 来自 `@kyf-eng/dsh-threads`(**作者 fky(Kyf-eng)**,MIT,`Copyright (c) 2026 fky`);新增
95
+ [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md)(来源仓库、npm 维护者、MIT 全文、我们补了什么、
96
+ 只读/唯一写路径、版本策略)。**许可文件原样留档**:`vendor/dsh-threads/LICENSE` 从已安装的
97
+ `@kyf-eng/dsh-threads@0.2.0` 包里逐字节复制(1060 字节,sha256 `4c80378d…`,与上游仓库根目录那份一致),
98
+ `vendor/dsh-threads/` 里**没有代码**,同目录一页 README 说明为什么只放许可。
99
+ - **`package.json` 的 `description` 不动**:没有内嵌,所以「dsh-threads 可选」仍然准确;只有将来真改成
100
+ 内嵌才需要一起改(已写进 `docs/vendoring-feasibility.md` §5)。
101
+ - **测试**:仍是 **71** 条全绿 + `test/spec-check.mjs` 通过(本轮只改文档与 README,不动代码路径)。
102
+
3
103
  ## 0.4.3 — 2026-11-19
4
104
 
5
105
  **只改描述,没有代码变化。** 把 `package.json` 的 `description` 换成与 README / GitHub About 一致的说法。
package/README.md CHANGED
@@ -2,13 +2,48 @@
2
2
 
3
3
  **简体中文** · [English](#english)
4
4
 
5
- 把 **Claude Code 的 Projects + Threads 体验**搬进 DeepSeek Harness —— 在
6
- [@kyf-eng/dsh-threads](https://github.com/Kyf-eng/dsh-threads) 之上,补出 Claude 用户熟悉的那套
7
- 项目界面、交互方式和上下文逻辑。
5
+ **想要 Claude Projects 那种项目界面?在 DeepSeek Harness 里,这就是它。**
8
6
 
9
- > 一句话:dsh-threads 给出「项目 + 讨论串」的骨架;本插件补上 Claude 用户习惯的四件事——
10
- > **每个讨论串都懂的项目说明**、**一眼看完的看板面板**、**开新讨论串时的自动简报**、
11
- > **跨会话的上下文接续**。
7
+ 右侧栏一个「项目看板」页签,把 **项目 · 讨论串 · 任务** 铺在同一屏:当前项目置顶,其余按最近活动排序,
8
+ 点开一个项目,它名下的讨论串与任务就展开在下面,不用再进一层。每个项目还能挂**多个辅助文件夹**
9
+ (macOS 走系统原生文件夹选择器),讨论串的**回报自动汇总成看板任务**。面板中英双语、设置就在面板里改。
10
+
11
+ > `@kyf-eng/dsh-threads` 是**可选**前置:装了共存不冲突;没装也能用知识库、上下文简报和项目文件夹,
12
+ > 面板会提示装上它才有讨论串与任务(见 [兼容性](#兼容性))。
13
+
14
+ ## 致谢 / Credits
15
+
16
+ **这里的「项目 → 讨论串 → 任务」工作流,基础来自 [`@kyf-eng/dsh-threads`](https://github.com/Kyf-eng/dsh-threads)——
17
+ 作者 fky(GitHub [Kyf-eng](https://github.com/Kyf-eng),npm 维护者 `kyf-eng`),以 **MIT** 许可发布
18
+ (`Copyright (c) 2026 fky`)。** 没有它,这个看板根本无从谈起。本项目在它之上补的是:项目看板
19
+ (一屏三态)、多辅助文件夹挂载、上下文简报与知识库、回报自动汇总成任务、中英双语与面板内设置——
20
+ 是**在其之上补**,不是重写。
21
+
22
+ 我们没有把它的代码搬进来(不是 vendor):它作为独立包由你安装、版本由你决定;**内嵌在客户端侧不可行**
23
+ (DSH 一个包只能有一个 client bundle),技术原因与文件:行证据见
24
+ [`docs/vendoring-feasibility.md`](docs/vendoring-feasibility.md),完整的第三方声明见
25
+ [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md)。
26
+
27
+ ## 三个最能打的
28
+
29
+ 1. **项目 / 讨论串 / 任务一屏看完** —— 侧栏页签里当前项目置顶,其余按活跃度排序;讨论串状态、任务进度、最近活动时间都在同一屏,不点进去也看得清。
30
+ 2. **每个项目可挂多个辅助文件夹** —— 主文件夹之外再加几个目录,走**系统原生选择器**选;每个会话把它们登记成沙箱可写根,新讨论串的提示里直接拿到绝对路径。
31
+ 3. **讨论串回报自动变成任务** —— 每轮回报按 `threadId` 幂等汇总成看板任务(done / doing / pending / blocked),你看板就行,不用手工记账。
32
+
33
+ ## 从 Claude Projects 过来,会看到什么
34
+
35
+ 同一批需求,Claude Projects 有一套原设计;搬到 DeepSeek Harness 之后形状变了,但对应关系是清楚的:
36
+
37
+ | Claude Projects 里 | 这里 |
38
+ |---|---|
39
+ | 项目列表,进项目才看得到会话 | 侧栏「项目看板」一屏铺开所有项目:当前项目置顶卡,其余按活跃度倒序,每行带讨论串数 / 任务数 / 最近活动 |
40
+ | 项目里的会话 | 讨论串(由 dsh-threads 提供,可选;没装也能用知识库、简报与文件夹) |
41
+ | Project instructions / project knowledge | 项目说明注入每个讨论串 + 知识库 `kb_*` + 每轮带上来的项目简报 |
42
+ | 一个项目一个工作目录 | 主文件夹之外可挂多个辅助文件夹(系统原生选择器,按会话授权沙箱) |
43
+ | 自己记待办 | 看板任务;讨论串回报自动汇总,按 `threadId` 去重 |
44
+
45
+ 这不是逐项复刻——两个是不同产品:本插件跑在 DeepSeek Harness 上,`@kyf-eng/dsh-threads` 可选。
46
+ 逐条差异见下文 [比 Claude Projects 多出的东西](#比-claude-projects-多出的东西)。
12
47
 
13
48
  ## 强化了 lead 与 thread 的分工
14
49
 
@@ -35,25 +70,6 @@
35
70
 
36
71
  改完完全退出 DSH 再启动。
37
72
 
38
- ## 和 dsh-threads 的关系:补强,不是替代
39
-
40
- | 能力 | `@kyf-eng/dsh-threads` | 本插件 `dsh-claude-project-ui` |
41
- |---|---|---|
42
- | 项目 / 讨论串的创建与生命周期 | ✅ 拥有 | 只读识别,绝不写它的数据 |
43
- | 主对话当 lead、主动开 thread | ✅ 提示词 + `thread_open` | — |
44
- | 项目级说明(每个 thread 都看到) | ❌ 只有主对话自己的 instructions | ✅ 短约定注入主对话和所有讨论串 |
45
- | 跨 thread 的看板 | ❌ | ✅ 侧栏面板 + `/hub board` 命令 + `board_list` 工具 |
46
- | 开 thread 时的上下文简报 | 手写 `task` 文本 | ✅ `context_brief` 一键拼好 |
47
- | 讨论串回报汇聚成任务 | ❌ | ✅ 幂等自动汇总(按 `threadId` 去重) |
48
- | 讨论串建好时的启动上下文 | — | ✅ 自动注入项目说明 + 看板 + 他人进展 |
49
- | 辅助文件夹(多目录挂载) | PR #61 在做,未发布 | ✅ 本插件自己存 + 提示注入 + 沙箱可写根 |
50
- | 切换项目主文件夹 | PR #61 在做,未发布 | ✅ 本插件实现(写 dsh-threads 记录 + DSH workspace 记录,重启后新会话生效) |
51
-
52
- 两个插件通过**存储文件 + storage-domain 写链**解耦:本插件不 import dsh-threads 的模块,平时只读它的存储;
53
- 只有「切换主文件夹」这一条写路径(`src/mainfolder.js`)会动它的项目记录和 DSH 的 workspace 记录,
54
- 而且走 dsh-threads 已经打开的 domain 句柄、带备份与回滚。任何一个卸载,另一个照常工作;
55
- dsh-threads 换存储格式时本插件静默降级为「不注入」,不会报错。
56
-
57
73
  ## 比 Claude Projects 多出的东西
58
74
 
59
75
  同一件事(项目 / 讨论串 / 任务),Claude Projects 有一套原设计;在 DSH 里,这套东西的形状不太一样。
@@ -65,11 +81,11 @@ dsh-threads 换存储格式时本插件静默降级为「不注入」,不会
65
81
  | 多目录挂载 | 一个项目一个工作目录 | 项目可再挂多个辅助文件夹:每个会话登记为沙箱可写根(宿主提供沙箱策略时),新会话的提示里直接给绝对路径,`kb_add` 只在主文件夹与已挂载目录里取文件 |
66
82
  | 文件夹入口 | 项目设置一处 | 三个入口共用同一个弹窗、同一条写入路径:看板卡「更换…」、设置页逐项目一行、讨论串设置里的「⚙ 更多文件夹⋯」 |
67
83
  | 看板设置 | 没有看板设置 | 看板右上 ⚙:语言、显示已解决/已归档、回报汇总、「其他项目」卡片默认折叠/展开、排序、文件夹管理——改完立即生效,存在本插件自己的 `settings.json` 里,不改配置、不重启 |
68
- | 中英切换 | 界面语言跟随应用 | 97 条文案中英各一份,可在 ⚙ 里锁定中文或 English,切换当下重渲染,不用改 `cordis.yml` |
84
+ | 中英切换 | 界面语言跟随应用 | 118 条文案中英各一份,可在 ⚙ 里锁定中文或 English,切换当下重渲染,不用改 `cordis.yml` |
69
85
  | 回报变任务 | 没有跨会话任务看板 | 讨论串每轮回报按 `threadId` 幂等汇总成任务(done / doing / pending / blocked),已解决的讨论串不再生成新任务 |
70
86
  | 选文件夹 | 建项目或换目录时选一次 | 切换主文件夹、每次加辅助文件夹都能弹系统原生选择框(Desktop 走 Electron 对话框,其余环境走宿主 picker);拿不到选择器就不渲染按钮,手输路径照旧 |
71
87
 
72
- 这不是「替代 Claude Projects」——两个是不同产品(本插件运行在 DeepSeek Harness 上,需要 dsh-threads),
88
+ 这不是「替代 Claude Projects」——两个是不同产品(本插件运行在 DeepSeek Harness 上,dsh-threads 是可选前置),
73
89
  表里只说明同类需求在这里怎么解;没有代码支撑的对比不写。
74
90
 
75
91
  ## 功能
@@ -272,7 +288,7 @@ hover 背景 `rgba(127,127,127,0.06)`、**不用大阴影**、字号 12/13、路
272
288
  设置页、注入按钮会立刻重渲染。
273
289
 
274
290
  面板、弹窗、设置页和注入按钮的**所有**文案都在 `src/client.js` 的 `MESSAGES.zh` / `MESSAGES.en` 两张表里
275
- (各 97 个 key;测试会校验两侧 key 完全一致、没有空文案、并且没有「表里有但没地方用」的 key):
291
+ (各 118 个 key;测试会校验两侧 key 完全一致、没有空文案、并且没有「表里有但没地方用」的 key):
276
292
 
277
293
  - 语言来自 DSH 的 **locale 服务**(`dsh-client-locale`):`ctx.locale.getLocale()` 读当前语言、
278
294
  `ctx.on("locale/change")` 跟随切换、`ctx.locale.register("project-hub", { zh, en })` 登记字典。
@@ -281,6 +297,74 @@ hover 背景 `rgba(127,127,127,0.06)`、**不用大阴影**、字号 12/13、路
281
297
  不会露出 `board.section.others` 这种原始 key。
282
298
  - 侧栏页签标题这类由宿主渲染的文字用 thunk 提供,宿主下次渲染时跟上新语言。
283
299
 
300
+ ## 兼容性
301
+
302
+ **运行环境**:DeepSeek Harness `>=0.2.1-rc.2 <0.3.0`;Web GUI 有侧栏,`tui` / headless 退化成 `/hub board`。
303
+
304
+ ### `@kyf-eng/dsh-threads` 是可选的
305
+
306
+ **装不装都能用;两个包同时装也共存,不打架。** dsh-threads 提供「项目 + 讨论串」本身,本插件补的是它上面那层界面与上下文。少了它,看板少一半内容,其余照常。
307
+
308
+ | 能力 | 没装 dsh-threads | 装了 dsh-threads |
309
+ |---|---|---|
310
+ | 知识库(`kb_*`)、`context_brief` / `/hub brief`、`hub_note` | ✅ 可用(数据在本插件自己的 `~/.dsh/project-hub/`) | ✅ 可用 |
311
+ | 项目文件夹 / 辅助文件夹挂载、设置页逐行修改 | ✅ 可用(工作区列表照常) | ✅ 可用 |
312
+ | 看板里的讨论串与任务卡片 | ❌ 没有数据来源 | ✅ 正常 |
313
+ | 切换项目主文件夹 | ⚠ 没有项目记录可改 | ✅ 项目记录 + workspace 记录一起改 |
314
+
315
+ **没装时面板会怎样**:侧栏「项目看板」里是一条提示——**未检测到 @kyf-eng/dsh-threads**,说明装上它才会出现讨论串和任务,并列出「现在就能用」的几项(知识库、上下文简报、项目文件夹),最后给出在 DSH 插件市场里搜索安装的指引。它**不会**显示「还没有 dsh-threads 项目」——那句只在「装了、但确实还没建项目」时出现。没装时也不报错、不刷警告日志,`/hub`、设置页与知识库完全不受影响。
316
+
317
+ **宿主怎么判断**(`src/threads-probe.js`):不看存储文件在不在——装了但没建项目照样没有这个文件,卸载之后文件也还留在磁盘上。判断用两个独立信号:
318
+
319
+ 1. `storageDomain.get("dsh_threads")` 有没有句柄:dsh-threads 在自己的 `apply` 里打开并持有它,本插件从不自己打开这个域;
320
+ 2. Cordis 插件注册表(`ctx.registry`)里有没有 `name` 为 `dsh-threads` 的插件运行时。
321
+
322
+ 任一为真即算装了;两个都读不到按「没装」处理,且探测永不抛异常。信号是每次请求时现读的,所以装/卸 dsh-threads 不需要重载本插件。
323
+
324
+ **同时装为什么不会冲突**:两个包的 `cordis.patch.yml` 各插一条 entry,id 分别是 `dsh-threads` 与 `dsh-claude-project-ui`(cordis 的 patch id 是全局的,所以这里必须不同),互不覆盖;客户端注入的槽位 key/id 也各带前缀(上游是 `@kyf-eng/dsh-threads` / `dsh-threads-*` / locale `dshThreads`,本插件是 `project-hub` / `project-folders` / `project-hub-folders`),因此两个页签、两个会话头部按钮都会各出现一次,不会重复注册同一个 key。
325
+
326
+ ### 和 dsh-threads 的分工
327
+
328
+ 两边各管一层,本插件不写它的项目与讨论串数据:
329
+
330
+ | 能力 | `@kyf-eng/dsh-threads` | 本插件 `dsh-claude-project-ui` |
331
+ |---|---|---|
332
+ | 项目 / 讨论串的创建与生命周期 | ✅ 拥有 | 只读识别,绝不写它的数据 |
333
+ | 主对话当 lead、主动开 thread | ✅ 提示词 + `thread_open` | — |
334
+ | 项目级说明(每个 thread 都看到) | ❌ 只有主对话自己的 instructions | ✅ 短约定注入主对话和所有讨论串 |
335
+ | 跨 thread 的看板 | ❌ | ✅ 侧栏面板 + `/hub board` 命令 + `board_list` 工具 |
336
+ | 开 thread 时的上下文简报 | 手写 `task` 文本 | ✅ `context_brief` 一键拼好 |
337
+ | 讨论串回报汇聚成任务 | ❌ | ✅ 幂等自动汇总(按 `threadId` 去重) |
338
+ | 讨论串建好时的启动上下文 | — | ✅ 自动注入项目说明 + 看板 + 他人进展 |
339
+ | 辅助文件夹(多目录挂载) | PR #61 在做,未发布 | ✅ 本插件自己存 + 提示注入 + 沙箱可写根 |
340
+ | 切换项目主文件夹 | PR #61 在做,未发布 | ✅ 本插件实现(写 dsh-threads 记录 + DSH workspace 记录,重启后新会话生效) |
341
+
342
+ 两个插件通过**存储文件 + storage-domain 写链**解耦:本插件不 import dsh-threads 的模块,平时只读它的存储;
343
+ 只有「切换主文件夹」这一条写路径(`src/mainfolder.js`)会动它的项目记录和 DSH 的 workspace 记录,
344
+ 而且走 dsh-threads 已经打开的 domain 句柄、带备份与回滚。任何一个卸载,另一个照常工作;
345
+ dsh-threads 换存储格式时本插件静默降级为「不注入」,不会报错。
346
+
347
+ ### 版本与兼容性
348
+
349
+ **我们只在 `@kyf-eng/dsh-threads` 0.2.0 上验证过**,而且钉的是我们 fork 的那一份:fork tag
350
+ [`v0.2.0-baseline`](https://github.com/lanechenhku/dsh-threads/releases/tag/v0.2.0-baseline) = 上游 release
351
+ commit `469f32c`(npm 0.2.0 发布包里的 5 个文件与它逐字节一致,核对方法见
352
+ [`docs/dsh-threads-baseline.md`](docs/dsh-threads-baseline.md))。截至 2026-12-01,npm 上最新仍是 0.2.0。
353
+
354
+ - **不追上游**:上游以后发新版,本插件不会自动适配——「总是基于我们的 fork」才成立。
355
+ - **装钉版(想要完整体验)**:
356
+ `dsh plugin --profile <name> add 'github:lanechenhku/dsh-threads#v0.2.0-baseline'`,
357
+ 或在 profile 的 `package.json` 里写 `"@kyf-eng/dsh-threads": "github:lanechenhku/dsh-threads#v0.2.0-baseline"`。
358
+ 包名不变,换的只是安装来源。
359
+ - **一键装(桌面版也行)**:装好本插件后打开侧栏「项目看板」,没检测到 dsh-threads 时提示里有个按钮,
360
+ 点两次(第二次是确认写入本机 profile)就装好钉版并启用——DSH 自己跑 pnpm、写 `dsh.profile.bundles`、
361
+ 失败自动回滚,桌面版通常**不用重启**(HMR)。已经装过任何版本的话按钮不会出现(直接跳过);
362
+ 只差「启用」时按钮变成「包已经在了,一键启用」。原理与证据见
363
+ [`docs/two-installs-problem.md`](docs/two-installs-problem.md)。
364
+ - **装了别的版本**:看板上方会出现一行提示「已安装的 dsh-threads 是 X;本插件只在 0.2.0 上验证过,行为可能不同」——
365
+ 只是提示,不报错、不拦着用;读不到版本就什么都不说(不猜)。
366
+ - **发现不兼容**:欢迎开 issue,同时记进 CHANGELOG / `docs/dsh-threads-baseline.md`;回退到钉版即可。
367
+
284
368
  ## 安装
285
369
 
286
370
  需要 DeepSeek Harness 0.2.1-rc.2 到 0.3.0。
@@ -336,7 +420,7 @@ dsh plugin --profile web add dsh-claude-project-ui
336
420
  /hub brief 粘进 thread_open.task 的项目简报
337
421
  ```
338
422
 
339
- 右侧栏「▤ 项目看板」页签里应该能看到刚加的任务和讨论串状态;`tui` / headless 没有侧栏,用 `/hub board`。
423
+ 右侧栏「项目看板」页签里应该能看到刚加的任务和讨论串状态;`tui` / headless 没有侧栏,用 `/hub board`。
340
424
  开新讨论串时它第一步就会带上项目说明、看板快照和最近进展,不用你复制粘贴。
341
425
 
342
426
  ## 配置
@@ -349,6 +433,7 @@ dsh plugin --profile web add dsh-claude-project-ui
349
433
  config:
350
434
  dataDir: "" # 默认 ~/.dsh/project-hub
351
435
  threadsStorage: "" # 默认 ~/.dsh/storages/dsh_threads.json
436
+ threadsProfilesDir: "" # 默认 ~/.dsh/profiles:读「装的是哪个 dsh-threads 版本」用,只读
352
437
  workspaceStorage: "" # 默认与 threadsStorage 同目录的 workspace.json(切换主文件夹时写)
353
438
  knowledgeIndexMaxChars: 280
354
439
  kbIndexMaxDocs: 3
@@ -368,6 +453,7 @@ dsh plugin --profile web add dsh-claude-project-ui
368
453
  |---|---|---|
369
454
  | `dataDir` | `~/.dsh/project-hub` | 知识库 / 任务 / 笔记的根目录;换掉就是另一套项目数据 |
370
455
  | `threadsStorage` | `~/.dsh/storages/dsh_threads.json` | 只读;用来识别「哪些会话属于哪个项目」,格式变了会静默降级为不注入。切换主文件夹时这一处也会被写(见上) |
456
+ | `threadsProfilesDir` | `~/.dsh/profiles` | 只读;面板据此读出「本 profile 装的是哪个 dsh-threads 版本」,只用于「不在 0.2.0 上」的提示。读不到就不提示 |
371
457
  | `workspaceStorage` | 与 `threadsStorage` 同目录的 `workspace.json` | 只在切换主文件夹时写:新会话的目录来自这里的 `workspaces[].path`;指错会让切换失败并回滚 |
372
458
  | `knowledgeIndexMaxChars` | `280` | 注入的知识库索引字符上限;调大占提示词预算,调小了只列更少文档 |
373
459
  | `kbIndexMaxDocs` | `3` | 索引里最多列几篇文档,其余提示用 `kb_search` 检索 |
@@ -428,6 +514,8 @@ dsh plugin --profile web add dsh-claude-project-ui
428
514
  | schema 兼容 | 通过 | `node test/spec-check.mjs` 对照宿主 DSL 校验 10 个工具定义 |
429
515
  | 逻辑 | 通过 | `node test/harness.mjs` 30 项(含 changedFiles、隐藏规则、汇总幂等、/hub doctor、extraFolders 持久化 / 提示注入 / kb_add 目录校验 / 文件夹路由鉴权、主文件夹切换(两处记录 / 备份 / 拒绝非法路径 / 并发不丢数据 / 回滚)/ `/hub folder` / 路由) |
430
516
 
517
+ 2026-12-01(0.4.4):`node test/harness.mjs` **61 项**全绿(新增 7 项:两个探测信号各自成立、无 dsh-threads 的宿主照常加载且零警告、patch id 不冲突、面板三态、槽位 id 不与上游重名、版本探测只看运行中的 profile、版本不符只提示不拦),`node test/spec-check.mjs` 通过。
518
+
431
519
  ## 与 Team 模式的关系
432
520
 
433
521
  Team 模式的任务板属于**单个会话的 subagent 树**;本插件的看板属于**一个 dsh-threads 项目**(主对话 + 它的所有讨论串)。两者互补,不会互相写入。
@@ -442,14 +530,52 @@ MIT(见 [LICENSE](LICENSE))。
442
530
 
443
531
  # dsh-claude-project-ui (English)
444
532
 
445
- Bring the **Claude Code Projects + Threads experience** to DeepSeek Harness. On top of
446
- [@kyf-eng/dsh-threads](https://github.com/Kyf-eng/dsh-threads), this plugin adds the project UI,
447
- the interaction model and the context logic Claude users expect.
533
+ **Want the Claude Projects project UI? In DeepSeek Harness, this is it.**
534
+
535
+ One "Project board" tab in the right sidebar lays **projects · threads · tasks** out on a single page:
536
+ the current project pinned on top, the rest by recent activity, and each project's threads and tasks
537
+ expand right below it — no extra level to click through. A project can also mount **several extra
538
+ folders** (picked with the OS folder chooser), and each thread's **report rolls up into a board task**.
539
+ Bilingual panel; settings live in the panel.
540
+
541
+ > `@kyf-eng/dsh-threads` is an **optional** prerequisite: install both and they coexist; without it the
542
+ > knowledge base, context briefs and project folders still work, and the panel says threads and tasks
543
+ > appear once it is installed (see [Compatibility](#compatibility)).
448
544
 
449
- > In one line: dsh-threads provides the "project + thread" skeleton; this plugin adds the four
450
- > things Claude users are used to — **a project brief every thread can see**, **a board you can
451
- > read at a glance**, **an automatic brief when a thread is opened**, and **context that carries
452
- > over between sessions**.
545
+ ## Credits
546
+
547
+ **The "project → thread → task" workflow here is built on top of [`@kyf-eng/dsh-threads`](https://github.com/Kyf-eng/dsh-threads),
548
+ by fky (GitHub [Kyf-eng](https://github.com/Kyf-eng); npm maintainer `kyf-eng`), released under **MIT**
549
+ (`Copyright (c) 2026 fky`).** None of this board would exist without it. What this project adds on top: the
550
+ project board (projects / threads / tasks on one page), multiple extra folders per project, context briefs and
551
+ the knowledge base, thread reports rolled into tasks, and the bilingual panel with in-app settings — added
552
+ **on top of** it, not a rewrite.
553
+
554
+ We do not redistribute its code (this is not a vendored copy): it is a separate package you install, at the
555
+ version you choose. **Vendoring is not possible on the client side** (a DSH package can serve exactly one client
556
+ bundle); the file-and-line evidence is in [`docs/vendoring-feasibility.md`](docs/vendoring-feasibility.md) and the
557
+ full third-party statement in [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).
558
+
559
+ ## Three things it does best
560
+
561
+ 1. **Projects / threads / tasks on one page** — current project pinned, the rest ordered by activity; thread state, task progress and last-active time all visible without opening anything.
562
+ 2. **Several extra folders per project** — add directories beyond the main folder with the **OS folder chooser**; every session gets them as writable sandbox roots, and new threads are handed the absolute paths.
563
+ 3. **Thread reports become tasks** — each report rolls up into a board task, deduplicated by `threadId` (done / doing / pending / blocked); read the board, skip the bookkeeping.
564
+
565
+ ## Coming from Claude Projects
566
+
567
+ Same needs, an existing shape in Claude Projects; in DeepSeek Harness the shape differs, but the mapping is direct:
568
+
569
+ | In Claude Projects | Here |
570
+ |---|---|
571
+ | A project list; sessions only after opening one | Every project on one "Project board" page: current project pinned on an accent card, the rest by last activity, each row carrying thread count / task count / last active |
572
+ | Sessions inside a project | Threads (provided by dsh-threads, optional; knowledge, briefs and folders work without it) |
573
+ | Project instructions / knowledge | Project rules injected into every thread + the `kb_*` knowledge base + the brief attached to each thread |
574
+ | One working directory per project | Extra folders beyond the main folder (OS folder chooser, per-session sandbox grants) |
575
+ | Keeping your own todo list | Board tasks; thread reports roll up automatically, deduplicated by `threadId` |
576
+
577
+ Not a per-feature clone — two different products: this plugin runs on DeepSeek Harness and treats
578
+ `@kyf-eng/dsh-threads` as optional. Per-item differences are in [What goes beyond Claude Projects](#what-goes-beyond-claude-projects).
453
579
 
454
580
  ## A sharper lead / thread split
455
581
 
@@ -482,26 +608,6 @@ plus these two switches:
482
608
  ```
483
609
 
484
610
  Quit DSH completely and start it again after editing.
485
- ## Relationship to dsh-threads: a complement, not a replacement
486
-
487
- | Capability | `@kyf-eng/dsh-threads` | This plugin `dsh-claude-project-ui` |
488
- |---|---|---|
489
- | Project / thread creation and lifecycle | ✅ owned there | Read-only detection, never writes its data |
490
- | Main conversation as lead, opening threads | ✅ prompt + `thread_open` | — |
491
- | Project-level instructions every thread sees | ❌ main conversation only | ✅ short rules injected into the main conversation and every thread |
492
- | Cross-thread board | ❌ | ✅ sidebar panel + `/hub board` + `board_list` tool |
493
- | Brief when opening a thread | hand-written `task` text | ✅ `context_brief` assembles it |
494
- | Thread reports rolled up as tasks | ❌ | ✅ idempotent rollup keyed by `threadId` |
495
- | Startup context for a new thread | — | ✅ project brief + board + other threads' progress |
496
- | Auxiliary folders (additional directories) | PR #61, unreleased | ✅ own record + prompt list + sandbox writable roots |
497
- | Switching the project main folder | PR #61, unreleased | ✅ implemented here (writes the dsh-threads project record + the DSH workspace record; new sessions follow after a restart) |
498
-
499
- The two plugins are decoupled through **storage files plus a storage-domain write chain**: this plugin
500
- never imports dsh-threads modules and normally only reads its storage. Exactly one write path —
501
- switching the main folder (`src/mainfolder.js`) — touches dsh-threads' project record and DSH's
502
- workspace record, through the domain handle dsh-threads already opened, with a backup and a rollback.
503
- Uninstalling either leaves the other working; if dsh-threads changes its storage format, this plugin
504
- silently degrades to "no injection" instead of throwing.
505
611
 
506
612
  ## What goes beyond Claude Projects
507
613
 
@@ -514,12 +620,12 @@ actually implements, one line each; the sections below carry the detail.
514
620
  | Extra folders | One working directory per project | A project can mount extra folders: each session gets them as writable sandbox roots (when the host exposes a sandbox policy), new sessions are told the absolute paths, and `kb_add` only reads inside the main folder or a mounted one |
515
621
  | Folder entry points | Project settings only | Three entries share one dialog and one write path: "Change…" on the board card, one row per project on the settings page, and "⚙ More folders…" in dsh-threads' own settings card |
516
622
  | Board settings | None | ⚙ at the top of the board: language, show resolved/archived, roll reports into tasks, other cards collapsed/expanded by default, sort, folder management — applied immediately and stored in this plugin's own `settings.json`, no config edit, no restart |
517
- | Bilingual | UI follows the app language | 97 strings in both tables; pin 中文 or English in ⚙ and the panel re-renders at once, no `cordis.yml` edit |
623
+ | Bilingual | UI follows the app language | 118 strings in both tables; pin 中文 or English in ⚙ and the panel re-renders at once, no `cordis.yml` edit |
518
624
  | Reports become tasks | No cross-session task board | Each thread report becomes a task, deduplicated by `threadId` (done / doing / pending / blocked); resolved threads stop creating new ones |
519
625
  | Choosing a folder | Pick once when creating or moving a project | Both the main-folder switch and every "add extra folder" can open the OS folder chooser (Electron dialog on Desktop, the host picker elsewhere); with no chooser the button is not rendered and a typed path still works |
520
626
 
521
- Not a claim of replacement: this plugin runs on DeepSeek Harness and needs dsh-threads. The table only says how the
522
- same needs are solved here; anything without code behind it is left out.
627
+ Not a claim of replacement: this plugin runs on DeepSeek Harness, and dsh-threads is an optional prerequisite.
628
+ The table only says how the same needs are solved here; anything without code behind it is left out.
523
629
 
524
630
  ## Features
525
631
 
@@ -747,7 +853,7 @@ records, whose settings panel syncs after a restart.
747
853
  No reload: this plugin's panel, dialog, settings page and injected button re-render immediately.
748
854
 
749
855
  Every string the panel, the dialog, the settings page and the injected button show lives in the
750
- `MESSAGES.zh` / `MESSAGES.en` tables in `src/client.js` (97 keys each; a test asserts both sides carry
856
+ `MESSAGES.zh` / `MESSAGES.en` tables in `src/client.js` (118 keys each; a test asserts both sides carry
751
857
  exactly the same keys, no empty copy, and no key that nothing shows):
752
858
 
753
859
  - The language comes from DSH's **locale service** (`dsh-client-locale`): `ctx.locale.getLocale()` reads the
@@ -758,6 +864,94 @@ exactly the same keys, no empty copy, and no key that nothing shows):
758
864
  backstop, so an untranslated key degrades to English instead of showing `board.section.others`.
759
865
  - Text rendered by the host (the sidebar tab label) is supplied as a thunk, so it follows the next host render.
760
866
 
867
+ ## Compatibility
868
+
869
+ **Runtime**: DeepSeek Harness `>=0.2.1-rc.2 <0.3.0`; the sidebar exists in the Web GUI, and `tui` / headless fall back to `/hub board`.
870
+
871
+ ### `@kyf-eng/dsh-threads` is optional
872
+
873
+ **Install it or don't — both work, and installing both packages side by side does not fight.** dsh-threads
874
+ owns the "project + thread" layer itself; this plugin adds the UI and context on top. Without it you lose
875
+ half of the board and everything else keeps working.
876
+
877
+ | Capability | Without dsh-threads | With dsh-threads |
878
+ |---|---|---|
879
+ | Knowledge base (`kb_*`), `context_brief` / `/hub brief`, `hub_note` | ✅ works (data lives in this plugin's own `~/.dsh/project-hub/`) | ✅ works |
880
+ | Project folders / extra-folder mounts, per-row changes on the settings page | ✅ works (the workspace list is still there) | ✅ works |
881
+ | Threads and task cards on the board | ❌ nothing to show | ✅ normal |
882
+ | Switching a project's main folder | ⚠ no project record to move | ✅ moves the project record and the workspace record together |
883
+
884
+ **What the panel does without it**: the "Project board" tab shows one notice — **@kyf-eng/dsh-threads not
885
+ detected** — saying threads and tasks appear once it is installed, listing what works right now (knowledge
886
+ base, context brief, project folders), and pointing at the DSH plugin market to install it. It does **not**
887
+ show "No dsh-threads projects yet" — that line is only accurate when the plugin is installed and you have no
888
+ projects. Nothing throws, no warnings are logged, and `/hub`, the settings page and the knowledge base are
889
+ unaffected.
890
+
891
+ **How the host decides** (`src/threads-probe.js`): not by looking for the storage file — it is absent when
892
+ the plugin is installed with no projects, and it stays on disk after an uninstall. Two independent signals
893
+ are read at request time:
894
+
895
+ 1. `storageDomain.get("dsh_threads")` — dsh-threads opens that domain in its own `apply` and holds the
896
+ handle; this plugin never opens the domain itself;
897
+ 2. the Cordis plugin registry (`ctx.registry`) — whether a plugin runtime named `dsh-threads` is registered.
898
+
899
+ Either one counts as installed; when neither can be read the answer is "not installed", and the probe never
900
+ throws. Both are read per request, so installing or removing dsh-threads needs no reload of this plugin.
901
+
902
+ **Why the two packages coexist**: each `cordis.patch.yml` inserts one entry, with ids `dsh-threads` and
903
+ `dsh-claude-project-ui` (cordis patch ids are global, so they must differ) — neither overwrites the other.
904
+ The client registrations are prefixed on both sides (upstream `@kyf-eng/dsh-threads` / `dsh-threads-*` /
905
+ locale `dshThreads`; here `project-hub` / `project-folders` / `project-hub-folders`), so both tabs and both
906
+ header buttons appear exactly once instead of one re-registering the other's key.
907
+
908
+ ### What each plugin owns
909
+
910
+ Each side owns one layer; this plugin never writes its project or thread data:
911
+
912
+ | Capability | `@kyf-eng/dsh-threads` | This plugin `dsh-claude-project-ui` |
913
+ |---|---|---|
914
+ | Project / thread creation and lifecycle | ✅ owned there | Read-only detection, never writes its data |
915
+ | Main conversation as lead, opening threads | ✅ prompt + `thread_open` | — |
916
+ | Project-level instructions every thread sees | ❌ main conversation only | ✅ short rules injected into the main conversation and every thread |
917
+ | Cross-thread board | ❌ | ✅ sidebar panel + `/hub board` + `board_list` tool |
918
+ | Brief when opening a thread | hand-written `task` text | ✅ `context_brief` assembles it |
919
+ | Thread reports rolled up as tasks | ❌ | ✅ idempotent rollup keyed by `threadId` |
920
+ | Startup context for a new thread | — | ✅ project brief + board + other threads' progress |
921
+ | Auxiliary folders (additional directories) | PR #61, unreleased | ✅ own record + prompt list + sandbox writable roots |
922
+ | Switching the project main folder | PR #61, unreleased | ✅ implemented here (writes the dsh-threads project record + the DSH workspace record; new sessions follow after a restart) |
923
+
924
+ The two plugins are decoupled through **storage files plus a storage-domain write chain**: this plugin
925
+ never imports dsh-threads modules and normally only reads its storage. Exactly one write path —
926
+ switching the main folder (`src/mainfolder.js`) — touches dsh-threads' project record and DSH's
927
+ workspace record, through the domain handle dsh-threads already opened, with a backup and a rollback.
928
+ Uninstalling either leaves the other working; if dsh-threads changes its storage format, this plugin
929
+ silently degrades to "no injection" instead of throwing.
930
+
931
+ ### Versions and compatibility
932
+
933
+ **This plugin was verified against `@kyf-eng/dsh-threads` 0.2.0 only**, and against our pinned fork: tag
934
+ [`v0.2.0-baseline`](https://github.com/lanechenhku/dsh-threads/releases/tag/v0.2.0-baseline) = upstream
935
+ release commit `469f32c` (the five files npm 0.2.0 publishes match it byte for byte; see
936
+ [`docs/dsh-threads-baseline.md`](docs/dsh-threads-baseline.md)). As of 2026-12-01 npm still lists 0.2.0 as latest.
937
+
938
+ - **No chasing upstream**: a new upstream release does not automatically re-qualify this plugin — that is what
939
+ keeps "always based on our fork" true.
940
+ - **Installing the pinned build**: `dsh plugin --profile <name> add 'github:lanechenhku/dsh-threads#v0.2.0-baseline'`,
941
+ or in the profile's `package.json`: `"@kyf-eng/dsh-threads": "github:lanechenhku/dsh-threads#v0.2.0-baseline"`.
942
+ The package name stays the same; only the install source changes.
943
+ - **One click instead (Desktop included)**: after installing this plugin, open the sidebar's project board. While
944
+ dsh-threads is missing, the notice carries a button: click twice (the second click confirms writing into this
945
+ machine's profile) and the pinned build is installed and enabled — DSH runs pnpm, appends
946
+ `dsh.profile.bundles`, rolls back on failure, and on Desktop usually needs no restart (HMR). If any version is
947
+ already installed the button is not offered at all; when only "enable" is missing it reads "The package is here —
948
+ enable it". See [`docs/two-installs-problem.md`](docs/two-installs-problem.md) for the evidence.
949
+ - **A different version installed**: one line appears above the board — "Installed dsh-threads is X; this plugin
950
+ was verified on 0.2.0 only, behaviour may differ" — a heads-up, not an error, and it blocks nothing. An
951
+ unreadable version says nothing at all.
952
+ - **Found an incompatibility**: open an issue, and we record it in CHANGELOG / `docs/dsh-threads-baseline.md`;
953
+ falling back to the pinned tag always works.
954
+
761
955
  ## Install
762
956
 
763
957
  Requires DeepSeek Harness 0.2.1-rc.2 through 0.3.0.
@@ -814,7 +1008,7 @@ After installing and **quitting DSH completely and starting it again**:
814
1008
  /hub brief a project brief to paste into thread_open.task
815
1009
  ```
816
1010
 
817
- The "▤ 项目看板" tab in the right pane should now show the task and thread state you just added; `tui` / headless
1011
+ The "Project board" tab in the right pane should now show the task and thread state you just added; `tui` / headless
818
1012
  have no sidebar, so use `/hub board` there. When you open a new thread it starts with the project brief, the board
819
1013
  snapshot and recent progress already attached.
820
1014
 
@@ -828,6 +1022,7 @@ Override in the profile's `cordis.patch.yml`:
828
1022
  config:
829
1023
  dataDir: "" # default ~/.dsh/project-hub
830
1024
  threadsStorage: "" # default ~/.dsh/storages/dsh_threads.json
1025
+ threadsProfilesDir: "" # default ~/.dsh/profiles: read-only source for "which dsh-threads version is installed"
831
1026
  workspaceStorage: "" # default: workspace.json next to threadsStorage (written on a folder switch)
832
1027
  knowledgeIndexMaxChars: 280
833
1028
  kbIndexMaxDocs: 3
@@ -847,6 +1042,7 @@ Override in the profile's `cordis.patch.yml`:
847
1042
  |---|---|---|
848
1043
  | `dataDir` | `~/.dsh/project-hub` | Root for knowledge, tasks and notes; pointing it elsewhere gives you a separate set of projects |
849
1044
  | `threadsStorage` | `~/.dsh/storages/dsh_threads.json` | Read-only for detection; also written when the main folder is switched (see above). A format change degrades to "no injection" |
1045
+ | `threadsProfilesDir` | `~/.dsh/profiles` | Read-only; lets the panel learn which dsh-threads version this profile has, only to say "not verified on 0.2.0". Unreadable means no remark |
850
1046
  | `workspaceStorage` | `workspace.json` next to `threadsStorage` | Written only on a folder switch: a new session's directory comes from `workspaces[].path` here; a wrong value makes the switch fail and roll back |
851
1047
  | `knowledgeIndexMaxChars` | `280` | Character cap for the injected knowledge index |
852
1048
  | `kbIndexMaxDocs` | `3` | How many documents the index lists before pointing at `kb_search` |
@@ -918,6 +1114,8 @@ A main-folder switch does not touch this directory: it writes `~/.dsh/storages/d
918
1114
  | Schema compatibility | Pass | `node test/spec-check.mjs` validates all 10 tool definitions against the host DSL |
919
1115
  | Logic | Pass | `node test/harness.mjs`, 30 checks (changedFiles, hiding rules, rollup idempotency, `/hub doctor`, extraFolders persistence / prompt injection / kb_add path boundary / folder route auth, main-folder switch (both records, backup, refused paths, concurrent writes, rollback), `/hub folder`, the route) |
920
1116
 
1117
+ 2026-12-01 (0.4.4): `node test/harness.mjs` **61 checks** pass (7 new: each probe signal on its own, a host without dsh-threads loading with zero warnings, the patch id not colliding, the three panel states, slot ids that do not collide with upstream, the version probe trusting only the running profile, and a version mismatch warning without blocking), and `node test/spec-check.mjs` passes.
1118
+
921
1119
  ## Relationship to Team mode
922
1120
 
923
1121
  A Team-mode task board belongs to **one session's subagent tree**; this plugin's board belongs to