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-dsh-normalize-dash rewrite
- hook-dsh-normalize-ellipsis rewrite
- hook-dsh-normalize-fullwidth rewrite
- hook-dsh-normalize-invisible rewrite
- hook-dsh-normalize-quotes rewrite
- hook-dsh-normalize-spaces rewrite
- ets-hook-dsh-normalize-dash rewrite
- ets-hook-dsh-normalize-ellipsis rewrite
- and 4 more
Hook
One row per hook that declares this seam, with the effect it has and the knobs it documents.
| Hook | Effect | What it does | Configuration |
|---|---|---|---|
| rewrite | Turns every unicode dash into a plain hyphen, live | 13 knob | |
| rewrite | Turns the unicode ellipsis into three dots, live | 13 knob | |
| rewrite | Turns fullwidth characters back into ASCII, live | 12 knob | |
| rewrite | Removes invisible characters from model output | 13 knob | |
| rewrite | Turns curly quotes into straight ones, live | 12 knob | |
| rewrite | Turns exotic spaces into plain spaces, live | 13 knob | |
| rewrite | Turns every unicode dash into a plain hyphen, live | 13 knob | |
| rewrite | Turns the unicode ellipsis into three dots, live | 13 knob | |
| rewrite | Turns fullwidth characters back into ASCII, live | 12 knob | |
| rewrite | Removes invisible characters from model output | 13 knob | |
| rewrite | Turns curly quotes into straight ones, live | 12 knob | |
| rewrite | Turns exotic spaces into plain spaces, live | 13 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.