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.
plugin / Classic
plugin-dsh-normalize-file
Normalizes files already on disk
Facts
- Package
- @playform/plugin-dsh-normalize-file
- Version
- 0.2.1
- Kind
- plugin
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/plugin-dsh-normalize-file
What it does
Normalizes files already on disk.
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 |
Flow
The order this package's work happens in, with the branch that decides it inline, transcribed from the source; the rule it obeys is the last band of Architecture.
- 01
- seam the normalize-file tool
why
One agent-chosen file per call.
- 02branch the files scope is off
why
The unchanged result returns, with no read, no write, and no line.
- 03resolve, read, and apply the six tables in order
why
Dashes, quotes, ellipsis, spaces, invisible, then fullwidth.
- 04branch the count is zero
why
Nothing is written, and no line is written either.
- 05write through the factory's executor, behind the version fence
- 06journal one normalized record, and append the count line
- 07store ~/.dsh/playform/plugin-dsh-normalize-file.log
- 08
- seam normalize-overpass, when a scope is armed
why
The tool-results arm prepends, and the step-batch arm rides agent/pre-step.
- 09fail a failed read, or an aborted write
why
No count line, and the tool reports the failure.
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.
No documented seam
The behavior map does not document a seam for this package, so the page cannot show a default to compare against. It is a library, a base, or a package whose work is a tool rather than a listener.
Surface
Every listener, tool, service, and knob the README documents.
| Kind | Name | What |
|---|---|---|
| tool | normalize-file | The tool the plugin registers (Context.tools.register) - one file per call. |
| tool | normalize-overpass | The human command (registered through the factory's commands seam): arms a one-shot overpass. |
| listener | tools/post-execute | The tool-results overpass arm (registered with prepend: true). |
| listener | agent/pre-step | The batch overpass arm. |
| config | Schemastery Config schema | The exported Config (the minimal shared block + the module's own fields). |
| config | ledger file | The module's own ledger, SEPARATE from the family's logs (one log per module). |
Install
The package as the profile adds it.
pnpm add @playform/plugin-dsh-normalize-fileConfiguration
Every knob this plugin documents, with its default.
| Field | Type | Default | Meaning |
|---|---|---|---|
| log | boolean | true | Ledger enabled - write the durable log file (volatile). |
| logFile | string | ~/.dsh/playform/plugin-dsh-normalize-file.log | The file-flavor ledger, SEPARATE from the family's logs (volatile; overrides the minimal shared block's empty default). |
| replacement | string | - | The dash replacement - the transform's ONLY knob (ASCII hyphen-minus by default; volatile: the next tool call picks it up with no remount). |
| scopes | object | (see leaves) | Granular scope gates, ALL volatile as one object (live toggling, no remount): one leaf change commits one update whose whole object the refresh listener re-reads. |
| scopes.conversation | boolean | true | The conversation/text/block-end gate. |
| scopes.reasoning | boolean | true | The reasoning sub-gate. |
| scopes.toolInput | boolean | false | The tool-call arguments arm. |
| scopes.toolResults | boolean | false | The tools/post-execute arm. |
| scopes.files | boolean | true | The normalize-file tool itself - the ONLY arm this tool flavor has; off means the tool returns the unchanged changed: false result with no read, no write, no ledger line. |
| scopes.batch | boolean | false | The agent/pre-step arm. |
| toolResultsExempt | string[] | ["read", "edit", "raw-write", "normalize-file", "ccr_retrieve", "subagent", "ask_user_question"] | Tool-results exemption list (volatile): a tool result whose exec name is listed passes through by identity. |
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 documents no seam for this package, so it has no neighbour to name at one.
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-plugin-dsh-normalize-file.
It registers the same surface under the other runtime, and the two trees differ in the wiring: the Effect tree returns Effect envelopes where this one returns the dispatch envelope.
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 call and its output; the gate, the fence, and the ledger behind it never reach the transcript.
Its shape machine belongs to Architecture.
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 normalize-file tool, the normalize-overpass command, and the factory's write executor.
The file-content normalizer: the family's six transforms, run on a file already on disk.
- One file read, the six tables applied, a per-character count
- A write only when the count is above zero
- A one-shot overpass over tool results or a step batch
- One journal record per rewrite, and none for a no-op
One agent-chosen file per call: the tool reads, applies the family's six transforms with a count, and writes only when the count is above zero.
- normalize-file
- Takes
- a path
- Returns
- the count and the fresh version, or the unchanged result when the count is zero
- normalize-overpass
- Takes
- files, batch, results on or off, or scopes
- Returns
- the one-shot arm, armed for the next tool result or the next step
The six transforms are the dash, quote, ellipsis, space, invisible, and fullwidth tables, which is the same chain raw-write applies under its normalize flag.
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. | read |
- 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.