dsh-image-viewer 0.1.0-beta.4 → 0.1.0-beta.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.
- package/AGENTS.md +1 -1
- package/README.en.md +67 -0
- package/README.md +28 -33
- package/README.zh-CN.md +2 -67
- package/compatibility.json +2 -1
- package/package.json +6 -6
package/AGENTS.md
CHANGED
|
@@ -13,7 +13,7 @@ Use this guide only when the user asks to install, update, verify, or remove `ds
|
|
|
13
13
|
## Install or update
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.
|
|
16
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.5
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
DSH-Portable exposes the same standard `dsh plugin` command. Do not use a private executable path in public instructions.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# DSH Image Viewer
|
|
4
|
+
|
|
5
|
+
A compact, provider-neutral image viewer for DeepSeek Harness. It upgrades images already shown by DSH without replacing the conversation, attachment, or model workflows.
|
|
6
|
+
|
|
7
|
+
[](https://github.com/WSL043/dsh-image-viewer/actions/workflows/ci.yml)
|
|
8
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
9
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
10
|
+
[](#install)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
[](https://github.com/WSL043/dsh-image-viewer/stargazers)
|
|
13
|
+
|
|
14
|
+
[Install](#install) · [Privacy](#privacy) · [简体中文](README.md)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
> Beta: the viewer targets the latest public DSH release. Unsupported image markup is left untouched instead of being guessed.
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-en.png" width="900" alt="DSH Image Viewer displaying an illustration with fit, original-size, download, and an inline numbered region note">
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
## Features
|
|
25
|
+
|
|
26
|
+
- Wheel zoom centered on the pointer, drag-to-pan, touch pinch, and double-click 100% view.
|
|
27
|
+
- Fit and original-size controls, original-file download, keyboard navigation, and multi-image galleries.
|
|
28
|
+
- One-shot region marking with each note edited beside its numbered image marker. Enter saves and collapses the note;
|
|
29
|
+
Shift+Enter adds a new line.
|
|
30
|
+
- Light and dark themes through DSH design tokens, responsive layout, focus containment, and reduced-motion support.
|
|
31
|
+
- Optional `nativeImageViewer` client service so image-producing plugins can add their own continuation action.
|
|
32
|
+
|
|
33
|
+
DSH keeps working when the plugin is absent or cannot recognize a newer image surface. Other plugins may use the service when present, but must retain their own basic fallback.
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
Install the Beta:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.7
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Restart DSH manually after saving active work. The plugin never needs access to provider credentials or image-generation accounts.
|
|
44
|
+
|
|
45
|
+
## Update
|
|
46
|
+
|
|
47
|
+
Run the same version-pinned `dsh plugin ... add` command for the version you want to install.
|
|
48
|
+
|
|
49
|
+
## Uninstall
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
dsh plugin --profile web remove dsh-image-viewer
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Uninstalling restores DSH's built-in image lightbox. It does not remove conversations, attachments, generated images, provider plugins, or credentials.
|
|
56
|
+
|
|
57
|
+
## Privacy
|
|
58
|
+
|
|
59
|
+
Image bytes stay in the current browser profile. The plugin reads only URLs already rendered by DSH, does not upload images, does not call a model, and does not read provider credentials. Region notes remain available when the same image is reopened during the current DSH page session, but are not written to conversation storage unless another plugin explicitly uses them for a user-requested action.
|
|
60
|
+
|
|
61
|
+
## Support
|
|
62
|
+
|
|
63
|
+
Open the [bug report form](https://github.com/WSL043/dsh-image-viewer/issues/new?template=bug-report.yml) with the exact plugin version, DSH version, operating system, image location (message or composer), and the action that failed. Do not include private images, credentials, or full session logs. Report sensitive security problems privately through [GitHub Security Advisories](https://github.com/WSL043/dsh-image-viewer/security/advisories/new).
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
[简体中文](README.md) · [Report a bug](https://github.com/WSL043/dsh-image-viewer/issues/new?template=bug-report.yml) · [Request a feature](https://github.com/WSL043/dsh-image-viewer/issues/new?template=feature-request.yml) · [MIT](LICENSE)
|
package/README.md
CHANGED
|
@@ -1,71 +1,66 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
# DSH
|
|
3
|
+
# DSH 图片查看器
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
面向 DeepSeek Harness 的简洁、与模型和供应商无关的图片查看器。它只增强 DSH 已经显示的图片,不替换会话、附件或模型流程。
|
|
6
6
|
|
|
7
7
|
[](https://github.com/WSL043/dsh-image-viewer/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
9
|
-
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
10
|
+
[](#安装)
|
|
11
11
|
[](LICENSE)
|
|
12
12
|
[](https://github.com/WSL043/dsh-image-viewer/stargazers)
|
|
13
13
|
|
|
14
|
-
[
|
|
14
|
+
[安装](#安装) · [隐私](#隐私) · [English](README.en.md)
|
|
15
15
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
> Beta
|
|
18
|
+
> Beta:当前适配最新公开版 DSH。遇到无法识别的新图片结构时会保留 DSH 原生行为,不会猜测接管。
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-
|
|
21
|
+
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-zh.png" width="900" alt="DSH 图片查看器展示插画、适应窗口、原始大小、下载和图片编号附近的区域备注">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-note.png" width="900" alt="A numbered region note edited directly beside its image marker">
|
|
26
|
-
</p>
|
|
27
|
-
|
|
28
|
-
## Features
|
|
24
|
+
## 功能
|
|
29
25
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
- Optional `nativeImageViewer` client service so image-producing plugins can add their own continuation action.
|
|
26
|
+
- 以鼠标位置为中心的滚轮缩放、拖动查看、触控双指缩放和双击原始大小。
|
|
27
|
+
- 适应窗口、原始大小、原图下载、键盘切换和多图浏览。
|
|
28
|
+
- 一次点击标记一个区域,备注直接显示在图片编号附近并自动获得输入焦点;Enter 保存并收起,Shift+Enter 换行。
|
|
29
|
+
- 使用 DSH 设计令牌适配亮色、暗色、响应式布局、焦点约束和减少动态效果设置。
|
|
30
|
+
- 提供可选的 `nativeImageViewer` 客户端服务,图片生成插件可以按需增加自己的后续操作。
|
|
36
31
|
|
|
37
|
-
DSH
|
|
32
|
+
未安装本插件或插件无法识别更新后的图片界面时,DSH 仍保持原有查看能力。其他插件可以在检测到服务时使用高级查看,但仍应保留自己的基础回退。
|
|
38
33
|
|
|
39
|
-
##
|
|
34
|
+
## 安装
|
|
40
35
|
|
|
41
|
-
|
|
36
|
+
安装 Beta:
|
|
42
37
|
|
|
43
38
|
```sh
|
|
44
|
-
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.
|
|
39
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.7
|
|
45
40
|
```
|
|
46
41
|
|
|
47
|
-
|
|
42
|
+
保存正在进行的工作后手动重启 DSH。本插件不需要供应商凭据或图片生成账户权限。
|
|
48
43
|
|
|
49
|
-
##
|
|
44
|
+
## 更新
|
|
50
45
|
|
|
51
|
-
|
|
46
|
+
使用目标版本对应的固定 `dsh plugin ... add` 命令更新。
|
|
52
47
|
|
|
53
|
-
##
|
|
48
|
+
## 卸载
|
|
54
49
|
|
|
55
50
|
```sh
|
|
56
51
|
dsh plugin --profile web remove dsh-image-viewer
|
|
57
52
|
```
|
|
58
53
|
|
|
59
|
-
|
|
54
|
+
卸载后恢复 DSH 内置图片灯箱,不会删除会话、附件、生成图片、供应商插件或凭据。
|
|
60
55
|
|
|
61
|
-
##
|
|
56
|
+
## 隐私
|
|
62
57
|
|
|
63
|
-
|
|
58
|
+
图片数据保留在当前浏览器配置中。插件只读取 DSH 已经渲染的图片 URL,不上传图片、不调用模型,也不读取供应商凭据。当前 DSH 页面会话内重新打开同一张图片时,区域备注仍会保留;除非其他插件响应用户的明确操作,否则不会写入会话存储。
|
|
64
59
|
|
|
65
|
-
##
|
|
60
|
+
## 反馈
|
|
66
61
|
|
|
67
|
-
|
|
62
|
+
请通过[问题反馈表单](https://github.com/WSL043/dsh-image-viewer/issues/new?template=bug-report.yml)提供准确的插件版本、DSH 版本、操作系统、图片所在位置(消息或输入框)以及失败的操作。不要提交私人图片、凭据或完整会话日志。敏感安全问题请通过 [GitHub Security Advisories](https://github.com/WSL043/dsh-image-viewer/security/advisories/new) 私下报告。
|
|
68
63
|
|
|
69
|
-
##
|
|
64
|
+
## 许可证
|
|
70
65
|
|
|
71
|
-
[
|
|
66
|
+
[English](README.en.md) · [反馈问题](https://github.com/WSL043/dsh-image-viewer/issues/new?template=bug-report.yml) · [功能建议](https://github.com/WSL043/dsh-image-viewer/issues/new?template=feature-request.yml) · [MIT](LICENSE)
|
package/README.zh-CN.md
CHANGED
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
1
|
# DSH 图片查看器
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[](https://github.com/WSL043/dsh-image-viewer/actions/workflows/ci.yml)
|
|
8
|
-
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
9
|
-
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
10
|
-
[](#安装)
|
|
11
|
-
[](LICENSE)
|
|
12
|
-
[](https://github.com/WSL043/dsh-image-viewer/stargazers)
|
|
13
|
-
|
|
14
|
-
[安装](#安装) · [隐私](#隐私) · [English](README.md)
|
|
15
|
-
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
> Beta:当前适配最新公开版 DSH。遇到无法识别的新图片结构时会保留 DSH 原生行为,不会猜测接管。
|
|
19
|
-
|
|
20
|
-
<p align="center">
|
|
21
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-dark.png" width="900" alt="DSH 图片查看器的适应窗口、原始大小、缩放和下载操作">
|
|
22
|
-
</p>
|
|
23
|
-
|
|
24
|
-
<p align="center">
|
|
25
|
-
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-note.png" width="900" alt="直接在图片编号附近编辑区域备注">
|
|
26
|
-
</p>
|
|
27
|
-
|
|
28
|
-
## 功能
|
|
29
|
-
|
|
30
|
-
- 以鼠标位置为中心的滚轮缩放、拖动查看、触控双指缩放和双击原始大小。
|
|
31
|
-
- 适应窗口、原始大小、原图下载、键盘切换和多图浏览。
|
|
32
|
-
- 一次点击标记一个区域,备注直接显示在图片编号附近并自动获得输入焦点;Enter 保存并收起,Shift+Enter 换行。
|
|
33
|
-
- 使用 DSH 设计令牌适配亮色、暗色、响应式布局、焦点约束和减少动态效果设置。
|
|
34
|
-
- 提供可选的 `nativeImageViewer` 客户端服务,图片生成插件可以按需增加自己的后续操作。
|
|
35
|
-
|
|
36
|
-
未安装本插件或插件无法识别更新后的图片界面时,DSH 仍保持原有查看能力。其他插件可以在检测到服务时使用高级查看,但仍应保留自己的基础回退。
|
|
37
|
-
|
|
38
|
-
## 安装
|
|
39
|
-
|
|
40
|
-
安装 Beta:
|
|
41
|
-
|
|
42
|
-
```sh
|
|
43
|
-
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.4
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
保存正在进行的工作后手动重启 DSH。本插件不需要供应商凭据或图片生成账户权限。
|
|
47
|
-
|
|
48
|
-
## 更新
|
|
49
|
-
|
|
50
|
-
使用目标版本对应的固定 `dsh plugin ... add` 命令更新。
|
|
51
|
-
|
|
52
|
-
## 卸载
|
|
53
|
-
|
|
54
|
-
```sh
|
|
55
|
-
dsh plugin --profile web remove dsh-image-viewer
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
卸载后恢复 DSH 内置图片灯箱,不会删除会话、附件、生成图片、供应商插件或凭据。
|
|
59
|
-
|
|
60
|
-
## 隐私
|
|
61
|
-
|
|
62
|
-
图片数据保留在当前浏览器配置中。插件只读取 DSH 已经渲染的图片 URL,不上传图片、不调用模型,也不读取供应商凭据。当前 DSH 页面会话内重新打开同一张图片时,区域备注仍会保留;除非其他插件响应用户的明确操作,否则不会写入会话存储。
|
|
63
|
-
|
|
64
|
-
## 反馈
|
|
65
|
-
|
|
66
|
-
请通过[问题反馈表单](https://github.com/WSL043/dsh-image-viewer/issues/new?template=bug-report.yml)提供准确的插件版本、DSH 版本、操作系统、图片所在位置(消息或输入框)以及失败的操作。不要提交私人图片、凭据或完整会话日志。敏感安全问题请通过 [GitHub Security Advisories](https://github.com/WSL043/dsh-image-viewer/security/advisories/new) 私下报告。
|
|
67
|
-
|
|
68
|
-
## 许可证
|
|
3
|
+
简体中文说明已成为仓库首页,请查看 [README.md](README.md)。
|
|
69
4
|
|
|
70
|
-
|
|
5
|
+
The Simplified Chinese README is now the repository default. See [README.md](README.md).
|
package/compatibility.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-image-viewer",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.7",
|
|
4
4
|
"description": "Zoom, pan, download, gallery, and region-note image viewer for DeepSeek Harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh-plugin",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"node": "^22.19.0 || >=24.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@deepseek-ai/cordis": "4.0.1",
|
|
65
|
-
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.1.1-rc.2",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
64
|
+
"@deepseek-ai/cordis": "4.0.1 || 4.0.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2 || 0.1.2-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.1-rc.2 || 0.1.2-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2 || 0.1.2-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2 || 0.1.2-alpha.2",
|
|
69
69
|
"react": "^18.2.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|