Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
approvedMaxCostUsd?readonlynumberOptional human-approved maximum USD budget ceiling.ports/create-or-resume-run-result.ts:21
compiledPrefixesJson?readonlyReadonly<Record<string, string>>Optional map of prefixGroupId to JSON-serialized CompiledWirePrefix pinned at run start.ports/create-or-resume-run-result.ts:17
completedStepOutputsJsonreadonlyReadonlyMap<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
costUsdreadonlynumberCumulative USD cost recorded for the run.ports/create-or-resume-run-result.ts:19
currentStepIdreadonlystring | nullIdentifier of the currently executing flow step, or null.ports/create-or-resume-run-result.ts:11
inputJsonreadonlystringLatest JSON-serialized flow input payload (reflecting any .replaceWith() or .onSignal().update() mutations).ports/create-or-resume-run-result.ts:13
rewindPendingToStepId?readonlystringOptional target stepId when a .rewindTo() signal is pending drain or prerequisite wakeup.ports/create-or-resume-run-result.ts:15
statusreadonlystringCurrent run lifecycle status ('QUEUED' | 'RUNNING' | 'WAITING' | 'SUSPENDED' or terminal state).ports/create-or-resume-run-result.ts:9

Released under the MIT License.