(input: SandboxKeyInput)
| 59 | |
| 60 | /** Compute the compound sandbox instance key. */ |
| 61 | export 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 | } |
no test coverage detected