MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / crossing

Function crossing

src/ui-server/api/steps.ts:298–305  ·  view source on GitHub ↗
(from: Language, to: Language, meta: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

296 * request time, by its directive.
297 */
298export function crossing(from: Language, to: Language, meta: Record<string, unknown> = {}): 'bridge' | 'event' | null {
299 if (meta.tier === 'client→server') return 'bridge';
300 if (meta.tier === 'server→client') return 'event';
301 if (meta.channel === 'queue' || meta.channel === 'event' || meta.channel === 'socket') return 'event';
302 if (JS_FAMILY.has(from) && NATIVE_FAMILY.has(to)) return 'bridge';
303 if (NATIVE_FAMILY.has(from) && JS_FAMILY.has(to)) return 'event';
304 return null;
305}
306
307/**
308 * A file that holds state: a store, a slice, a reducer. The graph has no

Callers 2

buildStepsFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected