dsh-mini 0.1.6 → 0.1.7

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 +5 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -118,17 +118,18 @@ npm install dsh-mini
118
118
 
119
119
  装完不需要额外配置:插件会在 DSH 启动 2.5 秒后自己拉起常驻服务(划词药丸 + 全局热键 + 托盘),小窗由标题栏的「弹出此窗口」按需打开。**前提是机器上已有 WebView2 Runtime**(见上面「系统要求」)。
120
120
 
121
- ### B. 本机 link(改代码时用)
121
+ ### B. 源码 link(改代码时用)
122
122
 
123
- profile 走 `link:` 依赖,和 `tju-plugin` 一样:
123
+ 改代码不必每次 `npm pack`,把 profile 里的依赖指向你本地这份仓库即可:
124
124
 
125
125
  ```jsonc
126
126
  // ~/.dsh/profiles/desktop/package.json
127
- "dependencies": { "dsh-mini": "link:C:/Users/xiaoxin3309/Documents/deepseek-harness/default-workspace/dsh-hud-window" },
127
+ "dependencies": { "dsh-mini": "link:<本仓库在你机器上的绝对路径>" },
128
128
  "dsh": { "profile": { "bundles": [ ..., "dsh-mini" ] } }
129
129
  ```
130
130
 
131
- `node_modules/dsh-mini` 是指向本目录的 junction,改代码不需要重新安装。
131
+ 把 `<本仓库在你机器上的绝对路径>` 换成你 clone 下来的那个目录(例如 `C:/code/dsh-mini`),
132
+ 然后 `npm install` 让 npm 建好 `node_modules/dsh-mini` 这层链接;之后改代码不需要重新安装。
132
133
  宿主半身(`lib/index.js`)的改动需要 `plugin_manager set_bundle` 关一次再开一次(或重启 DSH);
133
134
  浏览器半身(`lib/client.js`)的改动需要**刷新页面**(`F5`)——bundle 的 `rev` 由内容算出,刷新即取新版。
134
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mini",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "DSH 常驻小窗插件:把当前会话一键弹出为独立置顶小窗(WebView2 原生窗口),含整屏/框选截图、划词「问大肥鱼」、全局快捷键与截图自动复制",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",