@riddledc/riddle-proof 0.7.6 → 0.7.7

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.
@@ -144,16 +144,20 @@ function assessBasicGameplayRoute(route, options = {}) {
144
144
  const initial = route.initial || {};
145
145
  const timed = route.timed || {};
146
146
  const afterAction = route.after_action || route.afterAction || {};
147
+ const afterContinue = route.after_continue || route.afterContinue || {};
147
148
  const mobile = route.mobile || {};
148
149
  const timedChange = changed(initial, timed);
149
150
  const actionChange = changed(timed, afterAction);
151
+ const continuedActionChange = changed(afterAction, afterContinue);
150
152
  const surfaceVisible = numberValue(initial.visible_canvas_count) > 0 || numberValue(initial.enabled_clickable_count) > 0 || numberValue(initial.visible_large_node_count) >= minSurfaceLargeNodes;
151
153
  const actionResults = listValue(route.action_results || route.actionResults);
154
+ const continuedActionResults = listValue(route.continued_action_results || route.continuedActionResults);
152
155
  const restartActionResults = listValue(route.restart_action_results || route.restartActionResults);
153
- const actionAttempted = actionResults.some((result) => result.ok === true && result.action !== "wait");
154
- const actionFailed = actionResults.some((result) => result.ok === false && result.action !== "wait");
156
+ const primaryActionResults = [...actionResults, ...continuedActionResults];
157
+ const actionAttempted = primaryActionResults.some((result) => result.ok === true && result.action !== "wait");
158
+ const actionFailed = primaryActionResults.some((result) => result.ok === false && result.action !== "wait");
155
159
  const restartActionAttempted = restartActionResults.some((result) => result.ok === true && result.action !== "wait");
156
- const stateChangeObserved = actionChange.changed || timedChange.changed;
160
+ const stateChangeObserved = actionChange.changed || continuedActionChange.changed || timedChange.changed;
157
161
  const resetPathPresent = numberValue(initial.reset_control_count) > 0 || numberValue(timed.reset_control_count) > 0 || numberValue(afterAction.reset_control_count) > 0 || restartActionAttempted;
158
162
  const responseStatus = firstNumber(route.http_status, route.response_status, route.status);
159
163
  const pageErrorCount = numberValue(route.page_error_count);
@@ -188,7 +192,7 @@ function assessBasicGameplayRoute(route, options = {}) {
188
192
  surface_visible: surfaceVisible,
189
193
  action_attempted: actionAttempted,
190
194
  timed_progression_observed: timedChange.changed,
191
- first_interaction_observed: actionChange.changed,
195
+ first_interaction_observed: actionChange.changed || continuedActionChange.changed,
192
196
  state_change_observed: stateChangeObserved,
193
197
  mobile_overflow_absent: mobileOverflowPx <= maxMobileOverflowPx,
194
198
  reset_path_present: resetPathPresent,
@@ -196,7 +200,8 @@ function assessBasicGameplayRoute(route, options = {}) {
196
200
  },
197
201
  diffs: {
198
202
  timed: timedChange,
199
- after_action: actionChange
203
+ after_action: actionChange,
204
+ after_continue: continuedActionChange
200
205
  }
201
206
  };
202
207
  }
@@ -118,10 +118,13 @@ interface RiddleProofBasicGameplayRouteEvidence {
118
118
  timed?: BasicGameplaySnapshot;
119
119
  after_action?: BasicGameplaySnapshot;
120
120
  afterAction?: BasicGameplaySnapshot;
121
+ after_continue?: BasicGameplaySnapshot;
122
+ afterContinue?: BasicGameplaySnapshot;
121
123
  mobile?: BasicGameplayMobileEvidence;
122
124
  action_results?: BasicGameplayActionResult[];
123
125
  actionResults?: BasicGameplayActionResult[];
124
126
  continued_action_results?: BasicGameplayActionResult[];
127
+ continuedActionResults?: BasicGameplayActionResult[];
125
128
  restart_action_results?: BasicGameplayActionResult[];
126
129
  restartActionResults?: BasicGameplayActionResult[];
127
130
  progression_checks?: BasicGameplayProgressionCheck[];
@@ -172,6 +175,7 @@ interface RiddleProofBasicGameplayRouteAssessment {
172
175
  diffs: {
173
176
  timed: BasicGameplayChangeSummary;
174
177
  after_action: BasicGameplayChangeSummary;
178
+ after_continue?: BasicGameplayChangeSummary;
175
179
  };
176
180
  }
177
181
  interface RiddleProofBasicGameplayAssessment {
@@ -118,10 +118,13 @@ interface RiddleProofBasicGameplayRouteEvidence {
118
118
  timed?: BasicGameplaySnapshot;
119
119
  after_action?: BasicGameplaySnapshot;
120
120
  afterAction?: BasicGameplaySnapshot;
121
+ after_continue?: BasicGameplaySnapshot;
122
+ afterContinue?: BasicGameplaySnapshot;
121
123
  mobile?: BasicGameplayMobileEvidence;
122
124
  action_results?: BasicGameplayActionResult[];
123
125
  actionResults?: BasicGameplayActionResult[];
124
126
  continued_action_results?: BasicGameplayActionResult[];
127
+ continuedActionResults?: BasicGameplayActionResult[];
125
128
  restart_action_results?: BasicGameplayActionResult[];
126
129
  restartActionResults?: BasicGameplayActionResult[];
127
130
  progression_checks?: BasicGameplayProgressionCheck[];
@@ -172,6 +175,7 @@ interface RiddleProofBasicGameplayRouteAssessment {
172
175
  diffs: {
173
176
  timed: BasicGameplayChangeSummary;
174
177
  after_action: BasicGameplayChangeSummary;
178
+ after_continue?: BasicGameplayChangeSummary;
175
179
  };
176
180
  }
177
181
  interface RiddleProofBasicGameplayAssessment {
@@ -16,7 +16,7 @@ import {
16
16
  extractBasicGameplayEvidence,
17
17
  resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
18
18
  sanitizeBasicGameplayJsonString
19
- } from "./chunk-LHS7ZV2T.js";
19
+ } from "./chunk-AHW7SL3W.js";
20
20
  export {
21
21
  BASIC_GAMEPLAY_ACTION_TYPES,
22
22
  BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES,
@@ -104,16 +104,20 @@ function assessBasicGameplayRoute(route, options = {}) {
104
104
  const initial = route.initial || {};
105
105
  const timed = route.timed || {};
106
106
  const afterAction = route.after_action || route.afterAction || {};
107
+ const afterContinue = route.after_continue || route.afterContinue || {};
107
108
  const mobile = route.mobile || {};
108
109
  const timedChange = changed(initial, timed);
109
110
  const actionChange = changed(timed, afterAction);
111
+ const continuedActionChange = changed(afterAction, afterContinue);
110
112
  const surfaceVisible = numberValue(initial.visible_canvas_count) > 0 || numberValue(initial.enabled_clickable_count) > 0 || numberValue(initial.visible_large_node_count) >= minSurfaceLargeNodes;
111
113
  const actionResults = listValue(route.action_results || route.actionResults);
114
+ const continuedActionResults = listValue(route.continued_action_results || route.continuedActionResults);
112
115
  const restartActionResults = listValue(route.restart_action_results || route.restartActionResults);
113
- const actionAttempted = actionResults.some((result) => result.ok === true && result.action !== "wait");
114
- const actionFailed = actionResults.some((result) => result.ok === false && result.action !== "wait");
116
+ const primaryActionResults = [...actionResults, ...continuedActionResults];
117
+ const actionAttempted = primaryActionResults.some((result) => result.ok === true && result.action !== "wait");
118
+ const actionFailed = primaryActionResults.some((result) => result.ok === false && result.action !== "wait");
115
119
  const restartActionAttempted = restartActionResults.some((result) => result.ok === true && result.action !== "wait");
116
- const stateChangeObserved = actionChange.changed || timedChange.changed;
120
+ const stateChangeObserved = actionChange.changed || continuedActionChange.changed || timedChange.changed;
117
121
  const resetPathPresent = numberValue(initial.reset_control_count) > 0 || numberValue(timed.reset_control_count) > 0 || numberValue(afterAction.reset_control_count) > 0 || restartActionAttempted;
118
122
  const responseStatus = firstNumber(route.http_status, route.response_status, route.status);
119
123
  const pageErrorCount = numberValue(route.page_error_count);
@@ -148,7 +152,7 @@ function assessBasicGameplayRoute(route, options = {}) {
148
152
  surface_visible: surfaceVisible,
149
153
  action_attempted: actionAttempted,
150
154
  timed_progression_observed: timedChange.changed,
151
- first_interaction_observed: actionChange.changed,
155
+ first_interaction_observed: actionChange.changed || continuedActionChange.changed,
152
156
  state_change_observed: stateChangeObserved,
153
157
  mobile_overflow_absent: mobileOverflowPx <= maxMobileOverflowPx,
154
158
  reset_path_present: resetPathPresent,
@@ -156,7 +160,8 @@ function assessBasicGameplayRoute(route, options = {}) {
156
160
  },
157
161
  diffs: {
158
162
  timed: timedChange,
159
- after_action: actionChange
163
+ after_action: actionChange,
164
+ after_continue: continuedActionChange
160
165
  }
161
166
  };
162
167
  }
package/dist/index.cjs CHANGED
@@ -7911,16 +7911,20 @@ function assessBasicGameplayRoute(route, options = {}) {
7911
7911
  const initial = route.initial || {};
7912
7912
  const timed = route.timed || {};
7913
7913
  const afterAction = route.after_action || route.afterAction || {};
7914
+ const afterContinue = route.after_continue || route.afterContinue || {};
7914
7915
  const mobile = route.mobile || {};
7915
7916
  const timedChange = changed(initial, timed);
7916
7917
  const actionChange = changed(timed, afterAction);
7918
+ const continuedActionChange = changed(afterAction, afterContinue);
7917
7919
  const surfaceVisible = numberValue2(initial.visible_canvas_count) > 0 || numberValue2(initial.enabled_clickable_count) > 0 || numberValue2(initial.visible_large_node_count) >= minSurfaceLargeNodes;
7918
7920
  const actionResults = listValue2(route.action_results || route.actionResults);
7921
+ const continuedActionResults = listValue2(route.continued_action_results || route.continuedActionResults);
7919
7922
  const restartActionResults = listValue2(route.restart_action_results || route.restartActionResults);
7920
- const actionAttempted = actionResults.some((result) => result.ok === true && result.action !== "wait");
7921
- const actionFailed = actionResults.some((result) => result.ok === false && result.action !== "wait");
7923
+ const primaryActionResults = [...actionResults, ...continuedActionResults];
7924
+ const actionAttempted = primaryActionResults.some((result) => result.ok === true && result.action !== "wait");
7925
+ const actionFailed = primaryActionResults.some((result) => result.ok === false && result.action !== "wait");
7922
7926
  const restartActionAttempted = restartActionResults.some((result) => result.ok === true && result.action !== "wait");
7923
- const stateChangeObserved = actionChange.changed || timedChange.changed;
7927
+ const stateChangeObserved = actionChange.changed || continuedActionChange.changed || timedChange.changed;
7924
7928
  const resetPathPresent = numberValue2(initial.reset_control_count) > 0 || numberValue2(timed.reset_control_count) > 0 || numberValue2(afterAction.reset_control_count) > 0 || restartActionAttempted;
7925
7929
  const responseStatus = firstNumber(route.http_status, route.response_status, route.status);
7926
7930
  const pageErrorCount = numberValue2(route.page_error_count);
@@ -7955,7 +7959,7 @@ function assessBasicGameplayRoute(route, options = {}) {
7955
7959
  surface_visible: surfaceVisible,
7956
7960
  action_attempted: actionAttempted,
7957
7961
  timed_progression_observed: timedChange.changed,
7958
- first_interaction_observed: actionChange.changed,
7962
+ first_interaction_observed: actionChange.changed || continuedActionChange.changed,
7959
7963
  state_change_observed: stateChangeObserved,
7960
7964
  mobile_overflow_absent: mobileOverflowPx <= maxMobileOverflowPx,
7961
7965
  reset_path_present: resetPathPresent,
@@ -7963,7 +7967,8 @@ function assessBasicGameplayRoute(route, options = {}) {
7963
7967
  },
7964
7968
  diffs: {
7965
7969
  timed: timedChange,
7966
- after_action: actionChange
7970
+ after_action: actionChange,
7971
+ after_continue: continuedActionChange
7967
7972
  }
7968
7973
  };
7969
7974
  }
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  extractBasicGameplayEvidence,
37
37
  resolveBasicGameplayProgressionCheckWithArtifactScreenshots,
38
38
  sanitizeBasicGameplayJsonString
39
- } from "./chunk-LHS7ZV2T.js";
39
+ } from "./chunk-AHW7SL3W.js";
40
40
  import {
41
41
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
42
42
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
@@ -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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
295
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
385
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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: "recon" | "author" | "ship" | "implement" | "verify" | "setup" | "run";
662
+ action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "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.6",
3
+ "version": "0.7.7",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",