dsh-auto-effort 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +14 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -88,8 +88,6 @@ plugin_manager install_bundle dsh-auto-effort
88
88
 
89
89
  想完全不花这笔钱:`enabled: false`(完全停止),或把 `levels` 收窄。
90
90
 
91
- - 判定质量有限:偏“查资料/闲聊”的问题有时判成 `low` 而不是 `off`。
92
-
93
91
  ## 卸载
94
92
 
95
93
  ```
@@ -98,6 +96,20 @@ plugin_manager remove_bundle dsh-auto-effort
98
96
 
99
97
  卸载会同时清掉 profile 里 `dsh.profile.bundles` 的记录,不残留 override。
100
98
 
99
+ ## 排障
100
+
101
+ **卸载“本地目录链接”方式安装的包,会把那个本地目录清空。** 用绝对路径装(`install_bundle /path/to/dsh-auto-effort`)时,profile 里是一条 `link:` 链接;卸载这个链接时,pnpm 的清理会连带删掉被链接目录里的文件。开发时如果改完想“卸掉重装”,先备份,或直接按下面的方式重装:
102
+
103
+ ```
104
+ # 从线上包恢复一份完整源码
105
+ npm pack dsh-auto-effort@<版本>
106
+ tar -xzf dsh-auto-effort-<版本>.tgz --strip-components=1 -C <你的目录>
107
+ ```
108
+
109
+ 从 npm 正常安装(`install_bundle dsh-auto-effort`)不会有这个问题,删的是 profile 里那份拷贝。开发循环更安全的做法是:不要卸载,改完文件后重新 `install_bundle <目录>`(同一版本会提示 `already-installed`,所以开发时每次改完把 `version` 提一位再装,或用 `remove_bundle` 前先 `git commit`)。
110
+
111
+ **别人装的时候报 `failed to import … index.js` 的 `ENOENT`**:先确认 profile 里那条依赖现在是版本号而不是 `link:` 路径;如果是从本地链接切到 npm 版本,卸载 → 安装两次即可,第一次激活可能还指向旧链接路径。
112
+
101
113
  ## 开发
102
114
 
103
115
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-auto-effort",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Per-turn reasoning effort picker for DeepSeek Harness: judges the newest user message with one lightweight LLM call and selects off/low/high/max for that same turn.",
5
5
  "type": "module",
6
6
  "license": "MIT",