@riddledc/riddle-proof 0.7.182 → 0.7.183

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.
@@ -613,7 +613,7 @@ function profileSetupTapReceipts(results) {
613
613
  reason: result.reason ?? result.error ?? null
614
614
  }));
615
615
  }
616
- function profileSetupPressReceipts(results) {
616
+ function profileSetupKeyboardReceipts(results) {
617
617
  return results.filter((result) => ["press", "key_down", "key_up"].includes(profileSetupResultAction(result))).map((result) => ({
618
618
  action: profileSetupResultAction(result),
619
619
  ordinal: result.ordinal ?? null,
@@ -788,8 +788,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
788
788
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
789
789
  const tapReceipts = profileSetupTapReceipts(results);
790
790
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
791
- const pressReceipts = profileSetupPressReceipts(results);
792
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
791
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
792
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
793
793
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
794
794
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
795
795
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
@@ -857,9 +857,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
857
857
  tap_total: tapReceipts.length,
858
858
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
859
859
  tap: sampledTapReceipts,
860
- press_total: pressReceipts.length,
861
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
862
- press: sampledPressReceipts,
860
+ keyboard_total: keyboardReceipts.length,
861
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
862
+ keyboard: sampledKeyboardReceipts,
863
863
  canvas_signature_total: canvasSignatureReceipts.length,
864
864
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
865
865
  canvas_signature: sampledCanvasSignatureReceipts,
@@ -4497,7 +4497,7 @@ function profileSetupTapReceipts(results) {
4497
4497
  reason: result.reason || result.error || null,
4498
4498
  }));
4499
4499
  }
4500
- function profileSetupPressReceipts(results) {
4500
+ function profileSetupKeyboardReceipts(results) {
4501
4501
  return (results || [])
4502
4502
  .filter((result) => result && ["press", "key_down", "key_up"].includes(profileSetupResultAction(result)))
4503
4503
  .map((result) => ({
@@ -4699,8 +4699,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4699
4699
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
4700
4700
  const tapReceipts = profileSetupTapReceipts(results);
4701
4701
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
4702
- const pressReceipts = profileSetupPressReceipts(results);
4703
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
4702
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
4703
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
4704
4704
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
4705
4705
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
4706
4706
  const clickedItems = results
@@ -4778,9 +4778,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4778
4778
  tap_total: tapReceipts.length,
4779
4779
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
4780
4780
  tap: sampledTapReceipts,
4781
- press_total: pressReceipts.length,
4782
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
4783
- press: sampledPressReceipts,
4781
+ keyboard_total: keyboardReceipts.length,
4782
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
4783
+ keyboard: sampledKeyboardReceipts,
4784
4784
  canvas_signature_total: canvasSignatureReceipts.length,
4785
4785
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
4786
4786
  canvas_signature: sampledCanvasSignatureReceipts,
package/dist/cli.cjs CHANGED
@@ -7570,7 +7570,7 @@ function profileSetupTapReceipts(results) {
7570
7570
  reason: result.reason ?? result.error ?? null
7571
7571
  }));
7572
7572
  }
7573
- function profileSetupPressReceipts(results) {
7573
+ function profileSetupKeyboardReceipts(results) {
7574
7574
  return results.filter((result) => ["press", "key_down", "key_up"].includes(profileSetupResultAction(result))).map((result) => ({
7575
7575
  action: profileSetupResultAction(result),
7576
7576
  ordinal: result.ordinal ?? null,
@@ -7745,8 +7745,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
7745
7745
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
7746
7746
  const tapReceipts = profileSetupTapReceipts(results);
7747
7747
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
7748
- const pressReceipts = profileSetupPressReceipts(results);
7749
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
7748
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
7749
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
7750
7750
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
7751
7751
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
7752
7752
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
@@ -7814,9 +7814,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
7814
7814
  tap_total: tapReceipts.length,
7815
7815
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
7816
7816
  tap: sampledTapReceipts,
7817
- press_total: pressReceipts.length,
7818
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
7819
- press: sampledPressReceipts,
7817
+ keyboard_total: keyboardReceipts.length,
7818
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
7819
+ keyboard: sampledKeyboardReceipts,
7820
7820
  canvas_signature_total: canvasSignatureReceipts.length,
7821
7821
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
7822
7822
  canvas_signature: sampledCanvasSignatureReceipts,
@@ -11438,7 +11438,7 @@ function profileSetupTapReceipts(results) {
11438
11438
  reason: result.reason || result.error || null,
11439
11439
  }));
11440
11440
  }
11441
- function profileSetupPressReceipts(results) {
11441
+ function profileSetupKeyboardReceipts(results) {
11442
11442
  return (results || [])
11443
11443
  .filter((result) => result && ["press", "key_down", "key_up"].includes(profileSetupResultAction(result)))
11444
11444
  .map((result) => ({
@@ -11640,8 +11640,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
11640
11640
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
11641
11641
  const tapReceipts = profileSetupTapReceipts(results);
11642
11642
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
11643
- const pressReceipts = profileSetupPressReceipts(results);
11644
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
11643
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
11644
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
11645
11645
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
11646
11646
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
11647
11647
  const clickedItems = results
@@ -11719,9 +11719,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
11719
11719
  tap_total: tapReceipts.length,
11720
11720
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
11721
11721
  tap: sampledTapReceipts,
11722
- press_total: pressReceipts.length,
11723
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
11724
- press: sampledPressReceipts,
11722
+ keyboard_total: keyboardReceipts.length,
11723
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
11724
+ keyboard: sampledKeyboardReceipts,
11725
11725
  canvas_signature_total: canvasSignatureReceipts.length,
11726
11726
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
11727
11727
  canvas_signature: sampledCanvasSignatureReceipts,
@@ -16694,7 +16694,10 @@ function profileSetupSummaryMarkdown(result) {
16694
16694
  const rangeValueTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.set_range_value_total) || 0), 0);
16695
16695
  const dragTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.drag_total) || 0), 0);
16696
16696
  const tapTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.tap_total) || 0), 0);
16697
- const pressTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.press_total) || 0), 0);
16697
+ const keyboardTotal = viewports.reduce((sum, viewport) => {
16698
+ const total = cliFiniteNumber(viewport.keyboard_total);
16699
+ return sum + (total === void 0 ? cliFiniteNumber(viewport.press_total) || 0 : total);
16700
+ }, 0);
16698
16701
  const canvasSignatureTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.canvas_signature_total) || 0), 0);
16699
16702
  const failedTotal = viewports.reduce((sum, viewport) => sum + (Array.isArray(viewport.failed) ? viewport.failed.length : 0), 0);
16700
16703
  const lines = [
@@ -16730,8 +16733,8 @@ function profileSetupSummaryMarkdown(result) {
16730
16733
  if (tapTotal) {
16731
16734
  lines.push(`- tap: ${tapTotal} action(s)`);
16732
16735
  }
16733
- if (pressTotal) {
16734
- lines.push(`- press: ${pressTotal} action(s)`);
16736
+ if (keyboardTotal) {
16737
+ lines.push(`- keyboard: ${keyboardTotal} action(s)`);
16735
16738
  }
16736
16739
  if (canvasSignatureTotal) {
16737
16740
  lines.push(`- canvas_signature: ${canvasSignatureTotal} action(s)`);
@@ -16757,10 +16760,10 @@ function profileSetupSummaryMarkdown(result) {
16757
16760
  const rangeValueActions = cliFiniteNumber(viewport.set_range_value_total) || 0;
16758
16761
  const dragActions = cliFiniteNumber(viewport.drag_total) || 0;
16759
16762
  const tapActions = cliFiniteNumber(viewport.tap_total) || 0;
16760
- const pressActions = cliFiniteNumber(viewport.press_total) || 0;
16763
+ const keyboardActions = cliFiniteNumber(viewport.keyboard_total) ?? cliFiniteNumber(viewport.press_total) ?? 0;
16761
16764
  const canvasSignatureActions = cliFiniteNumber(viewport.canvas_signature_total) || 0;
16762
16765
  const observedPath = cliString(viewport.observed_path);
16763
- lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickSequenceCount ? `, ${clickSequenceCount} click sequence(s)` : ""}${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${dragActions ? `, ${dragActions} drag action(s)` : ""}${tapActions ? `, ${tapActions} tap action(s)` : ""}${pressActions ? `, ${pressActions} press action(s)` : ""}${canvasSignatureActions ? `, ${canvasSignatureActions} canvas_signature action(s)` : ""}${deterministicRuntimeActions ? `, ${deterministicRuntimeActions} deterministic_runtime 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}` : ""}`);
16766
+ lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickSequenceCount ? `, ${clickSequenceCount} click sequence(s)` : ""}${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${dragActions ? `, ${dragActions} drag action(s)` : ""}${tapActions ? `, ${tapActions} tap action(s)` : ""}${keyboardActions ? `, ${keyboardActions} keyboard action(s)` : ""}${canvasSignatureActions ? `, ${canvasSignatureActions} canvas_signature action(s)` : ""}${deterministicRuntimeActions ? `, ${deterministicRuntimeActions} deterministic_runtime 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}` : ""}`);
16764
16767
  }
16765
16768
  const clickSequenceGroups = viewports.map((viewport) => {
16766
16769
  const name = cliString(viewport.name) || "viewport";
@@ -16827,13 +16830,14 @@ function profileSetupSummaryMarkdown(result) {
16827
16830
  lines.push(`- ${name} tap: ${ok}, ${markdownInlineCode(selector)}${pointerType ? ` ${markdownInlineCode(pointerType)}` : ""}${inputDispatch ? ` via ${markdownInlineCode(inputDispatch)}` : ""}${coordinateText}${durationMs === void 0 ? "" : `, duration ${durationMs}ms`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
16828
16831
  }
16829
16832
  if (tapDetails.length > sampledTapDetails.length) lines.push(`- ${tapDetails.length - sampledTapDetails.length} additional tap receipt(s) omitted.`);
16830
- const pressGroups = viewports.map((viewport) => {
16833
+ const keyboardGroups = viewports.map((viewport) => {
16831
16834
  const name = cliString(viewport.name) || "viewport";
16832
- const receipts = Array.isArray(viewport.press) ? viewport.press.map(cliRecord).filter((item) => Boolean(item)) : [];
16835
+ const rawReceipts = Array.isArray(viewport.keyboard) ? viewport.keyboard : viewport.press;
16836
+ const receipts = Array.isArray(rawReceipts) ? rawReceipts.map(cliRecord).filter((item) => Boolean(item)) : [];
16833
16837
  return receipts.map((receipt) => ({ name, receipt }));
16834
16838
  });
16835
- const pressDetails = pressGroups.flat();
16836
- for (const group of pressGroups.slice(0, 8)) {
16839
+ const keyboardDetails = keyboardGroups.flat();
16840
+ for (const group of keyboardGroups.slice(0, 8)) {
16837
16841
  if (!group.length) continue;
16838
16842
  const name = group[0].name;
16839
16843
  const keys = group.map(({ receipt }) => cliString(receipt.key) || "key").filter(Boolean);
@@ -16844,10 +16848,10 @@ function profileSetupSummaryMarkdown(result) {
16844
16848
  const omittedOrdinalCount = Math.max(0, ordinals.length - visibleOrdinals.length);
16845
16849
  const keyText = visibleKeys.join(",");
16846
16850
  const ordinalText = visibleOrdinals.join(",");
16847
- lines.push(`- ${name} press_sequence: keys ${markdownInlineCode(keyText, 200)}${omittedKeyCount ? ` (+${omittedKeyCount} omitted)` : ""}${ordinalText ? `, ordinals ${markdownInlineCode(ordinalText, 120)}${omittedOrdinalCount ? ` (+${omittedOrdinalCount} omitted)` : ""}` : ""}`);
16851
+ lines.push(`- ${name} keyboard_sequence: keys ${markdownInlineCode(keyText, 200)}${omittedKeyCount ? ` (+${omittedKeyCount} omitted)` : ""}${ordinalText ? `, ordinals ${markdownInlineCode(ordinalText, 120)}${omittedOrdinalCount ? ` (+${omittedOrdinalCount} omitted)` : ""}` : ""}`);
16848
16852
  }
16849
- const sampledPressDetails = balancedSetupReceiptDetails(pressGroups, 12);
16850
- for (const { name, receipt } of sampledPressDetails) {
16853
+ const sampledKeyboardDetails = balancedSetupReceiptDetails(keyboardGroups, 12);
16854
+ for (const { name, receipt } of sampledKeyboardDetails) {
16851
16855
  const action = cliString(receipt.action) || "press";
16852
16856
  const key = cliString(receipt.key) || "key";
16853
16857
  const selector = cliString(receipt.selector);
@@ -16857,7 +16861,7 @@ function profileSetupSummaryMarkdown(result) {
16857
16861
  const reason = cliString(receipt.reason);
16858
16862
  lines.push(`- ${name} ${action}: ${ok}, ${markdownInlineCode(key)}${selector ? ` on ${markdownInlineCode(selector)}` : ""}${frameSelector ? ` in frame ${markdownInlineCode(frameSelector)}` : ""}${holdMs === void 0 ? "" : `, held ${holdMs}ms`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
16859
16863
  }
16860
- if (pressDetails.length > sampledPressDetails.length) lines.push(`- ${pressDetails.length - sampledPressDetails.length} additional press receipt(s) omitted.`);
16864
+ if (keyboardDetails.length > sampledKeyboardDetails.length) lines.push(`- ${keyboardDetails.length - sampledKeyboardDetails.length} additional keyboard receipt(s) omitted.`);
16861
16865
  const canvasSignatureGroups = viewports.map((viewport) => {
16862
16866
  const name = cliString(viewport.name) || "viewport";
16863
16867
  const receipts = Array.isArray(viewport.canvas_signature) ? viewport.canvas_signature.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-XL7Q4M6D.js";
16
+ } from "./chunk-X24EJSIU.js";
17
17
  import {
18
18
  createRiddleApiClient,
19
19
  isTerminalRiddleJobStatus,
@@ -911,7 +911,10 @@ function profileSetupSummaryMarkdown(result) {
911
911
  const rangeValueTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.set_range_value_total) || 0), 0);
912
912
  const dragTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.drag_total) || 0), 0);
913
913
  const tapTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.tap_total) || 0), 0);
914
- const pressTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.press_total) || 0), 0);
914
+ const keyboardTotal = viewports.reduce((sum, viewport) => {
915
+ const total = cliFiniteNumber(viewport.keyboard_total);
916
+ return sum + (total === void 0 ? cliFiniteNumber(viewport.press_total) || 0 : total);
917
+ }, 0);
915
918
  const canvasSignatureTotal = viewports.reduce((sum, viewport) => sum + (cliFiniteNumber(viewport.canvas_signature_total) || 0), 0);
916
919
  const failedTotal = viewports.reduce((sum, viewport) => sum + (Array.isArray(viewport.failed) ? viewport.failed.length : 0), 0);
917
920
  const lines = [
@@ -947,8 +950,8 @@ function profileSetupSummaryMarkdown(result) {
947
950
  if (tapTotal) {
948
951
  lines.push(`- tap: ${tapTotal} action(s)`);
949
952
  }
950
- if (pressTotal) {
951
- lines.push(`- press: ${pressTotal} action(s)`);
953
+ if (keyboardTotal) {
954
+ lines.push(`- keyboard: ${keyboardTotal} action(s)`);
952
955
  }
953
956
  if (canvasSignatureTotal) {
954
957
  lines.push(`- canvas_signature: ${canvasSignatureTotal} action(s)`);
@@ -974,10 +977,10 @@ function profileSetupSummaryMarkdown(result) {
974
977
  const rangeValueActions = cliFiniteNumber(viewport.set_range_value_total) || 0;
975
978
  const dragActions = cliFiniteNumber(viewport.drag_total) || 0;
976
979
  const tapActions = cliFiniteNumber(viewport.tap_total) || 0;
977
- const pressActions = cliFiniteNumber(viewport.press_total) || 0;
980
+ const keyboardActions = cliFiniteNumber(viewport.keyboard_total) ?? cliFiniteNumber(viewport.press_total) ?? 0;
978
981
  const canvasSignatureActions = cliFiniteNumber(viewport.canvas_signature_total) || 0;
979
982
  const observedPath = cliString(viewport.observed_path);
980
- lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickSequenceCount ? `, ${clickSequenceCount} click sequence(s)` : ""}${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${dragActions ? `, ${dragActions} drag action(s)` : ""}${tapActions ? `, ${tapActions} tap action(s)` : ""}${pressActions ? `, ${pressActions} press action(s)` : ""}${canvasSignatureActions ? `, ${canvasSignatureActions} canvas_signature action(s)` : ""}${deterministicRuntimeActions ? `, ${deterministicRuntimeActions} deterministic_runtime 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}` : ""}`);
983
+ lines.push(`- ${name}: ${ok}, ${resultCount} result(s), ${screenshotCount} setup screenshot(s), ${clicked} click(s)${clickSequenceCount ? `, ${clickSequenceCount} click sequence(s)` : ""}${clickCountActions ? `, ${clickCountActions} click_count action(s)` : ""}${rangeValueActions ? `, ${rangeValueActions} set_range_value action(s)` : ""}${dragActions ? `, ${dragActions} drag action(s)` : ""}${tapActions ? `, ${tapActions} tap action(s)` : ""}${keyboardActions ? `, ${keyboardActions} keyboard action(s)` : ""}${canvasSignatureActions ? `, ${canvasSignatureActions} canvas_signature action(s)` : ""}${deterministicRuntimeActions ? `, ${deterministicRuntimeActions} deterministic_runtime 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}` : ""}`);
981
984
  }
982
985
  const clickSequenceGroups = viewports.map((viewport) => {
983
986
  const name = cliString(viewport.name) || "viewport";
@@ -1044,13 +1047,14 @@ function profileSetupSummaryMarkdown(result) {
1044
1047
  lines.push(`- ${name} tap: ${ok}, ${markdownInlineCode(selector)}${pointerType ? ` ${markdownInlineCode(pointerType)}` : ""}${inputDispatch ? ` via ${markdownInlineCode(inputDispatch)}` : ""}${coordinateText}${durationMs === void 0 ? "" : `, duration ${durationMs}ms`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
1045
1048
  }
1046
1049
  if (tapDetails.length > sampledTapDetails.length) lines.push(`- ${tapDetails.length - sampledTapDetails.length} additional tap receipt(s) omitted.`);
1047
- const pressGroups = viewports.map((viewport) => {
1050
+ const keyboardGroups = viewports.map((viewport) => {
1048
1051
  const name = cliString(viewport.name) || "viewport";
1049
- const receipts = Array.isArray(viewport.press) ? viewport.press.map(cliRecord).filter((item) => Boolean(item)) : [];
1052
+ const rawReceipts = Array.isArray(viewport.keyboard) ? viewport.keyboard : viewport.press;
1053
+ const receipts = Array.isArray(rawReceipts) ? rawReceipts.map(cliRecord).filter((item) => Boolean(item)) : [];
1050
1054
  return receipts.map((receipt) => ({ name, receipt }));
1051
1055
  });
1052
- const pressDetails = pressGroups.flat();
1053
- for (const group of pressGroups.slice(0, 8)) {
1056
+ const keyboardDetails = keyboardGroups.flat();
1057
+ for (const group of keyboardGroups.slice(0, 8)) {
1054
1058
  if (!group.length) continue;
1055
1059
  const name = group[0].name;
1056
1060
  const keys = group.map(({ receipt }) => cliString(receipt.key) || "key").filter(Boolean);
@@ -1061,10 +1065,10 @@ function profileSetupSummaryMarkdown(result) {
1061
1065
  const omittedOrdinalCount = Math.max(0, ordinals.length - visibleOrdinals.length);
1062
1066
  const keyText = visibleKeys.join(",");
1063
1067
  const ordinalText = visibleOrdinals.join(",");
1064
- lines.push(`- ${name} press_sequence: keys ${markdownInlineCode(keyText, 200)}${omittedKeyCount ? ` (+${omittedKeyCount} omitted)` : ""}${ordinalText ? `, ordinals ${markdownInlineCode(ordinalText, 120)}${omittedOrdinalCount ? ` (+${omittedOrdinalCount} omitted)` : ""}` : ""}`);
1068
+ lines.push(`- ${name} keyboard_sequence: keys ${markdownInlineCode(keyText, 200)}${omittedKeyCount ? ` (+${omittedKeyCount} omitted)` : ""}${ordinalText ? `, ordinals ${markdownInlineCode(ordinalText, 120)}${omittedOrdinalCount ? ` (+${omittedOrdinalCount} omitted)` : ""}` : ""}`);
1065
1069
  }
1066
- const sampledPressDetails = balancedSetupReceiptDetails(pressGroups, 12);
1067
- for (const { name, receipt } of sampledPressDetails) {
1070
+ const sampledKeyboardDetails = balancedSetupReceiptDetails(keyboardGroups, 12);
1071
+ for (const { name, receipt } of sampledKeyboardDetails) {
1068
1072
  const action = cliString(receipt.action) || "press";
1069
1073
  const key = cliString(receipt.key) || "key";
1070
1074
  const selector = cliString(receipt.selector);
@@ -1074,7 +1078,7 @@ function profileSetupSummaryMarkdown(result) {
1074
1078
  const reason = cliString(receipt.reason);
1075
1079
  lines.push(`- ${name} ${action}: ${ok}, ${markdownInlineCode(key)}${selector ? ` on ${markdownInlineCode(selector)}` : ""}${frameSelector ? ` in frame ${markdownInlineCode(frameSelector)}` : ""}${holdMs === void 0 ? "" : `, held ${holdMs}ms`}${reason ? `, reason ${markdownInlineCode(reason, 100)}` : ""}`);
1076
1080
  }
1077
- if (pressDetails.length > sampledPressDetails.length) lines.push(`- ${pressDetails.length - sampledPressDetails.length} additional press receipt(s) omitted.`);
1081
+ if (keyboardDetails.length > sampledKeyboardDetails.length) lines.push(`- ${keyboardDetails.length - sampledKeyboardDetails.length} additional keyboard receipt(s) omitted.`);
1078
1082
  const canvasSignatureGroups = viewports.map((viewport) => {
1079
1083
  const name = cliString(viewport.name) || "viewport";
1080
1084
  const receipts = Array.isArray(viewport.canvas_signature) ? viewport.canvas_signature.map(cliRecord).filter((item) => Boolean(item)) : [];
package/dist/index.cjs CHANGED
@@ -9346,7 +9346,7 @@ function profileSetupTapReceipts(results) {
9346
9346
  reason: result.reason ?? result.error ?? null
9347
9347
  }));
9348
9348
  }
9349
- function profileSetupPressReceipts(results) {
9349
+ function profileSetupKeyboardReceipts(results) {
9350
9350
  return results.filter((result) => ["press", "key_down", "key_up"].includes(profileSetupResultAction(result))).map((result) => ({
9351
9351
  action: profileSetupResultAction(result),
9352
9352
  ordinal: result.ordinal ?? null,
@@ -9521,8 +9521,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
9521
9521
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
9522
9522
  const tapReceipts = profileSetupTapReceipts(results);
9523
9523
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
9524
- const pressReceipts = profileSetupPressReceipts(results);
9525
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
9524
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
9525
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
9526
9526
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
9527
9527
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
9528
9528
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
@@ -9590,9 +9590,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
9590
9590
  tap_total: tapReceipts.length,
9591
9591
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
9592
9592
  tap: sampledTapReceipts,
9593
- press_total: pressReceipts.length,
9594
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
9595
- press: sampledPressReceipts,
9593
+ keyboard_total: keyboardReceipts.length,
9594
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
9595
+ keyboard: sampledKeyboardReceipts,
9596
9596
  canvas_signature_total: canvasSignatureReceipts.length,
9597
9597
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
9598
9598
  canvas_signature: sampledCanvasSignatureReceipts,
@@ -13230,7 +13230,7 @@ function profileSetupTapReceipts(results) {
13230
13230
  reason: result.reason || result.error || null,
13231
13231
  }));
13232
13232
  }
13233
- function profileSetupPressReceipts(results) {
13233
+ function profileSetupKeyboardReceipts(results) {
13234
13234
  return (results || [])
13235
13235
  .filter((result) => result && ["press", "key_down", "key_up"].includes(profileSetupResultAction(result)))
13236
13236
  .map((result) => ({
@@ -13432,8 +13432,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
13432
13432
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
13433
13433
  const tapReceipts = profileSetupTapReceipts(results);
13434
13434
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
13435
- const pressReceipts = profileSetupPressReceipts(results);
13436
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
13435
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
13436
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
13437
13437
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
13438
13438
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
13439
13439
  const clickedItems = results
@@ -13511,9 +13511,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
13511
13511
  tap_total: tapReceipts.length,
13512
13512
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
13513
13513
  tap: sampledTapReceipts,
13514
- press_total: pressReceipts.length,
13515
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
13516
- press: sampledPressReceipts,
13514
+ keyboard_total: keyboardReceipts.length,
13515
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
13516
+ keyboard: sampledKeyboardReceipts,
13517
13517
  canvas_signature_total: canvasSignatureReceipts.length,
13518
13518
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
13519
13519
  canvas_signature: sampledCanvasSignatureReceipts,
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  resolveRiddleProofProfileTimeoutSec,
63
63
  slugifyRiddleProofProfileName,
64
64
  summarizeRiddleProofProfileResult
65
- } from "./chunk-XL7Q4M6D.js";
65
+ } from "./chunk-X24EJSIU.js";
66
66
  import {
67
67
  DEFAULT_RIDDLE_API_BASE_URL,
68
68
  DEFAULT_RIDDLE_API_KEY_FILE,
package/dist/profile.cjs CHANGED
@@ -660,7 +660,7 @@ function profileSetupTapReceipts(results) {
660
660
  reason: result.reason ?? result.error ?? null
661
661
  }));
662
662
  }
663
- function profileSetupPressReceipts(results) {
663
+ function profileSetupKeyboardReceipts(results) {
664
664
  return results.filter((result) => ["press", "key_down", "key_up"].includes(profileSetupResultAction(result))).map((result) => ({
665
665
  action: profileSetupResultAction(result),
666
666
  ordinal: result.ordinal ?? null,
@@ -835,8 +835,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
835
835
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
836
836
  const tapReceipts = profileSetupTapReceipts(results);
837
837
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
838
- const pressReceipts = profileSetupPressReceipts(results);
839
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
838
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
839
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
840
840
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
841
841
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
842
842
  const clickedItems = results.filter((result) => profileSetupResultAction(result) === "click" && result.ok !== false).map((result) => {
@@ -904,9 +904,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountByViewpo
904
904
  tap_total: tapReceipts.length,
905
905
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
906
906
  tap: sampledTapReceipts,
907
- press_total: pressReceipts.length,
908
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
909
- press: sampledPressReceipts,
907
+ keyboard_total: keyboardReceipts.length,
908
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
909
+ keyboard: sampledKeyboardReceipts,
910
910
  canvas_signature_total: canvasSignatureReceipts.length,
911
911
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
912
912
  canvas_signature: sampledCanvasSignatureReceipts,
@@ -4544,7 +4544,7 @@ function profileSetupTapReceipts(results) {
4544
4544
  reason: result.reason || result.error || null,
4545
4545
  }));
4546
4546
  }
4547
- function profileSetupPressReceipts(results) {
4547
+ function profileSetupKeyboardReceipts(results) {
4548
4548
  return (results || [])
4549
4549
  .filter((result) => result && ["press", "key_down", "key_up"].includes(profileSetupResultAction(result)))
4550
4550
  .map((result) => ({
@@ -4746,8 +4746,8 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4746
4746
  const sampledDragReceipts = sampleProfileSetupSummaryItems(dragReceipts, 8);
4747
4747
  const tapReceipts = profileSetupTapReceipts(results);
4748
4748
  const sampledTapReceipts = sampleProfileSetupSummaryItems(tapReceipts, 8);
4749
- const pressReceipts = profileSetupPressReceipts(results);
4750
- const sampledPressReceipts = sampleProfileSetupSummaryItems(pressReceipts, 8);
4749
+ const keyboardReceipts = profileSetupKeyboardReceipts(results);
4750
+ const sampledKeyboardReceipts = sampleProfileSetupSummaryItems(keyboardReceipts, 8);
4751
4751
  const canvasSignatureReceipts = profileSetupCanvasSignatureReceipts(results);
4752
4752
  const sampledCanvasSignatureReceipts = sampleProfileSetupSummaryItems(canvasSignatureReceipts, 8);
4753
4753
  const clickedItems = results
@@ -4825,9 +4825,9 @@ function profileSetupSummary(viewports, actionCount, expectedActionCountsByViewp
4825
4825
  tap_total: tapReceipts.length,
4826
4826
  tap_truncated: tapReceipts.length > sampledTapReceipts.length,
4827
4827
  tap: sampledTapReceipts,
4828
- press_total: pressReceipts.length,
4829
- press_truncated: pressReceipts.length > sampledPressReceipts.length,
4830
- press: sampledPressReceipts,
4828
+ keyboard_total: keyboardReceipts.length,
4829
+ keyboard_truncated: keyboardReceipts.length > sampledKeyboardReceipts.length,
4830
+ keyboard: sampledKeyboardReceipts,
4831
4831
  canvas_signature_total: canvasSignatureReceipts.length,
4832
4832
  canvas_signature_truncated: canvasSignatureReceipts.length > sampledCanvasSignatureReceipts.length,
4833
4833
  canvas_signature: sampledCanvasSignatureReceipts,
package/dist/profile.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  resolveRiddleProofProfileTimeoutSec,
24
24
  slugifyRiddleProofProfileName,
25
25
  summarizeRiddleProofProfileResult
26
- } from "./chunk-XL7Q4M6D.js";
26
+ } from "./chunk-X24EJSIU.js";
27
27
  export {
28
28
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
29
29
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
@@ -120,7 +120,7 @@ declare function buildSetupArgs(params: WorkflowParams, config: ReturnType<typeo
120
120
  target_image_hash: string;
121
121
  viewport_matrix_json: string;
122
122
  deterministic_setup_json: string;
123
- reference: "before" | "prod" | "both";
123
+ reference: "prod" | "before" | "both";
124
124
  base_branch: string;
125
125
  before_ref: string;
126
126
  allow_static_preview_fallback: string;
@@ -120,7 +120,7 @@ declare function buildSetupArgs(params: WorkflowParams, config: ReturnType<typeo
120
120
  target_image_hash: string;
121
121
  viewport_matrix_json: string;
122
122
  deterministic_setup_json: string;
123
- reference: "before" | "prod" | "both";
123
+ reference: "prod" | "before" | "both";
124
124
  base_branch: string;
125
125
  before_ref: string;
126
126
  allow_static_preview_fallback: string;
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
292
292
  blocking?: boolean;
293
293
  details?: Record<string, unknown>;
294
294
  ok: boolean;
295
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
296
296
  state_path: string;
297
297
  stage: any;
298
298
  summary: string;
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
382
382
  continueWithStage?: WorkflowStage | null;
383
383
  blocking?: boolean;
384
384
  details?: Record<string, unknown>;
385
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
386
386
  state_path: string;
387
387
  stage: any;
388
388
  checkpoint: string;
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
659
659
  error?: undefined;
660
660
  } | {
661
661
  ok: boolean;
662
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
663
663
  state_path: string;
664
664
  stage: any;
665
665
  summary: string;
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
292
292
  blocking?: boolean;
293
293
  details?: Record<string, unknown>;
294
294
  ok: boolean;
295
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
296
296
  state_path: string;
297
297
  stage: any;
298
298
  summary: string;
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
382
382
  continueWithStage?: WorkflowStage | null;
383
383
  blocking?: boolean;
384
384
  details?: Record<string, unknown>;
385
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
386
386
  state_path: string;
387
387
  stage: any;
388
388
  checkpoint: string;
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
659
659
  error?: undefined;
660
660
  } | {
661
661
  ok: boolean;
662
- action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
663
663
  state_path: string;
664
664
  stage: any;
665
665
  summary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.182",
3
+ "version": "0.7.183",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",