PlanSink typedef

PlanSink = String? Function(PlanDocument plan)

Where a plan is filed, when the host files it.

Returns the path it was written to, or null when it was not written anywhere. The SDK does not choose: a plan's home is a property of the project the CLI serves, not of the SDK.

The plan is a report, not an input. Nothing reads it back: --apply re-previews immediately before it acts, so there is no saved plan that can go stale.

Implementation

typedef PlanSink = String? Function(PlanDocument plan);