@riddledc/riddle-proof 0.7.186 → 0.7.187
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/dist/cli.cjs
CHANGED
|
@@ -16420,6 +16420,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16420
16420
|
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "window_call"))
|
|
16421
16421
|
].filter((item) => item.ok !== false);
|
|
16422
16422
|
const clickCount = setupViewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.clicked_total) || 0), 0) + profileSetupReceiptTotal(setupViewports, "click") + profileSetupReceiptTotal(setupViewports, "click_count");
|
|
16423
|
+
const visibleUiActionCount = clickCount + profileSetupReceiptTotal(setupViewports, "tap");
|
|
16423
16424
|
const setupFailureCount = profileSetupFailureCount(setupViewports);
|
|
16424
16425
|
const setupObstructionCount = profileSetupObstructionCount(setupViewports);
|
|
16425
16426
|
const inputDispatchCount = profileSetupReceiptTotal(setupViewports, "drag") + profileSetupReceiptTotal(setupViewports, "tap") + profileSetupReceiptTotal(setupViewports, "press") + profileSetupReceiptTotal(setupViewports, "keyboard_sequence");
|
|
@@ -16493,6 +16494,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16493
16494
|
if (text.includes("invalid state")) {
|
|
16494
16495
|
return profileReceiptSignalStatus(hasStateContract || hasInvalidStateReceipt, "invalid-state receipt present", "invalid-state receipt missing");
|
|
16495
16496
|
}
|
|
16497
|
+
if (text.includes("through visible ui") || text.includes("visible ui action") || text.includes("ui-routed") || text.includes("ui routed") || text.includes("visible") && text.includes("route") && text.includes("exit") && text.includes("action") || text.includes("visible") && text.includes("mode") && text.includes("exit") && text.includes("action")) {
|
|
16498
|
+
return profileReceiptSignalStatus(
|
|
16499
|
+
visibleUiActionCount > 0,
|
|
16500
|
+
"visible UI action receipt present",
|
|
16501
|
+
"visible UI action receipt missing"
|
|
16502
|
+
);
|
|
16503
|
+
}
|
|
16496
16504
|
if (text.includes("route-exit affordance") || text.includes("route exit affordance") || text.includes("navigation before cleanup") || text.includes("exit control")) {
|
|
16497
16505
|
return profileReceiptSignalStatus(
|
|
16498
16506
|
hasRouteExitAffordanceReceipt || hasStateContract || clickCount > 0,
|
package/dist/cli.js
CHANGED
|
@@ -625,6 +625,7 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
625
625
|
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "window_call"))
|
|
626
626
|
].filter((item) => item.ok !== false);
|
|
627
627
|
const clickCount = setupViewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.clicked_total) || 0), 0) + profileSetupReceiptTotal(setupViewports, "click") + profileSetupReceiptTotal(setupViewports, "click_count");
|
|
628
|
+
const visibleUiActionCount = clickCount + profileSetupReceiptTotal(setupViewports, "tap");
|
|
628
629
|
const setupFailureCount = profileSetupFailureCount(setupViewports);
|
|
629
630
|
const setupObstructionCount = profileSetupObstructionCount(setupViewports);
|
|
630
631
|
const inputDispatchCount = profileSetupReceiptTotal(setupViewports, "drag") + profileSetupReceiptTotal(setupViewports, "tap") + profileSetupReceiptTotal(setupViewports, "press") + profileSetupReceiptTotal(setupViewports, "keyboard_sequence");
|
|
@@ -698,6 +699,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
698
699
|
if (text.includes("invalid state")) {
|
|
699
700
|
return profileReceiptSignalStatus(hasStateContract || hasInvalidStateReceipt, "invalid-state receipt present", "invalid-state receipt missing");
|
|
700
701
|
}
|
|
702
|
+
if (text.includes("through visible ui") || text.includes("visible ui action") || text.includes("ui-routed") || text.includes("ui routed") || text.includes("visible") && text.includes("route") && text.includes("exit") && text.includes("action") || text.includes("visible") && text.includes("mode") && text.includes("exit") && text.includes("action")) {
|
|
703
|
+
return profileReceiptSignalStatus(
|
|
704
|
+
visibleUiActionCount > 0,
|
|
705
|
+
"visible UI action receipt present",
|
|
706
|
+
"visible UI action receipt missing"
|
|
707
|
+
);
|
|
708
|
+
}
|
|
701
709
|
if (text.includes("route-exit affordance") || text.includes("route exit affordance") || text.includes("navigation before cleanup") || text.includes("exit control")) {
|
|
702
710
|
return profileReceiptSignalStatus(
|
|
703
711
|
hasRouteExitAffordanceReceipt || hasStateContract || clickCount > 0,
|
|
@@ -71,6 +71,17 @@
|
|
|
71
71
|
"product_regression": "fail"
|
|
72
72
|
},
|
|
73
73
|
"metadata": {
|
|
74
|
+
"pack_id": "state_hygiene",
|
|
75
|
+
"pack_public_name": "State Hygiene Pack",
|
|
76
|
+
"required_receipts": [
|
|
77
|
+
"active route-local proof helpers and route state receipt",
|
|
78
|
+
"route-exit affordance inventory before cleanup",
|
|
79
|
+
"route or mode exit action receipt through visible UI",
|
|
80
|
+
"post-cleanup stale-state inventory after route cleanup",
|
|
81
|
+
"screenshots at active and post-cleanup boundaries",
|
|
82
|
+
"console and warning accounting",
|
|
83
|
+
"proof JSON and artifact links"
|
|
84
|
+
],
|
|
74
85
|
"purpose": "Template for SPA route-exit hygiene profiles. Replace the example route, selectors, and watched globals with route-local proof helpers, receipts, timers, input state, or touch state that must exist while the feature route is active and must be removed after visible UI navigation returns home."
|
|
75
86
|
}
|
|
76
87
|
}
|