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.
@@ -0,0 +1,71 @@
1
+ # Third-party notices
2
+
3
+ 本文件记录本项目使用、依赖或借鉴的第三方代码与它们的许可。**本项目不重新分发(不 vendor)
4
+ `@kyf-eng/dsh-threads` 的代码**:它由用户自己安装、版本由用户自己决定(见
5
+ [`docs/vendoring-feasibility.md`](docs/vendoring-feasibility.md),内嵌在客户端侧不可行)。
6
+ 它的许可文件已**逐字节原样**保存在 [`vendor/dsh-threads/LICENSE`](vendor/dsh-threads/LICENSE)
7
+ (1060 字节,sha256 `4c80378d…`,与已安装包里那份、上游仓库根目录那份三者一致)——那个目录里
8
+ **只有许可文件,没有代码**。
9
+
10
+ ## 1. 讨论串与项目工作流的基础:@kyf-eng/dsh-threads
11
+
12
+ | 项 | 值(2026-12-01 核对) |
13
+ |---|---|
14
+ | npm 包 | `@kyf-eng/dsh-threads`,版本 `0.2.0`(npm 上最新) |
15
+ | 来源仓库 | <https://github.com/Kyf-eng/dsh-threads> |
16
+ | 作者 | **fky(Kyf-eng)**——MIT 版权行 `Copyright (c) 2026 fky`;npm 维护者 `kyf-eng <ffyh5857@gmail.com>`;GitHub owner `Kyf-eng`(显示名 `WilliamsF`) |
17
+ | 许可 | **MIT**。许可证随包发布(已安装的 `@kyf-eng/dsh-threads@0.2.0` 包内有 `LICENSE`,1060 字节,sha256 `4c80378da369def693d81b7da4ec7787624ec84099a106733ac5a2fa109db5c0`;与上游仓库根目录那份一致)。npm 元数据同样声明 `license: MIT`;本文 §2 是它的原文,[`vendor/dsh-threads/LICENSE`](vendor/dsh-threads/LICENSE) 是逐字节副本 |
18
+ | 本项目钉定的版本 | 我们 fork 的 tag `v0.2.0-baseline` → commit `469f32c3de8ccce61f88acdb527e5e0131c2ddd1`(= 上游 release commit,与 npm 0.2.0 发布包里的 5 个文件逐字节一致,核对见 [`docs/dsh-threads-baseline.md`](docs/dsh-threads-baseline.md)) |
19
+ | 安装写法 | <code>dsh plugin --profile &lt;name&gt; add 'github:lanechenhku/dsh-threads#v0.2.0-baseline'</code>,或在面板里点「一键安装」(见 [`docs/two-installs-problem.md`](docs/two-installs-problem.md)) |
20
+
21
+ ### 它提供了什么,我们补了什么
22
+
23
+ - **它提供**:讨论串(thread)调度、「项目 → 讨论串」的存储(`dsh_threads` 存储域)、讨论串页签、
24
+ 会话头部的讨论串入口,以及跨讨论串的项目工作流。
25
+ - **我们补**:项目看板(项目 / 讨论串 / 任务一屏)、每个项目多个辅助文件夹(系统原生选择器 +
26
+ 按会话沙箱授权)、上下文简报与知识库、讨论串回报自动汇总成看板任务、中英双语与面板内设置。
27
+ - **我们改它吗**:不改代码、不 vendored。全项目只有一处**写**它的数据:切换项目主文件夹
28
+ (`src/mainfolder.js`)通过它已经打开的 `storageDomain` 句柄写项目记录的 `folder` 字段,
29
+ 并同时写 DSH 的 workspace 记录——这是为了让「面板里改的目录」与「新会话落地的目录」一致。
30
+ 其余全部只读。
31
+
32
+ ### 版本策略
33
+
34
+ 我们只在 `0.2.0` 上验证过;上游发新版**不自动追**(「总是基于我们的 fork」是刻意的,见
35
+ [`docs/dsh-threads-baseline.md`](docs/dsh-threads-baseline.md))。用户装的是别的版本时,面板只在
36
+ 看板上方提示一句「未在此版本上验证」,不报错、不阻断。
37
+
38
+ ## 2. MIT 许可原文(上游随包发布的那一份)
39
+
40
+ ```text
41
+ MIT License
42
+
43
+ Copyright (c) 2026 fky
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining a copy
46
+ of this software and associated documentation files (the "Software"), to deal
47
+ in the Software without restriction, including without limitation the rights
48
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49
+ copies of the Software, and to permit persons to whom the Software is
50
+ furnished to do so, subject to the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be included in all
53
+ copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
61
+ SOFTWARE.
62
+ ```
63
+
64
+ ## 3. 其它
65
+
66
+ 本包本身的许可是 MIT(见 [`LICENSE`](LICENSE),`Copyright (c) 2026 lanechen`)。除
67
+ `@kyf-eng/dsh-threads` 之外,本项目不包含其它第三方代码;它在运行时还会用到 DSH 自身与各插件市场
68
+ 插件提供的服务(`pluginManager`、`storageDomain`、`webServer` 等),那些包由 DSH 安装、各自遵循
69
+ 自己的许可。
70
+
71
+ 发现署名或许可信息有误,请开 issue 或在 PR 里直接改本文件——这类修正不设门槛。
@@ -1,80 +1,52 @@
1
- # GitHub About 候选(3 个,供 lead 选一个)
1
+ # GitHub About:最终文本与历史候选
2
2
 
3
- 仓库:`lanechenhku/dsh-claude-project-ui`(0.4.1 已发 GitHub,npm 未发布;工作区版本号为 0.4.2)
4
- 限制:GitHub About 描述**硬上限 350 字符**。下面三条都是**纯 ASCII**,所以 `wc -c` 数出来就是字符数;
5
- 每条都用 `wc -c` 实测过(命令见文末),且覆盖关键词 `project board` / `threads` / `bilingual` / `folders`。
6
- 三条都**不含 emoji**(上限 1 个,这里没用)。
3
+ > **2026-12-01(0.4.4)**:定位改为「想要 Claude Projects 的项目界面,就用它」。
4
+ > 0.4.1 的三条旧候选(都写 `built on dsh-threads` / `Needs dsh-threads`)**已废除**,仅留在文末作历史;
5
+ > 当前文本见下面「0.4.4 最终 About(333 字符)」。
7
6
 
8
- ---
7
+ 仓库:`lanechenhku/dsh-claude-project-ui`。GitHub About 描述**硬上限 350 字符**(超了直接拒)。
8
+ 下面这条 **333 字符**,中文在前、英文在后、单行、0 个 emoji。
9
9
 
10
- ## 候选 A(推荐):能力清单式,一句话说完
11
-
12
- **227 字符**
10
+ ## 0.4.4 最终 About(333 字符 / 上限 350)
13
11
 
14
12
  ```text
15
- Claude-style project UI for DeepSeek Harness, built on dsh-threads: a project board for threads and tasks, extra folders mounted per project, a bilingual (zh/en) panel, and thread reports rolled into tasks, all editable in-app.
13
+ 想要 Claude Projects 的项目界面,就用它:DeepSeek Harness 侧栏「项目看板」页签把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务,中英双语、设置面板直改。@kyf-eng/dsh-threads 可选,装了共存不冲突,没装也能用知识库、简报与文件夹。 Claude-Projects-style project UI for DSH: one page for projects, threads and tasks; extra folders per project; reports become tasks. dsh-threads optional, no conflict.
16
14
  ```
17
15
 
18
- 中文对照:给 DeepSeek Harness 的 Claude 风格项目界面(建在 dsh-threads 上)——项目看板统管讨论串与任务、
19
- 每个项目可挂多个文件夹、面板中英双语、讨论串回报自动变任务,全部在界面里改。
20
-
21
- 推荐理由:一条句子说完「是什么(Claude-style project UI for DSH)+ 比原来多什么(board / folders /
22
- bilingual / roll-up)」,关键词密度最高,和 README 新增的对照表口径一致。
23
-
24
- ---
25
-
26
- ## 候选 B:差异式,先点出「不止项目列表」
27
-
28
- **207 字符**
16
+ 计数(node,Unicode 字符数):
29
17
 
30
- ```text
31
- DeepSeek Harness plugin that goes past a project list: one project board over threads and tasks, extra folders with per-session sandbox grants, bilingual UI, and reports rolled into tasks. Needs dsh-threads.
18
+ ```bash
19
+ node -e 'console.log([...process.argv[1]].length)' "<上面的文本>"
20
+ # → 333(中文段 165 + 空格 1 + 英文段 167)
32
21
  ```
33
22
 
34
- 中文对照:给 DeepSeek Harness 的插件,比一份项目列表更进一步——一块看板统管讨论串与任务、辅助文件夹按会话
35
- 授权沙箱、界面中英双语、回报自动汇总成任务;依赖 dsh-threads。
36
-
37
- 适合:想让 About 直接说「这不是又一个项目列表」的时候。
38
-
39
- ---
40
-
41
- ## 候选 C:场景式,先说用起来是什么样
23
+ 覆盖到的点:先答「想要 Claude Projects 的项目界面」→ 一屏看板 / 多文件夹 + 原生选择器 / 回报变任务 / 中英双语;
24
+ 再明确 `@kyf-eng/dsh-threads` **可选**:装了共存不冲突,没装也能用知识库、简报和文件夹。
42
25
 
43
- **200 字符**
26
+ 给 lead 执行(**尚未执行**,等用户过目):
44
27
 
45
- ```text
46
- A project board for DeepSeek Harness: every project, its threads and tasks on one sidebar page, extra folders per project, a bilingual panel, and progress reports turned into tasks. Needs dsh-threads.
28
+ ```bash
29
+ gh repo edit lanechenhku/dsh-claude-project-ui --description "想要 Claude Projects 的项目界面,就用它:DeepSeek Harness 侧栏「项目看板」页签把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务,中英双语、设置面板直改。@kyf-eng/dsh-threads 可选,装了共存不冲突,没装也能用知识库、简报与文件夹。 Claude-Projects-style project UI for DSH: one page for projects, threads and tasks; extra folders per project; reports become tasks. dsh-threads optional, no conflict."
47
30
  ```
48
31
 
49
- 中文对照:DeepSeek Harness 的项目看板——所有项目、它们的讨论串与任务都在侧栏一页里,每个项目可挂额外文件夹,
50
- 面板中英双语,讨论串的进展自动变成任务;依赖 dsh-threads。
51
-
52
- 适合:面向还没装 dsh-threads 的人,先说清「你会得到什么」。
32
+ 建议同时确认 topics 至少包含:
33
+ `deepseek-harness`、`dsh-plugin`、`claude-projects`、`project-board`、`threads`、`bilingual`、`folders`。
53
34
 
54
- ---
35
+ ## 历史候选(0.4.1,全部废除)
55
36
 
56
- ## 计数与校验
37
+ 以下三条都把自己写成「在 dsh-threads 之上 / 需要 dsh-threads」,与现在「可选前置」的口径冲突。留档备查,**不要再用**:
57
38
 
58
- ```bash
59
- # 三条都用这个数(纯 ASCII,字节数 = 字符数)
60
- wc -c <<'EOF'
61
- Claude-style project UI for DeepSeek Harness, built on dsh-threads: a project board for threads and tasks, extra folders mounted per project, a bilingual (zh/en) panel, and thread reports rolled into tasks, all editable in-app.
62
- EOF
63
- ```
64
-
65
- 实测:A = 227、B = 207、C = 200,均在 350 以内。
39
+ ```text
40
+ A(227 字符)Claude-style project UI for DeepSeek Harness, built on dsh-threads: a project board for threads and tasks, extra folders mounted per project, a bilingual (zh/en) panel, and thread reports rolled into tasks, all editable in-app.
66
41
 
67
- ## 交给 lead 执行
42
+ B(207 字符)DeepSeek Harness plugin that goes past a project list: one project board over threads and tasks, extra folders with per-session sandbox grants, bilingual UI, and reports rolled into tasks. Needs dsh-threads.
68
43
 
69
- ```bash
70
- gh repo edit lanechenhku/dsh-claude-project-ui --description "<选中的那条>"
44
+ C(200 字符)A project board for DeepSeek Harness: every project, its threads and tasks on one sidebar page, extra folders per project, a bilingual panel, and progress reports turned into tasks. Needs dsh-threads.
71
45
  ```
72
46
 
73
- 建议同时确认 topics(About 旁边的标签)至少包含:
74
- `deepseek-harness`、`dsh-plugin`、`project-board`、`threads`、`bilingual`、`folders`。
75
-
76
47
  ## 不要写进 About 的话
77
48
 
78
49
  - 「完全替代 Claude Projects」——不准确,也不同产品。
79
50
  - 「比 Claude 好」这类比较句——About 只描述自己做了什么。
80
- - 任何 emoji 堆砌;上限 1 个,这里刻意用 0 个。
51
+ - 「基于 / built on dsh-threads」当前置——它只是可选的兼容性一句。
52
+ - emoji 堆砌(上限 1 个,这里刻意用 0 个)。
@@ -0,0 +1,119 @@
1
+ # 基线:钉在 fork 的 v0.2.0-baseline(不改包名)
2
+
3
+ 用户要求(2026-12-01):**总是基于我的 fork,而不是原作者最新的**——因为上游以后更新可能与本插件冲突。
4
+ 本文记录钉版事实、核对方法与安装写法,避免下次重新推一遍。
5
+
6
+ ## 1. 钉的是什么
7
+
8
+ | 项 | 值 |
9
+ |---|---|
10
+ | 上游仓库 | https://github.com/Kyf-eng/dsh-threads |
11
+ | 我们的 fork | https://github.com/lanechenhku/dsh-threads(纯净镜像,未改任何文件) |
12
+ | 上游 release commit | `469f32c3de8ccce61f88acdb527e5e0131c2ddd1`(2026-11-10T19:34:13Z,`chore: release v0.2.0 (#59)`) |
13
+ | 上游 tag | `v0.2.0`(轻量 tag)→ 同一个 commit |
14
+ | **我们的钉版 tag** | **`v0.2.0-baseline`**(轻量 tag)→ 同一个 commit,2026-12-01 在 fork 上创建 |
15
+ | npm 包 | `@kyf-eng/dsh-threads@0.2.0`,2026-11-10T19:35:56.445Z 发布 |
16
+ | npm tarball sha512 | `sha512-BviNbnKCD0mp0gREfwjYGnv5fQ960lXeElB1CaF0PYXIFfvSZuAFhtr1f/F3tq5iMba/6kmJQhzlL0aJIGAT5Q==` |
17
+ | npm tarball sha1 | `bc09106a9776f063febb96aebc084c17c89c4dd9` |
18
+ | 上游 main HEAD(2026-12-01 查询) | `f16eb8072b1c3effbba9231edabc01cb236a525d`(2026-11-10T19:39:26Z) |
19
+
20
+ HEAD 比 release commit 晚 5 分钟,多 1 个 commit:`gh api repos/Kyf-eng/dsh-threads/compare/469f32c3...f16eb807...`
21
+ 的结果是 `ahead_by: 1`,唯一改动是 `vitest.config.ts`(不在 npm 发布清单里)。
22
+ 所以**钉的是 release commit `469f32c`,不是 HEAD**。
23
+
24
+ ## 2. 「这个 commit 就是 npm 0.2.0 那份代码吗」——逐字节核对
25
+
26
+ 方法:下载 npm tarball,对每个随包发布的文件算 git blob sha(`git hash-object`),
27
+ 与 GitHub Contents API 在同一 commit 上返回的 blob sha 比对。
28
+
29
+ | 文件 | 结果 |
30
+ |---|---|
31
+ | `package.json` | 一致(`02c9ed25c51c3895c8f0448f2ca5ae7c647e9656`) |
32
+ | `dist/index.js` | 一致(`d716de96f017ceebd6f0fd6be54115e4cb3a5cf7`) |
33
+ | `dist/client.js` | 一致(`759a672930f074e080bc4af392d19b6216a86ffb`) |
34
+ | `cordis.patch.yml` | 一致(`124a1d5b9577eb7d547b3d28436d1069ea716593`) |
35
+ | `LICENSE` | 一致(`ecc66be5509114c784bd2fe0de9cdaaf86899f69`) |
36
+
37
+ tarball 自身的 sha512 与 npm registry 元数据一致(见上表)。
38
+
39
+ **结论**:npm 0.2.0 随包发布的 5 个文件与 commit `469f32c` 逐字节相同,所以钉这个 commit
40
+ = 钉 npm 0.2.0。**未核对**:仓库里其它文件(`src/`、`tests/`、`docs/` 等根本不在 npm 发布清单里)
41
+ 没有逐棵比对——严格说法是「发布包内容一致」,不是「整棵树全等」。
42
+
43
+ 注意:**不要拿本机 profile 里已安装的那份做比对**。本机对 `dist/index.js` / `dist/client.js` 打过
44
+ 本地补丁(profile 里存在 `dist/index.js.bak-inject`),安装目录与上游 blob 不同是预期的;
45
+ 核对只能用 npm tarball。
46
+
47
+ ## 3. 包名不变:换的是安装来源,不是包名
48
+
49
+ fork 的 `package.json` 保持 `"name": "@kyf-eng/dsh-threads"`,**不要**改成 `@lanechen/...`。
50
+
51
+ 理由:包名相同,DSH 眼里「我们的 fork」和「上游」是同一个包——用户只会装到一份,不会并存;
52
+ 一旦改名就成了两个不同的包,反而会同时加载、抢同一个 `dsh_threads` 存储域
53
+ (DSH 的 domain 一进程只允许一个打开句柄),那才是真的冲突。
54
+
55
+ **一句话结论:以后要换源,换的是安装来源,不是包名。**
56
+
57
+ ## 4. 想装钉版的写法(已核实)
58
+
59
+ ### 4.1 推荐:pnpm 的 github shorthand + tag
60
+
61
+ ```sh
62
+ dsh plugin --profile <name> add 'github:lanechenhku/dsh-threads#v0.2.0-baseline'
63
+ ```
64
+
65
+ 或在 profile 的 `package.json` 里写:
66
+
67
+ ```json
68
+ "@kyf-eng/dsh-threads": "github:lanechenhku/dsh-threads#v0.2.0-baseline"
69
+ ```
70
+
71
+ 核实(静态 + 隔离实测,**没有**装进任何 profile):
72
+
73
+ 1. **DSH 的安装解析器接受**:`dsh-plugin-manager` 的 `parseInstallSpec` 只看前缀
74
+ (`GIT_SHORTHAND = /^(?:github|gitlab|bitbucket|gist):/i`,`lib/index.js:111`),
75
+ `github:...` 直接归为 `kind: "git"`(`lib/index.js:178`);它的 GitHub 连通性预检会把
76
+ `#...` 去掉再 `git ls-remote <repo> HEAD`(只查可达性,`lib/index.js:1288`)。
77
+ 2. **pnpm 能把 tag 解析成 commit**:在 `/tmp` 用 DSH 自带的 pnpm 11.28.5 + node 24 跑
78
+ `pnpm install --lockfile-only`(store 也在 `/tmp`),lockfile 记录为:
79
+
80
+ ```text
81
+ '@kyf-eng/dsh-threads':
82
+ specifier: github:lanechenhku/dsh-threads#v0.2.0-baseline
83
+ version: https://codeload.github.com/lanechenhku/dsh-threads/tar.gz/469f32c3de8ccce61f88acdb527e5e0131c2ddd1(...)
84
+ ```
85
+
86
+ 即 tag → 恰好是基线 commit,且包名 `@kyf-eng/dsh-threads` 与依赖键一致(名称不符 pnpm 会报错)。
87
+
88
+ ### 4.2 备选:tarball / commit URL
89
+
90
+ ```json
91
+ "@kyf-eng/dsh-threads": "https://codeload.github.com/lanechenhku/dsh-threads/tar.gz/469f32c3de8ccce61f88acdb527e5e0131c2ddd1"
92
+ ```
93
+
94
+ DSH 的 `parseInstallSpec` 会把这类地址归为 git / tarball 之一,同样可用;缺点是不如 tag 可读。
95
+
96
+ ### 4.3 桌面 App 的注意点
97
+
98
+ `desktop` profile 由 Electron 独占,CLI 连 `--dump-config` 都会被拒绝
99
+ (`profile "desktop" is managed exclusively by the Electron application`)。换源要改
100
+ `~/.dsh/profiles/desktop/package.json` 里那一行的值,再让 pnpm 重装,然后完全退出 DSH 重开。
101
+ 本任务**没有**改这个 profile,也没在本机试装。
102
+
103
+ ## 5. 版本不一致时的行为(代码里)
104
+
105
+ - 宿主每次看板快照读一次「本插件所在 profile 里安装的 dsh-threads 版本」:只认同时依赖本插件、
106
+ 且在 `dsh.profile.bundles` 里选了本插件的 profile;多个这样的 profile 版本不一致 → 读作
107
+ `null`(不知道),绝不拿错的 profile 吓人。
108
+ - 快照字段:`threads: { installed, signals, projects, version, verified }`;
109
+ `verified` 只在 `version === "0.2.0"` 时为 `true`,读不到为 `null`。
110
+ - 面板:`verified === false` 时在看板上方显示一行提示「已安装的 dsh-threads 是 X;本插件只在 0.2.0
111
+ 上验证过,行为可能不同(不阻断使用)」,**不报错、不拦、不隐藏看板**;读不到版本就什么都不说。
112
+ - 配置项 `threadsProfilesDir`(默认空 = `~/.dsh/profiles`)可改读取根目录,测试用它避免读真机。
113
+
114
+ ## 6. 上游更新策略
115
+
116
+ - **不追**。上游发新版时,本插件不自动适配;否则「总是基于 fork」就失效了。
117
+ - 发现某版本不兼容:记在 CHANGELOG / 本文,欢迎开 issue;用户可退回钉版(§4 的写法)。
118
+ - 升级钉版是一次**显式**动作:核对新版 npm tarball 与 commit 的 blob(§2 的方法)→ 在 fork 上打新 tag →
119
+ 在本仓库跑全量测试 → 更新 `src/threads-probe.js` 的 `BASELINE_VERSION` 与 README 的「版本与兼容性」。
@@ -0,0 +1,139 @@
1
+ # dsh-threads 是可选的:探测、共存与可复现证据(0.4.4)
2
+
3
+ 问题来自用户:「如果用户装了 dsh-thread 包,也不会冲突。它不想装,也没问题。」
4
+ 上一轮考虑过把 `@kyf-eng/dsh-threads` 声明成本插件的 `dependency` 一起装——**放弃**,理由见 §1。
5
+
6
+ 结论:
7
+
8
+ 1. dsh-threads 从「必须的前置」变成「可选的增强」;没装时面板给出真实状态(不是「还没有项目」),
9
+ 知识库、`context_brief`、`hub_note`、项目文件夹照常。
10
+ 2. 两个包同时装:entry id 与客户端槽位 key 都不重名,组合出的 profile 树**零重复 id**(§5 有可复现命令)。
11
+ 3. **不改名**:我们的 patch id 本来就叫 `dsh-claude-project-ui`,和上游的 `dsh-threads` 不撞(§3)。
12
+
13
+ ## 1. 为什么不做成 dependency
14
+
15
+ 把 dsh-threads 写进本插件的依赖,等于在用户 profile 里再装一份。dsh-threads 自己持有
16
+ `dsh_threads` 存储域(DSH 的 domain 一进程只允许一个打开句柄),两份会被它自己的
17
+ `already-open` 保护挡住;版本不同还会把用户自己装的版本挤掉。这和「装了也不冲突」正好相反,
18
+ 所以走**共存 + 探测**。
19
+
20
+ ## 2. 探测:两个信号,都不看存储文件
21
+
22
+ 代码:`src/threads-probe.js`;宿主接线:`src/index.js` 的 `runtime.threads()` 与 board 快照。
23
+
24
+ | 信号 | 读到什么 | 覆盖的场景 |
25
+ |---|---|---|
26
+ | `storageDomain.get("dsh_threads")` | dsh-threads 在 `apply` 里 `open()` 并持有的域句柄 | 「装好、跑起来了」——这是最权威的一条 |
27
+ | `ctx.registry`(Cordis 插件注册表)里有没有 `name` 为 `dsh-threads` 的运行时 | 该 bundle 的插件回调已注册(loader 把模块的 `name` 导出交给 Cordis) | 「entry 在、apply 还没跑完 / 失败」那段窗口 |
28
+
29
+ 为什么不看 `~/.dsh/storages/dsh_threads.json`:
30
+
31
+ - 装了但**还没建项目**:文件不存在 → 会被误判成「没装」;
32
+ - 卸载之后:文件**还在** → 会被误判成「装着」;
33
+ - 所以它只作为佐证(`signals.storageFile`)和「磁盘上还有 N 条历史记录」的计数来源,不参与判断。
34
+
35
+ 任一信号为真即 `installed: true`;两个都读不到按「没装」处理。两个读取都包在 try/catch 里,
36
+ 宿主缺少服务、registry 拒绝迭代、domain 句柄抛错,一律读成 `false`,**不会**抛异常或刷警告日志
37
+ (harness 有一条「host loads with no dsh-threads at all」专门验这个)。
38
+
39
+ 上游事实核对(2026-12-01,`@kyf-eng/dsh-threads` 0.2.0 的 `dist/index.js`):
40
+ 它 `normalize` 出一个名为 `dsh_threads` 的 domain,并 `export { ..., name }`,`name = "dsh-threads"`。
41
+ 旧记录里「上游没有 LICENSE 文件」已过时:仓库根目录有 `LICENSE`(MIT,Copyright 2026 fky),
42
+ npm 包里也有同一份。
43
+
44
+ ## 3. patch id 对比(结论:不重名,不改名)
45
+
46
+ | 包 | `cordis.patch.yml` 的 entry id | name |
47
+ |---|---|---|
48
+ | `@kyf-eng/dsh-threads` | `dsh-threads` | `@kyf-eng/dsh-threads` |
49
+ | 本插件 | `dsh-claude-project-ui` | `dsh-claude-project-ui` |
50
+
51
+ cordis 的 patch id 是全局的,撞了会互相覆盖;这两个不撞,所以**不改名**。
52
+
53
+ 改名影响评估(如果哪天要改):用户 profile 的 `cordis.patch.yml` 是按 id 定位条目的
54
+ (例如别人的 profile 里可能写着 `- id: dsh-claude-project-ui` 去覆盖配置),id 一改,
55
+ 那条覆盖就找不到目标。本机 desktop patch 层实测**没有**针对本插件 id 的覆盖
56
+ (`grep -n "dsh-claude-project-ui" ~/.dsh/profiles/desktop/cordis.patch.yml` 无输出),
57
+ 所以今天改名不会丢配置;但没有理由为一个已经唯一的 id 承担这个风险。
58
+
59
+ ## 4. 客户端槽位对比(结论:不重名,各渲染一次)
60
+
61
+ 两个插件都往 `sidebar.right.pane.tab` / `conversation.session.header.actions` / `shell.overlay` 注入,
62
+ 所以 key/id 必须不同。上游的值取自安装包的 `dist/client.js`:
63
+
64
+ | 槽位 | 上游 | 本插件 |
65
+ |---|---|---|
66
+ | `sidebar.right.pane.tab` 的 key | `@kyf-eng/dsh-threads`、`@kyf-eng/dsh-threads/chat` | `project-hub` |
67
+ | `conversation.session.header.actions` 的 id | `dsh-threads` | `project-hub` |
68
+ | `shell.overlay` 的 id | `dsh-threads-sidebar-projects` | `project-hub-folders` |
69
+ | `sidebar.panellist` 的 id | `dsh-threads-projects` | (不注册) |
70
+ | locale 命名空间 | `dshThreads` | `project-hub` |
71
+ | `settings.section` 的 id | (不注册) | `project-folders` |
72
+
73
+ 复核命令:
74
+
75
+ ```sh
76
+ cd ~/.dsh/profiles/desktop/node_modules/@kyf-eng/dsh-threads
77
+ grep -oE '(CHAT_TAB_ID|LIST_TAB_ID|NS|PANEL_ID) *= *"[^"]*"' dist/client.js | sort -u
78
+ ```
79
+
80
+ `test/client-checks.mjs` 里有一条检查把这组上游值当常量,断言我们四个 id 都不在其中、且都以
81
+ `project-` 开头——以后谁把 id 改成上游的值,测试直接红。
82
+
83
+ ## 5. 可复现证据
84
+
85
+ ### 5.1 测试
86
+
87
+ ```sh
88
+ cd /Users/lanechen/Documents/deepseek-harness/default-workspace/dsh-claude-project-ui
89
+ node test/harness.mjs # 61 条,含探测两信号 / 无 dsh-threads 宿主零警告 / patch id 不撞 / 面板三态 / 槽位 id 不撞 / 版本探测 / 版本不符只提示
90
+ node test/spec-check.mjs # 10 个工具定义对照宿主 DSL
91
+ ```
92
+
93
+ ### 5.2 隔离 profile 组合(不碰 ~/.dsh/profiles,不重启 App)
94
+
95
+ 复制 desktop 的依赖解析(symlink node_modules),但只选 4 个 bundle,dump 出组合后的 entry 树:
96
+
97
+ ```sh
98
+ iso=/tmp/dsh-dual-home
99
+ mkdir -p "$iso/profiles/dual"
100
+ ln -sfn ~/.dsh/profiles/desktop/node_modules "$iso/profiles/dual/node_modules"
101
+ node -e '
102
+ const fs=require("node:fs");
103
+ const desktop=JSON.parse(fs.readFileSync(process.env.HOME+"/.dsh/profiles/desktop/package.json","utf8"));
104
+ const wanted=["@deepseek-ai/dsh-base","@deepseek-ai/dsh-web-app","@kyf-eng/dsh-threads","dsh-claude-project-ui"];
105
+ const dependencies={};
106
+ for (const n of wanted) dependencies[n]=desktop.dependencies[n] || "*";
107
+ fs.writeFileSync("/tmp/dsh-dual-home/profiles/dual/package.json",
108
+ JSON.stringify({name:"dsh-profile-dual",private:true,dependencies,dsh:{profile:{bundles:wanted}}},null,2)+"\n");
109
+ '
110
+ printf '[]\n' > "$iso/profiles/dual/cordis.patch.yml"
111
+ DSH_HOME="$iso" dsh --profile dual --dump-config > "$iso/tree.yml"
112
+ grep -n -B1 -A2 'dsh-threads' "$iso/tree.yml" | tail -12
113
+ ```
114
+
115
+ 2026-12-01 实测结果:组合树 1251 行、**198 个 entry、0 个重复 id**,
116
+ `dsh-threads` 与 `dsh-claude-project-ui` 各出现一次(相邻,`dsh-threads` 在前)。
117
+
118
+ ### 5.3 保险:fork
119
+
120
+ `lanechenhku/dsh-threads` 是 `Kyf-eng/dsh-threads` 的纯净 fork(2026-11-18 建,未改动、未同步)。
121
+ 只作「上游哪天删库」的保险,不参与本插件的加载。
122
+
123
+ ## 6. 没有验证的
124
+
125
+ - **没有**在真实 DSH 里同时跑这两个插件并看界面:那需要完全退出并重启正在使用的桌面 App
126
+ (会杀掉当前会话),按任务要求没做。组合树与槽位 id 是静态证据 + 单元测试,不是真机运行证据。
127
+ - **没有**在浏览器里看过那条「未检测到 @kyf-eng/dsh-threads」提示的实际渲染:组件与文案接线
128
+ 由 `boardState()` 的三态测试 +「每个 key 都有调用点」的检查覆盖,视觉样式要重启后才看得到。
129
+ - 上游若把 domain 名从 `dsh_threads` 改掉,信号 1 会失效——但信号 2(注册表 `name`)仍能兜住;
130
+ 两个都改才需要跟进 `src/threads-probe.js`。
131
+
132
+ ## 7. 钉版与版本提示(2026-12-01 追加)
133
+
134
+ 用户追加要求「总是基于我的 fork」后:
135
+
136
+ - fork 上的 `v0.2.0-baseline`(= 上游 release commit `469f32c`,与 npm 0.2.0 发布包逐字节一致)
137
+ 成为唯一基线,详见 [`dsh-threads-baseline.md`](dsh-threads-baseline.md);
138
+ - 本插件**不**把 dsh-threads 写进 `dependencies`(会挤掉用户自己的版本),只在 README 里给出钉版安装写法;
139
+ - 面板对「装了但不是 0.2.0」只显示一行提示,不报错、不拦;读不到版本就什么都不说。
@@ -0,0 +1,86 @@
1
+ # 商店文案 0.4.4:Claude Projects 定位(2026-12-01)
2
+
3
+ 目标(用户原话):「让用户想要 claude project ui 界面的时候,直接用我的插件就行了。」
4
+ 所以四份对外文案统一成一个身份:**想要 Claude Projects 那种项目界面,在 DeepSeek Harness 里就是这个插件。**
5
+ `@kyf-eng/dsh-threads` 从「句首前提」降级为后段的**可选**兼容说明;不写「完全替代 Claude Projects」「比 Claude 好」这类比较句。
6
+
7
+ 计数字段一律用 node 的 `[...s].length`(Unicode 字符数),不用 `wc` 估。
8
+
9
+ ## A. `package.json` 的 `description`(商店卡片正文 / npm 首段)
10
+
11
+ 卡片宽度参考:旧版约 110 汉字、占 4 行;下面按「汉字按 2、其余按 1」估了显示宽度,控制在旧版以内。
12
+
13
+ ### 候选 1(**采用**,推荐)
14
+
15
+ **125 字符**(汉字 67,显示宽度约 192)
16
+
17
+ ```text
18
+ 想要 Claude Projects 的项目界面?DeepSeek Harness 里就有:侧栏「项目看板」页签把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务。中英双语,dsh-threads 可选。
19
+ ```
20
+
21
+ 推荐理由:第一句就是用户搜索时脑子里的那句话(「想要 Claude Projects 的项目界面」),第二句立刻给出答案,
22
+ 搜索词与产品身份在同一行;后面三个卖点按重要性排(一屏 / 多文件夹 / 回报变任务),不出现「基于 dsh-threads」这种前置。
23
+
24
+ ### 候选 2(陈述式,不提问)
25
+
26
+ **119 字符**(汉字 62,显示宽度约 181)
27
+
28
+ ```text
29
+ Claude Projects 式的项目体验,搬进了 DeepSeek Harness:项目、讨论串、任务一屏看清,每个项目可挂多个文件夹(系统原生选择器),讨论串回报自动变任务;面板中英双语,设置面板直改。dsh-threads 可选。
30
+ ```
31
+
32
+ ### 候选 3(场景式,细节最多)
33
+
34
+ **104 字符**(汉字 64,显示宽度约 168)
35
+
36
+ ```text
37
+ 像 Claude Projects 那样管项目:侧栏「项目看板」页签铺开所有项目、讨论串与任务,当前项目置顶;每个项目可挂多个文件夹,走系统原生选择器;回报自动变任务。中英双语,dsh-threads 可选。
38
+ ```
39
+
40
+ (已写入 `package.json`,**发布 0.4.4 后**商店卡片与 npm 首段才更新。)
41
+
42
+ ## B. GitHub About(硬上限 350 字符)
43
+
44
+ **333 字符**(中文段 165 + 空格 1 + 英文段 167,node 实测;留 17 字符余量)
45
+
46
+ ```text
47
+ 想要 Claude Projects 的项目界面,就用它:DeepSeek Harness 侧栏「项目看板」页签把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务,中英双语、设置面板直改。@kyf-eng/dsh-threads 可选,装了共存不冲突,没装也能用知识库、简报与文件夹。 Claude-Projects-style project UI for DSH: one page for projects, threads and tasks; extra folders per project; reports become tasks. dsh-threads optional, no conflict.
48
+ ```
49
+
50
+ 给 lead 的命令(**尚未执行**,等用户过目):
51
+
52
+ ```bash
53
+ gh repo edit lanechenhku/dsh-claude-project-ui --description "想要 Claude Projects 的项目界面,就用它:DeepSeek Harness 侧栏「项目看板」页签把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务,中英双语、设置面板直改。@kyf-eng/dsh-threads 可选,装了共存不冲突,没装也能用知识库、简报与文件夹。 Claude-Projects-style project UI for DSH: one page for projects, threads and tasks; extra folders per project; reports become tasks. dsh-threads optional, no conflict."
54
+ ```
55
+
56
+ 要求覆盖:中文在前 / 英文在后;「想要 Claude Projects 的体验就用它」;`@kyf-eng/dsh-threads` 可选、共存不冲突。
57
+
58
+ ## C. README 首屏(中英双语,已改)
59
+
60
+ 新首屏顺序(两半完全镜像):
61
+
62
+ 1. **一句话**:「想要 Claude Projects 那种项目界面?在 DeepSeek Harness 里,这就是它。」+ 一段三句话的产品自述;
63
+ 2. **「三个最能打的」**:项目/讨论串/任务一屏 · 每项目多文件夹走系统原生选择器 · 讨论串回报自动变成任务;
64
+ 3. **「从 Claude Projects 过来,会看到什么」**:项目列表 / 会话 / project instructions / 单工作目录 / 待办 五项对照;
65
+ 4. 原有的「强化了 lead 与 thread 的分工」「比 Claude Projects 多出的东西」表保持内容不动(只核对措辞);
66
+ 5. **「兼容性」一节**(放在安装前):运行环境 + `@kyf-eng/dsh-threads` 是可选的(含没装时面板行为、探测方式、同时装不冲突)+ 和 dsh-threads 的分工表 + 版本与钉版;
67
+ 6. 安装及之后各节顺序不变。
68
+
69
+ 降级处理:原来的「和 dsh-threads 的关系:补强,不是替代」与「前置:…是可选的」「版本与兼容性」三节,合并成 `## 兼容性` 下的三个 `###` 小节,位置从首屏后移到安装之前;首屏不再出现「基于 dsh-threads」。
70
+
71
+ ## D. 一致性检查
72
+
73
+ | 位置 | 现在的口径 |
74
+ |---|---|
75
+ | `package.json` description | 候选 1(Claude Projects 提问 + 三卖点 + 可选 dsh-threads) |
76
+ | README 中/英首屏 | 同一句话 + 三卖点 + 迁移对照;dsh-threads 只在兼容性节 |
77
+ | GitHub About | 同一身份 + 可选 dsh-threads(333 字符) |
78
+ | `docs/about-drafts.md` | 旧候选标为历史;文末换成本次 333 字符文本 |
79
+ | `CHANGELOG.md` 0.4.4 | 文档条目改为「商店文案重写:Claude Projects 定位」,不再写「description 292 字符」旧值 |
80
+ | README 文案条数 | 97 → **103**(与 `src/client.js` 的 `MESSAGES.zh/en` 实测一致) |
81
+ | 侧栏页签名 | 统一写「项目看板」(`src/client.js` 的 `tab.title`),不再把它写成 `▤` 按钮 |
82
+
83
+ ## 没做 / 待决定
84
+
85
+ - 没有改 `version`(仍 0.4.4)、没有 npm publish、没有 commit/tag、没有动 GitHub;About 命令只给不跑。
86
+ - 商店卡片是读已发布包的 `description`,所以新文案要等 0.4.4 发布后才在卡片上出现。