dsh-mini 0.1.2 → 0.1.4

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/LICENSE +21 -0
  2. package/README.md +19 -1
  3. package/package.json +9 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 xiaoxin3309
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # dsh-mini
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-mini.svg)](https://www.npmjs.com/package/dsh-mini)
4
+ [![license](https://img.shields.io/npm/l/dsh-mini.svg)](LICENSE)
5
+
6
+ 仓库 https://github.com/xiaoxin3309/dsh-mini | npm 包名 `dsh-mini`
7
+
3
8
  把当前会话一键弹出成一个**独立置顶小窗**,小窗里有整屏截图和框选截图两个键(截图时小窗自己不进入画面,图片直接插进输入框);在任意程序里选中文字,还会就地弹出「问大肥鱼」小药丸,点一下把小窗叫出来并引用那段话。
4
9
 
5
10
  ```
@@ -100,7 +105,20 @@ PNG → base64 → `postMessage` 给页面 → 走 Lexical 粘贴事件塞进输
100
105
  数据目录固定是 `%LOCALAPPDATA%\dsh-hud\`(`config.ini`、`window.txt`、日志、WebView2 用户数据),
101
106
  改名前后没动过,装到别的机器上也是这个路径、按用户隔离。
102
107
 
103
- ## 安装(本机已做)
108
+ ## 安装
109
+
110
+ ### A. 从 npm 装(别人用这个)
111
+
112
+ ```bash
113
+ cd ~/.dsh/profiles/desktop
114
+ npm install dsh-mini
115
+ ```
116
+
117
+ 然后在同一个 `package.json` 的 `dsh.profile.bundles` 末尾加一项 `"dsh-mini"`,重启 DSH(或 `plugin_manager set_bundle` 关一次再开一次)。
118
+
119
+ 装完不需要额外配置:插件会在 DSH 启动 2.5 秒后自己拉起常驻服务(划词药丸 + 全局热键 + 托盘),小窗由标题栏的「弹出此窗口」按需打开。**前提是机器上已有 WebView2 Runtime**(见上面「系统要求」)。
120
+
121
+ ### B. 本机 link(改代码时用)
104
122
 
105
123
  profile 走 `link:` 依赖,和 `tju-plugin` 一样:
106
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mini",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "DSH 常驻小窗插件:把当前会话一键弹出为独立置顶小窗(WebView2 原生窗口),含整屏/框选截图、划词「问大肥鱼」、全局快捷键与截图自动复制",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13,7 +13,14 @@
13
13
  "screenshot",
14
14
  "webview2"
15
15
  ],
16
- "homepage": "https://www.npmjs.com/package/dsh-mini",
16
+ "homepage": "https://github.com/xiaoxin3309/dsh-mini#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/xiaoxin3309/dsh-mini.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/xiaoxin3309/dsh-mini/issues"
23
+ },
17
24
  "os": [
18
25
  "win32"
19
26
  ],