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 / Classic
hook-dsh-normalize-quotes
Turns curly quotes into straight ones, live
Facts
- Package
- @playform/hook-dsh-normalize-quotes
- Version
- 0.2.1
- Kind
- hook
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/hook-dsh-normalize-quotes
What it does
Turns curly quotes into straight ones, 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.
Activation
The one line this package writes when it loads, as a template and as the strings the source composes from it.
activated (k1=v1, k2=v2, ...)- absent field
- A pair whose value is undefined is skipped, so a flavor with no replacement simply omits the pair.
- bare segment
- A pair with an empty key renders its value alone, which is how the governance trio leads with its flavor word.
- present field
- An empty string is a value, not an absence: the invisible flavor writes replacement= to say it removed the family.
- hook-dsh-normalize-quotes
activated (reasoning=on, toolArgs=off, logFile=~/.dsh/hook-dsh-normalize-quotes.log) - hook-dsh-normalize-invisible
activated (replacement=, reasoning=on, toolArgs=off, logFile=~/.dsh/hook-dsh-normalize-invisible.log) - hook-dsh-package-governor
activated (anywhere mode, logFile=~/.dsh/hook-dsh-package-governor.log, updateMode=chain, ncuBin=ncu, exclude=[], policyFile=(discovery)) - hook-dsh-package-pinner
activated (pinner, logFile=~/.dsh/hook-dsh-package-pinner.log, keep=[@types/*])
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 curly quote 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/hook-dsh-normalize-quotesConfiguration
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-quotes.log | the normalize-quotes ledger (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 | this package |
| 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 ets-hook-dsh-normalize-quotes.
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 |
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 It ’ s done
- Transcript It ' s done
The apostrophe is one of eight code points the table maps; the four double quotes are the other half.
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.
Quotes
8 code points
| Arrives | Maps to | Becomes | Code point | Name |
|---|---|---|---|---|
| ‘ | ' | U+2018 | Left single quotation mark | |
| ’ | ' | U+2019 | Right single quotation mark | |
| ‚ | ' | U+201A | Single low-9 quotation mark | |
| ‛ | ' | U+201B | Single high-reversed-9 quotation mark | |
| “ | " | U+201C | Left double quotation mark | |
| ” | " | U+201D | Right double quotation mark | |
| „ | " | U+201E | Double low-9 quotation mark | |
| ‟ | " | U+201F | Double high-reversed-9 quotation mark |
No context rule and no replacement knob: every typographic quote code point becomes its straight ASCII counterpart; 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-quotes U+201C “ " eight typographic quotes to their straight ASCII counterpart
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.