dsh-experience 1.0.4 → 1.0.5

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.5] — 2026-11-09 — 第一个 npm 版本
4
+
5
+ - 发布到 npm:`dsh-experience@1.0.4` 是首个公开版本,`1.0.5` 修正安装说明。
6
+ - `README.md`:安装段从 `file:`/`link:` 改为 `install_bundle target=dsh-experience@<版本>`,并补升级方式(Web 插件页 Update / 重新 install)与“npm 安装是复制、改代码不生效”的说明。
7
+ - 新增 `tools/pack-check.mjs`(发布前按 `files` 白名单核对入包内容)与 `.github/workflows/publish.yml`(推 `v*` tag 校验版本一致、跑 selftest+e2e 后 `npm publish`)。
8
+
3
9
  ## [1.0.4] — 2026-11-09 — npm 发布通道
4
10
 
5
11
  - 新增 `.github/workflows/publish.yml`:推送 `v*` tag 时先校验 tag 与 `package.json` 版本一致、跑 selftest 与 e2e,再 `npm publish --access public`。
package/README.md CHANGED
@@ -66,38 +66,25 @@ flowchart LR
66
66
 
67
67
  ## 安装
68
68
 
69
- ### 方式一:作为 bundle 安装(推荐)
69
+ ### 方式一:从 npm 安装(推荐)
70
70
 
71
71
  ```text
72
- plugin_manager install_bundle target=file:<PATH-TO-dsh-experience>
72
+ plugin_manager install_bundle target=dsh-experience@1.0.5
73
73
  ```
74
74
 
75
- 开发模式(改代码即时生效,Junction 链接):
75
+ 安装后 `plugin_manager list_plugins` 应出现 `dsh-experience` 且 `fiberPhase: active`。
76
+
77
+ **升级**:Web 插件页对该 bundle 点 **Update**,或再执行一次 `install_bundle target=dsh-experience@<新版本>`。升级走 `listVersions` → `updateBundle`,失败会自动回滚到旧版本。
78
+
79
+ ### 方式二:本地开发(Junction 链接)
76
80
 
77
81
  ```text
78
82
  plugin_manager install_bundle target=link:<PATH-TO-dsh-experience>
79
83
  ```
80
84
 
81
- 安装后 `plugin_manager list_plugins` 应出现 `dsh-experience` 且 `fiberPhase: active`。
82
-
83
- ### 方式二:手工写进 profile
84
-
85
- 编辑 `~/.dsh/profiles/<profile>/package.json`:
86
-
87
- ```json
88
- {
89
- "dependencies": {
90
- "dsh-experience": "link:<PATH-TO-dsh-experience>"
91
- },
92
- "dsh": {
93
- "profile": {
94
- "bundles": ["dsh-experience"]
95
- }
96
- }
97
- }
98
- ```
85
+ 链接安装改代码即时生效;npm 安装是复制,改代码不生效,要发新版本。
99
86
 
100
- 重启 DSH 后,在任意会话里执行 `/memory list`,看到 `库 0 条` 即安装成功。
87
+ 装完在任意会话执行 `/memory list`,看到 `库 0 条` 即安装成功。
101
88
 
102
89
  ## 命令速查
103
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-experience",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"