{"version":3,"sources":["../src/queueInputEnvelope.ts"],"sourcesContent":["/**\n * @deprecated Workers no longer need to accept queue orchestration keys in their Zod schemas.\n * The runtime strips `__workerQueue`, `__hitlInput`, `__hitlDecision`, `__hitlPending`, and `hitl`\n * automatically before calling the user handler. Remove `queueOrchestrationFieldsSchema`\n * and `withQueueOrchestrationEnvelope` from your worker schemas and use plain `z.object({...})`.\n */\n\nimport { z } from 'zod';\n\n/**\n * @deprecated No longer needed. The queue runtime strips all envelope keys before the user handler runs.\n */\nexport const queueOrchestrationFieldsSchema = z.object({\n  __workerQueue: z.record(z.string(), z.unknown()).optional(),\n  __hitlPending: z.unknown().optional(),\n  __hitlInput: z.unknown().optional(),\n  __hitlDecision: z.unknown().optional(),\n});\n\nexport type QueueOrchestrationFields = z.infer<typeof queueOrchestrationFieldsSchema>;\n\n/**\n * @deprecated No longer needed. The queue runtime strips all envelope keys before the user handler runs.\n */\nexport function withQueueOrchestrationEnvelope<D extends z.ZodObject<z.ZodRawShape>>(domain: D) {\n  return domain.merge(queueOrchestrationFieldsSchema);\n}\n"],"mappings":";AAOA,SAAS,SAAS;AAKX,IAAM,iCAAiC,EAAE,OAAO;AAAA,EACrD,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS;AAAA,EAC1D,eAAe,EAAE,QAAQ,EAAE,SAAS;AAAA,EACpC,aAAa,EAAE,QAAQ,EAAE,SAAS;AAAA,EAClC,gBAAgB,EAAE,QAAQ,EAAE,SAAS;AACvC,CAAC;AAOM,SAAS,+BAAqE,QAAW;AAC9F,SAAO,OAAO,MAAM,8BAA8B;AACpD;","names":[]}