Skip to content

js-bao-wss-client


js-bao-wss-client / WorkflowStepRunRecord

Interface: WorkflowStepRunRecord ​

A persisted step run record with debugging data

Properties ​

config? ​

optional config?: unknown

Rendered step config (after template evaluation)


context? ​

optional context?: unknown

Snapshot of input and previous step outputs at the time this step ran


durationMs? ​

optional durationMs?: number


endedAt? ​

optional endedAt?: string


error? ​

optional error?: string | null

Error message if the step failed


errorDetails? ​

optional errorDetails?: unknown

Structured error details (stack trace, cause chain) if the step failed


input? ​

optional input?: unknown

Resolved input to the step


inputTokens? ​

optional inputTokens?: number


output? ​

optional output?: unknown

Output from the step


outputTokens? ​

optional outputTokens?: number


rawConfig? ​

optional rawConfig?: unknown

Original step config before template rendering (for transform steps)


retryCount? ​

optional retryCount?: number


runId ​

runId: string


startedAt? ​

optional startedAt?: string


status ​

status: string

running | completed | failed | skipped | error_captured.

Step rows are written as the run goes, so listing them on an in-flight run returns the steps finished so far plus a running row for the step executing right now. That row is finalized in place when the step ends — its endedAt / durationMs are placeholders while it is running.


stepId ​

stepId: string


stepIndex ​

stepIndex: number


stepKind ​

stepKind: string


stepRunId ​

stepRunId: string


templateWarnings? ​

optional templateWarnings?: unknown

Template warnings captured during step execution


totalTokens? ​

optional totalTokens?: number

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30