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

Function generateBlockId

packages/testing/src/factories/block.factory.ts:31–33  ·  view source on GitHub ↗

* Generates a unique block ID.

(prefix = 'block')

Source from the content-addressed store, hash-verified

29 * Generates a unique block ID.
30 */
31function generateBlockId(prefix = 'block'): string {
32 return `${prefix}-${generateRandomString(8)}`
33}
34
35/**
36 * Creates a mock block with sensible defaults.

Callers 1

createBlockFunction · 0.70

Calls 1

generateRandomStringFunction · 0.90

Tested by

no test coverage detected