All files / core/semantic-log capability.ts

100% Statements 24/24
100% Branches 0/0
100% Functions 0/0
100% Lines 24/24

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 251x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * semantic-log — capability surface.
 *
 * The per-execution switches and the level-free channels they switch: enough to
 * ask "may this execution record calls?", to carry the answer with the identity,
 * and to write the call records when it says yes. Nothing here reaches `fastify`,
 * and nothing here knows a runtime's record envelope — see `src/capability.ts`.
 */
 
export {callPhaseMessage, CALLS_CAPABILITY, createCallChannel} from './src/capability.ts';
export type {CallChannel, CallEvent, CallPhase, CallWriter} from './src/capability.ts';
export {
    capabilityState,
    currentCapabilities,
    enterCapability,
    withCapability,
} from './src/context.ts';
export {
    CAP_FIELD,
    decodeCapabilities,
    encodeCapabilities,
    TRACE_HEADER,
    withoutCapabilities,
} from './src/propagation.ts';