dsh-agent-browser
Agent 与会话 活跃维护

dsh-agent-browser

win10ogod/dsh-agent-browser

直接基于 agent-browser 最新稳定版封装,加载 Rust 浏览器核心。为 DSH 提供高效浏览器操作能力,自动化控制网页交互与数据抓取,带来更轻量、稳健的浏览体验。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
1
Open Issues
JavaScript
主要语言
Apache-2.0
开源协议
26 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:win10ogod/dsh-agent-browser
git clone https://github.com/win10ogod/dsh-agent-browser.git
git clone git@github.com:win10ogod/dsh-agent-browser.git
README.md main

dsh-agent-browser

A DSH plugin built directly from the latest tested agent-browser release. It loads agent-browser's Rust browser engine as an in-process Node addon. Browser operations do not start the agent-browser command-line program or an MCP server.

The plugin provides browser_open, browser_snapshot, browser_read, browser_click, browser_fill, browser_close, and browser_action. The last tool exposes the upstream native action format for capabilities beyond the common tools. Browser state is isolated by DSH session. The bundled dsh-agent-browser skill describes the navigation, snapshot, and interaction workflow.

Tested with DSH 0.2.1-alpha.1 and Cordis 4.0.5-alpha.1.

Releases and upgrades

The release workflow checks the newest official agent-browser release daily. It checks out that exact tag, adds the Node binding at build time, builds native addons for Windows x64, Linux x64 (glibc), macOS x64, and macOS arm64, tests them, and packages one DSH plugin tarball. A release is created only when every required build and test passes. If an upstream change breaks the binding, the previous release remains available and the workflow reports the failure.

The binding dependencies use compatible version ranges for NAPI-RS. CI resolves them once per build, retains the resulting Cargo.lock as the binding-cargo-lock artifact, and shares it across all four platforms; native compilation uses cargo build --locked.

Install the newest plugin tarball from this repository's GitHub Releases through DSH's plugin manager, then restart the affected DSH profile. The native addon version is checked against its manifest when loaded. Updating the installed plugin package is the step that moves a DSH profile to the newly packaged upstream version.

Local development

Requires Node.js 24 or newer, pnpm, Rust, and a platform linker. The following commands build from an existing agent-browser checkout without modifying it:

pnpm install --ignore-scripts
node scripts/prepare.mjs --source <agent-browser-checkout>
node scripts/build.mjs
node scripts/native-smoke.mjs
node scripts/live-smoke.mjs
pnpm check

Omit --source to build from the newest official GitHub release. prepare.mjs creates a disposable source copy under .build/; the binding lives in bridge/lib.rs. The release tarball includes platform-specific .node files and matching upstream-version manifests.

To reuse a retained binding lockfile, pass --lockfile <Cargo.lock> to prepare.mjs along with the matching upstream tag or source checkout.

The DSH bundle is declared in cordis.patch.yml. Configuration accepts headless (default true). The plugin requires DSH's tools and skills services.

The upstream project and this adapter use the Apache-2.0 license. See LICENSE.