tokens_DshWebSearch_code
学习研究 活跃维护

tokens_DshWebSearch_code

sobermh/tokens_DshWebSearch_code

提供零配置网页搜索能力,内置多供应商自动容错机制,无需手动配置即可自动切换可用搜索服务,开箱即用大幅降低集成门槛,无需额外适配即可快速接入。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
321 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:sobermh/tokens_DshWebSearch_code
git clone https://github.com/sobermh/tokens_DshWebSearch_code.git
git clone git@github.com:sobermh/tokens_DshWebSearch_code.git
README.md main

tokens_DshWebSearch_code

本项目是本地维护的 DeepSeek Harness 联网搜索插件,npm 包名为 tokens-dsh-web-search

功能

  • 为原生 web_search 提供 Bing、DuckDuckGo、AnySearch 和 SearXNG 等搜索来源。
  • 支持 Exa、Tavily、Keenable、Perplexity 和 DeepSeek API 搜索。
  • 支持时间范围过滤、平台搜索、网页抓取、结果缓存和设置页切换。
  • 不包含远程版本检查或一键升级逻辑,代码更新完全由本仓库维护。

本地安装

在项目目录外执行:

dsh plugin --profile desktop add file:C:\path\to\tokens_DshWebSearch_code

插件变更后需要重启 DSH Desktop。默认情况下,补丁会把 web.searchProvider 设置为 ddg,实际搜索引擎可在插件设置中选择。

开发

pnpm install
node --check lib/index.js
node --check lib/client.js

核心文件:

  • lib/index.js:搜索 provider、搜索工具、设置桥接和引擎实现。
  • lib/client.js:DSH 设置页面。
  • cordis.patch.yml:DSH bundle 注入配置。

许可

本项目沿用 MIT License。依据许可证要求,原始版权声明与许可文本保留在 LICENSE 中。