MCPcopy
hub / github.com/simstudioai/sim / filterSubBlockIds

Function filterSubBlockIds

apps/sim/lib/workflows/comparison/normalize.ts:421–431  ·  view source on GitHub ↗
(subBlockIds: string[])

Source from the content-addressed store, hash-verified

419 * @returns Filtered and sorted array of subBlock IDs
420 */
421export function filterSubBlockIds(subBlockIds: string[]): string[] {
422 return subBlockIds
423 .filter((id) => {
424 if (TRIGGER_RUNTIME_SUBBLOCK_IDS.includes(id)) return false
425 if (SYSTEM_SUBBLOCK_IDS.some((sysId) => id === sysId || id.startsWith(`${sysId}_`)))
426 return false
427 if (isSyntheticToolSubBlockId(id)) return false
428 return true
429 })
430 .sort()
431}
432
433/**
434 * Normalizes trigger block subBlocks by populating null/empty individual fields

Callers 3

normalize.test.tsFile · 0.90
normalizeWorkflowStateFunction · 0.85

Calls 1

Tested by

no test coverage detected