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

Function saveExecutionPointer

apps/sim/stores/terminal/console/storage.ts:299–310  ·  view source on GitHub ↗
(pointer: ExecutionPointer)

Source from the content-addressed store, hash-verified

297}
298
299export function saveExecutionPointer(pointer: ExecutionPointer): Promise<void> {
300 if (typeof window === 'undefined') return Promise.resolve()
301 try {
302 window.sessionStorage.setItem(
303 `${EXEC_POINTER_PREFIX}${pointer.workflowId}`,
304 JSON.stringify(pointer)
305 )
306 } catch {
307 return Promise.resolve()
308 }
309 return Promise.resolve()
310}
311
312export function clearExecutionPointer(workflowId: string): Promise<void> {
313 if (typeof window === 'undefined') return Promise.resolve()

Callers 5

doExecuteRunToolFunction · 0.90
executeWorkflowFunction · 0.90
useWorkflowExecutionFunction · 0.90

Calls 2

setItemMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected