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 全文を読む ↗

ドキュメント

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