Interface: CreateOrResumeRunResult
Defined in: ports/create-or-resume-run-result.ts:7
Persisted run state returned by LedgerStore.createOrResumeRun().
Contains the current lifecycle status, active step ID, latest serialized flow input, pinned wire prefixes, cumulative cost, and completed step outputs for .inputFrom() recovery.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
approvedMaxCostUsd? | readonly | number | Optional human-approved maximum USD budget ceiling. | ports/create-or-resume-run-result.ts:21 |
compiledPrefixesJson? | readonly | Readonly<Record<string, string>> | Optional map of prefixGroupId to JSON-serialized CompiledWirePrefix pinned at run start. | ports/create-or-resume-run-result.ts:17 |
completedStepOutputsJson | readonly | ReadonlyMap<string, string> | Map of completed stepId (or outer branchStepId) to its JSON-serialized output for .inputFrom() recovery. | ports/create-or-resume-run-result.ts:23 |
costUsd | readonly | number | Cumulative USD cost recorded for the run. | ports/create-or-resume-run-result.ts:19 |
currentStepId | readonly | string | null | Identifier of the currently executing flow step, or null. | ports/create-or-resume-run-result.ts:11 |
inputJson | readonly | string | Latest JSON-serialized flow input payload (reflecting any .replaceWith() or .onSignal().update() mutations). | ports/create-or-resume-run-result.ts:13 |
rewindPendingToStepId? | readonly | string | Optional target stepId when a .rewindTo() signal is pending drain or prerequisite wakeup. | ports/create-or-resume-run-result.ts:15 |
status | readonly | string | Current run lifecycle status ('QUEUED' | 'RUNNING' | 'WAITING' | 'SUSPENDED' or terminal state). | ports/create-or-resume-run-result.ts:9 |