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

Function rebuildWorkflowStateMaps

apps/sim/stores/terminal/console/store.ts:172–181  ·  view source on GitHub ↗
(workflowEntries: Record<string, ConsoleEntry[]>)

Source from the content-addressed store, hash-verified

170}
171
172function rebuildWorkflowStateMaps(workflowEntries: Record<string, ConsoleEntry[]>) {
173 const entryIdsByBlockExecution: Record<string, string[]> = {}
174 const entryLocationById: Record<string, ConsoleEntryLocation> = {}
175
176 Object.entries(workflowEntries).forEach(([workflowId, entries]) => {
177 indexWorkflowEntries(workflowId, entries, entryIdsByBlockExecution, entryLocationById)
178 })
179
180 return { entryIdsByBlockExecution, entryLocationById }
181}
182
183function replaceWorkflowEntries(
184 state: ConsoleStore,

Callers 2

store.tsFile · 0.85
hydrateConsoleStoreFunction · 0.85

Calls 1

indexWorkflowEntriesFunction · 0.85

Tested by

no test coverage detected