diff --git a/plugin/src/wire.ts b/plugin/src/wire.ts index 1c49182..66d4e5e 100644 --- a/plugin/src/wire.ts +++ b/plugin/src/wire.ts @@ -5,6 +5,8 @@ // fragmentation. If text exceeds that, the sender splits into N envelopes // sharing the same `id` and assembles via (`seq`, `total`). +import { randomUUID } from "node:crypto"; + export const WIRE_VERSION = 1 as const; /** Maximum bytes for a single envelope's JSON encoding. */ @@ -202,13 +204,9 @@ export async function verifyEnvelope(env: Envelope, secret: string): Promise