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-workspace-operate
Turns intent into typed proposals: rename, connect, replace
Facts
- Package
- @playform/hook-dsh-workspace-operate
- Version
- 0.2.1
- Kind
- hook
- Release
- Classic
- Licence
- CC0-1.0
- Directory
- Classic/packages/hook-dsh-workspace-operate
What it does
Turns intent into typed proposals: rename, connect, replace.
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.
- 01workspace_propose: a rename, a connect, or a replace, with its version fence
why
The request shape is the first thing the rules look at.
- 02The resolution rules: the shape, the graph, the fence, the staleness, the span
why
One entry point, three guard chains, and a fixed order of arms.
- 03branch The graph service is absent
why
A rename and a connect cannot be resolved without it, and neither can be faked.
- 04fail graph-unavailable: refused rather than guessed
why
The replace path is the one that still resolves, because its span is read from the file.
- 05branch The fence is missing, or it contradicts the observed version or the file's own stat
why
A fence is the caller's token, or the hook's own heard version, and never an invention.
- 06fail missing-version or stale-version
why
A proposal made against a moved file is refused, not amended.
- 07branch The live proposal table is at maxProposals
why
A full table refuses rather than evicting the oldest proposal.
- 08fail refused full (<n> live proposals)
why
The refusal carries the count, so the bound is visible.
- 09pass proposed: the id and the sequence are assigned, and the proposal is stored
why
The hook never writes a file; applying is the approve and merge steps' work.
- 10
- seam fs/observed
why
The fence tracker hears every write, silently, and writes nothing itself.
- 11store workspace_operate: the proposal table, best-effort
why
An absent storage facility degrades to memory rather than failing the propose.
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 tools/pre-execute as a waterfall and already has listeners there: auto-review, hooks-claude-code, hooks-codex, liveshare, tool-jobs, workspace-changes.
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 |
|---|---|---|
| service | workspaceOperate | (proposeRename, proposeConnect, proposeReplace, list, get, withdraw, statistics). |
Install
The package as the profile adds it.
pnpm add @playform/hook-dsh-workspace-operateConfiguration
Every knob this plugin documents, with its default.
| Field | Type | Default | Meaning |
|---|---|---|---|
| enabled | false | the master switch | |
| log | true | the ledger switch (shared cell) | |
| logFile | ~/.dsh/playform/hook-dsh-workspace-operate.log | the ledger | |
| domain | workspace_operate | the KV domain name | |
| maxProposals | 500 | the live-proposal cap | |
| limitDefault | 50 | the default list limit | |
| limitMaximum | 500 | the maximum list limit | |
| policy.* | D6 defaults | the per-action allowlist |
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 2 answers at tools/pre-execute, in the order the family registers them.
| Answer | Effect | Position |
|---|---|---|
| hook-dsh-workspace-govern | rewrite | neighbour |
| hook-dsh-workspace-operate | advise | this package |
Arms
The seams its source also registers, beyond the one its README documents.
Its source registers no seam beyond the one its README documents.
Twin
The same package in the other release tree, when one exists.
Its twin is ets-hook-dsh-workspace-operate.
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 note arrive as context rather than as content, so the result it is about reads exactly as it did 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 workspaceOperate service, the workspace_propose and workspace_proposals tools, and the fs/observed fence tracker.
The operation engine: typed proposals, and the refusal-to-guess beside them.
- Proposes a rename, a connect, or a replace, and never writes a file
- Refuses with a typed reason: a bad request, an absent graph, an unknown symbol, a stale fence, a full table
- Tracks the version fence from fs/observed, so a proposal against a moved file is refused
- Records the proposal, and leaves the applying to the approve and merge steps
Its shape machine belongs to Person.
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.