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

Function deriveForkBlockId

apps/sim/lib/workspaces/fork/remap/block-identity.ts:40–42  ·  view source on GitHub ↗
(targetWorkflowId: string, sourceBlockId: string)

Source from the content-addressed store, hash-verified

38 * disappears on the next force-replace.
39 */
40export function deriveForkBlockId(targetWorkflowId: string, sourceBlockId: string): string {
41 return uuidV5(`${targetWorkflowId}:${sourceBlockId}`, FORK_BLOCK_NAMESPACE)
42}
43
44/** A persisted counterpart: the target block id plus the workflow it belongs to. */
45export interface ForkBlockMapEntry {

Calls 1

uuidV5Function · 0.85

Tested by

no test coverage detected