dsh-windows-parallel-mcp 0.9.0-rc.1 → 0.9.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 +11 -0
- package/CHANGELOG.es.md +11 -0
- package/CHANGELOG.fr.md +11 -0
- package/CHANGELOG.it.md +11 -0
- package/CHANGELOG.ja.md +11 -0
- package/CHANGELOG.ko.md +11 -0
- package/CHANGELOG.md +11 -0
- package/CHANGELOG.pt.md +11 -0
- package/CHANGELOG.ru.md +11 -0
- package/CHANGELOG.zh.md +11 -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/index.js +40 -14
- package/package.json +1 -1
- package/server.json +2 -2
- package/types/index.d.ts +4 -1
package/CHANGELOG.de.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.es.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.it.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.ja.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
5
5
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
6
6
|
one is a promise to anyone installing it.
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
9
13
|
|
|
14
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
15
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
16
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
17
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
18
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
19
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
20
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
10
21
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
11
22
|
|
|
12
23
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.pt.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -8,7 +8,17 @@ Dates are the registry `time` values for each version, not git commit dates —
|
|
|
8
8
|
when someone typed, a publish time records when a version became installable, and only the second
|
|
9
9
|
one is a promise to anyone installing it.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 0.9.0-rc.2 — 2026-11-29 (prerelease)
|
|
12
16
|
|
|
17
|
+
**`clampNumber` is now two functions with two different promises.** `clampSetting` keeps the tolerant
|
|
18
|
+
clamp for configuration values (a stale setting must not brick every tool call — schemastery is the
|
|
19
|
+
validation surface, the clamp is only the fallback). `refuseOutOfRange` serves call ARGUMENTS: the
|
|
20
|
+
four sites that forward numbers to the worker (`takeoverMaxMs`, `maxElements`, `maxWidth`, `waitMs`)
|
|
21
|
+
now refuse with `invalid_argument` naming the value that was actually sent, instead of silently
|
|
22
|
+
pressing 99999 into 5000 or -5 into 0. The refusal code is added to the shipped `RefusalCode`
|
|
23
|
+
contract; the schema/docs/case-table catch-up lands with rc.3.
|
|
13
24
|
## 0.9.0-rc.1 — 2026-11-29 (prerelease)
|
|
14
25
|
|
|
15
26
|
**Argument validation now enforces the bounds the contract already declared.** `validateArguments`
|
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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
4
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
8
|
+
> **Current release: 0.9.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.9.0-rc.
|
|
3
|
+
"version": "0.9.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/index.js
CHANGED
|
@@ -169,14 +169,14 @@ export function apply(ctx, config = {}) {
|
|
|
169
169
|
// because a prompt-level hint is not a switch (same reasoning as `enabled`/`paused`).
|
|
170
170
|
takeoverAllowed: resolveSetting(config.takeoverAllowed, false) === true,
|
|
171
171
|
keyInjectAllowed: resolveSetting(config.keyInjectAllowed, false) === true,
|
|
172
|
-
takeoverMaxMs:
|
|
173
|
-
takeoverArmMs:
|
|
172
|
+
takeoverMaxMs: clampSetting(resolveSetting(config.takeoverMaxMs, 10000), 500, 60000, 10000),
|
|
173
|
+
takeoverArmMs: clampSetting(resolveSetting(config.takeoverArmMs, 800), 0, 5000, 800),
|
|
174
174
|
// ---- 0.5.0 read-path settings. Forwarded, never silently clamped on the caller's behalf: the
|
|
175
175
|
// engine is the one that reports what it actually used (maxElements/shotsKeep ride back on the
|
|
176
176
|
// result), so "the setting took" is observable rather than assumed.
|
|
177
|
-
snapshotMaxElements:
|
|
178
|
-
screenshotMaxWidth:
|
|
179
|
-
shotsKeep:
|
|
177
|
+
snapshotMaxElements: clampSetting(resolveSetting(config.snapshotMaxElements, 300), 1, 5000, 300),
|
|
178
|
+
screenshotMaxWidth: clampSetting(resolveSetting(config.screenshotMaxWidth, 0), 0, 7680, 0),
|
|
179
|
+
shotsKeep: clampSetting(resolveSetting(config.shotsKeep, 10), 1, 200, 10),
|
|
180
180
|
// ---- 0.7.0 desktop gates. Read defensively because a whitelist is a list of AUTHORIZATIONS: a
|
|
181
181
|
// non-array, an empty entry, or a stray space must never turn into "everything is allowed".
|
|
182
182
|
appLaunchAllowed: resolveSetting(config.appLaunchAllowed, false) === true,
|
|
@@ -185,8 +185,8 @@ export function apply(ctx, config = {}) {
|
|
|
185
185
|
// without asking again; the per-action `requiresTier` in src/schema/tools.json is the other axis, so
|
|
186
186
|
// adding an action never means adding a setting.
|
|
187
187
|
policy: normalizePolicy(resolveSetting(config.policy, 'balanced')),
|
|
188
|
-
policyIdleMs:
|
|
189
|
-
auditKeep:
|
|
188
|
+
policyIdleMs: clampSetting(resolveSetting(config.policyIdleMs, 3000), 0, 60000, 3000),
|
|
189
|
+
auditKeep: clampSetting(resolveSetting(config.auditKeep, 2000), 100, 200000, 2000),
|
|
190
190
|
};
|
|
191
191
|
|
|
192
192
|
const logger = ctx.logger ?? console;
|
|
@@ -363,7 +363,7 @@ export function apply(ctx, config = {}) {
|
|
|
363
363
|
const takeoverFields = takeover
|
|
364
364
|
? {
|
|
365
365
|
takeover: true,
|
|
366
|
-
takeoverMaxMs:
|
|
366
|
+
takeoverMaxMs: refuseOutOfRange(args.takeoverMaxMs, 500, 60000, settings.takeoverMaxMs, 'takeoverMaxMs'),
|
|
367
367
|
takeoverArmMs: settings.takeoverArmMs,
|
|
368
368
|
...(keyInput === 'inject' ? { keyInput } : {}),
|
|
369
369
|
}
|
|
@@ -389,7 +389,7 @@ export function apply(ctx, config = {}) {
|
|
|
389
389
|
return {
|
|
390
390
|
action: 'snapshot',
|
|
391
391
|
hwnd: args.hwnd,
|
|
392
|
-
maxElements:
|
|
392
|
+
maxElements: refuseOutOfRange(args.maxElements, 1, 5000, settings.snapshotMaxElements, 'maxElements'),
|
|
393
393
|
interactableOnly: args.interactableOnly !== false,
|
|
394
394
|
sinceSnapId: typeof args.sinceSnapId === 'string' ? args.sinceSnapId : '',
|
|
395
395
|
intent: typeof args.intent === 'string' ? args.intent : '',
|
|
@@ -403,7 +403,7 @@ export function apply(ctx, config = {}) {
|
|
|
403
403
|
action: 'screenshot',
|
|
404
404
|
hwnd: args.fullScreen === true ? (args.hwnd ?? '') : args.hwnd,
|
|
405
405
|
fullScreen: args.fullScreen === true,
|
|
406
|
-
maxWidth:
|
|
406
|
+
maxWidth: refuseOutOfRange(args.maxWidth, 0, 7680, settings.screenshotMaxWidth, 'maxWidth'),
|
|
407
407
|
shotsKeep: settings.shotsKeep,
|
|
408
408
|
};
|
|
409
409
|
case 'preview':
|
|
@@ -487,7 +487,7 @@ export function apply(ctx, config = {}) {
|
|
|
487
487
|
return {
|
|
488
488
|
action: 'launch', target: args.target,
|
|
489
489
|
...(typeof args.args === 'string' && args.args ? { args: args.args } : {}),
|
|
490
|
-
waitMs:
|
|
490
|
+
waitMs: refuseOutOfRange(args.waitMs, 0, 30000, 3000, 'waitMs'),
|
|
491
491
|
policy: settings.policy, policyIdleMs: settings.policyIdleMs,
|
|
492
492
|
launchAllowed: settings.appLaunchAllowed,
|
|
493
493
|
allowList: settings.appLaunchAllow,
|
|
@@ -1222,14 +1222,40 @@ function parsePoint(s) {
|
|
|
1222
1222
|
return { x: Number(m[1]), y: Number(m[2]) };
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
|
-
/** Clamp a possibly-undefined number into [min,max], falling back to `fallback` for non-numbers.
|
|
1225
|
+
/** Clamp a possibly-undefined number into [min,max], falling back to `fallback` for non-numbers.
|
|
1226
|
+
* SETTINGS only (0.9.0 split): a bad value on the configuration surface is a typo behind a form that
|
|
1227
|
+
* schemastery already validated, so the tolerant clamp stays -- refusing there would let one stale
|
|
1228
|
+
* setting brick every tool call. Call ARGUMENTS must not ride this function: silently rewriting what
|
|
1229
|
+
* the caller sent is the silent-fake-success shape G1 names. Use refuseOutOfRange there. */
|
|
1226
1230
|
/** @param {any} value @param {number} min @param {number} max @param {number} fallback @returns {number} */
|
|
1227
|
-
function
|
|
1231
|
+
function clampSetting(value, min, max, fallback) {
|
|
1228
1232
|
const n = Number(value);
|
|
1229
1233
|
if (!Number.isFinite(n)) return fallback;
|
|
1230
1234
|
return Math.max(min, Math.min(max, Math.round(n)));
|
|
1231
1235
|
}
|
|
1232
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* The argument-side twin: an out-of-range (or non-integer where `integer` is declared, or otherwise
|
|
1239
|
+
* non-numeric) CALL argument is a refusal naming the value the caller actually sent, never a silent
|
|
1240
|
+
* rewrite. `undefined` still means "not asked for" and takes the fallback. This layer is belt-and-braces
|
|
1241
|
+
* behind validateArguments -- the host's own defineTool may skip the shim's validator, so the sites
|
|
1242
|
+
* that forward numbers to the worker re-check the same bounds here.
|
|
1243
|
+
* @param {any} value @param {number} min @param {number} max @param {number|string} fallback
|
|
1244
|
+
* @param {string} name @param {boolean} [integer]
|
|
1245
|
+
* @returns {number|string}
|
|
1246
|
+
*/
|
|
1247
|
+
function refuseOutOfRange(value, min, max, fallback, name, integer = true) {
|
|
1248
|
+
if (value === undefined || value === null) return fallback;
|
|
1249
|
+
const n = Number(value);
|
|
1250
|
+
if (!Number.isFinite(n) || (integer && !Number.isInteger(n))) {
|
|
1251
|
+
throw refusal('invalid_argument', `'${name}' must be ${integer ? 'a whole number' : 'a number'} in [${min}, ${max}] (got ${JSON.stringify(value)}); no worker request was made and the value was not rewritten`);
|
|
1252
|
+
}
|
|
1253
|
+
if (n < min || n > max) {
|
|
1254
|
+
throw refusal('invalid_argument', `'${name}' must be in [${min}, ${max}] (got ${n}); no worker request was made and the value was not clamped`);
|
|
1255
|
+
}
|
|
1256
|
+
return n;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1233
1259
|
/** The same latch path the engine computes: %LOCALAPPDATA%\wpm\takeover-abort.<worker pid>. */
|
|
1234
1260
|
/** @param {number|string} pid @returns {string} */
|
|
1235
1261
|
function abortLatchPath(pid) {
|
|
@@ -1246,4 +1272,4 @@ function hwndHint(args) {
|
|
|
1246
1272
|
// Exported for tests: the projection from the five contract actions to this one tool.
|
|
1247
1273
|
// `formatResult` is here so the effect dimension can be asserted on the SHIPPED projection, with
|
|
1248
1274
|
// hand-authored engine results, without a desktop that has to cooperate.
|
|
1249
|
-
export const _internals = { PARAMETERS, ACTIONS, TOOL_NAME, clampSettle, CONFIG_DEFAULTS, formatResult: format };
|
|
1275
|
+
export const _internals = { PARAMETERS, ACTIONS, TOOL_NAME, clampSettle, clampSetting, refuseOutOfRange, CONFIG_DEFAULTS, formatResult: format };
|
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.9.0-rc.
|
|
6
|
+
"version": "0.9.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.9.0-rc.
|
|
17
|
+
"version": "0.9.0-rc.2",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -37,7 +37,10 @@ export type RefusalCode =
|
|
|
37
37
|
| 'restore_failed' | 'takeover_aborted' | 'stale_ref'
|
|
38
38
|
// 0.7.0. What separates these three from the fourteen above is the NEXT STEP: each names a SETTING,
|
|
39
39
|
// so retrying the same call is the wrong response and changing the setting is the right one.
|
|
40
|
-
| 'app_launch_denied' | 'policy_denied' | 'user_active'
|
|
40
|
+
| 'app_launch_denied' | 'policy_denied' | 'user_active'
|
|
41
|
+
// 0.9.0. The caller sent a value outside the declared bounds (or a fraction where an integer was
|
|
42
|
+
// declared); the pre-0.9.0 behavior was a silent clamp/round, which is what this code replaces.
|
|
43
|
+
| 'invalid_argument';
|
|
41
44
|
|
|
42
45
|
export type KeyInputMode = 'none' | 'inject';
|
|
43
46
|
|