@ggui-ai/ui-visual-tester 0.6.3 → 0.8.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/fixture/fixture-runtime.js +29 -10
- package/package.json +4 -4
|
@@ -25461,8 +25461,16 @@
|
|
|
25461
25461
|
const timer = setTimeout(onClose, duration4);
|
|
25462
25462
|
return () => clearTimeout(timer);
|
|
25463
25463
|
}, [visible, duration4, onClose]);
|
|
25464
|
-
if (!visible)
|
|
25465
|
-
return
|
|
25464
|
+
if (!visible) {
|
|
25465
|
+
return (0, import_jsx_runtime25.jsx)("div", { role: "alert", "aria-live": "assertive", className, style: {
|
|
25466
|
+
position: "absolute",
|
|
25467
|
+
width: "1px",
|
|
25468
|
+
height: "1px",
|
|
25469
|
+
overflow: "hidden",
|
|
25470
|
+
clipPath: "inset(50%)",
|
|
25471
|
+
whiteSpace: "nowrap"
|
|
25472
|
+
} });
|
|
25473
|
+
}
|
|
25466
25474
|
const vs = variantStyles4[variant];
|
|
25467
25475
|
const toastStyle = {
|
|
25468
25476
|
display: "flex",
|
|
@@ -42336,7 +42344,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
42336
42344
|
|
|
42337
42345
|
// ../protocol/dist/gadgets/stdlib-gadgets.js
|
|
42338
42346
|
var STDLIB_GADGETS_PACKAGE = "@ggui-ai/gadgets";
|
|
42339
|
-
var STDLIB_GADGETS_VERSION = "0.
|
|
42347
|
+
var STDLIB_GADGETS_VERSION = "0.8.0";
|
|
42340
42348
|
var STDLIB_GADGETS = [
|
|
42341
42349
|
{
|
|
42342
42350
|
package: STDLIB_GADGETS_PACKAGE,
|
|
@@ -42823,7 +42831,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
42823
42831
|
var listFeaturedBlueprintsInputSchema = external_exports.object(listFeaturedBlueprintsInputShape);
|
|
42824
42832
|
var searchBlueprintsInputShape = {
|
|
42825
42833
|
query: external_exports.string().min(1).describe("Natural-language description of the UI you're looking for"),
|
|
42826
|
-
limit: external_exports.number().int().min(1).max(100).optional()
|
|
42834
|
+
limit: external_exports.number().int().min(1).max(100).optional(),
|
|
42835
|
+
// Charset mirrors `MCP_TOOL_BINDING_NAME_RE` in
|
|
42836
|
+
// `@ggui-ai/artifact-manifest` (src/mcp-tool-bindings.ts). Inlined:
|
|
42837
|
+
// protocol cannot import artifact-manifest — the dependency points
|
|
42838
|
+
// the other way.
|
|
42839
|
+
tool: external_exports.string().regex(/^[A-Za-z0-9_.-]{1,128}$/).optional().describe("Filter registry-sourced candidates to artifacts declaring a binding for this exact MCP tool name (case-sensitive). Local results are unaffected."),
|
|
42840
|
+
server: external_exports.string().regex(/^[A-Za-z0-9_.-]{1,128}$/).optional().describe("Filter registry-sourced candidates to artifacts declaring a binding for this exact MCP server name (case-sensitive). Combine with `tool` to require the exact (server, tool) pair.")
|
|
42827
42841
|
};
|
|
42828
42842
|
var searchBlueprintsInputSchema = external_exports.object(searchBlueprintsInputShape);
|
|
42829
42843
|
var renderBlueprintInputShape = {
|
|
@@ -42832,12 +42846,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
42832
42846
|
var renderBlueprintInputSchema = external_exports.object(renderBlueprintInputShape);
|
|
42833
42847
|
var discoverInputShape = {};
|
|
42834
42848
|
var discoverInputSchema = external_exports.object(discoverInputShape);
|
|
42835
|
-
var requestCredentialInputShape = {
|
|
42836
|
-
serviceId: external_exports.string().min(1),
|
|
42837
|
-
reason: external_exports.string().optional(),
|
|
42838
|
-
sessionId: external_exports.string().optional()
|
|
42839
|
-
};
|
|
42840
|
-
var requestCredentialInputSchema = external_exports.object(requestCredentialInputShape);
|
|
42841
42849
|
var handshakeInputSchema = external_exports.object({
|
|
42842
42850
|
/**
|
|
42843
42851
|
* Concise semantic identity of the UI. Same intent across calls =
|
|
@@ -42959,6 +42967,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
42959
42967
|
code: renderErrorCodeSchema.describe("Canonical failure class. PRODUCTION_FAILED: generation did not produce a component. VALIDATION_ERROR: a server-side precondition rejected the render before generation. NO_PLATFORM_KEY: the server's managed provider-key configuration has no key for the resolved route. NO_CREDENTIALS: no generation credentials are configured on the server."),
|
|
42960
42968
|
message: external_exports.string().describe("Human-readable failure detail \u2014 fold into the next attempt or surface to the operator.")
|
|
42961
42969
|
});
|
|
42970
|
+
var resourceReadErrorCodeSchema = external_exports.enum([
|
|
42971
|
+
"NOT_FOUND",
|
|
42972
|
+
"BLUEPRINT_UNRESOLVABLE",
|
|
42973
|
+
"NOT_SUPPORTED",
|
|
42974
|
+
"NOT_MOUNTABLE"
|
|
42975
|
+
]);
|
|
42976
|
+
var resourceReadErrorSchema = external_exports.object({
|
|
42977
|
+
code: resourceReadErrorCodeSchema.describe("Canonical failure class. NOT_FOUND: no live render and no restorable record (also the response when the caller may not read this locator). BLUEPRINT_UNRESOLVABLE: a record exists but the component behind it is gone. NOT_SUPPORTED: this server keeps no durable record, so an evicted locator can never be restored. NOT_MOUNTABLE: the render resolved but no delivery channel is available."),
|
|
42978
|
+
message: external_exports.string().describe("Human-readable failure detail. Replaced by a constant on NOT_FOUND."),
|
|
42979
|
+
detail: external_exports.string().optional().describe("Extra diagnostic context for operators. Dropped on NOT_FOUND so a denied read cannot be told apart from a miss.")
|
|
42980
|
+
});
|
|
42962
42981
|
var renderOutputSchema = external_exports.object({
|
|
42963
42982
|
sessionId: external_exports.string(),
|
|
42964
42983
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ggui-ai/ui-visual-tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"react": "^19.0.0",
|
|
50
50
|
"react-dom": "^19.0.0",
|
|
51
|
-
"@ggui-ai/design": "0.
|
|
52
|
-
"@ggui-ai/
|
|
53
|
-
"@ggui-ai/
|
|
51
|
+
"@ggui-ai/design": "0.8.0",
|
|
52
|
+
"@ggui-ai/wire": "0.8.0",
|
|
53
|
+
"@ggui-ai/protocol": "0.8.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@playwright/test": "^1.60.0",
|