@riddledc/riddle-proof 0.7.226 → 0.8.1

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.
Files changed (132) hide show
  1. package/dist/adapters/codex-exec-agent.cjs +893 -0
  2. package/dist/adapters/codex-exec-agent.d.cts +3 -0
  3. package/dist/adapters/codex-exec-agent.d.ts +3 -0
  4. package/dist/adapters/codex-exec-agent.js +13 -0
  5. package/dist/adapters/codex.cjs +893 -0
  6. package/dist/adapters/codex.d.cts +3 -0
  7. package/dist/adapters/codex.d.ts +3 -0
  8. package/dist/adapters/codex.js +13 -0
  9. package/dist/adapters/local-agent.cjs +893 -0
  10. package/dist/adapters/local-agent.d.cts +3 -0
  11. package/dist/adapters/local-agent.d.ts +3 -0
  12. package/dist/adapters/local-agent.js +13 -0
  13. package/dist/adapters/openclaw.cjs +213 -0
  14. package/dist/adapters/openclaw.d.cts +2 -0
  15. package/dist/adapters/openclaw.d.ts +2 -0
  16. package/dist/adapters/openclaw.js +17 -0
  17. package/dist/advanced/engine-harness.cjs +5701 -0
  18. package/dist/advanced/engine-harness.d.cts +2 -0
  19. package/dist/advanced/engine-harness.d.ts +2 -0
  20. package/dist/advanced/engine-harness.js +16 -0
  21. package/dist/advanced/index.cjs +6242 -0
  22. package/dist/advanced/index.d.cts +5 -0
  23. package/dist/advanced/index.d.ts +5 -0
  24. package/dist/advanced/index.js +23 -0
  25. package/dist/advanced/proof-run-core.cjs +1085 -0
  26. package/dist/advanced/proof-run-core.d.cts +1 -0
  27. package/dist/advanced/proof-run-core.d.ts +1 -0
  28. package/dist/advanced/proof-run-core.js +59 -0
  29. package/dist/advanced/proof-run-engine.cjs +2905 -0
  30. package/dist/advanced/proof-run-engine.d.cts +2 -0
  31. package/dist/advanced/proof-run-engine.d.ts +2 -0
  32. package/dist/advanced/proof-run-engine.js +10 -0
  33. package/dist/advanced/runner.cjs +833 -0
  34. package/dist/advanced/runner.d.cts +2 -0
  35. package/dist/advanced/runner.d.ts +2 -0
  36. package/dist/advanced/runner.js +12 -0
  37. package/dist/app-contract/index.cjs +24 -0
  38. package/dist/app-contract/index.d.cts +1 -0
  39. package/dist/app-contract/index.d.ts +1 -0
  40. package/dist/app-contract/index.js +2 -0
  41. package/dist/basic-gameplay.js +1 -0
  42. package/dist/checkpoint.js +1 -0
  43. package/dist/chunk-BHL4JSGM.js +1900 -0
  44. package/dist/chunk-BTN76IGW.js +115 -0
  45. package/dist/{chunk-TGHTM66Z.js → chunk-COERZX63.js} +10 -2
  46. package/dist/{chunk-QUAZAMOM.js → chunk-IWLQQ5S5.js} +12 -2
  47. package/dist/chunk-MLKGABMK.js +9 -0
  48. package/dist/chunk-OFSECTSC.js +0 -0
  49. package/dist/{chunk-GBVEQQIM.js → chunk-TJ63IE65.js} +36 -1
  50. package/dist/chunk-VZD5LH7U.js +4138 -0
  51. package/dist/cli/index.cjs +18 -0
  52. package/dist/cli/index.d.cts +2 -0
  53. package/dist/cli/index.d.ts +2 -0
  54. package/dist/cli/index.js +12 -0
  55. package/dist/cli.d.cts +1 -0
  56. package/dist/cli.d.ts +1 -0
  57. package/dist/cli.js +8 -4139
  58. package/dist/codex-exec-agent.d.cts +1 -1
  59. package/dist/codex-exec-agent.d.ts +1 -1
  60. package/dist/codex-exec-agent.js +1 -0
  61. package/dist/diagnostics.js +1 -0
  62. package/dist/engine-harness-CMACHP6A.d.ts +96 -0
  63. package/dist/engine-harness-LBfqbFSe.d.cts +96 -0
  64. package/dist/engine-harness.d.cts +2 -79
  65. package/dist/engine-harness.d.ts +2 -79
  66. package/dist/engine-harness.js +3 -2
  67. package/dist/index.d.cts +2 -2
  68. package/dist/index.d.ts +2 -2
  69. package/dist/index.js +4 -3
  70. package/dist/local-agent.d.cts +1 -1
  71. package/dist/local-agent.d.ts +1 -1
  72. package/dist/local-agent.js +1 -0
  73. package/dist/openclaw.js +8 -107
  74. package/dist/playability.js +1 -0
  75. package/dist/profile/index.cjs +9403 -0
  76. package/dist/profile/index.d.cts +2 -0
  77. package/dist/profile/index.d.ts +2 -0
  78. package/dist/profile/index.js +53 -0
  79. package/dist/profile.js +1 -0
  80. package/dist/proof-run-core-CE0jx7wL.d.cts +359 -0
  81. package/dist/proof-run-core-CE0jx7wL.d.ts +359 -0
  82. package/dist/proof-run-core.d.cts +1 -322
  83. package/dist/proof-run-core.d.ts +1 -322
  84. package/dist/proof-run-core.js +2 -1
  85. package/dist/proof-run-engine-CSSc0mNn.d.ts +764 -0
  86. package/dist/proof-run-engine-HSRpUeBi.d.cts +764 -0
  87. package/dist/proof-run-engine.d.cts +2 -757
  88. package/dist/proof-run-engine.d.ts +2 -757
  89. package/dist/proof-run-engine.js +5 -1885
  90. package/dist/proof-session.js +1 -0
  91. package/dist/result.js +1 -0
  92. package/dist/riddle-client.js +1 -0
  93. package/dist/run-card.js +1 -0
  94. package/dist/runner-4LJ5z0D-.d.cts +29 -0
  95. package/dist/runner-BdQpOkZD.d.ts +29 -0
  96. package/dist/runner.d.cts +2 -22
  97. package/dist/runner.d.ts +2 -22
  98. package/dist/runner.js +3 -2
  99. package/dist/runtime/index.cjs +528 -0
  100. package/dist/runtime/index.d.cts +1 -0
  101. package/dist/runtime/index.d.ts +1 -0
  102. package/dist/runtime/index.js +37 -0
  103. package/dist/runtime/riddle-client.cjs +528 -0
  104. package/dist/runtime/riddle-client.d.cts +1 -0
  105. package/dist/runtime/riddle-client.d.ts +1 -0
  106. package/dist/runtime/riddle-client.js +37 -0
  107. package/dist/spec/checkpoint.cjs +807 -0
  108. package/dist/spec/checkpoint.d.cts +2 -0
  109. package/dist/spec/checkpoint.d.ts +2 -0
  110. package/dist/spec/checkpoint.js +34 -0
  111. package/dist/spec/index.cjs +1510 -0
  112. package/dist/spec/index.d.cts +5 -0
  113. package/dist/spec/index.d.ts +5 -0
  114. package/dist/spec/index.js +80 -0
  115. package/dist/spec/result.cjs +259 -0
  116. package/dist/spec/result.d.cts +2 -0
  117. package/dist/spec/result.d.ts +2 -0
  118. package/dist/spec/result.js +21 -0
  119. package/dist/spec/run-card.cjs +287 -0
  120. package/dist/spec/run-card.d.cts +2 -0
  121. package/dist/spec/run-card.d.ts +2 -0
  122. package/dist/spec/run-card.js +11 -0
  123. package/dist/spec/state.cjs +541 -0
  124. package/dist/spec/state.d.cts +2 -0
  125. package/dist/spec/state.d.ts +2 -0
  126. package/dist/spec/state.js +28 -0
  127. package/dist/spec/types.cjs +18 -0
  128. package/dist/spec/types.d.cts +1 -0
  129. package/dist/spec/types.d.ts +1 -0
  130. package/dist/spec/types.js +1 -0
  131. package/dist/state.js +1 -0
  132. package/package.json +95 -2
@@ -0,0 +1,2 @@
1
+ export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofArtifactBodyAssertionInput, RiddleProofArtifactBodyAssertionResult, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileBoundsOffender, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileHttpStatusBodyJsonAssertion, RiddleProofProfileHttpStatusBodyJsonAssertionResult, RiddleProofProfileHttpStatusPreflightCheckResult, RiddleProofProfileHttpStatusPreflightFetch, RiddleProofProfileHttpStatusPreflightFetchResponse, RiddleProofProfileHttpStatusPreflightOptions, RiddleProofProfileHttpStatusPreflightResult, RiddleProofProfileJsonValueType, RiddleProofProfileNetworkAbortErrorCode, RiddleProofProfileNetworkMock, RiddleProofProfileNetworkMockResponse, RiddleProofProfileResult, RiddleProofProfileReturnSummaryField, RiddleProofProfileRouteEvidence, RiddleProofProfileRouteInventoryRoute, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from '../profile.cjs';
2
+ import '../types.cjs';
@@ -0,0 +1,2 @@
1
+ export { NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, RiddleProofArtifactBodyAssertionInput, RiddleProofArtifactBodyAssertionResult, RiddleProofProfile, RiddleProofProfileArtifactRef, RiddleProofProfileBaselinePolicy, RiddleProofProfileBoundsOffender, RiddleProofProfileCheck, RiddleProofProfileCheckResult, RiddleProofProfileCheckType, RiddleProofProfileEvidence, RiddleProofProfileFailureAction, RiddleProofProfileHttpStatusBodyJsonAssertion, RiddleProofProfileHttpStatusBodyJsonAssertionResult, RiddleProofProfileHttpStatusPreflightCheckResult, RiddleProofProfileHttpStatusPreflightFetch, RiddleProofProfileHttpStatusPreflightFetchResponse, RiddleProofProfileHttpStatusPreflightOptions, RiddleProofProfileHttpStatusPreflightResult, RiddleProofProfileJsonValueType, RiddleProofProfileNetworkAbortErrorCode, RiddleProofProfileNetworkMock, RiddleProofProfileNetworkMockResponse, RiddleProofProfileResult, RiddleProofProfileReturnSummaryField, RiddleProofProfileRouteEvidence, RiddleProofProfileRouteInventoryRoute, RiddleProofProfileRunner, RiddleProofProfileSetupAction, RiddleProofProfileSetupActionType, RiddleProofProfileStatus, RiddleProofProfileTarget, RiddleProofProfileViewport, RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from '../profile.js';
2
+ import '../types.js';
@@ -0,0 +1,53 @@
1
+ import {
2
+ RIDDLE_PROOF_PROFILE_CHECK_TYPES,
3
+ RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
4
+ RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES,
5
+ RIDDLE_PROOF_PROFILE_RESULT_VERSION,
6
+ RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES,
7
+ RIDDLE_PROOF_PROFILE_STATUSES,
8
+ RIDDLE_PROOF_PROFILE_VERSION,
9
+ assessRiddleProofProfileEvidence,
10
+ buildRiddleProofProfileScript,
11
+ collectRiddleProfileArtifactRefs,
12
+ collectRiddleProofProfileWarnings,
13
+ createRiddleProofProfileConfigurationError,
14
+ createRiddleProofProfileEnvironmentBlockedResult,
15
+ createRiddleProofProfileInsufficientResult,
16
+ deriveRiddleProofArtifactBodyAssertions,
17
+ extractRiddleProofProfileResult,
18
+ normalizeRiddleProofProfile,
19
+ preflightRiddleProofProfileHttpStatusChecks,
20
+ profileStatusExitCode,
21
+ resolveRiddleProofProfileRouteUrl,
22
+ resolveRiddleProofProfileTargetUrl,
23
+ resolveRiddleProofProfileTimeoutSec,
24
+ slugifyRiddleProofProfileName,
25
+ summarizeRiddleProofProfileResult
26
+ } from "../chunk-PEWAIEER.js";
27
+ import "../chunk-MLKGABMK.js";
28
+ export {
29
+ RIDDLE_PROOF_PROFILE_CHECK_TYPES,
30
+ RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
31
+ RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES,
32
+ RIDDLE_PROOF_PROFILE_RESULT_VERSION,
33
+ RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES,
34
+ RIDDLE_PROOF_PROFILE_STATUSES,
35
+ RIDDLE_PROOF_PROFILE_VERSION,
36
+ assessRiddleProofProfileEvidence,
37
+ buildRiddleProofProfileScript,
38
+ collectRiddleProfileArtifactRefs,
39
+ collectRiddleProofProfileWarnings,
40
+ createRiddleProofProfileConfigurationError,
41
+ createRiddleProofProfileEnvironmentBlockedResult,
42
+ createRiddleProofProfileInsufficientResult,
43
+ deriveRiddleProofArtifactBodyAssertions,
44
+ extractRiddleProofProfileResult,
45
+ normalizeRiddleProofProfile,
46
+ preflightRiddleProofProfileHttpStatusChecks,
47
+ profileStatusExitCode,
48
+ resolveRiddleProofProfileRouteUrl,
49
+ resolveRiddleProofProfileTargetUrl,
50
+ resolveRiddleProofProfileTimeoutSec,
51
+ slugifyRiddleProofProfileName,
52
+ summarizeRiddleProofProfileResult
53
+ };
package/dist/profile.js CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  slugifyRiddleProofProfileName,
25
25
  summarizeRiddleProofProfileResult
26
26
  } from "./chunk-PEWAIEER.js";
27
+ import "./chunk-MLKGABMK.js";
27
28
  export {
28
29
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
29
30
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
@@ -0,0 +1,359 @@
1
+ type WorkflowAction = "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "status" | "sync" | "run";
2
+ type WorkflowStage = Exclude<WorkflowAction, "status" | "sync" | "run">;
3
+ declare const WORKFLOW_STAGE_ORDER: WorkflowStage[];
4
+ interface WorkflowParams {
5
+ action: WorkflowAction;
6
+ repo?: string;
7
+ branch?: string;
8
+ change_request?: string;
9
+ commit_message?: string;
10
+ prod_url?: string;
11
+ capture_script?: string;
12
+ success_criteria?: string;
13
+ assertions?: unknown;
14
+ assertions_json?: string;
15
+ verification_mode?: string;
16
+ resume_session?: string;
17
+ target_image_url?: string;
18
+ target_image_hash?: string;
19
+ viewport_matrix?: unknown;
20
+ viewport_matrix_json?: string;
21
+ deterministic_setup?: unknown;
22
+ deterministic_setup_json?: string;
23
+ reference?: "prod" | "before" | "both";
24
+ base_branch?: string;
25
+ before_ref?: string;
26
+ allow_static_preview_fallback?: boolean;
27
+ context?: string;
28
+ reviewer?: string;
29
+ mode?: "server" | "static" | "audit" | (string & {});
30
+ implementation_mode?: "change" | "none" | (string & {});
31
+ require_diff?: boolean;
32
+ allow_code_changes?: boolean;
33
+ build_command?: string;
34
+ build_output?: string;
35
+ server_image?: string;
36
+ server_command?: string;
37
+ server_port?: number;
38
+ server_path?: string;
39
+ use_auth?: boolean;
40
+ auth_localStorage_json?: string;
41
+ auth_cookies_json?: string;
42
+ auth_headers_json?: string;
43
+ color_scheme?: "dark" | "light";
44
+ wait_for_selector?: string;
45
+ discord_channel?: string;
46
+ discord_thread_id?: string;
47
+ discord_message_id?: string;
48
+ discord_source_url?: string;
49
+ recon_assessment_json?: string;
50
+ proof_plan?: string;
51
+ author_packet_json?: string;
52
+ implementation_notes?: string;
53
+ proof_assessment_json?: string;
54
+ state_path?: string;
55
+ auto_approve?: boolean;
56
+ continue_from_checkpoint?: boolean;
57
+ ship_after_verify?: boolean;
58
+ leave_draft?: boolean;
59
+ cleanup_merged_pr?: boolean;
60
+ fetch_base?: boolean;
61
+ update_base_checkout?: boolean;
62
+ advance_stage?: WorkflowStage;
63
+ }
64
+ declare function previewModeFromWorkflowMode(value: unknown): "server" | "static" | undefined;
65
+ declare function noImplementationModeFor(params?: unknown, state?: unknown): boolean;
66
+ interface PluginConfig {
67
+ riddleProofDir?: string;
68
+ statePath?: string;
69
+ defaultReviewer?: string;
70
+ }
71
+ declare const CHECKPOINT_CONTRACT_VERSION = "riddle-proof-run.checkpoint.v1";
72
+ declare const BUNDLED_RIDDLE_PROOF_DIR: string;
73
+ declare const RIDDLE_PROOF_DIR_CANDIDATES: string[];
74
+ interface CheckpointInputContract {
75
+ name: string;
76
+ type: "json" | "string" | "boolean" | "external_action";
77
+ required?: boolean;
78
+ description: string;
79
+ }
80
+ interface ShipGateValidation {
81
+ ok: boolean;
82
+ reasons: string[];
83
+ required_baselines: string[];
84
+ evidence: {
85
+ reference: string;
86
+ verification_mode: string | null;
87
+ prod_url: string | null;
88
+ before_cdn: string | null;
89
+ prod_cdn: string | null;
90
+ after_cdn: string | null;
91
+ verify_status: string | null;
92
+ proof_assessment_decision: string | null;
93
+ proof_assessment_source: string | null;
94
+ visual_delta_required: boolean;
95
+ visual_delta_status: string | null;
96
+ visual_delta_passed: boolean | null;
97
+ };
98
+ }
99
+ declare function resolveRiddleProofDir(config?: PluginConfig): string;
100
+ declare function resolveConfig(config?: PluginConfig, params?: Partial<Pick<WorkflowParams, "action" | "state_path">>): {
101
+ riddleProofDir: string;
102
+ statePath: string;
103
+ argsPath: string;
104
+ defaultReviewer: string;
105
+ };
106
+ declare function ensureAction(action: string): WorkflowAction;
107
+ declare function workflowFile(riddleProofDir: string, action: WorkflowStage): string;
108
+ declare function buildSetupArgs(params: WorkflowParams, config: ReturnType<typeof resolveConfig>): {
109
+ repo: string | undefined;
110
+ branch: string;
111
+ change_request: string;
112
+ commit_message: string;
113
+ prod_url: string;
114
+ capture_script: string;
115
+ success_criteria: string;
116
+ assertions_json: string;
117
+ verification_mode: string;
118
+ resume_session: string;
119
+ target_image_url: string;
120
+ target_image_hash: string;
121
+ viewport_matrix_json: string;
122
+ deterministic_setup_json: string;
123
+ reference: "before" | "prod" | "both";
124
+ base_branch: string;
125
+ before_ref: string;
126
+ allow_static_preview_fallback: string;
127
+ context: string;
128
+ reviewer: string;
129
+ mode: string;
130
+ implementation_mode: string | (string & {});
131
+ require_diff: boolean | undefined;
132
+ allow_code_changes: boolean | undefined;
133
+ build_command: string;
134
+ build_output: string;
135
+ server_image: string;
136
+ server_command: string;
137
+ server_port: string;
138
+ server_path: string;
139
+ server_path_source: string;
140
+ use_auth: string;
141
+ auth_localStorage_json: string;
142
+ auth_cookies_json: string;
143
+ auth_headers_json: string;
144
+ color_scheme: string;
145
+ wait_for_selector: string;
146
+ discord_channel: string;
147
+ discord_thread_id: string;
148
+ discord_message_id: string;
149
+ discord_source_url: string;
150
+ leave_draft: string;
151
+ };
152
+ declare function readState(statePath: string): any;
153
+ declare function writeState(statePath: string, state: Record<string, unknown>): void;
154
+ declare function ensureStageLoopState(state?: any): any;
155
+ declare function clearStageDecisionRequest(state?: any): any;
156
+ declare function recordStageAttempt(state: any, stage: WorkflowStage, entry?: {
157
+ status?: string;
158
+ checkpoint?: string | null;
159
+ summary?: string | null;
160
+ requestedAdvanceStage?: WorkflowStage | null;
161
+ haltedForApproval?: boolean;
162
+ autoApproved?: boolean;
163
+ retryable?: boolean;
164
+ checkpointDisposition?: string | null;
165
+ error?: string | null;
166
+ details?: Record<string, unknown>;
167
+ }): {
168
+ attempt: number;
169
+ stage: WorkflowStage;
170
+ status: string;
171
+ checkpoint: string | null;
172
+ summary: string | null;
173
+ requested_advance_stage: WorkflowStage | null;
174
+ halted_for_approval: boolean;
175
+ auto_approved: boolean;
176
+ retryable: boolean;
177
+ checkpoint_disposition: string | null;
178
+ error: string | null;
179
+ details: Record<string, unknown>;
180
+ attempted_at: string;
181
+ };
182
+ declare function setStageDecisionRequest(state: any, request: {
183
+ stage: WorkflowStage;
184
+ checkpoint: string;
185
+ summary: string;
186
+ nextActions?: string[];
187
+ advanceOptions?: WorkflowStage[];
188
+ recommendedAdvanceStage?: WorkflowStage | null;
189
+ continueWithStage?: WorkflowStage | null;
190
+ blocking?: boolean;
191
+ details?: Record<string, unknown>;
192
+ checkpointContract?: Record<string, unknown>;
193
+ }): any;
194
+ declare function checkpointContinueStage(state: any): WorkflowStage | null;
195
+ declare function invalidateVerifyEvidence(state?: any): {
196
+ invalidated: boolean;
197
+ hadAfterCdn?: undefined;
198
+ hadVerifyResults?: undefined;
199
+ hadMergeRecommendation?: undefined;
200
+ hadProofSummary?: undefined;
201
+ hadVerifyStatus?: undefined;
202
+ hadVerifySummary?: undefined;
203
+ hadVerifyDecisionRequest?: undefined;
204
+ hadEvidenceNotes?: undefined;
205
+ hadProofAssessment?: undefined;
206
+ hadProofAssessmentRequest?: undefined;
207
+ } | {
208
+ invalidated: boolean;
209
+ hadAfterCdn: boolean;
210
+ hadVerifyResults: boolean;
211
+ hadMergeRecommendation: boolean;
212
+ hadProofSummary: boolean;
213
+ hadVerifyStatus: boolean;
214
+ hadVerifySummary: boolean;
215
+ hadVerifyDecisionRequest: boolean;
216
+ hadEvidenceNotes: boolean;
217
+ hadProofAssessment: boolean;
218
+ hadProofAssessmentRequest: boolean;
219
+ };
220
+ declare function visualDeltaRequiredForState(state?: any): boolean;
221
+ declare function visualDeltaForState(state?: any): Record<string, any>;
222
+ declare function visualDeltaShipGateReason(state?: any): string | null;
223
+ declare function requiredBaselineLabelsForState(state?: any): string[];
224
+ declare function validateShipGate(state?: any): ShipGateValidation;
225
+ declare function buildCheckpointContract(state: any, request: {
226
+ statePath?: string;
227
+ stage: WorkflowStage;
228
+ checkpoint: string;
229
+ summary: string;
230
+ nextActions?: string[];
231
+ advanceOptions?: WorkflowStage[];
232
+ recommendedAdvanceStage?: WorkflowStage | null;
233
+ continueWithStage?: WorkflowStage | null;
234
+ blocking?: boolean;
235
+ }): Record<string, unknown>;
236
+ declare function mergeStateFromParams(statePath: string, params: WorkflowParams): any;
237
+ declare function summarizeState(state: any): {
238
+ stage: string;
239
+ summary: string;
240
+ state: null;
241
+ } | {
242
+ stage: any;
243
+ summary: string;
244
+ state: {
245
+ workspace_ready: boolean;
246
+ repo: any;
247
+ branch: any;
248
+ mode: any;
249
+ workflow_mode: any;
250
+ implementation_mode: any;
251
+ require_diff: any;
252
+ allow_code_changes: any;
253
+ no_implementation_mode: boolean;
254
+ reference: any;
255
+ before_ref: any;
256
+ allow_static_preview_fallback: boolean;
257
+ commit_message: any;
258
+ author_status: any;
259
+ author_summary: any;
260
+ author_request: any;
261
+ proof_plan_status: any;
262
+ proof_plan: any;
263
+ proof_plan_request: any;
264
+ proof_profile_applied: boolean;
265
+ proof_profile: any;
266
+ recon_status: any;
267
+ recon_assessment: any;
268
+ recon_assessment_request: any;
269
+ recon_assessment_source: any;
270
+ recon_decision_request: any;
271
+ recon_attempts_used: any;
272
+ recon_attempts_max: any;
273
+ recon_hypothesis: any;
274
+ implementation_status: any;
275
+ implementation_summary: any;
276
+ implementation_detection_summary: any;
277
+ implementation_detection: any;
278
+ implementation_environment_issues: any;
279
+ verify_status: any;
280
+ verify_summary: any;
281
+ verify_decision_request: any;
282
+ proof_assessment: any;
283
+ proof_assessment_request: any;
284
+ proof_assessment_source: any;
285
+ merge_recommendation: any;
286
+ before_cdn: any;
287
+ after_cdn: any;
288
+ prod_cdn: any;
289
+ pr_url: any;
290
+ pr_branch: any;
291
+ pr_state: any;
292
+ ship_commit: any;
293
+ ship_remote_head: any;
294
+ merge_commit: any;
295
+ merged_at: any;
296
+ ship_push: any;
297
+ ship_report: any;
298
+ cleanup_report: any;
299
+ proof_comment_url: any;
300
+ proof_assessment_comment_url: any;
301
+ marked_ready: any;
302
+ left_draft: any;
303
+ ci_status: any;
304
+ reviewer: any;
305
+ active_checkpoint: any;
306
+ active_checkpoint_stage: any;
307
+ continue_with_stage: WorkflowStage | null;
308
+ stage_decision_request: any;
309
+ stage_attempt_counts: {
310
+ [k: string]: number;
311
+ };
312
+ explicit_stage_gate: boolean;
313
+ last_requested_advance_stage: any;
314
+ recon_results: any;
315
+ verify_results: any;
316
+ proof_session: any;
317
+ parent_proof_session: any;
318
+ proof_session_artifact_url: any;
319
+ };
320
+ };
321
+
322
+ declare const proofRunCore_BUNDLED_RIDDLE_PROOF_DIR: typeof BUNDLED_RIDDLE_PROOF_DIR;
323
+ declare const proofRunCore_CHECKPOINT_CONTRACT_VERSION: typeof CHECKPOINT_CONTRACT_VERSION;
324
+ type proofRunCore_CheckpointInputContract = CheckpointInputContract;
325
+ type proofRunCore_PluginConfig = PluginConfig;
326
+ declare const proofRunCore_RIDDLE_PROOF_DIR_CANDIDATES: typeof RIDDLE_PROOF_DIR_CANDIDATES;
327
+ type proofRunCore_ShipGateValidation = ShipGateValidation;
328
+ declare const proofRunCore_WORKFLOW_STAGE_ORDER: typeof WORKFLOW_STAGE_ORDER;
329
+ type proofRunCore_WorkflowAction = WorkflowAction;
330
+ type proofRunCore_WorkflowParams = WorkflowParams;
331
+ type proofRunCore_WorkflowStage = WorkflowStage;
332
+ declare const proofRunCore_buildCheckpointContract: typeof buildCheckpointContract;
333
+ declare const proofRunCore_buildSetupArgs: typeof buildSetupArgs;
334
+ declare const proofRunCore_checkpointContinueStage: typeof checkpointContinueStage;
335
+ declare const proofRunCore_clearStageDecisionRequest: typeof clearStageDecisionRequest;
336
+ declare const proofRunCore_ensureAction: typeof ensureAction;
337
+ declare const proofRunCore_ensureStageLoopState: typeof ensureStageLoopState;
338
+ declare const proofRunCore_invalidateVerifyEvidence: typeof invalidateVerifyEvidence;
339
+ declare const proofRunCore_mergeStateFromParams: typeof mergeStateFromParams;
340
+ declare const proofRunCore_noImplementationModeFor: typeof noImplementationModeFor;
341
+ declare const proofRunCore_previewModeFromWorkflowMode: typeof previewModeFromWorkflowMode;
342
+ declare const proofRunCore_readState: typeof readState;
343
+ declare const proofRunCore_recordStageAttempt: typeof recordStageAttempt;
344
+ declare const proofRunCore_requiredBaselineLabelsForState: typeof requiredBaselineLabelsForState;
345
+ declare const proofRunCore_resolveConfig: typeof resolveConfig;
346
+ declare const proofRunCore_resolveRiddleProofDir: typeof resolveRiddleProofDir;
347
+ declare const proofRunCore_setStageDecisionRequest: typeof setStageDecisionRequest;
348
+ declare const proofRunCore_summarizeState: typeof summarizeState;
349
+ declare const proofRunCore_validateShipGate: typeof validateShipGate;
350
+ declare const proofRunCore_visualDeltaForState: typeof visualDeltaForState;
351
+ declare const proofRunCore_visualDeltaRequiredForState: typeof visualDeltaRequiredForState;
352
+ declare const proofRunCore_visualDeltaShipGateReason: typeof visualDeltaShipGateReason;
353
+ declare const proofRunCore_workflowFile: typeof workflowFile;
354
+ declare const proofRunCore_writeState: typeof writeState;
355
+ declare namespace proofRunCore {
356
+ export { proofRunCore_BUNDLED_RIDDLE_PROOF_DIR as BUNDLED_RIDDLE_PROOF_DIR, proofRunCore_CHECKPOINT_CONTRACT_VERSION as CHECKPOINT_CONTRACT_VERSION, type proofRunCore_CheckpointInputContract as CheckpointInputContract, type proofRunCore_PluginConfig as PluginConfig, proofRunCore_RIDDLE_PROOF_DIR_CANDIDATES as RIDDLE_PROOF_DIR_CANDIDATES, type proofRunCore_ShipGateValidation as ShipGateValidation, proofRunCore_WORKFLOW_STAGE_ORDER as WORKFLOW_STAGE_ORDER, type proofRunCore_WorkflowAction as WorkflowAction, type proofRunCore_WorkflowParams as WorkflowParams, type proofRunCore_WorkflowStage as WorkflowStage, proofRunCore_buildCheckpointContract as buildCheckpointContract, proofRunCore_buildSetupArgs as buildSetupArgs, proofRunCore_checkpointContinueStage as checkpointContinueStage, proofRunCore_clearStageDecisionRequest as clearStageDecisionRequest, proofRunCore_ensureAction as ensureAction, proofRunCore_ensureStageLoopState as ensureStageLoopState, proofRunCore_invalidateVerifyEvidence as invalidateVerifyEvidence, proofRunCore_mergeStateFromParams as mergeStateFromParams, proofRunCore_noImplementationModeFor as noImplementationModeFor, proofRunCore_previewModeFromWorkflowMode as previewModeFromWorkflowMode, proofRunCore_readState as readState, proofRunCore_recordStageAttempt as recordStageAttempt, proofRunCore_requiredBaselineLabelsForState as requiredBaselineLabelsForState, proofRunCore_resolveConfig as resolveConfig, proofRunCore_resolveRiddleProofDir as resolveRiddleProofDir, proofRunCore_setStageDecisionRequest as setStageDecisionRequest, proofRunCore_summarizeState as summarizeState, proofRunCore_validateShipGate as validateShipGate, proofRunCore_visualDeltaForState as visualDeltaForState, proofRunCore_visualDeltaRequiredForState as visualDeltaRequiredForState, proofRunCore_visualDeltaShipGateReason as visualDeltaShipGateReason, proofRunCore_workflowFile as workflowFile, proofRunCore_writeState as writeState };
357
+ }
358
+
359
+ export { workflowFile as A, BUNDLED_RIDDLE_PROOF_DIR as B, CHECKPOINT_CONTRACT_VERSION as C, writeState as D, type PluginConfig as P, RIDDLE_PROOF_DIR_CANDIDATES as R, type ShipGateValidation as S, type WorkflowParams as W, type WorkflowStage as a, type CheckpointInputContract as b, WORKFLOW_STAGE_ORDER as c, type WorkflowAction as d, buildCheckpointContract as e, buildSetupArgs as f, checkpointContinueStage as g, clearStageDecisionRequest as h, ensureAction as i, ensureStageLoopState as j, invalidateVerifyEvidence as k, previewModeFromWorkflowMode as l, mergeStateFromParams as m, noImplementationModeFor as n, readState as o, proofRunCore as p, recordStageAttempt as q, resolveConfig as r, requiredBaselineLabelsForState as s, resolveRiddleProofDir as t, setStageDecisionRequest as u, summarizeState as v, validateShipGate as w, visualDeltaForState as x, visualDeltaRequiredForState as y, visualDeltaShipGateReason as z };