@cjylzs/dsh-browser 0.3.0 → 0.3.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/README.md CHANGED
@@ -55,18 +55,18 @@ dsh -V
55
55
  The published package is `@cjylzs/dsh-browser`:
56
56
 
57
57
  ```sh
58
- dsh plugin add --profile web @cjylzs/dsh-browser
58
+ dsh plugin --profile web add @cjylzs/dsh-browser
59
59
  ```
60
60
 
61
61
  | Your dsh | Plugin version | Install command |
62
62
  | --- | --- | --- |
63
- | ≥ 0.1.7-rc.1 | v0.3.x (latest) | `dsh plugin add --profile web @cjylzs/dsh-browser` |
64
- | ≥ 0.1.7-rc.1, from a tag | v0.2.x / v0.3.x | `dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.3.0` |
65
- | 0.1.5-rc.2 | v0.1.x | `dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.1.0` |
63
+ | ≥ 0.1.7-rc.1 | v0.3.x (latest) | `dsh plugin --profile web add @cjylzs/dsh-browser` |
64
+ | ≥ 0.1.7-rc.1, from a tag | v0.2.x / v0.3.x | `dsh plugin --profile web add github:CJYLZS/dsh-browser#v0.3.0` |
65
+ | 0.1.5-rc.2 | v0.1.x | `dsh plugin --profile web add github:CJYLZS/dsh-browser#v0.1.0` |
66
66
 
67
67
  The registry install takes the latest published version; a `github:` install needs the `#<tag>` ref that version pairs with, because a `github:` install without a ref takes the default branch HEAD, which drifts. The built `lib/` is committed with each tag, so a tag install needs no build step either.
68
68
 
69
- The profile's `package.json` records what you installed; to change versions, re-add with the new spec, and to remove the plugin use `dsh plugin remove --profile web @cjylzs/dsh-browser`. Restart the harness after installing. A Chrome or Edge installation is required; `playwright-core` is a dependency and downloads no browser of its own.
69
+ The profile's `package.json` records what you installed; to change versions, re-add with the new spec, and to remove the plugin use `dsh plugin --profile web remove @cjylzs/dsh-browser`. Restart the harness after installing. A Chrome or Edge installation is required; `playwright-core` is a dependency and downloads no browser of its own.
70
70
 
71
71
  ### Desktop
72
72
 
@@ -76,7 +76,7 @@ The Desktop app owns its own profile, and the ordinary CLI refuses to manage `--
76
76
  "<Desktop install dir>/resources/runtime/cli/bin/dsh.cmd" plugin --profile desktop add @cjylzs/dsh-browser
77
77
  ```
78
78
 
79
- Use `<Desktop install dir>/resources/runtime/cli/bin/dsh` on macOS and Linux. Restart the app afterwards, the same way the Web profile restarts after `dsh plugin add`; the same `remove` verb uninstalls it.
79
+ Use `<Desktop install dir>/resources/runtime/cli/bin/dsh` on macOS and Linux. Restart the app afterwards, the same way the Web profile restarts after `dsh plugin --profile web add`; the same `remove` verb uninstalls it.
80
80
 
81
81
  ### From the Plugins page
82
82
 
@@ -218,7 +218,7 @@ To run a local checkout instead of a tag, link it into the profile — later `pn
218
218
  cd dsh-browser
219
219
  pnpm install # self-contained workspace; store lives in .pnpm-store/
220
220
  pnpm run build # emits lib/index.js (host) and lib/client.js (browser)
221
- dsh plugin add --profile web link:/absolute/path/to/dsh-browser
221
+ dsh plugin --profile web add link:/absolute/path/to/dsh-browser
222
222
  ```
223
223
 
224
224
  Commands: `pnpm run build` (tsdown, both halves), `pnpm run typecheck`, `pnpm test`, and the measurement rigs in `scripts/` (`prove.mjs` for the CDP port, screen cast, input dispatch, and screenshot; `modes.mjs` for headless/windowed/minimized; `cdp.mjs` to read or drive a running browser over its external port, with `--port=` to pick a session's).
package/README.zh.md CHANGED
@@ -55,18 +55,18 @@ dsh -V
55
55
  发布到 npm 的包名是 `@cjylzs/dsh-browser`:
56
56
 
57
57
  ```sh
58
- dsh plugin add --profile web @cjylzs/dsh-browser
58
+ dsh plugin --profile web add @cjylzs/dsh-browser
59
59
  ```
60
60
 
61
61
  | 你的 dsh | 插件版本 | 安装命令 |
62
62
  | --- | --- | --- |
63
- | ≥ 0.1.7-rc.1 | v0.3.x(最新) | `dsh plugin add --profile web @cjylzs/dsh-browser` |
64
- | ≥ 0.1.7-rc.1,按 tag 装 | v0.2.x / v0.3.x | `dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.3.0` |
65
- | 0.1.5-rc.2 | v0.1.x | `dsh plugin add --profile web github:CJYLZS/dsh-browser#v0.1.0` |
63
+ | ≥ 0.1.7-rc.1 | v0.3.x(最新) | `dsh plugin --profile web add @cjylzs/dsh-browser` |
64
+ | ≥ 0.1.7-rc.1,按 tag 装 | v0.2.x / v0.3.x | `dsh plugin --profile web add github:CJYLZS/dsh-browser#v0.3.0` |
65
+ | 0.1.5-rc.2 | v0.1.x | `dsh plugin --profile web add github:CJYLZS/dsh-browser#v0.1.0` |
66
66
 
67
67
  从 registry 安装取的是已发布的最新版本;从 GitHub 安装要写该版本对应的 `#<tag>`,因为不带 ref 的 `github:` 安装会取默认分支的 HEAD,那个位置会漂。构建产物 `lib/` 也随每个 tag 提交,所以按 tag 装不需要构建。
68
68
 
69
- profile 的 `package.json` 会记下你装的是什么;换版本就用新 spec 重新 add,移除插件用 `dsh plugin remove --profile web @cjylzs/dsh-browser`。装完都要重启 harness。机器上需要已安装 Chrome 或 Edge;`playwright-core` 是运行依赖,它自己不会下载浏览器。
69
+ profile 的 `package.json` 会记下你装的是什么;换版本就用新 spec 重新 add,移除插件用 `dsh plugin --profile web remove @cjylzs/dsh-browser`。装完都要重启 harness。机器上需要已安装 Chrome 或 Edge;`playwright-core` 是运行依赖,它自己不会下载浏览器。
70
70
 
71
71
  ### Desktop
72
72
 
@@ -76,7 +76,7 @@ Desktop 应用自己拥有它的 profile,而普通 CLI 有意拒绝管理 `--p
76
76
  "<Desktop 安装目录>/resources/runtime/cli/bin/dsh.cmd" plugin --profile desktop add @cjylzs/dsh-browser
77
77
  ```
78
78
 
79
- macOS 与 Linux 用 `<Desktop 安装目录>/resources/runtime/cli/bin/dsh`。装完重启应用,和 Web profile 用 `dsh plugin add` 之后一样;卸载用同一个 `remove`。
79
+ macOS 与 Linux 用 `<Desktop 安装目录>/resources/runtime/cli/bin/dsh`。装完重启应用,和 Web profile 用 `dsh plugin --profile web add` 之后一样;卸载用同一个 `remove`。
80
80
 
81
81
  ### 从插件页安装
82
82
 
@@ -218,7 +218,7 @@ macOS 与 Linux 用 `<Desktop 安装目录>/resources/runtime/cli/bin/dsh`。装
218
218
  cd dsh-browser
219
219
  pnpm install # 自包含 workspace;store 在 .pnpm-store/
220
220
  pnpm run build # 产出 lib/index.js(host)与 lib/client.js(浏览器端)
221
- dsh plugin add --profile web link:/absolute/path/to/dsh-browser
221
+ dsh plugin --profile web add link:/absolute/path/to/dsh-browser
222
222
  ```
223
223
 
224
224
  命令:`pnpm run build`(tsdown,两半都产出)、`pnpm run typecheck`、`pnpm test`,以及 `scripts/` 下的实测脚本(`prove.mjs` 验证 CDP 端口、screencast、输入派发与截图;`modes.mjs` 对照无头/带窗口/最小化;`cdp.mjs` 通过对外端口读写一台运行中的浏览器,用 `--port=` 指定某个会话的)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cjylzs/dsh-browser",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A real Chrome or Edge for the agent to work in, mirrored in the sidebar so you can watch and take over. One browser per conversation, with its own sign-ins.",
5
5
  "license": "MIT",
6
6
  "keywords": [