pruneRecoveryRetention
Purpose and behavior
Section titled “Purpose and behavior”Remove the eligible entries of a complete plan, checking each against a fresh plan first; a changed or failed candidate is retained with its reason. Worktrees are removed under their branch lock and keep their branch; journal and cache objects are deleted with conditional writes. An incomplete plan or a transporter that does not match the plan’s source rejects with code configuration.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”planRequiredRecoveryRetentionPlanComplete plan from planRecoveryRetention(); only its eligible entries are candidates.optionsOptionalTransportStoreOptions | undefined{ transporter } used to build a plan whose source is transport; must be omitted for a local plan.options.transporterRequiredTransportCaller-owned object transport used by the store or operation. Closing a workflow or sandbox does not close this transport.observationOptionalObservationHub | undefinedHub receiving the started, then finished or failed, operation event retention.prune with its duration.