dsh-windows-parallel-mcp 0.10.0 → 0.11.0-rc.2

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.
package/CHANGELOG.de.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.es.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.fr.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.it.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.ja.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.ko.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.md CHANGED
@@ -13,7 +13,33 @@ one is a promise to anyone installing it.
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
+
20
+
21
+
22
+
19
23
 
24
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
25
+
26
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
27
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
28
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
29
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
30
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
31
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
32
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
33
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
34
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
35
+ source of the latch location for both host halves.
36
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
37
+
38
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
39
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
40
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
41
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
42
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
43
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
44
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
45
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
46
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
47
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
20
48
  ## 0.10.0 — 2026-11-29
21
49
 
22
50
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.pt.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.ru.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/CHANGELOG.zh.md CHANGED
@@ -16,7 +16,33 @@ one is a promise to anyone installing it.
16
16
 
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
+
23
+
24
+
25
+
22
26
 
27
+ ## 0.11.0-rc.2 — 2026-11-29 (prerelease)
28
+
29
+ **A timeout kill now cleans up after itself.** Before this, the deadline branch of `request()`
30
+ just called `kill()`: a half-stuck engine loop never got its abort signal, and the
31
+ `takeover-abort.<pid>` latch file written during host cancellation could outlive the process
32
+ whose death it was supposed to help explain. The kill order is now: arm the latch FIRST (a loop
33
+ that still polls unwinds the cursor it holds, which `kill()` alone never does), kill, and tie
34
+ the latch file's lifetime to the process so no orphan is left for a recycled pid to trip over.
35
+ The host records the deliberate plug-pull in the audit as `event=worker_killed` (pid, action,
36
+ deadline, restart budget) -- "the worker died" and "this code stopped it on purpose" are now
37
+ distinguishable from the log alone. `abortLatchPath` moved to `lib/engine.js` as the single
38
+ source of the latch location for both host halves.
39
+ ## 0.11.0-rc.1 — 2026-11-29 (prerelease)
40
+
41
+ **The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
42
+ worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
43
+ spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
44
+ instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
45
+ loop where every call against a wedging worker paid the full timeout again, invisibly.
46
+ `action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
47
+ crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
48
+ the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
49
+ the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
50
+ monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
23
51
  ## 0.10.0 — 2026-11-29
24
52
 
25
53
  **The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
package/README.de.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Ein DSH-Plugin, mit dem ein Agent **seine eigenen** Windows-Fenster steuert — standardmäßig still, auf Anfrage sichtbar. Wenn ein Fenster Windows-Nachrichten akzeptiert, wird der Fokus nie entzogen. Wenn nur UI Automation es erreicht, gibt es einen einzigen begrenzten Fokus-Blitz, der automatisch rückgängig gemacht wird. Wenn Sie den Takeover-Modus ausdrücklich anfordern, bewegt sich der Cursor zum Aktionspunkt und wird immer wiederhergestellt; ein HUD bietet drei Möglichkeiten zum Abbruch. Überall anders wird mit Code und Grund abgelehnt.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.es.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Un plugin DSH que permite a un agente controlar **sus propias** ventanas de Windows — silencioso por defecto, visible cuando se pide. Cuando una ventana acepta mensajes de Windows, el foco nunca se pierde. Cuando solo UI Automation puede alcanzarla, el foco sufre un único destello acotado que se revierte automáticamente. Cuando pides explícitamente el modo takeover, el cursor se mueve al punto de acción y siempre se restaura, con un HUD que ofrece tres formas de interrumpir. En cualquier otro caso, rechaza con un código y una razón.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.fr.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Un plugin DSH qui laisse un agent piloter **ses propres** fenêtres Windows — discrètement par défaut, visiblement sur demande. Quand une fenêtre accepte un message Windows, le focus n'est jamais volé. Quand seule l'UI Automation peut l'atteindre, le focus connaît un seul flash borné, automatiquement réversible. Quand vous demandez explicitement le mode takeover, le curseur se déplace vers le point d'action et est toujours restauré, avec un HUD offrant trois façons d'interrompre. Partout ailleurs, le plugin refuse avec un code et une raison.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.it.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Un plugin DSH che consente a un agente di pilotare **le proprie** finestre Windows — silenzioso per impostazione predefinita, visibile su richiesta. Quando una finestra accetta un messaggio Windows, il focus non viene mai sottratto. Quando solo UI Automation può raggiungerla, il focus subisce un solo lampo limitato e viene ripristinato automaticamente. Quando richiedi esplicitamente la modalità takeover, il cursore si sposta sul punto di azione e viene sempre ripristinato, con un HUD che offre tre modi per interrompere. In tutti gli altri casi rifiuta con un codice e una ragione.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.ja.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > エージェントが**自分の** Windows ウィンドウを操作するための DSH プラグインです。既定では静默、要求があれば可視化します。ウィンドウがウィンドウメッセージを受け付ける場合、フォーカスは一切奪われません。UI Automation 経由でしか届かない場合、フォーカスは一度だけ有界なフラッシュで移り自動で戻ります。明示的にテイクオーバーを要求した場合、カーソルは操作点へ移動し常に復元され、HUD が三つの中断手段を提供します。それ以外はコードと理由を添えて拒否します。
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.ko.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > 에이전트가 **자신의** Windows 창을 조작하도록 하는 DSH 플러그인입니다. 기본은 조용히, 요청 시에는 눈에 보이게 동작합니다. 창이 창 메시지를 받으면 포커스를 전혀 빼앗지 않고, UI Automation으로만 도달 가능하면 포커스가 한 번의 제한된 플래시로 이동한 뒤 자동 복구됩니다. 테이크오버를 명시적으로 요청하면 커서가 동작 지점으로 이동해 항상 복원되며 HUD가 세 가지 중단 수단을 제공합니다. 그 밖의 경우에는 코드와 이유를 붙여 거부합니다.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # dsh-windows-parallel-mcp
2
2
 
3
3
  **English** · [中文](README.zh.md) · [日本語](README.ja.md) · [한국어](README.ko.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Italiano](README.it.md) · [Español](README.es.md) · [Português](README.pt.md) · [Русский](README.ru.md)
4
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
4
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
5
5
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
6
6
 
7
7
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.pt.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Um plugin DSH que permite a um agente controlar **as suas próprias** janelas Windows — silencioso por padrão, visível sob demanda. Quando uma janela aceita mensagens do Windows, o foco nunca é roubado. Quando apenas a Automação de UI a alcança, o foco sofre um único lampejo limitado, revertido automaticamente. Quando você solicita explicitamente o modo takeover, o cursor move-se para o ponto de ação e é sempre restaurado, com um HUD que oferece três formas de interrupção. Em todos os outros casos, recusa com um código e um motivo.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.ru.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Плагин DSH, позволяющий агенту управлять **своими** окнами Windows — по умолчанию тихо, по запросу видимо. Когда окно принимает сообщения Windows, фокус никогда не перехватывается. Когда доступен только UI Automation, фокус претерпевает одну ограниченную вспышку и автоматически возвращается. При явном запросе режима takeover курсор перемещается в точку действия и всегда восстанавливается, а HUD предлагает три способа прерывания. Во всех остальных случаях действие отклоняется с кодом и причиной.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/README.zh.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > 一个让代理驱动**自己**的 Windows 窗口的 DSH 插件——默认静默,按需可见。窗口接受窗口消息时完全不夺焦点;只有 UI Automation 可达时,焦点仅发生一次有界闪烁并自动还原;显式请求接管档时,光标移动到目标点并始终还原,HUD 提供三种中断方式。其他情况一律拒绝,并给出代码与原因。
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.10.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.11.0-rc.2** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-windows-parallel-mcp",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-rc.2",
4
4
  "main": "./lib/index.js",
5
5
  "description": "One tool, eleven actions: drive a Windows window quietly by default, read the target as a numbered element frame, and since 0.7.0 start a whitelisted program, touch the clipboard, and change one named window. Prefers window messages (zero foreground change); falls back to UI Automation with a bounded, self-reversing focus flash (measured net return 15-95 ms); offers an opt-in takeover tier (policy:'full' AND takeoverAllowed) where the cursor moves to the action point and is always restored, with a mandatory three-phase HUD and three interruption paths; adds snapshot/screenshot/preview, where labels address the UIA element itself and image coordinates are converted by the engine; reads a write back (effect=readback-verified only when the field's own value matches a prediction built from the control's measurements) with caretPosition, disabled/focus reporting and a BitBlt capture path named as captureBackend; and gates everything through one ceiling (policy) plus a per-program launch whitelist, an idle check that refuses instead of interrupting, and an append-only JSONL audit log. Since 0.8.0 the same engine also answers as an MCP server over stdio (bin: wpm-mcp), with the tool list generated from the same contract file.",
6
6
  "engines": {
package/lib/audit.js CHANGED
@@ -34,7 +34,7 @@ export function auditPath() { return join(auditDir(), 'audit.log'); }
34
34
  * @param {{ts?:number, action:string, hwnd?:string, tier?:string, policy?:string,
35
35
  * decision:string, code?:string, userActiveAgeMs?:number, effect?:string, latencyMs?:number,
36
36
  * detail?:string, target?:string, args?:string, op?:string, format?:string, chars?:number,
37
- * resultChars?:number, forced?:boolean}} rec
37
+ * resultChars?:number, forced?:boolean, event?:string}} rec
38
38
  * @returns {string} one JSON object, no newline
39
39
  */
40
40
  export function auditLine(rec) {
@@ -68,6 +68,10 @@ export function auditLine(rec) {
68
68
  if (rec.chars !== undefined) out.chars = Number(rec.chars);
69
69
  if (rec.forced === true) out.forced = true;
70
70
  if (rec.detail) out.detail = String(rec.detail);
71
+ // 0.11.0: not every line answers "what did the caller get back". The host killing a wedged worker
72
+ // at its deadline is an EVENT the operator must see in the same log -- `event` names it so a
73
+ // reader filters for it without inventing a fourth decision value.
74
+ if (rec.event) out.event = String(rec.event);
71
75
  return JSON.stringify(out);
72
76
  }
73
77
 
package/lib/engine.js CHANGED
@@ -11,8 +11,12 @@
11
11
  // ecosystem:
12
12
  // * LAZY START. Spawning PowerShell + Add-Type + assembly load on plugin load would put that cost
13
13
  // in the host's boot path for a tool nobody has called yet. First call pays; nobody else does.
14
- // * ONE RESTART, THEN AN HONEST ERROR. A crashed worker must not become a permanently-dead tool
15
- // that reports nothing, and it must not become an infinite respawn loop either.
14
+ // * BOUNDED RESTARTS, THEN AN HONEST REFUSAL. A crashed worker must not become a permanently-dead
15
+ // tool that reports nothing, and it must not become an infinite respawn loop either: the
16
+ // `restarts` counter is capped by `maxRestarts` (0.11.0), and past the cap the client refuses
17
+ // with the `worker_wedged` code instead of spawning yet another process that is likely to die
18
+ // the same way. Before 0.11.0 the counter existed but nobody read it — the G3 defect: every
19
+ // call against a wedging worker paid the full timeout again, forever, invisibly.
16
20
  // * NO SILENT STALL. Every request has a deadline. A worker that stops answering (STA thread
17
21
  // wedged inside a cross-process SendMessage is the realistic case) would otherwise leave the
18
22
  // model waiting forever with no diagnostic.
@@ -20,12 +24,26 @@
20
24
  // therefore keeps only lines that parse as an object with an `id`, and preserves everything else
21
25
  // as diagnostics rather than throwing it away.
22
26
  import { spawn } from 'node:child_process';
23
- import { existsSync } from 'node:fs';
27
+ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
24
28
  import { dirname, join, resolve } from 'node:path';
29
+ import { tmpdir } from 'node:os';
25
30
  import { fileURLToPath } from 'node:url';
26
31
 
27
32
  const HERE = dirname(fileURLToPath(import.meta.url));
28
33
 
34
+ /**
35
+ * The same latch path the engine computes: %LOCALAPPDATA%\wpm\takeover-abort.<worker pid>.
36
+ * One function knows where, shared by both host halves (0.11.0): the cancellation arm in
37
+ * lib/index.js writes it while the worker is meant to keep running, and the timeout arm below
38
+ * writes it immediately before killing the worker. A path kept in two files is a path that
39
+ * eventually points at two different files.
40
+ * @param {number|string} pid @returns {string}
41
+ */
42
+ export function abortLatchPath(pid) {
43
+ const base = process.env.LOCALAPPDATA || tmpdir();
44
+ return join(base, 'wpm', `takeover-abort.${pid}`);
45
+ }
46
+
29
47
  /** Absolute path of the engine directory shipped inside the package. */
30
48
  export function engineRoot(from = HERE) {
31
49
  return resolve(from, '..', 'src', 'engine');
@@ -64,15 +82,19 @@ export class WorkerClient {
64
82
  * @param {string} [options.powershellPath]
65
83
  * @param {string} [options.script]
66
84
  * @param {number} [options.requestTimeoutMs]
85
+ * @param {number} [options.maxRestarts]
67
86
  * @param {(line: string) => void} [options.onStderr]
68
87
  * @param {(info: {restarted: boolean, code: number|null, signal: string|null}) => void} [options.onExit]
88
+ * @param {(info: {pid: number, action: any}) => void} [options.onTimeoutKill]
69
89
  */
70
90
  constructor(options = {}) {
71
91
  this.powershellPath = resolvePowerShell(options.powershellPath);
72
92
  this.script = options.script ?? workerScript();
73
93
  this.requestTimeoutMs = options.requestTimeoutMs ?? 20000;
94
+ this.maxRestarts = options.maxRestarts ?? 3;
74
95
  this.onStderr = options.onStderr ?? (() => {});
75
96
  this.onExit = options.onExit ?? (() => {});
97
+ this.onTimeoutKill = options.onTimeoutKill ?? (() => {});
76
98
 
77
99
  /** @type {import('node:child_process').ChildProcess | null} */
78
100
  this.child = null;
@@ -95,10 +117,25 @@ export class WorkerClient {
95
117
  /**
96
118
  * Start the worker if it is not running. Costs one PowerShell launch on first call; a no-op
97
119
  * afterwards. Throws if the script is missing, because a missing engine is a broken install and
98
- * pretending otherwise would surface as a confusing refusal later.
120
+ * pretending otherwise would surface as a confusing refusal later. Throws a `worker_wedged`
121
+ * refusal once the restart cap is reached (0.11.0) — the restart counter only means something
122
+ * if the boundary it draws is actually enforced here.
99
123
  */
100
124
  start() {
101
125
  if (this.alive) return this;
126
+ // The G3 fix. A worker that dies after having already been restarted maxRestarts times is
127
+ // wedged by any measure this product can make from the host; spawning another copy would buy
128
+ // the caller one more timeout on a process that keeps dying, and the audit trail would not
129
+ // show which attempt number this was. Refuse with a code instead — the message carries the
130
+ // count because the count IS the diagnosis.
131
+ if (this.started && this.restarts >= this.maxRestarts) {
132
+ const err = new Error(
133
+ `engine worker will not be restarted again: it has died ${this.restarts}/${this.maxRestarts} restart-allowed times; no action was attempted. Next step is human: read the worker stderr tail in the plugin log (a wedging UIA target or a broken install both end here), not another retry`,
134
+ );
135
+ /** @type {any} */
136
+ (err).refusal = 'worker_wedged';
137
+ throw err;
138
+ }
102
139
  if (!existsSync(this.script)) {
103
140
  throw new Error(`dsh-windows-parallel-mcp: engine worker not found at ${this.script}`);
104
141
  }
@@ -212,10 +249,25 @@ export class WorkerClient {
212
249
  // The worker is presumed wedged. It is killed rather than left running: a wedged STA thread
213
250
  // inside a cross-process wait will not recover, and the next call deserves a clean process.
214
251
  // Restart is bounded by the `restarts` counter read by the tool layer.
252
+ // 0.11.0 G7: a bare kill leaves the wedge half-cleaned. Arm the latch FIRST -- a loop that
253
+ // is only half-stuck still polls it and unwinds (cursor restored, takeover accounted), which
254
+ // kill() alone never does -- and tie the file's lifetime to the process: an orphaned
255
+ // takeover-abort.<pid> whose number gets recycled would abort an unrelated worker's
256
+ // takeover with nobody remembering we wrote it.
257
+ const pid = child.pid ?? 0;
258
+ const latch = pid ? abortLatchPath(pid) : '';
259
+ if (latch) {
260
+ try {
261
+ mkdirSync(dirname(latch), { recursive: true });
262
+ writeFileSync(latch, 'abort', 'utf8');
263
+ child.once('exit', () => { try { rmSync(latch, { force: true }); } catch { /* best effort; start() re-arms on the next wedge */ } });
264
+ } catch { /* a latch the disk refuses still dies by kill */ }
265
+ }
215
266
  rejectPromise(new Error(
216
267
  `engine worker did not answer within ${this.requestTimeoutMs} ms (action=${payload.action}); the worker was killed and will be restarted on the next call`,
217
268
  ));
218
269
  try { child.kill(); } catch { /* already gone */ }
270
+ try { this.onTimeoutKill({ pid, action: payload?.action }); } catch { /* audit is best-effort by design */ }
219
271
  }, this.requestTimeoutMs);
220
272
  this.pending.set(id, { resolve: resolvePromise, reject: rejectPromise, timer });
221
273
  // The cast sits at the call site rather than in a `const stdin = ...` line so the emitted
package/lib/index.js CHANGED
@@ -26,9 +26,8 @@
26
26
  // because a prompt-level hint is not a switch (R2.5).
27
27
  import { createConfigSchema, CONFIG_DEFAULTS } from './config.js';
28
28
  import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
29
- import { tmpdir } from 'node:os';
30
29
  import { dirname, join } from 'node:path';
31
- import { WorkerClient, workerScript } from './engine.js';
30
+ import { WorkerClient, workerScript, abortLatchPath } from './engine.js';
32
31
  import { ACTIONS, PARAMETERS, TOOL_NAME, resolveDefineTool } from './host-tools.js';
33
32
  import { evaluateProof } from './proof-window.mjs';
34
33
  import { actionTier, policyDecision, tierTable } from './policy.js';
@@ -281,6 +280,18 @@ export function apply(ctx, config = {}) {
281
280
  onExit: ({ code }) => {
282
281
  logger.warn?.(`[windows-parallel] engine worker exited (code=${code}); it will restart on the next call`);
283
282
  },
283
+ // 0.11.0 G7: the timeout kill is the host pulling the plug, so the host records it. An audit
284
+ // line with event=worker_killed is what lets a reader tell "the worker died" apart from
285
+ // "this code stopped it on purpose at its deadline", which the engine half cannot say.
286
+ onTimeoutKill: ({ pid, action }) => {
287
+ const w = auditWrite(auditLine({
288
+ action: String(action ?? ''), hwnd: '', tier: '', policy: settings.policy,
289
+ decision: 'allow', code: 'worker_killed', event: 'worker_killed',
290
+ detail: `pid=${pid} killed after ${client.requestTimeoutMs}ms without an answer; restarts=${client.restarts}/${client.maxRestarts}`,
291
+ }), { keep: settings.auditKeep });
292
+ if (!w.ok) auditFailures += 1;
293
+ logger.warn?.(`[windows-parallel] engine worker pid=${pid} killed at its request deadline (action=${action})`);
294
+ },
284
295
  });
285
296
 
286
297
  /**
@@ -676,6 +687,14 @@ export function apply(ctx, config = {}) {
676
687
  try {
677
688
  envelope = await client.request(request);
678
689
  } catch (err) {
690
+ // 0.11.0: the restart cap is the one worker-layer failure that IS a refusal — the host
691
+ // decided not to spawn again, said so with a code, and touched nothing. Returning it as
692
+ // `action_failed` would be the G3 shape one layer up: the caller could not tell "the
693
+ // worker crashed, retry" from "the worker is wedged, stop retrying and read the log".
694
+ if (/** @type {WpmError} */ (err)?.refusal === 'worker_wedged') {
695
+ return finish(result(args.action, false, 'worker_wedged',
696
+ `engine worker is wedged: ${/** @type {Error} */ (err).message} restarts=${client.restarts}/${client.maxRestarts}`));
697
+ }
679
698
  // The worker layer failed (crash, timeout, missing engine). This is not a refusal code: the
680
699
  // engine never got to decide. Say exactly that instead of borrowing a code it does not own.
681
700
  // Cast inline for the same reason as above. No `String(...)` wrapper and no `?.` are added:
@@ -694,6 +713,13 @@ export function apply(ctx, config = {}) {
694
713
  // Only a click that actually ran places a marker: a refused click has no impact point, and
695
714
  // letting a refusal start the overlay would mean a dead hwnd silently spawns a WPF window.
696
715
  const r = envelope.result;
716
+ // The restart budget travels with status (0.11.0). "Which attempt number is this" is the
717
+ // fact that turns an unexplained hang into a wedge someone can act on, and the counter
718
+ // lives client-side, so the engine's own answer cannot carry it.
719
+ if (request.action === 'status' && r && typeof r === 'object') {
720
+ r.workerRestarts = client.restarts;
721
+ r.workerMaxRestarts = client.maxRestarts;
722
+ }
697
723
  if (request.action === 'click' && r && r.ok !== false && !r.refusal) {
698
724
  // With space:'image' the request coordinates are IMAGE pixels; the engine reports the screen
699
725
  // point it actually converted to, and the marker must be drawn THERE. Drawing it at the image
@@ -852,6 +878,10 @@ function format(action, r) {
852
878
  // the setter from turning into a silent half-scale coordinate system (the marker already proved
853
879
  // that failure mode: 470,410 acted on at 303,263 on this 150% display).
854
880
  bits.push(`dpiAware=${r.dpiAware === true}`);
881
+ // 0.11.0 G3: the restart budget is visible without a crash having to happen first. The
882
+ // fallbacks only fire when a caller synthesises a status result without the tool layer
883
+ // attaching the client facts (unit tests); on every real path the fields are present.
884
+ bits.push(`restarts=${r.workerRestarts ?? 0}/${r.workerMaxRestarts ?? 3}`);
855
885
  if (r.stance) bits.push(`stance: ${r.stance}`);
856
886
  return result(action, true, '', bits.join('\n'));
857
887
  }
@@ -1272,13 +1302,6 @@ function labelField(args) {
1272
1302
  return { label: args.label, snapId: typeof args.snapId === 'string' ? args.snapId : '' };
1273
1303
  }
1274
1304
 
1275
- /** The same latch path the engine computes: %LOCALAPPDATA%\wpm\takeover-abort.<worker pid>. */
1276
- /** @param {number|string} pid @returns {string} */
1277
- function abortLatchPath(pid) {
1278
- const base = process.env.LOCALAPPDATA || tmpdir();
1279
- return join(base, 'wpm', `takeover-abort.${pid}`);
1280
- }
1281
-
1282
1305
  /** A one-line target hint for a pre-worker refusal: the caller can retry without the field. */
1283
1306
  /** @param {WpmArgs} args @returns {string} */
1284
1307
  function hwndHint(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-windows-parallel-mcp",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-rc.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "tag": "latest",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.drscrewdriver/dsh-windows-parallel-mcp",
4
4
  "title": "Windows Parallel",
5
5
  "description": "Drive a Windows window over MCP stdio: quiet by default, one policy ceiling, coded refusals.",
6
- "version": "0.10.0",
6
+ "version": "0.11.0-rc.2",
7
7
  "repository": {
8
8
  "url": "https://github.com/drscrewdriver/dsh-windows-parallel-mcp",
9
9
  "source": "github"
@@ -14,7 +14,7 @@
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "dsh-windows-parallel-mcp",
17
- "version": "0.10.0",
17
+ "version": "0.11.0-rc.2",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },
@@ -117,7 +117,8 @@ function Restore-WpmCursorTakeover {
117
117
 
118
118
  function Get-WpmTakeoverLatchPath {
119
119
  # Per-process latch so two workers cannot confuse each other's interruption, and so a stale file from
120
- # a crashed worker can never abort a live one. The host half writes the same path (lib/index.js).
120
+ # a crashed worker can never abort a live one. The host half writes the same path (lib/engine.js
121
+ # since 0.11.0, where the timeout kill arms it too).
121
122
  param([int]$ProcessId = $PID)
122
123
  $base = $env:LOCALAPPDATA
123
124
  if (-not $base) { $base = [System.IO.Path]::GetTempPath() }
package/types/index.d.ts CHANGED
@@ -40,7 +40,11 @@ export type RefusalCode =
40
40
  | 'app_launch_denied' | 'policy_denied' | 'user_active'
41
41
  // 0.9.0. The caller sent a value outside the declared bounds (or a fraction where an integer was
42
42
  // declared); the pre-0.9.0 behavior was a silent clamp/round, which is what this code replaces.
43
- | 'invalid_argument';
43
+ | 'invalid_argument'
44
+ // 0.11.0. The worker died as many times as the restart budget allows, so the HOST stopped
45
+ // restarting it. Emitted from lib/engine.js, never from the engine — the engine is the thing
46
+ // that is gone. The next step is reading the log, not retrying.
47
+ | 'worker_wedged';
44
48
 
45
49
  export type KeyInputMode = 'none' | 'inject';
46
50