MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / buildCtx

Function buildCtx

ui-tui/src/__tests__/createSlashHandler.test.ts:917–926  ·  view source on GitHub ↗
(overrides: Partial<Ctx> = {})

Source from the content-addressed store, hash-verified

915})
916
917const buildCtx = (overrides: Partial<Ctx> = {}): Ctx => ({
918 ...overrides,
919 slashFlightRef: overrides.slashFlightRef ?? { current: 0 },
920 composer: { ...buildComposer(), ...overrides.composer },
921 gateway: { ...buildGateway(), ...overrides.gateway },
922 local: { ...buildLocal(), ...overrides.local },
923 session: { ...buildSession(), ...overrides.session },
924 transcript: { ...buildTranscript(), ...overrides.transcript },
925 voice: { ...buildVoice(), ...overrides.voice }
926})
927
928const buildComposer = () => ({
929 enqueue: vi.fn(),

Callers 1

Calls 6

buildComposerFunction · 0.85
buildGatewayFunction · 0.85
buildLocalFunction · 0.85
buildSessionFunction · 0.85
buildTranscriptFunction · 0.85
buildVoiceFunction · 0.85

Tested by

no test coverage detected