dsh-windows-parallel-mcp 0.13.0-rc.1 → 0.13.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.de.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.es.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.fr.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.it.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.ja.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.ko.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.md CHANGED
@@ -33,6 +33,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
33
33
  switches it to code-point iteration; this rc introduces the primitive and proves it.
34
34
 
35
35
 
36
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
37
+
38
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
39
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
40
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
41
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
42
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
43
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
44
+ -- documented in the 0.13.0 promotion changelog.
45
+
46
+
36
47
  ## 0.12.0 — 2026-11-29
37
48
 
38
49
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.pt.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.ru.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/CHANGELOG.zh.md CHANGED
@@ -36,6 +36,17 @@ through a WinForms TextBox. The calling loop in `Send-WpmKeyText` stays on `Send
36
36
  switches it to code-point iteration; this rc introduces the primitive and proves it.
37
37
 
38
38
 
39
+ ## 0.13.0-rc.2 — 2026-11-29 (prerelease)
40
+
41
+ **`Send-WpmKeyText` iterates code points, not UTF-16 units.** The per-character loop now calls
42
+ `SendCodePoint` (rc.1's primitive) and advances by 2 for a surrogate pair. `$chars` counts CODE
43
+ POINTS: `"abc"` = 3, `"a\u{1F600}b"` = 3 (was 4 under the old UTF-16-unit iteration). The abort
44
+ reason reports "N of M code points". `events` reflects the real count (2 per BMP, 4 per
45
+ supplementary). Validated live: `abc` = 6 events (3*2), `a-emoji-b` = 8 events (2+4+2), both
46
+ chars=3. The `chars` semantic change is BREAKING for any caller that compared it to `Text.Length`
47
+ -- documented in the 0.13.0 promotion changelog.
48
+
49
+
39
50
  ## 0.12.0 — 2026-11-29
40
51
 
41
52
  **Concurrency: a slow call can no longer murder the calls queued behind it.** Promotes the
package/README.de.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Ein DSH-Plugin, mit dem ein Agent **seine eigenen** Windows-Fenster steuert — standardmäßig still, auf Anfrage sichtbar. Wenn ein Fenster Windows-Nachrichten akzeptiert, wird der Fokus nie entzogen. Wenn nur UI Automation es erreicht, gibt es einen einzigen begrenzten Fokus-Blitz, der automatisch rückgängig gemacht wird. Wenn Sie den Takeover-Modus ausdrücklich anfordern, bewegt sich der Cursor zum Aktionspunkt und wird immer wiederhergestellt; ein HUD bietet drei Möglichkeiten zum Abbruch. Überall anders wird mit Code und Grund abgelehnt.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
4
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1** — this document describes the contract as of that version. What
8
+ > **Current release: 0.13.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.13.0-rc.1",
3
+ "version": "0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-windows-parallel-mcp",
3
- "version": "0.13.0-rc.1",
3
+ "version": "0.13.0-rc.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "tag": "latest",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.drscrewdriver/dsh-windows-parallel-mcp",
4
4
  "title": "Windows Parallel",
5
5
  "description": "Drive a Windows window over MCP stdio: quiet by default, one policy ceiling, coded refusals.",
6
- "version": "0.13.0-rc.1",
6
+ "version": "0.13.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.13.0-rc.1",
17
+ "version": "0.13.0-rc.2",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },
@@ -145,25 +145,44 @@ function Send-WpmKeyText {
145
145
  [int]$CheckEveryMs = 50
146
146
  )
147
147
  if (-not $Text) { return @{ ok = $false; sent = 0; chars = 0; aborted = $false; reason = 'empty payload' } }
148
+ # Total code points in the payload (for the abort reason); one pass, cheap.
149
+ $totalCp = 0
150
+ for ($k = 0; $k -lt $Text.Length; ) {
151
+ $u = [int][char]$Text[$k]
152
+ if ($u -ge 0xD800 -and $u -le 0xDBFF -and ($k + 1) -lt $Text.Length) { $k += 2 } else { $k += 1 }
153
+ $totalCp++
154
+ }
148
155
  $chars = 0
149
156
  $events = 0
150
157
  $lastCheck = [DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds()
151
- for ($i = 0; $i -lt $Text.Length; $i++) {
158
+ # 0.13.0 rc.2: iterate by CODE POINT, not UTF-16 unit. A surrogate pair (emoji, CJK ext-B)
159
+ # is ONE code point = one SendCodePoint call = one 4-event batch; $chars counts code points
160
+ # ("\U0001F600" -> chars=1, not 2). The loop advances $i by 2 for a high surrogate and 1
161
+ # otherwise.
162
+ for ($i = 0; $i -lt $Text.Length; ) {
163
+ $unit = [int][char]$Text[$i]
164
+ if ($unit -ge 0xD800 -and $unit -le 0xDBFF -and ($i + 1) -lt $Text.Length) {
165
+ $cp = [char]::ConvertToUtf32([char]$Text[$i], [char]$Text[$i + 1])
166
+ $i += 2
167
+ } else {
168
+ $cp = $unit
169
+ $i += 1
170
+ }
152
171
  if ($ShouldAbort) {
153
- $dueByCount = ($CheckEveryChars -gt 0) -and (($i % $CheckEveryChars) -eq 0)
172
+ $dueByCount = ($CheckEveryChars -gt 0) -and (($chars % $CheckEveryChars) -eq 0)
154
173
  $nowMs = [DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds()
155
174
  $dueByTime = (($nowMs - $lastCheck) -ge $CheckEveryMs)
156
- if ($i -gt 0 -and ($dueByCount -or $dueByTime)) {
175
+ if ($chars -gt 0 -and ($dueByCount -or $dueByTime)) {
157
176
  $lastCheck = $nowMs
158
177
  $stop = $false
159
178
  try { $stop = [bool](& $ShouldAbort) } catch { $stop = $false }
160
179
  if ($stop) {
161
180
  return @{ ok = $false; sent = $events; chars = $chars; aborted = $true
162
- reason = 'interrupted after ' + $chars + ' of ' + $Text.Length + ' characters' }
181
+ reason = 'interrupted after ' + $chars + ' of ' + $totalCp + ' code points' }
163
182
  }
164
183
  }
165
184
  }
166
- $queued = [WpmInject]::SendChar([char]$Text[$i])
185
+ $queued = [WpmInject]::SendCodePoint($cp)
167
186
  $events += [int]$queued
168
187
  $chars += 1
169
188
  # Progress is published per character so a caller watching [WpmCtl]::InjectedChars (the HUD does)
@@ -171,7 +190,7 @@ function Send-WpmKeyText {
171
190
  [WpmCtl]::InjectedChars = $chars
172
191
  if ($queued -eq 0) {
173
192
  return @{ ok = $false; sent = $events; chars = $chars; aborted = $false
174
- reason = 'SendInput accepted no events for character ' + $i + ' (a higher-integrity foreground refuses input)' }
193
+ reason = 'SendInput accepted no events for code point ' + $chars + ' (a higher-integrity foreground refuses input)' }
175
194
  }
176
195
  Start-Sleep -Milliseconds 2
177
196
  }