MCPcopy Index your code
hub / github.com/simstudioai/sim / rootPaths

Function rootPaths

apps/sim/lib/workflows/blocks/block-outputs.test.ts:10–12  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

8type SubBlocks = Record<string, { value: unknown }>
9
10function rootPaths(paths: string[]): string[] {
11 return [...new Set(paths.map((path) => path.split('.')[0]).filter(Boolean))].sort()
12}
13
14describe('block outputs parity', () => {
15 it.concurrent('keeps evaluator tag paths and types aligned', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected