@riddledc/riddle-proof 0.5.10 → 0.5.11
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-GVPCSXN7.js → chunk-7ZJAUEUN.js} +3 -0
- package/dist/{chunk-VSEKLCNU.js → chunk-F6VFKS7K.js} +1 -1
- package/dist/{chunk-7KP34QRG.js → chunk-URO4JVMA.js} +1 -1
- package/dist/engine-harness.cjs +5 -0
- package/dist/engine-harness.js +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.js +3 -3
- package/dist/openclaw.js +1 -1
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/dist/runner.js +2 -2
- package/dist/state.cjs +5 -0
- package/dist/state.js +1 -1
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compactRecord,
|
|
3
|
+
isTerminalStatus,
|
|
3
4
|
nonEmptyString,
|
|
4
5
|
recordValue
|
|
5
6
|
} from "./chunk-TMMKRKY5.js";
|
|
@@ -172,6 +173,8 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
172
173
|
return compactRecord({
|
|
173
174
|
run_id: runId,
|
|
174
175
|
status: state.status,
|
|
176
|
+
is_terminal: isTerminalStatus(state.status),
|
|
177
|
+
monitor_should_continue: !isTerminalStatus(state.status),
|
|
175
178
|
current_stage: state.current_stage ?? null,
|
|
176
179
|
state_path: state.state_path ?? null,
|
|
177
180
|
worktree_path: state.worktree_path ?? null,
|
package/dist/engine-harness.cjs
CHANGED
|
@@ -2623,6 +2623,9 @@ var import_node_path3 = __toESM(require("path"), 1);
|
|
|
2623
2623
|
var import_node_crypto2 = __toESM(require("crypto"), 1);
|
|
2624
2624
|
|
|
2625
2625
|
// src/result.ts
|
|
2626
|
+
function isTerminalStatus(status) {
|
|
2627
|
+
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
2628
|
+
}
|
|
2626
2629
|
function isSuccessfulStatus(status) {
|
|
2627
2630
|
return status !== "blocked" && status !== "failed";
|
|
2628
2631
|
}
|
|
@@ -2966,6 +2969,8 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
2966
2969
|
return compactRecord({
|
|
2967
2970
|
run_id: runId,
|
|
2968
2971
|
status: state.status,
|
|
2972
|
+
is_terminal: isTerminalStatus(state.status),
|
|
2973
|
+
monitor_should_continue: !isTerminalStatus(state.status),
|
|
2969
2974
|
current_stage: state.current_stage ?? null,
|
|
2970
2975
|
state_path: state.state_path ?? null,
|
|
2971
2976
|
worktree_path: state.worktree_path ?? null,
|
package/dist/engine-harness.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createDisabledRiddleProofAgentAdapter,
|
|
3
3
|
readRiddleProofRunStatus,
|
|
4
4
|
runRiddleProofEngineHarness
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-URO4JVMA.js";
|
|
6
|
+
import "./chunk-7ZJAUEUN.js";
|
|
7
7
|
import "./chunk-TMMKRKY5.js";
|
|
8
8
|
export {
|
|
9
9
|
createDisabledRiddleProofAgentAdapter,
|
package/dist/index.cjs
CHANGED
|
@@ -3022,6 +3022,8 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
3022
3022
|
return compactRecord({
|
|
3023
3023
|
run_id: runId,
|
|
3024
3024
|
status: state.status,
|
|
3025
|
+
is_terminal: isTerminalStatus(state.status),
|
|
3026
|
+
monitor_should_continue: !isTerminalStatus(state.status),
|
|
3025
3027
|
current_stage: state.current_stage ?? null,
|
|
3026
3028
|
state_path: state.state_path ?? null,
|
|
3027
3029
|
worktree_path: state.worktree_path ?? null,
|
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
createDisabledRiddleProofAgentAdapter,
|
|
14
14
|
readRiddleProofRunStatus,
|
|
15
15
|
runRiddleProofEngineHarness
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-URO4JVMA.js";
|
|
17
17
|
import {
|
|
18
18
|
runRiddleProof
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F6VFKS7K.js";
|
|
20
20
|
import {
|
|
21
21
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
|
22
22
|
appendRunEvent,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
normalizePrLifecycleState,
|
|
29
29
|
normalizeRunParams,
|
|
30
30
|
setRunStatus
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-7ZJAUEUN.js";
|
|
32
32
|
import {
|
|
33
33
|
applyTerminalMetadata,
|
|
34
34
|
compactRecord,
|
package/dist/openclaw.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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
265
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
345
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
592
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
265
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
345
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "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: "setup" | "recon" | "author" | "implement" | "verify" | "
|
|
592
|
+
action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
|
|
593
593
|
state_path: string;
|
|
594
594
|
stage: any;
|
|
595
595
|
summary: string;
|
package/dist/runner.js
CHANGED
package/dist/state.cjs
CHANGED
|
@@ -34,6 +34,9 @@ __export(state_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(state_exports);
|
|
35
35
|
|
|
36
36
|
// src/result.ts
|
|
37
|
+
function isTerminalStatus(status) {
|
|
38
|
+
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
39
|
+
}
|
|
37
40
|
function compactRecord(input) {
|
|
38
41
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0 && value !== null && value !== ""));
|
|
39
42
|
}
|
|
@@ -212,6 +215,8 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
212
215
|
return compactRecord({
|
|
213
216
|
run_id: runId,
|
|
214
217
|
status: state.status,
|
|
218
|
+
is_terminal: isTerminalStatus(state.status),
|
|
219
|
+
monitor_should_continue: !isTerminalStatus(state.status),
|
|
215
220
|
current_stage: state.current_stage ?? null,
|
|
216
221
|
state_path: state.state_path ?? null,
|
|
217
222
|
worktree_path: state.worktree_path ?? null,
|
package/dist/state.js
CHANGED
package/dist/types.d.cts
CHANGED
|
@@ -146,6 +146,8 @@ interface RiddleProofRunResult {
|
|
|
146
146
|
interface RiddleProofRunStatusSnapshot {
|
|
147
147
|
run_id: string;
|
|
148
148
|
status: RiddleProofStatus;
|
|
149
|
+
is_terminal?: boolean;
|
|
150
|
+
monitor_should_continue?: boolean;
|
|
149
151
|
current_stage?: RiddleProofStage | null;
|
|
150
152
|
state_path?: string | null;
|
|
151
153
|
worktree_path?: string | null;
|
package/dist/types.d.ts
CHANGED
|
@@ -146,6 +146,8 @@ interface RiddleProofRunResult {
|
|
|
146
146
|
interface RiddleProofRunStatusSnapshot {
|
|
147
147
|
run_id: string;
|
|
148
148
|
status: RiddleProofStatus;
|
|
149
|
+
is_terminal?: boolean;
|
|
150
|
+
monitor_should_continue?: boolean;
|
|
149
151
|
current_stage?: RiddleProofStage | null;
|
|
150
152
|
state_path?: string | null;
|
|
151
153
|
worktree_path?: string | null;
|