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-factory
Builds every plugin: config, tools, and seams
Facts
- Package
- @playform/plugin-dsh-factory
- Version
- 0.2.1
- Kind
- plugin
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/plugin-dsh-factory
What it does
Builds every plugin: config, tools, and seams.
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 loader apply
why
The bundle row mounts the class plugin, and the constructor registers pluginFactory on the context.
- 02inject: a consumer declares fs and pluginFactory
why
The loader holds the consumer PENDING until the service exists, so the bundle order never decides whether a hook can start.
- 03State: unwrap the volatile cells, and map the shared fields and the module's own
why
A volatile edit commits through the loader's update dispatch, in place, with no remount.
- 04Gate: target, govern marker, actor, kind, stash idempotence, basename, exclusion
why
The gate set logs nothing, because the consumer composes its own lines.
- 05branch a gate verdict other than pass
why
The consumer stops before the write, and says so in its own line.
- 06Write: intent, policy, observe, stash, transform, then the write itself
why
One executor, with replaceIfVersion at the observed version.
- 07Refresh: re-emit fs/observed with the fresh version, under the same actor
why
The observation record stays current, so the author's next write is not a conflict.
- 08branch a governed basename
why
The direct-govern fold runs the registered steps in order, awaited, one try/catch per step.
- 09Append: the consumer's message to the logger and to its own ledger file
why
The factory owns no string of its own.
- 10store ~/.dsh/plugin-dsh-factory.log
why
One log per module, with the module as the line prefix.
- 11fail a consumer throw
why
Contained: one logger-only line, and the host keeps running.
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 |
|---|---|---|
| service | ctx.pluginFactory | The one service (class PluginFactory extends Service, inject = ["fs"]). |
| service | State | The State builder (State(ctx, config, {module, fields, policyFileName?, journalDomain?})). |
| service | Append | The family's one ledger mechanism (Append(state, message)). |
| service | Match / Discover / Parse | The exclusion match, the registry/policy discovery and the JSON parse. |
| service | ResolvePolicy | The union keep-list discovery (P3 chain-keys included). |
| service | Gate / Write / GuardedWrite | The gate set, the sandbox-fenced write and the version-guarded write. |
| service | Refresh / Continue | The observation-policy refresh and the detached contained continuation. |
| service | Wire / Attach / Journal | The wiring helper, the effects attach and the shared P5 record sink. |
| service | Trace / Seam / UpdateKey | The trace bus, the probe-once seam accessor and the update key. |
| service | Schema | The Schemastery schema factory (Schema(shared?, module?)). |
| service | RegisterGovern / Govern / GovernSteps | The direct-govern pair and the step registry. |
| config | named exports Policy / Decide | The shared policy-block builder and the verdict lookup ("auto" / "approve"). |
Install
The package as the profile adds it.
pnpm add @playform/plugin-dsh-factoryConfiguration
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 | "" (per-module default passed as shared.logFile) | The ledger file - one separate log per module (volatile). |
| updateCooldownMs | number | 3000 | Cooldown between update-stage dispatches, per directory (volatile). |
| mutationTools | string[] | ["write", "edit", "str_replace_editor", "raw-write"] | Actor tool names whose fs/observed events trigger the module (volatile). |
| policyFile | string | "" | Global policy file; empty means discovery (Function/Resolve). |
| exclude | string[] | ["node_modules", ".git", ".dsh", ".pnpm", ".store", "DeepSeek Harness.app"] | Excluded path segments (anywhere mode, exclusion-first). |
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.
- loader/volatile-update
Twin
The same package in the other release tree, when one exists.
Its twin is ets-plugin-dsh-factory.
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 |
Required by
The packages that depend on this one, so the family's edges read in both directions.
hook-dsh-batch-decision
hook-dsh-cargo-governor
hook-dsh-ccr
hook-dsh-comment-filter
hook-dsh-convention-suggester
hook-dsh-doc-suggester
hook-dsh-edit-suggester
hook-dsh-graph-suggester
hook-dsh-lesson-nudge
hook-dsh-live-containers
hook-dsh-normalize-dash
hook-dsh-normalize-ellipsis
hook-dsh-normalize-fullwidth
hook-dsh-normalize-invisible
hook-dsh-normalize-quotes
hook-dsh-normalize-spaces
hook-dsh-package-governor
hook-dsh-package-pinner
hook-dsh-replay-suggester
hook-dsh-search-suggester
hook-dsh-test-suggester
hook-dsh-tool-coach
hook-dsh-workspace-approve
hook-dsh-workspace-audit
hook-dsh-workspace-govern
hook-dsh-workspace-journal
hook-dsh-workspace-merge
hook-dsh-workspace-monitor
hook-dsh-workspace-observe
hook-dsh-workspace-operate
plugin-dsh-batch-edit
plugin-dsh-batchstate
plugin-dsh-cost
plugin-dsh-cost-analysis
plugin-dsh-feedback
plugin-dsh-gitguard
plugin-dsh-ingester
plugin-dsh-lesson-review
plugin-dsh-normalize-file
plugin-dsh-pass-on
plugin-dsh-pattern
plugin-dsh-queue
plugin-dsh-route
plugin-dsh-skill-learn
plugin-dsh-workspace
plugin-dsh-workspace-authority
plugin-dsh-workspace-context
plugin-dsh-workspace-evidence
plugin-dsh-workspace-graph
plugin-dsh-workspace-reflect
plugin-dsh-workspace-semantics
Person
What the person waits for, reads, and never sees.
The person sees the effect of a service another package calls, and the contract itself stays invisible until a caller breaks it.
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 ctx.pluginFactory service, the ctx.trace bus it provides, and the fs service it injects.
The furnace of the family: one service holding the ledger, the gate, the write, and the fold every plugin used to copy.
- A consumer's state, from the shared cells and the module's own fields
- The gate set, then one executor with the version fence and the re-emit
- A transform detached and contained, so a throw is one line
- The direct-govern fold, in registered order, one try/catch per step
- State the consumer's state: the shared cells unwrapped, the module's fields mapped
- Append the ledger: one logger line and one dated line in the consumer's own file, never throwing
- Match the exclusion-first segment match over a path
- Discover the nearest registry or policy file, found by a plain-fs walk
- Parse the JSON parse of an auxiliary file, contained
- ResolvePolicy the union keep-list: the global policy, the directory's, the nearest registry's
- Gate the gate set in order, and the verdict it reaches, logging nothing
- Write the one write executor: intent, policy, observe, stash, and transform
- GuardedWrite the write behind the version fence, with the stash pre-registered
- Refresh the observation re-emit at the fresh version, under the same actor
- Continue a transform run detached and contained, off the settled chain
- Wire the fs/observed registration on the root context
- Attach the fiber-owned effects: jobs, inflight, and the journal domain
- Journal the best-effort record into the consumer's journal domain
- Schema the schema factory: the shared block plus the module's fields
- UpdateKey the namespaced inflight key an update stage must register under
- Seam the probe-once accessor for an optional service
- RegisterGovern a direct-govern step for one basename, replaced in place on a reload
- Govern the direct-govern fold: the registered steps in order, one try/catch each
- the three governance hooks
- the six normalize flavors
- plugin-dsh-normalize-file
- the orchestration plugins
Rule One service and no Config of its own, because it is the config mechanism: the schema, the ledger, the gate, and the write are the methods its consumers compose.
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
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.