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

Function firstStatusToken

src/ui-server/api/effects.ts:525–529  ·  view source on GitHub ↗
(args: string, which: 'first' | 'last')

Source from the content-addressed store, hash-verified

523}
524
525function firstStatusToken(args: string, which: 'first' | 'last'): string {
526 const parts = splitArgs(args);
527 if (parts.length === 0) return '';
528 return which === 'first' ? parts[0]! : parts[parts.length - 1]!;
529}
530
531function literalStatus(token: string): number | null {
532 const t = token.trim();

Callers 1

responseStatusFunction · 0.85

Calls 1

splitArgsFunction · 0.70

Tested by

no test coverage detected