@riddledc/riddle-proof 0.8.61 → 0.8.62
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.
- package/dist/adapters/codex-exec-agent.js +3 -3
- package/dist/adapters/codex.js +3 -3
- package/dist/adapters/local-agent.js +3 -3
- package/dist/adapters/openclaw.js +6 -6
- package/dist/advanced/engine-harness.js +6 -6
- package/dist/advanced/index.js +7 -7
- package/dist/advanced/runner.js +6 -6
- package/dist/checkpoint.js +3 -3
- package/dist/{chunk-NXEAFQYZ.js → chunk-2OTPBHSM.js} +2 -2
- package/dist/{chunk-WKIIJX3O.js → chunk-6PSM6KB2.js} +66 -1
- package/dist/{chunk-NQ5HPAZD.js → chunk-DDAV6D6K.js} +4 -4
- package/dist/{chunk-XKNJ5OE4.js → chunk-HRY2IHXM.js} +2 -2
- package/dist/{chunk-UEY5SJG5.js → chunk-NMQIWBSB.js} +2 -2
- package/dist/{chunk-QPKY767W.js → chunk-OD6OKXL2.js} +1 -1
- package/dist/{chunk-HD46EEUV.js → chunk-P4BHU5NM.js} +4 -4
- package/dist/{chunk-K6VYKOIM.js → chunk-RZ3GXSXQ.js} +1 -1
- package/dist/{chunk-QGMSN34W.js → chunk-UK7G4RKA.js} +1 -1
- package/dist/{chunk-3FK5HZHK.js → chunk-WKNWMRDF.js} +2 -2
- package/dist/{chunk-FX2CB4MG.js → chunk-ZB5XBHWD.js} +1 -1
- package/dist/cli/index.js +9 -9
- package/dist/cli.js +9 -9
- package/dist/codex-exec-agent.js +3 -3
- package/dist/engine-harness.js +6 -6
- package/dist/index.cjs +68 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -9
- package/dist/local-agent.js +3 -3
- package/dist/openclaw.js +6 -6
- package/dist/pr-comment.js +2 -2
- package/dist/public-state.cjs +68 -0
- package/dist/public-state.d.cts +41 -1
- package/dist/public-state.d.ts +41 -1
- package/dist/public-state.js +7 -1
- package/dist/result.js +2 -2
- package/dist/run-card.js +4 -4
- package/dist/runner.js +6 -6
- package/dist/spec/checkpoint.js +3 -3
- package/dist/spec/index.cjs +68 -0
- package/dist/spec/index.d.cts +1 -1
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +11 -5
- package/dist/spec/public-state.cjs +68 -0
- package/dist/spec/public-state.d.cts +1 -1
- package/dist/spec/public-state.d.ts +1 -1
- package/dist/spec/public-state.js +7 -1
- package/dist/spec/result.js +2 -2
- package/dist/spec/run-card.js +4 -4
- package/dist/spec/state.js +5 -5
- package/dist/state.js +5 -5
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCodexExecAgentAdapter,
|
|
4
4
|
createCodexExecJsonRunner,
|
|
5
5
|
runCodexExecAgentDoctor
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-OD6OKXL2.js";
|
|
7
|
+
import "../chunk-UK7G4RKA.js";
|
|
8
|
+
import "../chunk-6PSM6KB2.js";
|
|
9
9
|
import "../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
createCodexExecAgentAdapter,
|
package/dist/adapters/codex.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCodexExecAgentAdapter,
|
|
4
4
|
createCodexExecJsonRunner,
|
|
5
5
|
runCodexExecAgentDoctor
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-OD6OKXL2.js";
|
|
7
|
+
import "../chunk-UK7G4RKA.js";
|
|
8
|
+
import "../chunk-6PSM6KB2.js";
|
|
9
9
|
import "../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
createCodexExecAgentAdapter,
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCodexExecAgentAdapter,
|
|
4
4
|
createCodexExecJsonRunner,
|
|
5
5
|
runCodexExecAgentDoctor
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-OD6OKXL2.js";
|
|
7
|
+
import "../chunk-UK7G4RKA.js";
|
|
8
|
+
import "../chunk-6PSM6KB2.js";
|
|
9
9
|
import "../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
createCodexExecAgentAdapter as createLocalAgentAdapter,
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
parseOpenClawAssertions,
|
|
4
4
|
parseOpenClawJsonObjectOrArray,
|
|
5
5
|
toRiddleProofRunParams
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-WKNWMRDF.js";
|
|
7
|
+
import "../chunk-NMQIWBSB.js";
|
|
8
|
+
import "../chunk-2OTPBHSM.js";
|
|
9
|
+
import "../chunk-ZB5XBHWD.js";
|
|
10
|
+
import "../chunk-UK7G4RKA.js";
|
|
11
|
+
import "../chunk-6PSM6KB2.js";
|
|
12
12
|
import "../chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
openClawIntegrationContext,
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
createDisabledRiddleProofAgentAdapter,
|
|
3
3
|
readRiddleProofRunStatus,
|
|
4
4
|
runRiddleProofEngineHarness
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-P4BHU5NM.js";
|
|
6
|
+
import "../chunk-NMQIWBSB.js";
|
|
7
|
+
import "../chunk-2OTPBHSM.js";
|
|
8
8
|
import "../chunk-EKZXU6MU.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZB5XBHWD.js";
|
|
10
|
+
import "../chunk-UK7G4RKA.js";
|
|
11
|
+
import "../chunk-6PSM6KB2.js";
|
|
12
12
|
import "../chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
createDisabledRiddleProofAgentAdapter,
|
package/dist/advanced/index.js
CHANGED
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "../chunk-VYJD6XYF.js";
|
|
4
4
|
import {
|
|
5
5
|
runner_exports
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-HRY2IHXM.js";
|
|
7
7
|
import {
|
|
8
8
|
engine_harness_exports
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-P4BHU5NM.js";
|
|
10
|
+
import "../chunk-NMQIWBSB.js";
|
|
11
|
+
import "../chunk-2OTPBHSM.js";
|
|
12
12
|
import {
|
|
13
13
|
proof_run_core_exports
|
|
14
14
|
} from "../chunk-EKZXU6MU.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-ZB5XBHWD.js";
|
|
16
|
+
import "../chunk-UK7G4RKA.js";
|
|
17
|
+
import "../chunk-6PSM6KB2.js";
|
|
18
18
|
import "../chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
engine_harness_exports as engineHarness,
|
package/dist/advanced/runner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HRY2IHXM.js";
|
|
4
|
+
import "../chunk-NMQIWBSB.js";
|
|
5
|
+
import "../chunk-2OTPBHSM.js";
|
|
6
6
|
import "../chunk-EKZXU6MU.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-ZB5XBHWD.js";
|
|
8
|
+
import "../chunk-UK7G4RKA.js";
|
|
9
|
+
import "../chunk-6PSM6KB2.js";
|
|
10
10
|
import "../chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
runRiddleProof
|
package/dist/checkpoint.js
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
normalizeCheckpointResponse,
|
|
15
15
|
proofContractFromAuthorCheckpointResponse,
|
|
16
16
|
statePathsForRunState
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-ZB5XBHWD.js";
|
|
18
|
+
import "./chunk-UK7G4RKA.js";
|
|
19
|
+
import "./chunk-6PSM6KB2.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
export {
|
|
22
22
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
statePathsForRunState
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZB5XBHWD.js";
|
|
4
4
|
import {
|
|
5
5
|
compactRecord,
|
|
6
6
|
isTerminalStatus,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
publicMergeRecommendationForRunState,
|
|
9
9
|
publicStateForRunState,
|
|
10
10
|
recordValue
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UK7G4RKA.js";
|
|
12
12
|
|
|
13
13
|
// src/run-card.ts
|
|
14
14
|
var RIDDLE_PROOF_RUN_CARD_VERSION = "riddle-proof.run-card.v1";
|
|
@@ -158,10 +158,75 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
158
158
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
162
|
+
const record = asRecord(input);
|
|
163
|
+
const runCard = asRecord(record.run_card);
|
|
164
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
165
|
+
const raw = asRecord(record.raw);
|
|
166
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
167
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
168
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
169
|
+
publicState,
|
|
170
|
+
firstStringValue(
|
|
171
|
+
options.merge_recommendation,
|
|
172
|
+
record.merge_recommendation,
|
|
173
|
+
stopCondition.merge_recommendation,
|
|
174
|
+
raw.merge_recommendation
|
|
175
|
+
)
|
|
176
|
+
);
|
|
177
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
178
|
+
return {
|
|
179
|
+
kind: options.kind || "run_result",
|
|
180
|
+
status: publicState.status,
|
|
181
|
+
result_label: publicState.result_label,
|
|
182
|
+
policy_state: publicState.policy_state,
|
|
183
|
+
proof_complete: publicState.proof_complete,
|
|
184
|
+
claims: {
|
|
185
|
+
proof_passed: publicState.proof_passed,
|
|
186
|
+
ship_authorized: publicState.ship_authorized,
|
|
187
|
+
merge_ready: publicState.merge_ready,
|
|
188
|
+
sync_allowed: publicState.sync_allowed,
|
|
189
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
190
|
+
},
|
|
191
|
+
ship_control: {
|
|
192
|
+
ship_held: publicState.ship_held,
|
|
193
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
194
|
+
ship_authorized: publicState.ship_authorized
|
|
195
|
+
},
|
|
196
|
+
handoff: {
|
|
197
|
+
merge_ready: publicState.merge_ready,
|
|
198
|
+
sync_allowed: publicState.sync_allowed,
|
|
199
|
+
merge_recommendation: mergeRecommendation
|
|
200
|
+
},
|
|
201
|
+
checkpoint_audit: checkpointAudit,
|
|
202
|
+
disclosures: {
|
|
203
|
+
ship_control: true,
|
|
204
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
205
|
+
required: [...publicState.required_disclosures],
|
|
206
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
207
|
+
},
|
|
208
|
+
public_state: publicState
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
212
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
213
|
+
...options,
|
|
214
|
+
kind: "hosted_proof_view"
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
218
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
219
|
+
...options,
|
|
220
|
+
kind: "agent_summary"
|
|
221
|
+
});
|
|
222
|
+
}
|
|
161
223
|
|
|
162
224
|
export {
|
|
163
225
|
riddleProofPublicStateAllowsClaim,
|
|
164
226
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
165
227
|
riddleProofPublicStateMergeRecommendation,
|
|
166
|
-
summarizeRiddleProofPublicState
|
|
228
|
+
summarizeRiddleProofPublicState,
|
|
229
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
230
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
231
|
+
summarizeRiddleProofAgentSummarySurface
|
|
167
232
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
|
8
8
|
buildRiddleProofPrCommentMarkdown,
|
|
9
9
|
summarizeRiddleProofPrComment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RZ3GXSXQ.js";
|
|
11
11
|
import {
|
|
12
12
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
13
13
|
applyRiddleProofProfileArtifactCompleteness,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
createDisabledRiddleProofAgentAdapter,
|
|
29
29
|
readRiddleProofRunStatus,
|
|
30
30
|
runRiddleProofEngineHarness
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-P4BHU5NM.js";
|
|
32
32
|
import {
|
|
33
33
|
createCheckpointResponseTemplate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZB5XBHWD.js";
|
|
35
35
|
import {
|
|
36
36
|
createCodexExecAgentAdapter,
|
|
37
37
|
runCodexExecAgentDoctor
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OD6OKXL2.js";
|
|
39
39
|
|
|
40
40
|
// src/cli.ts
|
|
41
41
|
import { spawnSync } from "child_process";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
appendStageHeartbeat,
|
|
4
4
|
createRunState,
|
|
5
5
|
setRunStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NMQIWBSB.js";
|
|
7
7
|
import {
|
|
8
8
|
noImplementationModeFor
|
|
9
9
|
} from "./chunk-EKZXU6MU.js";
|
|
10
10
|
import {
|
|
11
11
|
createRunResult
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UK7G4RKA.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRiddleProofRunCard
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2OTPBHSM.js";
|
|
4
4
|
import {
|
|
5
5
|
compactRecord,
|
|
6
6
|
isProtectedFinalStatus,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
nonEmptyString,
|
|
9
9
|
publicStateForRunState,
|
|
10
10
|
recordValue
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UK7G4RKA.js";
|
|
12
12
|
|
|
13
13
|
// src/state.ts
|
|
14
14
|
var RIDDLE_PROOF_RUN_STATE_VERSION = "riddle-proof.run-state.v1";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
createRunStatusSnapshot,
|
|
6
6
|
normalizeRunParams,
|
|
7
7
|
setRunStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NMQIWBSB.js";
|
|
9
9
|
import {
|
|
10
10
|
createRiddleProofRunCard
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2OTPBHSM.js";
|
|
12
12
|
import {
|
|
13
13
|
canonicalProofAssessmentStageForDecision,
|
|
14
14
|
noImplementationModeFor,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
normalizeCheckpointResponse,
|
|
28
28
|
proofContractFromAuthorCheckpointResponse,
|
|
29
29
|
statePathsForRunState
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZB5XBHWD.js";
|
|
31
31
|
import {
|
|
32
32
|
applyShipControlState,
|
|
33
33
|
applyTerminalMetadata,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
nonEmptyString,
|
|
38
38
|
normalizeTerminalMetadata,
|
|
39
39
|
recordValue
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UK7G4RKA.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
3
3
|
riddleProofPublicStateMergeRecommendation,
|
|
4
4
|
summarizeRiddleProofPublicState
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6PSM6KB2.js";
|
|
6
6
|
|
|
7
7
|
// src/pr-comment.ts
|
|
8
8
|
var RIDDLE_PROOF_PR_COMMENT_MARKER = "<!-- riddle-proof:pr-comment:v1 -->";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeIntegrationContext,
|
|
3
3
|
normalizeRunParams
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NMQIWBSB.js";
|
|
5
5
|
import {
|
|
6
6
|
compactRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UK7G4RKA.js";
|
|
8
8
|
|
|
9
9
|
// src/openclaw.ts
|
|
10
10
|
function parseOpenClawAssertions(value) {
|
package/dist/cli/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-DDAV6D6K.js";
|
|
2
2
|
import "../chunk-DI2XNGEZ.js";
|
|
3
|
-
import "../chunk-
|
|
3
|
+
import "../chunk-RZ3GXSXQ.js";
|
|
4
4
|
import "../chunk-EX7TO4I5.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-P4BHU5NM.js";
|
|
6
|
+
import "../chunk-NMQIWBSB.js";
|
|
7
|
+
import "../chunk-2OTPBHSM.js";
|
|
8
8
|
import "../chunk-EKZXU6MU.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZB5XBHWD.js";
|
|
10
10
|
import "../chunk-JFQXAJH2.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-OD6OKXL2.js";
|
|
12
|
+
import "../chunk-UK7G4RKA.js";
|
|
13
|
+
import "../chunk-6PSM6KB2.js";
|
|
14
14
|
import "../chunk-MLKGABMK.js";
|
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-DDAV6D6K.js";
|
|
3
3
|
import "./chunk-DI2XNGEZ.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-RZ3GXSXQ.js";
|
|
5
5
|
import "./chunk-EX7TO4I5.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-P4BHU5NM.js";
|
|
7
|
+
import "./chunk-NMQIWBSB.js";
|
|
8
|
+
import "./chunk-2OTPBHSM.js";
|
|
9
9
|
import "./chunk-EKZXU6MU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-ZB5XBHWD.js";
|
|
11
11
|
import "./chunk-JFQXAJH2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OD6OKXL2.js";
|
|
13
|
+
import "./chunk-UK7G4RKA.js";
|
|
14
|
+
import "./chunk-6PSM6KB2.js";
|
|
15
15
|
import "./chunk-MLKGABMK.js";
|
package/dist/codex-exec-agent.js
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
createCodexExecAgentAdapter,
|
|
3
3
|
createCodexExecJsonRunner,
|
|
4
4
|
runCodexExecAgentDoctor
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-OD6OKXL2.js";
|
|
6
|
+
import "./chunk-UK7G4RKA.js";
|
|
7
|
+
import "./chunk-6PSM6KB2.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
createCodexExecAgentAdapter,
|
package/dist/engine-harness.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
createDisabledRiddleProofAgentAdapter,
|
|
3
3
|
readRiddleProofRunStatus,
|
|
4
4
|
runRiddleProofEngineHarness
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-P4BHU5NM.js";
|
|
6
|
+
import "./chunk-NMQIWBSB.js";
|
|
7
|
+
import "./chunk-2OTPBHSM.js";
|
|
8
8
|
import "./chunk-EKZXU6MU.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZB5XBHWD.js";
|
|
10
|
+
import "./chunk-UK7G4RKA.js";
|
|
11
|
+
import "./chunk-6PSM6KB2.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
createDisabledRiddleProofAgentAdapter,
|
package/dist/index.cjs
CHANGED
|
@@ -3538,8 +3538,11 @@ __export(index_exports, {
|
|
|
3538
3538
|
slugifyRiddleProofProfileName: () => slugifyRiddleProofProfileName,
|
|
3539
3539
|
statePathsForRunState: () => statePathsForRunState,
|
|
3540
3540
|
summarizeCaptureArtifacts: () => summarizeCaptureArtifacts,
|
|
3541
|
+
summarizeRiddleProofAgentSummarySurface: () => summarizeRiddleProofAgentSummarySurface,
|
|
3542
|
+
summarizeRiddleProofHostedProofViewSurface: () => summarizeRiddleProofHostedProofViewSurface,
|
|
3541
3543
|
summarizeRiddleProofPrComment: () => summarizeRiddleProofPrComment,
|
|
3542
3544
|
summarizeRiddleProofProfileResult: () => summarizeRiddleProofProfileResult,
|
|
3545
|
+
summarizeRiddleProofPublicConsumerSurface: () => summarizeRiddleProofPublicConsumerSurface,
|
|
3543
3546
|
summarizeRiddleProofPublicState: () => summarizeRiddleProofPublicState,
|
|
3544
3547
|
visualSessionFingerprint: () => visualSessionFingerprint,
|
|
3545
3548
|
visualSessionFingerprintBasis: () => visualSessionFingerprintBasis
|
|
@@ -3706,6 +3709,68 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3706
3709
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
3707
3710
|
};
|
|
3708
3711
|
}
|
|
3712
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
3713
|
+
const record = asRecord(input);
|
|
3714
|
+
const runCard = asRecord(record.run_card);
|
|
3715
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
3716
|
+
const raw = asRecord(record.raw);
|
|
3717
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
3718
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
3719
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
3720
|
+
publicState,
|
|
3721
|
+
firstStringValue(
|
|
3722
|
+
options.merge_recommendation,
|
|
3723
|
+
record.merge_recommendation,
|
|
3724
|
+
stopCondition.merge_recommendation,
|
|
3725
|
+
raw.merge_recommendation
|
|
3726
|
+
)
|
|
3727
|
+
);
|
|
3728
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
3729
|
+
return {
|
|
3730
|
+
kind: options.kind || "run_result",
|
|
3731
|
+
status: publicState.status,
|
|
3732
|
+
result_label: publicState.result_label,
|
|
3733
|
+
policy_state: publicState.policy_state,
|
|
3734
|
+
proof_complete: publicState.proof_complete,
|
|
3735
|
+
claims: {
|
|
3736
|
+
proof_passed: publicState.proof_passed,
|
|
3737
|
+
ship_authorized: publicState.ship_authorized,
|
|
3738
|
+
merge_ready: publicState.merge_ready,
|
|
3739
|
+
sync_allowed: publicState.sync_allowed,
|
|
3740
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
3741
|
+
},
|
|
3742
|
+
ship_control: {
|
|
3743
|
+
ship_held: publicState.ship_held,
|
|
3744
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
3745
|
+
ship_authorized: publicState.ship_authorized
|
|
3746
|
+
},
|
|
3747
|
+
handoff: {
|
|
3748
|
+
merge_ready: publicState.merge_ready,
|
|
3749
|
+
sync_allowed: publicState.sync_allowed,
|
|
3750
|
+
merge_recommendation: mergeRecommendation
|
|
3751
|
+
},
|
|
3752
|
+
checkpoint_audit: checkpointAudit,
|
|
3753
|
+
disclosures: {
|
|
3754
|
+
ship_control: true,
|
|
3755
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
3756
|
+
required: [...publicState.required_disclosures],
|
|
3757
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
3758
|
+
},
|
|
3759
|
+
public_state: publicState
|
|
3760
|
+
};
|
|
3761
|
+
}
|
|
3762
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
3763
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
3764
|
+
...options,
|
|
3765
|
+
kind: "hosted_proof_view"
|
|
3766
|
+
});
|
|
3767
|
+
}
|
|
3768
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
3769
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
3770
|
+
...options,
|
|
3771
|
+
kind: "agent_summary"
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3709
3774
|
|
|
3710
3775
|
// src/result.ts
|
|
3711
3776
|
function isTerminalStatus(status) {
|
|
@@ -20621,8 +20686,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
|
|
|
20621
20686
|
slugifyRiddleProofProfileName,
|
|
20622
20687
|
statePathsForRunState,
|
|
20623
20688
|
summarizeCaptureArtifacts,
|
|
20689
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
20690
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
20624
20691
|
summarizeRiddleProofPrComment,
|
|
20625
20692
|
summarizeRiddleProofProfileResult,
|
|
20693
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
20626
20694
|
summarizeRiddleProofPublicState,
|
|
20627
20695
|
visualSessionFingerprint,
|
|
20628
20696
|
visualSessionFingerprintBasis
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlSta
|
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from './state.cjs';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.cjs';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from './run-card.cjs';
|
|
6
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from './public-state.cjs';
|
|
6
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from './public-state.cjs';
|
|
7
7
|
export { R as RiddleProofRunnerAdapters, a as RunRiddleProofInput, r as runRiddleProof } from './runner-4LJ5z0D-.cjs';
|
|
8
8
|
export { R as RiddleProofAgentAdapter, a as RiddleProofAgentPayload, b as RiddleProofCheckpointMode, c as RiddleProofEngine, d as RiddleProofEngineHarnessConfig, e as RiddleProofEngineHarnessContext, f as RiddleProofEngineResult, g as RiddleProofShipMode, h as RiddleProofWorkflowParams, i as RunRiddleProofEngineHarnessInput, j as createDisabledRiddleProofAgentAdapter, r as readRiddleProofRunStatus, k as runRiddleProofEngineHarness } from './engine-harness-LBfqbFSe.cjs';
|
|
9
9
|
export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunner, CodexExecAgentConfig as LocalAgentConfig, CodexJsonRequest as LocalAgentJsonRequest, CodexJsonResult as LocalAgentJsonResult, CodexJsonRunner as LocalAgentJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, createCodexExecAgentAdapter as createLocalAgentAdapter, createCodexExecJsonRunner as createLocalAgentJsonRunner, runCodexExecAgentDoctor, runCodexExecAgentDoctor as runLocalAgentDoctor } from './codex-exec-agent.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlSta
|
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from './state.js';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.js';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from './run-card.js';
|
|
6
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from './public-state.js';
|
|
6
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from './public-state.js';
|
|
7
7
|
export { R as RiddleProofRunnerAdapters, a as RunRiddleProofInput, r as runRiddleProof } from './runner-BdQpOkZD.js';
|
|
8
8
|
export { R as RiddleProofAgentAdapter, a as RiddleProofAgentPayload, b as RiddleProofCheckpointMode, c as RiddleProofEngine, d as RiddleProofEngineHarnessConfig, e as RiddleProofEngineHarnessContext, f as RiddleProofEngineResult, g as RiddleProofShipMode, h as RiddleProofWorkflowParams, i as RunRiddleProofEngineHarnessInput, j as createDisabledRiddleProofAgentAdapter, r as readRiddleProofRunStatus, k as runRiddleProofEngineHarness } from './engine-harness-CMACHP6A.js';
|
|
9
9
|
export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunner, CodexExecAgentConfig as LocalAgentConfig, CodexJsonRequest as LocalAgentJsonRequest, CodexJsonResult as LocalAgentJsonResult, CodexJsonRunner as LocalAgentJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, createCodexExecAgentAdapter as createLocalAgentAdapter, createCodexExecJsonRunner as createLocalAgentJsonRunner, runCodexExecAgentDoctor, runCodexExecAgentDoctor as runLocalAgentDoctor } from './codex-exec-agent.js';
|