dsh-any-preview 0.1.0-beta.1 → 0.1.0-beta.2
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/CHANGELOG.md +48 -0
- package/README.md +25 -12
- package/README.npm.md +25 -12
- package/README.zh-CN.md +24 -24
- package/lib/client.js +63 -36
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.2 — 2026-11-21
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- 压缩包列表改为文件夹树:目录由目录记录或成员路径前缀推出,两种分隔符统一,
|
|
8
|
+
同层"目录在前 + 自然名序";行样式、缩进、hover、focus 与 DSH 文件浏览器一致,
|
|
9
|
+
文件大小移到右侧 accessory 槽位。zip、tar/tar.gz、7z 共用同一棵树。
|
|
10
|
+
- 文件与目录图标改为从 `@deepseek-ai/dsh-client-ui-primitives@0.2.2-rc.1`(MIT)
|
|
11
|
+
拷入的本地副本,按宿主同一套分类规则选择图标;插件不再在运行时依赖宿主图标模块。
|
|
12
|
+
- 拖拽层重构:归档成员与 Files 行共用单一 MIME + token 注册表,控制器拆为
|
|
13
|
+
`src/client/drag/` 下的 controller/payload/registry/sources/gate/composer 等模块;
|
|
14
|
+
行为不变,另补了占位样式选择器与路径相对化的回归测试。
|
|
15
|
+
- P1:drop 改为投递到**指针下的会话**,多窗格时不再插回拖拽来源;只给目标
|
|
16
|
+
composer 描边。新增 `host.ts` 能力探测(缺失字段只告警一次)与 `references.ts`
|
|
17
|
+
引用登记表(记录 session/path/origin,为 KI-001 的 clean 保护预留挂点)。
|
|
18
|
+
- P2:拖拽文案键从 `archive.*` 改为 `drag.*`(Files 也复用);文档与控制器测试
|
|
19
|
+
改名为 `sidebar-drag`;debug hold 保留为显式调试通路(默认 0),不随发布移除。
|
|
20
|
+
拖拽图由各 source 显式传入图标元素,避免取到行内任意 `svg`;archive 与 Files
|
|
21
|
+
行共用 `click.ts` 的一套 click 抑制。
|
|
22
|
+
- 记录 KI-002:路径引用(原生 `@`、Files/archive chip)不跟随文件移动/重命名,
|
|
23
|
+
与原生行为一致;原生附件因上传副本不受影响。暂不修复,见
|
|
24
|
+
[docs/known-issues.md](docs/known-issues.md)。
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- 压缩包成员可拖入输入框:drop 时同步插入 `@` 引用 chip(路径指向
|
|
29
|
+
`.dsh-any-preview/<包名>/<成员>`),解包在后台继续。解包未完成时挂一个
|
|
30
|
+
不上传的占位文件附件,把输入框的 `uploadsPending` 闸门拉起,发送按钮与回车
|
|
31
|
+
由宿主原生拦截;占位卡显示为「解压中 · 成员名」并隐藏宿主的“上传中”文案与
|
|
32
|
+
进度条(本版暂不显示进度),输入框上方不再显示解压通知,状态只由卡片表达。
|
|
33
|
+
完成后摘下占位,失败/取消则撤回 chip 并提示。单文件拖动,目录行不可拖。
|
|
34
|
+
- 右侧文件栏的普通文件行可拖入对话,插入 `@` 路径引用;文件已存在,因此不需要
|
|
35
|
+
解包、占位卡或发送闸门。目录行暂不拖;图片也按路径引用处理。
|
|
36
|
+
- 拖放只在对话区生效:右侧栏、浮动面板与左侧栏释放不会插入引用,拖拽经过这些
|
|
37
|
+
区域时显示 no-drop;可选观测延迟默认 0,需要看卡片时用
|
|
38
|
+
`localStorage` 的 `dsh-any-preview:drag-delay-ms` 临时打开。
|
|
39
|
+
- 拖拽跟随图像改为圆角图块:48px 文件图标 + 下方文件名,不再跟随整行的长条。
|
|
40
|
+
- `test/archive-drag-path.test.mjs`:抽取路径、mention 引号规则、chip 字段。
|
|
41
|
+
- `test/sidebar-drag.test.mjs`:jsdom 下的快路径、占位闸门、失败撤回、取消撤回、多窗格目标会话。
|
|
42
|
+
- `test/archive-tree.test.mjs`:树构建、排序、隐式目录、重复名、单链默认展开。
|
|
43
|
+
- `test/file-types.test.mjs`:图标分类与宿主一致(精确名、扩展名、未知回退)。
|
|
44
|
+
|
|
45
|
+
### Known issues
|
|
46
|
+
|
|
47
|
+
- 拖动引用的文件住在 `.dsh-any-preview` 解压缓存里;点击「清理解压」会让草稿或历史
|
|
48
|
+
消息里的 chip 悬空,当前不做自动修复。复现、原因与候选方案(清理保护 / 独立引用
|
|
49
|
+
目录 / 草稿自愈)记录在 `docs/known-issues.md` 的 KI-001;生命周期策略推迟决定。
|
|
50
|
+
|
|
3
51
|
## 0.1.0-beta.1 — 2026-11-08
|
|
4
52
|
|
|
5
53
|
第一个 beta 版本,汇总 test.1–test.3 的功能、修复和发布文档。
|
package/README.md
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/actcwlf/dsh-any-preview/dev/assets/lockup-dark.png">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/actcwlf/dsh-any-preview/dev/assets/lockup-light.png" width="320" alt="dsh-any-preview">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
|
-
A file preview plugin for the DSH (DeepSeek Harness) sidebar. Open common file types and large text files without leaving
|
|
8
|
+
A file preview plugin for the DSH (DeepSeek Harness) sidebar. Open common file types and large text files without leaving your creative flow.
|
|
9
|
+
|
|
10
|
+
Current beta version: `0.1.0-beta.2`
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/dsh-any-preview)
|
|
13
|
+
[](https://github.com/actcwlf/dsh-any-preview/blob/master/LICENSE)
|
|
14
|
+
[](https://github.com/actcwlf/dsh-any-preview/blob/master/package.json)
|
|
4
15
|
|
|
5
16
|
For screenshots and the full README, see the [GitHub repository](https://github.com/actcwlf/dsh-any-preview).
|
|
6
17
|
|
|
7
|
-
## Install
|
|
18
|
+
## Install / uninstall
|
|
8
19
|
|
|
9
|
-
|
|
10
|
-
dsh plugin --profile desktop add dsh-any-preview
|
|
11
|
-
```
|
|
20
|
+
Install from the DSH GUI.
|
|
12
21
|
|
|
13
|
-
Install
|
|
22
|
+

|
|
14
23
|
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
Enter:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
dsh-any-preview@beta
|
|
17
28
|
```
|
|
18
29
|
|
|
19
|
-
|
|
30
|
+

|
|
20
31
|
|
|
21
|
-
|
|
32
|
+
Or install into the DSH Web profile from the command line:
|
|
22
33
|
|
|
23
34
|
```sh
|
|
24
|
-
dsh plugin --profile
|
|
35
|
+
dsh plugin --profile web add dsh-any-preview@beta
|
|
25
36
|
```
|
|
26
37
|
|
|
38
|
+
To uninstall, open the plugin from the same screen and use the uninstall button on its page. Restart DSH after installing or removing the plugin.
|
|
39
|
+
|
|
27
40
|
## What it does
|
|
28
41
|
|
|
29
42
|
- Preview video, audio, archives, ebooks, notebooks, email, fonts, and 3D models in the sidebar.
|
package/README.npm.md
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/actcwlf/dsh-any-preview/dev/assets/lockup-dark.png">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/actcwlf/dsh-any-preview/dev/assets/lockup-light.png" width="320" alt="dsh-any-preview">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
|
-
A file preview plugin for the DSH (DeepSeek Harness) sidebar. Open common file types and large text files without leaving
|
|
8
|
+
A file preview plugin for the DSH (DeepSeek Harness) sidebar. Open common file types and large text files without leaving your creative flow.
|
|
9
|
+
|
|
10
|
+
Current beta version: `0.1.0-beta.2`
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/dsh-any-preview)
|
|
13
|
+
[](https://github.com/actcwlf/dsh-any-preview/blob/master/LICENSE)
|
|
14
|
+
[](https://github.com/actcwlf/dsh-any-preview/blob/master/package.json)
|
|
4
15
|
|
|
5
16
|
For screenshots and the full README, see the [GitHub repository](https://github.com/actcwlf/dsh-any-preview).
|
|
6
17
|
|
|
7
|
-
## Install
|
|
18
|
+
## Install / uninstall
|
|
8
19
|
|
|
9
|
-
|
|
10
|
-
dsh plugin --profile desktop add dsh-any-preview
|
|
11
|
-
```
|
|
20
|
+
Install from the DSH GUI.
|
|
12
21
|
|
|
13
|
-
Install
|
|
22
|
+

|
|
14
23
|
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
Enter:
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
dsh-any-preview@beta
|
|
17
28
|
```
|
|
18
29
|
|
|
19
|
-
|
|
30
|
+

|
|
20
31
|
|
|
21
|
-
|
|
32
|
+
Or install into the DSH Web profile from the command line:
|
|
22
33
|
|
|
23
34
|
```sh
|
|
24
|
-
dsh plugin --profile
|
|
35
|
+
dsh plugin --profile web add dsh-any-preview@beta
|
|
25
36
|
```
|
|
26
37
|
|
|
38
|
+
To uninstall, open the plugin from the same screen and use the uninstall button on its page. Restart DSH after installing or removing the plugin.
|
|
39
|
+
|
|
27
40
|
## What it does
|
|
28
41
|
|
|
29
42
|
- Preview video, audio, archives, ebooks, notebooks, email, fonts, and 3D models in the sidebar.
|
package/README.zh-CN.md
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="./assets/lockup-dark.png">
|
|
4
|
+
<img src="./assets/lockup-light.png" width="360" alt="dsh-any-preview">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
2
7
|
|
|
3
8
|
[English](README.md) | 简体中文
|
|
4
9
|
|
|
5
|
-
dsh-any-preview
|
|
10
|
+
[](https://www.npmjs.com/package/dsh-any-preview)
|
|
11
|
+
[](./LICENSE)
|
|
12
|
+
[](./package.json)
|
|
6
13
|
|
|
7
|
-
|
|
14
|
+
dsh-any-preview 为 DSH 侧栏带来更完整的文件预览体验。文本、音视频、3D 模型、压缩包等文件,都能在这里直接打开。少一次界面切换,多一分专注,让创作顺着心流继续。
|
|
15
|
+
|
|
16
|
+
当前 beta 版本:`0.1.0-beta.2`
|
|
8
17
|
|
|
9
18
|
## 主要功能
|
|
10
19
|
|
|
@@ -18,13 +27,13 @@ dsh-any-preview 为 DSH 侧栏带来更完整的文件预览体验:文本、
|
|
|
18
27
|
|
|
19
28
|

|
|
20
29
|
|
|
21
|
-
|
|
30
|
+
打开压缩包后先浏览条目,再直接点开内部文件查看。
|
|
22
31
|
|
|
23
32
|
### 大文件预览
|
|
24
33
|
|
|
25
34
|

|
|
26
35
|
|
|
27
|
-
|
|
36
|
+
快速预览大表格和大日志,搜索、定位、翻页都在侧栏完成。
|
|
28
37
|
|
|
29
38
|
### 3D模型预览
|
|
30
39
|
|
|
@@ -41,24 +50,24 @@ dsh-any-preview 为 DSH 侧栏带来更完整的文件预览体验:文本、
|
|
|
41
50
|
|
|
42
51
|
## 安装 / 卸载
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
通过GUI安装
|
|
45
54
|
|
|
46
|
-
|
|
47
|
-
dsh plugin --profile desktop add dsh-any-preview
|
|
48
|
-
```
|
|
55
|
+

|
|
49
56
|
|
|
50
|
-
|
|
57
|
+
输入 dsh-any-preview@beta
|
|
51
58
|
|
|
52
|
-
|
|
53
|
-
dsh plugin --profile desktop add dsh-any-preview@beta
|
|
54
|
-
```
|
|
59
|
+

|
|
55
60
|
|
|
56
|
-
|
|
61
|
+
也可以通过命令行安装到 Web profile:
|
|
57
62
|
|
|
58
63
|
```sh
|
|
59
|
-
dsh plugin --profile
|
|
64
|
+
dsh plugin --profile web add dsh-any-preview@beta
|
|
60
65
|
```
|
|
61
66
|
|
|
67
|
+
如需卸载插件,在同样的界面点击插件,进入页面后可以看到卸载按钮。安装或卸载后,请重新启动 DSH。
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
62
71
|
|
|
63
72
|
|
|
64
73
|
## 支持的格式
|
|
@@ -81,15 +90,6 @@ dsh plugin --profile desktop remove dsh-any-preview
|
|
|
81
90
|
| 模型权重 | `gguf` | 快速了解模型版本、架构和量化信息 |
|
|
82
91
|
| 数据库 | `sqlite` `sqlite3` `db` `db3` | 只读查看表、视图和索引结构,不修改数据 |
|
|
83
92
|
|
|
84
|
-
## 说明
|
|
85
|
-
|
|
86
|
-
- 加密压缩包、ZIP64 和 RAR 暂不支持;7z 支持常见未加密压缩包。
|
|
87
|
-
- JSONL 搜索按记录进行,不支持 `level=error` 这类字段查询。
|
|
88
|
-
- diff / patch 不支持全文扫描和分页。
|
|
89
|
-
- 无绝对路径的大文件可能被截断到文本缓冲上限。
|
|
90
|
-
- 页码跳转目前只有 API,没有页码输入框。
|
|
91
|
-
- 音视频能否播放取决于 WebView 或操作系统提供的 codec。
|
|
92
|
-
|
|
93
93
|
## 许可
|
|
94
94
|
|
|
95
95
|
本项目使用 MIT License,见 [LICENSE](./LICENSE)。
|