Skip to main content

Interface: ChangeProps

Defined in: packages/core/src/domain/entities/change.ts:145

Construction properties for a Change.

Mirrors the top-level fields of manifest.json. Repositories construct a Change from a persisted manifest; application use cases create a new Change by supplying an initial history containing a created event.

Properties

artifacts?

readonly optional artifacts?: Map<string, ChangeArtifact>

Defined in: packages/core/src/domain/entities/change.ts:157

Pre-loaded artifact map; defaults to an empty map.


createdAt

readonly createdAt: Date

Defined in: packages/core/src/domain/entities/change.ts:149

Timestamp when the change was created; immutable.


description?

readonly optional description?: string

Defined in: packages/core/src/domain/entities/change.ts:151

Optional free-text description of the change's purpose.


history

readonly history: readonly ChangeEvent[]

Defined in: packages/core/src/domain/entities/change.ts:155

Append-only event history from which lifecycle state is derived.


name

readonly name: string

Defined in: packages/core/src/domain/entities/change.ts:147

Unique slug name; immutable after creation.


specDependsOn?

readonly optional specDependsOn?: ReadonlyMap<string, readonly string[]>

Defined in: packages/core/src/domain/entities/change.ts:159

Per-spec declared dependencies, keyed by spec ID.


specIds

readonly specIds: readonly string[]

Defined in: packages/core/src/domain/entities/change.ts:153

Current snapshot of spec paths being modified.