Add the session view to the trace page. Read the specimens first, then build the lane strip, the tree, the document, and the inspector from one authored run. The family's plugins must be visible on the records they touch, and the page must read the same run with the family off.
hook / EffectTS
ets-hook-dsh-normalize-dash
Turns every unicode dash into a plain hyphen, live
Facts
- Package
- @playform/ets-hook-dsh-normalize-dash
- Version
- 0.2.1
- Kind
- hook
- Release
- EffectTS
- Licence
- CC0-1.0
- Directory
- EffectTS/packages/ets-hook-dsh-normalize-dash
What it does
Turns every unicode dash into a plain hyphen, live.
Conversation
The turn as a document: the calls every plugin page shares, what this package changes in them, and the order its work happens in.
Conversational
Lane
The same run as time: one row per resource, a bar per span, and the clock every record shares. A wait is drawn as an outline, because nothing is busy.
Session
The tree, the document, and the inspector read one record list. The switch at the top of the document changes the face they read, and the run changes with it.
The turn
The same 3 calls on every plugin page, so a reader who moves between plugins stays in the same frame.
| Seq | Call | Outcome |
|---|---|---|
20 | bash ls -la | ok |
21 | write src/index.ts | ok |
22 | read src/index.ts | ok |
Change
The one line that differs with this package installed, transcribed from its source by the dissection.
- Model a — b – c ‑ d ― e
- Transcript a - b - c - d - e
13 character changed, from 13 to 13.
- Property
- Deterministic output
- Knob
- replacement, a plain hyphen by default
- Seam
- llm/stream
Harness
The laws the package states, the line it writes when it loads, the seam the harness dispatches with none of the family, and the surface and knobs a run can set.
Default
What the harness does at this package's seam with none of the family installed, so the surface below has something to be a difference from.
The harness dispatches llm/stream as a waterfall and already has listeners there: llm-replay, session-checkpoint-policy, session-title.
A waterfall listener receives the payload and may return a changed one, so the harness's own listeners can already change what the model reads. This package adds another listener to that list.
Surface
Every listener, tool, service, and knob the README documents.
| Kind | Name | What |
|---|---|---|
| listener | llm/stream | normalizes the unicode dash family live in the transcript (text/reasoning deltas, assembled block-end blocks, tool arguments gated) |
| tool | raw-write | the write wrapper with the normalize + govern parameters, exempt from stream normalization by name |
| listener | tools/post-execute | overpass arm, opt-in via scopes.toolResults (prepended, outermost vs the ccr gate) |
| listener | agent/pre-step | overpass arm, opt-in via scopes.batch |
| config/command | normalize-overpass | arms the one-shot batch overpass, flips scopes.toolResults, reports the scopes - the files sweep is declined |
Install
The package as the profile adds it.
pnpm add @playform/ets-hook-dsh-normalize-dashConfiguration
Every knob this plugin documents, with its default.
| Field | Type | Default | Meaning |
|---|---|---|---|
| log | boolean | true | write the durable ledger file (volatile) |
| logFile | string | ~/.dsh/playform/hook-dsh-normalize-dash.log | the normalize-dash ledger (volatile) |
| replacement | string | - | the transform's only knob - hot-editable, the next stream picks it up with no remount (volatile) |
| normalizeReasoning | boolean | true | normalize reasoning deltas and the assembled reasoning block too |
| normalizeToolArguments | boolean | false | rewrite the tool-call argumentsDelta and the assembled ToolCallBlock.arguments when on - execution-critical raw JSON, the user's accepted risk |
| scopes | object | see below | gates every arm independently; the whole object is volatile |
| scopes.conversation | boolean | true | text-delta text + the assembled text/reasoning blocks |
| scopes.reasoning | boolean | true | the reasoning-delta sub-gate (ANDed with normalizeReasoning) |
| scopes.toolInput | boolean | false | the tool-call arguments arm (OR-ed with normalizeToolArguments) |
| scopes.toolResults | boolean | false | the tools/post-execute arm |
| scopes.files | boolean | true | inert in a stream flavor (present so one patch override drives the whole family) |
| scopes.batch | boolean | false | the agent/pre-step arm |
| toolResultsExempt | string[] | read, edit, raw-write, normalize-file, ccr_retrieve, subagent, ask_user_question | a tool result whose exec name is listed passes the tool-results arm by identity (volatile) |
Family
The neighbours at the same seam, the arms beyond it, the twin in the other release tree, and the packages this one needs.
Neighbours
The behavior map lists 6 answers at llm/stream, in the order the family registers them.
| Answer | Effect | Position |
|---|---|---|
| hook-dsh-normalize-dash | rewrite | its twin |
| hook-dsh-normalize-ellipsis | rewrite | neighbour |
| hook-dsh-normalize-fullwidth | rewrite | neighbour |
| hook-dsh-normalize-invisible | rewrite | neighbour |
| hook-dsh-normalize-quotes | rewrite | neighbour |
| hook-dsh-normalize-spaces | rewrite | neighbour |
Arms
The seams its source also registers, beyond the one its README documents.
- agent/pre-step
- tools/post-execute
Twin
The same package in the other release tree, when one exists.
Its twin is hook-dsh-normalize-dash.
It registers the same listeners in the same order and composes the same ledger strings; the ledger file's name, which carries the package identity, and the factory base import are the only differences.
Dependencies
The packages this one imports, and whether each one is the family's own.
| Package | Role |
|---|---|
| family | |
| family | |
| family | |
| effect | external |
Person
What the person waits for, reads, and never sees.
The person sees the text after the rewrite and not what it replaced, so the change stays invisible unless the source is read beside the result.
- U+2014 em dash
- U+2013 en dash
- U+2011 non-breaking hyphen
- U+2015 horizontal bar
- U+002D hyphen-minus
The family collapses onto one character: every member of the dash class lands on the hyphen, so different code points leave the stream as the same byte.
Architecture
This plugin's own structure: the shape the portrait gives it, the facts its source documents, and the rule its flow obeys.
Shape
Plugs into the llm/stream waterfall and the family's raw-write tool, which this package registers.
- text rewritten
- reasoning rewritten reasoning
- tool args passed toolArguments
A kind that is off is passed through untouched, by identity.
Its shape machine belongs to Person.
Table
The family's own character table: the code points it maps, the character each one becomes, and the law it obeys.
Dash
24 code points
| Arrives | Maps to | Becomes | Code point | Name |
|---|---|---|---|---|
| ֊ | - | U+058A | Armenian hyphen | |
| ־ | - | U+05BE | Hebrew punctuation maqaf | |
| ᐀ | - | U+1400 | Canadian syllabics hyphen | |
| ᠆ | - | U+1806 | Mongolian todo soft hyphen | |
| ‐ | - | U+2010 | Hyphen | |
| ‑ | - | U+2011 | Non-breaking hyphen | |
| ‒ | - | U+2012 | Figure dash | |
| – | - | U+2013 | En dash | |
| — | - | U+2014 | Em dash | |
| ― | - | U+2015 | Horizontal bar | |
| ⸗ | - | U+2E17 | Double oblique hyphen | |
| ⸚ | - | U+2E1A | Hyphen with diaeresis | |
| ⸺ | - | U+2E3A | Two-em dash | |
| ⸻ | - | U+2E3B | Three-em dash | |
| ⹀ | - | U+2E40 | Double hyphen | |
| ⹝ | - | U+2E5D | Supplementary punctuation hyphen | |
| 〜 | - | U+301C | Wave dash | |
| 〰 | - | U+3030 | Wavy dash | |
| ゠ | - | U+30A0 | Katakana-Hiragana double hyphen | |
| ︱ | - | U+FE31 | Presentation form for vertical em dash | |
| ︲ | - | U+FE32 | Presentation form for vertical en dash | |
| ﹘ | - | U+FE58 | Small em dash | |
| ﹣ | - | U+FE63 | Small hyphen-minus | |
| - | - | U+FF0D | Fullwidth hyphen-minus |
No context rule and no lookahead: every dash code point becomes the configured replacement, ASCII hyphen-minus by default, so a chunk boundary cannot change the result; an edit call, a raw-marked call, and a listed tool result pass by identity.
Transform
The worked example its README documents: the code point it names and the replacement it ships.
- normalize-dash U+2014 — - the dash family: em, en, and seventeen exotic relatives
Record
The release line, the source, and the files this page was read from.
Release
The versions the package's own changelog records, newest first.
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.1
Source
The package as the repository holds it.
Origin
The files this page was built from, and what each one supplies.
The files this page was read from 5
| File | Contributed | State |
|---|---|---|
| package.json | The name, the version, the private flag, and the dependencies. | read |
| README.md | The summary, the surface table, and the configuration table. | read |
| CHANGELOG.md | The release lines and their versions. | read |
| cordis.patch.yml | Activation: the bundle entry that mounts the plugin. | read |
| Source/Function/Apply.ts | The listeners, their registration order, and the service the flow calls. | absent |
- Data
- The monorepo, read during the build
- Connection
- Build-time read; nothing is fetched at runtime
- Capture
- package.json, README.md, CHANGELOG.md, Source/Function/Apply.ts
Expand provenance source
This page is static. It cannot invoke the plugin, read a ledger, or change a configuration. Every figure comes from those files; a missing README falls back to the manifest's own description, and a package with no surface table shows no surface section.