From c04827fd3f48eae7eb46592cbf82910647bda1b1 Mon Sep 17 00:00:00 2001 From: Neal Shah <30693865+ProgrammerIn-wonderland@users.noreply.github.com> Date: Wed, 19 Aug 2026 14:20:15 -0400 Subject: [PATCH] add dynamic worker create event (#3608) --- src/backend/clients/event/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/backend/clients/event/types.ts b/src/backend/clients/event/types.ts index e38d9468e..175324dad 100644 --- a/src/backend/clients/event/types.ts +++ b/src/backend/clients/event/types.ts @@ -348,6 +348,18 @@ export type EventMap = { // is pricing workers that came into existence, not deploys. 'worker.create': { actor: Actor; workerName: string }; + // The same announcement for worker code that lives inside a hosted site + // and is deployed on demand rather than by an explicit call. Such a worker + // has no row of ours to key on, so what stands in for "genuinely new" is + // the absence of any prior record that it ran — which is why it is + // announced separately, and identified by where its source lives rather + // than by a worker name. + 'worker.dynamic.create': { + actor: Actor; + subdomain: string; + worker: string; + }; + // ---- Outer / GUI broadcast ---- 'outer.cacheUpdate': { cacheKey: string[];