shuing/dsh-tool-everything ↗★ 0

dsh-tool-everything

Model-facing Windows search tool backed by the Everything index (Everything64.dll FFI via koffi)

包名
dsh-tool-everything
兼容性
待验证
Harness 依赖范围
>=0.2.0-rc.1 <1.0.0
版本
0.5.1
许可证
MIT
最近更新
2026年11月7日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shuing/dsh-tool-everything

⚙️ 配置

配置必须写在组件行上,写在外壳行无效:外壳 apply() 只做「探测宿主能力 → 组 caps」,不注册任何工具、也不向组件传 caps(实测外壳行配 maxResults/timeoutMs 得到 { tools: [], promptSections: [] },同一份值写在组件行才进 description)。两个行 id 原文:

  • dsh-tool-everything-everything —— maxResults、timeoutMs、everythingDllPath、autoStart
  • dsh-tool-everything-anytxt —— anytxtUrl、anytxtTimeoutMs、anytxtMaxResults、anytxtSyncTimeoutMs

缺键一律取默认,坏值(非整数、越界)回退默认——不会以一条无错误码的裸 RangeError 逃出。

字段默认说明
maxResults见 lib/index.js 的 DEFAULT_MAX_RESULTS 常量单次返回结果上限(硬上限 500,超出在 execute 里 clamp 到 1–500)。宽查询的大结果按字节触发 spill 落盘,够判断方向,不够就收窄重搜
timeoutMs8000工具超时预算(ms);FFI 查询阻塞不可中断,故预算偏短
everythingDllPath包内 native/自定义 Everything64.dll 路径(一般不用)
autoStartfalse索引未加载时是否替你拉一次 Everything.exe -startup、等 ≤3s 并重试一次;默认关,不替用户启动进程
anytxtUrlhttp://127.0.0.1:9920/rpcAnytxt JSON-RPC 端点,必须是 loopback。/rpc 是 ATGUI 的 RPC 路径(根路径是帮助网页,POST 过去回 404,实测 POST / → 404、POST /rpc → errno:0);只给 origin 时插件自动补 /rpc。只有地址用默认端口时才回退 9921,且只换端口不换路径
anytxtTimeoutMs15000正文检索单次请求预算(ms),上限同 timeoutMs 的 MAX_TIMER_DELAY_MS
anytxtMaxResults20anytxt_search 的默认单页条数(硬上限 300,与 API v1 的 limit 整数区间一致)
anytxtSyncTimeoutMs60000anytxt_sync_index 的单次预算(ms)。建库比查询慢(小目录实测 6 秒内完成,大目录未知),故与查询的 15 秒分开