Skip to main content
Q

dsh-developer-console

qeggs-dev/dsh-developer-console

Run JavaScript in the DevTools console of every open DeepSeek Harness page and get each page's result back, behind the Shell tool's approval gate.

Install

dsh plugin --profile web add github:qeggs-dev/dsh-developer-console

README

页面开发者控制台

License: MIT DSH plugin Tools

一个 DeepSeek Harness 插件:让 Agent 在每个已打开的 DSH 页面控制台里执行 JavaScript,并按页面回传完成值或异常。

权限与 Shell 工具同一套:会话是 danger-full-access 时直接执行,其余级别每次调用都要你一次性批准;代码以页面身份运行,不受会话文件沙箱限制。

English: a DeepSeek Harness plugin that evaluates JavaScript in the DevTools console of every open DSH page and returns each page's result, behind the Shell tool's approval gate.

能力

  • 按页面执行、按页面回传:每个在线页面各自求值并回报,结果按 origin + 路径 + 页面标题 + 短 id 区分,同一表达式在不同标签页结果不同也看得清。
  • 与 Shell 同权限:danger-full-access 直放,其余只认 allowed-once;拒绝、取消、无审批通道都失败即关闭。审批卡先写目的,再显示代码预览与总长度。
  • 即时可见:调用一到就先在页面控制台打印 [dsh-developer-console] job-N · 页面 → code,求值完再打印可展开的结果对象。
  • 只服务本机页面:路由校验 Origin,明确的外部 http(s) 源一律 403;桌面壳的 dsh-app:、缺失或不透明来源、回环地址放行。
  • 没有页面时不打扰:无连接页面直接返回提示,不弹审批卡。

安装

以本地目录安装(开发):

plugin_manager install_bundle → target: <本仓库目录>

或从 GitHub 安装:

plugin_manager install_bundle → target: github:qeggs-dev/dsh-developer-console

插件行 id 是 developer-console,不覆盖任何官方行。

快速开始

  1. 装好后保持至少一个 DSH 页面打开。
  2. 让 Agent 调用 developer_console:code 是要执行的 JavaScript,description 写明目的。
  3. 在审批卡上批准;结果按页面列出完成值与耗时,页面控制台同时留下 code 与结果。

文档

许可证

MIT

Related plugins