@riddledc/riddle-proof 0.8.60 → 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.cjs +46 -0
- package/dist/advanced/engine-harness.js +6 -6
- package/dist/advanced/index.cjs +46 -0
- 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-AWRBSVNW.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-PCEDAQPG.js → chunk-P4BHU5NM.js} +50 -4
- package/dist/{chunk-HZOILEGF.js → chunk-RZ3GXSXQ.js} +7 -2
- 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.cjs +51 -1
- package/dist/cli.js +9 -9
- package/dist/codex-exec-agent.js +3 -3
- package/dist/engine-harness.cjs +46 -0
- package/dist/engine-harness.js +6 -6
- package/dist/index.cjs +119 -1
- 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.cjs +8 -1
- 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
package/dist/public-state.d.cts
CHANGED
|
@@ -24,9 +24,49 @@ interface RiddleProofPublicStateSummary {
|
|
|
24
24
|
required_disclosures: string[];
|
|
25
25
|
prohibited_claims: string[];
|
|
26
26
|
}
|
|
27
|
+
type RiddleProofPublicConsumerSurfaceKind = "run_status" | "run_result" | "run_card" | "pr_comment" | "hosted_proof_view" | "agent_summary" | (string & {});
|
|
28
|
+
interface RiddleProofPublicConsumerSurface {
|
|
29
|
+
kind: RiddleProofPublicConsumerSurfaceKind;
|
|
30
|
+
status?: string;
|
|
31
|
+
result_label: string;
|
|
32
|
+
policy_state: RiddleProofPublicPolicyState;
|
|
33
|
+
proof_complete: boolean;
|
|
34
|
+
claims: {
|
|
35
|
+
proof_passed: boolean;
|
|
36
|
+
ship_authorized: boolean;
|
|
37
|
+
merge_ready: boolean;
|
|
38
|
+
sync_allowed: boolean;
|
|
39
|
+
all_checkpoint_responses_accepted: boolean;
|
|
40
|
+
};
|
|
41
|
+
ship_control: {
|
|
42
|
+
ship_held: boolean;
|
|
43
|
+
shipping_disabled: boolean;
|
|
44
|
+
ship_authorized: boolean;
|
|
45
|
+
};
|
|
46
|
+
handoff: {
|
|
47
|
+
merge_ready: boolean;
|
|
48
|
+
sync_allowed: boolean;
|
|
49
|
+
merge_recommendation?: string;
|
|
50
|
+
};
|
|
51
|
+
checkpoint_audit?: RiddleProofPublicCheckpointSummary;
|
|
52
|
+
disclosures: {
|
|
53
|
+
ship_control: boolean;
|
|
54
|
+
checkpoint_audit: boolean;
|
|
55
|
+
required: string[];
|
|
56
|
+
prohibited_claims: string[];
|
|
57
|
+
};
|
|
58
|
+
public_state: RiddleProofPublicStateSummary;
|
|
59
|
+
}
|
|
60
|
+
interface RiddleProofPublicConsumerSurfaceOptions {
|
|
61
|
+
kind?: RiddleProofPublicConsumerSurfaceKind;
|
|
62
|
+
merge_recommendation?: string;
|
|
63
|
+
}
|
|
27
64
|
declare function riddleProofPublicStateAllowsClaim(summary: RiddleProofPublicStateSummary | undefined, claim: string): boolean;
|
|
28
65
|
declare function riddleProofPublicStateAllowsMergeRecommendation(summary: RiddleProofPublicStateSummary | undefined): boolean;
|
|
29
66
|
declare function riddleProofPublicStateMergeRecommendation(summary: RiddleProofPublicStateSummary | undefined, recommendation: string | undefined): string | undefined;
|
|
30
67
|
declare function summarizeRiddleProofPublicState(input: unknown): RiddleProofPublicStateSummary;
|
|
68
|
+
declare function summarizeRiddleProofPublicConsumerSurface(input: unknown, options?: RiddleProofPublicConsumerSurfaceOptions): RiddleProofPublicConsumerSurface;
|
|
69
|
+
declare function summarizeRiddleProofHostedProofViewSurface(input: unknown, options?: Omit<RiddleProofPublicConsumerSurfaceOptions, "kind">): RiddleProofPublicConsumerSurface;
|
|
70
|
+
declare function summarizeRiddleProofAgentSummarySurface(input: unknown, options?: Omit<RiddleProofPublicConsumerSurfaceOptions, "kind">): RiddleProofPublicConsumerSurface;
|
|
31
71
|
|
|
32
|
-
export { type RiddleProofPublicCheckpointSummary, type RiddleProofPublicPolicyState, type RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState };
|
|
72
|
+
export { type RiddleProofPublicCheckpointSummary, type RiddleProofPublicConsumerSurface, type RiddleProofPublicConsumerSurfaceKind, type RiddleProofPublicConsumerSurfaceOptions, type RiddleProofPublicPolicyState, type RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState };
|
package/dist/public-state.d.ts
CHANGED
|
@@ -24,9 +24,49 @@ interface RiddleProofPublicStateSummary {
|
|
|
24
24
|
required_disclosures: string[];
|
|
25
25
|
prohibited_claims: string[];
|
|
26
26
|
}
|
|
27
|
+
type RiddleProofPublicConsumerSurfaceKind = "run_status" | "run_result" | "run_card" | "pr_comment" | "hosted_proof_view" | "agent_summary" | (string & {});
|
|
28
|
+
interface RiddleProofPublicConsumerSurface {
|
|
29
|
+
kind: RiddleProofPublicConsumerSurfaceKind;
|
|
30
|
+
status?: string;
|
|
31
|
+
result_label: string;
|
|
32
|
+
policy_state: RiddleProofPublicPolicyState;
|
|
33
|
+
proof_complete: boolean;
|
|
34
|
+
claims: {
|
|
35
|
+
proof_passed: boolean;
|
|
36
|
+
ship_authorized: boolean;
|
|
37
|
+
merge_ready: boolean;
|
|
38
|
+
sync_allowed: boolean;
|
|
39
|
+
all_checkpoint_responses_accepted: boolean;
|
|
40
|
+
};
|
|
41
|
+
ship_control: {
|
|
42
|
+
ship_held: boolean;
|
|
43
|
+
shipping_disabled: boolean;
|
|
44
|
+
ship_authorized: boolean;
|
|
45
|
+
};
|
|
46
|
+
handoff: {
|
|
47
|
+
merge_ready: boolean;
|
|
48
|
+
sync_allowed: boolean;
|
|
49
|
+
merge_recommendation?: string;
|
|
50
|
+
};
|
|
51
|
+
checkpoint_audit?: RiddleProofPublicCheckpointSummary;
|
|
52
|
+
disclosures: {
|
|
53
|
+
ship_control: boolean;
|
|
54
|
+
checkpoint_audit: boolean;
|
|
55
|
+
required: string[];
|
|
56
|
+
prohibited_claims: string[];
|
|
57
|
+
};
|
|
58
|
+
public_state: RiddleProofPublicStateSummary;
|
|
59
|
+
}
|
|
60
|
+
interface RiddleProofPublicConsumerSurfaceOptions {
|
|
61
|
+
kind?: RiddleProofPublicConsumerSurfaceKind;
|
|
62
|
+
merge_recommendation?: string;
|
|
63
|
+
}
|
|
27
64
|
declare function riddleProofPublicStateAllowsClaim(summary: RiddleProofPublicStateSummary | undefined, claim: string): boolean;
|
|
28
65
|
declare function riddleProofPublicStateAllowsMergeRecommendation(summary: RiddleProofPublicStateSummary | undefined): boolean;
|
|
29
66
|
declare function riddleProofPublicStateMergeRecommendation(summary: RiddleProofPublicStateSummary | undefined, recommendation: string | undefined): string | undefined;
|
|
30
67
|
declare function summarizeRiddleProofPublicState(input: unknown): RiddleProofPublicStateSummary;
|
|
68
|
+
declare function summarizeRiddleProofPublicConsumerSurface(input: unknown, options?: RiddleProofPublicConsumerSurfaceOptions): RiddleProofPublicConsumerSurface;
|
|
69
|
+
declare function summarizeRiddleProofHostedProofViewSurface(input: unknown, options?: Omit<RiddleProofPublicConsumerSurfaceOptions, "kind">): RiddleProofPublicConsumerSurface;
|
|
70
|
+
declare function summarizeRiddleProofAgentSummarySurface(input: unknown, options?: Omit<RiddleProofPublicConsumerSurfaceOptions, "kind">): RiddleProofPublicConsumerSurface;
|
|
31
71
|
|
|
32
|
-
export { type RiddleProofPublicCheckpointSummary, type RiddleProofPublicPolicyState, type RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState };
|
|
72
|
+
export { type RiddleProofPublicCheckpointSummary, type RiddleProofPublicConsumerSurface, type RiddleProofPublicConsumerSurfaceKind, type RiddleProofPublicConsumerSurfaceOptions, type RiddleProofPublicPolicyState, type RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState };
|
package/dist/public-state.js
CHANGED
|
@@ -2,12 +2,18 @@ import {
|
|
|
2
2
|
riddleProofPublicStateAllowsClaim,
|
|
3
3
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
4
4
|
riddleProofPublicStateMergeRecommendation,
|
|
5
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
6
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
7
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
5
8
|
summarizeRiddleProofPublicState
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6PSM6KB2.js";
|
|
7
10
|
import "./chunk-MLKGABMK.js";
|
|
8
11
|
export {
|
|
9
12
|
riddleProofPublicStateAllowsClaim,
|
|
10
13
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
11
14
|
riddleProofPublicStateMergeRecommendation,
|
|
15
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
16
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
17
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
12
18
|
summarizeRiddleProofPublicState
|
|
13
19
|
};
|
package/dist/result.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
publicStateForRunState,
|
|
13
13
|
recordValue,
|
|
14
14
|
shipControlStateFor
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-UK7G4RKA.js";
|
|
16
|
+
import "./chunk-6PSM6KB2.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
applyShipControlState,
|
package/dist/run-card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2OTPBHSM.js";
|
|
5
|
+
import "./chunk-ZB5XBHWD.js";
|
|
6
|
+
import "./chunk-UK7G4RKA.js";
|
|
7
|
+
import "./chunk-6PSM6KB2.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/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/spec/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,
|
package/dist/spec/index.cjs
CHANGED
|
@@ -73,6 +73,9 @@ __export(spec_exports, {
|
|
|
73
73
|
setRunStatus: () => setRunStatus,
|
|
74
74
|
shipControlStateFor: () => shipControlStateFor,
|
|
75
75
|
statePathsForRunState: () => statePathsForRunState,
|
|
76
|
+
summarizeRiddleProofAgentSummarySurface: () => summarizeRiddleProofAgentSummarySurface,
|
|
77
|
+
summarizeRiddleProofHostedProofViewSurface: () => summarizeRiddleProofHostedProofViewSurface,
|
|
78
|
+
summarizeRiddleProofPublicConsumerSurface: () => summarizeRiddleProofPublicConsumerSurface,
|
|
76
79
|
summarizeRiddleProofPublicState: () => summarizeRiddleProofPublicState
|
|
77
80
|
});
|
|
78
81
|
module.exports = __toCommonJS(spec_exports);
|
|
@@ -237,6 +240,68 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
237
240
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
238
241
|
};
|
|
239
242
|
}
|
|
243
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
244
|
+
const record = asRecord(input);
|
|
245
|
+
const runCard = asRecord(record.run_card);
|
|
246
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
247
|
+
const raw = asRecord(record.raw);
|
|
248
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
249
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
250
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
251
|
+
publicState,
|
|
252
|
+
firstStringValue(
|
|
253
|
+
options.merge_recommendation,
|
|
254
|
+
record.merge_recommendation,
|
|
255
|
+
stopCondition.merge_recommendation,
|
|
256
|
+
raw.merge_recommendation
|
|
257
|
+
)
|
|
258
|
+
);
|
|
259
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
260
|
+
return {
|
|
261
|
+
kind: options.kind || "run_result",
|
|
262
|
+
status: publicState.status,
|
|
263
|
+
result_label: publicState.result_label,
|
|
264
|
+
policy_state: publicState.policy_state,
|
|
265
|
+
proof_complete: publicState.proof_complete,
|
|
266
|
+
claims: {
|
|
267
|
+
proof_passed: publicState.proof_passed,
|
|
268
|
+
ship_authorized: publicState.ship_authorized,
|
|
269
|
+
merge_ready: publicState.merge_ready,
|
|
270
|
+
sync_allowed: publicState.sync_allowed,
|
|
271
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
272
|
+
},
|
|
273
|
+
ship_control: {
|
|
274
|
+
ship_held: publicState.ship_held,
|
|
275
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
276
|
+
ship_authorized: publicState.ship_authorized
|
|
277
|
+
},
|
|
278
|
+
handoff: {
|
|
279
|
+
merge_ready: publicState.merge_ready,
|
|
280
|
+
sync_allowed: publicState.sync_allowed,
|
|
281
|
+
merge_recommendation: mergeRecommendation
|
|
282
|
+
},
|
|
283
|
+
checkpoint_audit: checkpointAudit,
|
|
284
|
+
disclosures: {
|
|
285
|
+
ship_control: true,
|
|
286
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
287
|
+
required: [...publicState.required_disclosures],
|
|
288
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
289
|
+
},
|
|
290
|
+
public_state: publicState
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
294
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
295
|
+
...options,
|
|
296
|
+
kind: "hosted_proof_view"
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
300
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
301
|
+
...options,
|
|
302
|
+
kind: "agent_summary"
|
|
303
|
+
});
|
|
304
|
+
}
|
|
240
305
|
|
|
241
306
|
// src/result.ts
|
|
242
307
|
function isTerminalStatus(status) {
|
|
@@ -1868,5 +1933,8 @@ function applyPrLifecycleState(state, input, at = timestamp2()) {
|
|
|
1868
1933
|
setRunStatus,
|
|
1869
1934
|
shipControlStateFor,
|
|
1870
1935
|
statePathsForRunState,
|
|
1936
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
1937
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
1938
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
1871
1939
|
summarizeRiddleProofPublicState
|
|
1872
1940
|
});
|
package/dist/spec/index.d.cts
CHANGED
|
@@ -3,4 +3,4 @@ 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';
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ 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';
|
package/dist/spec/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
normalizePrLifecycleState,
|
|
11
11
|
normalizeRunParams,
|
|
12
12
|
setRunStatus
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-NMQIWBSB.js";
|
|
14
14
|
import {
|
|
15
15
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
16
16
|
createRiddleProofRunCard
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-2OTPBHSM.js";
|
|
18
18
|
import {
|
|
19
19
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
20
20
|
RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
normalizeCheckpointResponse,
|
|
32
32
|
proofContractFromAuthorCheckpointResponse,
|
|
33
33
|
statePathsForRunState
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-ZB5XBHWD.js";
|
|
35
35
|
import {
|
|
36
36
|
applyShipControlState,
|
|
37
37
|
applyTerminalMetadata,
|
|
@@ -46,13 +46,16 @@ import {
|
|
|
46
46
|
publicStateForRunState,
|
|
47
47
|
recordValue,
|
|
48
48
|
shipControlStateFor
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-UK7G4RKA.js";
|
|
50
50
|
import {
|
|
51
51
|
riddleProofPublicStateAllowsClaim,
|
|
52
52
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
53
53
|
riddleProofPublicStateMergeRecommendation,
|
|
54
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
55
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
56
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
54
57
|
summarizeRiddleProofPublicState
|
|
55
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-6PSM6KB2.js";
|
|
56
59
|
import "../chunk-MLKGABMK.js";
|
|
57
60
|
export {
|
|
58
61
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -98,5 +101,8 @@ export {
|
|
|
98
101
|
setRunStatus,
|
|
99
102
|
shipControlStateFor,
|
|
100
103
|
statePathsForRunState,
|
|
104
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
105
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
106
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
101
107
|
summarizeRiddleProofPublicState
|
|
102
108
|
};
|
|
@@ -23,6 +23,9 @@ __export(public_state_exports, {
|
|
|
23
23
|
riddleProofPublicStateAllowsClaim: () => riddleProofPublicStateAllowsClaim,
|
|
24
24
|
riddleProofPublicStateAllowsMergeRecommendation: () => riddleProofPublicStateAllowsMergeRecommendation,
|
|
25
25
|
riddleProofPublicStateMergeRecommendation: () => riddleProofPublicStateMergeRecommendation,
|
|
26
|
+
summarizeRiddleProofAgentSummarySurface: () => summarizeRiddleProofAgentSummarySurface,
|
|
27
|
+
summarizeRiddleProofHostedProofViewSurface: () => summarizeRiddleProofHostedProofViewSurface,
|
|
28
|
+
summarizeRiddleProofPublicConsumerSurface: () => summarizeRiddleProofPublicConsumerSurface,
|
|
26
29
|
summarizeRiddleProofPublicState: () => summarizeRiddleProofPublicState
|
|
27
30
|
});
|
|
28
31
|
module.exports = __toCommonJS(public_state_exports);
|
|
@@ -187,10 +190,75 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
187
190
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
188
191
|
};
|
|
189
192
|
}
|
|
193
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
194
|
+
const record = asRecord(input);
|
|
195
|
+
const runCard = asRecord(record.run_card);
|
|
196
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
197
|
+
const raw = asRecord(record.raw);
|
|
198
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
199
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
200
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
201
|
+
publicState,
|
|
202
|
+
firstStringValue(
|
|
203
|
+
options.merge_recommendation,
|
|
204
|
+
record.merge_recommendation,
|
|
205
|
+
stopCondition.merge_recommendation,
|
|
206
|
+
raw.merge_recommendation
|
|
207
|
+
)
|
|
208
|
+
);
|
|
209
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
210
|
+
return {
|
|
211
|
+
kind: options.kind || "run_result",
|
|
212
|
+
status: publicState.status,
|
|
213
|
+
result_label: publicState.result_label,
|
|
214
|
+
policy_state: publicState.policy_state,
|
|
215
|
+
proof_complete: publicState.proof_complete,
|
|
216
|
+
claims: {
|
|
217
|
+
proof_passed: publicState.proof_passed,
|
|
218
|
+
ship_authorized: publicState.ship_authorized,
|
|
219
|
+
merge_ready: publicState.merge_ready,
|
|
220
|
+
sync_allowed: publicState.sync_allowed,
|
|
221
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
222
|
+
},
|
|
223
|
+
ship_control: {
|
|
224
|
+
ship_held: publicState.ship_held,
|
|
225
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
226
|
+
ship_authorized: publicState.ship_authorized
|
|
227
|
+
},
|
|
228
|
+
handoff: {
|
|
229
|
+
merge_ready: publicState.merge_ready,
|
|
230
|
+
sync_allowed: publicState.sync_allowed,
|
|
231
|
+
merge_recommendation: mergeRecommendation
|
|
232
|
+
},
|
|
233
|
+
checkpoint_audit: checkpointAudit,
|
|
234
|
+
disclosures: {
|
|
235
|
+
ship_control: true,
|
|
236
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
237
|
+
required: [...publicState.required_disclosures],
|
|
238
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
239
|
+
},
|
|
240
|
+
public_state: publicState
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
244
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
245
|
+
...options,
|
|
246
|
+
kind: "hosted_proof_view"
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
250
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
251
|
+
...options,
|
|
252
|
+
kind: "agent_summary"
|
|
253
|
+
});
|
|
254
|
+
}
|
|
190
255
|
// Annotate the CommonJS export names for ESM import in node:
|
|
191
256
|
0 && (module.exports = {
|
|
192
257
|
riddleProofPublicStateAllowsClaim,
|
|
193
258
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
194
259
|
riddleProofPublicStateMergeRecommendation,
|
|
260
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
261
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
262
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
195
263
|
summarizeRiddleProofPublicState
|
|
196
264
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from '../public-state.cjs';
|
|
1
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from '../public-state.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from '../public-state.js';
|
|
1
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from '../public-state.js';
|
|
@@ -2,12 +2,18 @@ import {
|
|
|
2
2
|
riddleProofPublicStateAllowsClaim,
|
|
3
3
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
4
4
|
riddleProofPublicStateMergeRecommendation,
|
|
5
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
6
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
7
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
5
8
|
summarizeRiddleProofPublicState
|
|
6
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-6PSM6KB2.js";
|
|
7
10
|
import "../chunk-MLKGABMK.js";
|
|
8
11
|
export {
|
|
9
12
|
riddleProofPublicStateAllowsClaim,
|
|
10
13
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
11
14
|
riddleProofPublicStateMergeRecommendation,
|
|
15
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
16
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
17
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
12
18
|
summarizeRiddleProofPublicState
|
|
13
19
|
};
|
package/dist/spec/result.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
publicStateForRunState,
|
|
13
13
|
recordValue,
|
|
14
14
|
shipControlStateFor
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-UK7G4RKA.js";
|
|
16
|
+
import "../chunk-6PSM6KB2.js";
|
|
17
17
|
import "../chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
applyShipControlState,
|
package/dist/spec/run-card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2OTPBHSM.js";
|
|
5
|
+
import "../chunk-ZB5XBHWD.js";
|
|
6
|
+
import "../chunk-UK7G4RKA.js";
|
|
7
|
+
import "../chunk-6PSM6KB2.js";
|
|
8
8
|
import "../chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/spec/state.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
normalizePrLifecycleState,
|
|
10
10
|
normalizeRunParams,
|
|
11
11
|
setRunStatus
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-NMQIWBSB.js";
|
|
13
|
+
import "../chunk-2OTPBHSM.js";
|
|
14
|
+
import "../chunk-ZB5XBHWD.js";
|
|
15
|
+
import "../chunk-UK7G4RKA.js";
|
|
16
|
+
import "../chunk-6PSM6KB2.js";
|
|
17
17
|
import "../chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
package/dist/state.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
normalizePrLifecycleState,
|
|
10
10
|
normalizeRunParams,
|
|
11
11
|
setRunStatus
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-NMQIWBSB.js";
|
|
13
|
+
import "./chunk-2OTPBHSM.js";
|
|
14
|
+
import "./chunk-ZB5XBHWD.js";
|
|
15
|
+
import "./chunk-UK7G4RKA.js";
|
|
16
|
+
import "./chunk-6PSM6KB2.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|