Files
Codewhale/crates/engine/extension-host/src/dsh/upstream/hooks/README.md
T
CodeWhale Bot e34f207d21 refactor(engine): extract the shared runtime from the TUI [skip ci]
Move the Engine band, extension host, fixtures and shared test support into
codewhale-engine; wire TUI/CLI to that owner. Preserve human-decision
construction boundaries and lower reusable test helpers. Remove unused
copied dependencies and repair path-based guards, scripts and crate maps.

Correct the blocking scanner external-module scope leak; raised counts equal
the corrected pre-move source. Refresh embedded built-in hashes after path-only
bundle regeneration. Restore the provider-free prompt budget to the exact
pre-b984e31290 macOS bytes and representative identities; tool catalogs are
unchanged. Portable prompt-fixture pinning remains follow-up work.

Local validation: Engine/TUI/CLI clippy --tests --no-deps -D warnings passed
with the existing allow-list; production CLI check passed; fmt passed.
Focused native run: 705 passed / 83 failed initially; after hash/path repairs,
81 affected cases plus 2 existing build-relocation cases passed (83/83).
Thus 786/788 original cases pass; 2 compiled-release-image cases lack input
and are not qualified. Frozen input inventories unchanged. macOS test-link
unwind-table warnings remain. Four metric tests pass; all 55 budgets pass.
Host Node: 413 pass, 7 skip; Bun: 414 pass, 6 skip. Existing scanner checks:
34 + 33 pass. Compiled-delivery synthetic fixtures: 7 pass. Web: 42 pass.
Import, blocking, dead-code, coarse-map, version and facts checks pass.

CW-7701. No hosted CI, provider call, release build or publication.
Stage A part 2 and the old App Server/ratatui dependencies remain separate.
2026-10-31 18:55:14 -07:00

683 B

Pinned hook protocol and configuration parsers

Source: DeepSeek Harness commit 0d1f50007f9bca3f52b06e1c3074fa14d5fb0720. Packages: @deepseek-ai/dsh-hook-protocol, @deepseek-ai/dsh-hooks-claude-code, and @deepseek-ai/dsh-hooks-codex, each version 0.1.6-alpha.1, MIT.

UPSTREAM.json records every original and adapted hash. Matcher, codec and merge are verbatim. Types remove session-writer declaration merging; the two parsers use local imports. These are six pure source files, not the upstream agent/session runtime. The Codewhale bridge reuses the existing Rust hook catalog, per-call receipts, Execution grants, Engine scheduler, process driver and final steering.