dsh-prompt 0.1.7 → 0.1.8

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/README.md CHANGED
@@ -35,10 +35,10 @@ npm install -g @deepseek-ai/dsh
35
35
  dsh plugin --profile web add dsh-prompt # 用自启 web 服务(dsh web)
36
36
  # 或者
37
37
  dsh plugin --profile desktop add dsh-prompt # 用 DSH Desktop 桌面应用
38
- # 锁定最新版更稳(当前 0.1.7):
39
- dsh plugin --profile web add dsh-prompt@0.1.7 --registry https://registry.npmjs.org
38
+ # 锁定最新版更稳(当前 0.1.8):
39
+ dsh plugin --profile web add dsh-prompt@0.1.8 --registry https://registry.npmjs.org
40
40
  # 或者
41
- dsh plugin --profile desktop add dsh-prompt@0.1.7 --registry https://registry.npmjs.org
41
+ dsh plugin --profile desktop add dsh-prompt@0.1.8 --registry https://registry.npmjs.org
42
42
  ```
43
43
 
44
44
  <div align="center">
@@ -83,6 +83,19 @@ dsh plugin --profile web update dsh-prompt # 升级
83
83
  dsh plugin --profile web remove dsh-prompt # 卸载
84
84
  ```
85
85
 
86
+ <h2 align="center"><sub>SUPPORTED DSH</sub><br>支持的 DSH 版本</h2>
87
+
88
+ 开发与验证基线:**DSH CLI `0.1.5-rc.1`** · **DSH Desktop `2.0.9`**。<br>
89
+ 比基线更低的 DSH 版本未验证——装得上,但能不能跑对不保证;遇到了问题欢迎[提 ISSUE](https://github.com/FeatherHunter/dsh-prompt/issues)。
90
+
91
+ 下面这段是唯一的版本声明,`package.json` 的 `dsh.engines.dsh` 与它逐字一致(`npm run test:issue-42` 会比对,改一处忘另一处就变红)。声明只作说明:安装时不拦版本。
92
+
93
+ ```text
94
+ dsh.engines.dsh = >=0.1.5-rc.1
95
+ dsh.cli = 0.1.5-rc.1
96
+ dsh.desktop = 2.0.9
97
+ ```
98
+
86
99
  <h2 align="center"><sub>PROMPT BUTTON</sub><br>入口一 · Prompt 按钮</h2>
87
100
 
88
101
  <div align="center">
@@ -158,6 +171,15 @@ dsh plugin --profile web remove dsh-prompt # 卸载
158
171
 
159
172
  </div>
160
173
 
174
+ **本地诊断日志(默认关,只写你自己的电脑)**
175
+
176
+ 排查故障时,本插件会写一份结构化日志到本机 `<DSH 家目录>/logs/dsh-prompt/YYYY-MM-DD.log`(Windows 上是 `C:\Users\<你>\.dsh\logs\dsh-prompt\`)。开关在 **设置 → 插件 → 提示词模板**,默认关;关着的时候只记错误与告警,打开后才记信息与调试。开关以宿主为准,刷新页面不会改变它。
177
+
178
+ - **绝不记录模板名称与提示词正文**——日志只记事件名、事件级别、计数、布尔值、时长与不可逆的短散列;模板身份只记一个 8 位散列。字段白名单写在仓库的 `event-list.dsh-prompt.json`,白名单之外的字段在客户端与宿主两侧各拦一次,写不进文件。
179
+ - **绝不自动上报**。日志只落本机磁盘,导出要你自己点「导出日志」(下载成文件)或「复制正文」(进剪贴板)才会离开插件。
180
+ - **不自动清理**:日志按天一个文件,不轮转也不自动删除;「清空日志」按钮删掉全部日志文件(两步确认)。
181
+ - 日志能力失败不影响插件本身:目录写不进去时自动降级到系统临时目录,再失败就彻底不落盘,只往 stderr 告警一次。
182
+
161
183
  <h2 align="center"><sub>FAQ</sub><br>常见问题</h2>
162
184
 
163
185
  <details open>