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.
Parameters
Section titled “Parameters”contentHash
Section titled “contentHash”string
parent
Section titled “parent”string | undefined
Returns
Section titled “Returns”Promise<string>