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
DSH (DeepSeek Harness) Web 插件:实时查看 OpenCode Go 套餐的使用额度与剩余额度。
一个可拖拽、可收缩的浮动胶囊,展示 滚动窗口 / 本周 / 本月 三个额度窗口的已用百分比、剩余百分比与重置倒计时。
Go · 周 X% · 月 Y%,绿/黄/红圆点提示额度健康度(>50% 黄、>80% 红)shell.overlay 层级已抬升)在 DSH web profile(~/.dsh/profiles/<name>/package.json)中添加依赖并登记 bundles:
{
"dependencies": {
"dsh-opg-usage": "github:M4sh1r0-444/dsh-opg-usage"
},
"dsh": {
"profile": {
"bundles": [ "...", "dsh-opg-usage" ]
}
}
}
然后在 profile 目录执行 pnpm install,重启 DSH 即可。插件会自动挂载宿主端并接入 Web 客户端,无需其它配置。
https://opencode.ai/zen/go/v1/usage~/.local/share/opencode/auth.json 中的 opencode-go 项(sk- API key),无需手动配置lib/index.js(Host 半):注册 GET /og-usage/api/usage 路由 —— 读取 auth.json → 请求 OpenCode 官方额度接口 → 返回归一化 JSON(rolling / weekly / monthly 的 percent / remaining / resetsAt)lib/client.js(Client 半):window.__ModuleLoader__.load(...) 格式的浏览器 bundle,注册到 shell.overlay 槽位,轮询该路由并渲染可拖拽胶囊fetch)MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。