MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / normalizeClaim

Function normalizeClaim

src/workspaces/persistent-session.ts:593–596  ·  view source on GitHub ↗
(claim: SessionControllerClaim | undefined)

Source from the content-addressed store, hash-verified

591}
592
593function normalizeClaim(claim: SessionControllerClaim | undefined): SessionControllerOwner | null {
594 if (!claim?.controllerId) return null;
595 return { id: claim.controllerId, kind: claim.controllerKind || 'unknown' };
596}
597
598function toBuffer(raw: unknown): Buffer | null {
599 if (Buffer.isBuffer(raw)) return raw;

Callers 1

attachMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected