dsh-image-viewer 0.1.0-beta.10
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 +40 -0
- package/LICENSE +21 -0
- package/README.en.md +72 -0
- package/README.md +71 -0
- package/README.zh-CN.md +5 -0
- package/SECURITY.md +3 -0
- package/THIRD_PARTY_NOTICES.md +3 -0
- package/compatibility.json +12 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +846 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +5 -0
- package/package.json +109 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Agent installation guide
|
|
2
|
+
|
|
3
|
+
Use this guide only when the user asks to install, update, verify, or remove `dsh-image-viewer` in a selected DeepSeek Harness Web profile.
|
|
4
|
+
|
|
5
|
+
## Safety
|
|
6
|
+
|
|
7
|
+
- Confirm the target DSH installation and profile.
|
|
8
|
+
- Install the exact requested version; do not install a moving branch.
|
|
9
|
+
- Preserve conversations, attachments, unrelated plugins, settings, and credentials.
|
|
10
|
+
- Do not start, stop, or restart DSH without permission.
|
|
11
|
+
- Never copy, upload, or expose the user's images as part of installation verification.
|
|
12
|
+
|
|
13
|
+
## Install or update
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.10
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
DSH-Portable exposes the same standard `dsh plugin` command. Do not use a private executable path in public instructions.
|
|
20
|
+
|
|
21
|
+
## Verify
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
dsh plugin --profile web list dsh-image-viewer --depth 0
|
|
25
|
+
dsh --profile web --dump-config
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Confirm the package and `wsl043-native-image-viewer` bundle each appear exactly once. With permission to restart DSH, use a non-sensitive local test image to verify message and composer entry points, pointer-centered wheel zoom, drag pan, download, Escape, focus restoration, and the collapsed region-note sidebar.
|
|
29
|
+
|
|
30
|
+
## Uninstall
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
dsh plugin --profile web remove dsh-image-viewer
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Verify the package and bundle row are absent. Uninstall must preserve images, sessions, credentials, settings, and unrelated plugins.
|
|
37
|
+
|
|
38
|
+
## Failure handling
|
|
39
|
+
|
|
40
|
+
Separate package installation, DSH composition, unsupported image markup, browser capability, and file-download failures. Unsupported image markup must retain DSH's built-in behavior. Do not patch installed DSH files, disable browser security, or upload a user's image to reproduce a viewer issue.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 WSL043
|
|
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.en.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
> [!NOTE]
|
|
2
|
+
> This is an optional, independently removable DSH plugin. It enhances viewing, downloading, and region notes for images DSH already displays without taking over conversations, attachments, or model workflows. Image-producing plugins may also use it as a shared viewer when available.
|
|
3
|
+
|
|
4
|
+
<div align="center">
|
|
5
|
+
|
|
6
|
+
# DSH Image Viewer
|
|
7
|
+
|
|
8
|
+
A compact, provider-neutral image viewer for DeepSeek Harness. It upgrades images already shown by DSH without replacing the conversation, attachment, or model workflows.
|
|
9
|
+
|
|
10
|
+
[](https://github.com/WSL043/dsh-image-viewer/actions/workflows/ci.yml)
|
|
11
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
12
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
13
|
+
[](#install)
|
|
14
|
+
[](LICENSE)
|
|
15
|
+
[](https://github.com/WSL043/dsh-image-viewer/stargazers)
|
|
16
|
+
|
|
17
|
+
[Install](#install) · [Privacy](#privacy) · [简体中文](README.md)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
> Beta: the viewer targets the latest public DSH release. Unsupported image markup is left untouched instead of being guessed.
|
|
22
|
+
|
|
23
|
+
Release checks exercise real attachments on stable and current Alpha DSH: gallery navigation, zoom, pan, download, region notes, and focus restoration. A six-hour upstream check retains browser and startup evidence on failure; it does not automatically claim compatibility or publish a release.
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<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">
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- Wheel zoom centered on the pointer, drag-to-pan, touch pinch, and double-click 100% view.
|
|
32
|
+
- Fit and original-size controls, original-file download, keyboard navigation, and multi-image galleries.
|
|
33
|
+
- One-shot region marking with each note edited beside its numbered image marker. Enter saves and collapses the note;
|
|
34
|
+
Shift+Enter adds a new line.
|
|
35
|
+
- Light and dark themes through DSH design tokens, responsive layout, focus containment, and reduced-motion support.
|
|
36
|
+
- Optional `nativeImageViewer` client service so image-producing plugins can add their own continuation action.
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
Install the Beta:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.10
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Restart DSH manually after saving active work. The plugin never needs access to provider credentials or image-generation accounts.
|
|
49
|
+
|
|
50
|
+
## Update
|
|
51
|
+
|
|
52
|
+
Run the same version-pinned `dsh plugin ... add` command for the version you want to install.
|
|
53
|
+
|
|
54
|
+
## Uninstall
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
dsh plugin --profile web remove dsh-image-viewer
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Uninstalling restores DSH's built-in image lightbox. It does not remove conversations, attachments, generated images, provider plugins, or credentials.
|
|
61
|
+
|
|
62
|
+
## Privacy
|
|
63
|
+
|
|
64
|
+
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.
|
|
65
|
+
|
|
66
|
+
## Support
|
|
67
|
+
|
|
68
|
+
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).
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
[简体中文](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
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
> [!NOTE]
|
|
2
|
+
> 这是一个可选、可独立卸载的 DSH 插件。它增强 DSH 已显示图片的查看、下载与区域标注,不接管会话、附件或模型流程;图片生成插件也可以按需把它作为共享查看器使用。
|
|
3
|
+
|
|
4
|
+
<div align="center">
|
|
5
|
+
|
|
6
|
+
# DSH 图片查看器
|
|
7
|
+
|
|
8
|
+
面向 DeepSeek Harness 的简洁、与模型和供应商无关的图片查看器。它只增强 DSH 已经显示的图片,不替换会话、附件或模型流程。
|
|
9
|
+
|
|
10
|
+
[](https://github.com/WSL043/dsh-image-viewer/actions/workflows/ci.yml)
|
|
11
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
12
|
+
[](https://www.npmjs.com/package/dsh-image-viewer)
|
|
13
|
+
[](#安装)
|
|
14
|
+
[](LICENSE)
|
|
15
|
+
[](https://github.com/WSL043/dsh-image-viewer/stargazers)
|
|
16
|
+
|
|
17
|
+
[安装](#安装) · [隐私](#隐私) · [English](README.en.md)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
> Beta:当前适配最新公开版 DSH。遇到无法识别的新图片结构时会保留 DSH 原生行为,不会猜测接管。
|
|
22
|
+
|
|
23
|
+
稳定版与当前 Alpha 都在隔离环境验收真实附件的多图切换、缩放、拖动、下载、区域备注及关闭后焦点恢复。发布前必须通过;定时工作流每六小时检查官方新版本,失败保留浏览器和启动记录,不自动宣称兼容或发布。
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<img src="https://raw.githubusercontent.com/WSL043/dsh-image-viewer/main/docs/assets/image-viewer-zh.png" width="900" alt="DSH 图片查看器展示插画、适应窗口、原始大小、下载和图片编号附近的区域备注">
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
## 功能
|
|
30
|
+
|
|
31
|
+
- 以鼠标位置为中心的滚轮缩放、拖动查看、触控双指缩放和双击原始大小。
|
|
32
|
+
- 适应窗口、原始大小、原图下载、键盘切换和多图浏览。
|
|
33
|
+
- 一次点击标记一个区域,备注直接显示在图片编号附近并自动获得输入焦点;Enter 保存并收起,Shift+Enter 换行。
|
|
34
|
+
- 使用 DSH 设计令牌适配亮色、暗色、响应式布局、焦点约束和减少动态效果设置。
|
|
35
|
+
- 提供可选的 `nativeImageViewer` 客户端服务,图片生成插件可以按需增加自己的后续操作。
|
|
36
|
+
|
|
37
|
+
未安装本插件或插件无法识别更新后的图片界面时,DSH 仍保持原有查看能力。其他插件可以在检测到服务时使用高级查看,但仍应保留自己的基础回退。
|
|
38
|
+
|
|
39
|
+
## 安装
|
|
40
|
+
|
|
41
|
+
安装 Beta:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
dsh plugin --profile web add dsh-image-viewer@0.1.0-beta.10
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
保存正在进行的工作后手动重启 DSH。本插件不需要供应商凭据或图片生成账户权限。
|
|
48
|
+
|
|
49
|
+
## 更新
|
|
50
|
+
|
|
51
|
+
使用目标版本对应的固定 `dsh plugin ... add` 命令更新。
|
|
52
|
+
|
|
53
|
+
## 卸载
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
dsh plugin --profile web remove dsh-image-viewer
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
卸载后恢复 DSH 内置图片灯箱,不会删除会话、附件、生成图片、供应商插件或凭据。
|
|
60
|
+
|
|
61
|
+
## 隐私
|
|
62
|
+
|
|
63
|
+
图片数据保留在当前浏览器配置中。插件只读取 DSH 已经渲染的图片 URL,不上传图片、不调用模型,也不读取供应商凭据。当前 DSH 页面会话内重新打开同一张图片时,区域备注仍会保留;除非其他插件响应用户的明确操作,否则不会写入会话存储。
|
|
64
|
+
|
|
65
|
+
## 反馈
|
|
66
|
+
|
|
67
|
+
请通过[问题反馈表单](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
|
+
|
|
69
|
+
## 许可证
|
|
70
|
+
|
|
71
|
+
[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
ADDED
package/SECURITY.md
ADDED
package/cordis.patch.yml
ADDED