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

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

Agent-scope shadow of the DeepSeek Harness read/write/edit fs tools that also resolves conflict://, pr://, issue:// URLs through ctx.internalUrls — the routing surface that makes internal URLs work on stock harness releases. 在文件读写中路由内部URL。适合需在原生Harness上处理冲突和PR的开发人员。

패키지
@hy-sde-org/dsh-tool-fs-internal-urls
호환성
미검증
Harness peer 범위
^0.2.0-rc.2
Cordis peer 범위
~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