dsh-windows-parallel-mcp 0.10.0 → 0.11.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 +14 -0
- package/CHANGELOG.es.md +14 -0
- package/CHANGELOG.fr.md +14 -0
- package/CHANGELOG.it.md +14 -0
- package/CHANGELOG.ja.md +14 -0
- package/CHANGELOG.ko.md +14 -0
- package/CHANGELOG.md +14 -0
- package/CHANGELOG.pt.md +14 -0
- package/CHANGELOG.ru.md +14 -0
- package/CHANGELOG.zh.md +14 -0
- package/README.de.md +1 -1
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.it.md +1 -1
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.pt.md +1 -1
- package/README.ru.md +1 -1
- package/README.zh.md +1 -1
- package/dsh.plugin.json +1 -1
- package/lib/engine.js +24 -3
- package/lib/index.js +19 -0
- package/package.json +1 -1
- package/server.json +2 -2
- package/types/index.d.ts +5 -1
package/CHANGELOG.de.md
CHANGED
|
@@ -16,7 +16,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**The coordinate/DPI contract is now enforced by gates, not by correct-but-unguarded code.** This line
|
package/CHANGELOG.md
CHANGED
|
@@ -13,7 +13,20 @@ one is a promise to anyone installing it.
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
|
|
22
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
23
|
+
|
|
24
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
25
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
26
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
27
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
28
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
29
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
30
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
31
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
32
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
33
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
20
34
|
## 0.10.0 — 2026-11-29
|
|
21
35
|
|
|
22
36
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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,20 @@ one is a promise to anyone installing it.
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
|
|
23
|
+
|
|
22
24
|
|
|
25
|
+
## 0.11.0-rc.1 — 2026-11-29 (prerelease)
|
|
26
|
+
|
|
27
|
+
**The restart counter has teeth now.** `WorkerClient` takes `maxRestarts` (default 3); once a
|
|
28
|
+
worker has died past that budget `start()` refuses with a `worker_wedged` error instead of
|
|
29
|
+
spawning yet another copy, and the tool layer surfaces it as the `worker_wedged` refusal code
|
|
30
|
+
instead of the generic `action_failed`. Pre-0.11.0 this was the G3 shape: an unbounded respawn
|
|
31
|
+
loop where every call against a wedging worker paid the full timeout again, invisibly.
|
|
32
|
+
`action=status` echoes `restarts=N/max`, so the attempt number is readable before anything
|
|
33
|
+
crashes. The schema/docs/refusal-table catch-up lands with rc.3. `test/worker-smoke.mjs` drives
|
|
34
|
+
the cap against a deliberately-dying real worker (kill three times, the fourth call refuses);
|
|
35
|
+
the mcp-bridge coordinate arm also now tolerates a negative virtual-screen origin (an extended
|
|
36
|
+
monitor left of the primary measures `screenRect=-2560,...` and is not a failure).
|
|
23
37
|
## 0.10.0 — 2026-11-29
|
|
24
38
|
|
|
25
39
|
**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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
4
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
8
|
+
> **Current release: 0.11.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.
|
|
3
|
+
"version": "0.11.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
|
@@ -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
|
-
// *
|
|
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.
|
|
@@ -64,6 +68,7 @@ export class WorkerClient {
|
|
|
64
68
|
* @param {string} [options.powershellPath]
|
|
65
69
|
* @param {string} [options.script]
|
|
66
70
|
* @param {number} [options.requestTimeoutMs]
|
|
71
|
+
* @param {number} [options.maxRestarts]
|
|
67
72
|
* @param {(line: string) => void} [options.onStderr]
|
|
68
73
|
* @param {(info: {restarted: boolean, code: number|null, signal: string|null}) => void} [options.onExit]
|
|
69
74
|
*/
|
|
@@ -71,6 +76,7 @@ export class WorkerClient {
|
|
|
71
76
|
this.powershellPath = resolvePowerShell(options.powershellPath);
|
|
72
77
|
this.script = options.script ?? workerScript();
|
|
73
78
|
this.requestTimeoutMs = options.requestTimeoutMs ?? 20000;
|
|
79
|
+
this.maxRestarts = options.maxRestarts ?? 3;
|
|
74
80
|
this.onStderr = options.onStderr ?? (() => {});
|
|
75
81
|
this.onExit = options.onExit ?? (() => {});
|
|
76
82
|
|
|
@@ -95,10 +101,25 @@ export class WorkerClient {
|
|
|
95
101
|
/**
|
|
96
102
|
* Start the worker if it is not running. Costs one PowerShell launch on first call; a no-op
|
|
97
103
|
* 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.
|
|
104
|
+
* pretending otherwise would surface as a confusing refusal later. Throws a `worker_wedged`
|
|
105
|
+
* refusal once the restart cap is reached (0.11.0) — the restart counter only means something
|
|
106
|
+
* if the boundary it draws is actually enforced here.
|
|
99
107
|
*/
|
|
100
108
|
start() {
|
|
101
109
|
if (this.alive) return this;
|
|
110
|
+
// The G3 fix. A worker that dies after having already been restarted maxRestarts times is
|
|
111
|
+
// wedged by any measure this product can make from the host; spawning another copy would buy
|
|
112
|
+
// the caller one more timeout on a process that keeps dying, and the audit trail would not
|
|
113
|
+
// show which attempt number this was. Refuse with a code instead — the message carries the
|
|
114
|
+
// count because the count IS the diagnosis.
|
|
115
|
+
if (this.started && this.restarts >= this.maxRestarts) {
|
|
116
|
+
const err = new Error(
|
|
117
|
+
`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`,
|
|
118
|
+
);
|
|
119
|
+
/** @type {any} */
|
|
120
|
+
(err).refusal = 'worker_wedged';
|
|
121
|
+
throw err;
|
|
122
|
+
}
|
|
102
123
|
if (!existsSync(this.script)) {
|
|
103
124
|
throw new Error(`dsh-windows-parallel-mcp: engine worker not found at ${this.script}`);
|
|
104
125
|
}
|
package/lib/index.js
CHANGED
|
@@ -676,6 +676,14 @@ export function apply(ctx, config = {}) {
|
|
|
676
676
|
try {
|
|
677
677
|
envelope = await client.request(request);
|
|
678
678
|
} catch (err) {
|
|
679
|
+
// 0.11.0: the restart cap is the one worker-layer failure that IS a refusal — the host
|
|
680
|
+
// decided not to spawn again, said so with a code, and touched nothing. Returning it as
|
|
681
|
+
// `action_failed` would be the G3 shape one layer up: the caller could not tell "the
|
|
682
|
+
// worker crashed, retry" from "the worker is wedged, stop retrying and read the log".
|
|
683
|
+
if (/** @type {WpmError} */ (err)?.refusal === 'worker_wedged') {
|
|
684
|
+
return finish(result(args.action, false, 'worker_wedged',
|
|
685
|
+
`engine worker is wedged: ${/** @type {Error} */ (err).message} restarts=${client.restarts}/${client.maxRestarts}`));
|
|
686
|
+
}
|
|
679
687
|
// The worker layer failed (crash, timeout, missing engine). This is not a refusal code: the
|
|
680
688
|
// engine never got to decide. Say exactly that instead of borrowing a code it does not own.
|
|
681
689
|
// Cast inline for the same reason as above. No `String(...)` wrapper and no `?.` are added:
|
|
@@ -694,6 +702,13 @@ export function apply(ctx, config = {}) {
|
|
|
694
702
|
// Only a click that actually ran places a marker: a refused click has no impact point, and
|
|
695
703
|
// letting a refusal start the overlay would mean a dead hwnd silently spawns a WPF window.
|
|
696
704
|
const r = envelope.result;
|
|
705
|
+
// The restart budget travels with status (0.11.0). "Which attempt number is this" is the
|
|
706
|
+
// fact that turns an unexplained hang into a wedge someone can act on, and the counter
|
|
707
|
+
// lives client-side, so the engine's own answer cannot carry it.
|
|
708
|
+
if (request.action === 'status' && r && typeof r === 'object') {
|
|
709
|
+
r.workerRestarts = client.restarts;
|
|
710
|
+
r.workerMaxRestarts = client.maxRestarts;
|
|
711
|
+
}
|
|
697
712
|
if (request.action === 'click' && r && r.ok !== false && !r.refusal) {
|
|
698
713
|
// With space:'image' the request coordinates are IMAGE pixels; the engine reports the screen
|
|
699
714
|
// point it actually converted to, and the marker must be drawn THERE. Drawing it at the image
|
|
@@ -852,6 +867,10 @@ function format(action, r) {
|
|
|
852
867
|
// the setter from turning into a silent half-scale coordinate system (the marker already proved
|
|
853
868
|
// that failure mode: 470,410 acted on at 303,263 on this 150% display).
|
|
854
869
|
bits.push(`dpiAware=${r.dpiAware === true}`);
|
|
870
|
+
// 0.11.0 G3: the restart budget is visible without a crash having to happen first. The
|
|
871
|
+
// fallbacks only fire when a caller synthesises a status result without the tool layer
|
|
872
|
+
// attaching the client facts (unit tests); on every real path the fields are present.
|
|
873
|
+
bits.push(`restarts=${r.workerRestarts ?? 0}/${r.workerMaxRestarts ?? 3}`);
|
|
855
874
|
if (r.stance) bits.push(`stance: ${r.stance}`);
|
|
856
875
|
return result(action, true, '', bits.join('\n'));
|
|
857
876
|
}
|
package/package.json
CHANGED
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.
|
|
6
|
+
"version": "0.11.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.
|
|
17
|
+
"version": "0.11.0-rc.1",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
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
|
|