Structure
ActionResultEnvelope
Standardized result wrapper emitted by the CLI and workflow runner.
struct ActionResultEnvelopeOverview
Encodes action outcomes as a JSON-serializable envelope for --output json mode.
Topics
Initializers
init(action: String, status: String, payload: JSONValue?, durationSeconds: Double?)Creates an
ActionResultEnvelope.init(from: any Decoder) throws
Instance Properties
let action: StringThe name of the action that produced this result.
let durationSeconds: Double?Wall-clock time the action’s
run(with:context:)took, in seconds.let payload: JSONValue?The typed result payload, or
nilfor void-result actions.let status: StringOutcome status:
"success","failure", or workflow-level"skipped".
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype