Skip to main content

Interface: ArchiveChange

Defined in: packages/core/src/application/use-cases/archive-change.ts:83

Finalises a completed change: merges delta artifacts into the project specs, moves the change directory to the archive, and fires lifecycle hooks.

Gated on archivable state — the change must have completed the full lifecycle before this use case can proceed.

Methods​

execute()​

execute(input): Promise<ArchiveChangeResult>

Defined in: packages/core/src/application/use-cases/archive-change.ts:140

Executes the archive lifecycle: validates state, runs pre-hooks, merges delta artifacts, archives the change, and runs post-hooks.

Parameters​

input​

ArchiveChangeInput

Archive parameters

Returns​

Promise<ArchiveChangeResult>

Archive result with the persisted record and any post-hook failures

Throws​

If no change with the given name exists

Throws​

If the schema reference cannot be resolved

Throws​

If the change is not in archivable state

Throws​

If a pre-archive run: hook exits with a non-zero code