@ggui-ai/ui-visual-tester 0.21.0 → 0.22.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.
|
@@ -29396,6 +29396,8 @@
|
|
|
29396
29396
|
...opts.onDispatchSuppressed !== void 0 ? { onDispatchSuppressed: opts.onDispatchSuppressed } : {},
|
|
29397
29397
|
dispatch: (actionName, data) => {
|
|
29398
29398
|
const actionSpec = opts.getActiveActionSpec();
|
|
29399
|
+
if (actionSpec === void 0)
|
|
29400
|
+
opts.onActionSpecAbsent?.(actionName);
|
|
29399
29401
|
const isOneShot = actionSpec?.[actionName]?.oneShot === true;
|
|
29400
29402
|
if (isOneShot && spentOneShots.has(actionName)) {
|
|
29401
29403
|
console.warn(`[ggui] dispatch('${actionName}') suppressed: this action is declared oneShot and already fired for this render. A second gesture is NOT sent to the agent \u2014 the submitted control is spent for the render's lifetime. If the action is meant to repeat, remove \`oneShot\` from its contract entry.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ggui-ai/ui-visual-tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Behavioral validator for ggui-generated component code. Renders a component in real Chromium via Playwright, clicks each action declared in its contract, and verifies the action actually does something — mutating bound state or dispatching to the agent. Catches buttons wired to no-op handlers that structural validators miss. Playwright is an optional peer dependency, injected by the caller.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ggui",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react": "^19.0.0",
|
|
55
55
|
"react-dom": "^19.0.0",
|
|
56
|
-
"@ggui-ai/
|
|
57
|
-
"@ggui-ai/
|
|
58
|
-
"@ggui-ai/wire": "0.
|
|
56
|
+
"@ggui-ai/design": "0.22.0",
|
|
57
|
+
"@ggui-ai/protocol": "0.22.0",
|
|
58
|
+
"@ggui-ai/wire": "0.22.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@playwright/test": "^1.60.0",
|