Validated, read-only preview of one dynamic work record.
Preview values are intended for dashboards, CLIs, and visual editors that need to inspect the graph impact of a dynamic work payload before appending a durable journal fact.
Summary
Functions
Builds a preview for proposed dynamic work and the resulting run graph.
Converts a dynamic work preview to a plain map for JSON encoding.
Types
@type t() :: %Squidie.Inspection.DynamicWorkPreview{ added_edge_ids: [String.t()], added_node_ids: [String.t()], duplicate?: boolean(), dynamic_work: map(), graph: Squidie.Inspection.GraphInspection.t(), origin_node_id: String.t() | nil, recordable?: boolean(), run_id: String.t(), warnings: [atom()] }
Functions
@spec new(String.t(), map(), boolean(), Squidie.Inspection.GraphInspection.t()) :: t()
Builds a preview for proposed dynamic work and the resulting run graph.
Converts a dynamic work preview to a plain map for JSON encoding.