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-spaces
Turns exotic spaces into plain spaces, live
Facts
- Package
- @playform/ets-hook-dsh-normalize-spaces
- Version
- 0.2.1
- Kind
- hook
- Release
- EffectTS
- Licence
- CC0-1.0
- Directory
- EffectTS/packages/ets-hook-dsh-normalize-spaces
What it does
Turns exotic spaces into plain spaces, 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 |
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 space family live in the transcript (text/reasoning deltas, assembled block-end blocks, tool arguments gated) |
| 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-spacesConfiguration
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-spaces.log | the normalize-spaces ledger (volatile) |
| replacement | string | " " | the transform's only knob - the plain ASCII space; 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 | neighbour |
| 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 | its twin |
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-spaces.
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.
- Model 2 + 2
- Transcript 2 + 2
The no-break space became the plain space, so the line can wrap where it could not before.
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.
- 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.
Spaces
16 code points
| Arrives | Maps to | Becomes | Code point | Name |
|---|---|---|---|---|
| U+00A0 | No-break space | |||
| U+1680 | Ogham space mark | |||
| U+2000 | En quad | |||
| U+2001 | Em quad | |||
| U+2002 | En space | |||
| U+2003 | Em space | |||
| U+2004 | Three-per-em space | |||
| U+2005 | Four-per-em space | |||
| U+2006 | Six-per-em space | |||
| U+2007 | Figure space | |||
| U+2008 | Punctuation space | |||
| U+2009 | Thin space | |||
| U+200A | Hair space | |||
| U+202F | Narrow no-break space | |||
| U+205F | Medium mathematical space | |||
| U+3000 | Ideographic space |
No context rule: every non-ASCII space in the Zs category becomes the configured replacement, the plain ASCII space by default; 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-spaces U+00A0 exotic spaces to the plain ASCII space
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.