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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”Error when value is empty or whitespace-only.
Example
Section titled “Example”const changeId = ChangeId(crypto.randomUUID());