MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / flow

Function flow

graph-ui/src/browser-ai/workflow-facts.ts:22–26  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

20const plain = (value: string) => unquote(value.replace(/\s+#.*$/, '').trim());
21/** "[push, pull_request]" or "push"; "{}" and "[]" are empty. */
22const flow = (value: string): string[] => {
23 const list = /^\[(.*)\]$/.exec(value);
24 if (!list) return value && value !== '{}' ? [value] : [];
25 return list[1].split(',').map(plain).filter(Boolean);
26};
27
28function linesOf(text: string): Line[] {
29 const lines: Line[] = [];

Callers 2

scalarOfFunction · 0.70
workflowFactsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected