dsh-windows-parallel-mcp 0.13.0 → 0.14.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 +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 +29 -2
- package/lib/launch-log.js +79 -0
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.de.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.es.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.it.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.ja.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.md
CHANGED
|
@@ -44,6 +44,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
44
44
|
-- documented in the 0.13.0 promotion changelog.
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
48
|
+
|
|
49
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
50
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
51
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
52
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
53
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
54
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
55
|
+
write: a disk failure never turns a running process into a reported error.
|
|
56
|
+
|
|
57
|
+
|
|
47
58
|
## 0.13.0 — 2026-11-29
|
|
48
59
|
|
|
49
60
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.pt.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -47,6 +47,17 @@ chars=3. The `chars` semantic change is BREAKING for any caller that compared it
|
|
|
47
47
|
-- documented in the 0.13.0 promotion changelog.
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
## 0.14.0-rc.1 — 2026-11-29 (prerelease)
|
|
51
|
+
|
|
52
|
+
**Launch registry: every started process is recorded, and `status` reports the live count.**
|
|
53
|
+
A new `lib/launch-log.js` module maintains `%LOCALAPPDATA%\wpm\launched.jsonl` -- one JSON line
|
|
54
|
+
per successful launch `{pid, target, args, ts}`, pruned at 500 entries. On a successful launch,
|
|
55
|
+
`lib/index.js` appends the record and stamps `startedBy=wpm` on the result so the caller sees the
|
|
56
|
+
provenance without parsing the file. `action=status` now reports `launched=alive/total`, giving
|
|
57
|
+
the operator a one-call answer to "what did wpm start and is it still running?". Best-effort
|
|
58
|
+
write: a disk failure never turns a running process into a reported error.
|
|
59
|
+
|
|
60
|
+
|
|
50
61
|
## 0.13.0 — 2026-11-29
|
|
51
62
|
|
|
52
63
|
**Input semantics: one code point in, one atomic SendInput batch; `chars` is now code points.**
|
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.14.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.14.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.14.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.14.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.14.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.14.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.14.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.14.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.14.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.14.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.14.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/index.js
CHANGED
|
@@ -25,13 +25,14 @@
|
|
|
25
25
|
// 3. `paused` and `enabled` are server-side gates. They are checked here, before any worker call,
|
|
26
26
|
// because a prompt-level hint is not a switch (R2.5).
|
|
27
27
|
import { createConfigSchema, CONFIG_DEFAULTS } from './config.js';
|
|
28
|
-
import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
28
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
29
29
|
import { dirname, join } from 'node:path';
|
|
30
30
|
import { WorkerClient, workerScript, abortLatchPath } from './engine.js';
|
|
31
31
|
import { ACTIONS, PARAMETERS, TOOL_NAME, resolveDefineTool } from './host-tools.js';
|
|
32
32
|
import { evaluateProof } from './proof-window.mjs';
|
|
33
33
|
import { actionTier, policyDecision, tierTable } from './policy.js';
|
|
34
|
-
import { auditLine, auditWrite } from './audit.js';
|
|
34
|
+
import { auditDir, auditLine, auditPath, auditWrite } from './audit.js';
|
|
35
|
+
import { launchLogAppend, launchLogRead, launchLogPath } from './launch-log.js';
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* The tier each action declares it needs, read ONCE from the contract file -- not copied into a table
|
|
@@ -733,6 +734,22 @@ export function apply(ctx, config = {}) {
|
|
|
733
734
|
r.workerRestarts = client.restarts;
|
|
734
735
|
r.workerMaxRestarts = client.maxRestarts;
|
|
735
736
|
Object.assign(r, client.busyness());
|
|
737
|
+
// 0.14.0 task_22: the launch registry is client-side (the worker doesn't persist across
|
|
738
|
+
// restarts), so "how many programs did wpm start" is answered from the JSONL log.
|
|
739
|
+
const launched = launchLogRead();
|
|
740
|
+
r.launchedTotal = launched.length;
|
|
741
|
+
r.launchedAlive = launched.filter((e) => { try { process.kill(e.pid, 0); return true; } catch { return false; } }).length;
|
|
742
|
+
// 0.14.0 task_23: retention observability -- shots and audit lines vs their keep budgets.
|
|
743
|
+
try {
|
|
744
|
+
const shotsDir = join(auditDir(), 'shots');
|
|
745
|
+
r.shotsCount = existsSync(shotsDir) ? readdirSync(shotsDir).filter((f) => f.endsWith('.png')).length : 0;
|
|
746
|
+
} catch { r.shotsCount = -1; }
|
|
747
|
+
r.shotsKeep = settings.shotsKeep;
|
|
748
|
+
try {
|
|
749
|
+
const auditRaw = readFileSync(auditPath(), 'utf8');
|
|
750
|
+
r.auditLines = auditRaw.split('\n').filter((l) => l !== '').length;
|
|
751
|
+
} catch { r.auditLines = 0; }
|
|
752
|
+
r.auditKeep = settings.auditKeep;
|
|
736
753
|
}
|
|
737
754
|
if (request.action === 'click' && r && r.ok !== false && !r.refusal) {
|
|
738
755
|
// With space:'image' the request coordinates are IMAGE pixels; the engine reports the screen
|
|
@@ -742,6 +759,12 @@ export function apply(ctx, config = {}) {
|
|
|
742
759
|
const screen = request.space === 'image' ? parsePoint(r.screenPoint) : null;
|
|
743
760
|
markPoint(screen ? screen.x : request.x, screen ? screen.y : request.y);
|
|
744
761
|
}
|
|
762
|
+
// 0.14.0 task_22: record a successful launch in the dedicated registry so "which processes
|
|
763
|
+
// did wpm start" is answerable after the fact without parsing the audit log.
|
|
764
|
+
if (request.action === 'launch' && r && r.ok !== false && !r.refusal && r.pid) {
|
|
765
|
+
launchLogAppend({ pid: Number(r.pid), target: String(request.target || ''), args: request.args || '' });
|
|
766
|
+
r.startedBy = 'wpm';
|
|
767
|
+
}
|
|
745
768
|
return finish(format(args.action, envelope.result));
|
|
746
769
|
},
|
|
747
770
|
});
|
|
@@ -902,6 +925,10 @@ function format(action, r) {
|
|
|
902
925
|
bits.push(`workerBusy=${r.workerBusy === true}`);
|
|
903
926
|
bits.push(`queueDepth=${r.queueDepth ?? 0}`);
|
|
904
927
|
bits.push(`lastActionAgeMs=${r.lastActionAgeMs ?? 0}`);
|
|
928
|
+
// 0.14.0 task_22/23: launch registry and retention are client-side facts.
|
|
929
|
+
if (r.launchedTotal !== undefined) bits.push(`launched=${r.launchedAlive ?? 0}/${r.launchedTotal}`);
|
|
930
|
+
if (r.shotsCount !== undefined) bits.push(`shots=${r.shotsCount}/${r.shotsKeep ?? 10}`);
|
|
931
|
+
if (r.auditLines !== undefined) bits.push(`auditLines=${r.auditLines}/${r.auditKeep ?? 2000}`);
|
|
905
932
|
if (r.stance) bits.push(`stance: ${r.stance}`);
|
|
906
933
|
return result(action, true, '', bits.join('\n'));
|
|
907
934
|
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// launch-log.js — a persistent record of every program wpm started (0.14.0 G4).
|
|
2
|
+
//
|
|
3
|
+
// WHY THIS EXISTS. The audit trail says "launch was allowed"; it doesn't say "process 4242 is
|
|
4
|
+
// STILL RUNNING because I started it three hours ago". An operator who wants to know what a
|
|
5
|
+
// plugin session left behind — or a test that wants to assert "this pid was ours" — needs a
|
|
6
|
+
// dedicated registry keyed by pid, not a log meant for incident reconstruction.
|
|
7
|
+
//
|
|
8
|
+
// FORMAT: one JSONL file (%LOCALAPPDATA%\wpm\launched.jsonl), append-only, same directory
|
|
9
|
+
// discipline as audit.js. Each line: {pid, target, args, ts}. Pruned at 500 lines to prevent
|
|
10
|
+
// unbounded growth across long-lived sessions.
|
|
11
|
+
//
|
|
12
|
+
// NO CONTENT, JUST DECISIONS: the same privacy boundary as audit.js — target and args are
|
|
13
|
+
// recorded (which program, which command line) but nothing about what the program later does.
|
|
14
|
+
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
15
|
+
import { dirname, join } from 'node:path';
|
|
16
|
+
import { auditDir } from './audit.js';
|
|
17
|
+
|
|
18
|
+
const KEEP = 500;
|
|
19
|
+
|
|
20
|
+
export function launchLogPath() {
|
|
21
|
+
return join(auditDir(), 'launched.jsonl');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Record one successful launch. Best-effort: a disk failure must not turn a running process into
|
|
26
|
+
* a reported error.
|
|
27
|
+
* @param {{pid: number, target: string, args?: string}} rec
|
|
28
|
+
* @returns {{ok: boolean, error?: string}}
|
|
29
|
+
*/
|
|
30
|
+
export function launchLogAppend(rec) {
|
|
31
|
+
try {
|
|
32
|
+
const path = launchLogPath();
|
|
33
|
+
if (!existsSync(dirname(path))) mkdirSync(dirname(path), { recursive: true });
|
|
34
|
+
const line = JSON.stringify({ pid: rec.pid, target: rec.target, args: rec.args ?? '', ts: Date.now() });
|
|
35
|
+
appendFileSync(path, line + '\n', 'utf8');
|
|
36
|
+
// Prune like audit: only check when plausibly over budget (every 5th write).
|
|
37
|
+
if (rec.pid % 5 === 0) {
|
|
38
|
+
try {
|
|
39
|
+
const buf = readFileSync(path, 'utf8');
|
|
40
|
+
const lines = buf.split('\n').filter((l) => l !== '');
|
|
41
|
+
if (lines.length > KEEP) {
|
|
42
|
+
const tail = lines.slice(-KEEP);
|
|
43
|
+
const tmp = path + '.new';
|
|
44
|
+
writeFileSync(tmp, tail.join('\n') + '\n', 'utf8');
|
|
45
|
+
try { renameSync(tmp, path); } catch { /* rename race, next prune catches it */ }
|
|
46
|
+
}
|
|
47
|
+
} catch { /* read/prune is best-effort, the line was appended */ }
|
|
48
|
+
}
|
|
49
|
+
return { ok: true };
|
|
50
|
+
} catch (err) {
|
|
51
|
+
const message = err && typeof err === 'object' && 'message' in err ? String(err.message) : String(err);
|
|
52
|
+
return { ok: false, error: message };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Read the full launch registry (for status and cleanup).
|
|
58
|
+
* @returns {Array<{pid: number, target: string, args: string, ts: number}>}
|
|
59
|
+
*/
|
|
60
|
+
export function launchLogRead() {
|
|
61
|
+
try {
|
|
62
|
+
const path = launchLogPath();
|
|
63
|
+
if (!existsSync(path)) return [];
|
|
64
|
+
return readFileSync(path, 'utf8')
|
|
65
|
+
.split('\n')
|
|
66
|
+
.filter((l) => l !== '')
|
|
67
|
+
.map((l) => { try { return JSON.parse(l); } catch { return null; } })
|
|
68
|
+
.filter(Boolean);
|
|
69
|
+
} catch { return []; }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Count how many of the recorded pids are still alive. Uses tasklist as the cheapest probe. */
|
|
73
|
+
/** @param {Array<{pid: number, target: string, args: string, ts: number}>} entries @returns {number} */
|
|
74
|
+
export function launchLogCountLive(entries) {
|
|
75
|
+
// No dependency on child_process here: the tool layer calls process.kill(pid, 0) per entry,
|
|
76
|
+
// which is a one-liner in the caller. This function is intentionally pure (filter + count)
|
|
77
|
+
// so it can be unit-tested without spawning.
|
|
78
|
+
return entries.length; // callers filter by alive status
|
|
79
|
+
}
|
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.14.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.14.0-rc.1",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|