dsh-dual-memory-tree 0.1.0 → 0.1.2

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 (2) hide show
  1. package/README.md +60 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,8 +2,68 @@
2
2
 
3
3
  > npm 包名 `dsh-dual-memory-tree`。DSH 插件注册名与数据目录仍沿用 `dsh-memory-tree` / `memory-tree`,已安装的用户升级时数据不受影响。
4
4
 
5
+ ## 安装
6
+
7
+ **没有真正的一键安装。** 把 npm 包装进 DSH 是两步,`npm install` 只完成其中一步都不到。
8
+
9
+ DSH 启动时加载哪些插件,只看 profile 的 `package.json` 里 `dsh.profile.bundles` 这个数组;
10
+ 数组里的每个名字,要能在**同一个 profile 的 `node_modules`** 里解析到。
11
+ 两条同时满足才会加载,所以:
12
+
13
+ - `npm install -g` / `npm install` 到随便一个项目里 → bundles 里没有它 → 不加载
14
+ - 只把名字写进 bundles → 那个 profile 里解析不到这个包 → 报错
15
+
16
+ 下面以 profile 名 `desktop` 为例(`<DSH_HOME>` 是本机 DSH home,例如 `E:\dsh`)。
17
+
18
+ **第一步,装进 profile**(`dsh plugin` 是 pnpm 的透传,装到 `<DSH_HOME>/profiles/<profile>/`):
19
+
20
+ ```
21
+ dsh plugin --profile desktop add dsh-dual-memory-tree
22
+ ```
23
+
24
+ **第二步,登记进 bundles** —— 编辑 `<DSH_HOME>/profiles/desktop/package.json`,
25
+ 把包名加进数组:
26
+
27
+ ```json
28
+ {
29
+ "dsh": {
30
+ "profile": {
31
+ "bundles": [
32
+ "...",
33
+ "dsh-dual-memory-tree"
34
+ ]
35
+ }
36
+ }
37
+ }
38
+ ```
39
+
40
+ 两步做完重启 DSH(或让它重载 profile)。桌面端的插件管理页也能装 bundle,
41
+ 填包名或安装规格即可,效果与上面两步相同。
42
+
43
+ 装好后工作区侧边栏会出现记忆树图标,点开就是双树面板;数据落在
44
+ `<工作目录>/.memory-tree/` 与 `<DSH_HOME>/memory-tree/`。
45
+
5
46
  ## 更新日志
6
47
 
48
+ ### 0.1.2
49
+
50
+ 补上安装说明:`npm install` 装不上这个插件,缺的是 profile 里那一步登记。
51
+
52
+ - 新增「安装」章节,写清 DSH 只加载 `dsh.profile.bundles` 里登记过的包,
53
+ 且该包必须能在同一个 profile 的 `node_modules` 里解析到——两条同时成立才加载。
54
+ - 给出正确的两步命令(`dsh plugin --profile desktop add ...` + 编辑 `package.json`
55
+ 的 bundles 数组),并说明 `npm i -g` 为什么无效。
56
+ - 无代码改动,功能与 0.1.1 完全一致。
57
+
58
+ ### 0.1.1
59
+
60
+ 修 npm 页面不显示 README 的问题,并让发布走 CI。
61
+
62
+ - 0.1.0 是用 pnpm 手动发的,pnpm 不会把 README 内容写进包元数据的 `readme` 字段,
63
+ 所以 npm 页面上一直显示「This package does not have a README」。改由 CI 用
64
+ `npm publish --provenance` 发布后就能正常显示。
65
+ - 发布流程改为打 tag 触发 GitHub Actions,OIDC 认证,仓库里不再需要任何长期 token。
66
+
7
67
  ### 0.1.0
8
68
 
9
69
  首个可发布版本。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-dual-memory-tree",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Dual-tree long-term memory for DeepSeek Harness: a task tree per working directory and one global habit tree, with decay scheduling, three-hop retrieval, handoff briefs, and a dual-tree visualization panel.",
6
6
  "keywords": [
@@ -62,4 +62,4 @@
62
62
  ]
63
63
  }
64
64
  }
65
- }
65
+ }