(rootSessionId: string)
| 1435 | } |
| 1436 | |
| 1437 | export function agentGraphIdForRootSession(rootSessionId: string): string { |
| 1438 | requireRootSessionId(rootSessionId); |
| 1439 | const suffix = stableHash({ |
| 1440 | schemaVersion: 1, |
| 1441 | rootSessionId, |
| 1442 | }).slice('sha256:'.length, 'sha256:'.length + 32); |
| 1443 | return `agent_graph_${suffix}`; |
| 1444 | } |
| 1445 | |
| 1446 | export function agentGraphIdForRootSessionEpoch(rootSessionId: string, epoch: number): string { |
| 1447 | requireRootSessionId(rootSessionId); |