dsh-web-annotator 0.2.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 — 文档与截图重做
4
+
5
+ **插件行为没有变化**,界面与 0.2.0 完全相同;本版只为把 README 修对。
6
+
7
+ - **截图全部换新**。旧图停在 2026-10-04,早于输入框入口改成透明按钮,
8
+ 所以文档里展示的是用户已经拿不到的界面;其中一张还带着已退休的产品名与一条失败提示
9
+ (那是验收脚本故意中断提交留下的横幅,适合当证据、不适合当宣传图)。
10
+ 新图按当前版本重截,并逐张裁到对应段落讲的那块区域 —— 整窗截图缩进文档栏后看不清。
11
+ - **排版**:顶部加一句话定位与安装命令;“三步走”(选 → 写 → 发)逐张配图;
12
+ “它能做什么”由七条长句改为表格。
13
+ - 修掉一个由换图引入的问题:npm 把相对路径的图重写成
14
+ `raw.githubusercontent.com/<repo>/HEAD/...`,取的是**仓库 HEAD** 而不是包内副本,
15
+ 所以删掉「已发布 README 仍引用的文件名」会让线上页面出现破图。文件名已沿用,教训记进
16
+ [AGENTS.md](AGENTS.md) 的「活跃坑」。
17
+
3
18
  ## 0.2.0 — 第一个稳定版
4
19
 
5
20
  把 `0.2.0-alpha` 系列收成一个稳定版:在 Harness 原有 Browser 里点选或框选网页元素、
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # DSH Web Annotator · 网页批注与提问
2
2
 
3
- 在 Harness 原有 Browser 标签页里,点击或框选网页,然后就地添加评论、向当前 Agent 提问。
3
+ 在 DeepSeek Harness **原有的 Browser 标签页**里点选或框选网页,就地写评论、向当前 Agent 提问,
4
+ 再把标记截图或 DOM 定位资料发给当前会话。
4
5
 
5
6
  [![Package checks](https://github.com/cslkkl/dsh-web-annotator/actions/workflows/ci.yml/badge.svg)](https://github.com/cslkkl/dsh-web-annotator/actions/workflows/ci.yml)
6
7
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
@@ -9,28 +10,40 @@
9
10
 
10
11
  **简体中文** · [English](README_en.md)
11
12
 
12
- ![真实 Harness Browser 中的框选批注](docs/images/annotation-region.png)
13
+ ![在 Harness Browser 中框选页面并就地评论](docs/images/annotation-browser.png)
14
+
15
+ ```sh
16
+ # 装这一个包,然后正常退出并重开 Desktop
17
+ dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotator-<版本>.tgz
18
+ ```
19
+
20
+ 包内已有运行产物,不需要编译,也不需要放行构建脚本。完整说明见[安装](#安装)。
21
+
22
+ ## 三步走
23
+
24
+ **1 · 选** —— 点元素、点空白位置,或拖动框选矩形区域。
25
+
26
+ ![点选元素或框选区域](docs/images/annotation-element.png)
27
+
28
+ **2 · 写** —— 在选区旁写评论或提问;展开同一张卡片可看标签、颜色、字体,也能直接改。
29
+
30
+ ![展开属性卡片,调整颜色字体间距](docs/images/annotation-expanded.png)
31
+
32
+ **3 · 发** —— 勾选要发的批注,选发送方式,预览后发到当前会话;聊天里收成“N 条注释”。
33
+
34
+ ![聊天里收成“N 条注释”](docs/images/annotation-message.png)
13
35
 
14
36
  ## 它能做什么
15
37
 
16
- - **就地批注**:点选元素、点击空白位置,或拖动框选矩形区域,在选区旁写评论或提问。
17
- - **边看边改属性**:展开同一张属性卡片调整颜色、字体、间距,改动随批注交给 Agent,保存前不改写网页。
18
- - **临时操作网页**:按住空格键与网页交互,松开回到批注;输入框里的空格照常打字。
19
- - **带图或带定位资料发送**:截图会用蓝框或蓝圈标出所选位置,并叠加与附图一致的序号徽标;
20
- 没有截图时可只发坐标与 DOM 证据,也可两者一起发。
21
- - **聊天里一眼看清**:本插件发出的批注消息只显示“N 条注释”,展开后逐条给出序号、目标元素与
22
- 你的评论/提问;完整定位资料仍在同一个折叠里。
23
- - **多条管理**:保存后可编辑、逐条勾选、分批发送;失败保留,成功只移除本次发出去的。
24
- - **草稿不丢**:按会话与完整 URL 存进 IndexedDB;发送失败或保存失败都不会清空内容。
25
-
26
- **0.2.0 精确支持 Harness 0.2.0-rc.2。**
27
- 一个预构建安装包同时包含插件和 Browser、Chat、Layout 扩展,安装后正常重启 Desktop 即可使用。
28
- 扩展尚未合入官方 Harness。npm 上已有预览与稳定两个通道(`npm install dsh-web-annotator`);
29
- 社区目录的条目已提交,**等待维护者审阅**,所以不要据此认为市场已可搜索。
30
- 每个版本的安装包与验证记录由[发布链路](.github/workflows/release.yml)在标签上构建并附到 Release。
31
-
32
- ⚠️ **已验证到什么程度**:真实宿主 26 项 Browser 检查通过;但**原生 Desktop、真实模型、
33
- 兼容矩阵仍未验证** —— 逐项边界见[验证说明](docs/verification.md),不要把未验证当已验证。
38
+ | 能力 | 说明 |
39
+ | -------------------- | --------------------------------------------------------------------------------- |
40
+ | **就地批注** | 点选元素、点击空白位置或拖动框选,在选区旁写评论或提问 |
41
+ | **边看边改属性** | 展开同一张卡片调颜色、字体、间距,改动随批注交给 Agent,保存前不改写网页 |
42
+ | **临时操作网页** | 按住空格与网页交互,松开回到批注;输入框里的空格照常打字 |
43
+ | **带图或带定位资料** | 截图用蓝框或蓝圈标出所选位置,并叠加与附图一致的序号徽标;也可只发坐标与 DOM 证据 |
44
+ | **聊天里一眼看清** | 批注消息默认只显示“N 条注释”,展开后逐条给出序号、目标元素与你的评论/提问 |
45
+ | **多条管理** | 保存后可编辑、逐条勾选、分批发送;失败保留,成功只移除本次发出去的 |
46
+ | **草稿不丢** | 按会话与完整 URL 存进 IndexedDB;发送或保存失败都不会清空内容 |
34
47
 
35
48
  ## 安装
36
49
 
@@ -42,18 +55,20 @@ dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotat
42
55
  ```
43
56
 
44
57
  只装这一个包,然后正常退出并重开 Desktop。使用其他 Profile 时替换 `desktop`。
45
- 包内已有运行产物,不需要用户编译或放行构建脚本。
46
58
 
47
59
  该 bundle 在启用期间**替换官方 Browser、Chat 和 Layout 提供方**。
48
60
  请先确认 Harness 内核是 **0.2.0-rc.2**,不要在其他版本或另一套同类提供方上混装。
49
61
  卸载整个 bundle 会撤销这些替换,重启后恢复官方提供方。
50
62
 
51
63
  旧本地预览用户先移除 `dsh-layout-care` 和 `dsh-layout-care-browser-preview` 再安装新包。
52
- 已有批注会自动迁移。详见 [安装和市场发布](docs/distribution.md)。
64
+ 已有批注会自动迁移。详见[安装和市场发布](docs/distribution.md)。
53
65
 
54
66
  ## 使用方式
55
67
 
56
68
  1. 在当前会话点击“批注网页”,打开 Harness 原有的 Browser。
69
+
70
+ ![输入框里的“批注网页”入口](docs/images/annotation-entry.png)
71
+
57
72
  2. 输入网页地址,点击工具栏中“刷新”左边的“批注网页”。
58
73
  3. 点击元素或空白位置,或者拖动鼠标框选区域,在选区旁输入内容。
59
74
  4. 浮层默认只有选项图标、输入区和圆形 ✓。点左侧图标展开属性卡片,查看标签、颜色、字体等,
@@ -62,13 +77,13 @@ dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotat
62
77
  5. 需要操作网页时按住空格键,松开回到批注。
63
78
  6. 保存后可编辑文字,勾选本次要发送的批注,再选择发送方式,预览后发送到当前会话。
64
79
 
65
- ![实际展开的属性卡片](docs/images/annotation-expanded.png)
66
-
67
80
  图片通过 Harness 的正式图片附件流程发送。图片模式只发批注正文、网页 URL 和对应截图;
68
81
  详细模式保留坐标与 DOM 证据,但聊天默认只显示“N 条注释”,点击展开逐条卡片(序号、目标元素、
69
82
  评论或提问),再点“查看定位资料”展开完整请求;附件截图上的序号与卡片序号一致。
70
83
  模型能否直接识别图片取决于当前模型的图片能力。
71
84
 
85
+ ![图片模式的发送预览](docs/images/annotation-image.png)
86
+
72
87
  ## 当前支持范围
73
88
 
74
89
  | 能力 | 状态 |
@@ -83,7 +98,7 @@ dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotat
83
98
  | 其他远程页面 | 逐个页面分别验收;Web 仍受跨源与嵌入限制 |
84
99
  | iframe 内部与 closed Shadow DOM 的子元素 | 只定位外层载体,不能穿透 |
85
100
 
86
- 逐项的验证边界与手工清单见 [验证说明](docs/verification.md)。
101
+ 逐项的验证边界与手工清单见[验证说明](docs/verification.md)。
87
102
 
88
103
  ## 接入自己的 Vite 页面
89
104
 
@@ -105,9 +120,9 @@ export default defineConfig({ plugins: [webAnnotator()] });
105
120
  且 Web 版下只有带桥接的页面能被批注。所以本地项目要先变成一个 HTTP 地址:
106
121
 
107
122
  ```sh
108
- npm run build # 首次需要,产出 lib/bridge.js
109
- npm run annotate -- "C:\路径\到\你的项目" # 服务静态目录
110
- npm run annotate -- --proxy http://127.0.0.1:5173 # 套在已有 dev server 前面
123
+ npm run build # 首次需要,产出 lib/bridge.js
124
+ npm run annotate -- "C:\路径\到\你的项目" # 服务静态目录
125
+ npm run annotate -- --proxy http://127.0.0.1:5173 # 套在已有 dev server 前面
111
126
  ```
112
127
 
113
128
  然后点「批注网页」,输入打印出来的 `http://127.0.0.1:4180`。
package/README_en.md CHANGED
@@ -12,7 +12,31 @@ Click or drag inside the Browser tab Harness already has, then comment or ask th
12
12
  > The maintainer documentation is written in Chinese. This file mirrors [README.md](README.md) item by
13
13
  > item; every document it links to is Chinese-only.
14
14
 
15
- ![A rectangle annotation in the real Harness Browser](docs/images/annotation-region.png)
15
+ ![Annotating a page inside the Harness Browser](docs/images/annotation-browser.png)
16
+
17
+ ```sh
18
+ # Install this one package, then quit and reopen Desktop normally
19
+ dsh plugin --profile desktop add --ignore-scripts /absolute/path/dsh-web-annotator-<version>.tgz
20
+ ```
21
+
22
+ The package ships its build output, so there is nothing to compile and no build script to allow.
23
+ Full instructions under [Install](#install).
24
+
25
+ ## Three steps
26
+
27
+ **1 · Pick** — click an element, click empty space, or drag a rectangle.
28
+
29
+ ![Click an element or drag a rectangle](docs/images/annotation-element.png)
30
+
31
+ **2 · Write** — comment or ask next to the selection; expand the same card to read the tag, colour
32
+ and font, and change them.
33
+
34
+ ![Expand the properties card to adjust colour, font and spacing](docs/images/annotation-expanded.png)
35
+
36
+ **3 · Send** — tick the notes to send, choose how, preview, then send to the session; the chat
37
+ collapses them into one "N notes" chip.
38
+
39
+ ![The chat collapses the notes into one "N notes" chip](docs/images/annotation-message.png)
16
40
 
17
41
  ## What it does
18
42
 
@@ -49,8 +49,22 @@
49
49
  [marketplace 条目](marketplace/cslkkl__dsh-web-annotator.yml) 的 `tarball` 钉的是**具体标签**
50
50
  (`releases/download/v<版本>/…`),不是 `releases/latest/download/…`:
51
51
 
52
- - **为什么不能用 `latest`**:本仓所有 Release 都是预发布版,`/releases/latest` **解析不到任何 Release**
53
- (实测 `latest/download/<文件>` 直接 404)。上游两种写法都接受,而这里只有钉标签一种可用。
52
+ - **为什么不能用 `latest`**:`latest/download/<文件名>` 只会在**当前 Latest 那个 Release** 里
53
+ 找同名资产,而安装包的文件名里带版本号 —— 所以它只在文件名碰巧属于当前 Latest 时可用。
54
+ 发下一版时 Latest 一移动,旧文件名就 404:
55
+
56
+ ```
57
+ Latest = v0.2.0 时的资产名:
58
+ dsh-web-annotator-0.2.0.tgz ← 滚动链接能找到
59
+ dsh-web-annotator-source-0.2.0.zip
60
+ dsh-web-annotator-verification-0.2.0.json
61
+ 换成 v0.2.1 之后,上面这些名字全部 404。
62
+ ```
63
+
64
+ 也就是说滚动链接不会「一劳永逸」,只会在发下一版时**静默 404**。
65
+ (判据是 `gh api repos/<owner>/<repo>/releases/latest --jq '.assets[].name'` ——
66
+ 不依赖网络实测,只看资产清单就能判定。)
67
+
54
68
  - **代价**:钉标签意味着**每发一版都要同步改这一行**,否则市场指向的是旧包。
55
69
  上游的每日探测会在 URL 404 时把 tarball 从站点上摘掉(不会报错,只是静默回落成源码安装),
56
70
  所以这行漏改不会有红信号 —— 判据是发版后手跑一次
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  url: https://github.com/cslkkl/dsh-web-annotator
2
2
  name: cslkkl/dsh-web-annotator
3
3
  category: browser
4
- tarball: https://github.com/cslkkl/dsh-web-annotator/releases/download/v0.2.0/dsh-web-annotator-0.2.0.tgz
4
+ tarball: https://github.com/cslkkl/dsh-web-annotator/releases/download/v0.2.1/dsh-web-annotator-0.2.1.tgz
5
5
  description:
6
6
  en: 'Annotate pages inside the existing Harness Browser: click or drag to select, comment or ask, then send marked screenshots or DOM location details to the current session. While enabled it replaces the official Browser, Chat and Layout providers; targets Harness 0.2.0-rc.2.'
7
7
  zh: '在 Harness 原有 Browser 内批注网页:点选或框选后就地评论、提问,可把标记截图或 DOM 定位资料发给当前会话;启用期间替换官方 Browser、Chat 与 Layout 提供方,精确支持 Harness 0.2.0-rc.2。'
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "packageName": "dsh-web-annotator",
3
- "packageVersion": "0.2.0",
3
+ "packageVersion": "0.2.1",
4
4
  "targetHarness": "0.2.0-rc.2",
5
5
  "upstreamCommit": "639ed015397290b3745d163aafe02ffee4aa3f84",
6
6
  "patchSha256": "b8701aa99139478e2b17a78a3d75bc22d2bce9d6c6952d1f2551271d7211a63f",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-web-annotator",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Click or drag to annotate pages in the existing DeepSeek Harness Browser and ask the current agent.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/screenshots.json CHANGED
@@ -1,7 +1,9 @@
1
1
  [
2
- "docs/images/annotation-region.png",
2
+ "docs/images/annotation-browser.png",
3
+ "docs/images/annotation-element.png",
4
+ "docs/images/annotation-entry.png",
3
5
  "docs/images/annotation-expanded.png",
4
- "docs/images/annotation-expanded-dark.png",
5
6
  "docs/images/annotation-image.png",
6
- "docs/images/annotation-message.png"
7
+ "docs/images/annotation-message.png",
8
+ "docs/images/annotation-region.png"
7
9
  ]