MCPcopy Create free account
hub / github.com/TanStack/ai / computeSandboxKey

Function computeSandboxKey

packages/ai-sandbox/src/key.ts:61–70  ·  view source on GitHub ↗
(input: SandboxKeyInput)

Source from the content-addressed store, hash-verified

59
60/** Compute the compound sandbox instance key. */
61export function computeSandboxKey(input: SandboxKeyInput): string {
62 const material = canonical({
63 threadId: input.threadId,
64 sandboxId: input.sandboxId,
65 providerName: input.providerName,
66 workspaceHash: computeWorkspaceHash(input.workspace),
67 tenant: input.tenant ?? null,
68 })
69 return fnv1a(material)
70}

Callers 4

ensureFunction · 0.90
destroyFunction · 0.90
defineSandboxFunction · 0.90
key.test.tsFile · 0.90

Calls 3

canonicalFunction · 0.85
computeWorkspaceHashFunction · 0.85
fnv1aFunction · 0.85

Tested by

no test coverage detected