Files
deepseek-harness/packages/experimental/claude-code-mods/cordis.source.patch.yml
T
Tianyi Cui 233032b8f4 fix(experimental): close the mods bridge review findings
- Disposal cancels detached runs before the engine waits for timer callbacks,
  so a callback parked in a $ call ends instead of blocking unload.
- A forgotten band wakes and ends its watch streams; a refresh asked for
  during a pass joins one more pass that settles after it; the Web band drops
  an ended stream so the next subscriber opens a fresh one.
- $ has Claude Code's namespaces: an unserved member rejects with
  'no implementation for <namespace>.<member>' instead of a TypeError.
- A .catch handler's next makes the rewrite check; a tool rename is refused
  like an argument rewrite; a null op answer is reported as no answer;
  defineMod returns its disposer from apply; the live turn record is copied
  before the chain freezes it; prompt.submit is raised only for batches with
  a human message and names the submitting mod as origin.
- $.http.fetch bounds the body while streaming; bandColumns/bandRows are
  Config; the client package drops its stale gateway edges; the source
  overlay lives in the package and anchors its entries to the file, and the
  dsh installation no longer depends on the experimental packages.
2026-10-03 05:18:32 +08:00

22 lines
1.1 KiB
YAML

# Source overlay: the Claude Code mods bridge, its band above the prompt, and
# the three example mods from Anthropic's "Getting started with Claude Code
# mods" post. The relative entries are anchored to this file and run through
# the CLI's tsx loader without a profile install, as the inspector's source
# overlay does. Mods load in list order and the band above the prompt is one
# instance consulted in that order, so the guards that yield when idle come
# before Token Weather, which draws whenever it has a reading.
#
# pnpm dsh web --patch ./packages/experimental/claude-code-mods/cordis.source.patch.yml
# pnpm dsh --profile headless --patch ./packages/experimental/claude-code-mods/cordis.source.patch.yml "task"
- insert:
- id: claude-code-mods
name: './src/index.ts'
- id: claude-code-mod-blast-radius
name: './examples/blast-radius/index.ts'
- id: claude-code-mod-replay-theater
name: './examples/replay-theater/index.ts'
- id: claude-code-mod-token-weather
name: './examples/token-weather/index.ts'
- id: client-ui-claude-code-mods
name: '../client-ui-claude-code-mods/src/index.ts'