@xth26/dsh-plan-build-mode 0.2.0 → 0.2.1

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/README.md +21 -0
  2. package/README.zh.md +21 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -66,6 +66,27 @@ pnpm link --global @xth26/dsh-plan-build-mode
66
66
  Then start DSH with that profile. The `dsh.bundle.patch` field in the plugin's
67
67
  `package.json` makes the patch apply automatically.
68
68
 
69
+ ## Updating
70
+
71
+ For `0.x` versions, the semver range `^0.1.0` only matches `0.1.x` and will **never** auto-update to `0.2.0`. Always bump the declaration explicitly and restart the DSH process:
72
+
73
+ ```bash
74
+ # Bump the installed version in the target profile
75
+ # (run this outside a sandboxed agent session; the profile directory is not writable from DSH)
76
+ dsh plugin --profile dsh-tui add @xth26/dsh-plan-build-mode@0.2.0
77
+
78
+ # Restart the DSH process that uses that profile
79
+ # (old Node process still holds the previous plugin code in memory)
80
+ Stop-Process -Name dsh -Force # PowerShell
81
+ # or: taskkill /IM dsh.exe /F # CMD
82
+ ```
83
+
84
+ Then start `dsh web` or `dsh tui` again. To always pull the latest published version:
85
+
86
+ ```bash
87
+ dsh plugin --profile dsh-tui add @xth26/dsh-plan-build-mode@latest
88
+ ```
89
+
69
90
  ## Usage
70
91
 
71
92
  | Command | Effect |
package/README.zh.md CHANGED
@@ -63,6 +63,27 @@ pnpm link --global @xth26/dsh-plan-build-mode
63
63
 
64
64
  然后启动 DSH。插件 `package.json` 里的 `dsh.bundle.patch` 会自动生效。
65
65
 
66
+ ## 更新
67
+
68
+ 对于 `0.x` 版本,semver 范围 `^0.1.0` 只会匹配 `0.1.x`,**永远不会**自动更新到 `0.2.0`。升级时必须显式提升声明并重启 DSH 进程:
69
+
70
+ ```bash
71
+ # 在目标 profile 中提升已安装版本
72
+ # (这条命令需要在非沙箱的终端里执行;DSH agent 无法写入 profile 目录)
73
+ dsh plugin --profile dsh-tui add @xth26/dsh-plan-build-mode@0.2.0
74
+
75
+ # 重启使用该 profile 的 DSH 进程
76
+ # (旧的 Node 进程仍缓存着旧插件代码)
77
+ Stop-Process -Name dsh -Force # PowerShell
78
+ # 或: taskkill /IM dsh.exe /F # CMD
79
+ ```
80
+
81
+ 然后重新启动 `dsh web` 或 `dsh tui`。如果想始终安装最新发布版本:
82
+
83
+ ```bash
84
+ dsh plugin --profile dsh-tui add @xth26/dsh-plan-build-mode@latest
85
+ ```
86
+
66
87
  ## 使用
67
88
 
68
89
  | 命令 | 效果 |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xth26/dsh-plan-build-mode",
3
3
  "description": "OpenCode-style Plan / Build hard permission model for DSH",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },