@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.
@@ -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,
@@ -3,7 +3,7 @@ import {
3
3
  appendStageHeartbeat,
4
4
  createRunState,
5
5
  setRunStatus
6
- } from "./chunk-GVPCSXN7.js";
6
+ } from "./chunk-7ZJAUEUN.js";
7
7
  import {
8
8
  createRunResult
9
9
  } from "./chunk-TMMKRKY5.js";
@@ -5,7 +5,7 @@ import {
5
5
  createRunStatusSnapshot,
6
6
  normalizeRunParams,
7
7
  setRunStatus
8
- } from "./chunk-GVPCSXN7.js";
8
+ } from "./chunk-7ZJAUEUN.js";
9
9
  import {
10
10
  applyTerminalMetadata,
11
11
  compactRecord,
@@ -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,
@@ -2,8 +2,8 @@ import {
2
2
  createDisabledRiddleProofAgentAdapter,
3
3
  readRiddleProofRunStatus,
4
4
  runRiddleProofEngineHarness
5
- } from "./chunk-7KP34QRG.js";
6
- import "./chunk-GVPCSXN7.js";
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-7KP34QRG.js";
16
+ } from "./chunk-URO4JVMA.js";
17
17
  import {
18
18
  runRiddleProof
19
- } from "./chunk-VSEKLCNU.js";
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-GVPCSXN7.js";
31
+ } from "./chunk-7ZJAUEUN.js";
32
32
  import {
33
33
  applyTerminalMetadata,
34
34
  compactRecord,
package/dist/openclaw.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  normalizeIntegrationContext,
3
3
  normalizeRunParams
4
- } from "./chunk-GVPCSXN7.js";
4
+ } from "./chunk-7ZJAUEUN.js";
5
5
  import {
6
6
  compactRecord
7
7
  } from "./chunk-TMMKRKY5.js";
@@ -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" | "ship" | "run";
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" | "ship" | "run";
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" | "ship" | "run";
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" | "ship" | "run";
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" | "ship" | "run";
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" | "ship" | "run";
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
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runRiddleProof
3
- } from "./chunk-VSEKLCNU.js";
4
- import "./chunk-GVPCSXN7.js";
3
+ } from "./chunk-F6VFKS7K.js";
4
+ import "./chunk-7ZJAUEUN.js";
5
5
  import "./chunk-TMMKRKY5.js";
6
6
  export {
7
7
  runRiddleProof
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
@@ -9,7 +9,7 @@ import {
9
9
  normalizePrLifecycleState,
10
10
  normalizeRunParams,
11
11
  setRunStatus
12
- } from "./chunk-GVPCSXN7.js";
12
+ } from "./chunk-7ZJAUEUN.js";
13
13
  import "./chunk-TMMKRKY5.js";
14
14
  export {
15
15
  RIDDLE_PROOF_RUN_STATE_VERSION,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",