readCapabilitySnapshot
readCapabilitySnapshot(
vessels):CapabilitySnapshotProjection
Defined in: packages/protocol/dist/lib/read-capability-snapshot.d.ts:191
Pure projection from the registered vessels to a conversational capability catalog, alongside the record of every declared enum value the projection could not carry into it.
Nothing is logged here — the omissions are returned so the projection stays
pure and callers choose how to surface them. For example,
Orchestrator.getCapabilitySnapshot() unwraps the snapshot and reports the
omissions through the orchestrator’s logger.
Parameters
Section titled “Parameters”vessels
Section titled “vessels”readonly object[]
Returns
Section titled “Returns”Example
Section titled “Example”const { snapshot, optionOmissions } = readCapabilitySnapshot(vessels);if (optionOmissions.length > 0) { console.warn('some declared option values never reached the model', optionOmissions);}