@liyuera/dsh-chrome-browser 0.6.5 → 0.6.6

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/README.md CHANGED
@@ -323,6 +323,8 @@ dsh plugin --profile desktop add link:/绝对路径/deepseek-harness-plugin/chro
323
323
 
324
324
  `desktop` 是桌面应用独占的 profile(源码启动的 `pnpm dsh web` 用 `web`)。两种装法的产物都已构建好,目标机器不需要 `npm install` 或联网。
325
325
 
326
+ 插件在 dsh 插件管理页里的**图标、标题和一栏简介**来自插件包自己的 `package.json`:顶层 `icon` 是包内相对路径(DSH 0.2.x 起支持,SVG/PNG/JPEG/WebP,≤256 KiB,宿主转成 data URL 渲染),`locale/{en,zh}.json` 的 `meta.title` / `meta.description` 按界面语言显示。本包用扩展自带的 128px 图标,并提供中英文卡片文案;旧版 dsh 会忽略这些字段。
327
+
326
328
  宿主半边 import `@deepseek-ai/schemastery`、`@deepseek-ai/dsh-tools`、`@deepseek-ai/dsh-llm/message`,三者都声明在 `peerDependencies`:宿主从自己的安装目录提供,与装好的 dsh 版本一致。`dependencies` 里的包在 `link:` 安装下解析不到——运行时依赖一律写 `peerDependencies`(详见仓库根 README)。
327
329
 
328
330
  ### 2. 装配套 Chrome 扩展
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Chrome Browser Control",
4
+ "description": "Control your real Chrome tabs: list tabs, read pages, click and type, run JS, take screenshots, and call page-declared WebMCP tools through the extension bridge or CDP."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Chrome 浏览器控制",
4
+ "description": "控制你真实打开的 Chrome 标签页:列标签、读页面、点击/输入、执行 JS、截图,并调用页面声明的 WebMCP 工具。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@liyuera/dsh-chrome-browser",
3
3
  "description": "Chrome browser control for dsh: list the user's tabs, read page text or the actionable elements, navigate, click/hover/type, wait for elements, evaluate JS, capture screenshots and read console output through the extension bridge or the Chrome DevTools Protocol, plus an @ menu source listing the live tabs and a browser skill",
4
- "version": "0.6.5",
4
+ "version": "0.6.6",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
+ "icon": "./extension/icons/icon-128.png",
8
9
  "exports": {
9
10
  ".": {
10
11
  "types": "./lib/index.d.ts",
@@ -19,7 +20,8 @@
19
20
  "default": "./lib/client.js"
20
21
  },
21
22
  "./src/*": "./src/*",
22
- "./package.json": "./package.json"
23
+ "./package.json": "./package.json",
24
+ "./locale/*.json": "./locale/*.json"
23
25
  },
24
26
  "dsh": {
25
27
  "bundle": {
@@ -80,6 +82,7 @@
80
82
  "files": [
81
83
  "lib",
82
84
  "cordis.patch.yml",
83
- "extension"
85
+ "extension",
86
+ "locale/*.json"
84
87
  ]
85
88
  }