shuing/dsh-tool-everything ↗★ 0
dsh-tool-everything
Model-facing Windows search tool backed by the Everything index (Everything64.dll FFI via koffi)
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shuing/dsh-tool-everythingREADME
Read the full README ↗⚙️ 配置
配置必须写在组件行上,写在外壳行无效:外壳 apply() 只做「探测宿主能力 → 组 caps」,不注册任何工具、也不向组件传 caps(实测外壳行配 maxResults/timeoutMs 得到 { tools: [], promptSections: [] },同一份值写在组件行才进 description)。两个行 id 原文:
dsh-tool-everything-everything——maxResults、timeoutMs、everythingDllPath、autoStartdsh-tool-everything-anytxt——anytxtUrl、anytxtTimeoutMs、anytxtMaxResults、anytxtSyncTimeoutMs
缺键一律取默认,坏值(非整数、越界)回退默认——不会以一条无错误码的裸 RangeError 逃出。
| 字段 | 默认 | 说明 |
|---|---|---|
maxResults | 见 lib/index.js 的 DEFAULT_MAX_RESULTS 常量 | 单次返回结果上限(硬上限 500,超出在 execute 里 clamp 到 1–500)。宽查询的大结果按字节触发 spill 落盘,够判断方向,不够就收窄重搜 |
timeoutMs | 8000 | 工具超时预算(ms);FFI 查询阻塞不可中断,故预算偏短 |
everythingDllPath | 包内 native/ | 自定义 Everything64.dll 路径(一般不用) |
autoStart | false | 索引未加载时是否替你拉一次 Everything.exe -startup、等 ≤3s 并重试一次;默认关,不替用户启动进程 |
anytxtUrl | http://127.0.0.1:9920/rpc | Anytxt JSON-RPC 端点,必须是 loopback。/rpc 是 ATGUI 的 RPC 路径(根路径是帮助网页,POST 过去回 404,实测 POST / → 404、POST /rpc → errno:0);只给 origin 时插件自动补 /rpc。只有地址用默认端口时才回退 9921,且只换端口不换路径 |
anytxtTimeoutMs | 15000 | 正文检索单次请求预算(ms),上限同 timeoutMs 的 MAX_TIMER_DELAY_MS |
anytxtMaxResults | 20 | anytxt_search 的默认单页条数(硬上限 300,与 API v1 的 limit 整数区间一致) |
anytxtSyncTimeoutMs | 60000 | anytxt_sync_index 的单次预算(ms)。建库比查询慢(小目录实测 6 秒内完成,大目录未知),故与查询的 15 秒分开 |