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

中文文档
0.2.1-rc.5发布于 2026/11/01MITTypeScriptES Module

Agent-scope shadow of the DeepSeek Harness glob/grep discovery tools that also searches conflict://, pr://, issue:// resources through ctx.internalUrls — the search half of the internal-URL routing surface for stock harness releases.

原始使用文档

@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.2.0-rc.2 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/<id>/ — 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

版本与发布记录

@hy-sde-org/dsh-tool-fs-search-internal-urls 共发布 11 个版本,首次发布于 2026/08/26;过去 12 个月发布了 11 个版本。

版本发布日期距今
0.2.1-rc.5latest2026/11/012 天前
0.2.1-rc.32026/10/259 天前
0.2.1-alpha.42026/10/1618 天前
0.2.1-alpha.22026/10/1321 天前
0.2.0-rc.22026/10/031 个月前
0.1.7-rc.22026/09/291 个月前

关于 @hy-sde-org/dsh-tool-fs-search-internal-urls 的常见问题

@hy-sde-org/dsh-tool-fs-search-internal-urls 是什么?

代理范围的DeepSeek Harness glob/grep发现工具的影子,它也通过ctx.internalUrls搜索conflict://、pr://、issue://资源——搜索内部url路由表面的一半,以查找stock Harness发布。

如何安装 @hy-sde-org/dsh-tool-fs-search-internal-urls?

在项目目录运行 npm install @hy-sde-org/dsh-tool-fs-search-internal-urls,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@deepseek-ai/cordis(~4.0.5)、@deepseek-ai/dsh-llm(^0.2.1-rc.5)、@deepseek-ai/dsh-spill(^0.2.1-rc.5)、@deepseek-ai/dsh-tools(^0.2.1-rc.5)、@deepseek-ai/dsh-session(^0.2.1-rc.5)、@deepseek-ai/dsh-timeout(^0.2.1-rc.5)、@deepseek-ai/dsh-subprocess(^0.2.1-rc.5)、@deepseek-ai/dsh-util-values(^0.2.1-rc.5)、@hy-sde-org/dsh-internal-urls(^0.2.1-rc.5)、@deepseek-ai/dsh-system-prompt(^0.2.1-rc.5)、@deepseek-ai/dsh-output-retention(^0.2.1-rc.5)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@hy-sde-org/dsh-tool-fs-search-internal-urls 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@hy-sde-org/dsh-tool-fs-search-internal-urls 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@hy-sde-org/dsh-tool-fs-search-internal-urls 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@hy-sde-org/dsh-tool-fs-search-internal-urls 可以商用吗?

@hy-sde-org/dsh-tool-fs-search-internal-urls 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@hy-sde-org/dsh-tool-fs-search-internal-urls 还在维护吗?

最新版本 0.2.1-rc.5 发布于 2026/11/01(2 天前);至今共发布 11 个版本,其中过去 12 个月发布了 11 个;首次发布于 2026/08/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。