DSH familySearch GitHub

Seam

llm/stream

12 hook, and every one of them rewrites what passes here.

Harness

The harness dispatches this seam as a waterfall, and it already has listeners here. The family adds its hooks beside them.

It carries each token as it leaves the model.

Payload
the bound call in, the chunks out
Power
A listener may replace what it passes on.
Declared
packages/llm/llm/src/index.ts:75
  • llm-replay
  • session-checkpoint-policy
  • session-title

A waterfall listener receives the payload and may return a changed one, so a hook here can rewrite what the model reads next.

Fan

One event, many hands. The same listener list the table below details, drawn as the dispatch it is.

Hook

One row per hook that declares this seam, with the effect it has and the knobs it documents.

Every hook declared on the llm/stream seam
HookEffectWhat it doesConfiguration
hook-dsh-normalize-dashrewriteTurns every unicode dash into a plain hyphen, live13 knob
hook-dsh-normalize-ellipsisrewriteTurns the unicode ellipsis into three dots, live13 knob
hook-dsh-normalize-fullwidthrewriteTurns fullwidth characters back into ASCII, live12 knob
hook-dsh-normalize-invisiblerewriteRemoves invisible characters from model output13 knob
hook-dsh-normalize-quotesrewriteTurns curly quotes into straight ones, live12 knob
hook-dsh-normalize-spacesrewriteTurns exotic spaces into plain spaces, live13 knob
ets-hook-dsh-normalize-dashrewriteTurns every unicode dash into a plain hyphen, live13 knob
ets-hook-dsh-normalize-ellipsisrewriteTurns the unicode ellipsis into three dots, live13 knob
ets-hook-dsh-normalize-fullwidthrewriteTurns fullwidth characters back into ASCII, live12 knob
ets-hook-dsh-normalize-invisiblerewriteRemoves invisible characters from model output13 knob
ets-hook-dsh-normalize-quotesrewriteTurns curly quotes into straight ones, live12 knob
ets-hook-dsh-normalize-spacesrewriteTurns exotic spaces into plain spaces, live13 knob

Read

A seam is the harness event a hook listens on, named area/event. This page lists the hooks the repository declares at this seam, one row per hook, with the effect it has and the configuration it documents. A row marked as an arm is a listener the package's source registers here without documenting it in its README.