hy-sde/dsh-internal-urls--packages-tool-fs-search-internal-urls ↗★ 0

@hy-sde-org/dsh-tool-fs-search-internal-urls

支持内部URL搜索的全局检索工具 实现对内部URL资源的检索。适合需要在虚拟资源或冲突块中进行搜索的任务。

包名
@hy-sde-org/dsh-tool-fs-search-internal-urls
兼容性
待验证
Harness 依赖范围
^0.2.0-rc.2
Cordis 依赖范围
~4.0.4
版本
0.2.0-rc.2
许可证
NOASSERTION
最近更新
2026年10月3日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@hy-sde-org/dsh-tool-fs-search-internal-urls

The glob / grep discovery tool suite for DeepSeek Harness with internal-URL grep routing: when ctx.internalUrls is mounted, grep can search a conflict://, pr://, or issue:// resource with the same ripgrep semantics as a filesystem grep (a sourcePath-backed resource is searched on disk; a purely virtual resource is materialized to a per-call temp file, searched, and removed — the reported path is always the URL). This is the hy-sde fork's dsh-tool-fs-search (with the src/grep.ts routing hunks) shipped as an agent-scope shadow so it works on stock DeepSeek Harness releases (dsh-v0.1.2-rc.1 and later).

Mount it in an agent preset (see examples/agent-preset/ in @hy-sde-org/dsh-internal-urls), beside @hy-sde-org/dsh-tool-fs-internal-urls. Without a mounted ctx.internalUrls registry the routing branch never triggers and grep/glob are stock-equivalent (@vscode/ripgrep ships inside this npm dependency, so no system rg install is required).

  • grep — ripgrep --json parsing, 50-match inline pages with a continuation cursor (pass it back unchanged with the same pattern/path/ include), git-dirty files ranked first ([M in git] headers) and shown workdir-relative, grouped by file, with spill recovery for the complete result. Also searches internal URL resources (path: 'conflict://3', 'pr://owner/repo/123/diff', …).
  • glob — pattern discovery with over-cap sampling, unchanged from the harness.

Install

As a routing surface this package is useless without @hy-sde-org/dsh-internal-urls; follow that package's README — all three packages install together:

dsh plugin --profile web add @hy-sde-org/dsh-internal-urls \
  @hy-sde-org/dsh-tool-fs-internal-urls \
  @hy-sde-org/dsh-tool-fs-search-internal-urls

Then copy the preset from packages/internal-urls/examples/agent-preset/ in this repo (or the installed package) to ~/.dsh/.agent-presets// — its tool-fs-search-internal-urls row is this package.

Defaults & caps

KeyDefaultMeaning
grepMaxMatches50page size: flat matches retained inline per call; later matches ride the continuation cursor
grepMaxLineBytes2000bytes per matched-line preview
grepGitRanktrueone git status probe per call ranks git-dirty files first and annotates them [M in git]
searchMetaMaxBytes64 KiBserialized presentation meta cap
rawOutputMaxBytes20 MiBraw rg stdout parse cap
graceMs3000terminate grace for the search process
stderrMaxBytes64 KiBretained rg stderr tail
timeoutMs30000cooperative tool-call budget
sampleOverCapGlobResults(required)page over-cap glob results across top-level entries