MCPcopy Create free account
hub / github.com/effect-app/libs / cosmosId

Function cosmosId

packages/infra/src/WorkflowEngineCosmos.ts:116–116  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

114// names routinely contain '/', so every doc id is URI-encoded (mirrors
115// `cosmosId` in ClusterCosmos). Partition keys (executionId) are exempt.
116const cosmosId = (id: string) => encodeURIComponent(id)
117const execId = "exec" as const
118const activityKey = (name: string, attempt: number) => cosmosId(`activity::${name}::${attempt}`)
119const deferredKey = (name: string) => cosmosId(`deferred::${name}`)

Callers 3

activityKeyFunction · 0.70
deferredKeyFunction · 0.70
clockKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…