Skip to content
dsh.fish
Bundle

dsh-pixel-probe

DeepSeek Harness 动态 Client 插件浏览器能力探测工具 (可安装的 dsh 组合包,Client-only 插件)

Source
TableRogue
License
MIT
Updated
Updated 20 days ago

Readme

# dsh-pixel-probe

DeepSeek Harness 动态 Client 插件能力探测工具。

## 用处

探测浏览器动态插件沙箱里可用的能力:`document`、`canvas`、`MutationObserver`、`Image`,并报告当前页面的 SVG 图标数量。用于确认「运行时光栅化 + 像素化」这类 DOM 方案的可行性,是开发像素类插件的诊断工具。

运行后在浏览器 console(`[cordis:dsh-pixel-probe]` 标签)输出一行 JSON 报告。

## 安装(每次启动自动加载)

```bash
# 本地 checkout
dsh plugin --profile web add ./dsh-pixel-probe

# 或从 GitHub(纯 JS,无构建步骤)
dsh plugin --profile web add github:TableRogue/dsh-pixel-probe
```

安装后自动追加进 profile 的 `dsh.profile.bundles`,启动 `dsh --profile web` 即生效。验证 / 卸载:

```bash
dsh --profile web --dump-config        # 应看到 # == dsh-pixel-probe 层
dsh plugin --profile web remove dsh-pixel-probe
```

**临时方式(动态插件,单次进程)**:把 `src/client.js` 头注释以下的内容填入 `cordis_define` 的 `code.client` 并 `cordis_run`,详见文件头注释。

## 文件

- `index.js` — Host 半:空 apply(纯 client 插件)。
- `src/client.js` — 动态插件源码(文档参考)。
- `lib/client.js` — 发布 bundle(client-modules 加载)。
- `cordis.patch.yml` — profile 组合补丁行。

## License

[MIT](./LICENSE) © 2026 TableRogue

Install

dsh plugin --profile web add github:TableRogue/dsh-pixel-probe

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source