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

Function originLabel

ui/src/lib/entry-model.ts:384–395  ·  view source on GitHub ↗
(origin: EntryMatch['origin'])

Source from the content-addressed store, hash-verified

382
383/** The location column for a palette entry row — where it came from. */
384export function originLabel(origin: EntryMatch['origin']): string {
385 switch (origin) {
386 case 'route':
387 return 'route';
388 case 'file':
389 return 'runs at module level';
390 case 'test':
391 return 'test';
392 case 'hub':
393 return 'depended on';
394 }
395}
396
397/* ------------------------------------------------------------------ flow -- */
398

Callers 2

buildSearchPaletteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected