/** * A UUID that works everywhere praisonai-ts runs. * * `import { randomUUID } from 'crypto'` is a STATIC Node builtin import: in a * browser or webview the bundle dies at module load, before any code runs, * with no error boundary and a blank screen. That was issue #4437, and PR * #4438 fixed it for the two files on the Agent import graph -- leaving the * same import in 32 others, each of which re-breaks the moment anything * reachable from a webview touches it. * * `globalThis.crypto.randomUUID` is a straight substitution rather than a * polyfill: it exists in every supported webview and in Node >= 19. The * fallbacks below exist for older runtimes and are ordered by how much * entropy they can offer. * * The version and variant nibbles are set BY HAND in the fallback, which is * the part worth reading twice: getting the masks wrong yields a string that * looks like a UUID and is not one, and anything validating it rejects the id * far away from here. */ /** RFC 4122 version 4. */ export declare function randomUUID(): string;