dsh-side-window 0.0.0-stage → 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 cehn
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,3 +1,63 @@
1
- # Temporary Holding Version
1
+ # 侧栏窗口(dsh-side-window)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 把 DSH 变成贴在屏幕右侧的侧栏窗口:按一下快捷键滑出来,用完滑回去,不用一直占着主窗口。
4
+
5
+ ![设置页](docs/settings.png)
6
+
7
+ ## 它是什么
8
+
9
+ 一个独立的 Electron 窗口,贴在屏幕右边缘,里面跑的是**完整的 DSH 网页**——同一个对话、同一份客户端插件,不是简化版。
10
+
11
+ - 默认在后台待命,屏幕上看不到,也不抢焦点
12
+ - 按快捷键(默认 `Ctrl+Shift+Z`)从右边滑出,再按一次收起
13
+ - 点别处会自动收起;需要一直开着就打开「窗口置顶」
14
+ - 可以跟随主窗口切换对话
15
+
16
+ ## 安装
17
+
18
+ 在 DSH 的插件管理器里搜 `dsh-side-window` 安装,或者:
19
+
20
+ ```
21
+ pnpm add dsh-side-window
22
+ ```
23
+
24
+ 需要 DSH **0.2.2-rc.5** 或更新(这是实测过的版本)。
25
+
26
+ ## 首次启动
27
+
28
+ 第一次会下载一个 Electron 运行时(约 138 MiB,解压后约 347 MB),在后台进行,不阻塞 DSH 启动。设置页的「窗口运行时」会显示进度。
29
+
30
+ 如果机器上已经有 dsh-pet 装的 Electron,会直接复用,不重复下载。
31
+
32
+ 装好之后 DSH 启动时窗口在后台待命——**屏幕上看不到是正常的**,按 `Ctrl+Shift+Z` 才出来。
33
+
34
+ ## 用法
35
+
36
+ 设置入口:**设置 → 侧栏窗口**
37
+
38
+ | 设置 | 作用 | 什么时候生效 |
39
+ |---|---|---|
40
+ | 启动弹出 | DSH 启动时自动滑出窗口 | 重启外壳 |
41
+ | 收拉快捷键 | 拉出 / 收起侧栏窗口,可录制自定义组合键 | 保存后立即生效 |
42
+ | 窗口宽度 | 320–900 px | 保存并重启 |
43
+ | 不透明度 | 侧栏窗口的底色透明度 | 拖动后约 1 秒 |
44
+ | 强制透明 | 把第三方插件铺的背景层也调透明 | 保存后约 1 秒 |
45
+ | 自动收起 | 失去焦点时自动收起 | 保存并重启 |
46
+ | 窗口置顶 | 一直盖在其它窗口上面 | 保存后立即生效 |
47
+ | 跟随对话 | 侧栏跟着主窗口切换对话 | 保存后立即生效 |
48
+
49
+ 窗口顶部正中有一道把手,点开是「固定 / 退出」:固定 = 不自动收起 + 置顶,只对本次有效,重启后回到设置里的值。
50
+
51
+ ## 限制
52
+
53
+ - **仅 Windows**。其它系统装上不会有任何反应。
54
+ - **跟随是单向的**:主窗口换对话,侧栏跟着换;在侧栏里换对话不影响主窗口。
55
+ - **主窗口页面要开着**:关掉主窗口后,侧栏不再跟随。
56
+ - **侧栏窗口不弹系统通知**:同一个对话不会在主窗口和侧栏各弹一次,通知只在主窗口出现。
57
+ - **宽度调到 768 以上会变成分栏**:右栏不再全屏,而是和聊天并排。
58
+ - **DSH 退出后,外壳最多 1 秒才消失**(靠轮询,不是系统事件)。
59
+ - **工具条上的「固定」不跨重启**,长期偏好请用设置里的「窗口置顶」和「自动收起」。
60
+
61
+ ## 许可证
62
+
63
+ MIT