Interface: PreviewSpec
Defined in: packages/core/src/application/use-cases/preview-spec.ts:49
Applies a change's delta artifacts to the base spec content and returns the merged result per artifact file, without mutating anything.
Consumed by CompileContext (for materialized views) and by the CLI
change spec-preview command (for human review).
Methods
execute()
execute(
input):Promise<PreviewSpecResult>
Defined in: packages/core/src/application/use-cases/preview-spec.ts:84
Previews a spec by applying delta artifacts from a change.
Parameters
input
Preview parameters
Returns
Promise<PreviewSpecResult>
The preview result with per-file entries and warnings
Throws
If no change with the given name exists
Throws
If the change's schema differs from the active schema
Throws
If the specId is not in the change's specIds