@riddledc/riddle-proof 0.5.9 → 0.5.10
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/{chunk-CNKNPJAF.js → chunk-7KP34QRG.js} +17 -11
- package/dist/engine-harness.cjs +17 -11
- package/dist/engine-harness.js +1 -1
- package/dist/index.cjs +17 -11
- package/dist/index.js +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
|
@@ -265,17 +265,9 @@ function proofAssessmentRequestsShip(payload) {
|
|
|
265
265
|
const continueStage = String(payload.continue_with_stage || "");
|
|
266
266
|
return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
|
|
267
267
|
}
|
|
268
|
-
function proofAssessmentContinuation(
|
|
268
|
+
function proofAssessmentContinuation(result, payload) {
|
|
269
269
|
const proof_assessment_json = jsonParam(payload);
|
|
270
|
-
|
|
271
|
-
return { ...baseContinuation(result), proof_assessment_json };
|
|
272
|
-
}
|
|
273
|
-
return {
|
|
274
|
-
action: "run",
|
|
275
|
-
state_path: String(result.state_path || ""),
|
|
276
|
-
advance_stage: "verify",
|
|
277
|
-
proof_assessment_json
|
|
278
|
-
};
|
|
270
|
+
return { ...baseContinuation(result), proof_assessment_json };
|
|
279
271
|
}
|
|
280
272
|
function contextFor(request, state, result) {
|
|
281
273
|
return {
|
|
@@ -599,7 +591,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
|
|
|
599
591
|
summary: assessment.summary,
|
|
600
592
|
details: { payload }
|
|
601
593
|
});
|
|
602
|
-
|
|
594
|
+
if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
|
|
595
|
+
return {
|
|
596
|
+
terminal: terminalResult(
|
|
597
|
+
state,
|
|
598
|
+
"ready_to_ship",
|
|
599
|
+
result,
|
|
600
|
+
assessment.summary || result.summary || "Riddle Proof is ready to ship.",
|
|
601
|
+
{
|
|
602
|
+
ship_held: true,
|
|
603
|
+
proof_assessment: payload
|
|
604
|
+
}
|
|
605
|
+
)
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
return { next: proofAssessmentContinuation(result, payload) };
|
|
603
609
|
}
|
|
604
610
|
if (checkpoint === "verify_agent_retry") {
|
|
605
611
|
const next = recommendedContinuation(result);
|
package/dist/engine-harness.cjs
CHANGED
|
@@ -3235,17 +3235,9 @@ function proofAssessmentRequestsShip(payload) {
|
|
|
3235
3235
|
const continueStage = String(payload.continue_with_stage || "");
|
|
3236
3236
|
return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
|
|
3237
3237
|
}
|
|
3238
|
-
function proofAssessmentContinuation(
|
|
3238
|
+
function proofAssessmentContinuation(result, payload) {
|
|
3239
3239
|
const proof_assessment_json = jsonParam(payload);
|
|
3240
|
-
|
|
3241
|
-
return { ...baseContinuation(result), proof_assessment_json };
|
|
3242
|
-
}
|
|
3243
|
-
return {
|
|
3244
|
-
action: "run",
|
|
3245
|
-
state_path: String(result.state_path || ""),
|
|
3246
|
-
advance_stage: "verify",
|
|
3247
|
-
proof_assessment_json
|
|
3248
|
-
};
|
|
3240
|
+
return { ...baseContinuation(result), proof_assessment_json };
|
|
3249
3241
|
}
|
|
3250
3242
|
function contextFor(request, state, result) {
|
|
3251
3243
|
return {
|
|
@@ -3569,7 +3561,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
|
|
|
3569
3561
|
summary: assessment.summary,
|
|
3570
3562
|
details: { payload }
|
|
3571
3563
|
});
|
|
3572
|
-
|
|
3564
|
+
if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
|
|
3565
|
+
return {
|
|
3566
|
+
terminal: terminalResult(
|
|
3567
|
+
state,
|
|
3568
|
+
"ready_to_ship",
|
|
3569
|
+
result,
|
|
3570
|
+
assessment.summary || result.summary || "Riddle Proof is ready to ship.",
|
|
3571
|
+
{
|
|
3572
|
+
ship_held: true,
|
|
3573
|
+
proof_assessment: payload
|
|
3574
|
+
}
|
|
3575
|
+
)
|
|
3576
|
+
};
|
|
3577
|
+
}
|
|
3578
|
+
return { next: proofAssessmentContinuation(result, payload) };
|
|
3573
3579
|
}
|
|
3574
3580
|
if (checkpoint === "verify_agent_retry") {
|
|
3575
3581
|
const next = recommendedContinuation(result);
|
package/dist/engine-harness.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3794,17 +3794,9 @@ function proofAssessmentRequestsShip(payload) {
|
|
|
3794
3794
|
const continueStage = String(payload.continue_with_stage || "");
|
|
3795
3795
|
return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
|
|
3796
3796
|
}
|
|
3797
|
-
function proofAssessmentContinuation(
|
|
3797
|
+
function proofAssessmentContinuation(result, payload) {
|
|
3798
3798
|
const proof_assessment_json = jsonParam(payload);
|
|
3799
|
-
|
|
3800
|
-
return { ...baseContinuation(result), proof_assessment_json };
|
|
3801
|
-
}
|
|
3802
|
-
return {
|
|
3803
|
-
action: "run",
|
|
3804
|
-
state_path: String(result.state_path || ""),
|
|
3805
|
-
advance_stage: "verify",
|
|
3806
|
-
proof_assessment_json
|
|
3807
|
-
};
|
|
3799
|
+
return { ...baseContinuation(result), proof_assessment_json };
|
|
3808
3800
|
}
|
|
3809
3801
|
function contextFor(request, state, result) {
|
|
3810
3802
|
return {
|
|
@@ -4128,7 +4120,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
|
|
|
4128
4120
|
summary: assessment.summary,
|
|
4129
4121
|
details: { payload }
|
|
4130
4122
|
});
|
|
4131
|
-
|
|
4123
|
+
if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
|
|
4124
|
+
return {
|
|
4125
|
+
terminal: terminalResult(
|
|
4126
|
+
state,
|
|
4127
|
+
"ready_to_ship",
|
|
4128
|
+
result,
|
|
4129
|
+
assessment.summary || result.summary || "Riddle Proof is ready to ship.",
|
|
4130
|
+
{
|
|
4131
|
+
ship_held: true,
|
|
4132
|
+
proof_assessment: payload
|
|
4133
|
+
}
|
|
4134
|
+
)
|
|
4135
|
+
};
|
|
4136
|
+
}
|
|
4137
|
+
return { next: proofAssessmentContinuation(result, payload) };
|
|
4132
4138
|
}
|
|
4133
4139
|
if (checkpoint === "verify_agent_retry") {
|
|
4134
4140
|
const next = recommendedContinuation(result);
|
package/dist/index.js
CHANGED
|
@@ -262,7 +262,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
262
262
|
blocking?: boolean;
|
|
263
263
|
details?: Record<string, unknown>;
|
|
264
264
|
ok: boolean;
|
|
265
|
-
action: "
|
|
265
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
266
266
|
state_path: string;
|
|
267
267
|
stage: any;
|
|
268
268
|
summary: string;
|
|
@@ -342,7 +342,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
342
342
|
continueWithStage?: WorkflowStage | null;
|
|
343
343
|
blocking?: boolean;
|
|
344
344
|
details?: Record<string, unknown>;
|
|
345
|
-
action: "
|
|
345
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
346
346
|
state_path: string;
|
|
347
347
|
stage: any;
|
|
348
348
|
checkpoint: string;
|
|
@@ -589,7 +589,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
589
589
|
error?: undefined;
|
|
590
590
|
} | {
|
|
591
591
|
ok: boolean;
|
|
592
|
-
action: "
|
|
592
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
593
593
|
state_path: string;
|
|
594
594
|
stage: any;
|
|
595
595
|
summary: string;
|
|
@@ -262,7 +262,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
262
262
|
blocking?: boolean;
|
|
263
263
|
details?: Record<string, unknown>;
|
|
264
264
|
ok: boolean;
|
|
265
|
-
action: "
|
|
265
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
266
266
|
state_path: string;
|
|
267
267
|
stage: any;
|
|
268
268
|
summary: string;
|
|
@@ -342,7 +342,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
342
342
|
continueWithStage?: WorkflowStage | null;
|
|
343
343
|
blocking?: boolean;
|
|
344
344
|
details?: Record<string, unknown>;
|
|
345
|
-
action: "
|
|
345
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
346
346
|
state_path: string;
|
|
347
347
|
stage: any;
|
|
348
348
|
checkpoint: string;
|
|
@@ -589,7 +589,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
589
589
|
error?: undefined;
|
|
590
590
|
} | {
|
|
591
591
|
ok: boolean;
|
|
592
|
-
action: "
|
|
592
|
+
action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
|
|
593
593
|
state_path: string;
|
|
594
594
|
stage: any;
|
|
595
595
|
summary: string;
|