dsh-windows-parallel-mcp 0.5.0 → 0.6.0
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 +7 -1
- package/CHANGELOG.es.md +7 -1
- package/CHANGELOG.fr.md +7 -1
- package/CHANGELOG.it.md +7 -1
- package/CHANGELOG.ja.md +6 -0
- package/CHANGELOG.ko.md +6 -0
- package/CHANGELOG.md +82 -3
- package/CHANGELOG.pt.md +7 -1
- package/CHANGELOG.ru.md +7 -1
- package/CHANGELOG.zh.md +6 -0
- package/README.de.md +94 -5
- package/README.es.md +94 -5
- package/README.fr.md +94 -5
- package/README.it.md +94 -5
- package/README.ja.md +94 -5
- package/README.ko.md +94 -5
- package/README.md +94 -5
- package/README.pt.md +94 -5
- package/README.ru.md +94 -5
- package/README.zh.md +94 -5
- package/dsh.plugin.json +2 -2
- package/lib/host-tools.js +15 -0
- package/lib/index.js +25 -6
- package/package.json +2 -2
- package/src/engine/engine.ps1 +159 -4
- package/src/engine/win.ps1 +230 -6
- package/src/engine/worker.ps1 +5 -0
- package/src/schema/tools.json +3 -1
- package/types/index.d.ts +29 -2
package/CHANGELOG.de.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 hebt `type` von „gesendet“ auf „das Feld enthält wirklich diesen Wert“: vierter `effect=readback-verified`, nur wenn der zurückgelesene Wert mit der Vorhersage übereinstimmt, die aus den Messungen DES CONTROLS gebaut wurde (Vorwert, WM_GETTEXTLENGTH, EM_GETSEL-Einfügepunkt); ein maskiertes Feld meldet `readback=unavailable`, eine umformatierende Anwendung `readbackMismatch=true` — beides ohne Hochstufung und doch `ok:true`. `caretPosition: idle|start|end` — gemessen ist `EM_SETSEL(-1,-1)` auf WinForms-EDIT ein No-op, daher nutzt `end` (len,len), und das Ergebnis trennt `asked=` und `applied=`. Fokus direkt vor/nach dem Senden erneut gemessen (`focusMoved`); deaktiviertes Ziel meldet `disabled=true` und `effect` auf `unverified` festgelegt. Screenshot nimmt bevorzugt BitBlt und meldet `captureBackend=bitblt|gdiplus` (Standbild: 0 Kanal-Differenz, byteidentische PNGs; der Engpass ist die Kodierung, nicht die Aufnahme). Gate 20 `check-shot-backend` (sieben Mutationen, jede rot) und `test/readback-truth.mjs` (36 Assertions, gegen die Selbstauskunft der App geprüft). Ein alter Defekt ist behoben: `SendMessageStrW` existiert nicht in user32.dll, darum scheiterte `replace:true` auf jedem Ziel. Keine neuen Verweigerungscodes. Autoritativ ist der englische Eintrag.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> 0.5.0 macht den „Rahmen“ für Aufrufer lesbar und nimmt die Koordinatenrechnung aus der Hand des Modells: drei Lese-Aktionen (`snapshot` als nummerierte Elementtabelle, `screenshot` mit der Zuordnung als Daten, `preview` mit dem Element unter einem Punkt als Text), `label`-Adressierung über die RuntimeId auf das Element zurückgeführt, `space:"image"` vom Motor umgerechnet, und ein vierzehnter Ablehnungscode `stale_ref`. Die geplante Invariante „jedes Element-Rect liegt in screenRect“ wurde durch Messung widerlegt (Überstände von 3/18/287/2720px; ein Rect ist eine absolute Bildschirmkoordinate und hängt gar nicht vom Rahmen ab) — ersetzt durch gezähltes Ausschließen nicht überlappender Elemente, einen Kreuzvergleich des Rahmens mit dem vom Baum gemeldeten Fenster-Rect (frameCheck/frameInset) und ein Struktur-Gate für die einzige Rahmenquelle. Gates 17→19, zwei unabhängige Oracle-Suiten. Details im englischen Eintrag.Zwei weitere Korrekturen: `uia_tree_empty` wird nicht mehr für Fenster gemeldet, die eine Tür haben, deren Tür aber durch `elementName` unterdrückt wurde (WinForms antwortet jetzt `unreachable`), und die Cursor-Drift-Assertion, die das Gate sporadisch rot färbte, schließt die Bewegung des Besitzers über `GetLastInputInfo` aus (SKIP mit age/Fenster bei Eingabe; der exakte Read-back des Motors bleibt eine harte Assertion).
|
|
19
|
+
> 0.5.0 macht den „Rahmen“ für Aufrufer lesbar und nimmt die Koordinatenrechnung aus der Hand des Modells: drei Lese-Aktionen (`snapshot` als nummerierte Elementtabelle, `screenshot` mit der Zuordnung als Daten, `preview` mit dem Element unter einem Punkt als Text), `label`-Adressierung über die RuntimeId auf das Element zurückgeführt, `space:"image"` vom Motor umgerechnet, und ein vierzehnter Ablehnungscode `stale_ref`. Die geplante Invariante „jedes Element-Rect liegt in screenRect“ wurde durch Messung widerlegt (Überstände von 3/18/287/2720px; ein Rect ist eine absolute Bildschirmkoordinate und hängt gar nicht vom Rahmen ab) — ersetzt durch gezähltes Ausschließen nicht überlappender Elemente, einen Kreuzvergleich des Rahmens mit dem vom Baum gemeldeten Fenster-Rect (frameCheck/frameInset) und ein Struktur-Gate für die einzige Rahmenquelle. Gates 17→19, zwei unabhängige Oracle-Suiten. Details im englischen Eintrag. Zwei weitere Korrekturen: `uia_tree_empty` wird nicht mehr für Fenster gemeldet, die eine Tür haben, deren Tür aber durch `elementName` unterdrückt wurde (WinForms antwortet jetzt `unreachable`), und die Cursor-Drift-Assertion, die das Gate sporadisch rot färbte, schließt die Bewegung des Besitzers über `GetLastInputInfo` aus (SKIP mit age/Fenster bei Eingabe; der exakte Read-back des Motors bleibt eine harte Assertion).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.es.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 eleva `type` de «lo envié» a «el campo contiene este valor»: cuarto `effect=readback-verified`, concedido solo cuando el valor releído coincide con la predicción construida sobre las medidas QUE EL CONTROL reportó (valor previo, WM_GETTEXTLENGTH, punto de EM_GETSEL); un campo enmascarado dice `readback=unavailable` y una app que reformatea dice `readbackMismatch=true`, ninguno se promueve y ninguno es un fallo. `caretPosition: idle|start|end` — medido: `EM_SETSEL(-1,-1)` no hace nada en EDIT de WinForms, así que `end` usa (len,len) y el resultado separa `asked=` de `applied=`. Foco re-medido en el instante del envío (`focusMoved`); objetivo deshabilitado reporta `disabled=true` con `effect` fijado a `unverified`. La captura prefiere BitBlt y declara `captureBackend=bitblt|gdiplus` (escena fija: 0 diferencia por canal, PNG idénticos byte a byte; el cuello es la codificación, no la captura). Nuevo gate 20 `check-shot-backend` (siete mutaciones, todas en rojo) y `test/readback-truth.mjs` (36 afirmaciones, juzgadas contra el auto-reporte de la app). Corregido un defecto antiguo: `SendMessageStrW` no está exportado por user32.dll, así que `replace:true` fallaba en cada objetivo. Sin nuevos códigos de rechazo. La entrada inglesa es la autoritativa.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> 0.5.0 hace legible el «marco» para quien llama y saca el cálculo de coordenadas de manos del modelo: tres acciones de solo lectura (`snapshot` como tabla numerada de elementos, `screenshot` que devuelve la tabla de correspondencia, `preview` que informa en texto el elemento bajo un punto), direccionamiento por `label` resuelto al elemento por su RuntimeId, `space:"image"` convertido por el motor, y un decimocuarto código de rechazo `stale_ref`. El invariante previsto «todo rect de elemento está contenido en screenRect» quedó refutado por la medición (desbordes de 3/18/287/2720px, y un rect es una coordenada absoluta de pantalla, independiente del marco): se sustituye por exclusión contada de elementos fuera de la captura, comprobación cruzada del marco con el rect que declara el árbol (frameCheck/frameInset) y una puerta estructural de fuente única. Puertas 17→19, dos suites con oráculo independiente. Detalle en la entrada inglesa.Dos correcciones más: `uia_tree_empty` ya no se informa para ventanas que sí tienen una puerta pero la suprimieron con `elementName` (WinForms responde ahora `unreachable`), y la aserción de deriva del cursor que ponía la puerta en rojo de forma intermitente ahora excluye el movimiento del dueño mediante `GetLastInputInfo` (SKIP con age/ventana si hubo entrada; el read-back exacto del motor sigue siendo una aserción estricta).
|
|
19
|
+
> 0.5.0 hace legible el «marco» para quien llama y saca el cálculo de coordenadas de manos del modelo: tres acciones de solo lectura (`snapshot` como tabla numerada de elementos, `screenshot` que devuelve la tabla de correspondencia, `preview` que informa en texto el elemento bajo un punto), direccionamiento por `label` resuelto al elemento por su RuntimeId, `space:"image"` convertido por el motor, y un decimocuarto código de rechazo `stale_ref`. El invariante previsto «todo rect de elemento está contenido en screenRect» quedó refutado por la medición (desbordes de 3/18/287/2720px, y un rect es una coordenada absoluta de pantalla, independiente del marco): se sustituye por exclusión contada de elementos fuera de la captura, comprobación cruzada del marco con el rect que declara el árbol (frameCheck/frameInset) y una puerta estructural de fuente única. Puertas 17→19, dos suites con oráculo independiente. Detalle en la entrada inglesa. Dos correcciones más: `uia_tree_empty` ya no se informa para ventanas que sí tienen una puerta pero la suprimieron con `elementName` (WinForms responde ahora `unreachable`), y la aserción de deriva del cursor que ponía la puerta en rojo de forma intermitente ahora excluye el movimiento del dueño mediante `GetLastInputInfo` (SKIP con age/ventana si hubo entrada; el read-back exacto del motor sigue siendo una aserción estricta).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 fait passer `type` de « envoyé » à « le champ contient bien cette valeur » : quatrième `effect=readback-verified`, accordé seulement quand la valeur relue après coup correspond à la prédiction bâtie sur les mesures que LE CONTRÔLE a rapportées (valeur précédente, WM_GETTEXTLENGTH, position EM_GETSEL) ; un champ masqué dit `readback=unavailable`, une application qui reformate dit `readbackMismatch=true`, sans promotion dans les deux cas et sans échec. `caretPosition: idle|start|end` — mesuré, `EM_SETSEL(-1,-1)` ne fait rien sur un EDIT WinForms, donc `end` utilise (len,len) et le résultat distingue `asked=` de `applied=`. Reprobe du focus à l’instant de l’envoi (`focusMoved`), cible désactivée signalée (`disabled=true`, `effect` figé à `unverified`). La capture passe en priorité par BitBlt et déclare `captureBackend=bitblt|gdiplus` (scène fixe : différence de canal 0, PNG identiques au bit près ; le goulot est l’encodage, pas la capture). Nouveau gate 20 `check-shot-backend` (sept mutations vues rouges) et `test/readback-truth.mjs` (36 assertions, jugées contre le valeur que l’application écrit elle-même). Un défaut de longue date est corrigé : `SendMessageStrW` n’est pas exporté par user32.dll, donc `replace:true` échouait sur chaque cible. Aucun nouveau code de refus. Voir l’entrée anglaise, autoritaire.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> 0.5.0 rend le « cadre » lisible par l'appelant et retire le calcul des coordonnées des mains du modèle : trois actions en lecture seule (`snapshot` en table d'éléments numérotée, `screenshot` qui renvoie la table de correspondance, `preview` qui rapporte en texte l'élément sous un point), l'adressage par `label` résolu vers l'élément via son RuntimeId, `space:"image"` converti par le moteur, et un quatorzième code de refus `stale_ref`. L'invariant prévu « chaque rect d'élément est contenu dans screenRect » a été réfuté par la mesure (dépassements de 3/18/287/2720px, et un rect est une coordonnée écran absolue, indépendante du cadre) : remplacé par l'exclusion comptée des éléments hors capture, un contrôle croisé du cadre avec le rect que l'arbre déclare (frameCheck/frameInset), et un garde-fou structurel de source unique. Portes 17→19 ; deux suites d'oracle indépendantes ajoutées. Voir l'entrée anglaise pour le détail.Deux corrections supplémentaires : `uia_tree_empty` n'est plus rapporté pour une fenêtre qui a bien une porte mais dont la porte a été supprimée par `elementName` (WinForms répond désormais `unreachable`), et l'assertion de dérive du curseur qui rendait la porte rouge par intermittence exclut maintenant l'action du propriétaire via `GetLastInputInfo` (SKIP avec age/fenêtre si une saisie est arrivée ; le read-back exact du moteur reste une assertion stricte).
|
|
19
|
+
> 0.5.0 rend le « cadre » lisible par l'appelant et retire le calcul des coordonnées des mains du modèle : trois actions en lecture seule (`snapshot` en table d'éléments numérotée, `screenshot` qui renvoie la table de correspondance, `preview` qui rapporte en texte l'élément sous un point), l'adressage par `label` résolu vers l'élément via son RuntimeId, `space:"image"` converti par le moteur, et un quatorzième code de refus `stale_ref`. L'invariant prévu « chaque rect d'élément est contenu dans screenRect » a été réfuté par la mesure (dépassements de 3/18/287/2720px, et un rect est une coordonnée écran absolue, indépendante du cadre) : remplacé par l'exclusion comptée des éléments hors capture, un contrôle croisé du cadre avec le rect que l'arbre déclare (frameCheck/frameInset), et un garde-fou structurel de source unique. Portes 17→19 ; deux suites d'oracle indépendantes ajoutées. Voir l'entrée anglaise pour le détail. Deux corrections supplémentaires : `uia_tree_empty` n'est plus rapporté pour une fenêtre qui a bien une porte mais dont la porte a été supprimée par `elementName` (WinForms répond désormais `unreachable`), et l'assertion de dérive du curseur qui rendait la porte rouge par intermittence exclut maintenant l'action du propriétaire via `GetLastInputInfo` (SKIP avec age/fenêtre si une saisie est arrivée ; le read-back exact du moteur reste une assertion stricte).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.it.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 porta `type` da «inviato» a «il campo contiene davvero questo valore»: quarto `effect=readback-verified`, concesso solo quando il valore riletto corrisponde alla previsione costruita sulle misure CHE IL CONTROLLO ha riportato (valore precedente, WM_GETTEXTLENGTH, punto EM_GETSEL); un campo mascherato dice `readback=unavailable`, un’app che riformatta dice `readbackMismatch=true`, nessuno dei due viene promosso e nessuno dei due è un errore. `caretPosition: idle|start|end` — misurato: `EM_SETSEL(-1,-1)` su EDIT WinForms non fa nulla, quindi `end` usa (len,len) e il risultato distingue `asked=` da `applied=`. Focus rimisurato nell’istante dell’invio (`focusMoved`); target disabilitato riporta `disabled=true` con `effect` bloccato a `unverified`. Lo screenshot preferisce BitBlt e dichiara `captureBackend=bitblt|gdiplus` (scena fissa: differenza di canale 0, PNG byte identici; il collo è la codifica, non la cattura). Nuovo gate 20 `check-shot-backend` ( sette mutazioni, tutte rosse) e `test/readback-truth.mjs` (36 asserzioni, verificate sull’auto-denuncia dell’app). Corretto un difetto antico: `SendMessageStrW` non è esportato da user32.dll, quindi `replace:true` falliva su ogni target. Nessun nuovo codice di rifiuto. Autoritaria la voce inglese.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> 0.5.0 rende il «frame» leggibile dal chiamante e toglie il calcolo delle coordinate dalle mani del modello: tre azioni di sola lettura (`snapshot` come tabella numerata di elementi, `screenshot` che restituisce la mappatura, `preview` che riporta in testo l'elemento sotto un punto), indirizzamento `label` risolto sull'elemento tramite RuntimeId, `space:"image"` convertito dal motore, e un quattordicesimo codice di rifiuto `stale_ref`. L'invariante previsto «ogni rect di elemento è contenuto in screenRect» è stato smentito dalla misura (sconfinamenti di 3/18/287/2720px; un rect è una coordinata schermo assoluta, indipendente dal frame): sostituito dall'esclusione conteggiata degli elementi fuori cattura, da un controllo incrociato tra frame e rect dichiarato dall'albero (frameCheck/frameInset) e da un gate strutturale della fonte unica. Gate 17→19, due suite oracle indipendenti. Dettagli nella voce inglese.Due ulteriori correzioni: `uia_tree_empty` non viene più riportato per finestre che hanno una porta ma l'hanno soppressa con `elementName` (WinForms ora risponde `unreachable`), e l'asserzione di deriva del cursore che rendeva il gate rosso a intermittenza ora esclude il movimento del proprietario via `GetLastInputInfo` (SKIP con age/finestra se arriva un input; il read-back esatto del motore resta un'asserzione rigida).
|
|
19
|
+
> 0.5.0 rende il «frame» leggibile dal chiamante e toglie il calcolo delle coordinate dalle mani del modello: tre azioni di sola lettura (`snapshot` come tabella numerata di elementi, `screenshot` che restituisce la mappatura, `preview` che riporta in testo l'elemento sotto un punto), indirizzamento `label` risolto sull'elemento tramite RuntimeId, `space:"image"` convertito dal motore, e un quattordicesimo codice di rifiuto `stale_ref`. L'invariante previsto «ogni rect di elemento è contenuto in screenRect» è stato smentito dalla misura (sconfinamenti di 3/18/287/2720px; un rect è una coordinata schermo assoluta, indipendente dal frame): sostituito dall'esclusione conteggiata degli elementi fuori cattura, da un controllo incrociato tra frame e rect dichiarato dall'albero (frameCheck/frameInset) e da un gate strutturale della fonte unica. Gate 17→19, due suite oracle indipendenti. Dettagli nella voce inglese. Due ulteriori correzioni: `uia_tree_empty` non viene più riportato per finestre che hanno una porta ma l'hanno soppressa con `elementName` (WinForms ora risponde `unreachable`), e l'asserzione di deriva del cursore che rendeva il gate rosso a intermittenza ora esclude il movimento del proprietario via `GetLastInputInfo` (SKIP con age/finestra se arriva un input; il read-back esatto del motore resta un'asserzione rigida).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.ja.md
CHANGED
|
@@ -8,6 +8,12 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 は `type` を「送信した」から「欄に実際にその値が入った」へ引き上げる。第4の `effect=readback-verified` を追加(書き込み後に読み戻した値が、コントロール自身が報告したデータ——元の値・WM_GETTEXTLENGTH・EM_GETSEL の着地点——から作った予測と完全一致した場合だけが認定される。マスクされた欄は `readback=unavailable`、アプリが入力を整形し直した場合は `readbackMismatch=true` で、どちらも昇格しないが ok:true のまま)。`caretPosition: idle|start|end`(実測では WinForms EDIT の `EM_SETSEL(-1,-1)` は無効だったため end は (len,len) を使い、asked= と applied= を分けて報告)。送信直前の焦点再測定 `focusMoved`、無効化された対象は `disabled=true` かつ effect を unverified に固定。スクリーンショットは BitBlt を優先し `captureBackend=bitblt|gdiplus` を報告(静止シーンで两経路のチャンネル差 0・PNG バイト一致が実測済み。ボトルネックは符号化であり取得ではない)。第20ゲート check-shot-backend(7 変異すべて赤)と test/readback-truth.mjs(36 検証、アプリ側自己報告値と照合)を追加。長年の欠陥も修正:`SendMessageStrW` は user32.dll のエクスポートではないため、`replace:true` はあらゆる対象で action_failed になっていた。拒否コードの追加はゼロ。詳細は英語版が権威。
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
19
|
> 0.5.0 は「フレーム」を呼び出し側が読めるものにし、座標計算をモデルの手から取り上げるリリース。読み取り専用の 3 アクション(`snapshot` の番号付き要素表、`screenshot` は対応表ごと返す、`preview` は点の下の要素をテキストで報告)、`label` を RuntimeId で要素に戻す仕組み、`space:"image"` のエンジン側換算、14 番目の拒否コード `stale_ref` を追加。計画にあった「要素 rect は screenRect に含まれる」不変条件は実測で否定された(3/18/287/2720px のはみ出し、かつ rect は絶対スクリーン座標でフレーム非依存)ため、はみ出し要素の除外+計数、フレームとツリー自己申告矩形の相互検査、単一フレーム源の構造ゲートに置き換えた。ゲートは 17→19。詳細は英語の正式項目を参照。さらに 2 件修正:`uia_tree_empty` が「本来ドアがあるのに elementName で抑制されただけ」の窓に誤って出なくなり(WinForms は `unreachable` を返す)、ゲートを稀に赤くしていたカーソル移動量の判定は `GetLastInputInfo` で操作者の入力を除外(入力があれば age/window を添えて SKIP、エンジン自身の read-back は厳格なまま)した。
|
package/CHANGELOG.ko.md
CHANGED
|
@@ -8,6 +8,12 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0은 `type`을 "보냈다"에서 "필드에 실제로 이 값이 들어갔다"로 끌어올린다. 네 번째 `effect=readback-verified`를 추가했다 — 쓸 뒤 다시 읽은 값이 컨트롤 스스로 보고한 데이터(원래 값, WM_GETTEXTLENGTH, EM_GETSEL 착점)로 만든 예측과 완전히 맞을 때만 인정된다. 가려진 필드는 `readback=unavailable`, 앱이 입력을 다시整形한 경우는 `readbackMismatch=true`이며 둘 다 승격하지 않으되 ok:true는 유지된다. `caretPosition: idle|start|end`(실측 결과 WinForms EDIT에서 `EM_SETSEL(-1,-1)`는 동작하지 않으므로 end는 (len,len)를 쓰고, asked=와 applied=를 나눠 보고한다). 전송 직전 초점 재측정 `focusMoved`, 비활성화 대상은 `disabled=true`와 effect를 unverified로 고정. 스크린샷은 BitBlt를 먼저 쓰고 `captureBackend=bitblt|gdiplus`를 보고한다(정지 장면에서 두 경로가 채널 차 0·PNG 바이트 동일을 실측, 병목은 인코딩이지 캡처가 아니다). 20번째 게이트 check-shot-backend(7개 변이 모두 빨강)와 test/readback-truth.mjs(36 검증, 앱 자체 보고 값과 대조)를 추가했다. 오래된 결함도 고쳤다: `SendMessageStrW`는 user32.dll 내보내기 기호가 아니라 `replace:true`가 모든 대상에서 action_failed였다. 거절 코드 추가는 없다. 상세는 영어본이 권위이다.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
19
|
> 0.5.0은 「프레임」을 호출자가 읽을 수 있게 만들고 좌표 계산을 모델의 손에서 떼어낸 릴리스입니다. 읽기 전용 액션 3종(`snapshot` 번호 요소표, `screenshot`은 매핑까지 반환, `preview`는 지점 아래 요소를 텍스트로 보고), `label`을 RuntimeId로 요소에 되돌리는 방식, `space:"image"`의 엔진 환산, 14번째 거부 코드 `stale_ref`를 추가했습니다. 계획의 「모든 요소 rect는 screenRect 안에 있어야 한다」 불변식은 실측으로 반박되었습니다(3/18/287/2720px 초과, rect는 절대 화면 좌표라 프레임과 무관). 대신 초과 요소 제외·계수, 프레임과 트리 자기신고 사각형의 상호 검사, 단일 프레임 소스 구조 게이트로 바꿨습니다. 게이트 17→19. 자세한 내용은 영어 정본 항목 참조.두 가지 추가 수정: `uia_tree_empty`가 「원래 문이 있는데 elementName 때문에 억제된」 창에 더 이상 잘못 나오지 않고(WinForms는 `unreachable`), 게이트를 간헐적으로 붉히던 커서 이동량 판정은 `GetLastInputInfo`로 사용자의 입력을 제외(입력이 있으면 age/window를 출력하고 SKIP, 엔진 자체 read-back은 여전히 엄격)했다.
|
package/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,86 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
9
|
+
|
|
10
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
11
|
+
|
|
12
|
+
**`type` stops reporting the send and starts reporting the field, and the screenshot says which path
|
|
13
|
+
painted it.** Four input-reliability additions on the existing `type` path, one capture swap, one gate,
|
|
14
|
+
and a shipped defect that only this batch's test found. No refusal code changed anywhere in this
|
|
15
|
+
release, deliberately: every new fact is a state of the target or of the read, not an error in the
|
|
16
|
+
call, and a caller that branches on codes must keep branching on the same twelve.
|
|
17
|
+
|
|
18
|
+
### Added — reading the write back
|
|
19
|
+
|
|
20
|
+
- **`effect=readback-verified`, the fourth value.** After the settle window the engine reads the value
|
|
21
|
+
back — `WM_GETTEXT` on the message door, `Current.Value` on the UIA `value`/`legacy` patterns — and
|
|
22
|
+
grants the value only when the read equals a prediction built from measurements **the control
|
|
23
|
+
itself** reported: the value it held before, its own `WM_GETTEXTLENGTH`, its own `EM_GETSEL` answer
|
|
24
|
+
for where a typed character lands. A field that does not expose its text (measured: `ES_PASSWORD`
|
|
25
|
+
returns an empty string while the length stays real) says `readback=unavailable` and is not upgraded;
|
|
26
|
+
a value that comes back different says `readbackMismatch=true` and is not upgraded — and the call is
|
|
27
|
+
still `ok:true`, because an application that reformats input has not failed.
|
|
28
|
+
- **`caretPosition: idle | start | end`** on `type`, message door. `idle` touches nothing; `start` is
|
|
29
|
+
`EM_SETSEL(0,0)`; `end` is `EM_SETSEL(len,len)` with `len` read from the control — **not** the
|
|
30
|
+
documented `-1`, which measured as a no-op on WinForms EDIT (the typed character went to the front).
|
|
31
|
+
The result reports `asked=` and `applied=` separately because on a buffer holding newlines the
|
|
32
|
+
numeric end can land inside the text (`asked=6 applied=4,4`); that is stated, not smoothed over. The
|
|
33
|
+
UIA `value` channel replaces the whole value and has no caret to move, so it answers
|
|
34
|
+
`caretIgnored=value-pattern` instead of pretending.
|
|
35
|
+
- **Focus re-measured at the moment of sending**: two `Get-WpmFocusEntry` readings around the door call;
|
|
36
|
+
a difference reports `focusMoved=true`. A warning, never a refusal — refusing here would kill correct
|
|
37
|
+
writes to be safe about a fact the readback already judges better.
|
|
38
|
+
- **Disabled-target detection** via `IsWindowEnabled`: `disabled=true` in `detail` and `effect` pinned
|
|
39
|
+
to `unverified`. Measured reason: a disabled window answers every message we send — `WM_SETTEXT` even
|
|
40
|
+
still lands — while Windows throws a click at it away, so the one thing it must not earn is an effect
|
|
41
|
+
claim.
|
|
42
|
+
- **`captureBackend=bitblt|gdiplus`** on every screenshot, in the text and the structured result.
|
|
43
|
+
|
|
44
|
+
### Changed — the capture path
|
|
45
|
+
|
|
46
|
+
- `Get-WpmScreenshot` now prefers a direct GDI `BitBlt` off the **screen** DC and falls back to
|
|
47
|
+
`Graphics.CopyFromScreen`. Same source semantics on purpose (an occluding window stays visible in the
|
|
48
|
+
picture, the coordinates stay the ones a click uses); `GetWindowDC`/`PrintWindow` would have been a
|
|
49
|
+
different product. Measured on this host: capture 16–21 ms against 22–33 ms for 1920×1080, PNG encode
|
|
50
|
+
37–39 ms in both paths — **the encoder is the bottleneck, not the capture**, which is why JPEG (6 ms,
|
|
51
|
+
and text smears), WIC (158 ms) and 24bpp (7 % smaller) were each measured and each rejected. A
|
|
52
|
+
separate probe established equivalence on a **still** scene rather than by file hash, because two
|
|
53
|
+
captures of a live desktop cannot match by construction: identical size, both non-blank, 0 maximum
|
|
54
|
+
per-channel difference over 17 388 sampled points, byte-identical PNGs — with the reported difference
|
|
55
|
+
that `FromHbitmap` yields `Format32bppRgb` where `CopyFromScreen` yields `Format32bppArgb`.
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- **`type` with `replace:true` threw on every target since the message door existed.** The `WM_SETTEXT`
|
|
60
|
+
binding was declared as `SendMessageStrW`, an export `user32.dll` does not have, so the first call
|
|
61
|
+
raised `EntryPointNotFoundException` and surfaced as `action_failed`. No gate could see it — the parse
|
|
62
|
+
gate checks syntax, and no test in the repository drove `replace:true` through the door. The entry
|
|
63
|
+
point is now pinned explicitly and the arm ships in `test/readback-truth.mjs`.
|
|
64
|
+
- `scripts/check-types.mjs` reported "all 8 actions, 14 refusal codes" from a hardcoded string; the
|
|
65
|
+
counts are read from `src/schema/tools.json` now, so growing the contract cannot leave a green gate
|
|
66
|
+
reciting an outdated number.
|
|
67
|
+
|
|
68
|
+
### Gates and tests
|
|
69
|
+
|
|
70
|
+
- Gate 20: `scripts/check-shot-backend.mjs --self-test` — fast path called, GDI objects released in a
|
|
71
|
+
`finally`, the fallback reachable and guarded, `captureBackend` produced → forwarded → printed. Seven
|
|
72
|
+
mutations, each seen red; the first run of the gate caught two of its own vacuous assertions this way.
|
|
73
|
+
- `test/readback-truth.mjs` (new, 36 assertions) grades against the value the **application** wrote
|
|
74
|
+
about itself from inside its own process, never against our own read. Its falsification arm is a
|
|
75
|
+
read-only WinForms edit — which silently refuses `WM_CHAR` while honouring `WM_SETTEXT` — so the run
|
|
76
|
+
contains both a refusal that must not upgrade and, on the same control, a write that must.
|
|
77
|
+
Two other falsification candidates were eliminated by measurement first (a bare `LF` is preserved
|
|
78
|
+
verbatim; WinForms enforces `MaxLength` in its own handler, not through `EM_SETLIMITTEXT`).
|
|
79
|
+
- `test/plugin-test.mjs` carries the four-value `effect` list and asserts the host never upgrades an
|
|
80
|
+
engine result on its own. Full gate: **20 arms, `GATE GREEN` ×3**; desktop regression
|
|
81
|
+
hud / takeover / keyinject / signal / overlay / marker all pass.
|
|
82
|
+
- Zero install dependencies unchanged: no new package, no network surface, no mouse injection
|
|
83
|
+
(`check-no-cursor-control` still green with the same two whitelisted uses).
|
|
84
|
+
|
|
8
85
|
## 0.5.0 — 2026-11-23
|
|
9
86
|
|
|
10
|
-
>
|
|
11
|
-
> was already 0.5.0 and the tarball was built, but publishing needs the owner's sign-off. The
|
|
12
|
-
> registry `time` for 0.5.0 replaces this line when it ships.
|
|
87
|
+
> Published 2026-11-23T14:19:37.293Z (registry `time` for 0.5.0, read from the packument, not from a commit date).
|
|
13
88
|
|
|
14
89
|
**The frame becomes something the caller can read, and the coordinate arithmetic leaves the model.**
|
|
15
90
|
Three read actions, one new refusal code, and one planned invariant that measurement destroyed — kept
|
|
@@ -114,6 +189,10 @@ What replaced it, with each part tested for non-vacuity:
|
|
|
114
189
|
- Non-vacuity was proven by injection, not asserted: the rect comparison rejects the `GetWindowRect`
|
|
115
190
|
rect and a +10px shift; a generated all-white PNG reads blank; the frame predicate says yes to the
|
|
116
191
|
measured pair and no to a frame that pokes outside it; every structural mutation turns its gate red.
|
|
192
|
+
- The `CHANGELOG.md` **inside the 0.5.0 tarball** still carries the pre-publish "working date" line,
|
|
193
|
+
because the tarball is frozen at publish time and the registry time was written back afterwards.
|
|
194
|
+
This entry (in the repository) carries the real one: `2026-11-23T14:19:37.293Z`. The same
|
|
195
|
+
retroactivity applied to 0.4.0's README, and is recorded there for the same reason.
|
|
117
196
|
- Two things this release did **not** fix, stated rather than hidden:
|
|
118
197
|
- This host's `UIAutomationClient` has no `LegacyIAccessiblePattern` type at all (measured:
|
|
119
198
|
`Unable to find type`), so any target that exposes only the MSAA bridge — WinForms among them —
|
package/CHANGELOG.pt.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 eleva `type` de “enviei” para “o campo realmente contém este valor”: quarto `effect=readback-verified`, concedido só quando o valor relido coincide com a previsão construída a partir das medidas QUE O CONTROLE reportou (valor anterior, WM_GETTEXTLENGTH, ponto de EM_GETSEL); campo mascarado diz `readback=unavailable` e app que reformata diz `readbackMismatch=true` — nenhum promove, nenhum falha. `caretPosition: idle|start|end` — medido: `EM_SETSEL(-1,-1)` não faz nada em EDIT do WinForms, então `end` usa (len,len) e o resultado separa `asked=` de `applied=`. Foco remedido no instante do envio (`focusMoved`); alvo desabilitado informa `disabled=true` com `effect` fixado em `unverified`. A captura prefere BitBlt e declara `captureBackend=bitblt|gdiplus` (cena estática: 0 diferença por canal, PNGs byte-idênticos; o gargalo é a codificação, não a captura). Novo gate 20 `check-shot-backend` (sete mutações, todas vermelhas) e `test/readback-truth.mjs` (36 asserções, julgadas contra o auto-relato do app). Corrigido um defeito antigo: `SendMessageStrW` não é exportado pelo user32.dll, então `replace:true` falhava em todo alvo. Sem novos códigos de recusa. A entrada em inglês é a autoritativa.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> O 0.5.0 torna o «quadro» legível por quem chama e retira a aritmética de coordenadas das mãos do modelo: três ações só de leitura (`snapshot` como tabela numerada de elementos, `screenshot` que devolve o mapeamento, `preview` que reporta em texto o elemento sob um ponto), endereçamento por `label` resolvido ao elemento pelo RuntimeId, `space:"image"` convertido pelo motor, e um décimo quarto código de recusa `stale_ref`. O invariante planeado «cada rect de elemento está contido em screenRect» foi refutado pela medição (excessos de 3/18/287/2720px, e um rect é coordenada absoluta de ecrã, independente do quadro): substituído por exclusão contada de elementos fora da captura, verificação cruzada do quadro com o rect declarado pela árvore (frameCheck/frameInset) e um portão estrutural de fonte única. Portões 17→19, duas suites com oráculo independente. Detalhe na entrada inglesa.Mais duas correções: `uia_tree_empty` já não é reportado para janelas que têm porta mas a suprimiram com `elementName` (o WinForms responde agora `unreachable`), e a asserção de deriva do cursor que deixava o portão vermelho de forma intermitente passou a excluir o movimento do dono via `GetLastInputInfo` (SKIP com age/janela quando há entrada; o read-back exato do motor continua a ser uma asserção estrita).
|
|
19
|
+
> O 0.5.0 torna o «quadro» legível por quem chama e retira a aritmética de coordenadas das mãos do modelo: três ações só de leitura (`snapshot` como tabela numerada de elementos, `screenshot` que devolve o mapeamento, `preview` que reporta em texto o elemento sob um ponto), endereçamento por `label` resolvido ao elemento pelo RuntimeId, `space:"image"` convertido pelo motor, e um décimo quarto código de recusa `stale_ref`. O invariante planeado «cada rect de elemento está contido em screenRect» foi refutado pela medição (excessos de 3/18/287/2720px, e um rect é coordenada absoluta de ecrã, independente do quadro): substituído por exclusão contada de elementos fora da captura, verificação cruzada do quadro com o rect declarado pela árvore (frameCheck/frameInset) e um portão estrutural de fonte única. Portões 17→19, duas suites com oráculo independente. Detalhe na entrada inglesa. Mais duas correções: `uia_tree_empty` já não é reportado para janelas que têm porta mas a suprimiram com `elementName` (o WinForms responde agora `unreachable`), e a asserção de deriva do cursor que deixava o portão vermelho de forma intermitente passou a excluir o movimento do dono via `GetLastInputInfo` (SKIP com age/janela quando há entrada; o read-back exato do motor continua a ser uma asserção estrita).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -8,9 +8,15 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 поднимает `type` с «я отправил» на «в поле действительно это значение»: четвёртый `effect=readback-verified` — только когда прочитанное обратно значение совпадает с предсказанием, построенным на измерениях, которые СООБЩИЛ САМ КОНТРОЛЬ (прежнее значение, WM_GETTEXTLENGTH, точка вставки EM_GETSEL); masked-поле отвечает `readback=unavailable`, приложение переформатировало ввод — `readbackMismatch=true`; ни то ни другое не повышает статус и не является ошибкой. `caretPosition: idle|start|end` — измерено: `EM_SETSEL(-1,-1)` на WinForms EDIT не работает, поэтому `end` использует (len,len), а результат раздельно сообщает `asked=` и `applied=`. Фокус переизмеряется в момент отправки (`focusMoved`); отключённое окно даёт `disabled=true`, а `effect` принудительно `unverified`. Снимок теперь предпочитает BitBlt и сообщает `captureBackend=bitblt|gdiplus` (на неподвижной сцене: 0 расхождений по каналам, PNG совпадают побайтово; узкое место — кодирование, а не захват). Новый гейт 20 `check-shot-backend` (семь мутаций, каждая красная) и `test/readback-truth.mjs` (36 проверок, сверяемых с самоотчётом приложения). Исправлен давний дефект: `SendMessageStrW` отсутствует в user32.dll, поэтому `replace:true` падал на каждой мишени. Новые коды отказа не добавлены. Авторитетна английская запись.
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
|
-
> 0.5.0 делает «рамку» читаемой для вызывающей стороны и убирает расчёт координат из рук модели: три действия только на чтение (`snapshot` как нумерованная таблица элементов, `screenshot` возвращает соответствие координат, `preview` текстом сообщает элемент под точкой), адресация по `label` с возвратом к элементу по RuntimeId, `space:"image"` преобразуется движком, и четырнадцатый код отказа `stale_ref`. Запланированный инвариант «каждый rect элемента лежит внутри screenRect» опровергнут измерением (выходы за границы 3/18/287/2720px; rect — абсолютная экранная координата и от рамки не зависит): заменён на подсчитанное исключение непересекающихся элементов, взаимную проверку рамки с rect, который сообщает само дерево (frameCheck/frameInset), и структурный гейт единственного источника рамки. Гейтов 17→19, добавлены две независимые oracle-серии. Подробности в английской
|
|
19
|
+
> 0.5.0 делает «рамку» читаемой для вызывающей стороны и убирает расчёт координат из рук модели: три действия только на чтение (`snapshot` как нумерованная таблица элементов, `screenshot` возвращает соответствие координат, `preview` текстом сообщает элемент под точкой), адресация по `label` с возвратом к элементу по RuntimeId, `space:"image"` преобразуется движком, и четырнадцатый код отказа `stale_ref`. Запланированный инвариант «каждый rect элемента лежит внутри screenRect» опровергнут измерением (выходы за границы 3/18/287/2720px; rect — абсолютная экранная координата и от рамки не зависит): заменён на подсчитанное исключение непересекающихся элементов, взаимную проверку рамки с rect, который сообщает само дерево (frameCheck/frameInset), и структурный гейт единственного источника рамки. Гейтов 17→19, добавлены две независимые oracle-серии. Подробности в английской записи. Ещё две правки: `uia_tree_empty` больше не выдаётся для окон, у которых есть дверь, но она подавлена через `elementName` (WinForms теперь честно отвечает `unreachable`), а утверждение о дрейфе курсора, из-за которого гейт изредка краснел, теперь исключает движение владельца через `GetLastInputInfo` (SKIP с age/окном при наличии ввода; точный read-back двигателя остаётся строгим утверждением).
|
|
14
20
|
|
|
15
21
|
## 0.4.1 — 2026-11-23
|
|
16
22
|
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -8,6 +8,12 @@ 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
|
+
## 0.6.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.6.0 让 `type` 从「发出去了」抬到「字段里确实是这个值」:新增第四种 `effect=readback-verified`(只有把写入后读回的值与「用控件自己报的数据」——原值、WM_GETTEXTLENGTH、EM_GETSEL 落点——构造出的预测完全一致时才授予;掩码字段报 `readback=unavailable`,应用改写了输入报 `readbackMismatch=true`,两者都不升级且仍是 ok:true);`caretPosition: idle|start|end`(实测 `EM_SETSEL(-1,-1)` 在 WinForms EDIT 上是空操作,所以 end 用 (len,len),并把 asked= 与 applied= 分开回报);发送瞬间焦点复测 `focusMoved`,禁用目标 `disabled=true` 且 effect 钉为 unverified;截图优先走 BitBlt 并回报 `captureBackend=bitblt|gdiplus`(静止场景实测两路 0 通道差、PNG 字节相同;瓶颈是 PNG 编码不是捕获)。新增第 20 道门禁 check-shot-backend(7 个变异全见红)与 test/readback-truth.mjs(36 断言,按应用进程内自报值验收,非空转臂用「只读框静默拒绝 WM_CHAR 而接受 WM_SETTEXT」这一实测现象)。另修一个长期缺陷:`SendMessageStrW` 不是 user32.dll 的导出,`replace:true` 此前在每个目标上都报 action_failed。拒绝码零新增。详情见英文权威条目。
|
|
16
|
+
|
|
11
17
|
## 0.5.0 — 2026-11-23
|
|
12
18
|
|
|
13
19
|
> 0.5.0 把「帧」变成调用方可读的东西,并把坐标换算从模型手里拿走:新增三个只读动作(`snapshot` 编号元素表、`screenshot` 连映射一起返回、`preview` 用文本报出点位下的元素)、`label` 按 RuntimeId 回指元素、`space:"image"` 由引擎换算,以及第 14 个拒绝码 `stale_ref`。计划中的「元素 rect 必须被 screenRect 包含」被实测推翻(真实窗口出现 3/18/287/2720px 的越界,且 rect 本就是绝对屏幕坐标、与帧无关),改为:越界元素排除并计数、帧与树自报窗口矩形互校(frameCheck/frameInset)、以及「唯一的帧源」结构门禁。全量门禁 17→19,新增 geometry-truth 与 snapshot-test 两套独立 oracle 验收。详情见英文权威条目。另修两处:`uia_tree_empty` 不再对「本来有门、只是被 elementName 抑制」的窗口误报(WinForms 现在诚实回 `unreachable`),以及卡住门禁的偶发红——光标漂移断言改用 `GetLastInputInfo` 排除主人自己动鼠标(有输入则 SKIP 并打印 age/window),引擎自报的精确 read-back 仍是硬断言。
|
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.6.0** — 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
|
|
@@ -94,7 +94,7 @@ Image coordinates are never multiplied by the caller:
|
|
|
94
94
|
|
|
95
95
|
```jsonc
|
|
96
96
|
{"action":"screenshot","hwnd":"1310720"}
|
|
97
|
-
// -> screenRect=0,0,1920,1032 imageSize=1920x1032 scale=1 identity=true frame=dwm
|
|
97
|
+
// -> screenRect=0,0,1920,1032 imageSize=1920x1032 scale=1 identity=true frame=dwm captureBackend=bitblt
|
|
98
98
|
{"action":"click","hwnd":"1310720","space":"image","shotId":"shot-…","x":350,"y":250}
|
|
99
99
|
// the ENGINE converts, then still asserts the point belongs to the target window
|
|
100
100
|
```
|
|
@@ -124,6 +124,23 @@ point at would be a trap), the frame is cross-checked against the window rect th
|
|
|
124
124
|
(`frameCheck=pass|fail|unknown`), and a structural gate pins the single-source rule by mutating a copy
|
|
125
125
|
of the engine and requiring the corresponding red.
|
|
126
126
|
|
|
127
|
+
### Which capture path painted the picture
|
|
128
|
+
|
|
129
|
+
`captureBackend` names the producer: `bitblt` is a direct GDI `BitBlt` off the screen DC, `gdiplus` is
|
|
130
|
+
`Graphics.CopyFromScreen` — either the fallback after BitBlt was refused, or nothing else. The cheap
|
|
131
|
+
path replaced the old one on measured grounds (16–21 ms against 22–33 ms for a 1920×1080 grab), and the
|
|
132
|
+
encoder was deliberately left alone: the PNG encode is the bottleneck (37–39 ms), so JPEG (6 ms, and it
|
|
133
|
+
smears text), WIC (158 ms) and 24bpp (7 % smaller) were each measured and each rejected.
|
|
134
|
+
|
|
135
|
+
Equivalence was established on a **static** scene, not by file hash — two captures of a live desktop
|
|
136
|
+
happen at different instants, so their bytes cannot match, and that difference says nothing about the
|
|
137
|
+
paths: identical size, both non-blank, **0 maximum per-channel difference over 17 388 sampled points**,
|
|
138
|
+
byte-identical PNGs (8940 = 8940), with the comparator's self-check (two reads of one HBITMAP) also at
|
|
139
|
+
0. The one difference is reported rather than assumed away: `FromHbitmap` yields `Format32bppRgb` where
|
|
140
|
+
`CopyFromScreen` yields `Format32bppArgb`. A gate keeps both halves honest — the fallback reachable and
|
|
141
|
+
`captureBackend` produced, forwarded and printed (`scripts/check-shot-backend.mjs`, seven mutations each
|
|
142
|
+
seen red).
|
|
143
|
+
|
|
127
144
|
### Deciding outside the main context
|
|
128
145
|
|
|
129
146
|
The expensive habit this replaces is re-reading a 70-row table on every step. Hand the frame to a
|
|
@@ -158,7 +175,7 @@ reported rather than accused — but `cursorRestored=false` (borrowed and not re
|
|
|
158
175
|
`proof=fail`.
|
|
159
176
|
|
|
160
177
|
**And it says who reported the success.** Every action result carries `effect=` in the text and
|
|
161
|
-
`effect` in the structured output. The
|
|
178
|
+
`effect` in the structured output. The four values are not degrees of confidence in the
|
|
162
179
|
application — they name the speaker:
|
|
163
180
|
|
|
164
181
|
| `effect` | who is speaking | it proves | it does **not** prove |
|
|
@@ -166,6 +183,7 @@ application — they name the speaker:
|
|
|
166
183
|
| `unverified` | nobody | nothing | anything |
|
|
167
184
|
| `reported-by-send` | the window-message channel | the message was **delivered** | that the target app processed it |
|
|
168
185
|
| `reported-by-pattern` | the UI Automation pattern call | the call **returned** without throwing | that the interface actually changed |
|
|
186
|
+
| `readback-verified` | the control itself, read back | the value now in the field **equals the value predicted from the field's own measurements** | that the app is *happy* — only that its value is what we said |
|
|
169
187
|
|
|
170
188
|
Since 0.1.3 the effect also enters the judgment, which closes the one honest gap 0.1.2 still had:
|
|
171
189
|
a still desktop could outvote a total no-op. A call whose channel reported nothing is capped at
|
|
@@ -175,6 +193,49 @@ disturb you; it never proves we accomplished anything. A single `reported-by-*`
|
|
|
175
193
|
the caveat spelled out in the reason field (`未独立验证` — nobody observed the app), because turning
|
|
176
194
|
weak-but-real evidence into a red would train its readers to ignore the verdict.
|
|
177
195
|
|
|
196
|
+
### The fourth value has to be earned (0.6.0)
|
|
197
|
+
|
|
198
|
+
`readback-verified` is granted only by the engine, and only when a **prediction** matches a **read**.
|
|
199
|
+
The prediction is computed from measurements the control itself reported — the value it held before,
|
|
200
|
+
its own `WM_GETTEXTLENGTH`, its own `EM_GETSEL` answer for where a typed character lands — and the read
|
|
201
|
+
happens *after* the settle window, so an app that commits its text asynchronously is not judged against
|
|
202
|
+
a half-written buffer:
|
|
203
|
+
|
|
204
|
+
```jsonc
|
|
205
|
+
{"action":"type","hwnd":"…","text":"XY","caretPosition":"start"}
|
|
206
|
+
// -> type ok channel=message tier=quiet effect=readback-verified
|
|
207
|
+
// detail=msg=char|2 child=… caret=start asked=0 applied=0,0 readback=XYabc readbackLen=5 focusMoved=false
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Three things it refuses to do, each measured rather than assumed:
|
|
211
|
+
|
|
212
|
+
* **it does not upgrade what it cannot read.** A masked field (`ES_PASSWORD`) returns an empty string
|
|
213
|
+
while `WM_GETTEXTLENGTH` still reports the real length. That is "the control hides its text", not
|
|
214
|
+
"the field is empty": the result says `readback=unavailable`, the effect keeps whatever the write
|
|
215
|
+
earned, and no value is printed anywhere.
|
|
216
|
+
* **a mismatch is data, not a failure.** A read-only WinForms edit silently refuses `WM_CHAR` — every
|
|
217
|
+
character is accepted by the API and the value never moves — while honouring `WM_SETTEXT`. On the
|
|
218
|
+
refusal the result is still `ok:true` with `readbackMismatch=true` and no upgrade; on the write that
|
|
219
|
+
lands it is `readback-verified`. No refusal code changed for this batch, on purpose: "the application
|
|
220
|
+
formatted my input" is not an error in the call. `test/readback-truth.mjs` asserts both arms against
|
|
221
|
+
the value the *application* wrote about itself, from inside its own process — a readback test that
|
|
222
|
+
compared our write to our read would be grading homework in our own class, and this repo has already
|
|
223
|
+
been caught doing exactly that.
|
|
224
|
+
* **the naive guess is not the model.** Text is not appended: it lands at the caret, and a field that
|
|
225
|
+
never held focus has its caret at 0 (so `abc` + `XY` is `XYabc`). That is why `caretPosition` exists
|
|
226
|
+
and why the result prints `asked=` and `applied=` separately — `EM_SETSEL(-1,-1)` is documented as
|
|
227
|
+
"document end" and measured as a no-op on WinForms EDIT, so `end` is `EM_SETSEL(len,len)` with `len`
|
|
228
|
+
read from the control. On a buffer containing newlines that numeric end can land inside the text
|
|
229
|
+
(`asked=6 applied=4,4`), which is reported instead of hidden; `idle` touches nothing at all. The UIA
|
|
230
|
+
`value` channel replaces the whole value and has no caret to move, so it answers
|
|
231
|
+
`caretIgnored=value-pattern` rather than pretending to honour it.
|
|
232
|
+
|
|
233
|
+
Two more facts ride in the same `detail`, both warnings and neither a refusal: `focusMoved=true` when
|
|
234
|
+
the foreground or the focused control differs between the two measurements taken around the send, and
|
|
235
|
+
`disabled=true` for a target window that is greyed out — Windows keeps answering our messages while
|
|
236
|
+
throwing the input away, so a disabled target loses the right to an `effect` claim
|
|
237
|
+
(`effect=unverified`) without becoming an error.
|
|
238
|
+
|
|
178
239
|
## The takeover tier (opt-in)
|
|
179
240
|
|
|
180
241
|
Off by default (`takeoverAllowed=false`, `keyInjectAllowed=false`), because moving someone's pointer
|
|
@@ -253,8 +314,9 @@ degradation.
|
|
|
253
314
|
## Typed surface
|
|
254
315
|
|
|
255
316
|
`types/index.d.ts` is written by hand, not emitted from an implementation. It covers the whole
|
|
256
|
-
contract: the eight actions, every argument including the takeover fields
|
|
257
|
-
|
|
317
|
+
contract: the eight actions, every argument including the takeover fields, the image-space / label
|
|
318
|
+
surface and 0.6.0's `caretPosition`, all fourteen refusal codes as a closed union, and `effect` as its
|
|
319
|
+
own four-value union (`WpmEffect`) beside `WpmCaptureBackend` and `WpmFrameSource`.
|
|
258
320
|
|
|
259
321
|
Its wiring is measured in both resolution modes a consumer can use, rather than assumed from the
|
|
260
322
|
presence of a file:
|
|
@@ -350,6 +412,33 @@ unmeasured end-to-end and is stated as such in [docs/refusals.md](docs/refusals.
|
|
|
350
412
|
`WindowFromPoint` no longer returning the HUD, and `HTCLIENT` on the button. That is what
|
|
351
413
|
`hud.ps1` ships.
|
|
352
414
|
|
|
415
|
+
### 0.6.0's measurements (all re-runnable, probe scripts under `.tmp/` in the repository)
|
|
416
|
+
|
|
417
|
+
- **The read-back exists and is truthful** — three window classes (`Edit`,
|
|
418
|
+
`WindowsForms10.EDIT.app.*`, `WindowsForms10.RichEdit20W.app.*`) all return the written value through
|
|
419
|
+
`WM_GETTEXT` cross-process, and in four cases the value equals what the *application* reported about
|
|
420
|
+
itself from inside its own process (168–241 ms to observe, on the app's 400 ms timer).
|
|
421
|
+
- **A password field reports a length but no text** — `ES_PASSWORD`: `WM_GETTEXT` returns the empty
|
|
422
|
+
string while `WM_GETTEXTLENGTH` returns the real length. Hence `readback=unavailable`, never "empty".
|
|
423
|
+
- **`EM_SETSEL(-1,-1)` does not mean "the end" on WinForms EDIT** — the selection stayed `0,0` and the
|
|
424
|
+
typed character went to the front; `EM_SETSEL(len,len)` gave `abcY`. On a buffer holding `CRLF` the
|
|
425
|
+
numeric end landed at `4,4` for a reported length of `6` — measured, therefore reported as
|
|
426
|
+
`asked=`/`applied=` rather than papered over. A plain Win32 `EDIT` that never held focus accepts every
|
|
427
|
+
`WM_CHAR` and changes nothing, even with `ES_NOHIDESEL`: the case the old `reported-by-send` was
|
|
428
|
+
laundering, and the reason this batch exists.
|
|
429
|
+
- **A read-only edit refuses `WM_CHAR` and honours `WM_SETTEXT`** — the falsification arm of
|
|
430
|
+
`test/readback-truth.mjs`, chosen over two candidates that measurement eliminated (a bare `LF` is
|
|
431
|
+
preserved verbatim, so it agrees; WinForms enforces `MaxLength` in its own `WM_CHAR` handler, so a
|
|
432
|
+
programmatic `WM_SETTEXT` bypasses it, as does `EM_SETLIMITTEXT` set from outside).
|
|
433
|
+
- **BitBlt halves the capture and leaves the bottleneck where it is** — 16–21 ms against 22–33 ms for a
|
|
434
|
+
1920×1080 grab, PNG encode 37–39 ms in both paths, capture+encode 12–16 ms on a 642×432 window. JPEG
|
|
435
|
+
(6 ms) and WIC (158 ms) measured and rejected, 24bpp measured at 7 % of the size and rejected.
|
|
436
|
+
- **`replace:true` threw on every target until 0.6.0** — the `WM_SETTEXT` binding was declared as
|
|
437
|
+
`SendMessageStrW`, an export `user32.dll` does not have: the call raised
|
|
438
|
+
`EntryPointNotFoundException` on first use and surfaced as `action_failed`. No test in the repository
|
|
439
|
+
exercised `replace:true` through the message door, which is why the fix ships with an arm that does
|
|
440
|
+
(`test/readback-truth.mjs` A1). Found by running the import instead of trusting its name.
|
|
441
|
+
|
|
353
442
|
## Verifying the copy you actually installed
|
|
354
443
|
|
|
355
444
|
Every test above imports the repository checkout, so a package that installs to the wrong place or ships
|
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.6.0** — 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
|
|
@@ -94,7 +94,7 @@ Image coordinates are never multiplied by the caller:
|
|
|
94
94
|
|
|
95
95
|
```jsonc
|
|
96
96
|
{"action":"screenshot","hwnd":"1310720"}
|
|
97
|
-
// -> screenRect=0,0,1920,1032 imageSize=1920x1032 scale=1 identity=true frame=dwm
|
|
97
|
+
// -> screenRect=0,0,1920,1032 imageSize=1920x1032 scale=1 identity=true frame=dwm captureBackend=bitblt
|
|
98
98
|
{"action":"click","hwnd":"1310720","space":"image","shotId":"shot-…","x":350,"y":250}
|
|
99
99
|
// the ENGINE converts, then still asserts the point belongs to the target window
|
|
100
100
|
```
|
|
@@ -124,6 +124,23 @@ point at would be a trap), the frame is cross-checked against the window rect th
|
|
|
124
124
|
(`frameCheck=pass|fail|unknown`), and a structural gate pins the single-source rule by mutating a copy
|
|
125
125
|
of the engine and requiring the corresponding red.
|
|
126
126
|
|
|
127
|
+
### Which capture path painted the picture
|
|
128
|
+
|
|
129
|
+
`captureBackend` names the producer: `bitblt` is a direct GDI `BitBlt` off the screen DC, `gdiplus` is
|
|
130
|
+
`Graphics.CopyFromScreen` — either the fallback after BitBlt was refused, or nothing else. The cheap
|
|
131
|
+
path replaced the old one on measured grounds (16–21 ms against 22–33 ms for a 1920×1080 grab), and the
|
|
132
|
+
encoder was deliberately left alone: the PNG encode is the bottleneck (37–39 ms), so JPEG (6 ms, and it
|
|
133
|
+
smears text), WIC (158 ms) and 24bpp (7 % smaller) were each measured and each rejected.
|
|
134
|
+
|
|
135
|
+
Equivalence was established on a **static** scene, not by file hash — two captures of a live desktop
|
|
136
|
+
happen at different instants, so their bytes cannot match, and that difference says nothing about the
|
|
137
|
+
paths: identical size, both non-blank, **0 maximum per-channel difference over 17 388 sampled points**,
|
|
138
|
+
byte-identical PNGs (8940 = 8940), with the comparator's self-check (two reads of one HBITMAP) also at
|
|
139
|
+
0. The one difference is reported rather than assumed away: `FromHbitmap` yields `Format32bppRgb` where
|
|
140
|
+
`CopyFromScreen` yields `Format32bppArgb`. A gate keeps both halves honest — the fallback reachable and
|
|
141
|
+
`captureBackend` produced, forwarded and printed (`scripts/check-shot-backend.mjs`, seven mutations each
|
|
142
|
+
seen red).
|
|
143
|
+
|
|
127
144
|
### Deciding outside the main context
|
|
128
145
|
|
|
129
146
|
The expensive habit this replaces is re-reading a 70-row table on every step. Hand the frame to a
|
|
@@ -158,7 +175,7 @@ reported rather than accused — but `cursorRestored=false` (borrowed and not re
|
|
|
158
175
|
`proof=fail`.
|
|
159
176
|
|
|
160
177
|
**And it says who reported the success.** Every action result carries `effect=` in the text and
|
|
161
|
-
`effect` in the structured output. The
|
|
178
|
+
`effect` in the structured output. The four values are not degrees of confidence in the
|
|
162
179
|
application — they name the speaker:
|
|
163
180
|
|
|
164
181
|
| `effect` | who is speaking | it proves | it does **not** prove |
|
|
@@ -166,6 +183,7 @@ application — they name the speaker:
|
|
|
166
183
|
| `unverified` | nobody | nothing | anything |
|
|
167
184
|
| `reported-by-send` | the window-message channel | the message was **delivered** | that the target app processed it |
|
|
168
185
|
| `reported-by-pattern` | the UI Automation pattern call | the call **returned** without throwing | that the interface actually changed |
|
|
186
|
+
| `readback-verified` | the control itself, read back | the value now in the field **equals the value predicted from the field's own measurements** | that the app is *happy* — only that its value is what we said |
|
|
169
187
|
|
|
170
188
|
Since 0.1.3 the effect also enters the judgment, which closes the one honest gap 0.1.2 still had:
|
|
171
189
|
a still desktop could outvote a total no-op. A call whose channel reported nothing is capped at
|
|
@@ -175,6 +193,49 @@ disturb you; it never proves we accomplished anything. A single `reported-by-*`
|
|
|
175
193
|
the caveat spelled out in the reason field (`未独立验证` — nobody observed the app), because turning
|
|
176
194
|
weak-but-real evidence into a red would train its readers to ignore the verdict.
|
|
177
195
|
|
|
196
|
+
### The fourth value has to be earned (0.6.0)
|
|
197
|
+
|
|
198
|
+
`readback-verified` is granted only by the engine, and only when a **prediction** matches a **read**.
|
|
199
|
+
The prediction is computed from measurements the control itself reported — the value it held before,
|
|
200
|
+
its own `WM_GETTEXTLENGTH`, its own `EM_GETSEL` answer for where a typed character lands — and the read
|
|
201
|
+
happens *after* the settle window, so an app that commits its text asynchronously is not judged against
|
|
202
|
+
a half-written buffer:
|
|
203
|
+
|
|
204
|
+
```jsonc
|
|
205
|
+
{"action":"type","hwnd":"…","text":"XY","caretPosition":"start"}
|
|
206
|
+
// -> type ok channel=message tier=quiet effect=readback-verified
|
|
207
|
+
// detail=msg=char|2 child=… caret=start asked=0 applied=0,0 readback=XYabc readbackLen=5 focusMoved=false
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Three things it refuses to do, each measured rather than assumed:
|
|
211
|
+
|
|
212
|
+
* **it does not upgrade what it cannot read.** A masked field (`ES_PASSWORD`) returns an empty string
|
|
213
|
+
while `WM_GETTEXTLENGTH` still reports the real length. That is "the control hides its text", not
|
|
214
|
+
"the field is empty": the result says `readback=unavailable`, the effect keeps whatever the write
|
|
215
|
+
earned, and no value is printed anywhere.
|
|
216
|
+
* **a mismatch is data, not a failure.** A read-only WinForms edit silently refuses `WM_CHAR` — every
|
|
217
|
+
character is accepted by the API and the value never moves — while honouring `WM_SETTEXT`. On the
|
|
218
|
+
refusal the result is still `ok:true` with `readbackMismatch=true` and no upgrade; on the write that
|
|
219
|
+
lands it is `readback-verified`. No refusal code changed for this batch, on purpose: "the application
|
|
220
|
+
formatted my input" is not an error in the call. `test/readback-truth.mjs` asserts both arms against
|
|
221
|
+
the value the *application* wrote about itself, from inside its own process — a readback test that
|
|
222
|
+
compared our write to our read would be grading homework in our own class, and this repo has already
|
|
223
|
+
been caught doing exactly that.
|
|
224
|
+
* **the naive guess is not the model.** Text is not appended: it lands at the caret, and a field that
|
|
225
|
+
never held focus has its caret at 0 (so `abc` + `XY` is `XYabc`). That is why `caretPosition` exists
|
|
226
|
+
and why the result prints `asked=` and `applied=` separately — `EM_SETSEL(-1,-1)` is documented as
|
|
227
|
+
"document end" and measured as a no-op on WinForms EDIT, so `end` is `EM_SETSEL(len,len)` with `len`
|
|
228
|
+
read from the control. On a buffer containing newlines that numeric end can land inside the text
|
|
229
|
+
(`asked=6 applied=4,4`), which is reported instead of hidden; `idle` touches nothing at all. The UIA
|
|
230
|
+
`value` channel replaces the whole value and has no caret to move, so it answers
|
|
231
|
+
`caretIgnored=value-pattern` rather than pretending to honour it.
|
|
232
|
+
|
|
233
|
+
Two more facts ride in the same `detail`, both warnings and neither a refusal: `focusMoved=true` when
|
|
234
|
+
the foreground or the focused control differs between the two measurements taken around the send, and
|
|
235
|
+
`disabled=true` for a target window that is greyed out — Windows keeps answering our messages while
|
|
236
|
+
throwing the input away, so a disabled target loses the right to an `effect` claim
|
|
237
|
+
(`effect=unverified`) without becoming an error.
|
|
238
|
+
|
|
178
239
|
## The takeover tier (opt-in)
|
|
179
240
|
|
|
180
241
|
Off by default (`takeoverAllowed=false`, `keyInjectAllowed=false`), because moving someone's pointer
|
|
@@ -253,8 +314,9 @@ degradation.
|
|
|
253
314
|
## Typed surface
|
|
254
315
|
|
|
255
316
|
`types/index.d.ts` is written by hand, not emitted from an implementation. It covers the whole
|
|
256
|
-
contract: the eight actions, every argument including the takeover fields
|
|
257
|
-
|
|
317
|
+
contract: the eight actions, every argument including the takeover fields, the image-space / label
|
|
318
|
+
surface and 0.6.0's `caretPosition`, all fourteen refusal codes as a closed union, and `effect` as its
|
|
319
|
+
own four-value union (`WpmEffect`) beside `WpmCaptureBackend` and `WpmFrameSource`.
|
|
258
320
|
|
|
259
321
|
Its wiring is measured in both resolution modes a consumer can use, rather than assumed from the
|
|
260
322
|
presence of a file:
|
|
@@ -350,6 +412,33 @@ unmeasured end-to-end and is stated as such in [docs/refusals.md](docs/refusals.
|
|
|
350
412
|
`WindowFromPoint` no longer returning the HUD, and `HTCLIENT` on the button. That is what
|
|
351
413
|
`hud.ps1` ships.
|
|
352
414
|
|
|
415
|
+
### 0.6.0's measurements (all re-runnable, probe scripts under `.tmp/` in the repository)
|
|
416
|
+
|
|
417
|
+
- **The read-back exists and is truthful** — three window classes (`Edit`,
|
|
418
|
+
`WindowsForms10.EDIT.app.*`, `WindowsForms10.RichEdit20W.app.*`) all return the written value through
|
|
419
|
+
`WM_GETTEXT` cross-process, and in four cases the value equals what the *application* reported about
|
|
420
|
+
itself from inside its own process (168–241 ms to observe, on the app's 400 ms timer).
|
|
421
|
+
- **A password field reports a length but no text** — `ES_PASSWORD`: `WM_GETTEXT` returns the empty
|
|
422
|
+
string while `WM_GETTEXTLENGTH` returns the real length. Hence `readback=unavailable`, never "empty".
|
|
423
|
+
- **`EM_SETSEL(-1,-1)` does not mean "the end" on WinForms EDIT** — the selection stayed `0,0` and the
|
|
424
|
+
typed character went to the front; `EM_SETSEL(len,len)` gave `abcY`. On a buffer holding `CRLF` the
|
|
425
|
+
numeric end landed at `4,4` for a reported length of `6` — measured, therefore reported as
|
|
426
|
+
`asked=`/`applied=` rather than papered over. A plain Win32 `EDIT` that never held focus accepts every
|
|
427
|
+
`WM_CHAR` and changes nothing, even with `ES_NOHIDESEL`: the case the old `reported-by-send` was
|
|
428
|
+
laundering, and the reason this batch exists.
|
|
429
|
+
- **A read-only edit refuses `WM_CHAR` and honours `WM_SETTEXT`** — the falsification arm of
|
|
430
|
+
`test/readback-truth.mjs`, chosen over two candidates that measurement eliminated (a bare `LF` is
|
|
431
|
+
preserved verbatim, so it agrees; WinForms enforces `MaxLength` in its own `WM_CHAR` handler, so a
|
|
432
|
+
programmatic `WM_SETTEXT` bypasses it, as does `EM_SETLIMITTEXT` set from outside).
|
|
433
|
+
- **BitBlt halves the capture and leaves the bottleneck where it is** — 16–21 ms against 22–33 ms for a
|
|
434
|
+
1920×1080 grab, PNG encode 37–39 ms in both paths, capture+encode 12–16 ms on a 642×432 window. JPEG
|
|
435
|
+
(6 ms) and WIC (158 ms) measured and rejected, 24bpp measured at 7 % of the size and rejected.
|
|
436
|
+
- **`replace:true` threw on every target until 0.6.0** — the `WM_SETTEXT` binding was declared as
|
|
437
|
+
`SendMessageStrW`, an export `user32.dll` does not have: the call raised
|
|
438
|
+
`EntryPointNotFoundException` on first use and surfaced as `action_failed`. No test in the repository
|
|
439
|
+
exercised `replace:true` through the message door, which is why the fix ships with an arm that does
|
|
440
|
+
(`test/readback-truth.mjs` A1). Found by running the import instead of trusting its name.
|
|
441
|
+
|
|
353
442
|
## Verifying the copy you actually installed
|
|
354
443
|
|
|
355
444
|
Every test above imports the repository checkout, so a package that installs to the wrong place or ships
|