@riddledc/riddle-proof 0.7.196 → 0.7.197
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/{chunk-WUOU5RB4.js → chunk-EYLIXKE2.js} +6 -0
- package/dist/cli.cjs +27 -0
- package/dist/cli.js +22 -1
- package/dist/index.cjs +6 -0
- package/dist/index.js +1 -1
- package/dist/profile.cjs +6 -0
- package/dist/profile.js +1 -1
- package/package.json +1 -1
|
@@ -801,6 +801,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
801
801
|
selector: result.selector ?? null,
|
|
802
802
|
frame_selector: result.frame_selector ?? null,
|
|
803
803
|
text: compactProfileSetupSummaryText(result.text),
|
|
804
|
+
...result.fallback_to_tap === true ? { fallback_to_tap: true } : {},
|
|
805
|
+
...result.input_dispatch ? { input_dispatch: result.input_dispatch } : {},
|
|
806
|
+
...result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {},
|
|
804
807
|
...clickCount ? { click_count: clickCount } : {}
|
|
805
808
|
};
|
|
806
809
|
});
|
|
@@ -4722,6 +4725,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
4722
4725
|
selector: result.selector ?? null,
|
|
4723
4726
|
frame_selector: result.frame_selector ?? null,
|
|
4724
4727
|
text: compactProfileSetupSummaryText(result.text),
|
|
4728
|
+
...(result.fallback_to_tap === true ? { fallback_to_tap: true } : {}),
|
|
4729
|
+
...(result.input_dispatch ? { input_dispatch: result.input_dispatch } : {}),
|
|
4730
|
+
...(result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {}),
|
|
4725
4731
|
...(clickCount ? { click_count: clickCount } : {}),
|
|
4726
4732
|
};
|
|
4727
4733
|
});
|
package/dist/cli.cjs
CHANGED
|
@@ -7758,6 +7758,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
7758
7758
|
selector: result.selector ?? null,
|
|
7759
7759
|
frame_selector: result.frame_selector ?? null,
|
|
7760
7760
|
text: compactProfileSetupSummaryText(result.text),
|
|
7761
|
+
...result.fallback_to_tap === true ? { fallback_to_tap: true } : {},
|
|
7762
|
+
...result.input_dispatch ? { input_dispatch: result.input_dispatch } : {},
|
|
7763
|
+
...result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {},
|
|
7761
7764
|
...clickCount ? { click_count: clickCount } : {}
|
|
7762
7765
|
};
|
|
7763
7766
|
});
|
|
@@ -11663,6 +11666,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
11663
11666
|
selector: result.selector ?? null,
|
|
11664
11667
|
frame_selector: result.frame_selector ?? null,
|
|
11665
11668
|
text: compactProfileSetupSummaryText(result.text),
|
|
11669
|
+
...(result.fallback_to_tap === true ? { fallback_to_tap: true } : {}),
|
|
11670
|
+
...(result.input_dispatch ? { input_dispatch: result.input_dispatch } : {}),
|
|
11671
|
+
...(result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {}),
|
|
11666
11672
|
...(clickCount ? { click_count: clickCount } : {}),
|
|
11667
11673
|
};
|
|
11668
11674
|
});
|
|
@@ -16779,6 +16785,20 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16779
16785
|
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "window_call"))
|
|
16780
16786
|
].filter((item) => item.ok !== false);
|
|
16781
16787
|
const clickCount = setupViewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.clicked_total) || 0), 0) + profileSetupReceiptTotal(setupViewports, "click") + profileSetupReceiptTotal(setupViewports, "click_count");
|
|
16788
|
+
const clickFallbackTapKeys = /* @__PURE__ */ new Set();
|
|
16789
|
+
[
|
|
16790
|
+
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "clicked")),
|
|
16791
|
+
...evidenceViewports.flatMap((viewport) => setupReceiptArray(cliRecord(viewport) || {}, "setup_action_results"))
|
|
16792
|
+
].forEach((receipt2, index) => {
|
|
16793
|
+
if (receipt2.ok === false || receipt2.fallback_to_tap !== true) return;
|
|
16794
|
+
const action = cliString(receipt2.action);
|
|
16795
|
+
if (action && action !== "click") return;
|
|
16796
|
+
const ordinal = cliFiniteNumber(receipt2.ordinal);
|
|
16797
|
+
const selector = cliString(receipt2.selector) || "";
|
|
16798
|
+
const frameSelector = cliString(receipt2.frame_selector) || "";
|
|
16799
|
+
clickFallbackTapKeys.add(`${ordinal === void 0 ? `idx:${index}` : `ord:${ordinal}`}:${frameSelector}:${selector}`);
|
|
16800
|
+
});
|
|
16801
|
+
const clickFallbackTapCount = clickFallbackTapKeys.size;
|
|
16782
16802
|
const visibleUiActionCount = clickCount + profileSetupReceiptTotal(setupViewports, "tap");
|
|
16783
16803
|
const setupFailureCount = profileSetupFailureCount(setupViewports);
|
|
16784
16804
|
const setupObstructionCount = profileSetupObstructionCount(setupViewports);
|
|
@@ -16842,6 +16862,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
16842
16862
|
if (text.includes("setup action")) {
|
|
16843
16863
|
return profileReceiptSignalStatus(hasSetupReceipts, "setup receipts present", "setup receipts missing");
|
|
16844
16864
|
}
|
|
16865
|
+
if (text.includes("click") && text.includes("fallback") && text.includes("tap")) {
|
|
16866
|
+
return profileReceiptSignalStatus(
|
|
16867
|
+
clickFallbackTapCount > 0,
|
|
16868
|
+
`click fallback tap evidence present (${clickFallbackTapCount})`,
|
|
16869
|
+
"click fallback tap evidence missing"
|
|
16870
|
+
);
|
|
16871
|
+
}
|
|
16845
16872
|
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state"))) {
|
|
16846
16873
|
return profileReceiptSignalStatus(
|
|
16847
16874
|
hasActiveRouteLocalProofReceipt,
|
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
profileStatusExitCode,
|
|
14
14
|
resolveRiddleProofProfileTargetUrl,
|
|
15
15
|
resolveRiddleProofProfileTimeoutSec
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EYLIXKE2.js";
|
|
17
17
|
import {
|
|
18
18
|
createRiddleApiClient,
|
|
19
19
|
isTerminalRiddleJobStatus,
|
|
@@ -834,6 +834,20 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
834
834
|
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "window_call"))
|
|
835
835
|
].filter((item) => item.ok !== false);
|
|
836
836
|
const clickCount = setupViewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.clicked_total) || 0), 0) + profileSetupReceiptTotal(setupViewports, "click") + profileSetupReceiptTotal(setupViewports, "click_count");
|
|
837
|
+
const clickFallbackTapKeys = /* @__PURE__ */ new Set();
|
|
838
|
+
[
|
|
839
|
+
...setupViewports.flatMap((viewport) => setupReceiptArray(viewport, "clicked")),
|
|
840
|
+
...evidenceViewports.flatMap((viewport) => setupReceiptArray(cliRecord(viewport) || {}, "setup_action_results"))
|
|
841
|
+
].forEach((receipt2, index) => {
|
|
842
|
+
if (receipt2.ok === false || receipt2.fallback_to_tap !== true) return;
|
|
843
|
+
const action = cliString(receipt2.action);
|
|
844
|
+
if (action && action !== "click") return;
|
|
845
|
+
const ordinal = cliFiniteNumber(receipt2.ordinal);
|
|
846
|
+
const selector = cliString(receipt2.selector) || "";
|
|
847
|
+
const frameSelector = cliString(receipt2.frame_selector) || "";
|
|
848
|
+
clickFallbackTapKeys.add(`${ordinal === void 0 ? `idx:${index}` : `ord:${ordinal}`}:${frameSelector}:${selector}`);
|
|
849
|
+
});
|
|
850
|
+
const clickFallbackTapCount = clickFallbackTapKeys.size;
|
|
837
851
|
const visibleUiActionCount = clickCount + profileSetupReceiptTotal(setupViewports, "tap");
|
|
838
852
|
const setupFailureCount = profileSetupFailureCount(setupViewports);
|
|
839
853
|
const setupObstructionCount = profileSetupObstructionCount(setupViewports);
|
|
@@ -897,6 +911,13 @@ function profilePackReceiptStatus(result, metadata, receipt) {
|
|
|
897
911
|
if (text.includes("setup action")) {
|
|
898
912
|
return profileReceiptSignalStatus(hasSetupReceipts, "setup receipts present", "setup receipts missing");
|
|
899
913
|
}
|
|
914
|
+
if (text.includes("click") && text.includes("fallback") && text.includes("tap")) {
|
|
915
|
+
return profileReceiptSignalStatus(
|
|
916
|
+
clickFallbackTapCount > 0,
|
|
917
|
+
`click fallback tap evidence present (${clickFallbackTapCount})`,
|
|
918
|
+
"click fallback tap evidence missing"
|
|
919
|
+
);
|
|
920
|
+
}
|
|
900
921
|
if (text.includes("active") && (text.includes("route-local") || text.includes("route local")) && (text.includes("proof helper") || text.includes("proof api") || text.includes("proof state"))) {
|
|
901
922
|
return profileReceiptSignalStatus(
|
|
902
923
|
hasActiveRouteLocalProofReceipt,
|
package/dist/index.cjs
CHANGED
|
@@ -9534,6 +9534,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
9534
9534
|
selector: result.selector ?? null,
|
|
9535
9535
|
frame_selector: result.frame_selector ?? null,
|
|
9536
9536
|
text: compactProfileSetupSummaryText(result.text),
|
|
9537
|
+
...result.fallback_to_tap === true ? { fallback_to_tap: true } : {},
|
|
9538
|
+
...result.input_dispatch ? { input_dispatch: result.input_dispatch } : {},
|
|
9539
|
+
...result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {},
|
|
9537
9540
|
...clickCount ? { click_count: clickCount } : {}
|
|
9538
9541
|
};
|
|
9539
9542
|
});
|
|
@@ -13455,6 +13458,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
13455
13458
|
selector: result.selector ?? null,
|
|
13456
13459
|
frame_selector: result.frame_selector ?? null,
|
|
13457
13460
|
text: compactProfileSetupSummaryText(result.text),
|
|
13461
|
+
...(result.fallback_to_tap === true ? { fallback_to_tap: true } : {}),
|
|
13462
|
+
...(result.input_dispatch ? { input_dispatch: result.input_dispatch } : {}),
|
|
13463
|
+
...(result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {}),
|
|
13458
13464
|
...(clickCount ? { click_count: clickCount } : {}),
|
|
13459
13465
|
};
|
|
13460
13466
|
});
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
resolveRiddleProofProfileTimeoutSec,
|
|
63
63
|
slugifyRiddleProofProfileName,
|
|
64
64
|
summarizeRiddleProofProfileResult
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-EYLIXKE2.js";
|
|
66
66
|
import {
|
|
67
67
|
DEFAULT_RIDDLE_API_BASE_URL,
|
|
68
68
|
DEFAULT_RIDDLE_API_KEY_FILE,
|
package/dist/profile.cjs
CHANGED
|
@@ -848,6 +848,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
|
|
|
848
848
|
selector: result.selector ?? null,
|
|
849
849
|
frame_selector: result.frame_selector ?? null,
|
|
850
850
|
text: compactProfileSetupSummaryText(result.text),
|
|
851
|
+
...result.fallback_to_tap === true ? { fallback_to_tap: true } : {},
|
|
852
|
+
...result.input_dispatch ? { input_dispatch: result.input_dispatch } : {},
|
|
853
|
+
...result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {},
|
|
851
854
|
...clickCount ? { click_count: clickCount } : {}
|
|
852
855
|
};
|
|
853
856
|
});
|
|
@@ -4769,6 +4772,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
|
|
|
4769
4772
|
selector: result.selector ?? null,
|
|
4770
4773
|
frame_selector: result.frame_selector ?? null,
|
|
4771
4774
|
text: compactProfileSetupSummaryText(result.text),
|
|
4775
|
+
...(result.fallback_to_tap === true ? { fallback_to_tap: true } : {}),
|
|
4776
|
+
...(result.input_dispatch ? { input_dispatch: result.input_dispatch } : {}),
|
|
4777
|
+
...(result.click_error ? { click_error: compactProfileSetupSummaryText(result.click_error) } : {}),
|
|
4772
4778
|
...(clickCount ? { click_count: clickCount } : {}),
|
|
4773
4779
|
};
|
|
4774
4780
|
});
|
package/dist/profile.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveRiddleProofProfileTimeoutSec,
|
|
24
24
|
slugifyRiddleProofProfileName,
|
|
25
25
|
summarizeRiddleProofProfileResult
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EYLIXKE2.js";
|
|
27
27
|
export {
|
|
28
28
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
29
29
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|