jjjjjjjjnnjnn/dsh-remedy--packages-core ↗★ 3

dsh-remedy-core

Pure repair and redaction engine for the dsh-remedy patch set. Nothing unproven is ever emitted; a failure it cannot split is re-thrown unchanged.

패키지
dsh-remedy-core
호환성
미검증
버전
0.4.20
라이선스
MIT
최근 업데이트
2026. 11. 21.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

dsh-remedy-core

The engine behind dsh-remedy, and its own package rather than a folder inside it. Pure: no I/O, no host, no clock except what the caller passes in.

Installing the plugin installs this package automatically, because the plugin pins its exact version; you only need to depend on it directly if you want the engine without the DSH seam — to test a repair decision, to replay captured arguments, or to embed the splitter somewhere else. The registry, the redaction rules and the verdict vocabulary also live here, which is why the plugin can answer status and explain without its own copy of those claims.

ModuleExportWhat it decides
json-split.tssplitTopLevelJsonObjectsWhere one concatenated top-level JSON object ends and the next begins
toolcall-repair.tsrepairToolCallArgumentsunchanged / repaired / rejected, with a typed reason
registry.tsPATCHES, registryProblemsWhat this project claims to fix, and whether the claim is structurally honest
redact.tsredact, redactValueWhat must be removed before evidence leaves the machine
verdict.tsjudgeRemedyunmeasured / quiet / repaired / degraded

The one invariant

A repair is returned only when every fragment parses to a plain object. There is no partial success, no "best effort", and no rewrite of a value that already parses.

import { repairToolCallArguments } from 'dsh-remedy-core'

const result = repairToolCallArguments({
  id: 'call_1',
  name: 'ops_bash',
  arguments: '{"command":"ls"}{"path":"a.ts"}',
})

// result.status === 'repaired'
// result.calls[0].id === 'call_1'
// result.calls[1].id === 'call_1#remedy-1'

Build

pnpm run build   # tsc -b