@riddledc/riddle-proof 0.8.55 → 0.8.57
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 +2 -2
- package/dist/adapters/codex.js +2 -2
- package/dist/adapters/local-agent.js +2 -2
- package/dist/adapters/openclaw.js +5 -5
- package/dist/advanced/engine-harness.cjs +64 -20
- package/dist/advanced/engine-harness.js +5 -5
- package/dist/advanced/index.cjs +64 -20
- package/dist/advanced/index.d.cts +1 -1
- package/dist/advanced/index.d.ts +1 -1
- package/dist/advanced/index.js +6 -6
- package/dist/advanced/proof-run-engine.d.cts +1 -1
- package/dist/advanced/proof-run-engine.d.ts +1 -1
- package/dist/advanced/runner.cjs +5 -0
- package/dist/advanced/runner.js +5 -5
- package/dist/checkpoint.cjs +4 -0
- package/dist/checkpoint.js +2 -2
- package/dist/{chunk-W44XEGYW.js → chunk-CUBYSWZT.js} +5 -0
- package/dist/{chunk-QGE3KBRL.js → chunk-GHBNDHG7.js} +60 -24
- package/dist/{chunk-F65S5LT2.js → chunk-JLOZTVXU.js} +2 -2
- package/dist/{chunk-6KYXX4OE.js → chunk-JR7GFTLS.js} +89 -2
- package/dist/{chunk-NYRMPWJB.js → chunk-KNPCWWF3.js} +2 -2
- package/dist/{chunk-MYMTAVGP.js → chunk-LUFT7AGY.js} +4 -4
- package/dist/{chunk-QUK3SG24.js → chunk-MOTQNIZX.js} +5 -1
- package/dist/{chunk-SONWF3FQ.js → chunk-RS4HJLJQ.js} +1 -1
- package/dist/{chunk-J2ZNL3H3.js → chunk-TTB3ZAVX.js} +2 -2
- package/dist/{chunk-Q5GYD5RG.js → chunk-UZIX7M7D.js} +4 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli.cjs +153 -22
- package/dist/cli.js +8 -8
- package/dist/codex-exec-agent.js +2 -2
- package/dist/engine-harness.cjs +64 -20
- package/dist/engine-harness.js +5 -5
- package/dist/index.cjs +155 -22
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -8
- package/dist/local-agent.js +2 -2
- package/dist/openclaw.js +5 -5
- package/dist/pr-comment.cjs +89 -2
- package/dist/pr-comment.d.cts +18 -1
- package/dist/pr-comment.d.ts +18 -1
- package/dist/pr-comment.js +1 -1
- package/dist/{proof-run-engine-MiKZt9oY.d.ts → proof-run-engine-BqRoA3Do.d.ts} +3 -3
- package/dist/{proof-run-engine-Baiv6l3A.d.cts → proof-run-engine-DpChFR5H.d.cts} +3 -3
- package/dist/proof-run-engine.d.cts +1 -1
- package/dist/proof-run-engine.d.ts +1 -1
- package/dist/result.cjs +6 -0
- package/dist/result.d.cts +2 -1
- package/dist/result.d.ts +2 -1
- package/dist/result.js +3 -1
- package/dist/run-card.js +3 -3
- package/dist/runner.cjs +5 -0
- package/dist/runner.js +5 -5
- package/dist/spec/checkpoint.cjs +4 -0
- package/dist/spec/checkpoint.js +2 -2
- package/dist/spec/index.cjs +11 -0
- package/dist/spec/index.d.cts +1 -1
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +6 -4
- package/dist/spec/result.cjs +6 -0
- package/dist/spec/result.d.cts +1 -1
- package/dist/spec/result.d.ts +1 -1
- package/dist/spec/result.js +3 -1
- package/dist/spec/run-card.js +3 -3
- package/dist/spec/state.cjs +4 -0
- package/dist/spec/state.js +4 -4
- package/dist/state.cjs +4 -0
- package/dist/state.js +4 -4
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3493,6 +3493,7 @@ __export(index_exports, {
|
|
|
3493
3493
|
extractRiddleProofProfileResult: () => extractRiddleProofProfileResult,
|
|
3494
3494
|
getRiddleBalance: () => getRiddleBalance,
|
|
3495
3495
|
isDuplicateCheckpointResponse: () => isDuplicateCheckpointResponse,
|
|
3496
|
+
isProtectedFinalStatus: () => isProtectedFinalStatus,
|
|
3496
3497
|
isRiddleProofPlayabilityMode: () => isRiddleProofPlayabilityMode,
|
|
3497
3498
|
isSuccessfulStatus: () => isSuccessfulStatus,
|
|
3498
3499
|
isTerminalRiddleJobStatus: () => isTerminalRiddleJobStatus,
|
|
@@ -3543,6 +3544,9 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3543
3544
|
function isTerminalStatus(status) {
|
|
3544
3545
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
3545
3546
|
}
|
|
3547
|
+
function isProtectedFinalStatus(status) {
|
|
3548
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
3549
|
+
}
|
|
3546
3550
|
function isSuccessfulStatus(status) {
|
|
3547
3551
|
return status !== "blocked" && status !== "failed";
|
|
3548
3552
|
}
|
|
@@ -3756,6 +3760,7 @@ function createRunResult(input) {
|
|
|
3756
3760
|
const state = input.metadata ? applyTerminalMetadata(input.state, input.metadata) : input.state;
|
|
3757
3761
|
state.status = status;
|
|
3758
3762
|
state.ok = ok;
|
|
3763
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
3759
3764
|
applyShipControlState(state, { status, raw: input.raw });
|
|
3760
3765
|
return compactRecord({
|
|
3761
3766
|
ok,
|
|
@@ -4503,6 +4508,8 @@ function checkpointSummaryFromState(state, engineStatePath2) {
|
|
|
4503
4508
|
const packets = history.filter((entry) => entry.packet);
|
|
4504
4509
|
const responses = acceptedCheckpointResponseEntries(state);
|
|
4505
4510
|
const duplicateResponses = events.filter((event) => event.kind === "checkpoint.response.duplicate");
|
|
4511
|
+
const rejectedResponses = events.filter((event) => event.kind === "checkpoint.response.rejected");
|
|
4512
|
+
const ignoredResponses = events.filter((event) => event.kind === "checkpoint.response.ignored");
|
|
4506
4513
|
const latestPacketEntry = [...history].reverse().find((entry) => entry.packet);
|
|
4507
4514
|
const latestResponseEntry = [...responses].reverse().find((entry) => entry.response);
|
|
4508
4515
|
const latestPacket = state.checkpoint_packet || latestPacketEntry?.packet;
|
|
@@ -4518,6 +4525,8 @@ function checkpointSummaryFromState(state, engineStatePath2) {
|
|
|
4518
4525
|
packet_count: packets.length,
|
|
4519
4526
|
response_count: responses.length,
|
|
4520
4527
|
duplicate_response_count: duplicateResponses.length,
|
|
4528
|
+
rejected_response_count: rejectedResponses.length,
|
|
4529
|
+
ignored_response_count: ignoredResponses.length,
|
|
4521
4530
|
latest_checkpoint: state.checkpoint_packet?.checkpoint || latestResponse?.checkpoint || state.last_checkpoint || null,
|
|
4522
4531
|
latest_stage: state.checkpoint_packet?.stage || latestResponse?.continue_with_stage || state.current_stage || null,
|
|
4523
4532
|
latest_kind: state.checkpoint_packet?.kind || latestPacket?.kind || null,
|
|
@@ -5046,6 +5055,7 @@ function createRunStatusSnapshot(state, at = timestamp2()) {
|
|
|
5046
5055
|
function setRunStatus(state, status, at = timestamp2()) {
|
|
5047
5056
|
state.status = status;
|
|
5048
5057
|
state.ok = status !== "blocked" && status !== "failed";
|
|
5058
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
5049
5059
|
state.updated_at = at;
|
|
5050
5060
|
return state;
|
|
5051
5061
|
}
|
|
@@ -5630,9 +5640,6 @@ function loadRunState(input) {
|
|
|
5630
5640
|
state_path: statePath
|
|
5631
5641
|
});
|
|
5632
5642
|
}
|
|
5633
|
-
function isProtectedFinalStatus(status) {
|
|
5634
|
-
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
5635
|
-
}
|
|
5636
5643
|
function shouldPreserveFinalizedRunState(filePath, incoming) {
|
|
5637
5644
|
const existing = readJson(filePath);
|
|
5638
5645
|
if (!existing?.finalized || !isProtectedFinalStatus(existing.status)) return false;
|
|
@@ -6204,19 +6211,38 @@ function appendCheckpointResponse(state, response, input = {}) {
|
|
|
6204
6211
|
setRunStatus(state, "running", at);
|
|
6205
6212
|
persist(state);
|
|
6206
6213
|
}
|
|
6214
|
+
function checkpointResponseRejectedBlocker(state, input) {
|
|
6215
|
+
const packet = input.packet || null;
|
|
6216
|
+
const response = input.response || null;
|
|
6217
|
+
appendRunEvent(state, {
|
|
6218
|
+
kind: "checkpoint.response.rejected",
|
|
6219
|
+
checkpoint: response?.checkpoint || packet?.checkpoint || input.blocker.checkpoint || null,
|
|
6220
|
+
stage: packet?.stage || state.current_stage || "author",
|
|
6221
|
+
summary: input.blocker.message,
|
|
6222
|
+
details: compactRecord({
|
|
6223
|
+
code: input.blocker.code,
|
|
6224
|
+
decision: response?.decision,
|
|
6225
|
+
resume_token: response?.resume_token,
|
|
6226
|
+
packet_id: response?.packet_id,
|
|
6227
|
+
source: response?.source
|
|
6228
|
+
})
|
|
6229
|
+
});
|
|
6230
|
+
return { blocker: input.blocker };
|
|
6231
|
+
}
|
|
6207
6232
|
function checkpointResponseContinuation(state, value) {
|
|
6208
6233
|
if (!value) return {};
|
|
6209
6234
|
const packet = state.checkpoint_packet;
|
|
6210
6235
|
const response = normalizeCheckpointResponse(value);
|
|
6211
6236
|
if (!response) {
|
|
6212
|
-
return {
|
|
6237
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6238
|
+
packet,
|
|
6213
6239
|
blocker: {
|
|
6214
6240
|
code: "checkpoint_response_invalid",
|
|
6215
6241
|
checkpoint: packet?.checkpoint || state.last_checkpoint || null,
|
|
6216
6242
|
message: "Checkpoint response was not a valid riddle-proof.checkpoint_response.v1 object.",
|
|
6217
6243
|
details: { checkpoint_packet: packet || null, checkpoint_summary: checkpointSummaryFromState(state) }
|
|
6218
6244
|
}
|
|
6219
|
-
};
|
|
6245
|
+
});
|
|
6220
6246
|
}
|
|
6221
6247
|
if (isDuplicateCheckpointResponse(state, response)) {
|
|
6222
6248
|
const stage = packet?.stage || state.current_stage || "author";
|
|
@@ -6247,17 +6273,20 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6247
6273
|
};
|
|
6248
6274
|
}
|
|
6249
6275
|
if (!packet) {
|
|
6250
|
-
return {
|
|
6276
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6277
|
+
response,
|
|
6251
6278
|
blocker: {
|
|
6252
6279
|
code: "checkpoint_response_without_packet",
|
|
6253
6280
|
checkpoint: response.checkpoint,
|
|
6254
6281
|
message: "A checkpoint response was supplied, but the run state has no pending checkpoint packet.",
|
|
6255
6282
|
details: { response, checkpoint_summary: checkpointSummaryFromState(state) }
|
|
6256
6283
|
}
|
|
6257
|
-
};
|
|
6284
|
+
});
|
|
6258
6285
|
}
|
|
6259
6286
|
if (response.run_id !== packet.run_id || response.checkpoint !== packet.checkpoint) {
|
|
6260
|
-
return {
|
|
6287
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6288
|
+
packet,
|
|
6289
|
+
response,
|
|
6261
6290
|
blocker: {
|
|
6262
6291
|
code: "checkpoint_response_mismatch",
|
|
6263
6292
|
checkpoint: packet.checkpoint,
|
|
@@ -6268,10 +6297,12 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6268
6297
|
actual: { run_id: response.run_id, checkpoint: response.checkpoint }
|
|
6269
6298
|
}
|
|
6270
6299
|
}
|
|
6271
|
-
};
|
|
6300
|
+
});
|
|
6272
6301
|
}
|
|
6273
6302
|
if (packet.resume_token && response.resume_token !== packet.resume_token) {
|
|
6274
|
-
return {
|
|
6303
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6304
|
+
packet,
|
|
6305
|
+
response,
|
|
6275
6306
|
blocker: {
|
|
6276
6307
|
code: "checkpoint_response_resume_token_mismatch",
|
|
6277
6308
|
checkpoint: packet.checkpoint,
|
|
@@ -6282,10 +6313,12 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6282
6313
|
actual_resume_token: response.resume_token || null
|
|
6283
6314
|
}
|
|
6284
6315
|
}
|
|
6285
|
-
};
|
|
6316
|
+
});
|
|
6286
6317
|
}
|
|
6287
6318
|
if (packet.packet_id && response.packet_id !== packet.packet_id) {
|
|
6288
|
-
return {
|
|
6319
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6320
|
+
packet,
|
|
6321
|
+
response,
|
|
6289
6322
|
blocker: {
|
|
6290
6323
|
code: "checkpoint_response_packet_id_mismatch",
|
|
6291
6324
|
checkpoint: packet.checkpoint,
|
|
@@ -6298,10 +6331,12 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6298
6331
|
actual_resume_token: response.resume_token || null
|
|
6299
6332
|
}
|
|
6300
6333
|
}
|
|
6301
|
-
};
|
|
6334
|
+
});
|
|
6302
6335
|
}
|
|
6303
6336
|
if (!packet.allowed_decisions.includes(response.decision)) {
|
|
6304
|
-
return {
|
|
6337
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6338
|
+
packet,
|
|
6339
|
+
response,
|
|
6305
6340
|
blocker: {
|
|
6306
6341
|
code: "checkpoint_response_decision_not_allowed",
|
|
6307
6342
|
checkpoint: packet.checkpoint,
|
|
@@ -6313,7 +6348,7 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6313
6348
|
response
|
|
6314
6349
|
}
|
|
6315
6350
|
}
|
|
6316
|
-
};
|
|
6351
|
+
});
|
|
6317
6352
|
}
|
|
6318
6353
|
const base = {
|
|
6319
6354
|
action: "run",
|
|
@@ -6323,14 +6358,16 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6323
6358
|
if (response.decision === "author_packet") {
|
|
6324
6359
|
const payload = authorPacketPayloadFromCheckpointResponse(response);
|
|
6325
6360
|
if (!payload) {
|
|
6326
|
-
return {
|
|
6361
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6362
|
+
packet,
|
|
6363
|
+
response,
|
|
6327
6364
|
blocker: {
|
|
6328
6365
|
code: "checkpoint_author_packet_missing",
|
|
6329
6366
|
checkpoint: packet.checkpoint,
|
|
6330
6367
|
message: "Checkpoint response decision=author_packet did not include a proof_plan and capture_script payload.",
|
|
6331
6368
|
details: { stage: packet.stage, response }
|
|
6332
6369
|
}
|
|
6333
|
-
};
|
|
6370
|
+
});
|
|
6334
6371
|
}
|
|
6335
6372
|
state.proof_contract = proofContractFromAuthorCheckpointResponse(response, packet, payload);
|
|
6336
6373
|
appendCheckpointResponse(state, response);
|
|
@@ -6359,14 +6396,16 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6359
6396
|
const workdir = nonEmptyString(packet.state_excerpt?.after_worktree) || state.worktree_path;
|
|
6360
6397
|
if (workdir) state.worktree_path = workdir;
|
|
6361
6398
|
if (!hasGitDiff(workdir)) {
|
|
6362
|
-
return {
|
|
6399
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6400
|
+
packet,
|
|
6401
|
+
response,
|
|
6363
6402
|
blocker: {
|
|
6364
6403
|
code: "implementation_diff_missing",
|
|
6365
6404
|
checkpoint: packet.checkpoint,
|
|
6366
6405
|
message: "Checkpoint response claimed implementation_complete, but the after worktree has no detectable git diff.",
|
|
6367
6406
|
details: { stage: packet.stage, worktree_path: workdir || null, response }
|
|
6368
6407
|
}
|
|
6369
|
-
};
|
|
6408
|
+
});
|
|
6370
6409
|
}
|
|
6371
6410
|
appendCheckpointResponse(state, response);
|
|
6372
6411
|
return {
|
|
@@ -6415,7 +6454,13 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6415
6454
|
response,
|
|
6416
6455
|
code: "checkpoint_response_source_not_trusted"
|
|
6417
6456
|
});
|
|
6418
|
-
if (sourceBlocker)
|
|
6457
|
+
if (sourceBlocker) {
|
|
6458
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6459
|
+
packet,
|
|
6460
|
+
response,
|
|
6461
|
+
blocker: sourceBlocker
|
|
6462
|
+
});
|
|
6463
|
+
}
|
|
6419
6464
|
appendCheckpointResponse(state, response);
|
|
6420
6465
|
if (state.request.ship_mode !== "ship" && proofAssessmentRequestsShip(assessment)) {
|
|
6421
6466
|
const result = {
|
|
@@ -19892,6 +19937,20 @@ function numberValue4(value) {
|
|
|
19892
19937
|
function booleanValue2(value) {
|
|
19893
19938
|
return typeof value === "boolean" ? value : void 0;
|
|
19894
19939
|
}
|
|
19940
|
+
function firstStringValue(...values) {
|
|
19941
|
+
for (const value of values) {
|
|
19942
|
+
const text = stringValue6(value);
|
|
19943
|
+
if (text) return text;
|
|
19944
|
+
}
|
|
19945
|
+
return void 0;
|
|
19946
|
+
}
|
|
19947
|
+
function firstBooleanValue(...values) {
|
|
19948
|
+
for (const value of values) {
|
|
19949
|
+
const bool = booleanValue2(value);
|
|
19950
|
+
if (typeof bool === "boolean") return bool;
|
|
19951
|
+
}
|
|
19952
|
+
return void 0;
|
|
19953
|
+
}
|
|
19895
19954
|
function artifactKind(name, url) {
|
|
19896
19955
|
const target = `${name} ${url}`.toLowerCase();
|
|
19897
19956
|
if (/\.(png|jpe?g|gif|webp|avif|svg)(\?|#|$)/.test(target)) return "image";
|
|
@@ -19968,20 +20027,55 @@ function selectPrimaryImage(artifacts) {
|
|
|
19968
20027
|
const images = artifacts.filter((artifact) => artifact.kind === "image");
|
|
19969
20028
|
return images.find((artifact) => /after|proof|screenshot/i.test(artifact.name)) || images[0];
|
|
19970
20029
|
}
|
|
20030
|
+
function firstRecordValue(...values) {
|
|
20031
|
+
for (const value of values) {
|
|
20032
|
+
const record = asRecord(value);
|
|
20033
|
+
if (Object.keys(record).length) return record;
|
|
20034
|
+
}
|
|
20035
|
+
return void 0;
|
|
20036
|
+
}
|
|
20037
|
+
function checkpointSummaryFrom(...values) {
|
|
20038
|
+
const record = firstRecordValue(...values);
|
|
20039
|
+
if (!record) return void 0;
|
|
20040
|
+
const summary = {
|
|
20041
|
+
pending: booleanValue2(record.pending),
|
|
20042
|
+
response_count: numberValue4(record.response_count),
|
|
20043
|
+
rejected_response_count: numberValue4(record.rejected_response_count),
|
|
20044
|
+
ignored_response_count: numberValue4(record.ignored_response_count),
|
|
20045
|
+
duplicate_response_count: numberValue4(record.duplicate_response_count),
|
|
20046
|
+
latest_decision: stringValue6(record.latest_decision),
|
|
20047
|
+
latest_packet_id: stringValue6(record.latest_packet_id),
|
|
20048
|
+
latest_resume_token: stringValue6(record.latest_resume_token)
|
|
20049
|
+
};
|
|
20050
|
+
return Object.values(summary).some((value) => typeof value !== "undefined") ? summary : void 0;
|
|
20051
|
+
}
|
|
19971
20052
|
function summarizeRiddleProofPrComment(input) {
|
|
19972
20053
|
const runResponse = asRecord(input.runResponse);
|
|
19973
20054
|
const result = asRecord(input.result);
|
|
19974
20055
|
const proofResult = asRecord(runResponse.proofResult);
|
|
19975
20056
|
const preview = asRecord(runResponse.preview);
|
|
20057
|
+
const resultRunCard = asRecord(result.run_card);
|
|
20058
|
+
const stopCondition = asRecord(resultRunCard.stop_condition);
|
|
20059
|
+
const resultDetails = asRecord(result.details);
|
|
20060
|
+
const resultRaw = asRecord(result.raw);
|
|
20061
|
+
const rawDetails = asRecord(resultRaw.details);
|
|
19976
20062
|
const artifacts = collectArtifacts(runResponse);
|
|
19977
20063
|
const pages = pageSummaries(result);
|
|
19978
20064
|
const checkSource = { ...result };
|
|
19979
20065
|
delete checkSource.ok;
|
|
19980
20066
|
const nestedChecks = summarizeExplicitChecks(checkSource);
|
|
19981
20067
|
const ok = booleanValue2(result.ok) ?? booleanValue2(runResponse.ok) ?? null;
|
|
20068
|
+
const checkpointSummary = checkpointSummaryFrom(
|
|
20069
|
+
result.checkpoint_summary,
|
|
20070
|
+
stopCondition.checkpoint_summary,
|
|
20071
|
+
resultDetails.checkpoint_summary,
|
|
20072
|
+
rawDetails.checkpoint_summary,
|
|
20073
|
+
proofResult.checkpoint_summary
|
|
20074
|
+
);
|
|
19982
20075
|
return {
|
|
19983
20076
|
ok,
|
|
19984
20077
|
status: stringValue6(proofResult.status),
|
|
20078
|
+
result_status: firstStringValue(result.status, stopCondition.status),
|
|
19985
20079
|
job_id: stringValue6(proofResult.job_id),
|
|
19986
20080
|
duration_ms: numberValue4(proofResult.duration_ms),
|
|
19987
20081
|
proof_url: stringValue6(runResponse.proofUrl),
|
|
@@ -19989,6 +20083,12 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
19989
20083
|
preview_url: stringValue6(preview.preview_url) || stringValue6(preview.url),
|
|
19990
20084
|
preview_publish_recovered: booleanValue2(preview.publish_recovered),
|
|
19991
20085
|
preview_publish_error: stringValue6(preview.publish_error),
|
|
20086
|
+
ship_held: firstBooleanValue(result.ship_held, stopCondition.ship_held, resultRaw.ship_held),
|
|
20087
|
+
shipping_disabled: firstBooleanValue(result.shipping_disabled, stopCondition.shipping_disabled, resultRaw.shipping_disabled),
|
|
20088
|
+
ship_authorized: firstBooleanValue(result.ship_authorized, stopCondition.ship_authorized, resultRaw.ship_authorized),
|
|
20089
|
+
proof_decision: firstStringValue(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
|
|
20090
|
+
merge_recommendation: firstStringValue(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation),
|
|
20091
|
+
checkpoint_summary: checkpointSummary,
|
|
19992
20092
|
passed_checks: nestedChecks.passed,
|
|
19993
20093
|
failed_checks: nestedChecks.failed,
|
|
19994
20094
|
pages,
|
|
@@ -20007,9 +20107,15 @@ function markdownLink(label, url) {
|
|
|
20007
20107
|
return `[${label.replace(/\]/g, "\\]")}](${url})`;
|
|
20008
20108
|
}
|
|
20009
20109
|
function resultLabel(summary) {
|
|
20010
|
-
if (summary.ok === true)
|
|
20110
|
+
if (summary.ok === true) {
|
|
20111
|
+
if (summary.result_status === "shipped") return "shipped";
|
|
20112
|
+
if (summary.result_status === "completed") return "completed";
|
|
20113
|
+
if (summary.ship_held === true) return "proof passed; ship held";
|
|
20114
|
+
if (summary.ship_authorized === true) return "passed; ship authorized";
|
|
20115
|
+
return "passed";
|
|
20116
|
+
}
|
|
20011
20117
|
if (summary.ok === false) return "failed";
|
|
20012
|
-
return summary.status || "recorded";
|
|
20118
|
+
return summary.result_status || summary.status || "recorded";
|
|
20013
20119
|
}
|
|
20014
20120
|
function artifactRank(artifact) {
|
|
20015
20121
|
const name = artifact.name.toLowerCase();
|
|
@@ -20021,6 +20127,25 @@ function artifactRank(artifact) {
|
|
|
20021
20127
|
if (artifact.kind === "image") return 20;
|
|
20022
20128
|
return 30;
|
|
20023
20129
|
}
|
|
20130
|
+
function formatBool(value) {
|
|
20131
|
+
return typeof value === "boolean" ? String(value) : "unknown";
|
|
20132
|
+
}
|
|
20133
|
+
function hasShipControl(summary) {
|
|
20134
|
+
return typeof summary.ship_held === "boolean" || typeof summary.shipping_disabled === "boolean" || typeof summary.ship_authorized === "boolean";
|
|
20135
|
+
}
|
|
20136
|
+
function checkpointSummaryLine(summary) {
|
|
20137
|
+
const accepted = summary.response_count ?? 0;
|
|
20138
|
+
const rejected = summary.rejected_response_count ?? 0;
|
|
20139
|
+
const ignored = summary.ignored_response_count ?? 0;
|
|
20140
|
+
const parts = [`${accepted} accepted`, `${rejected} rejected`, `${ignored} ignored`];
|
|
20141
|
+
if ((summary.duplicate_response_count ?? 0) > 0) parts.push(`${summary.duplicate_response_count} duplicate`);
|
|
20142
|
+
const state = summary.pending === true ? "pending" : summary.pending === false ? "complete" : "";
|
|
20143
|
+
return [
|
|
20144
|
+
parts.join(" / "),
|
|
20145
|
+
state,
|
|
20146
|
+
summary.latest_decision ? `latest decision \`${summary.latest_decision}\`` : ""
|
|
20147
|
+
].filter(Boolean).join("; ");
|
|
20148
|
+
}
|
|
20024
20149
|
function buildRiddleProofPrCommentMarkdown(input) {
|
|
20025
20150
|
const summary = summarizeRiddleProofPrComment(input);
|
|
20026
20151
|
const title = input.title?.trim() || "Riddle Proof Evidence";
|
|
@@ -20032,9 +20157,16 @@ function buildRiddleProofPrCommentMarkdown(input) {
|
|
|
20032
20157
|
];
|
|
20033
20158
|
if (input.goal?.trim()) lines.push(`**Goal:** ${input.goal.trim()}`);
|
|
20034
20159
|
if (input.successCriteria?.trim()) lines.push(`**Success criteria:** ${input.successCriteria.trim()}`);
|
|
20160
|
+
if (summary.result_status) lines.push(`**Evidence status:** ${summary.result_status}`);
|
|
20035
20161
|
if (summary.status) lines.push(`**Riddle job status:** ${summary.status}`);
|
|
20036
20162
|
if (summary.job_id) lines.push(`**Riddle job:** \`${summary.job_id}\``);
|
|
20037
20163
|
if (summary.duration_ms) lines.push(`**Duration:** ${formatDuration(summary.duration_ms)}`);
|
|
20164
|
+
if (hasShipControl(summary)) {
|
|
20165
|
+
lines.push(`**Ship control:** held=${formatBool(summary.ship_held)}, shipping_disabled=${formatBool(summary.shipping_disabled)}, authorized=${formatBool(summary.ship_authorized)}`);
|
|
20166
|
+
}
|
|
20167
|
+
if (summary.proof_decision) lines.push(`**Proof decision:** \`${summary.proof_decision}\``);
|
|
20168
|
+
if (summary.merge_recommendation) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
|
|
20169
|
+
if (summary.checkpoint_summary) lines.push(`**Checkpoints:** ${checkpointSummaryLine(summary.checkpoint_summary)}`);
|
|
20038
20170
|
if (summary.proof_url) lines.push(`**Proof URL:** ${markdownLink(summary.proof_url, summary.proof_url)}`);
|
|
20039
20171
|
if (summary.preview_id || summary.preview_url) {
|
|
20040
20172
|
const previewLabel = summary.preview_id ? `\`${summary.preview_id}\`` : "preview";
|
|
@@ -20166,6 +20298,7 @@ function buildRiddleProofPrCommentMarkdown(input) {
|
|
|
20166
20298
|
extractRiddleProofProfileResult,
|
|
20167
20299
|
getRiddleBalance,
|
|
20168
20300
|
isDuplicateCheckpointResponse,
|
|
20301
|
+
isProtectedFinalStatus,
|
|
20169
20302
|
isRiddleProofPlayabilityMode,
|
|
20170
20303
|
isSuccessfulStatus,
|
|
20171
20304
|
isTerminalRiddleJobStatus,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofCheckpointArtifact, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, RiddleProofCheckpointRole, RiddleProofCheckpointRoutingHint, RiddleProofCheckpointSummary, RiddleProofCheckpointVisibility, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofProofContract, RiddleProofRunCard, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofViewportCapture, RiddleProofViewportMatrixStatus, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.cjs';
|
|
2
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from './result.cjs';
|
|
2
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from './result.cjs';
|
|
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';
|
|
@@ -12,4 +12,4 @@ export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
|
|
|
12
12
|
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayBoundsOffender, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayResponsiveViewportEvidence, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.cjs';
|
|
13
13
|
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, RiddleProofProfileArtifactCompleteness, 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, applyRiddleProofProfileArtifactCompleteness, assessRiddleProofProfileArtifactCompleteness, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.cjs';
|
|
14
14
|
export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RiddleApiError, RiddleApiKeySource, RiddleBalanceResult, RiddleClientConfig, RiddleFetch, RiddlePollJobOptions, RiddlePollJobResult, RiddlePollProgressSnapshot, RiddlePollSummary, RiddlePreviewDeployProgressSnapshot, RiddlePreviewDeployResult, RiddlePreviewDeployStage, RiddlePreviewFramework, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, getRiddleBalance, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from './riddle-client.cjs';
|
|
15
|
-
export { RIDDLE_PROOF_PR_COMMENT_MARKER, RiddleProofPrCommentArtifact, RiddleProofPrCommentArtifactKind, RiddleProofPrCommentInput, RiddleProofPrCommentPageSummary, RiddleProofPrCommentSummary, buildRiddleProofPrCommentMarkdown, summarizeRiddleProofPrComment } from './pr-comment.cjs';
|
|
15
|
+
export { RIDDLE_PROOF_PR_COMMENT_MARKER, RiddleProofPrCommentArtifact, RiddleProofPrCommentArtifactKind, RiddleProofPrCommentCheckpointSummary, RiddleProofPrCommentInput, RiddleProofPrCommentPageSummary, RiddleProofPrCommentSummary, buildRiddleProofPrCommentMarkdown, summarizeRiddleProofPrComment } from './pr-comment.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofCheckpointArtifact, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, RiddleProofCheckpointRole, RiddleProofCheckpointRoutingHint, RiddleProofCheckpointSummary, RiddleProofCheckpointVisibility, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofProofContract, RiddleProofRunCard, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofViewportCapture, RiddleProofViewportMatrixStatus, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.js';
|
|
2
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from './result.js';
|
|
2
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from './result.js';
|
|
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';
|
|
@@ -12,4 +12,4 @@ export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
|
|
|
12
12
|
export { AssessBasicGameplayOptions, AttachBasicGameplayArtifactOptions, BASIC_GAMEPLAY_ACTION_TYPES, BASIC_GAMEPLAY_PROGRESS_CHECK_TYPES, BasicGameplayActionResult, BasicGameplayActionType, BasicGameplayArtifactResolution, BasicGameplayAssessmentSummary, BasicGameplayBoundsOffender, BasicGameplayCanvasState, BasicGameplayCatchRecord, BasicGameplayChangeSummary, BasicGameplayFailureCode, BasicGameplayFixReference, BasicGameplayMetric, BasicGameplayMobileEvidence, BasicGameplayProgressCheckType, BasicGameplayProgressionCheck, BasicGameplayProofArtifact, BasicGameplayResponsiveViewportEvidence, BasicGameplayRouteReference, BasicGameplaySnapshot, BasicGameplaySuiteFailure, BasicGameplayWarningCode, CreateBasicGameplayCatchSummaryInput, RIDDLE_PROOF_BASIC_GAMEPLAY_ASSESSMENT_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_CATCH_VERSION, RIDDLE_PROOF_BASIC_GAMEPLAY_VERSION, RiddleProofBasicGameplayAssessment, RiddleProofBasicGameplayCatchSummary, RiddleProofBasicGameplayEvidence, RiddleProofBasicGameplayRouteAssessment, RiddleProofBasicGameplayRouteEvidence, assessBasicGameplayEvidence, assessBasicGameplayProgressionCheck, assessBasicGameplayProgressionChecks, assessBasicGameplayRoute, attachBasicGameplayArtifactScreenshotHashes, augmentBasicGameplayAssessmentWithProgressionChecks, compactBasicGameplayText, createBasicGameplayCatchRecords, createBasicGameplayCatchSummary, extractBasicGameplayEvidence, resolveBasicGameplayProgressionCheckWithArtifactScreenshots, sanitizeBasicGameplayJsonString } from './basic-gameplay.js';
|
|
13
13
|
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, RiddleProofProfileArtifactCompleteness, 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, applyRiddleProofProfileArtifactCompleteness, assessRiddleProofProfileArtifactCompleteness, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult } from './profile.js';
|
|
14
14
|
export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RiddleApiError, RiddleApiKeySource, RiddleBalanceResult, RiddleClientConfig, RiddleFetch, RiddlePollJobOptions, RiddlePollJobResult, RiddlePollProgressSnapshot, RiddlePollSummary, RiddlePreviewDeployProgressSnapshot, RiddlePreviewDeployResult, RiddlePreviewDeployStage, RiddlePreviewFramework, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, getRiddleBalance, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from './riddle-client.js';
|
|
15
|
-
export { RIDDLE_PROOF_PR_COMMENT_MARKER, RiddleProofPrCommentArtifact, RiddleProofPrCommentArtifactKind, RiddleProofPrCommentInput, RiddleProofPrCommentPageSummary, RiddleProofPrCommentSummary, buildRiddleProofPrCommentMarkdown, summarizeRiddleProofPrComment } from './pr-comment.js';
|
|
15
|
+
export { RIDDLE_PROOF_PR_COMMENT_MARKER, RiddleProofPrCommentArtifact, RiddleProofPrCommentArtifactKind, RiddleProofPrCommentCheckpointSummary, RiddleProofPrCommentInput, RiddleProofPrCommentPageSummary, RiddleProofPrCommentSummary, buildRiddleProofPrCommentMarkdown, summarizeRiddleProofPrComment } from './pr-comment.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JLOZTVXU.js";
|
|
4
4
|
import "./chunk-6F4PWJZI.js";
|
|
5
5
|
import {
|
|
6
6
|
RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
|
60
60
|
buildRiddleProofPrCommentMarkdown,
|
|
61
61
|
summarizeRiddleProofPrComment
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-JR7GFTLS.js";
|
|
63
63
|
import {
|
|
64
64
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
65
65
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
createDisabledRiddleProofAgentAdapter,
|
|
103
103
|
readRiddleProofRunStatus,
|
|
104
104
|
runRiddleProofEngineHarness
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-GHBNDHG7.js";
|
|
106
106
|
import {
|
|
107
107
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
|
108
108
|
appendRunEvent,
|
|
@@ -114,11 +114,11 @@ import {
|
|
|
114
114
|
normalizePrLifecycleState,
|
|
115
115
|
normalizeRunParams,
|
|
116
116
|
setRunStatus
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-UZIX7M7D.js";
|
|
118
118
|
import {
|
|
119
119
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
120
120
|
createRiddleProofRunCard
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-KNPCWWF3.js";
|
|
122
122
|
import "./chunk-EKZXU6MU.js";
|
|
123
123
|
import {
|
|
124
124
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -136,25 +136,26 @@ import {
|
|
|
136
136
|
normalizeCheckpointResponse,
|
|
137
137
|
proofContractFromAuthorCheckpointResponse,
|
|
138
138
|
statePathsForRunState
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-MOTQNIZX.js";
|
|
140
140
|
import "./chunk-JFQXAJH2.js";
|
|
141
141
|
import {
|
|
142
142
|
createCodexExecAgentAdapter,
|
|
143
143
|
createCodexExecJsonRunner,
|
|
144
144
|
runCodexExecAgentDoctor
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-RS4HJLJQ.js";
|
|
146
146
|
import {
|
|
147
147
|
applyShipControlState,
|
|
148
148
|
applyTerminalMetadata,
|
|
149
149
|
compactRecord,
|
|
150
150
|
createRunResult,
|
|
151
|
+
isProtectedFinalStatus,
|
|
151
152
|
isSuccessfulStatus,
|
|
152
153
|
isTerminalStatus,
|
|
153
154
|
nonEmptyString,
|
|
154
155
|
normalizeTerminalMetadata,
|
|
155
156
|
recordValue,
|
|
156
157
|
shipControlStateFor
|
|
157
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-CUBYSWZT.js";
|
|
158
159
|
import "./chunk-MLKGABMK.js";
|
|
159
160
|
export {
|
|
160
161
|
BASIC_GAMEPLAY_ACTION_TYPES,
|
|
@@ -243,6 +244,7 @@ export {
|
|
|
243
244
|
extractRiddleProofProfileResult,
|
|
244
245
|
getRiddleBalance,
|
|
245
246
|
isDuplicateCheckpointResponse,
|
|
247
|
+
isProtectedFinalStatus,
|
|
246
248
|
isRiddleProofPlayabilityMode,
|
|
247
249
|
isSuccessfulStatus,
|
|
248
250
|
isTerminalRiddleJobStatus,
|
package/dist/local-agent.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
createCodexExecAgentAdapter,
|
|
4
4
|
createCodexExecJsonRunner,
|
|
5
5
|
runCodexExecAgentDoctor
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-RS4HJLJQ.js";
|
|
7
|
+
import "./chunk-CUBYSWZT.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
createCodexExecAgentAdapter as createLocalAgentAdapter,
|
package/dist/openclaw.js
CHANGED
|
@@ -3,11 +3,11 @@ 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-
|
|
6
|
+
} from "./chunk-TTB3ZAVX.js";
|
|
7
|
+
import "./chunk-UZIX7M7D.js";
|
|
8
|
+
import "./chunk-KNPCWWF3.js";
|
|
9
|
+
import "./chunk-MOTQNIZX.js";
|
|
10
|
+
import "./chunk-CUBYSWZT.js";
|
|
11
11
|
import "./chunk-MLKGABMK.js";
|
|
12
12
|
export {
|
|
13
13
|
openClawIntegrationContext,
|