hy-sde/dsh-tool-library-search--packages-tool-library-search ↗★ 0

@hy-sde-org/dsh-tool-library-search

跨生态开源第三方库检索工具 提供多语言包管理器及GitHub搜索。适合需要寻找现有轮子、避免重复造车的任务。

套件
@hy-sde-org/dsh-tool-library-search
相容性
待驗證
Harness 依賴範圍
^0.2.0-rc.2
Cordis 依賴範圍
~4.0.4
版本
0.2.0-rc.2
授權
MIT
最近更新
2026年10月3日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hy-sde/dsh-tool-library-search#49184db16b5b81856420a19d61c78bb59ec4f6bd&path:packages/tool-library-search

Configuration

import toolLibrarySearch from '@hy-sde-org/dsh-tool-library-search'

ctx.plugin(toolLibrarySearch, {
  timeoutMs: 12000,     // per-source transport timeout (default 10000)
  maxResults: 20,       // default result cap after merge+rank (default 15)
  perSourceLimit: 8,    // per-source hit cap before merge; >100 pages GitHub when a token is set
  githubToken: 'ghp_…', // optional: raises GitHub repo-search quota 10/min → 30/min AND enables paging
  semantic: true,       // enable README-similarity rerank (default false)
  embedderModel: 'Xenova/all-MiniLM-L6-v2', // optional local model id
  semanticPoolSize: 50, // candidates entering the rerank before maxResults cut
})

Install the optional peer to activate semantic rerank: npm i @huggingface/transformers (or pnpm add @huggingface/transformers). The first call downloads ~25 MB of model weights; subsequent calls reuse the in-memory pipeline. Without the peer the tool still fully works lexically.

Install as a preset/patch row via the bundled cordis.patch.yml (row id hy-sde-libsearch-tool-library-search), which also registers the library:search prompt section.