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

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

支持内部URL路由的文件读写编辑工具 在文件读写中路由内部URL。适合需在原生Harness上处理冲突和PR的开发人员。

包名
@hy-sde-org/dsh-tool-fs-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-internal-urls

The read / write / edit filesystem tool suite for DeepSeek Harness with internal-URL routing built in: when ctx.internalUrls is mounted, these tools resolve conflict://, pr://, issue:// URLs (and :conflicts selectors) through the registry instead of a filesystem path, and scan plain filesystem reads for git conflict blocks — registering them with the session history and appending a resolution notice. This is the hy-sde fork's dsh-tool-fs (with src/internal-routing.ts + the read.ts/write.ts 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): agent-scope shadowing makes these THE read/write/edit for that session, while plain filesystem behavior is identical to the stock tools. Without a mounted ctx.internalUrls registry the routing branch never triggers and the tools are stock-equivalent.

  • read — line-numbered windows (caps: readLimit 2000 lines, readMaxLineLength 2000 chars, readMaxBytes 50 KiB, stream threshold 10 MiB), fs/observed emission, internal-URL virtual reads, conflict surfacing + notice.
  • write — create/overwrite with sandbox-policy escalation (fs/write-intent waterfall, error remediation). Internal-URL writes (conflict:// resolution) dispatch to the handler with the session context and the resolved policy so the backing-file splice stays fenced.
  • edit — literal single-match (or replace-all) edits over ctx.fs with guard + remediation, unchanged from the harness (this package keeps the trio together).
  • read_image — registers only while attachments is mounted, unchanged.

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-internal-urls row is this package.

Defaults & caps

KeyDefaultMeaning
readLimit2000lines per read call
readMaxLineLength2000chars per returned line
readMaxBytes50 KiBbytes of selected output
readStreamMinSize10 MiBstream files at/above this size
enableEdittrueset false to leave edit to another provider