Skip to content

chainAwareId

chainAwareId(contentHash, parent): Promise<string>

Defined in: packages/core/src/kernel/layer.ts:209

Compute a chain-aware layer ID: sha256(parent + contentHash). Content hash alone is insufficient because two identical diffs at different positions in the chain (e.g., two empty .run() steps) would collide. This mirrors Docker’s “chain ID” concept.

string

string | undefined

Promise<string>