dsh-annotate-upper 0.0.0-stage → 0.1.15-fork.1
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 +21 -0
- package/README.md +90 -2
- package/cordis.patch.yml +4 -0
- package/lib/client.js +1757 -0
- package/lib/index.js +1277 -0
- package/lib/overlay.js +1601 -0
- package/lib/shim.js +232 -0
- package/lib/types/client/index.d.ts +2 -0
- package/lib/types/index.d.ts +3 -0
- package/package.json +75 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 qinjing
|
|
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,91 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-annotate-upper
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**English | [中文](#中文)**
|
|
4
|
+
|
|
5
|
+
Element annotation and review panel for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Desktop and web client. Open a local app you are already running, click the elements you want changed, write a note on each, and send the whole review to the conversation as one structured block.
|
|
6
|
+
|
|
7
|
+
> This package (`dsh-annotate-upper`) is a fork of [alaliqing/dsh-annotate](https://github.com/alaliqing/dsh-annotate), maintained at [HelloQingTao/dsh-annotate-fork](https://github.com/HelloQingTao/dsh-annotate-fork).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
With the Desktop or web CLI and Node.js 20+ available:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
dsh plugin --profile desktop add dsh-annotate-upper@0.1.15-fork.1
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Replace `desktop` with your profile name if needed. After the current task finishes, restart that profile and refresh the browser, then open **Annotations** from the right sidebar (or press `⌘/Ctrl⇧B`).
|
|
18
|
+
|
|
19
|
+
## What you get
|
|
20
|
+
|
|
21
|
+
- A sidebar tab (**Annotations**, `⌘/Ctrl⇧B`) listing the local development servers that are actually running, with page titles, refreshed every five seconds.
|
|
22
|
+
- Each app opens on its own isolated loopback preview origin, at its original paths, so root-absolute assets, SPA routes and WebSocket upgrades just work.
|
|
23
|
+
- Click an element to write a note. Markers follow the element through window and nested scrolling, resizing and layout shifts, and hide when the element is clipped or gone.
|
|
24
|
+
- Mark mode keeps native vertical and horizontal scrolling.
|
|
25
|
+
- **Send annotations** sends the review alone; **Add to composer** merges it into your draft. A rejected send keeps the annotations, and your draft and attachments are never sent by accident.
|
|
26
|
+
- Compact feedback: original URL, full notes and element locators.
|
|
27
|
+
- English and Chinese, switchable in the toolbar.
|
|
28
|
+
|
|
29
|
+
## Compatibility
|
|
30
|
+
|
|
31
|
+
Chromium is the validated browser. A restartable, local DeepSeek Harness Desktop or web client is required. Local development only: proxy targets are restricted to loopback.
|
|
32
|
+
|
|
33
|
+
## Package contents
|
|
34
|
+
|
|
35
|
+
| File | Role |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `lib/index.js` | Host half: discovery, the loopback preview proxy, the host API |
|
|
38
|
+
| `lib/client.js` | Client half: the sidebar tab |
|
|
39
|
+
| `lib/shim.js` | Injected into previewed documents: URL and socket mapping, navigation reports |
|
|
40
|
+
| `lib/overlay.js` | Injected into previewed documents: picking, markers, comment cards |
|
|
41
|
+
| `cordis.patch.yml` | Bundle layer that activates the plugin automatically |
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 中文
|
|
50
|
+
|
|
51
|
+
用于 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 桌面端与 Web 客户端的「页面批注」面板。打开一个你正在运行的本地应用,点选想改的元素,逐个写批注,然后把整份批注作为一条结构化信息发回会话。
|
|
52
|
+
|
|
53
|
+
> 本包(`dsh-annotate-upper`)是 [alaliqing/dsh-annotate](https://github.com/alaliqing/dsh-annotate) 的 fork,维护在 [HelloQingTao/dsh-annotate-fork](https://github.com/HelloQingTao/dsh-annotate-fork)。
|
|
54
|
+
|
|
55
|
+
### 安装
|
|
56
|
+
|
|
57
|
+
需要桌面端或 Web 的 CLI 以及 Node.js 20+:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
dsh plugin --profile desktop add dsh-annotate-upper@0.1.15-fork.1
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
如果你用的 profile 不叫 `desktop`,把命令里的 `desktop` 换成你的 profile 名。当前任务结束后重启该 profile 并刷新浏览器,然后在右侧栏打开 **Annotations**(或按 `⌘/Ctrl⇧B`)。
|
|
64
|
+
|
|
65
|
+
### 功能
|
|
66
|
+
|
|
67
|
+
- 右侧栏新增 **Annotations** 标签页(`⌘/Ctrl⇧B`),每 5 秒刷新一次,列出本机真正在跑的本地开发服务及其页面标题。
|
|
68
|
+
- 每个应用在独立的回环预览源上打开,沿用原始路径,根路径绝对资源、SPA 路由和 WebSocket 升级都能正常工作。
|
|
69
|
+
- 点击元素即可写批注;标记会跟随元素滚动、缩放和布局变化,元素被裁掉或消失时自动隐藏。
|
|
70
|
+
- 标注模式下保留原生竖向与横向滚动。
|
|
71
|
+
- 「Send annotations」只发送批注;「Add to composer」把它合并进你的草稿。发送失败会保留批注,草稿和附件不会被误发。
|
|
72
|
+
- 反馈紧凑:原始 URL、完整批注和元素定位符。
|
|
73
|
+
- 支持中英文,可在工具栏切换。
|
|
74
|
+
|
|
75
|
+
### 兼容性
|
|
76
|
+
|
|
77
|
+
已验证浏览器为 Chromium;需要可重启的本地 DeepSeek Harness 桌面端或 Web 客户端。仅限本地开发:代理目标限制在回环地址。
|
|
78
|
+
|
|
79
|
+
### 文件构成
|
|
80
|
+
|
|
81
|
+
| 文件 | 作用 |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| `lib/index.js` | 宿主半:服务发现、回环预览代理、宿主 API |
|
|
84
|
+
| `lib/client.js` | 客户端半:侧栏标签页 |
|
|
85
|
+
| `lib/shim.js` | 注入被预览的文档:URL 与 socket 映射、导航上报 |
|
|
86
|
+
| `lib/overlay.js` | 注入被预览的文档:选取、标记、批注卡片 |
|
|
87
|
+
| `cordis.patch.yml` | 自动激活插件的 bundle 层 |
|
|
88
|
+
|
|
89
|
+
### 许可证
|
|
90
|
+
|
|
91
|
+
MIT。
|
package/cordis.patch.yml
ADDED