@riddledc/riddle-proof 0.7.148 → 0.7.149

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.
@@ -497,6 +497,22 @@ function profileSetupWindowEvalReceipts(results) {
497
497
  return receipt;
498
498
  });
499
499
  }
500
+ function profileSetupRangeValueReceipts(results) {
501
+ return results.filter((result) => profileSetupResultAction(result) === "set_range_value").map((result) => ({
502
+ ordinal: result.ordinal ?? null,
503
+ ok: result.ok !== false,
504
+ selector: result.selector ?? null,
505
+ frame_selector: result.frame_selector ?? null,
506
+ requested_value: result.requested_value ?? null,
507
+ actual_value: result.actual_value ?? null,
508
+ before_value: result.before_value ?? null,
509
+ value_as_number: result.value_as_number ?? null,
510
+ min: result.min ?? null,
511
+ max: result.max ?? null,
512
+ step: result.step ?? null,
513
+ reason: result.reason ?? result.error ?? null
514
+ }));
515
+ }
500
516
  function sampleProfileSetupSummaryItems(items, limit) {
501
517
  if (items.length <= limit) return items;
502
518
  const firstCount = Math.floor(limit / 2);
@@ -539,6 +555,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
539
555
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
540
556
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
541
557
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
558
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
559
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
542
560
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
543
561
  const clickCount = typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : void 0;
544
562
  return {
@@ -587,6 +605,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
587
605
  window_eval_captured_total: windowEvalCapturedTotal,
588
606
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
589
607
  window_eval: sampledWindowEvalReceipts,
608
+ set_range_value_total: rangeValueReceipts.length,
609
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
610
+ set_range_value: sampledRangeValueReceipts,
590
611
  clicked,
591
612
  text_samples,
592
613
  failed: failed.map((result) => ({
@@ -3896,6 +3917,24 @@ function profileSetupWindowEvalReceipts(results) {
3896
3917
  return receipt;
3897
3918
  });
3898
3919
  }
3920
+ function profileSetupRangeValueReceipts(results) {
3921
+ return (results || [])
3922
+ .filter((result) => result && profileSetupResultAction(result) === "set_range_value")
3923
+ .map((result) => ({
3924
+ ordinal: result.ordinal ?? null,
3925
+ ok: result.ok !== false,
3926
+ selector: result.selector ?? null,
3927
+ frame_selector: result.frame_selector ?? null,
3928
+ requested_value: result.requested_value ?? null,
3929
+ actual_value: result.actual_value ?? null,
3930
+ before_value: result.before_value ?? null,
3931
+ value_as_number: result.value_as_number ?? null,
3932
+ min: result.min ?? null,
3933
+ max: result.max ?? null,
3934
+ step: result.step ?? null,
3935
+ reason: result.reason || result.error || null,
3936
+ }));
3937
+ }
3899
3938
  function sampleProfileSetupSummaryItems(items, limit) {
3900
3939
  if ((items || []).length <= limit) return items || [];
3901
3940
  const firstCount = Math.floor(limit / 2);
@@ -3952,6 +3991,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3952
3991
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
3953
3992
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
3954
3993
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
3994
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
3995
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
3955
3996
  const clickedItems = results
3956
3997
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
3957
3998
  .map((result) => {
@@ -4010,6 +4051,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4010
4051
  window_eval_captured_total: windowEvalCapturedTotal,
4011
4052
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
4012
4053
  window_eval: sampledWindowEvalReceipts,
4054
+ set_range_value_total: rangeValueReceipts.length,
4055
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
4056
+ set_range_value: sampledRangeValueReceipts,
4013
4057
  clicked,
4014
4058
  text_samples: textSamples,
4015
4059
  failed: failed.map((result) => ({
package/dist/cli.cjs CHANGED
@@ -7446,6 +7446,22 @@ function profileSetupWindowEvalReceipts(results) {
7446
7446
  return receipt;
7447
7447
  });
7448
7448
  }
7449
+ function profileSetupRangeValueReceipts(results) {
7450
+ return results.filter((result) => profileSetupResultAction(result) === "set_range_value").map((result) => ({
7451
+ ordinal: result.ordinal ?? null,
7452
+ ok: result.ok !== false,
7453
+ selector: result.selector ?? null,
7454
+ frame_selector: result.frame_selector ?? null,
7455
+ requested_value: result.requested_value ?? null,
7456
+ actual_value: result.actual_value ?? null,
7457
+ before_value: result.before_value ?? null,
7458
+ value_as_number: result.value_as_number ?? null,
7459
+ min: result.min ?? null,
7460
+ max: result.max ?? null,
7461
+ step: result.step ?? null,
7462
+ reason: result.reason ?? result.error ?? null
7463
+ }));
7464
+ }
7449
7465
  function sampleProfileSetupSummaryItems(items, limit) {
7450
7466
  if (items.length <= limit) return items;
7451
7467
  const firstCount = Math.floor(limit / 2);
@@ -7488,6 +7504,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
7488
7504
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
7489
7505
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
7490
7506
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
7507
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
7508
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
7491
7509
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
7492
7510
  const clickCount = typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : void 0;
7493
7511
  return {
@@ -7536,6 +7554,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
7536
7554
  window_eval_captured_total: windowEvalCapturedTotal,
7537
7555
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
7538
7556
  window_eval: sampledWindowEvalReceipts,
7557
+ set_range_value_total: rangeValueReceipts.length,
7558
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
7559
+ set_range_value: sampledRangeValueReceipts,
7539
7560
  clicked,
7540
7561
  text_samples,
7541
7562
  failed: failed.map((result) => ({
@@ -10829,6 +10850,24 @@ function profileSetupWindowEvalReceipts(results) {
10829
10850
  return receipt;
10830
10851
  });
10831
10852
  }
10853
+ function profileSetupRangeValueReceipts(results) {
10854
+ return (results || [])
10855
+ .filter((result) => result && profileSetupResultAction(result) === "set_range_value")
10856
+ .map((result) => ({
10857
+ ordinal: result.ordinal ?? null,
10858
+ ok: result.ok !== false,
10859
+ selector: result.selector ?? null,
10860
+ frame_selector: result.frame_selector ?? null,
10861
+ requested_value: result.requested_value ?? null,
10862
+ actual_value: result.actual_value ?? null,
10863
+ before_value: result.before_value ?? null,
10864
+ value_as_number: result.value_as_number ?? null,
10865
+ min: result.min ?? null,
10866
+ max: result.max ?? null,
10867
+ step: result.step ?? null,
10868
+ reason: result.reason || result.error || null,
10869
+ }));
10870
+ }
10832
10871
  function sampleProfileSetupSummaryItems(items, limit) {
10833
10872
  if ((items || []).length <= limit) return items || [];
10834
10873
  const firstCount = Math.floor(limit / 2);
@@ -10885,6 +10924,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
10885
10924
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
10886
10925
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
10887
10926
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
10927
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
10928
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
10888
10929
  const clickedItems = results
10889
10930
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
10890
10931
  .map((result) => {
@@ -10943,6 +10984,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
10943
10984
  window_eval_captured_total: windowEvalCapturedTotal,
10944
10985
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
10945
10986
  window_eval: sampledWindowEvalReceipts,
10987
+ set_range_value_total: rangeValueReceipts.length,
10988
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
10989
+ set_range_value: sampledRangeValueReceipts,
10946
10990
  clicked,
10947
10991
  text_samples: textSamples,
10948
10992
  failed: failed.map((result) => ({
@@ -15093,6 +15137,7 @@ function profileSetupSummaryMarkdown(result) {
15093
15137
  const windowEvalCapturedTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_eval_captured_total) || 0), 0);
15094
15138
  const windowCallUntilTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_call_until_total) || 0), 0);
15095
15139
  const windowCallUntilCallTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_call_until_call_total) || 0), 0);
15140
+ const rangeValueTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.set_range_value_total) || 0), 0);
15096
15141
  const failedTotal = viewports.reduce((sum, viewport) => sum + (Array.isArray(viewport.failed) ? viewport.failed.length : 0), 0);
15097
15142
  const lines = [
15098
15143
  `- setup actions: ${declaredActions === void 0 ? "unknown" : declaredActions} declared, ${totalResults} recorded result(s) across ${viewports.length} viewport(s)`,
@@ -15112,6 +15157,9 @@ function profileSetupSummaryMarkdown(result) {
15112
15157
  if (windowCallUntilTotal) {
15113
15158
  lines.push(`- window_call_until: ${windowCallUntilTotal} action(s), call_count total ${windowCallUntilCallTotal}`);
15114
15159
  }
15160
+ if (rangeValueTotal) {
15161
+ lines.push(`- set_range_value: ${rangeValueTotal} action(s)`);
15162
+ }
15115
15163
  for (const viewport of viewports.slice(0, 8)) {
15116
15164
  const name = cliString(viewport.name) || "viewport";
15117
15165
  const ok = viewport.ok === false ? "failed" : "ok";
@@ -15127,9 +15175,29 @@ function profileSetupSummaryMarkdown(result) {
15127
15175
  const windowEvalCaptured = cliFiniteNumber(viewport.window_eval_captured_total) || 0;
15128
15176
  const windowCallUntilActions = cliFiniteNumber(viewport.window_call_until_total) || 0;
15129
15177
  const windowCallUntilCalls = cliFiniteNumber(viewport.window_call_until_call_total) || 0;
15178
+ const rangeValueActions = cliFiniteNumber(viewport.set_range_value_total) || 0;
15130
15179
  const observedPath = cliString(viewport.observed_path);
15131
- lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
15180
+ lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
15181
+ }
15182
+ const rangeValueDetails = viewports.flatMap((viewport) => {
15183
+ const name = cliString(viewport.name) || "viewport";
15184
+ const receipts = Array.isArray(viewport.set_range_value) ? viewport.set_range_value.map(cliRecord).filter((item) => Boolean(item)) : [];
15185
+ return receipts.map((receipt) => ({ name, receipt }));
15186
+ });
15187
+ for (const { name, receipt } of rangeValueDetails.slice(0, 12)) {
15188
+ const selector = cliString(receipt.selector) || "input[type=range]";
15189
+ const requested = cliValueLabel(receipt.requested_value);
15190
+ const actual = cliValueLabel(receipt.actual_value);
15191
+ const before = cliValueLabel(receipt.before_value);
15192
+ const valueAsNumber = cliFiniteNumber(receipt.value_as_number);
15193
+ const min = cliValueLabel(receipt.min);
15194
+ const max = cliValueLabel(receipt.max);
15195
+ const step = cliValueLabel(receipt.step);
15196
+ const ok = receipt.ok === false ? "failed" : "ok";
15197
+ const reason = cliString(receipt.reason);
15198
+ lines.push(`- ${name} set_range_value: ${ok}, ${markdownInlineCode(selector)}${requested === void 0 ? "" : ` requested ${markdownInlineCode(requested, 80)}`}${actual === void 0 ? "" : ` -> ${markdownInlineCode(actual, 80)}`}${before === void 0 ? "" : `, before ${markdownInlineCode(before, 80)}`}${valueAsNumber === void 0 ? "" : `, number ${valueAsNumber}`}${min === void 0 && max === void 0 ? "" : `, range ${min === void 0 ? "?" : markdownInlineCode(min, 40)}..${max === void 0 ? "?" : markdownInlineCode(max, 40)}`}${step === void 0 ? "" : ` step ${markdownInlineCode(step, 40)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
15132
15199
  }
15200
+ if (rangeValueDetails.length > 12) lines.push(`- ${rangeValueDetails.length - 12} additional set_range_value receipt(s) omitted.`);
15133
15201
  const windowCallDetails = viewports.flatMap((viewport) => {
15134
15202
  const name = cliString(viewport.name) || "viewport";
15135
15203
  const receipts = Array.isArray(viewport.window_call) ? viewport.window_call.map(cliRecord).filter((item) => Boolean(item)) : [];
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  profileStatusExitCode,
14
14
  resolveRiddleProofProfileTargetUrl,
15
15
  resolveRiddleProofProfileTimeoutSec
16
- } from "./chunk-WAJA6TJV.js";
16
+ } from "./chunk-QXQCG3WB.js";
17
17
  import {
18
18
  createRiddleApiClient,
19
19
  parseRiddleViewport
@@ -695,6 +695,7 @@ function profileSetupSummaryMarkdown(result) {
695
695
  const windowEvalCapturedTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_eval_captured_total) || 0), 0);
696
696
  const windowCallUntilTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_call_until_total) || 0), 0);
697
697
  const windowCallUntilCallTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.window_call_until_call_total) || 0), 0);
698
+ const rangeValueTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.set_range_value_total) || 0), 0);
698
699
  const failedTotal = viewports.reduce((sum, viewport) => sum + (Array.isArray(viewport.failed) ? viewport.failed.length : 0), 0);
699
700
  const lines = [
700
701
  `- setup actions: ${declaredActions === void 0 ? "unknown" : declaredActions} declared, ${totalResults} recorded result(s) across ${viewports.length} viewport(s)`,
@@ -714,6 +715,9 @@ function profileSetupSummaryMarkdown(result) {
714
715
  if (windowCallUntilTotal) {
715
716
  lines.push(`- window_call_until: ${windowCallUntilTotal} action(s), call_count total ${windowCallUntilCallTotal}`);
716
717
  }
718
+ if (rangeValueTotal) {
719
+ lines.push(`- set_range_value: ${rangeValueTotal} action(s)`);
720
+ }
717
721
  for (const viewport of viewports.slice(0, 8)) {
718
722
  const name = cliString(viewport.name) || "viewport";
719
723
  const ok = viewport.ok === false ? "failed" : "ok";
@@ -729,9 +733,29 @@ function profileSetupSummaryMarkdown(result) {
729
733
  const windowEvalCaptured = cliFiniteNumber(viewport.window_eval_captured_total) || 0;
730
734
  const windowCallUntilActions = cliFiniteNumber(viewport.window_call_until_total) || 0;
731
735
  const windowCallUntilCalls = cliFiniteNumber(viewport.window_call_until_call_total) || 0;
736
+ const rangeValueActions = cliFiniteNumber(viewport.set_range_value_total) || 0;
732
737
  const observedPath = cliString(viewport.observed_path);
733
- lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
738
+ lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${windowCallActions ? `, ${windowCallActions} window_call action(s), ${windowCallStored} stored return(s), ${windowCallCaptured} captured return(s)` : ""}${windowEvalActions ? `, ${windowEvalActions} window_eval action(s), ${windowEvalStored} stored return(s), ${windowEvalCaptured} captured return(s)` : ""}${windowCallUntilActions ? `, ${windowCallUntilActions} window_call_until action(s), ${windowCallUntilCalls} call(s)` : ""}${observedPath ? `, path ${observedPath}` : ""}`);
739
+ }
740
+ const rangeValueDetails = viewports.flatMap((viewport) => {
741
+ const name = cliString(viewport.name) || "viewport";
742
+ const receipts = Array.isArray(viewport.set_range_value) ? viewport.set_range_value.map(cliRecord).filter((item) => Boolean(item)) : [];
743
+ return receipts.map((receipt) => ({ name, receipt }));
744
+ });
745
+ for (const { name, receipt } of rangeValueDetails.slice(0, 12)) {
746
+ const selector = cliString(receipt.selector) || "input[type=range]";
747
+ const requested = cliValueLabel(receipt.requested_value);
748
+ const actual = cliValueLabel(receipt.actual_value);
749
+ const before = cliValueLabel(receipt.before_value);
750
+ const valueAsNumber = cliFiniteNumber(receipt.value_as_number);
751
+ const min = cliValueLabel(receipt.min);
752
+ const max = cliValueLabel(receipt.max);
753
+ const step = cliValueLabel(receipt.step);
754
+ const ok = receipt.ok === false ? "failed" : "ok";
755
+ const reason = cliString(receipt.reason);
756
+ lines.push(`- ${name} set_range_value: ${ok}, ${markdownInlineCode(selector)}${requested === void 0 ? "" : ` requested ${markdownInlineCode(requested, 80)}`}${actual === void 0 ? "" : ` -> ${markdownInlineCode(actual, 80)}`}${before === void 0 ? "" : `, before ${markdownInlineCode(before, 80)}`}${valueAsNumber === void 0 ? "" : `, number ${valueAsNumber}`}${min === void 0 && max === void 0 ? "" : `, range ${min === void 0 ? "?" : markdownInlineCode(min, 40)}..${max === void 0 ? "?" : markdownInlineCode(max, 40)}`}${step === void 0 ? "" : ` step ${markdownInlineCode(step, 40)}`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
734
757
  }
758
+ if (rangeValueDetails.length > 12) lines.push(`- ${rangeValueDetails.length - 12} additional set_range_value receipt(s) omitted.`);
735
759
  const windowCallDetails = viewports.flatMap((viewport) => {
736
760
  const name = cliString(viewport.name) || "viewport";
737
761
  const receipts = Array.isArray(viewport.window_call) ? viewport.window_call.map(cliRecord).filter((item) => Boolean(item)) : [];
package/dist/index.cjs CHANGED
@@ -9230,6 +9230,22 @@ function profileSetupWindowEvalReceipts(results) {
9230
9230
  return receipt;
9231
9231
  });
9232
9232
  }
9233
+ function profileSetupRangeValueReceipts(results) {
9234
+ return results.filter((result) => profileSetupResultAction(result) === "set_range_value").map((result) => ({
9235
+ ordinal: result.ordinal ?? null,
9236
+ ok: result.ok !== false,
9237
+ selector: result.selector ?? null,
9238
+ frame_selector: result.frame_selector ?? null,
9239
+ requested_value: result.requested_value ?? null,
9240
+ actual_value: result.actual_value ?? null,
9241
+ before_value: result.before_value ?? null,
9242
+ value_as_number: result.value_as_number ?? null,
9243
+ min: result.min ?? null,
9244
+ max: result.max ?? null,
9245
+ step: result.step ?? null,
9246
+ reason: result.reason ?? result.error ?? null
9247
+ }));
9248
+ }
9233
9249
  function sampleProfileSetupSummaryItems(items, limit) {
9234
9250
  if (items.length <= limit) return items;
9235
9251
  const firstCount = Math.floor(limit / 2);
@@ -9272,6 +9288,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
9272
9288
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
9273
9289
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
9274
9290
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
9291
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
9292
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
9275
9293
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
9276
9294
  const clickCount = typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : void 0;
9277
9295
  return {
@@ -9320,6 +9338,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
9320
9338
  window_eval_captured_total: windowEvalCapturedTotal,
9321
9339
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
9322
9340
  window_eval: sampledWindowEvalReceipts,
9341
+ set_range_value_total: rangeValueReceipts.length,
9342
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
9343
+ set_range_value: sampledRangeValueReceipts,
9323
9344
  clicked,
9324
9345
  text_samples,
9325
9346
  failed: failed.map((result) => ({
@@ -12629,6 +12650,24 @@ function profileSetupWindowEvalReceipts(results) {
12629
12650
  return receipt;
12630
12651
  });
12631
12652
  }
12653
+ function profileSetupRangeValueReceipts(results) {
12654
+ return (results || [])
12655
+ .filter((result) => result && profileSetupResultAction(result) === "set_range_value")
12656
+ .map((result) => ({
12657
+ ordinal: result.ordinal ?? null,
12658
+ ok: result.ok !== false,
12659
+ selector: result.selector ?? null,
12660
+ frame_selector: result.frame_selector ?? null,
12661
+ requested_value: result.requested_value ?? null,
12662
+ actual_value: result.actual_value ?? null,
12663
+ before_value: result.before_value ?? null,
12664
+ value_as_number: result.value_as_number ?? null,
12665
+ min: result.min ?? null,
12666
+ max: result.max ?? null,
12667
+ step: result.step ?? null,
12668
+ reason: result.reason || result.error || null,
12669
+ }));
12670
+ }
12632
12671
  function sampleProfileSetupSummaryItems(items, limit) {
12633
12672
  if ((items || []).length <= limit) return items || [];
12634
12673
  const firstCount = Math.floor(limit / 2);
@@ -12685,6 +12724,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
12685
12724
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
12686
12725
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
12687
12726
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
12727
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
12728
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
12688
12729
  const clickedItems = results
12689
12730
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
12690
12731
  .map((result) => {
@@ -12743,6 +12784,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
12743
12784
  window_eval_captured_total: windowEvalCapturedTotal,
12744
12785
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
12745
12786
  window_eval: sampledWindowEvalReceipts,
12787
+ set_range_value_total: rangeValueReceipts.length,
12788
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
12789
+ set_range_value: sampledRangeValueReceipts,
12746
12790
  clicked,
12747
12791
  text_samples: textSamples,
12748
12792
  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-WAJA6TJV.js";
65
+ } from "./chunk-QXQCG3WB.js";
66
66
  import {
67
67
  DEFAULT_RIDDLE_API_BASE_URL,
68
68
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -544,6 +544,22 @@ function profileSetupWindowEvalReceipts(results) {
544
544
  return receipt;
545
545
  });
546
546
  }
547
+ function profileSetupRangeValueReceipts(results) {
548
+ return results.filter((result) => profileSetupResultAction(result) === "set_range_value").map((result) => ({
549
+ ordinal: result.ordinal ?? null,
550
+ ok: result.ok !== false,
551
+ selector: result.selector ?? null,
552
+ frame_selector: result.frame_selector ?? null,
553
+ requested_value: result.requested_value ?? null,
554
+ actual_value: result.actual_value ?? null,
555
+ before_value: result.before_value ?? null,
556
+ value_as_number: result.value_as_number ?? null,
557
+ min: result.min ?? null,
558
+ max: result.max ?? null,
559
+ step: result.step ?? null,
560
+ reason: result.reason ?? result.error ?? null
561
+ }));
562
+ }
547
563
  function sampleProfileSetupSummaryItems(items, limit) {
548
564
  if (items.length <= limit) return items;
549
565
  const firstCount = Math.floor(limit / 2);
@@ -586,6 +602,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
586
602
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
587
603
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
588
604
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
605
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
606
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
589
607
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
590
608
  const clickCount = typeof result.click_count === "number" && Number.isFinite(result.click_count) && result.click_count > 1 ? result.click_count : void 0;
591
609
  return {
@@ -634,6 +652,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
634
652
  window_eval_captured_total: windowEvalCapturedTotal,
635
653
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
636
654
  window_eval: sampledWindowEvalReceipts,
655
+ set_range_value_total: rangeValueReceipts.length,
656
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
657
+ set_range_value: sampledRangeValueReceipts,
637
658
  clicked,
638
659
  text_samples,
639
660
  failed: failed.map((result) => ({
@@ -3943,6 +3964,24 @@ function profileSetupWindowEvalReceipts(results) {
3943
3964
  return receipt;
3944
3965
  });
3945
3966
  }
3967
+ function profileSetupRangeValueReceipts(results) {
3968
+ return (results || [])
3969
+ .filter((result) => result && profileSetupResultAction(result) === "set_range_value")
3970
+ .map((result) => ({
3971
+ ordinal: result.ordinal ?? null,
3972
+ ok: result.ok !== false,
3973
+ selector: result.selector ?? null,
3974
+ frame_selector: result.frame_selector ?? null,
3975
+ requested_value: result.requested_value ?? null,
3976
+ actual_value: result.actual_value ?? null,
3977
+ before_value: result.before_value ?? null,
3978
+ value_as_number: result.value_as_number ?? null,
3979
+ min: result.min ?? null,
3980
+ max: result.max ?? null,
3981
+ step: result.step ?? null,
3982
+ reason: result.reason || result.error || null,
3983
+ }));
3984
+ }
3946
3985
  function sampleProfileSetupSummaryItems(items, limit) {
3947
3986
  if ((items || []).length <= limit) return items || [];
3948
3987
  const firstCount = Math.floor(limit / 2);
@@ -3999,6 +4038,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
3999
4038
  const windowEvalStoredTotal = windowEvalReceipts.filter((result) => typeof result.return_stored_to === "string" && result.return_stored_to.trim()).length;
4000
4039
  const windowEvalCapturedTotal = windowEvalReceipts.filter((result) => result.return_captured === true).length;
4001
4040
  const sampledWindowEvalReceipts = sampleProfileSetupSummaryItems(windowEvalReceipts, 8);
4041
+ const rangeValueReceipts = profileSetupRangeValueReceipts(results);
4042
+ const sampledRangeValueReceipts = sampleProfileSetupSummaryItems(rangeValueReceipts, 8);
4002
4043
  const clickedItems = results
4003
4044
  .filter((result) => result && profileSetupResultAction(result) === "click" && result.ok !== false)
4004
4045
  .map((result) => {
@@ -4057,6 +4098,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4057
4098
  window_eval_captured_total: windowEvalCapturedTotal,
4058
4099
  window_eval_truncated: windowEvalReceipts.length > sampledWindowEvalReceipts.length,
4059
4100
  window_eval: sampledWindowEvalReceipts,
4101
+ set_range_value_total: rangeValueReceipts.length,
4102
+ set_range_value_truncated: rangeValueReceipts.length > sampledRangeValueReceipts.length,
4103
+ set_range_value: sampledRangeValueReceipts,
4060
4104
  clicked,
4061
4105
  text_samples: textSamples,
4062
4106
  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-WAJA6TJV.js";
26
+ } from "./chunk-QXQCG3WB.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.148",
3
+ "version": "0.7.149",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",