LHKong7/dsh-browser-runtime0

dsh-browser-runtime

为 DeepSeek Harness 智能体提供的有状态、服务商无关的 Playwright 浏览器运行环境插件。

AI 分析

核心用途是为 Agent 提供真实的浏览器操作环境,支持执行网页导航、元素交互等任务。适合需要进行网页自动化测试、网络爬虫或复杂网页任务的 Agent 开发者。

包名
dsh-browser-runtime
版本
0.1.0
许可证
MIT
最近更新
2026年8月26日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LHKong7/dsh-browser-runtime

Configuration

The bundle's cordis.patch.yml selects Playwright, uses ephemeral Agent environments, blocks private networks, and registers all five tools. A user profile can replace any row by id; DSH patches replace the complete config, so restate every field for that row.

Runtime row:

- id: browser-runtime
  config:
    provider: playwright
    maxTextChars: 60000
    maxTransitionsInMemory: 500
    cleanupTimeoutMs: 10000

Playwright row:

- id: browser-playwright
  config:
    headless: true
    navigationTimeoutMs: 30000
    actionTimeoutMs: 10000
    maxElements: 100
    allowPrivateNetwork: false
    # executablePath: /absolute/path/to/chromium
    # checkpointRoot: /private/absolute/path

Tool row:

- id: tool-browser
  config:
    provider: playwright
    persistence: ephemeral # or resume
    timeoutMs: 30000

With persistence: resume, checkpoints restore inside the same process from the runtime's in-memory index. Cross-process restore additionally requires DSH's ctx.storageDomain; the Web profile already mounts it. Checkpoint metadata goes to the browser_runtime domain, while Playwright stores the sensitive storage-state payload under $DSH_HOME/browser-runtime/providers/playwright/v1/checkpoints with owner-only permissions.