跳到正文
dsh-market 浏览插件 GitHub EN

173787247/dsh-wsl-obscura

可选:在 WSL 中驱动 Obscura 无头浏览器(obscura_status / obscura_fetch / obscura_mcp_hint)。不同于 dsh-wsl-browser 的 win_open_url(打开 Windows 图形浏览器),也不替代 dsh-wsl-fetch 的 web_fetch。

Star 数 ★ 1 分类 WSL 与 Windows 互操作 收录于 2026-09-13

安装

在 DeepSeek Harness 里通过 dsh-market 安装

dsh plugin --profile web add dshmarket

或使用命令行

dsh plugin --profile web add github:173787247/dsh-wsl-obscura

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络。请先审阅源码,并尽量锁定 commit(github:owner/repo#sha)。

README

套件安装: 见 dsh-wsl-kit。本插件为可选(无头引擎),不在 KIT_SET=daily 默认集。故障树:TROUBLESHOOTING.zh.md。

DeepSeek Harness 工具:从 WSL 调用 Obscura(Rust 无头浏览器):

工具 作用
obscura_status 解析二进制并跑 --version
obscura_fetch obscura fetch(dump / eval / stealth)
obscura_mcp_hint MCP / CDP 接线说明(不启动服务)

不是 dsh-wsl-browser(win_open_url 只打开 Windows 默认 GUI 浏览器)。

English → README.md

在套件里的位置

可选。驱动 Obscura 无头浏览器。不在 install.sh 里。

flowchart LR
  agent["dsh agent"] --> tool["dsh-wsl-obscura"] --> browser["Obscura 无头浏览器"]

整套关系图和版本快照:dsh-wsl-kit 中文说明。本插件是 0.1.0(不在 install.sh)。不要把那份总表抄进本 README。


兼容性

项 值
插件 dsh-wsl-obscura 0.1.0
最低 dsh ≥ 0.1.2(Windows 中继 :3081 一次性 ?token=)
最新验证 以 dsh-wsl-kit 兼容性 为准(当前 0.2.0-rc.2)— 套件唯一真源
套件档位 可选 — 不在默认 KIT_SET 列表
云端 Flash settings / llm-deepseek 使用 deepseek-flash(V4.1 Flash);本插件不配置模型 id
Agent Teams 上游实验包;本插件不依赖

套件版本地板:check-plugin-versions.sh。故障树:TROUBLESHOOTING.zh.md。

为什么需要

要抓正文、跑页面 JS、或 stealth 抓取时,应用无头引擎。本机 Windows 已可编出 obscura.exe;插件经 WSL interop(/mnt/c/.../obscura.exe)调用。

更完整的 Agent 工具面(导航 / 点击 / 截图 MCP)优先用 Obscura MCP(obscura mcp),见 obscura_mcp_hint。

前置

  1. Windows 上编好 Obscura(render,stealth)。
  2. 指定二进制路径(任选):
    • cordis config.binaryPath
    • 环境变量 OBSCURA_BIN / OBSCURA_PATH
    • 默认候选(本机脚手架路径):
      <obscura-checkout>/target/release/obscura.exe

安装

本地仓(未发 GitHub 时):

dsh plugin --profile web add /path/to/dsh-wsl-obscura

发布后:

dsh plugin --profile web add github:173787247/dsh-wsl-obscura

装完重启 dsh web(kit:scripts/restart-dsh-web.sh)。

配置

- id: dsh-wsl-obscura
  name: dsh-wsl-obscura
  config:
    timeoutMs: 60000
    maxOutputChars: 32000
    defaultStealth: true
    binaryPath: <obscura-checkout>/target/release/obscura.exe

测试

npm test

许可

MIT

内容来自项目 README(GitHub)↗

评论

评论存放在 GitHub Discussions。用 GitHub 账号登录后可发表评论或点表情。