dsh-chrome-use 0.17.1 → 0.17.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # 更新日志
2
2
 
3
+ ## [0.17.2] - 2026-11-27
4
+
5
+ ### 修复
6
+
7
+ - 能力清单从 6 条扩充到 16 条,覆盖配对与连接、标签页操作、正文与结构化抽取、表单与上传、等待与断言、响应式与弱网、截图与 PDF、下载确认、控制台与网络调试、清理关闭、空闲标签页、多 Harness 留言、保持唤醒和失败自愈。原来的 6 条会让人误以为插件只有这些能力。
8
+ - 清单的说明文字从「本插件承诺的全部能力」改为「能力总览」,不再夸大范围。
9
+ - 文档检查原先在整篇 skill 正文里找关键词,渲染出来的清单行会自己满足自己,比如「空闲标签页自动关闭」这一条的关键词就藏在标题里,删掉正文解释测试仍然通过。现在只检查清单之后的正文,并且要求关键词不能是标题的一部分。
10
+
3
11
  ## [0.17.1] - 2026-11-26
4
12
 
5
13
  ### 变更
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "name": "dsh-chrome-use",
4
4
  "description": "Let DeepSeek Harness control Chrome tabs, with several agent sessions working in parallel.",
5
- "version": "0.17.1",
5
+ "version": "0.17.2",
6
6
  "minimum_chrome_version": "120",
7
7
  "permissions": [
8
8
  "debugger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-chrome-use",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "Control Google Chrome tabs from DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/client.js CHANGED
@@ -179,7 +179,7 @@ async function checkRelease(current, fetcher = fetch) {
179
179
  } finally { clearTimeout(timer); }
180
180
  }
181
181
 
182
- const packageVersion = "0.17.1";
182
+ const packageVersion = "0.17.2";
183
183
  // Wrapped by scripts/build-client.mjs for the Harness browser module loader.
184
184
  const React = require('react');
185
185
  const { createElement: h, useState, useEffect, useRef } = React;
package/src/skill.js CHANGED
@@ -2,16 +2,27 @@
2
2
  // session the usage guide; no separate skill file is installed or maintained.
3
3
 
4
4
  // Agent-visible capability list. Every entry is rendered into the guide, and the
5
- // second element must also appear somewhere in the guide body, so a feature that
5
+ // anchor must also appear in the guide body *after* the list, so a feature that
6
6
  // only lands in the extension or in CHANGELOG.md fails `npm test` until an agent
7
- // can actually discover it in the skill.
7
+ // can actually discover it in the skill. Anchors must not be substrings of their
8
+ // own label, otherwise the rendered line would satisfy its own check.
8
9
  export const CAPABILITIES = [
9
- ['标签页读取与操作', 'chrome_snapshot'],
10
- ['@ 选中的标签页引用', 'Chrome 标签页 #'],
10
+ ['配对与连接检查', 'chrome_pair'],
11
+ ['标签页读取与操作', '先 chrome_snapshot 获取元素 ref'],
12
+ ['@ 选中的标签页引用', '在输入框 @ 选中的标签页'],
11
13
  ['右键复制标签页引用', '复制 DSH Chrome Use 引用'],
12
- ['多 Harness 留言', 'chrome_send_message'],
13
- ['空闲标签页自动关闭', '空闲标签页'],
14
- ['失败后的结构化自愈指引', 'Failure:'],
14
+ ['正文与结构化抽取', 'chrome_scrape'],
15
+ ['表单填写与文件上传', 'chrome_upload'],
16
+ ['等待、断言与网络响应', 'chrome_wait_response'],
17
+ ['响应式、深色模式与弱网', 'chrome_emulate'],
18
+ ['截图与 PDF 导出', 'chrome_pdf'],
19
+ ['下载确认', 'chrome_downloads'],
20
+ ['控制台与网络调试', 'chrome_doctor'],
21
+ ['标签页清理与关闭', 'chrome_cleanup'],
22
+ ['空闲标签页自动关闭', '超过设置的空闲时间'],
23
+ ['多 Harness 留言', 'chrome_send_message 发送'],
24
+ ['保持 Mac 唤醒', 'chrome_keep_awake'],
25
+ ['失败后的结构化自愈指引', 'Failure: {...}'],
15
26
  ];
16
27
 
17
28
  export const chromeUseSkill = {
@@ -27,7 +38,7 @@ export const chromeUseSkill = {
27
38
 
28
39
  ## 能力清单
29
40
 
30
- 这张表是本插件对 agent 承诺的全部能力,每项在正文里都有细节;新增或改动能力时,必须同时更新这张表和正文。
41
+ 这张表是能力总览,每项在正文里都有细节;新增或改动能力时,同时更新这张表和正文。
31
42
 
32
43
  ${CAPABILITIES.map(([label]) => `- ${label}`).join('\n')}
33
44