* Stable hash of the transcript bytes alone. This is the input the * history-catch-up guard uses to detect "transcript unchanged since the * last look" so a freshly-bumped `observedRecency` can wait one tick for * the corresponding history write to land. Folding `streaming` in here * would make
(transcript: string)
| 581 | * change and bypass the guard. |
| 582 | */ |
| 583 | function computeTranscriptHash(transcript: string): string { |
| 584 | return createHash("sha256").update(transcript).digest("hex"); |
| 585 | } |
| 586 | |
| 587 | /** |
| 588 | * Dedup key for generation: combines the transcript hash with the |