(rootSessionId: string)
| 1458 | } |
| 1459 | |
| 1460 | function requireRootSessionId(rootSessionId: string): string { |
| 1461 | const normalized = rootSessionId.trim(); |
| 1462 | if (!normalized || normalized !== rootSessionId) { |
| 1463 | throw new Error('Agent graph root Session id must be a non-empty canonical identity'); |
| 1464 | } |
| 1465 | return normalized; |
| 1466 | } |
| 1467 | |
| 1468 | function isMaterializedGraphClientEvent( |
| 1469 | type: AgentGraphSupervisorRuntimeEvent['event']['type'], |
no test coverage detected