dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
本项目全部代码由 DeepSeek-V4-Pro 与 DeepSeek-V4-Flash 生成。
⚠️ 测试版声明:本插件目前处于测试阶段(含实验性的文件编辑、撤销/重做与自动保存功能),可能存在未知缺陷。请谨慎使用,重要文件与重要会话数据请提前备份。
适配 DSH 版本:本插件在 DSH(deepseek-harness)
0.1.0-rc.5上开发与实测;其他版本未验证。
DSH WebUI 工作区文件插件,核心功能有两块:
M 已修改(黄)/ U 未跟踪(绿)/ A 已新增(绿)/ D 已删除(红)/ R 已重命名(蓝),文件夹聚合显示其内部最强的状态;被 .gitignore 排除的文件与文件夹显示为灰色,且不参与 8000 条目扫描预算(仍照常进入 DIFF 审阅)。徽标即时刷新:agent 改文件、插件拒绝/撤销拒绝、本地保存后立即重查;agent 执行 git add/commit/checkout/reset/... 等命令也即时刷新;外部终端/编辑器造成的变更(含外部 git commit)在「项目文件」展开期间每 20 秒自动重查一次(展开区块时也会立即重查),故徽标最多落后 20 秒。类 › 方法);点击链上任意一级即跳转定位到该定义行。.md/.markdown 无待审修改时直接渲染(GFM 表格、围栏代码高亮、无行数上限)。需要本机已装 DSH(~/.dsh/profiles/web 存在)且能访问 GitHub。PowerShell 中执行:
irm https://raw.githubusercontent.com/justarook1e/dsh-file-edit/main/install.ps1 | iex
完成后:重启 DSH(加载宿主插件与挂载项),然后 Ctrl+F5 刷新页面(加载客户端 bundle)。
备选(clone 方式,凭据走 Git Credential Manager):
git clone https://github.com/justarook1e/dsh-file-edit.git "$env:TEMP\dsh-file-edit"; & "$env:TEMP\dsh-file-edit\install.ps1"
把本仓库的 package.json、host/、client/ 复制到 ~/.dsh/profiles/web/node_modules/dsh-file-edit/;
在 ~/.dsh/profiles/web/cordis.patch.yml 末尾追加:
- insert:
- id: dsh-file-edit
name: dsh-file-edit
重启 DSH + Ctrl+F5 刷新页面。
install.ps1 做的正是这两步(幂等,可重复执行;-Uninstall 反向移除)。
再次运行安装脚本即可(幂等,覆盖已安装的包):
irm https://raw.githubusercontent.com/justarook1e/dsh-file-edit/main/install.ps1 | iex
或(clone 方式):cd "$env:TEMP\dsh-file-edit"; git pull; & .\install.ps1
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/justarook1e/dsh-file-edit/main/install.ps1))) -Uninstall
或(clone 方式):& "$env:TEMP\dsh-file-edit\install.ps1" -Uninstall
或手动删除 node_modules/dsh-file-edit/ 与 patch 里的 insert 块。重启后生效。
dsh-file-edit/
├── package.json # dsh.client: {platform:'web'} + exports["./client"]
├── host/index.mjs # 宿主插件:扫描/基线/diff/接受拒绝/RPC(POST /dsh-file-edit/api)
├── client/dist/client.js # 浏览器 bundle(__ModuleLoader__.load + factory)
└── install.ps1 # 一键安装/卸载脚本
~/.dsh/dsh-file-edit-state/,由插件自动创建与维护;重启后自动恢复。dsh-fe-edit-v1:),按(工作区根, 相对路径)组织,与 DSH 服务端状态相互独立。dsh-files 升级时,宿主首次启动会把旧的 ~/.dsh/dsh-files-state/ 自动迁移过来,待审状态不丢。.git node_modules .venv venv __pycache__ .next .dsh .idea .vscode .cache .turbo .pytest_cache .mypy_cache .ruff_cache .eslintcache .DS_Store;树上限 8000 条目 / 16 层。被 .gitignore 排除的文件/目录(git ls-files --others --ignored --exclude-standard 判定)不占用 8000 条目预算,但仍照常进入扫描与 DIFF 审阅(修改/新增/删除照常出现在修改列表),文件树中灰显、可照常展开浏览;! 否定规则由 git 自身语义保证;非 git 工作区行为不变。注意:工作区存在大量被忽略文件时(如内嵌 Python 运行时),扫描覆盖全部条目,状态文件与树负载会相应变大。large(≤512KB 的文本可只读预览前 4000 行);二进制 ≤4MB 可拒绝还原。本项目以 MIT License 发布(见 LICENSE)。
客户端 bundle(client/dist/client.js)内嵌了 markdown-it v15.0.0 的浏览器 UMD 构建,其中包含 linkify-it、mdurl、uc.micro。这些依赖同样以 MIT 发布,其版权声明与完整许可证文本见 THIRD_PARTY_LICENSES.md。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。