dsh-windows-parallel-mcp 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,378 @@
1
+ # Changelog
2
+
3
+ [English](CHANGELOG.md) · **中文** · [日本語](CHANGELOG.ja.md) · [한국어](CHANGELOG.ko.md) · [Français](CHANGELOG.fr.md) · [Deutsch](CHANGELOG.de.md) · [Italiano](CHANGELOG.it.md) · [Español](CHANGELOG.es.md) · [Português](CHANGELOG.pt.md) · [Русский](CHANGELOG.ru.md)
4
+
5
+ > **中文 translation — work in progress.** The English canonical text follows below; task-specific polishing replaces it section by section. The structure, code samples and numbers are already final — only the prose is pending. See the en document for the authoritative wording.
6
+
7
+ Dates are the registry `time` values for each version, not git commit dates — a commit date records
8
+ when someone typed, a publish time records when a version became installable, and only the second
9
+ one is a promise to anyone installing it.
10
+
11
+ ## 0.4.0 — 2026-11-23
12
+
13
+ > 没有运行时变更,全部工作用于让「注释是真的」可被机器验证。`lib/` 全量 JSDoc + checkJs(107 错 → 0),手写的 `types/index.d.ts` 成为实现侧唯一真源(改它就会红),并且代码未动是逐 AST 节点证明的而非声称的;另修掉测试夹具的两个不稳定真因(pre-layout oracle 竞态、目标窗口被遮挡)。未新增任何依赖。详情见英文权威条目。
14
+
15
+ ## 0.3.0 — 2026-11-23
16
+
17
+ > 十种语言与类型化公开接口。文档现以 DSH 生态十语发布,中文为与英文并列的一等切换;安装明确为 desktop / 非desktop 两类(desktop 只能用内置 pnpm 手动补,禁 dsh plugin add);新增 types/index.d.ts 类型契约。详情见英文权威条目。
18
+
19
+ ## 0.2.0 — 2026-11-23
20
+
21
+ > Published 2026-11-23T06:26:52Z (registry `time` for 0.2.0, read from the packument, not from a commit
22
+ > date).
23
+
24
+ **The promise changes shape, so the version changes major-minor.** 0.1.x said: no physical input at
25
+ all, ever. That was true and cheap to enforce by absence. 0.2.0 keeps it as the DEFAULT and adds an
26
+ opt-in tier that can move the cursor and type into the foreground window — which means the old claim
27
+ cannot stay as written, and a release that quietly kept the old wording would be the exact failure
28
+ mode this project keeps writing gates against.
29
+
30
+ ### Added — the takeover tier (`takeover:true`)
31
+
32
+ - **A fourth tier.** `quiet` (window messages) and `bounded-flash` (UIA pattern, one reversed flash)
33
+ are unchanged. `takeover` is entered only by an explicit request AND with both settings gates on;
34
+ it places the real cursor on the action point, holds the focus for the duration, and always
35
+ restores. `refuse` is unchanged.
36
+ - **The HUD's phase is a colour, not a sentence.** `arming` is amber, `active` red, `done` green —
37
+ encoded twice (whole surface tint + a 5px accent bar) because the owner is looking at the target
38
+ window, not at a 470×104 window in the corner. `test/hud-test.ps1` asserts it from the real pixels
39
+ (C18, five arms: each phase's dominant hue, all three distinct, and the surface tint changing too).
40
+ - **A three-phase HUD as a hard precondition.** `arming` (default 800 ms, cancellable) → `active`
41
+ (elapsed/limit clock and injected-character count) → `done`. `WS_EX_TOPMOST|WS_EX_NOACTIVATE`,
42
+ `ShowActivated=false`, measured to leave `GetForegroundWindow()` unchanged. Empty space is
43
+ click-through via a `WNDPROC` subclass returning `HTTRANSPARENT`; the button stays clickable.
44
+ No HUD ⇒ `takeover_unavailable`, never a silent takeover.
45
+ - **Three interruption paths, one flag.** HUD stop button, a global abort chord (candidates from
46
+ `Ctrl+Alt+X`; the one that actually registered is displayed and reported as `abortChord=`), and the
47
+ host's cancellation (`exec.signal` → `%LOCALAPPDATA%/wpm/takeover-abort.<pid>` latch file, because
48
+ the worker is single-threaded and cannot read a request mid-action). Interruption returns
49
+ `takeover_aborted` WITH `cursorRestored` and `injectedChars`.
50
+ - **Keyboard injection, takeover-only** (`keyInput:"inject"`). `SendInput` + `KEYEVENTF_UNICODE`,
51
+ per character, interruptible every 8 characters or 50 ms. The foreground is asserted to BE the
52
+ target before sending and re-asserted at send time — measured: text sent while another window was
53
+ in front landed in that window. Success reports `effect=reported-by-send`, never "verified".
54
+ No hardware scancode is carried; a scancode-only target would ignore it (documented limitation).
55
+ - **New refusals, three copies kept in step:** `takeover_unavailable` and `keyinject_unavailable`
56
+ (decision layer), `takeover_aborted` (runtime layer).
57
+ - **New settings:** `takeoverAllowed=false`, `keyInjectAllowed=false`, `takeoverMaxMs=10000`,
58
+ `takeoverArmMs=800`. Both gates default OFF so an upgrade cannot start moving the cursor by itself.
59
+ - **New gates:** `check-no-cursor-control.mjs` became a whitelist (`SetCursorPos` only in
60
+ `takeover.ps1`, `SendInput` only in `input-inject.ps1`, mouse events banned everywhere), and a new
61
+ `check-takeover-path.mjs` asserts G1–G5 (file confinement, branch-scoped loading,
62
+ HUD-checked-before-act, move-and-restore in one `try/finally`, keyboard-only events) and proves
63
+ itself non-vacuous by injecting one violation per assertion. `check.mjs` now runs 11 gates.
64
+ - **`proof` grew a declared takeover:** cursor motion on this tier is reported as `declared`, but
65
+ `cursorRestored=false` is a hard `proof=fail` with the reason 「借了未还」.
66
+
67
+ ### Withdrawn — the terminal claim was measured false
68
+
69
+ The plan for this release was to drive a terminal by typing into it. Two probes disagree, on this
70
+ host, with everything else held correct: `scripts/probe-console-inject.ps1` sent 242 Unicode events
71
+ into a dedicated Windows Terminal window (foreground verified, Enter sent) and the shell executed
72
+ nothing; `scripts/probe-console-scan.ps1` repeated it with layout scan codes (262 events) and got the
73
+ same result. GUI targets are unaffected — the same code types Chinese text into a WinForms edit
74
+ successfully. So `terminal_no_door` stays, its reason now points at what DOES work (a target with a
75
+ real door), and the documentation says plainly that the terminal is neither writable nor readable
76
+ here. A capability that cannot be demonstrated is not shipped as a promise.
77
+
78
+ ### Fixed / hardened
79
+
80
+ - **The marker had a white square behind it.** `overlay.ps1` set `AllowsTransparency` but never set
81
+ `Background`, and a WPF `Window`'s default background is `SystemColors.WindowBrush` (white) — so the
82
+ 22px marker painted an opaque white tile with the blue ring inside it. Geometry could not see this
83
+ (the rect was correct and click-through still worked), which is why it survived every existing arm.
84
+ Fixed with an explicit `Transparent` background and pinned by a NEW PIXEL ARM in
85
+ `test/overlay-test.ps1`: `PrintWindow(PW_RENDERFULLCONTENT)` the marker and assert the corners are
86
+ unpainted while the centre still carries the ring. Measured before/after with the same probe — corner
87
+ rgb **217,217,217 → 0,0,0**, centre rgb **166,204,217 → 0,38,51**; removing the fix turns the arm red.
88
+ - `lib/config.js`: on the Schemastery path, unknown setting keys were silently carried into the
89
+ validated value (a typo looked accepted while doing nothing). They are now rejected, matching the
90
+ shim's rule that the plugin test already pinned.
91
+ - `docs/refusals.md`: `terminal_no_door` no longer claims "no child HWND" — the measured truth is
92
+ "three child HWNDs, none writable" (drag bar, DirectComposition target, 0×0 input sink).
93
+
94
+ ### Measured for this release (re-runnable from `scripts/`)
95
+
96
+ - `SetCursorPos(+40,+20)` read back exactly, restore landed exactly (`probe-setcursor-pos.ps1`).
97
+ The elevated-foreground arm could not be arranged from a non-elevated process — recorded as
98
+ unmeasured, not guessed.
99
+ - Injected text goes to the FOREGROUND window, not the intended one (`probe-sendinput-unicode.ps1`, B
100
+ in front ⇒ text in B and nothing in A; A in front with Chinese ⇒ landed in A).
101
+ - HUD click-through: `HwndSource` hook receives `WM_NCHITTEST` but cannot change hit-testing; a
102
+ `WNDPROC` subclass works (`probe-hittest-children.ps1`).
103
+ - Desktop test arms (manual, because they move the real pointer): `test/hud-test.ps1` 19/19,
104
+ `test/takeover-test.ps1` 22/22, `test/keyinject-test.ps1` 11/11 with one skip (the real-console
105
+ arm, superseded by the two console probes above).
106
+ ## 0.1.6 — 2026-11-21
107
+
108
+ Two failures that shared one refusal code are split — because the reader's next step differs.
109
+
110
+ **The defect.** Everything door-less came back `unreachable`. Two of its causes are opposites: a
111
+ tree that was never populated (the application has UI Automation off — measured on this desktop:
112
+ uTools walks to zero content elements on three in-place reads spanning 2.2 s and never grows one),
113
+ and a probe that threw (the tree could not be measured at all). The probe's own diagnostic was
114
+ already being produced and then wasted: `uiaErr` reached the result object only as a reason-string
115
+ suffix that nothing branched on — 0.1.5's point-probe work found it as dead data. A caller reading
116
+ `unreachable` could not tell "pick another target" from "make the app enable accessibility" from
117
+ "read the exception".
118
+
119
+ **Fixed**
120
+ - **`uia_tree_empty`** — the walked tree holds **zero content elements**. The criterion is
121
+ structural, not numeric: Pane/Group/Image/Text/Thumb/Separator/TitleBar are the window's own
122
+ shell; anything else (Button, Edit, Document, Custom) is something an application chose to
123
+ expose. Count alone lies — an a11y-off Chromium window still exposes one
124
+ `Chrome_RenderWidgetHostHWND` shell pane, and the same uTools window measured raw=0 and raw=1
125
+ the same day depending on its own state while content stayed 0 throughout. The reason states
126
+ the observation, not an exclusive cause: a provider that answers nothing (a hung pump) reads as
127
+ empty too, instantly, without throwing — that second cause is documented, not hidden.
128
+ - **`uia_probe_failed`** — the probe threw before it could measure; no conclusion about the
129
+ target is licensed. The exception text rides the reason as `[uia: …]`. Measured: WM_CLOSE
130
+ landing 40 ms into the call (between the `IsWindow` check and `FromHandle`) returns this code
131
+ with the original exception text, not `unreachable`. Probe failure outranks tree-empty — a
132
+ measurement that threw cannot also certify emptiness — and a usable door outranks both.
133
+ - **The refusal reason carries the probe's context for all three codes**: which point was probed
134
+ and what it found there, plus the exception when one exists. A diagnosis with the evidence
135
+ redacted is not a diagnosis.
136
+
137
+ **Also**
138
+ - The reverse assertion about Chromium's "lazy" accessibility is written where the next reader
139
+ will trip over it (`scripts/chromium-a11y-flag.mjs` conclusion, README's measurement section):
140
+ the same window re-read in place three times (+0/+700/+1500 ms) never grew content, an a11y-on
141
+ tree answers completely on the first query — so the engine does NOT re-query with a deadline
142
+ and no retry exists anywhere. The instrument ships:
143
+ `scripts/uia-tree-content.ps1` reads the same two counters with the same shell-type table the
144
+ engine decides on.
145
+
146
+ Measured instances behind every claim above: real-window end-to-end refusals for all three codes
147
+ (`uia_tree_empty` via both the scan and the point path on uTools; `unreachable` on a tree-alive
148
+ window; `uia_probe_failed` on a mid-probe destroy), decision-table arms for each new branch and
149
+ its precedence, and `refusals-test` 11 passed with 2 codes still declared uncovered
150
+ (`action_failed`, `restore_failed`).
151
+
152
+ ## 0.1.5 — 2026-11-21
153
+
154
+ A click that acted on the wrong control, and returned `ok:true` while doing it.
155
+
156
+ **The defect.** The contract (`src/schema/tools.json`) makes `x`/`y` **required** for `click` and says
157
+ a point that does not resolve inside the target is refused "instead of being sent somewhere else".
158
+ The message tier honours that (`Resolve-WpmChildAtPoint`). The **UIA tier did not read `x`/`y` at
159
+ all**: it scanned descendants and invoked the FIRST element carrying any usable pattern, then
160
+ reported success. On any target without a message door — WPF, UWP, WinUI3, i.e. most modern
161
+ applications — `click` at the coordinates of one control operated on a different one entirely, and
162
+ the marker was still drawn at the requested point, so the product's own evidence pointed at a place
163
+ it had not acted on. This is worse than a refusal: a refusal is honest, this was a wrong action
164
+ wearing a success report.
165
+
166
+ Measured, not inferred. A two-button WPF target at known coordinates, with the click counters
167
+ written by the handlers themselves:
168
+ - pre-fix engine, click aimed at **Bravo**: `alpha 0->1`, `bravo 0->0`, `last='alpha'`, result `ok:true`
169
+ - fixed engine, same call: `bravo 0->1`, `alpha 0->0`, `last='bravo'`, `channel=uia tier=bounded-flash`
170
+
171
+ **Fixed**
172
+ - The UIA tier resolves the element **at the point** (`Resolve-WpmUiaElementAtPoint`,
173
+ `AutomationElement.FromPoint`), climbs to the nearest ancestor carrying a usable pattern, and
174
+ refuses when the point does not belong to the named window. Naming an element with
175
+ `elementName` still takes the by-name path: there the caller asked for that control.
176
+ - **Ancestry is proven before the pattern is looked for.** The first version of this fix searched
177
+ while climbing and returned on the first pattern — which reproduced the original defect one level
178
+ down: a point outside the target climbed into the taskbar, found a patterned button there,
179
+ invoked it and answered `ok:true`. Caught by the "point outside the target" arm of the new test,
180
+ not by review.
181
+ - `uiaErr` was produced and read by nobody (`grep` found zero consumers), so a walk that *threw*
182
+ reached the caller as "no message door and no usable UIA pattern" — a factual claim that may be
183
+ false. The probe now also carries `uiaReason`, and a refusal appends what the point probe found,
184
+ so `unreachable` no longer collapses two different worlds into one sentence.
185
+
186
+ **Added**
187
+ - `test/uia-click-target.ps1` — a two-button WPF target that publishes its button centres in
188
+ **physical pixels** (the test that computed them itself was 1.5x off; that DPI lesson is written
189
+ into the file) and writes click counts from the handlers that fired.
190
+ - `test/uia-click-truth.mjs` — 12 arms, and a new gate (`scripts/check.mjs`, now 13). It fails in
191
+ both directions: point-at-Bravo must bump Bravo and not Alpha; a point outside the target must be
192
+ refused, must fire neither button, and must say *why*.
193
+
194
+ **Unchanged** — the refusal-code set, the pure judgment, the message tier, the marker.
195
+
196
+ ## 0.1.4 — 2026-11-21
197
+
198
+ (Registry time is the authority for the timestamp; same convention as below.)
199
+
200
+ The source became reachable. Until now the package had **no repository, homepage or bugs field** —
201
+ not an oversight at authoring time, but a consequence of the repo not existing: there was no URL to
202
+ put there. `git remote -v` was empty through 0.1.0–0.1.3, so every claim in the README pointed at a
203
+ tarball and nowhere else. Creating the repository is what unblocks this, and it is the only reason
204
+ this release exists.
205
+
206
+ **Added**
207
+ - `repository`, `homepage` and `bugs` in `package.json`, so npmjs.com links to the source and to an
208
+ issue tracker instead of leaving a reader with a download and no way to report a refusal that
209
+ should not have happened.
210
+ - README now names the repository in its opening section, next to the non-affiliation notice.
211
+
212
+ **Unchanged**
213
+ - No behaviour. `lib/`, `src/engine/` and the schema are byte-identical to 0.1.3 — this release only
214
+ makes the existing artifact findable. The gate is still green (12 checks), and the profile on the
215
+ authoring machine keeps running 0.1.3 code with an identical `lib` hash.
216
+
217
+ ## 0.1.3 — 2026-11-21
218
+
219
+ (Registry time `2026-11-21T01:20:58Z` UTC (= `2026-11-21 09:20` Beijing; the date follows the same UTC convention as the entries below — the publish time is the promise.)
220
+
221
+ 0.1.2 shipped a proof that answered "did we disturb you". It never answered "did the thing happen" —
222
+ the engine computed `effect` on every action call and the Node half dropped it on the floor, so
223
+ `proof=pass` could mean *"clicked, and the app ignored it"*. This release closes that link, and then
224
+ closes the hole the missing link was hiding.
225
+
226
+ **Added**
227
+ - `effect=` in every action result's text and `effect` in the structured output, with three values
228
+ that name the SPEAKER rather than the confidence: `unverified` (nobody), `reported-by-send` (the
229
+ message was delivered), `reported-by-pattern` (the UIA call returned). README carries the table;
230
+ the code comment above the branch pins the same three lines. A refusal reports no effect at all —
231
+ no action ran, so nobody can have spoken.
232
+ - `lib/proof-window.mjs` gains an effect dimension: `evaluateProof(samples, { effect, actions })`.
233
+ A call whose channel reported nothing is capped at `inconclusive`; a batch caller whose every
234
+ attempt failed gets `fail` regardless of displacement. Both are opt-in — omitting `effect` leaves
235
+ every pre-0.1.3 caller's behaviour untouched, which is why the 32 pre-existing arms did not move.
236
+
237
+ **Corrected**
238
+ - The gate could read a total no-op as a green light: zero cursor displacement, zero foreground
239
+ switches, nothing accomplished => `pass`. The old plan named the case ("50 failed calls, zero
240
+ displacement, FAIL") and never landed it. It is landed now, with the arms that fail in the
241
+ direction that matters: `unverified` + a still desktop is not a pass, and 50 failed attempts is a
242
+ `fail` whose reason says 动作未生效.
243
+ - Word boundaries: `reported-by-send` says the message was DELIVERED. It does not say the application
244
+ processed it, and `reported-by-pattern` does not say the interface changed. Single `reported-by-*`
245
+ evidence still passes (it is real, just not independent) and the reason says so out loud: 未独立验证.
246
+
247
+ **Verified**
248
+ - `node test/proof-window-test.mjs` — 40 arms, 0 failed (32 carried over unchanged, 8 new).
249
+ - `node test/plugin-test.mjs` — 54 arms, 0 failed, including a real `no_hwnd` refusal carrying no
250
+ effect and the three legal values round-tripping through the shipped projection.
251
+ - `node scripts/check.mjs` — 12 gates green, including the marker end-to-end gate, which on this
252
+ machine's real desktop printed
253
+ `proof=pass [cursor=pass fg=pass focus=pass] :: effect=reported-by-send: a channel reported the call
254
+ returned -- 未独立验证`.
255
+
256
+ ## 0.1.2 — 2026-11-20
257
+
258
+ (Registry time `2026-11-20T17:15:15Z` UTC = `2026-11-21 01:15` Beijing; the date follows the same
259
+ UTC convention as the entries below, because the header's rule is "the publish time is the promise".)
260
+
261
+ The proof chain became real: what started as "the README says the cursor never moves" ended as a
262
+ per-call measurement, a build-time guarantee, and — recorded honestly — three judgment designs that
263
+ the real desktop rejected before one survived.
264
+
265
+ **Added**
266
+ - Every `click` carries a disturbance proof: `proof=pass|inconclusive|fail|insufficient(…)` in the
267
+ text plus structured `proof` / `proofDimensions`. The engine samples cursor/foreground/focus/
268
+ last-physical-input-age in two windows — a pre-action control (nothing running, by construction)
269
+ and inside the settle wait it already pays; four read-only syscalls, no new process.
270
+ - `lib/proof-window.mjs` — the one pure implementation of the judgment. `sampler.mjs` delegates to
271
+ it too: the fleet reachability numbers and the per-action proof cannot drift into two instruments
272
+ sharing one name. 32 synthetic unit arms pin the semantics, including cases that must FAIL —
273
+ a verdict function that only ever says pass is worthless, and the arms check it can say otherwise.
274
+ - `scripts/check-no-cursor-control.mjs` — build gate: no shipped engine file may contain
275
+ `SetCursorPos` / `SendInput` / `mouse_event` / `keybd_event`. Verified non-vacuous (injecting
276
+ SetCursorPos turns it red; removing it turns it green, no residue).
277
+ - `scripts/idle-baseline.mjs` — re-runnable probe of what the cursor does with NOTHING running.
278
+ Measured answer on the authoring machine: up to 3 unexplained gaps / 11 px. This is why the
279
+ runtime cursor dimension reports and never accuses.
280
+ - Marker placement through the shipped plugin is verified end-to-end against an independent oracle:
281
+ a real click puts the marker over the point it hit in physical pixels, and the marker is proven
282
+ (via `EnumWindows`) topmost-over-the-target while `GetForegroundWindow` stays unchanged.
283
+
284
+ **Corrected**
285
+ - The cursor guarantee was MEASURED OUT of the runtime sensor and INTO the build gate. Two runtime
286
+ rules failed on clean clicks (a strict 1 px bar: 3.16 px; a control-window noise floor: 7.07 px,
287
+ the floor itself duration-biased). Positions cannot attribute motion to a cause; the idle baseline
288
+ proves even multi-gap motion is ambient on a live desktop. Tuning the number until reds disappear
289
+ would have been laundering, so the rule changed shape instead: zero unexplained gaps passes,
290
+ anything else is inconclusive with the number surfaced, and the actual promise (no cursor control
291
+ exists in the shipped code) is decidable at build time.
292
+ - The disturbance sensor no longer contradicts the product contract: the bounded-flash tier raises
293
+ foreground deliberately and restores it; those switches are reported as `declared`, not failed.
294
+ ("Never KEEP the foreground" is owned by the restore table — `restore_failed` — not by sampling.)
295
+ A pass verdict can no longer print "no switches" while carrying declared ones.
296
+ - Overlay cold-start wait raised to 6 s: the runspace JITs WPF past the old 2.5 s budget on a cold
297
+ worker, and the caller read a false "overlay not running".
298
+ - Gate philosophy for occluded desktops, applied to a TOCTOU case (a fullscreen video window moving
299
+ over the point between premise-probe and click): the engine's refusal is correct behaviour, so the
300
+ arms re-probe and convert to a NAMED SKIP. Desktop the test doesn't control never reads as red;
301
+ and a silent skip never reads as tested either.
302
+ - A real product bug in the marker path, caught by the gate going red intermittently (and fixed at
303
+ the cause, not the symptom): the overlay's readiness handshake **polled one flag and judged
304
+ another**. It waited for `OverlayHwnd` — assigned right after `Show()`, before the ex-style trio
305
+ is applied — but reported `running = OverlayOn`, set only after trio + hotkey + pump. So during
306
+ that window `status` said "not running" about an overlay that was initialising, AND read back a
307
+ half-styled window (`exStyle=0x00080008`, TOPMOST|LAYERED but NO TRANSPARENT — WPF's own bits
308
+ before the explicit trio lands). The Node half's fire-and-forget `markPoint` sequenced placement
309
+ behind the handshake; the handshake rejected; the marker request was skipped for a click that had
310
+ already answered, so nobody ever retried and the marker stayed parked at (-2000,-2000). One
311
+ warning, then silence forever. That was not a flake to be slept past:
312
+ the readiness flag is now the judgment flag (`OverlayOn`), a budget that merely expired reports a
313
+ third state (`starting`) instead of masquerading as a crash, and placement retries on a bounded
314
+ 6 s deadline that stops immediately when the start is *provably* dead (a reason + not starting).
315
+ Patience lives where a stop condition can be named — the worker-side sleep cannot.
316
+
317
+ **Verified for this version**
318
+ - 12-arm gate green; live clicks through the SHIPPED plugin: proof=pass across 18–22 sample gaps
319
+ with `[cursor=pass fg=pass focus=pass]`; four-run stability: 3 pass + 1 ambient inconclusive
320
+ surfaced as WARN (anti-vacuity: weaker-than-pass never prints as INFO).
321
+ - The independent marker oracle now ANCHORS on the overlay handle the product reports via
322
+ `status` (`overlayHwnd=...`). Matching by title alone could grade a leaked same-titled window from
323
+ an earlier run — certifying a marker we never placed; more than one candidate is now reported as
324
+ ambiguous rather than silently resolved to `$hits[0]`.
325
+ - `lib/proof-window.mjs` confirmed inside the tarball (20 entries).
326
+
327
+
328
+
329
+ ## 0.1.1 — 2026-11-20
330
+
331
+ The same product as 0.1.0. This version exists to fix the packaging chain, not the behaviour.
332
+
333
+ **Changed**
334
+ - Repository line endings normalised to LF. 0.1.0 was published from a tree where an editing script
335
+ had converted ten files to CRLF, so the registry tarball (sha256 `84196f21…`) and this repository
336
+ no longer hashed the same even though the code was identical. 0.1.1 restores "the repository and
337
+ the published artifact are the same bytes".
338
+ - `publishConfig` is now explicit: `{ "access": "public", "tag": "latest" }`. The default was
339
+ already `latest`, but a default is a property of npm while a declaration is a property of this
340
+ package — the difference only shows up the first time someone publishes a prerelease.
341
+
342
+ **Verified for this version**
343
+ - 11 local gates green: PowerShell parse / encoding / static-call, refusal vocabulary, tool schema,
344
+ package contents, host half + sidecar, overlay promises, marker end-to-end, JS syntax.
345
+ - The overlay marker is measurably click-through: `exStyle 0x08080028`, foreground unchanged across
346
+ `Show()`, an independent process confirming `WindowFromPoint` at the marker's centre returns the
347
+ window underneath, and the marker covering the clicked point in physical pixels.
348
+ - The pause chord is measured, not assumed: `Ctrl+Alt+Q` is a first candidate, and on the machine
349
+ this was built on it was owned by another app (Win32 1409), so the engine walked a candidate list
350
+ and registered `Ctrl+Alt+W`. `status` reports the chord that actually registered.
351
+
352
+ **Not fixed in this version** (unchanged from 0.1.0, stated rather than implied)
353
+ - The settings pill and the four-value switch surface do not exist yet.
354
+ - `restore_failed` has no end-to-end test: it needs an elevated window that can be raised, and no
355
+ such window was present at build time. The decision-table branch is covered by unit tests; the
356
+ live path is not.
357
+
358
+ ## 0.1.0 — 2026-11-20
359
+
360
+ First version with a working plugin in it. Everything before this was a reservation stub.
361
+
362
+ - One tool, `wpm`, with five actions: `windows`, `status`, `click`, `type`, `focus`.
363
+ - A PowerShell sidecar (Windows PowerShell 5.1, nothing to install) driven over a JSON line protocol,
364
+ lazily started so the host's boot path does not pay for a tool nobody called.
365
+ - Eight refusal codes as a three-way contract: what fires, what the schema promises, what the docs
366
+ explain. A gate fails when the three disagree.
367
+ - A click-through, always-on-top marker placed at the point a click hit, and a global pause chord.
368
+ - Measured: window-message tier causes 0 foreground changes in 6/6 rounds with 0 px cursor movement;
369
+ the UI Automation tier's focus takeover returns in 15–95 ms net against a 120 ms budget.
370
+
371
+ ## 0.0.1 — 2026-11-18
372
+
373
+ Reservation stub. The name was reserved before the measurement was done; installing this version
374
+ gives you a README and nothing else. Kept for history, not for use.
375
+
376
+ ## 0.0.0-stage — 2026-11-18
377
+
378
+ The first reservation, same story as 0.0.1.
package/INSTALL.de.md ADDED
@@ -0,0 +1,126 @@
1
+ # Install
2
+
3
+ [English](INSTALL.md) · [中文](INSTALL.zh.md) · [日本語](INSTALL.ja.md) · [한국어](INSTALL.ko.md) · [Français](INSTALL.fr.md) · **Deutsch** · [Italiano](INSTALL.it.md) · [Español](INSTALL.es.md) · [Português](INSTALL.pt.md) · [Русский](INSTALL.ru.md)
4
+
5
+ > **Deutsch translation — work in progress.** The English canonical text follows below; task-specific polishing replaces it section by section. The structure, code samples and numbers are already final — only the prose is pending. See the en document for the authoritative wording.
6
+
7
+ **English** · [中文](INSTALL.zh.md) · [日本語](INSTALL.ja.md) · [한국어](INSTALL.ko.md) · [Français](INSTALL.fr.md) · [Deutsch](INSTALL.de.md) · [Italiano](INSTALL.it.md) · [Español](INSTALL.es.md) · [Português](INSTALL.pt.md) · [Русский](INSTALL.ru.md)
8
+ ## Requirements
9
+
10
+ - Windows (the engine is a Windows PowerShell sidecar; there is no portability story and none is claimed)
11
+ - Windows PowerShell 5.1 — ships with Windows 10/11. `pwsh` also works if you set `powershellPath`
12
+ - A DSH host `>=0.1.7-0 <0.3.0-0`
13
+
14
+ No Python, no `uv`, no MSVC runtime, no native module, no build step. The engine is four `.ps1` files
15
+ driven over a JSON line protocol by one long-lived STA process, started on the first tool call.
16
+
17
+ ## Install into a profile: two cases, not three
18
+
19
+ There are exactly **two** cases — desktop and non-desktop. Choose the one that matches your host.
20
+
21
+ ### 1. Non-desktop profiles (web, and any named profile)
22
+
23
+ Both routes work — pick either:
24
+
25
+ ```bash
26
+ dsh --profile <profile> plugin add dsh-windows-parallel-mcp
27
+ ```
28
+
29
+ ```bash
30
+ pnpm add dsh-windows-parallel-mcp
31
+ ```
32
+
33
+ The host adds the package to the profile's `dsh.profile.bundles`; the bundle patch
34
+ (`cordis.patch.yml`) inserts one row (`id: windows-parallel`). Nothing else is mounted or replaced.
35
+
36
+ ### 2. The desktop profile (Electron-managed) — manual, pnpm only
37
+
38
+ The `desktop` profile is owned by the Electron application. **Do not use `dsh plugin add` for it** —
39
+ the CLI refuses every command against `desktop`, including read-only ones, with
40
+ `profile "desktop" is managed exclusively by the Electron application`. There is no CLI path here.
41
+
42
+ Install it manually with **pnpm only** — specifically the desktop app's **built-in pnpm** (the
43
+ `desktopPnpm` service, not the pnpm on your PATH). The supported sequence:
44
+
45
+ ```bash
46
+ # 1. Back up the profile manifests and the installed package directory first.
47
+ # 2. Add the dependency with the built-in pnpm and refresh the lockfile.
48
+ # 3. Restart DSH so the new bundle is composed at startup.
49
+ ```
50
+
51
+ A pinned lockfile must be changed surgically: a freshly published package is rejected from the
52
+ lockfile while it is inside pnpm's `minimumReleaseAge` cooling window. Add the exact version to the
53
+ profile's `pnpm-workspace.yaml`:
54
+
55
+ ```yaml
56
+ minimumReleaseAgeExclude:
57
+ - dsh-windows-parallel-mcp@<version> # e.g. 0.2.0
58
+ ```
59
+
60
+ Without that line, `pnpm install --frozen-lockfile` fails with
61
+ `dsh-windows-parallel-mcp@<version> was published at ... within the minimumReleaseAge cutoff`.
62
+
63
+ ### Installing from a local build (both cases)
64
+
65
+ Pack first, then install the tarball — this is also how the profile's other local-development
66
+ plugins are mounted:
67
+
68
+ ```bash
69
+ npm pack --ignore-scripts # -> dsh-windows-parallel-mcp-<version>.tgz
70
+ ```
71
+
72
+ For non-desktop profiles, pass the tarball to `dsh --profile <profile> plugin add <tgz>`.
73
+ For desktop, unpack the tarball over the installed package directory (after backing it up).
74
+
75
+ A `link:` install keeps the package's REAL path outside the profile tree, and Node resolves bare
76
+ peer specifiers (`@deepseek-ai/schemastery`) upward from the real path -- so the peers never
77
+ resolve, the settings form silently disappears, and the plugin falls to its shim. A `file:` tarball
78
+ installs as a real directory inside the profile and the peers resolve exactly like every other
79
+ plugin. Measured, not inferred: `link:` -> `config schema: local-standard-schema-shim`,
80
+ `file:` -> `config schema: @deepseek-ai/schemastery`.
81
+
82
+ ## Verify it actually activated
83
+
84
+ Installing is not the same as activating, and a plugin that fails to activate prints one warning into
85
+ a busy log while its tool silently does not exist. From the package directory:
86
+
87
+ ```bash
88
+ node scripts/verify-install.mjs
89
+ ```
90
+
91
+ It creates a throwaway profile, installs the package, boots the host, asserts the plugin is **not**
92
+ named in the "did not activate" block, and removes the profile again. `--keep` leaves it for
93
+ inspection, `--profile <name>` uses a different name (it only ever deletes profiles it created).
94
+
95
+ ## Settings
96
+
97
+ Settings live in the bundle patch / profile config. On hosts where `@deepseek-ai/schemastery` is
98
+ resolvable from the plugin, the fields also appear in the settings form; where it is not, the plugin
99
+ falls back to a built-in standard-schema shim, the values still work, and **the form is not rendered**.
100
+ The fallback is reported in the host log as `config schema: local-standard-schema-shim`.
101
+
102
+ | key | default |
103
+ |---|---|
104
+ | `enabled` | `true` |
105
+ | `settleMs` | `350` |
106
+ | `requestTimeoutMs` | `20000` |
107
+ | `powershellPath` | `""` |
108
+ | `logWorkerStderr` | `false` |
109
+
110
+ ## Uninstall
111
+
112
+ ```bash
113
+ dsh plugin --profile <profile> remove dsh-windows-parallel-mcp
114
+ ```
115
+
116
+ The worker process is a child of the host and exits when stdin closes; there is no daemon, no service,
117
+ no scheduled task, nothing left behind.
118
+
119
+ ## Troubleshooting
120
+
121
+ | symptom | cause |
122
+ |---|---|
123
+ | `wpm` tool missing | the plugin did not activate — check the boot output for `windows-parallel`, then run `node scripts/verify-install.mjs` |
124
+ | every action returns `paused` | `enabled` is false, or the engine is paused by the owner |
125
+ | `unreachable` on a terminal | by design: terminal text surfaces expose neither a child window nor a `Document` element (`terminal_no_door` when recognised as a terminal) |
126
+ | `engine worker unavailable` | the sidecar could not start; set `logWorkerStderr` to `true` and re-run — the worker's own message is the diagnostic |
package/INSTALL.es.md ADDED
@@ -0,0 +1,126 @@
1
+ # Install
2
+
3
+ [English](INSTALL.md) · [中文](INSTALL.zh.md) · [日本語](INSTALL.ja.md) · [한국어](INSTALL.ko.md) · [Français](INSTALL.fr.md) · [Deutsch](INSTALL.de.md) · [Italiano](INSTALL.it.md) · **Español** · [Português](INSTALL.pt.md) · [Русский](INSTALL.ru.md)
4
+
5
+ > **Español translation — work in progress.** The English canonical text follows below; task-specific polishing replaces it section by section. The structure, code samples and numbers are already final — only the prose is pending. See the en document for the authoritative wording.
6
+
7
+ **English** · [中文](INSTALL.zh.md) · [日本語](INSTALL.ja.md) · [한국어](INSTALL.ko.md) · [Français](INSTALL.fr.md) · [Deutsch](INSTALL.de.md) · [Italiano](INSTALL.it.md) · [Español](INSTALL.es.md) · [Português](INSTALL.pt.md) · [Русский](INSTALL.ru.md)
8
+ ## Requirements
9
+
10
+ - Windows (the engine is a Windows PowerShell sidecar; there is no portability story and none is claimed)
11
+ - Windows PowerShell 5.1 — ships with Windows 10/11. `pwsh` also works if you set `powershellPath`
12
+ - A DSH host `>=0.1.7-0 <0.3.0-0`
13
+
14
+ No Python, no `uv`, no MSVC runtime, no native module, no build step. The engine is four `.ps1` files
15
+ driven over a JSON line protocol by one long-lived STA process, started on the first tool call.
16
+
17
+ ## Install into a profile: two cases, not three
18
+
19
+ There are exactly **two** cases — desktop and non-desktop. Choose the one that matches your host.
20
+
21
+ ### 1. Non-desktop profiles (web, and any named profile)
22
+
23
+ Both routes work — pick either:
24
+
25
+ ```bash
26
+ dsh --profile <profile> plugin add dsh-windows-parallel-mcp
27
+ ```
28
+
29
+ ```bash
30
+ pnpm add dsh-windows-parallel-mcp
31
+ ```
32
+
33
+ The host adds the package to the profile's `dsh.profile.bundles`; the bundle patch
34
+ (`cordis.patch.yml`) inserts one row (`id: windows-parallel`). Nothing else is mounted or replaced.
35
+
36
+ ### 2. The desktop profile (Electron-managed) — manual, pnpm only
37
+
38
+ The `desktop` profile is owned by the Electron application. **Do not use `dsh plugin add` for it** —
39
+ the CLI refuses every command against `desktop`, including read-only ones, with
40
+ `profile "desktop" is managed exclusively by the Electron application`. There is no CLI path here.
41
+
42
+ Install it manually with **pnpm only** — specifically the desktop app's **built-in pnpm** (the
43
+ `desktopPnpm` service, not the pnpm on your PATH). The supported sequence:
44
+
45
+ ```bash
46
+ # 1. Back up the profile manifests and the installed package directory first.
47
+ # 2. Add the dependency with the built-in pnpm and refresh the lockfile.
48
+ # 3. Restart DSH so the new bundle is composed at startup.
49
+ ```
50
+
51
+ A pinned lockfile must be changed surgically: a freshly published package is rejected from the
52
+ lockfile while it is inside pnpm's `minimumReleaseAge` cooling window. Add the exact version to the
53
+ profile's `pnpm-workspace.yaml`:
54
+
55
+ ```yaml
56
+ minimumReleaseAgeExclude:
57
+ - dsh-windows-parallel-mcp@<version> # e.g. 0.2.0
58
+ ```
59
+
60
+ Without that line, `pnpm install --frozen-lockfile` fails with
61
+ `dsh-windows-parallel-mcp@<version> was published at ... within the minimumReleaseAge cutoff`.
62
+
63
+ ### Installing from a local build (both cases)
64
+
65
+ Pack first, then install the tarball — this is also how the profile's other local-development
66
+ plugins are mounted:
67
+
68
+ ```bash
69
+ npm pack --ignore-scripts # -> dsh-windows-parallel-mcp-<version>.tgz
70
+ ```
71
+
72
+ For non-desktop profiles, pass the tarball to `dsh --profile <profile> plugin add <tgz>`.
73
+ For desktop, unpack the tarball over the installed package directory (after backing it up).
74
+
75
+ A `link:` install keeps the package's REAL path outside the profile tree, and Node resolves bare
76
+ peer specifiers (`@deepseek-ai/schemastery`) upward from the real path -- so the peers never
77
+ resolve, the settings form silently disappears, and the plugin falls to its shim. A `file:` tarball
78
+ installs as a real directory inside the profile and the peers resolve exactly like every other
79
+ plugin. Measured, not inferred: `link:` -> `config schema: local-standard-schema-shim`,
80
+ `file:` -> `config schema: @deepseek-ai/schemastery`.
81
+
82
+ ## Verify it actually activated
83
+
84
+ Installing is not the same as activating, and a plugin that fails to activate prints one warning into
85
+ a busy log while its tool silently does not exist. From the package directory:
86
+
87
+ ```bash
88
+ node scripts/verify-install.mjs
89
+ ```
90
+
91
+ It creates a throwaway profile, installs the package, boots the host, asserts the plugin is **not**
92
+ named in the "did not activate" block, and removes the profile again. `--keep` leaves it for
93
+ inspection, `--profile <name>` uses a different name (it only ever deletes profiles it created).
94
+
95
+ ## Settings
96
+
97
+ Settings live in the bundle patch / profile config. On hosts where `@deepseek-ai/schemastery` is
98
+ resolvable from the plugin, the fields also appear in the settings form; where it is not, the plugin
99
+ falls back to a built-in standard-schema shim, the values still work, and **the form is not rendered**.
100
+ The fallback is reported in the host log as `config schema: local-standard-schema-shim`.
101
+
102
+ | key | default |
103
+ |---|---|
104
+ | `enabled` | `true` |
105
+ | `settleMs` | `350` |
106
+ | `requestTimeoutMs` | `20000` |
107
+ | `powershellPath` | `""` |
108
+ | `logWorkerStderr` | `false` |
109
+
110
+ ## Uninstall
111
+
112
+ ```bash
113
+ dsh plugin --profile <profile> remove dsh-windows-parallel-mcp
114
+ ```
115
+
116
+ The worker process is a child of the host and exits when stdin closes; there is no daemon, no service,
117
+ no scheduled task, nothing left behind.
118
+
119
+ ## Troubleshooting
120
+
121
+ | symptom | cause |
122
+ |---|---|
123
+ | `wpm` tool missing | the plugin did not activate — check the boot output for `windows-parallel`, then run `node scripts/verify-install.mjs` |
124
+ | every action returns `paused` | `enabled` is false, or the engine is paused by the owner |
125
+ | `unreachable` on a terminal | by design: terminal text surfaces expose neither a child window nor a `Document` element (`terminal_no_door` when recognised as a terminal) |
126
+ | `engine worker unavailable` | the sidecar could not start; set `logWorkerStderr` to `true` and re-run — the worker's own message is the diagnostic |