Skip to content

ChangeId

ChangeId: (value) => ChangeId

Defined in: packages/protocol/src/lib/agent-ids.ts:85

Brands an existing string as a ChangeId. Smart constructor: the identifier names both the type and this factory. Change ids are minted by the host that emits the UI change, so this only brands and never generates.

string

ChangeId

Error when value is empty or whitespace-only.

const changeId = ChangeId(crypto.randomUUID());