@suifei/dsh-ai-team 0.4.59 → 0.4.60

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 (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/index.js +3 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.60 - 2026-11-12
4
+
5
+ **`DSH_HOME` 被搬迁时也不能把真实 profile 目录当建议工作目录**
6
+
7
+ 0.4.59 的干跑(隔离实例把 `DSH_HOME` 指到临时目录)里,`suggested` 又变回了
8
+ `C:\Users\SuiFei\.dsh\profiles\desktop`:此时 `dshHome()` 指向临时目录,不再覆盖真实的
9
+ `~/.dsh`,于是桌面 profile 目录重新成为候选。(真机不受影响——0.4.57 在真实 `DSH_HOME`
10
+ 下已返回过 `C:\Users\SuiFei`。)
11
+
12
+ - 排除根改为 `[dshHome(), join(homedir(), '.dsh')]` 去重,搬迁场景与真机场景同时成立。
13
+ - 端到端复现真机条件(`cwd` = profile 目录、`DSH_HOME` = 临时目录):`suggested` =
14
+ **`C:\Users\SuiFei\works`**。
15
+ - 测试:`node --test` **259 通过 / 1 跳过**(`default-workspace` 7 例;新增「只排除搬迁根时
16
+ 真实 profile 目录仍会被选中」的反向断言,证明这条测试真能抓到该缺陷)。
17
+
3
18
  ## 0.4.59 - 2026-11-12
4
19
 
5
20
  **默认工作目录改成 `~/works` 子目录(不再用主目录根)**
package/index.js CHANGED
@@ -191,7 +191,9 @@ async function boot(diag, config = {}) {
191
191
  home: homedir(),
192
192
  dataDir,
193
193
  // 整个 ~/.dsh 都不能当工作目录(桌面启动器的 cwd 就是 profile 目录)。
194
- excludeRoots: [dshHome()],
194
+ // 同时排除**真实** home 下的 `.dsh`:`DSH_HOME` 被改到别处时(测试、隔离实例),
195
+ // dshHome() 不再覆盖桌面 profile 目录,那条路径仍可能被当成建议值。
196
+ excludeRoots: [...new Set([dshHome(), join(homedir(), '.dsh')])],
195
197
  });
196
198
  // 兜底建议是 `~/works`:它可能还不存在,而 `project.workspace.update` 只接受
197
199
  // 已存在的目录。用户确认的就是这个子目录,所以在这里建出来(失败则不提供建议)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.59",
3
+ "version": "0.4.60",
4
4
  "type": "module",
5
5
  "description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
6
6
  "license": "MIT",