dsh-windows-parallel-mcp 0.11.0 → 0.12.0-rc.1

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
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.es.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.fr.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.it.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.ja.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.ko.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.md CHANGED
@@ -18,6 +18,22 @@ one is a promise to anyone installing it.
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
24
+
25
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
26
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
27
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
28
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
29
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
30
+ written, and the wait is observable. `action=status` carries three new client-side facts --
31
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
32
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
33
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
34
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
35
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
36
+ fields and the `engine_busy` split land with rc.2/rc.3.
37
+
38
+
23
39
  ## 0.11.0 — 2026-11-29
24
40
 
25
41
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.pt.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.ru.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
package/CHANGELOG.zh.md CHANGED
@@ -21,6 +21,22 @@ one is a promise to anyone installing it.
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
+ ## 0.12.0-rc.1 — 2026-11-29 (prerelease)
27
+
28
+ **Requests are queued on the client, not inside the worker's stdin.** G4/F5: the worker is one
29
+ serial loop (`worker.ps1` reads a line, answers, reads the next), yet every request timer started
30
+ at its WRITE moment -- a slow action let a QUEUED request run its deadline out and `kill()` the
31
+ worker out from under the request actually running. `WorkerClient.request()` now chains through a
32
+ promise FIFO: one request is in flight at a time, its deadline starts when its line is really
33
+ written, and the wait is observable. `action=status` carries three new client-side facts --
34
+ `workerBusy`, `queueDepth`, `lastActionAgeMs` -- because a busy worker cannot answer questions
35
+ about its own busyness. `abort` deliberately bypasses the queue (queue-jumping cancellation is
36
+ the whole point; the latch file remains the second channel). `test/worker-smoke.mjs` §9 drives a
37
+ slow real worker with two concurrent requests (busy/queued observed, both answered by the same
38
+ pid, serial wall time, zero restarts); `plugin-test` pins the idle-status rendering. The schema
39
+ fields and the `engine_busy` split land with rc.2/rc.3.
40
+
41
+
26
42
  ## 0.11.0 — 2026-11-29
27
43
 
28
44
  **State and recovery: the restart counter has teeth, and a kill cleans up.** Promotes the
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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
4
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.12.0-rc.1** — 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.11.0",
3
+ "version": "0.12.0-rc.1",
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/engine.js CHANGED
@@ -98,9 +98,22 @@ export class WorkerClient {
98
98
 
99
99
  /** @type {import('node:child_process').ChildProcess | null} */
100
100
  this.child = null;
101
- /** Pending requests keyed by id. Every entry owns its own timer. */
101
+ /** Pending requests keyed by id. With the 0.12.0 FIFO exactly one entry is ever in flight;
102
+ * the map stays the id->entry index the stdout reader resolves answers against. */
102
103
  this.pending = new Map();
103
104
  this.seq = 0;
105
+ // 0.12.0 G4: the worker is a single serial loop (worker.ps1 reads one line, answers, reads
106
+ // the next), so concurrent requests are NOT actually concurrent -- before this they just
107
+ // queued inside stdin while each caller's own deadline ran from its WRITE moment. A slow
108
+ // action therefore used to kill the worker on a QUEUED request's timeout and take the
109
+ // in-flight normal call down with it (F5). The chain makes queueing explicit: one request
110
+ // is in flight at a time, its timer starts when it is actually written, and everything
111
+ // else waits with observable depth (busyness()).
112
+ /** @type {Promise<void>} */
113
+ this.queueTail = Promise.resolve();
114
+ this.queueDepth = 0; // requests waiting for the in-flight one to finish
115
+ this.inFlight = false; // true while a request is written and awaiting its answer
116
+ this.lastActionAt = 0; // ms epoch of the last written action (0 = none this process)
104
117
  /** Set once the worker has been started, so a restart is distinguishable from a first start. */
105
118
  this.started = false;
106
119
  this.restarts = 0;
@@ -114,6 +127,20 @@ export class WorkerClient {
114
127
  return this.child !== null && this.child.exitCode === null && !this.child.killed;
115
128
  }
116
129
 
130
+ /**
131
+ * Client-side queue snapshot (0.12.0). These facts live HERE, not in the worker: a busy worker
132
+ * cannot answer a question about its own busyness, and "was anything queued behind the call I
133
+ * just made" is exactly what turns a slow stretch into a diagnosable one. 0 = never happened.
134
+ * @returns {{workerBusy: boolean, queueDepth: number, lastActionAgeMs: number}}
135
+ */
136
+ busyness() {
137
+ return {
138
+ workerBusy: this.inFlight,
139
+ queueDepth: this.queueDepth,
140
+ lastActionAgeMs: this.lastActionAt ? Date.now() - this.lastActionAt : 0,
141
+ };
142
+ }
143
+
117
144
  /**
118
145
  * Start the worker if it is not running. Costs one PowerShell launch on first call; a no-op
119
146
  * afterwards. Throws if the script is missing, because a missing engine is a broken install and
@@ -221,6 +248,9 @@ export class WorkerClient {
221
248
 
222
249
  /** @param {string} reason */
223
250
  #failAll(reason) {
251
+ // A dead worker answers nothing, so whatever was in flight is over: the flag must not stay
252
+ // true until the next timeout wraps a perfectly healthy restart.
253
+ this.inFlight = false;
224
254
  for (const [id, entry] of this.pending) {
225
255
  clearTimeout(entry.timer);
226
256
  entry.reject(new Error(reason));
@@ -229,21 +259,15 @@ export class WorkerClient {
229
259
  }
230
260
 
231
261
  /**
232
- * Send one request and await its response object. Resolves with the whole envelope, so the caller
233
- * decides what a refusal means; this layer never turns a refusal into an exception.
234
- * @param {any} payload
262
+ * Write one already-started request and await its response envelope. Only ever called from
263
+ * inside the FIFO chain, so `id`/`line` are minted by request() before queueing.
264
+ * @param {string} id @param {string} line @param {string} [action] name only, for the kill audit
235
265
  * @returns {Promise<any>}
236
266
  */
237
- request(payload) {
238
- this.start();
239
- const id = String(++this.seq);
240
- const line = JSON.stringify({ id, ...payload }) + '\n';
241
- // `start()` above either established a live child or threw, so this cast states a fact the
242
- // method just enforced rather than suppressing an unknown. The same holds for `stdin`: this
243
- // class spawns with stdio 'pipe', and narrowing it here keeps the runtime path byte-identical
244
- // (a defensive `if (!stdin) throw` would add a branch that can never run).
267
+ #send(id, line, action) {
245
268
  const child = /** @type {import('node:child_process').ChildProcess} */ (this.child);
246
269
  return new Promise((resolvePromise, rejectPromise) => {
270
+ this.inFlight = true;
247
271
  const timer = setTimeout(() => {
248
272
  this.pending.delete(id);
249
273
  // The worker is presumed wedged. It is killed rather than left running: a wedged STA thread
@@ -264,12 +288,16 @@ export class WorkerClient {
264
288
  } catch { /* a latch the disk refuses still dies by kill */ }
265
289
  }
266
290
  rejectPromise(new Error(
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`,
291
+ `engine worker did not answer within ${this.requestTimeoutMs} ms (action=${action}); the worker was killed and will be restarted on the next call`,
268
292
  ));
269
293
  try { child.kill(); } catch { /* already gone */ }
270
- try { this.onTimeoutKill({ pid, action: payload?.action }); } catch { /* audit is best-effort by design */ }
294
+ try { this.onTimeoutKill({ pid, action }); } catch { /* audit is best-effort by design */ }
271
295
  }, this.requestTimeoutMs);
272
- this.pending.set(id, { resolve: resolvePromise, reject: rejectPromise, timer });
296
+ this.pending.set(id, {
297
+ resolve: (/** @type {any} */ msg) => { this.inFlight = false; resolvePromise(msg); },
298
+ reject: (/** @type {any} */ err) => { this.inFlight = false; rejectPromise(err); },
299
+ timer,
300
+ });
273
301
  // The cast sits at the call site rather than in a `const stdin = ...` line so the emitted
274
302
  // JavaScript keeps exactly the statements it had: this file's shape is reviewed as a document,
275
303
  // and a typing exercise is not allowed to restructure it. `stdin` is `Writable | null` upstream
@@ -278,11 +306,55 @@ export class WorkerClient {
278
306
  if (!err) return;
279
307
  this.pending.delete(id);
280
308
  clearTimeout(timer);
309
+ this.inFlight = false;
281
310
  rejectPromise(new Error(`could not write to the engine worker: ${err.message}`));
282
311
  });
283
312
  });
284
313
  }
285
314
 
315
+ /**
316
+ * Send one request and await its response object. Resolves with the whole envelope, so the caller
317
+ * decides what a refusal means; this layer never turns a refusal into an exception.
318
+ *
319
+ * 0.12.0 G4: the write goes through a FIFO chain -- with a serial worker a second concurrent
320
+ * request could only ever wait in the stdin buffer, so making that wait explicit costs nothing
321
+ * and buys two things: the request deadline now starts when the line is actually written (not
322
+ * when an earlier call started to hog the STA thread), and the wait is observable via
323
+ * busyness(). `abort` bypasses the queue by design: it is the request sent WHILE a slow action
324
+ * is in flight, and a queue-jumping abort is the whole cancellation story (the worker polls the
325
+ * latch file as the belt-and-braces channel -- see armAbort in lib/index.js).
326
+ * @param {any} payload
327
+ * @returns {Promise<any>}
328
+ */
329
+ request(payload) {
330
+ if (payload?.action === 'abort') {
331
+ // Written against whatever child exists right now; start() would only wait for the cap check.
332
+ try {
333
+ this.start();
334
+ } catch (err) {
335
+ return Promise.reject(err);
336
+ }
337
+ const id = String(++this.seq);
338
+ return this.#send(id, JSON.stringify({ id, ...payload }) + '\n', payload?.action).catch((err) => {
339
+ // Fire-and-forget caller (lib/index.js armAbort); keep the rejection handled.
340
+ void err;
341
+ });
342
+ }
343
+ const bus = this.busyness();
344
+ if (!bus.workerBusy) this.lastActionAt = Date.now();
345
+ this.queueDepth += 1;
346
+ const task = this.queueTail.then(() => {
347
+ this.queueDepth -= 1;
348
+ this.start();
349
+ const id = String(++this.seq);
350
+ return this.#send(id, JSON.stringify({ id, ...payload }) + '\n', payload?.action);
351
+ });
352
+ // The chain must survive a rejected request: swallow the failure once for sequencing purposes
353
+ // and let the caller-facing promise keep rejecting with the original error.
354
+ this.queueTail = task.then(() => {}, () => {});
355
+ return task;
356
+ }
357
+
286
358
  /** Clean shutdown: close stdin (the worker exits its read loop), then make sure it is gone. */
287
359
  async dispose() {
288
360
  const child = this.child;
package/lib/index.js CHANGED
@@ -716,9 +716,12 @@ export function apply(ctx, config = {}) {
716
716
  // The restart budget travels with status (0.11.0). "Which attempt number is this" is the
717
717
  // fact that turns an unexplained hang into a wedge someone can act on, and the counter
718
718
  // lives client-side, so the engine's own answer cannot carry it.
719
+ // 0.12.0 G4: neither can the queue facts -- a busy worker cannot answer a question about
720
+ // its own busyness, so workerBusy/queueDepth/lastActionAgeMs are read from the client.
719
721
  if (request.action === 'status' && r && typeof r === 'object') {
720
722
  r.workerRestarts = client.restarts;
721
723
  r.workerMaxRestarts = client.maxRestarts;
724
+ Object.assign(r, client.busyness());
722
725
  }
723
726
  if (request.action === 'click' && r && r.ok !== false && !r.refusal) {
724
727
  // With space:'image' the request coordinates are IMAGE pixels; the engine reports the screen
@@ -882,6 +885,12 @@ function format(action, r) {
882
885
  // fallbacks only fire when a caller synthesises a status result without the tool layer
883
886
  // attaching the client facts (unit tests); on every real path the fields are present.
884
887
  bits.push(`restarts=${r.workerRestarts ?? 0}/${r.workerMaxRestarts ?? 3}`);
888
+ // 0.12.0 G4: the queue is client-side truth, and "is something still running, and how many
889
+ // are waiting behind it" is what makes a slow call diagnosable instead of mysterious.
890
+ // The fallbacks mirror the restart ones: synthesised status results (unit tests) read idle.
891
+ bits.push(`workerBusy=${r.workerBusy === true}`);
892
+ bits.push(`queueDepth=${r.queueDepth ?? 0}`);
893
+ bits.push(`lastActionAgeMs=${r.lastActionAgeMs ?? 0}`);
885
894
  if (r.stance) bits.push(`stance: ${r.stance}`);
886
895
  return result(action, true, '', bits.join('\n'));
887
896
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-windows-parallel-mcp",
3
- "version": "0.11.0",
3
+ "version": "0.12.0-rc.1",
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.11.0",
6
+ "version": "0.12.0-rc.1",
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.11.0",
17
+ "version": "0.12.0-rc.1",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },