(text: string)
| 99 | const sentinelUuidRef = useRef(randomUUID()) |
| 100 | |
| 101 | function mkSentinel(text: string): SystemInformationalMessage { |
| 102 | return { |
| 103 | type: 'system', |
| 104 | subtype: 'informational', |
| 105 | content: text, |
| 106 | isMeta: false, |
| 107 | timestamp: new Date().toISOString(), |
| 108 | uuid: sentinelUuidRef.current, |
| 109 | level: 'info', |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /** Prepend a page at the front, with scroll-anchor snapshot for non-initial. |
| 114 | * Replaces the sentinel (always at index 0 when present) in-place. */ |
no outgoing calls
no test coverage detected