dsh-windows-parallel-mcp 0.5.0 → 0.7.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 +13 -1
- package/CHANGELOG.es.md +13 -1
- package/CHANGELOG.fr.md +13 -1
- package/CHANGELOG.it.md +13 -1
- package/CHANGELOG.ja.md +12 -0
- package/CHANGELOG.ko.md +12 -0
- package/CHANGELOG.md +181 -3
- package/CHANGELOG.pt.md +13 -1
- package/CHANGELOG.ru.md +13 -1
- package/CHANGELOG.zh.md +12 -0
- package/README.de.md +218 -7
- package/README.es.md +218 -7
- package/README.fr.md +218 -7
- package/README.it.md +218 -7
- package/README.ja.md +218 -7
- package/README.ko.md +218 -7
- package/README.md +218 -7
- package/README.pt.md +218 -7
- package/README.ru.md +218 -7
- package/README.zh.md +218 -7
- package/docs/refusals.md +3 -0
- package/dsh.plugin.json +2 -2
- package/lib/audit.js +109 -0
- package/lib/config.js +55 -2
- package/lib/host-tools.js +76 -3
- package/lib/index.js +333 -18
- package/lib/policy.js +127 -0
- package/package.json +2 -2
- package/src/engine/decide.ps1 +120 -3
- package/src/engine/engine.ps1 +407 -5
- package/src/engine/win.ps1 +496 -6
- package/src/engine/worker.ps1 +57 -0
- package/src/schema/tools.json +156 -13
- package/types/index.d.ts +63 -4
package/CHANGELOG.de.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 schließt die Lücke „nicht einmal ein Programm starten zu können“, ergänzt drei Desktop-Fähigkeiten und ersetzt das binäre Tor durch EINE Decke: jede Aktion meldet die niedrigste Stufe, die sie je braucht (requiresTier: readonly < quiet < flash < takeover), der Owner stellt nur ein policy (Standard balanced). Darüber → policy_denied, dessen nächster Schritt ein Einstellen ist, nicht ein Wiederholen. launch braucht zwei Schalter, die einander nicht einschließen (appLaunchAllowed plus eine exakte, case-insensitive appLaunchAllow-Liste — leer heißt nichts startet, kein Wildcard, kein Präfix); ein Abweis kostet null Worker-Requests. Ein Prozess ohne Fenster antwortet ok:true, leeres hwnd und detail=window-not-yet (gemessen: Notepad kalt 1348 ms mit MainWindowHandle=0). Clipboard-Lesen meldet nur die Länge, nie den Inhalt (64-KB-Grenze, truncated offengelegt); Bild-Schreiben nimmt eine shotId. Alle fünf window-Ops werden über den nachgelesenen Zustand des Fensters verifiziert (IsIconic, Rect, WS_EX_TOPMOST), und weil restore per Definition aktiviert, meldet das Ergebnis foregroundTaken, statt es zu verstecken. Aktionen 8 → 11 (vier Stellen synchronisiert; der check-types-Log liest diese Zahlen jetzt aus tools.json). Ist der Owner am Werk, wird abgelehnt (user_active) statt ein Dialog geöffnet; forceUserActive:true ist die sichtbare Ausnahmeklappe und landet im Audit. Drei neue Codes (app_launch_denied, policy_denied, user_active), jeder zeigt auf eine Einstellung. Audit-Log: eine JSONL-Zeile pro Aktion, allow WIE deny, nie Inhalte. Zwei echte Defekte behoben: Clipboard.Flush() existiert in PowerShell 5.1 (.NET Framework) nicht, und ein Refusal-Handler las einen Schlüssel, den sein Zweig nie setzte. Gate 21 check-policy-table prüft, dass JS- und PS-Leiter dieselbe Liste in derselben Reihenfolge sind; check-jsdoc prüft jetzt, dass jede Datei in lib/ abgedeckt ist (vorher wurden neue Module still übersehen). Bewusst härter: takeover:true braucht jetzt policy=full zusätzlich zu takeoverAllowed. Volles Gate: 21 Arme, GATE GREEN ×3. Maßgeblich ist der englische Eintrag.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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).
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.es.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 cierra el hueco de «ni siquiera puedo arrancar un programa», añade tres acciones de escritorio y cambia la puerta binaria por UN techo: cada acción declara el peldaño mínimo que puede necesitar (requiresTier: readonly < quiet < flash < takeover) y el dueño fija un solo policy (por defecto balanced). Por encima del techo → policy_denied, cuyo siguiente paso es subir el ajuste, no reintentar. launch exige dos interruptores que no se implican entre sí (appLaunchAllowed más una lista appLaunchAllow exacta e insensible a mayúsculas — vacía = nada arranca, sin comodines ni prefijos); una denegación no cuesta ninguna petición al worker. Un proceso sin ventana responde ok:true, hwnd vacío y detail=window-not-yet (medido: notepad en frío 1348 ms con MainWindowHandle=0). La LECTURA del portapapeles devuelve solo la longitud, nunca el contenido (límite 64 KB, truncated declarado); la escritura de imagen acepta un shotId. Las cinco operaciones de window se verifican releyendo el estado de la ventana (IsIconic, rect, WS_EX_TOPMOST), y como restore activa por definición, el resultado informa foregroundTaken en lugar de ocultarlo. Acciones 8 → 11 (cuatro copias sincronizadas; el log de check-types ahora lee esos números desde tools.json). Si el dueño está presente se niega (user_active) en vez de abrir un diálogo; forceUserActive:true es la salida explícita y queda en la auditoría. Tres códigos nuevos (app_launch_denied, policy_denied, user_active), cada uno señala un ajuste. Registro de auditoría: una línea JSONL por acción, allow Y deny, nunca el contenido. Corregidos dos defectos reales: Clipboard.Flush() no está exportado por PowerShell 5.1 (.NET Framework), y un manejador de denegación leía una clave que su rama nunca escribía. El gate 21 check-policy-table verifica que ambas escalas (JS y PS) sean la misma lista en el mismo orden; check-jsdoc ahora verifica que cada archivo de lib/ esté cubierto — antes un módulo nuevo quedaba sin revisar en silencio. Endurecimiento deliberado: takeover:true ahora requiere policy=full además de takeoverAllowed. Gate completo: 21 brazos, GATE GREEN ×3. La entrada inglesa es la autoritativa.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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).
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 comble le trou « on ne peut même pas lancer un programme », ajoute trois actions de bureau et remplace la porte binaire par UN plafond : chaque action déclare le barreau minimal dont elle a besoin (requiresTier : readonly < quiet < flash < takeover) et le propriétaire pose un seul policy (balanced par défaut). Au-dessus du plafond → policy_denied, dont la prochaine étape est de lever le plafond, pas de relancer. launch exige deux interrupteurs indépendants (appLaunchAllowed et une liste appLaunchAllow exacte, insensible à la casse — vide = rien ne démarre, aucun joker ni préfixe) ; un refus ne coûte aucun appel worker. Un processus sans fenêtre répond ok:true, hwnd vide et detail=window-not-yet (mesuré : notepad froid = MainWindowHandle=0 pendant 1348 ms). La LECTURE du clipboard ne renvoie que sa longueur, jamais le contenu (plafond 64 Ko, truncated assumé) ; l'écriture d'image accepte un shotId. Les cinq opérations de window sont vérifiées par la relecture de l'état de la fenêtre (IsIconic, rect, WS_EX_TOPMOST), et restore activant par définition, le résultat rapporte foregroundTaken au lieu de le cacher. Actions 8 → 11 (quatre copies synchronisées ; le journal de check-types lit désormais ces nombres dans tools.json). Le propriétaire est-il présent ? On refuse (user_active) au lieu d'ouvrir une boîte de dialogue ; forceUserActive:true passe, et laisse une trace. Trois nouveaux codes (app_launch_denied, policy_denied, user_active), chacun pointant un réglage. Journal d'audit : une ligne JSONL par action, allow ET deny, jamais le contenu. Deux vrais défauts corrigés : Clipboard.Flush() n'existe pas sous PowerShell 5.1 (.NET Framework), et un gestionneur de refus lisait une clé que sa branche n'écrivait pas. Le nouveau gate 21 check-policy-table vérifie que les deux échelles (JS et PS) sont la même liste dans le même ordre, et check-jsdoc vérifie maintenant que chaque fichier de lib/ est couvert — un module ajouté sans rien dire dans la liste passait auparavant. Durcissement voulu : takeover:true requiert désormais policy=full en plus de takeoverAllowed. Gate complet : 21 bras, GATE GREEN ×3. Autoritaire : l'entrée anglaise.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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).
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.it.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 chiude il buco «non si riesce nemmeno ad avviare un programma», aggiunge tre azioni desktop e sostituisce la porta binaria con UN soffitto: ogni azione dichiara il gradino minimo che può servire (requiresTier: readonly < quiet < flash < takeover) e il proprietario imposta un solo policy (default balanced). Sopra il soffitto → policy_denied, il cui passo successivo è alzare l'impostazione, non riprovare. launch richiede due interruttori che non si implicano a vicenda (appLaunchAllowed più una lista appLaunchAllow esatta e case-insensitive — vuota = niente parte, nessun jolly o prefisso); un diniego non costa alcuna richiesta al worker. Un processo senza finestra risponde ok:true, hwnd vuoto e detail=window-not-yet (misurato: notepad freddo 1348 ms con MainWindowHandle=0). La LETTURA degli appunti riporta solo la lunghezza, mai il contenuto (limite 64 KB, truncated dichiarato); la scrittura di immagine accetta una shotId. Le cinque operazioni di window sono verificate rileggendo lo stato della finestra (IsIconic, rect, WS_EX_TOPMOST), e poiché restore attiva per definizione il risultato riporta foregroundTaken invece di nasconderlo. Azioni 8 → 11 (quattro copie sincronizzate; il log di check-types ora legge quei numeri da tools.json). Se il proprietario è al lavoro si rifiuta (user_active) invece di aprire un dialogo; forceUserActive:true è la via d'uscita e resta nella traccia. Tre nuovi codici (app_launch_denied, policy_denied, user_active), ognuno indica un'impostazione. Registro di audit: una riga JSONL per azione, allow E deny, mai i contenuti. Corretti due difetti reali: Clipboard.Flush() non esiste in PowerShell 5.1 (.NET Framework) e un gestore di diniego leggeva una chiave che il suo ramo non scriveva. Il gate 21 check-policy-table verifica che le due scale (JS e PS) siano lo stesso elenco nello stesso ordine; check-jsdoc ora verifica che ogni file in lib/ sia coperto — prima un modulo nuovo restava non controllato in silenzio. Irrigidimento voluto: takeover:true ora richiede policy=full oltre a takeoverAllowed. Gate completo: 21 bracci, GATE GREEN ×3. Autoritaria la voce inglese.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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).
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.ja.md
CHANGED
|
@@ -8,6 +8,18 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 は「プログラムを起動すらできない」穴を塞ぎ、3 つのデスクトップ能力を追加すると同時に、二値の権限ゲートを 1 つの天井へ置き換えた。各アクションは必要最低の段(requiresTier:readonly < quiet < flash < takeover)を宣言し、所有者は policy を 1 つだけ設定する(既定は balanced)。天井超は policy_denied で、次は再試行ではなく設定の引き上げ。launch は互いに暗示しない 2 つのスイッチ(appLaunchAllowed と、完全一致・大文字小文字無視の appLaunchAllow。空 = 何も起動できない、ワイルドカードも前方一致もなし)を要求し、拒否時は worker 要求ゼロ。プロセスは動いているが窓が無い場合は ok:true + hwnd 空 + detail=window-not-yet(実測:コールド notepad は 1348ms まで MainWindowHandle=0)。clipboard の読み取りは長さだけを返し内容は一切返さない(64KB 上限、truncated を明記)。image 書き込みは shotId を直接受け取る。window の 5 操作はすべて窓自身の状態(IsIconic/rect/WS_EX_TOPMOST)の読み戻しで検証し、restore は定義上フォアグラウンドを奪うため、隠さず foregroundTaken として報告する。アクション数 8→11(契約の 4 か所を同期し、check-types のログ行は tools.json から読む)。所有者在席中はダイアログを出さず user_active で拒否する。脱出口 forceUserActive:true は監査に残る。新コード 15/16/17(app_launch_denied/policy_denied/user_active)はいずれも設定名を次の一手に持つ。監査ログはアクションごとに 1 行、allow も deny も記録し、内容は決して記録しない。PS 5.1(.NET Framework)に Clipboard.Flush() が存在しない不具合と、分岐が書かないキーを読んでいた不具合を実際に修正。新ゲート 21 check-policy-table は JS と PS の 2 本の階段が同じ列挙であることを検証し、check-jsdoc は lib/ の全ファイルが対象に含まれることを検証する(以前は黙って見逃されていた)。意図した厳格化:takeover:true は takeoverAllowed に加え policy=full が必要。全体ゲート 21 腕 ×3 GATE GREEN。権威あるのは英語版。
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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 になっていた。拒否コードの追加はゼロ。詳細は英語版が権威。
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
13
25
|
> 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,18 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 은 「프로그램 하나 켜지 못한다」는 구멍을 메우고 세 개의 데스크톱 동작을 추가하면서, 이진 권한 게이트를 하나의 천장으로 바꿨다. 각 액션은 가장 낮은 필요 단(requiresTier: readonly < quiet < flash < takeover)을 선언하고 소유자는 policy 하나만 정한다(기본 balanced). 천장 초과면 policy_denied — 다음 단계는 재시도가 아니라 설정 상향이다. launch 는 서로 암시하지 않는 두 스위치를 요구한다(appLaunchAllowed 와, 완전 일치·대소문자 무시의 appLaunchAllow. 비어 있으면 아무것도 실행 불가, 와일드카드·접두 일치 없음). 거절 시 worker 요청 0. 프로세스는 떴는데 창이 없으면 ok:true + hwnd 공백 + detail=window-not-yet(실측: 차가운 notepad 는 1348ms 동안 MainWindowHandle=0). clipboard 읽기는 길이만 알리고 본문을 절대 싣지 않으며(64KB 상한, truncated 명시), 이미지 쓰기는 shotId 를 직접 받는다. window 다섯 조작은 창 스스로의 상태(IsIconic/rect/WS_EX_TOPMOST)를 다시 읽어 검증하고, restore 은 정의상 포그라운드를 잡으므로 숨기지 말고 foregroundTaken 으로 보고한다. 액션 수 8→11(계약 네 곳을 동기화하고 check-types 로그를 tools.json 에서 읽는다). 주인이 자리에 있으면 대화 상자 대신 user_active 로 거절하고, 탈출구 forceUserActive:true 는 감사 로그에 남는다. 새 코드 15/16/17(app_launch_denied/policy_denied/user_active)은 모두 다음 단계로 설정을 지목한다. 감사 로그는 액션마다 한 줄, allow 와 deny 모두 적되 내용은 결코 적지 않는다. PS 5.1(.NET Framework) 에 없는 Clipboard.Flush() 와, 분기가 쓰지 않은 키를 읽던 결함을 실제로 고쳤다. 새 게이트 21 check-policy-table 은 JS·PS 두 사다리가 같은 순서임을 검증하고, check-jsdoc 은 lib/ 모든 파일이 검사 대상에 있음을 검증한다(이전엔 조용히 빠졌다). 의도적으로 조인 부분: takeover:true 는 takeoverAllowed 에 더해 policy=full 을 요구한다. 전체 게이트 21 팔 ×3 GATE GREEN. 권위는 영어본.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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였다. 거절 코드 추가는 없다. 상세는 영어본이 권위이다.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
13
25
|
> 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,185 @@ 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.7.0 — 2026-11-23
|
|
9
|
+
|
|
10
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
11
|
+
|
|
12
|
+
**The gap that was "you cannot even start a program" is closed, and the binary permission gate becomes
|
|
13
|
+
one ceiling over eleven declared rungs.** Three new actions, one authorization model, an audit trail,
|
|
14
|
+
two new refusal codes' worth of vocabulary... in fact exactly three new codes and fourteen unchanged.
|
|
15
|
+
|
|
16
|
+
### Added — three desktop actions
|
|
17
|
+
|
|
18
|
+
- **`launch`** — starts a program by name or absolute path, behind **two switches that do not imply each
|
|
19
|
+
other**: `appLaunchAllowed` (the capability) and `appLaunchAllow` (an **exact, case-folded** whitelist,
|
|
20
|
+
empty by default = nothing may launch, no wildcard and no prefix match, so `notepad` never authorises
|
|
21
|
+
`notepad-helper.exe`). Refused with `app_launch_denied` before any worker request — asserted with a
|
|
22
|
+
counted worker, and re-checked inside the engine against the same table, because a permission that
|
|
23
|
+
lives in only one process is a permission that can be reached around by calling the other. A process
|
|
24
|
+
with no window yet answers `ok:true` + `hwnd=""` + `detail=window-not-yet` (measured:
|
|
25
|
+
`MainWindowHandle=0` for 1348 ms on a cold notepad) rather than pretending the start failed or the
|
|
26
|
+
window exists. Arguments are passed through as given and written to the audit log: a whitelist vouches
|
|
27
|
+
for a program, not for what it is told to do.
|
|
28
|
+
- **`clipboard`** — read/write, text and image. A text read reports its **length and never the payload**
|
|
29
|
+
(the clipboard may hold a token the owner copied seconds ago), values are capped at 64 KB with
|
|
30
|
+
`truncated` stated, an image write accepts a `shotId` so a screenshot can go straight in, and a
|
|
31
|
+
clipboard holding neither is refused with the format names it did find.
|
|
32
|
+
- **`window`** — `minimize`/`restore`/`move`/`resize`/`topmost` on ONE hwnd. Every op is verified by
|
|
33
|
+
reading the window's own state back (`IsIconic`, `GetWindowRect`, `WS_EX_TOPMOST`), not by the
|
|
34
|
+
syscall's return value, and the result carries `foregroundTaken` measured on both sides of that call:
|
|
35
|
+
`restore` activates by definition (SW_RESTORE measured: foreground moved), and saying so is the honest
|
|
36
|
+
answer rather than hiding it or refusing the op that was asked for. No "all windows" op exists.
|
|
37
|
+
- The action count is **8 → 11**, kept in step in four places (`ACTIONS`, the discriminator enum,
|
|
38
|
+
`tools.json`, `types/index.d.ts`) with a check-types log line that now READS those counts from the
|
|
39
|
+
contract instead of reciting a literal — the 0.5.0 wording would have had a green gate announcing
|
|
40
|
+
"8 actions" the moment there were eleven.
|
|
41
|
+
|
|
42
|
+
### Changed — one ceiling instead of one switch per capability
|
|
43
|
+
|
|
44
|
+
- Every action now declares `requiresTier` (`readonly|quiet|flash|takeover`) — the LOWEST rung it can
|
|
45
|
+
ever need — and the owner sets one `policy` (`readonly|quiet|balanced(default)|full`). Adding a
|
|
46
|
+
capability never means adding a setting, and an **undeclared** action is graded `takeover` rather than
|
|
47
|
+
allowed: silence about a capability must not read as permission for it. `clipboard` is the one action
|
|
48
|
+
whose halves differ, so `requiresTierFor` refines it (`read`=readonly, `write`=flash) and a
|
|
49
|
+
`readonly` owner can still read.
|
|
50
|
+
- Validation order is the safety design: `paused → policy → takeoverAllowed/keyInjectAllowed → launch
|
|
51
|
+
gate + whitelist → idle check → the door table`. Each step is tested by making two gates disagree about
|
|
52
|
+
which one spoke, so an order change fails a test instead of silently changing what a refusal means.
|
|
53
|
+
- **`takeover:true` now needs `policy:'full'` in addition to `takeoverAllowed` — an intentional
|
|
54
|
+
tightening, and the one breaking consequence of this release.** An existing setup that enabled
|
|
55
|
+
takeover will see `policy_denied` until the ceiling is raised; the refusal names both knobs and which
|
|
56
|
+
one to turn. The same applies to `keyInput:"inject"`.
|
|
57
|
+
- **`user_active` instead of a dialog.** When the last physical input is younger than `policyIdleMs`
|
|
58
|
+
(default 3000 ms) a takeover-tier call is refused and NOTHING is interrupted — the upstream design
|
|
59
|
+
opens a 10-second countdown even while the owner is typing, and an interrupt presented as consent is
|
|
60
|
+
just a second disturbance. `forceUserActive:true` overrides it explicitly, bypasses nothing else, and
|
|
61
|
+
is recorded in the audit as `forced:true`.
|
|
62
|
+
- New codes `app_launch_denied`, `policy_denied`, `user_active` (14 → **17**), each naming a SETTING as
|
|
63
|
+
its next step — which is what distinguishes them from the fourteen that name a state of the target.
|
|
64
|
+
- **Audit log**: one JSONL line per action to `%LOCALAPPDATA%\wpm\audit.log`, for allow AND deny
|
|
65
|
+
(a trail that records only refusals is silent about the times the guard had nothing to do with),
|
|
66
|
+
fields `ts, action, hwnd, tier, policy, decision, code, userActiveAgeMs, effect, latencyMs` plus
|
|
67
|
+
`target`/`args` for launches and `op`/`format`/`chars` for clipboard calls. Content is never recorded.
|
|
68
|
+
`auditKeep` (default 2000) prunes oldest-first; a failed write is reported, not swallowed.
|
|
69
|
+
|
|
70
|
+
### Fixed
|
|
71
|
+
|
|
72
|
+
- **`Clipboard.Flush()` does not exist on this engine's runtime.** The first version of the clipboard
|
|
73
|
+
branch threw "Clipboard does not contain a method named 'Flush'" — `Flush` is .NET Core, and the
|
|
74
|
+
platform floor is Windows PowerShell 5.1 (.NET Framework 4.x). Now `SetDataObject($v, $true)`, which
|
|
75
|
+
is also the call that makes the data outlive the process.
|
|
76
|
+
- **A refusal handler that read a key its branch never sets.** `Wait-WpmAppWindow` answers three shapes
|
|
77
|
+
(window found / not yet / process gone) and `Invoke-WpmWindowOp` carries `activated` only on one op;
|
|
78
|
+
under `Set-StrictMode 2.0` those reads threw and surfaced as `action_failed` on a call that had
|
|
79
|
+
actually worked. Presence is now tested per branch.
|
|
80
|
+
- Booleans in `window` details are lower-cased (`topmost=true`, not `Topmost=True`), matching every
|
|
81
|
+
other field this engine writes.
|
|
82
|
+
|
|
83
|
+
### Gates and tests
|
|
84
|
+
|
|
85
|
+
- Gate 21: `scripts/check-policy-table.mjs --self-test` — every action declares a rung, the rung exists
|
|
86
|
+
in the ladder, the ladder in `lib/policy.js` and the one in `src/engine/decide.ps1` are THE SAME LIST
|
|
87
|
+
IN THE SAME ORDER, and every `requiresTierFor` op is an op the tool can actually receive. Five
|
|
88
|
+
mutations, each seen red. The copy is deliberate (host and engine each need the comparison in their own
|
|
89
|
+
process); the check is what makes two copies one rule.
|
|
90
|
+
- `scripts/check-jsdoc.mjs` now asserts that `tsconfig.checkjs.json` covers **every** file in `lib/`. The
|
|
91
|
+
hand-kept list had silently left `lib/policy.js` and `lib/audit.js` unchecked while the gate reported
|
|
92
|
+
"7 files, 0 errors" — a new module nobody adds to a list is a module whose annotations are prose.
|
|
93
|
+
- `test/desktop-actions.mjs` (new, 42 assertions): the launched program's window is found and read
|
|
94
|
+
through the engine, then verified by a SECOND process that knows nothing about wpm (`IsWindow`,
|
|
95
|
+
`IsIconic`, `GetWindowRect`, the ex-style bit); clipboard text and image round-trips; all five window
|
|
96
|
+
ops with two readings each; and the audit log checked for shape — launch lines carry target+arguments,
|
|
97
|
+
clipboard lines carry no payload, denials carry their code, forced overrides are distinguishable.
|
|
98
|
+
- `test/plugin-test.mjs` gains the gate-order arms (policy before the per-tier gates, both launch
|
|
99
|
+
switches, `readonly` still serving reads, an exact whitelist hit forwarded) and counts request
|
|
100
|
+
DELTAS rather than absolute zeros, so a forwarding arm inserted earlier cannot make a gate test pass
|
|
101
|
+
by accident. 98 → 108 assertions.
|
|
102
|
+
- Full gate: **21 arms, `GATE GREEN` ×3**; `check-no-cursor-control` unchanged (two whitelisted primitive
|
|
103
|
+
uses, same file list) — adding launch/window did not open a door to `MOUSEEVENTF_*`/`mouse_event`/
|
|
104
|
+
`keybd_event`; `check-frame-single-source` still sees exactly one `CopyFromScreen` call site.
|
|
105
|
+
- Zero install dependencies unchanged.
|
|
106
|
+
|
|
107
|
+
## 0.6.0 — 2026-11-23
|
|
108
|
+
|
|
109
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
110
|
+
|
|
111
|
+
**`type` stops reporting the send and starts reporting the field, and the screenshot says which path
|
|
112
|
+
painted it.** Four input-reliability additions on the existing `type` path, one capture swap, one gate,
|
|
113
|
+
and a shipped defect that only this batch's test found. No refusal code changed anywhere in this
|
|
114
|
+
release, deliberately: every new fact is a state of the target or of the read, not an error in the
|
|
115
|
+
call, and a caller that branches on codes must keep branching on the same twelve.
|
|
116
|
+
|
|
117
|
+
### Added — reading the write back
|
|
118
|
+
|
|
119
|
+
- **`effect=readback-verified`, the fourth value.** After the settle window the engine reads the value
|
|
120
|
+
back — `WM_GETTEXT` on the message door, `Current.Value` on the UIA `value`/`legacy` patterns — and
|
|
121
|
+
grants the value only when the read equals a prediction built from measurements **the control
|
|
122
|
+
itself** reported: the value it held before, its own `WM_GETTEXTLENGTH`, its own `EM_GETSEL` answer
|
|
123
|
+
for where a typed character lands. A field that does not expose its text (measured: `ES_PASSWORD`
|
|
124
|
+
returns an empty string while the length stays real) says `readback=unavailable` and is not upgraded;
|
|
125
|
+
a value that comes back different says `readbackMismatch=true` and is not upgraded — and the call is
|
|
126
|
+
still `ok:true`, because an application that reformats input has not failed.
|
|
127
|
+
- **`caretPosition: idle | start | end`** on `type`, message door. `idle` touches nothing; `start` is
|
|
128
|
+
`EM_SETSEL(0,0)`; `end` is `EM_SETSEL(len,len)` with `len` read from the control — **not** the
|
|
129
|
+
documented `-1`, which measured as a no-op on WinForms EDIT (the typed character went to the front).
|
|
130
|
+
The result reports `asked=` and `applied=` separately because on a buffer holding newlines the
|
|
131
|
+
numeric end can land inside the text (`asked=6 applied=4,4`); that is stated, not smoothed over. The
|
|
132
|
+
UIA `value` channel replaces the whole value and has no caret to move, so it answers
|
|
133
|
+
`caretIgnored=value-pattern` instead of pretending.
|
|
134
|
+
- **Focus re-measured at the moment of sending**: two `Get-WpmFocusEntry` readings around the door call;
|
|
135
|
+
a difference reports `focusMoved=true`. A warning, never a refusal — refusing here would kill correct
|
|
136
|
+
writes to be safe about a fact the readback already judges better.
|
|
137
|
+
- **Disabled-target detection** via `IsWindowEnabled`: `disabled=true` in `detail` and `effect` pinned
|
|
138
|
+
to `unverified`. Measured reason: a disabled window answers every message we send — `WM_SETTEXT` even
|
|
139
|
+
still lands — while Windows throws a click at it away, so the one thing it must not earn is an effect
|
|
140
|
+
claim.
|
|
141
|
+
- **`captureBackend=bitblt|gdiplus`** on every screenshot, in the text and the structured result.
|
|
142
|
+
|
|
143
|
+
### Changed — the capture path
|
|
144
|
+
|
|
145
|
+
- `Get-WpmScreenshot` now prefers a direct GDI `BitBlt` off the **screen** DC and falls back to
|
|
146
|
+
`Graphics.CopyFromScreen`. Same source semantics on purpose (an occluding window stays visible in the
|
|
147
|
+
picture, the coordinates stay the ones a click uses); `GetWindowDC`/`PrintWindow` would have been a
|
|
148
|
+
different product. Measured on this host: capture 16–21 ms against 22–33 ms for 1920×1080, PNG encode
|
|
149
|
+
37–39 ms in both paths — **the encoder is the bottleneck, not the capture**, which is why JPEG (6 ms,
|
|
150
|
+
and text smears), WIC (158 ms) and 24bpp (7 % smaller) were each measured and each rejected. A
|
|
151
|
+
separate probe established equivalence on a **still** scene rather than by file hash, because two
|
|
152
|
+
captures of a live desktop cannot match by construction: identical size, both non-blank, 0 maximum
|
|
153
|
+
per-channel difference over 17 388 sampled points, byte-identical PNGs — with the reported difference
|
|
154
|
+
that `FromHbitmap` yields `Format32bppRgb` where `CopyFromScreen` yields `Format32bppArgb`.
|
|
155
|
+
|
|
156
|
+
### Fixed
|
|
157
|
+
|
|
158
|
+
- **`type` with `replace:true` threw on every target since the message door existed.** The `WM_SETTEXT`
|
|
159
|
+
binding was declared as `SendMessageStrW`, an export `user32.dll` does not have, so the first call
|
|
160
|
+
raised `EntryPointNotFoundException` and surfaced as `action_failed`. No gate could see it — the parse
|
|
161
|
+
gate checks syntax, and no test in the repository drove `replace:true` through the door. The entry
|
|
162
|
+
point is now pinned explicitly and the arm ships in `test/readback-truth.mjs`.
|
|
163
|
+
- `scripts/check-types.mjs` reported "all 8 actions, 14 refusal codes" from a hardcoded string; the
|
|
164
|
+
counts are read from `src/schema/tools.json` now, so growing the contract cannot leave a green gate
|
|
165
|
+
reciting an outdated number.
|
|
166
|
+
|
|
167
|
+
### Gates and tests
|
|
168
|
+
|
|
169
|
+
- Gate 20: `scripts/check-shot-backend.mjs --self-test` — fast path called, GDI objects released in a
|
|
170
|
+
`finally`, the fallback reachable and guarded, `captureBackend` produced → forwarded → printed. Seven
|
|
171
|
+
mutations, each seen red; the first run of the gate caught two of its own vacuous assertions this way.
|
|
172
|
+
- `test/readback-truth.mjs` (new, 36 assertions) grades against the value the **application** wrote
|
|
173
|
+
about itself from inside its own process, never against our own read. Its falsification arm is a
|
|
174
|
+
read-only WinForms edit — which silently refuses `WM_CHAR` while honouring `WM_SETTEXT` — so the run
|
|
175
|
+
contains both a refusal that must not upgrade and, on the same control, a write that must.
|
|
176
|
+
Two other falsification candidates were eliminated by measurement first (a bare `LF` is preserved
|
|
177
|
+
verbatim; WinForms enforces `MaxLength` in its own handler, not through `EM_SETLIMITTEXT`).
|
|
178
|
+
- `test/plugin-test.mjs` carries the four-value `effect` list and asserts the host never upgrades an
|
|
179
|
+
engine result on its own. Full gate: **20 arms, `GATE GREEN` ×3**; desktop regression
|
|
180
|
+
hud / takeover / keyinject / signal / overlay / marker all pass.
|
|
181
|
+
- Zero install dependencies unchanged: no new package, no network surface, no mouse injection
|
|
182
|
+
(`check-no-cursor-control` still green with the same two whitelisted uses).
|
|
183
|
+
|
|
8
184
|
## 0.5.0 — 2026-11-23
|
|
9
185
|
|
|
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.
|
|
186
|
+
> Published 2026-11-23T14:19:37.293Z (registry `time` for 0.5.0, read from the packument, not from a commit date).
|
|
13
187
|
|
|
14
188
|
**The frame becomes something the caller can read, and the coordinate arithmetic leaves the model.**
|
|
15
189
|
Three read actions, one new refusal code, and one planned invariant that measurement destroyed — kept
|
|
@@ -114,6 +288,10 @@ What replaced it, with each part tested for non-vacuity:
|
|
|
114
288
|
- Non-vacuity was proven by injection, not asserted: the rect comparison rejects the `GetWindowRect`
|
|
115
289
|
rect and a +10px shift; a generated all-white PNG reads blank; the frame predicate says yes to the
|
|
116
290
|
measured pair and no to a frame that pokes outside it; every structural mutation turns its gate red.
|
|
291
|
+
- The `CHANGELOG.md` **inside the 0.5.0 tarball** still carries the pre-publish "working date" line,
|
|
292
|
+
because the tarball is frozen at publish time and the registry time was written back afterwards.
|
|
293
|
+
This entry (in the repository) carries the real one: `2026-11-23T14:19:37.293Z`. The same
|
|
294
|
+
retroactivity applied to 0.4.0's README, and is recorded there for the same reason.
|
|
117
295
|
- Two things this release did **not** fix, stated rather than hidden:
|
|
118
296
|
- This host's `UIAutomationClient` has no `LegacyIAccessiblePattern` type at all (measured:
|
|
119
297
|
`Unable to find type`), so any target that exposes only the MSAA bridge — WinForms among them —
|
package/CHANGELOG.pt.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 fecha o buraco de «nem sequer consigo iniciar um programa», acrescenta três ações de desktop e troca a porta binária por UM teto: cada ação declara o degrau mínimo que pode precisar (requiresTier: readonly < quiet < flash < takeover) e o dono define um único policy (padrão balanced). Acima do teto → policy_denied, cujo próximo passo é subir o ajuste, não repetir. launch exige duas chaves que não se implicam (appLaunchAllowed e uma lista appLaunchAllow exata e sem diferença de maiúsculas — vazia = nada inicia, sem curinga nem prefixo); uma recusa não custa nenhuma chamada ao worker. Um processo sem janela responde ok:true, hwnd vazio e detail=window-not-yet (medido: notepad a frio 1348 ms com MainWindowHandle=0). A LEITURA da área de transferência reporta só o comprimento, nunca o conteúdo (limite 64 KB, truncated declarado); a escrita de imagem aceita um shotId. As cinco operações de window são verificadas relendo o estado da própria janela (IsIconic, rect, WS_EX_TOPMOST), e como restore ativa por definição o resultado informa foregroundTaken em vez de esconder. Ações 8 → 11 (quatro cópias sincronizadas; o log do check-types agora lê esses números de tools.json). Se o dono está presente, recusa-se (user_active) em vez de abrir diálogo; forceUserActive:true é a saída explícita e fica registrada na auditoria. Três códigos novos (app_launch_denied, policy_denied, user_active), cada um aponta um ajuste. Registro de auditoria: uma linha JSONL por ação, allow E deny, nunca o conteúdo. Corrigidos dois defeitos reais: Clipboard.Flush() não existe no PowerShell 5.1 (.NET Framework) e um tratador de recusa lia uma chave que seu ramo nunca escreveu. O gate 21 check-policy-table verifica que as duas escadas (JS e PS) são a mesma lista na mesma ordem; check-jsdoc agora verifica se cada arquivo em lib/ está coberto — antes um módulo novo passava sem checagem. Aperto intencional: takeover:true agora exige policy=full além de takeoverAllowed. Gate completo: 21 braços, GATE GREEN ×3. A entrada em inglês é a autoritativa.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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).
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -8,9 +8,21 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 закрывает дыру «нельзя даже запустить программу», добавляет три десктопных действия и заменяет бинарный шлюз ОДНИМ потолком: каждое действие объявляет минимальную ступень, которая ему когда-либо нужна (requiresTier: readonly < quiet < flash < takeover), а владелец задаёт единственный policy (по умолчанию balanced). Выше потолка — policy_denied, и следующий шаг в нём — поднять настройку, а не повторять вызов. Для launch нужны два независимых переключателя (appLaunchAllowed и точный, нечувствительный к регистру appLaunchAllow; пустой список = ничего нельзя запускать, без wildcard и без совпадения по префиксу); отказ не стоит ни одного запроса к worker. Процесс без окна отвечает ok:true, пустой hwnd и detail=window-not-yet (измерено: холодный notepad 1348 мс с MainWindowHandle=0). ЧТЕНИЕ буфера обмена сообщает только длину и никогда содержимое (лимит 64 КБ, truncated указывается открыто); запись изображения принимает shotId. Все пять операций window проверяются обратным чтением состояния окна (IsIconic, rect, WS_EX_TOPMOST), а поскольку restore активирует по определению, результат сообщает foregroundTaken, вместо это скрывать. Действий 8 → 11 (четыре копии синхронизированы; лог check-types теперь читает эти числа из tools.json). Если владелец за клавиатурой — отказ (user_active), а не диалоговое окно; явный выход forceUserActive:true попадает в аудит. Три новых кода (app_launch_denied, policy_denied, user_active), каждый указывает на настройку. Журнал аудита: строка JSONL на каждое действие, и allow, и deny, но никогда содержимое. Исправлены два настоящих дефекта: Clipboard.Flush() отсутствует в PowerShell 5.1 (.NET Framework), а обработчик отказа читал ключ, который его ветвь никогда не выставляла. Gate 21 check-policy-table проверяет, что обе лестницы (JS и PS) — один и тот же список в том же порядке; check-jsdoc теперь проверяет, что в покрытие попадает каждый файл lib/ — раньше новый модуль молча оставался unchecked. Сознательное ужесточение: takeover:true теперь требует policy=full в дополнение к takeoverAllowed. Полный gate: 21 плечо, GATE GREEN ×3. Авторитетна английская запись.
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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` падал на каждой мишени. Новые коды отказа не добавлены. Авторитетна английская запись.
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
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-серии. Подробности в английской
|
|
25
|
+
> 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
26
|
|
|
15
27
|
## 0.4.1 — 2026-11-23
|
|
16
28
|
|
package/CHANGELOG.zh.md
CHANGED
|
@@ -8,6 +8,18 @@ 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.7.0 — 2026-11-23
|
|
12
|
+
|
|
13
|
+
> Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
|
|
14
|
+
|
|
15
|
+
> 0.7.0 补上「连启动一个程序都做不到」的缺口并新增三项桌面能力,同时把二元权限闸换成一个天花板:每个动作声明自己最低需要哪一档(requiresTier:readonly < quiet < flash < takeover),所有者只设一个 policy(默认 balanced);超出即 policy_denied,下一步写明是调高设置而不是重试。launch 需要两个互不暗示的开关——appLaunchAllowed 与精确、大小写折叠的 appLaunchAllow 白名单(默认为空=什么都不能启动,无通配符、无前缀匹配),拒绝时零 worker 请求;进程已启但窗口未就绪回答 ok:true + hwnd 为空 + detail=window-not-yet(实测冷启 notepad 1348ms 内 MainWindowHandle=0)。clipboard 读只报长度、绝不报内容,上限 64KB 且明写 truncated,写图片可直接接收 shotId。window 五个 op 全部靠读回窗口自身状态(IsIconic/rect/WS_EX_TOPMOST)验证,restore 按定义会抢前台,因此结果带 foregroundTaken 实测值而不是隐藏它。动作数 8→11(四处契约面同步,且 check-types 日志行改为从 tools.json 读数)。空闲感知:主人在场时拒绝对话框、改答 user_active,逃生门 forceUserActive:true 会计入审计。新增第 15/16/17 码 app_launch_denied/policy_denied/user_active(每个都指向一个设置)。审计日志 %LOCALAPPDATA%\wpm\audit.log 逐动作一行,allow 与 deny 都记,绝不记内容(clipboard 只留 op/format/chars)。修掉 Clipboard.Flush() 在 PS 5.1(.NET Framework)根本不存在、以及拒绝处理里读到分支从未写入的键两个真缺陷。第 21 道门禁 check-policy-table 断言 JS 与 PS 两份阶梯是同一份;check-jsdoc 现在断言 lib/ 每个文件都被覆盖(此前新增模块会静默漏检)。有意收紧的一处:takeover:true 现在除 takeoverAllowed 外还需要 policy 为 full。全量门禁 21 臂 ×3 GATE GREEN。详情见英文权威条目。
|
|
16
|
+
|
|
17
|
+
## 0.6.0 — 2026-11-23
|
|
18
|
+
|
|
19
|
+
> Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
|
|
20
|
+
|
|
21
|
+
> 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。拒绝码零新增。详情见英文权威条目。
|
|
22
|
+
|
|
11
23
|
## 0.5.0 — 2026-11-23
|
|
12
24
|
|
|
13
25
|
> 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 仍是硬断言。
|