( workspace: WorkspaceDefinition | undefined, )
| 50 | * intentionally excluded (rotating a token must not orphan the sandbox). |
| 51 | */ |
| 52 | export function computeWorkspaceHash( |
| 53 | workspace: WorkspaceDefinition | undefined, |
| 54 | ): string { |
| 55 | if (!workspace) return fnv1a('no-workspace') |
| 56 | const { secrets: _secrets, ...rest } = workspace |
| 57 | return fnv1a(canonical(rest)) |
| 58 | } |
| 59 | |
| 60 | /** Compute the compound sandbox instance key. */ |
| 61 | export function computeSandboxKey(input: SandboxKeyInput): string { |
no test coverage detected