@riddledc/riddle-proof 0.7.134 → 0.7.135

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.
@@ -3653,6 +3653,21 @@ function profileSetupScreenshotLabels(results) {
3653
3653
  .map((result) => result.screenshot_label)
3654
3654
  .filter(Boolean);
3655
3655
  }
3656
+ function profileSetupWindowCallUntilReceipts(results) {
3657
+ return (results || [])
3658
+ .filter((result) => result && profileSetupResultAction(result) === "window_call_until")
3659
+ .map((result) => ({
3660
+ ordinal: result.ordinal ?? null,
3661
+ ok: result.ok !== false,
3662
+ path: result.path ?? null,
3663
+ until_path: result.until_path ?? null,
3664
+ until_value: result.until_value ?? null,
3665
+ until_expected_value: result.until_expected_value ?? null,
3666
+ call_count: result.call_count ?? null,
3667
+ max_calls: result.max_calls ?? null,
3668
+ reason: result.reason || result.error || null,
3669
+ }));
3670
+ }
3656
3671
  function sampleProfileSetupSummaryItems(items, limit) {
3657
3672
  if ((items || []).length <= limit) return items || [];
3658
3673
  const firstCount = Math.floor(limit / 2);
@@ -3682,6 +3697,11 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3682
3697
  const clickCountValues = successfulClicks
3683
3698
  .map((result) => typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : undefined)
3684
3699
  .filter((value) => value !== undefined);
3700
+ const windowCallUntilReceipts = profileSetupWindowCallUntilReceipts(results);
3701
+ const windowCallUntilCallCounts = windowCallUntilReceipts
3702
+ .map((result) => typeof result.call_count === "number" && Number.isFinite(result.call_count) ? result.call_count : undefined)
3703
+ .filter((value) => value !== undefined);
3704
+ const sampledWindowCallUntilReceipts = sampleProfileSetupSummaryItems(windowCallUntilReceipts, 8);
3685
3705
  const clickedItems = results
3686
3706
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
3687
3707
  .map((result) => {
@@ -3724,6 +3744,10 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3724
3744
  clicked_truncated: clickedItems.length > clicked.length,
3725
3745
  click_count_action_total: clickCountValues.length,
3726
3746
  click_count_value_total: clickCountValues.reduce((sum, value) => sum + value, 0),
3747
+ window_call_until_total: windowCallUntilReceipts.length,
3748
+ window_call_until_call_total: windowCallUntilCallCounts.reduce((sum, value) => sum + value, 0),
3749
+ window_call_until_truncated: windowCallUntilReceipts.length > sampledWindowCallUntilReceipts.length,
3750
+ window_call_until: sampledWindowCallUntilReceipts,
3727
3751
  clicked,
3728
3752
  text_samples: textSamples,
3729
3753
  failed: failed.map((result) => ({
package/dist/cli.cjs CHANGED
@@ -10574,6 +10574,21 @@ function profileSetupScreenshotLabels(results) {
10574
10574
  .map((result) => result.screenshot_label)
10575
10575
  .filter(Boolean);
10576
10576
  }
10577
+ function profileSetupWindowCallUntilReceipts(results) {
10578
+ return (results || [])
10579
+ .filter((result) => result && profileSetupResultAction(result) === "window_call_until")
10580
+ .map((result) => ({
10581
+ ordinal: result.ordinal ?? null,
10582
+ ok: result.ok !== false,
10583
+ path: result.path ?? null,
10584
+ until_path: result.until_path ?? null,
10585
+ until_value: result.until_value ?? null,
10586
+ until_expected_value: result.until_expected_value ?? null,
10587
+ call_count: result.call_count ?? null,
10588
+ max_calls: result.max_calls ?? null,
10589
+ reason: result.reason || result.error || null,
10590
+ }));
10591
+ }
10577
10592
  function sampleProfileSetupSummaryItems(items, limit) {
10578
10593
  if ((items || []).length <= limit) return items || [];
10579
10594
  const firstCount = Math.floor(limit / 2);
@@ -10603,6 +10618,11 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
10603
10618
  const clickCountValues = successfulClicks
10604
10619
  .map((result) => typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : undefined)
10605
10620
  .filter((value) => value !== undefined);
10621
+ const windowCallUntilReceipts = profileSetupWindowCallUntilReceipts(results);
10622
+ const windowCallUntilCallCounts = windowCallUntilReceipts
10623
+ .map((result) => typeof result.call_count === "number" && Number.isFinite(result.call_count) ? result.call_count : undefined)
10624
+ .filter((value) => value !== undefined);
10625
+ const sampledWindowCallUntilReceipts = sampleProfileSetupSummaryItems(windowCallUntilReceipts, 8);
10606
10626
  const clickedItems = results
10607
10627
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
10608
10628
  .map((result) => {
@@ -10645,6 +10665,10 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
10645
10665
  clicked_truncated: clickedItems.length > clicked.length,
10646
10666
  click_count_action_total: clickCountValues.length,
10647
10667
  click_count_value_total: clickCountValues.reduce((sum, value) => sum + value, 0),
10668
+ window_call_until_total: windowCallUntilReceipts.length,
10669
+ window_call_until_call_total: windowCallUntilCallCounts.reduce((sum, value) => sum + value, 0),
10670
+ window_call_until_truncated: windowCallUntilReceipts.length > sampledWindowCallUntilReceipts.length,
10671
+ window_call_until: sampledWindowCallUntilReceipts,
10648
10672
  clicked,
10649
10673
  text_samples: textSamples,
10650
10674
  failed: failed.map((result) => ({
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  profileStatusExitCode,
13
13
  resolveRiddleProofProfileTargetUrl,
14
14
  resolveRiddleProofProfileTimeoutSec
15
- } from "./chunk-TALHK3NV.js";
15
+ } from "./chunk-4IAUK6C6.js";
16
16
  import {
17
17
  createRiddleApiClient,
18
18
  parseRiddleViewport
package/dist/index.cjs CHANGED
@@ -12386,6 +12386,21 @@ function profileSetupScreenshotLabels(results) {
12386
12386
  .map((result) => result.screenshot_label)
12387
12387
  .filter(Boolean);
12388
12388
  }
12389
+ function profileSetupWindowCallUntilReceipts(results) {
12390
+ return (results || [])
12391
+ .filter((result) => result && profileSetupResultAction(result) === "window_call_until")
12392
+ .map((result) => ({
12393
+ ordinal: result.ordinal ?? null,
12394
+ ok: result.ok !== false,
12395
+ path: result.path ?? null,
12396
+ until_path: result.until_path ?? null,
12397
+ until_value: result.until_value ?? null,
12398
+ until_expected_value: result.until_expected_value ?? null,
12399
+ call_count: result.call_count ?? null,
12400
+ max_calls: result.max_calls ?? null,
12401
+ reason: result.reason || result.error || null,
12402
+ }));
12403
+ }
12389
12404
  function sampleProfileSetupSummaryItems(items, limit) {
12390
12405
  if ((items || []).length <= limit) return items || [];
12391
12406
  const firstCount = Math.floor(limit / 2);
@@ -12415,6 +12430,11 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
12415
12430
  const clickCountValues = successfulClicks
12416
12431
  .map((result) => typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : undefined)
12417
12432
  .filter((value) => value !== undefined);
12433
+ const windowCallUntilReceipts = profileSetupWindowCallUntilReceipts(results);
12434
+ const windowCallUntilCallCounts = windowCallUntilReceipts
12435
+ .map((result) => typeof result.call_count === "number" && Number.isFinite(result.call_count) ? result.call_count : undefined)
12436
+ .filter((value) => value !== undefined);
12437
+ const sampledWindowCallUntilReceipts = sampleProfileSetupSummaryItems(windowCallUntilReceipts, 8);
12418
12438
  const clickedItems = results
12419
12439
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
12420
12440
  .map((result) => {
@@ -12457,6 +12477,10 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
12457
12477
  clicked_truncated: clickedItems.length > clicked.length,
12458
12478
  click_count_action_total: clickCountValues.length,
12459
12479
  click_count_value_total: clickCountValues.reduce((sum, value) => sum + value, 0),
12480
+ window_call_until_total: windowCallUntilReceipts.length,
12481
+ window_call_until_call_total: windowCallUntilCallCounts.reduce((sum, value) => sum + value, 0),
12482
+ window_call_until_truncated: windowCallUntilReceipts.length > sampledWindowCallUntilReceipts.length,
12483
+ window_call_until: sampledWindowCallUntilReceipts,
12460
12484
  clicked,
12461
12485
  text_samples: textSamples,
12462
12486
  failed: failed.map((result) => ({
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  resolveRiddleProofProfileTimeoutSec,
63
63
  slugifyRiddleProofProfileName,
64
64
  summarizeRiddleProofProfileResult
65
- } from "./chunk-TALHK3NV.js";
65
+ } from "./chunk-4IAUK6C6.js";
66
66
  import {
67
67
  DEFAULT_RIDDLE_API_BASE_URL,
68
68
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -3700,6 +3700,21 @@ function profileSetupScreenshotLabels(results) {
3700
3700
  .map((result) => result.screenshot_label)
3701
3701
  .filter(Boolean);
3702
3702
  }
3703
+ function profileSetupWindowCallUntilReceipts(results) {
3704
+ return (results || [])
3705
+ .filter((result) => result && profileSetupResultAction(result) === "window_call_until")
3706
+ .map((result) => ({
3707
+ ordinal: result.ordinal ?? null,
3708
+ ok: result.ok !== false,
3709
+ path: result.path ?? null,
3710
+ until_path: result.until_path ?? null,
3711
+ until_value: result.until_value ?? null,
3712
+ until_expected_value: result.until_expected_value ?? null,
3713
+ call_count: result.call_count ?? null,
3714
+ max_calls: result.max_calls ?? null,
3715
+ reason: result.reason || result.error || null,
3716
+ }));
3717
+ }
3703
3718
  function sampleProfileSetupSummaryItems(items, limit) {
3704
3719
  if ((items || []).length <= limit) return items || [];
3705
3720
  const firstCount = Math.floor(limit / 2);
@@ -3729,6 +3744,11 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3729
3744
  const clickCountValues = successfulClicks
3730
3745
  .map((result) => typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : undefined)
3731
3746
  .filter((value) => value !== undefined);
3747
+ const windowCallUntilReceipts = profileSetupWindowCallUntilReceipts(results);
3748
+ const windowCallUntilCallCounts = windowCallUntilReceipts
3749
+ .map((result) => typeof result.call_count === "number" && Number.isFinite(result.call_count) ? result.call_count : undefined)
3750
+ .filter((value) => value !== undefined);
3751
+ const sampledWindowCallUntilReceipts = sampleProfileSetupSummaryItems(windowCallUntilReceipts, 8);
3732
3752
  const clickedItems = results
3733
3753
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
3734
3754
  .map((result) => {
@@ -3771,6 +3791,10 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3771
3791
  clicked_truncated: clickedItems.length > clicked.length,
3772
3792
  click_count_action_total: clickCountValues.length,
3773
3793
  click_count_value_total: clickCountValues.reduce((sum, value) => sum + value, 0),
3794
+ window_call_until_total: windowCallUntilReceipts.length,
3795
+ window_call_until_call_total: windowCallUntilCallCounts.reduce((sum, value) => sum + value, 0),
3796
+ window_call_until_truncated: windowCallUntilReceipts.length > sampledWindowCallUntilReceipts.length,
3797
+ window_call_until: sampledWindowCallUntilReceipts,
3774
3798
  clicked,
3775
3799
  text_samples: textSamples,
3776
3800
  failed: failed.map((result) => ({
package/dist/profile.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  resolveRiddleProofProfileTimeoutSec,
24
24
  slugifyRiddleProofProfileName,
25
25
  summarizeRiddleProofProfileResult
26
- } from "./chunk-TALHK3NV.js";
26
+ } from "./chunk-4IAUK6C6.js";
27
27
  export {
28
28
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
29
29
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.134",
3
+ "version": "0.7.135",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",