@polyxd/verifier 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE
CHANGED
|
@@ -199,6 +199,8 @@ Apache-2.0: playwright
|
|
|
199
199
|
MIT: react, react-dom, radix-ui, ajv, ajv-formats, vite, @vitejs/plugin-react,
|
|
200
200
|
marked, lenis, @types/react, @types/react-dom
|
|
201
201
|
MIT OR Apache-2.0: wrangler, @cloudflare/workers-types
|
|
202
|
+
Apache-2.0 AND MIT: posthog-js (the analytics on polyxd.com and in Studio, only
|
|
203
|
+
when a PostHog key is set; the site's build copies it out of node_modules)
|
|
202
204
|
|
|
203
205
|
Two need a word.
|
|
204
206
|
|
package/harness/README.md
CHANGED
|
@@ -24,9 +24,10 @@ The verifier renders a document by opening a **harness**: a page that draws one
|
|
|
24
24
|
```ts
|
|
25
25
|
window.__pxdActions = []; // every ActionEvent, in order: { name, context, source }
|
|
26
26
|
window.__pxdDismissed = 0; // incremented on each ui.dismiss
|
|
27
|
+
window.__pxdEvents = []; // optional: every semantic event (schema/event.schema.json), in order
|
|
27
28
|
```
|
|
28
29
|
|
|
29
|
-
The agent tasks check `__pxdActions` for the expected capability event with the expected (resolved) context.
|
|
30
|
+
The agent tasks check `__pxdActions` for the expected capability event with the expected (resolved) context. The shipped harnesses also pass `onEvent`, so every rendered check runs with semantic events on, and the verifier's tests compare the events both renderers emit for the same clicks.
|
|
30
31
|
|
|
31
32
|
4. **Say when it is ready.** After the first paint, set `window.__pxdReady = true`. The shipped harnesses do it two animation frames after mounting. The verifier then waits for any finite CSS animation to finish (an entrance fade) before measuring, so a renderer need not avoid them.
|
|
32
33
|
|