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 Harness 网页界面里,与一个简单的 AI 一起下一盘 19×19 围棋。
你是黑棋(先手),AI 执白。点棋盘落子,AI 自动回一手。支持吃子、打劫、悔棋、重新开始。
go-plugin/ 是一个 DeepSeek Harness web 插件,作为 bundle 挂载到你的 web profile。
如果你在本机开发这个插件,用 link: 方式直接链接到它的文件夹:
# 1) 把插件装进 web profile(link 方式,指向本机 go-plugin 文件夹)
dsh plugin --profile web add link:D:\dsh-second-wp\go-plugin
# 2) 重启 DSH,浏览器打开 web 界面,右下角出现"围棋对弈 🀄"棋盘
link:适合开发期:改代码即生效;但D:\dsh-second-wp\go-plugin是本机私有路径,只有你这台电脑能用。
# 从 GitHub 仓库安装
dsh plugin --profile web add github:fuyu-jie/dsh-go-plugin
想用在别的 profile,把
--profile web换成对应 profile 名即可。
dsh-second-wp/
├─ go-plugin/ ← 围棋插件本体(npm 包)
│ ├─ index.mjs ← 宿主端 half(当前为空骨架)
│ ├─ client.js ← 浏览器端 half(棋盘 UI + 内联规则/AI)
│ ├─ src/
│ │ ├─ goban.js ← 规则引擎(棋盘/落子/吃子/打劫;纯逻辑)
│ │ └─ ai.js ← AI 策略(启发式)
│ ├─ test-goban.mjs ← 规则引擎命令行测试
│ ├─ test-ai.mjs ← AI 命令行测试
│ ├─ package.json ← 插件包声明(dsh bundle/client)
│ └─ cordis.patch.yml ← 挂载补丁(插入 go-plugin 行)
├─ README.md ← 本文件(项目主页)
└─ LICENSE ← MIT 开源许可
规则引擎与 AI 都带命令行测试,零依赖:
cd go-plugin
node test-goban.mjs # 规则引擎:落子/吃子/打劫/自杀/悔棋 (26 项)
node test-ai.mjs # AI:合法着法/提子/自救 (7 项)
LICENSE — MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。