@lunora/config 1.0.0-alpha.468 → 1.0.0-alpha.469

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/celld/index.d.mts +77 -0
  2. package/dist/celld/index.d.ts +77 -0
  3. package/dist/celld/index.mjs +1 -0
  4. package/dist/celld-names/index.d.mts +57 -0
  5. package/dist/celld-names/index.d.ts +57 -0
  6. package/dist/celld-names/index.mjs +1 -0
  7. package/dist/cli/index.mjs +1 -1
  8. package/dist/cloudflare/index.d.mts +4 -592
  9. package/dist/cloudflare/index.d.ts +4 -592
  10. package/dist/cloudflare/index.mjs +1 -1
  11. package/dist/index.mjs +1 -1
  12. package/dist/packem_shared/CELLD_RELEASE_ASSETS_DIRECTORY-YBhEotjs.mjs +1 -0
  13. package/dist/packem_shared/{DEFAULT_DEPLOY_TARGET-CAJl2nEI.mjs → DEFAULT_DEPLOY_TARGET-BlvZ242-.mjs} +1 -1
  14. package/dist/packem_shared/{POLICY_SCAFFOLD_ENDPOINT-DSMpLzsw.mjs → POLICY_SCAFFOLD_ENDPOINT-BiQ1zNsR.mjs} +1 -1
  15. package/dist/packem_shared/{SCHEMA_EDIT_ENDPOINT-FM9ZC-gV.mjs → SCHEMA_EDIT_ENDPOINT-D296PlpV.mjs} +1 -1
  16. package/dist/packem_shared/{STUDIO_PATH-CWaCBuYC.mjs → STUDIO_PATH-CvVcvTbQ.mjs} +1 -1
  17. package/dist/packem_shared/{assertBuildTargetMatches-tkKAa5zl.mjs → assertBuildTargetMatches-D11J7F38.mjs} +1 -1
  18. package/dist/packem_shared/binding-manifest.d-BRdoMhGE.d.mts +593 -0
  19. package/dist/packem_shared/binding-manifest.d-BRdoMhGE.d.ts +593 -0
  20. package/dist/packem_shared/{celld-config-CpvLkAEg.mjs → celld-config-Ef1RZ02t.mjs} +1 -1
  21. package/dist/packem_shared/{emitProjectAssetHeaders-6iinmRWE.mjs → emitProjectAssetHeaders-BdqdTVN3.mjs} +1 -1
  22. package/dist/packem_shared/scanWranglerVariablesForSecrets-DmdOBmwn.mjs +1 -0
  23. package/dist/packem_shared/{startCelldDevSession-DQ7YylR_.mjs → startCelldDevSession-DfuDVsha.mjs} +1 -1
  24. package/dist/packem_shared/{wranglerCodegenInputs--ngEbVLe.mjs → wranglerCodegenInputs-B8iRZZZw.mjs} +1 -1
  25. package/dist/packem_shared/wranglerToAlchemy-ClIdvJFu.mjs +5 -0
  26. package/dist/packem_shared/{write-atomic-BzViTZCw.mjs → write-atomic-9sY2z8DB.mjs} +1 -1
  27. package/dist/studio-host/index.mjs +1 -1
  28. package/package.json +9 -1
  29. package/dist/packem_shared/scanWranglerVariablesForSecrets-BQIPpHpH.mjs +0 -1
  30. package/dist/packem_shared/wranglerToAlchemy-CBO2ucRm.mjs +0 -6
@@ -0,0 +1,593 @@
1
+ /** The `wrangler.jsonc` shape the validator reads, and the report it returns. */
2
+ interface WranglerDurableObjectBinding$1 {
3
+ class_name?: string;
4
+ name?: string;
5
+ /** Present when the class lives in ANOTHER Worker — then it is that script's to export, not this entry's. */
6
+ script_name?: string;
7
+ }
8
+ /**
9
+ * A `tail_consumers` entry: a Worker that receives this Worker's tail events
10
+ * (logs, exceptions, fetch metadata) for forwarding to an external sink. See
11
+ * `withTailConsumer` for the wiring helper.
12
+ */
13
+ interface TailConsumer {
14
+ /** Optional Cloudflare environment of the consumer Worker. */
15
+ environment?: string;
16
+ /** Name of the Worker that consumes tail events. */
17
+ service?: string;
18
+ }
19
+ /**
20
+ * `observability.traces` — Workers Traces. `destinations` names OpenTelemetry
21
+ * export destinations configured in the dashboard; `persist: false` exports
22
+ * without also storing in Cloudflare (default `true`).
23
+ * https://developers.cloudflare.com/workers/observability/opentelemetry-export/
24
+ */
25
+ interface WranglerObservabilityTraces {
26
+ destinations?: ReadonlyArray<string>;
27
+ enabled?: boolean;
28
+ /** Fraction of requests traced, 0–1. */
29
+ head_sampling_rate?: number;
30
+ persist?: boolean;
31
+ }
32
+ /**
33
+ * `observability.logs` — Workers Logs. Same export knobs as traces, plus
34
+ * `invocation_logs` (the per-invocation summary line; default `true`).
35
+ */
36
+ interface WranglerObservabilityLogs extends WranglerObservabilityTraces {
37
+ invocation_logs?: boolean;
38
+ }
39
+ /** The wrangler `observability` block (Workers Logs + Traces). */
40
+ interface WranglerObservability {
41
+ enabled?: boolean;
42
+ /** Fraction of requests logged, 0–1 (wrangler's default is 1: every request). */
43
+ head_sampling_rate?: number;
44
+ /** Workers Issues — detects and groups production failures. */
45
+ issues?: {
46
+ enabled?: boolean;
47
+ };
48
+ logs?: WranglerObservabilityLogs;
49
+ /** Strip query strings from request URLs in logs and traces (wrangler's default is `false`). */
50
+ redact_query_string?: boolean;
51
+ traces?: WranglerObservabilityTraces;
52
+ }
53
+ /**
54
+ * The `observability` block Lunora writes when a project has none — by
55
+ * `lunora dev`'s binding reconcile and by `lunora init`'s scaffold. Logs on,
56
+ * every request sampled: the right default while an app is small, and what
57
+ * `lunora doctor`'s `observability-full-sampling` advisory then flags once
58
+ * Workers Observability is billed. One constant so the writers and the doctor
59
+ * cannot drift apart.
60
+ */
61
+ declare const DEFAULT_OBSERVABILITY: Readonly<{
62
+ enabled: true;
63
+ head_sampling_rate: 1;
64
+ redact_query_string: true;
65
+ }>;
66
+ /** One signal's effective sampling, as {@link resolveObservabilitySampling} resolves it. */
67
+ interface ObservabilitySignalSampling {
68
+ enabled: boolean;
69
+ /** Fraction of requests sampled, 0–1. */
70
+ headSamplingRate: number;
71
+ }
72
+ /**
73
+ * The effective logs / traces sampling an `observability` block deploys with,
74
+ * defaults applied. An absent block is {@link DEFAULT_OBSERVABILITY}, which is
75
+ * what Lunora reconciles it to. Inside a present block, logs are on unless the
76
+ * block (or its `logs` sub-block) turns them off; traces are opt-in
77
+ * (`traces.enabled: true`); and an unset rate is wrangler's own default of 1.
78
+ * `logs.*` overrides the top-level switch and rate.
79
+ */
80
+ declare const resolveObservabilitySampling: (block: WranglerObservability | undefined) => {
81
+ logs: ObservabilitySignalSampling;
82
+ traces: ObservabilitySignalSampling;
83
+ };
84
+ /** A wrangler `containers[]` entry (parsed from untrusted JSONC). */
85
+ interface WranglerContainerEntry {
86
+ class_name?: string;
87
+ image?: string;
88
+ /** Named images under the `durable_object` scheduling policy. */
89
+ images?: Record<string, {
90
+ build_context?: string;
91
+ build_vars?: Record<string, string>;
92
+ dockerfile?: string;
93
+ image?: string;
94
+ } | null | undefined>;
95
+ instance_type?: string | {
96
+ disk_mb?: number;
97
+ memory_mib?: number;
98
+ vcpu?: number;
99
+ };
100
+ max_instances?: number;
101
+ scheduling_policy?: string;
102
+ }
103
+ /**
104
+ * A wrangler `workflows[]` entry (parsed from untrusted JSONC). Unlike
105
+ * containers, workflows are NOT Durable Objects — the entry stands alone (no
106
+ * `durable_objects` binding, no migration class).
107
+ */
108
+ interface WranglerWorkflowEntry {
109
+ binding?: string;
110
+ class_name?: string;
111
+ /** `{ success_retention?, error_retention? }` durations; shape-checked by `validateWorkflowSettings`. */
112
+ default_retention?: unknown;
113
+ /** `{ steps? }`; shape-checked by `validateWorkflowSettings`. */
114
+ limits?: unknown;
115
+ name?: string;
116
+ /** Cron strings that each start an instance; shape-checked by `validateWorkflowSettings`. */
117
+ schedules?: unknown;
118
+ /** Present when the class lives in ANOTHER Worker — then it is that script's to export. */
119
+ script_name?: string;
120
+ }
121
+ /** A wrangler `queues.producers[]` entry — a `Queue` binding sending to `queue`. */
122
+ interface WranglerQueueProducer {
123
+ binding?: string;
124
+ delivery_delay?: number;
125
+ queue?: string;
126
+ }
127
+ /** A wrangler `queues.consumers[]` entry — push (worker) or `type: "http_pull"`. */
128
+ interface WranglerQueueConsumer {
129
+ dead_letter_queue?: string;
130
+ max_batch_size?: number;
131
+ max_batch_timeout?: number;
132
+ max_concurrency?: number;
133
+ max_retries?: number;
134
+ queue?: string;
135
+ retry_delay?: number;
136
+ type?: string;
137
+ }
138
+ interface WranglerConfig {
139
+ account_id?: unknown;
140
+ ai?: {
141
+ binding?: unknown;
142
+ } | null;
143
+ ai_search?: ReadonlyArray<{
144
+ binding?: string;
145
+ instance_name?: string;
146
+ remote?: boolean;
147
+ } | null | undefined>;
148
+ ai_search_namespaces?: ReadonlyArray<{
149
+ binding?: string;
150
+ namespace?: string;
151
+ remote?: boolean;
152
+ } | null | undefined>;
153
+ analytics?: {
154
+ binding?: unknown;
155
+ remote?: boolean;
156
+ } | null;
157
+ analytics_engine_datasets?: ReadonlyArray<{
158
+ binding?: string;
159
+ dataset?: string;
160
+ } | null | undefined>;
161
+ artifacts?: ReadonlyArray<{
162
+ binding?: string;
163
+ namespace?: string;
164
+ remote?: boolean;
165
+ } | null | undefined>;
166
+ assets?: {
167
+ binding?: string;
168
+ directory?: string;
169
+ html_handling?: string;
170
+ not_found_handling?: string;
171
+ run_worker_first?: boolean | ReadonlyArray<string>;
172
+ };
173
+ browser?: {
174
+ binding?: string;
175
+ };
176
+ cache?: {
177
+ enabled?: boolean;
178
+ } | null;
179
+ compatibility_date?: string;
180
+ compatibility_flags?: ReadonlyArray<string>;
181
+ containers?: ReadonlyArray<WranglerContainerEntry | null | undefined>;
182
+ d1_databases?: ReadonlyArray<{
183
+ binding?: string;
184
+ database_id?: string;
185
+ database_name?: string;
186
+ migrations_dir?: string;
187
+ migrations_pattern?: string;
188
+ } | null | undefined>;
189
+ dispatch_namespaces?: ReadonlyArray<{
190
+ binding?: string;
191
+ namespace?: string;
192
+ outbound?: unknown;
193
+ } | null | undefined>;
194
+ durable_objects?: {
195
+ bindings?: ReadonlyArray<WranglerDurableObjectBinding$1>;
196
+ };
197
+ env?: Record<string, WranglerConfig>;
198
+ exports?: Record<string, {
199
+ cache?: {
200
+ enabled?: boolean;
201
+ } | null;
202
+ default_retention?: unknown;
203
+ limits?: unknown;
204
+ name?: unknown;
205
+ schedules?: unknown;
206
+ type?: string;
207
+ } | null> | null;
208
+ flagship?: ReadonlyArray<{
209
+ app_id?: string;
210
+ binding?: string;
211
+ } | null | undefined>;
212
+ hyperdrive?: ReadonlyArray<{
213
+ binding?: string;
214
+ id?: string;
215
+ localConnectionString?: string;
216
+ } | null | undefined>;
217
+ images?: {
218
+ binding?: string;
219
+ };
220
+ k2?: ReadonlyArray<unknown>;
221
+ kv_namespaces?: ReadonlyArray<{
222
+ binding?: string;
223
+ id?: string;
224
+ } | null | undefined>;
225
+ limits?: {
226
+ cpu_ms?: number;
227
+ };
228
+ logpush?: boolean;
229
+ main?: string;
230
+ media?: {
231
+ binding?: string;
232
+ };
233
+ migrations?: ReadonlyArray<{
234
+ deleted_classes?: ReadonlyArray<string>;
235
+ new_classes?: ReadonlyArray<string>;
236
+ new_sqlite_classes?: ReadonlyArray<string>;
237
+ renamed_classes?: ReadonlyArray<{
238
+ from?: string;
239
+ to?: string;
240
+ } | null | undefined>;
241
+ } | null | undefined>;
242
+ mtls_certificates?: ReadonlyArray<{
243
+ binding?: string;
244
+ certificate_id?: string;
245
+ } | null | undefined>;
246
+ observability?: WranglerObservability;
247
+ pipelines?: ReadonlyArray<{
248
+ binding?: string;
249
+ pipeline?: string;
250
+ stream?: string;
251
+ } | null | undefined>;
252
+ placement?: {
253
+ host?: string;
254
+ hostname?: string;
255
+ mode?: string;
256
+ region?: string;
257
+ };
258
+ queues?: {
259
+ consumers?: ReadonlyArray<WranglerQueueConsumer | null | undefined>;
260
+ producers?: ReadonlyArray<WranglerQueueProducer | null | undefined>;
261
+ };
262
+ r2_buckets?: ReadonlyArray<{
263
+ binding?: string;
264
+ bucket_name?: string;
265
+ jurisdiction?: string;
266
+ } | null | undefined>;
267
+ secrets?: {
268
+ required?: unknown;
269
+ } | null;
270
+ secrets_store_secrets?: ReadonlyArray<{
271
+ binding?: string;
272
+ secret_name?: string;
273
+ store_id?: string;
274
+ } | null | undefined>;
275
+ send_email?: ReadonlyArray<{
276
+ allowed_destination_addresses?: ReadonlyArray<string>;
277
+ destination_address?: string;
278
+ name?: string;
279
+ } | null | undefined>;
280
+ services?: ReadonlyArray<{
281
+ binding?: string;
282
+ entrypoint?: string;
283
+ environment?: string;
284
+ service?: string;
285
+ } | null | undefined>;
286
+ stream?: {
287
+ binding?: string;
288
+ };
289
+ tail_consumers?: ReadonlyArray<TailConsumer | null | undefined>;
290
+ vars?: Record<string, unknown>;
291
+ vectorize?: ReadonlyArray<{
292
+ binding?: string;
293
+ index_name?: string;
294
+ } | null | undefined>;
295
+ vpc_networks?: ReadonlyArray<{
296
+ binding?: string;
297
+ network_id?: string;
298
+ remote?: boolean;
299
+ tunnel_id?: string;
300
+ } | null | undefined>;
301
+ vpc_services?: ReadonlyArray<{
302
+ binding?: string;
303
+ remote?: boolean;
304
+ service_id?: string;
305
+ } | null | undefined>;
306
+ workflows?: ReadonlyArray<WranglerWorkflowEntry | null | undefined>;
307
+ }
308
+ interface WranglerValidationReport {
309
+ errors: string[];
310
+ valid: boolean;
311
+ warnings: string[];
312
+ }
313
+ /** A Durable Object binding as `wrangler.jsonc` spells it. */
314
+ interface WranglerDurableObjectBinding {
315
+ class_name?: string;
316
+ name?: string;
317
+ script_name?: string;
318
+ }
319
+ /** The slice of `wrangler.jsonc` that translates into Alchemy resources. */
320
+ interface WranglerConfigShape {
321
+ ai?: {
322
+ binding?: string;
323
+ };
324
+ analytics_engine_datasets?: ReadonlyArray<{
325
+ binding?: string;
326
+ dataset?: string;
327
+ }>;
328
+ /** Static assets. Alchemy 2 always binds them as `ASSETS`. */
329
+ assets?: {
330
+ binding?: string;
331
+ directory?: string;
332
+ html_handling?: string;
333
+ not_found_handling?: string;
334
+ run_worker_first?: boolean | ReadonlyArray<string>;
335
+ };
336
+ browser?: {
337
+ binding?: string;
338
+ };
339
+ compatibility_date?: string;
340
+ compatibility_flags?: ReadonlyArray<string>;
341
+ d1_databases?: ReadonlyArray<{
342
+ binding?: string;
343
+ database_id?: string;
344
+ database_name?: string;
345
+ }>;
346
+ durable_objects?: {
347
+ bindings?: ReadonlyArray<WranglerDurableObjectBinding>;
348
+ };
349
+ hyperdrive?: ReadonlyArray<{
350
+ binding?: string;
351
+ id?: string;
352
+ }>;
353
+ images?: {
354
+ binding?: string;
355
+ };
356
+ kv_namespaces?: ReadonlyArray<{
357
+ binding?: string;
358
+ id?: string;
359
+ }>;
360
+ main?: string;
361
+ /** `new_sqlite_classes` marks which DO classes get SQLite storage. */
362
+ migrations?: ReadonlyArray<{
363
+ new_classes?: ReadonlyArray<string>;
364
+ new_sqlite_classes?: ReadonlyArray<string>;
365
+ tag?: string;
366
+ }>;
367
+ name?: string;
368
+ observability?: WranglerObservability;
369
+ queues?: {
370
+ consumers?: ReadonlyArray<WranglerQueueConsumer>;
371
+ producers?: ReadonlyArray<{
372
+ binding?: string;
373
+ queue?: string;
374
+ }>;
375
+ };
376
+ r2_buckets?: ReadonlyArray<{
377
+ binding?: string;
378
+ bucket_name?: string;
379
+ }>;
380
+ tail_consumers?: ReadonlyArray<{
381
+ service?: string;
382
+ }>;
383
+ triggers?: {
384
+ crons?: ReadonlyArray<string>;
385
+ };
386
+ vars?: Readonly<Record<string, unknown>>;
387
+ vectorize?: ReadonlyArray<{
388
+ binding?: string;
389
+ index_name?: string;
390
+ }>;
391
+ workers_dev?: boolean;
392
+ workflows?: ReadonlyArray<{
393
+ binding?: string;
394
+ class_name?: string;
395
+ name?: string;
396
+ script_name?: string;
397
+ }>;
398
+ }
399
+ /** What the translation could not carry over, so the caller can say so out loud. */
400
+ interface AlchemyTranslation {
401
+ /** The emitted program source (`alchemy.run.ts`). */
402
+ source: string;
403
+ /**
404
+ * Sections present in `wrangler.jsonc` that this translation drops.
405
+ *
406
+ * Reported rather than silently omitted: a deploy that quietly loses a
407
+ * service binding produces a worker whose `env.AUTH` is undefined at
408
+ * runtime, and nothing in the build says why.
409
+ */
410
+ unsupported: ReadonlyArray<string>;
411
+ }
412
+ /**
413
+ * Translate a parsed `wrangler.jsonc` into an Alchemy 2 program.
414
+ *
415
+ * Pure: it reads nothing and writes nothing, so the caller decides where the
416
+ * source lands and the whole thing stays testable as a string comparison.
417
+ * @param config The parsed `wrangler.jsonc`.
418
+ * @returns the program source, plus whatever could not be carried over.
419
+ */
420
+ declare const wranglerToAlchemy: (config: WranglerConfigShape) => AlchemyTranslation;
421
+ /** Schema version of the emitted document, so a consumer can gate on shape changes. */
422
+ declare const BINDING_MANIFEST_VERSION = 1;
423
+ /**
424
+ * One resource the built Worker expects to be bound to. `binding` is the name the
425
+ * Worker reads off `env`; the remaining fields are whatever identifies the
426
+ * resource for that type, omitted when the config does not carry them (an id
427
+ * Lunora could not mint is absent here exactly as it is absent from the config).
428
+ */
429
+ interface BindingRequirement {
430
+ /** The `env` property name the Worker reads. */
431
+ binding: string;
432
+ /**
433
+ * Durable Object / Workflow / Container class the Worker must export. Present
434
+ * for the class-backed binding types, so a deployer can assert the bundle
435
+ * exports it before publishing.
436
+ */
437
+ className?: string;
438
+ /** Bucket name (`r2`), database name (`d1`), dataset (`analytics_engine`), queue name (`queue`), index (`vectorize`), stream (`pipeline`), namespace (`artifacts`, `ai_search_namespace`), instance (`ai_search`), Worker name (`service`). */
439
+ resource?: string;
440
+ /** Remote resource id, when the config declares one (`d1`, `kv`, `hyperdrive`, `vpc_service`, `vpc_network`). */
441
+ resourceId?: string;
442
+ /** For `durable_object`: whether the class uses SQLite storage (`new_sqlite_classes`). */
443
+ sqlite?: boolean;
444
+ /** The kind of resource, keyed to the wrangler section it came from. */
445
+ type: "ai" | "ai_search" | "ai_search_namespace" | "analytics_engine" | "analytics_sql" | "artifacts" | "assets" | "browser" | "container" | "d1" | "durable_object" | "hyperdrive" | "images" | "kv" | "media" | "pipeline" | "queue_consumer" | "queue_producer" | "r2" | "service" | "stream" | "vectorize" | "vpc_network" | "vpc_service" | "workflow";
446
+ }
447
+ /** The document the `lunora build --emit-bindings` flag writes. */
448
+ interface BindingManifest {
449
+ /** Every resource the Worker expects, sorted by `type` then `binding` so the file is diff-stable. */
450
+ bindings: ReadonlyArray<BindingRequirement>;
451
+ /** `compatibility_date`, when declared. */
452
+ compatibilityDate?: string;
453
+ /** `compatibility_flags`, when declared. */
454
+ compatibilityFlags?: ReadonlyArray<string>;
455
+ /** Cron expressions the Worker must be triggered on (`triggers.crons`). */
456
+ crons: ReadonlyArray<string>;
457
+ /**
458
+ * Config keys whose value is not the shape wrangler expects — `kv_namespaces`
459
+ * as an object, a `null` entry in `queues.producers` — sorted. Whatever they
460
+ * held is left out of `bindings`: the builder reads a hand-edited config
461
+ * during `lunora dev`, where throwing would abort the start, and wrangler
462
+ * reports the bad key itself when it loads the file.
463
+ */
464
+ malformed: ReadonlyArray<string>;
465
+ /** Worker name from `wrangler.jsonc`. */
466
+ name?: string;
467
+ /**
468
+ * Wrangler sections present in the config that this version does not model,
469
+ * by field name. Empty for a fully-understood config; non-empty is a prompt to
470
+ * extend the collector, and is surfaced to the user rather than silently
471
+ * dropped.
472
+ */
473
+ unknown: ReadonlyArray<string>;
474
+ /** Names of `vars` entries. Values are deliberately excluded — a manifest is committed and read by CI, and a `vars` entry can hold a value a project would rather not publish. */
475
+ vars: ReadonlyArray<string>;
476
+ /** Schema version — {@link BINDING_MANIFEST_VERSION}. */
477
+ version: number;
478
+ }
479
+ /**
480
+ * The wider config this reads. {@link WranglerConfigShape} covers what the
481
+ * Alchemy translation models; a manifest additionally lists the sections that
482
+ * translation reports as unsupported, so those it reads are declared here.
483
+ */
484
+ interface ManifestConfigShape extends WranglerConfigShape {
485
+ ai?: {
486
+ binding?: string;
487
+ };
488
+ ai_search?: ReadonlyArray<{
489
+ binding?: string;
490
+ instance_name?: string;
491
+ }>;
492
+ ai_search_namespaces?: ReadonlyArray<{
493
+ binding?: string;
494
+ namespace?: string;
495
+ }>;
496
+ /** The Analytics SQL binding — a parameterless `{ binding }`, distinct from `analytics_engine_datasets`. */
497
+ analytics?: {
498
+ binding?: string;
499
+ };
500
+ analytics_engine_datasets?: ReadonlyArray<{
501
+ binding?: string;
502
+ dataset?: string;
503
+ }>;
504
+ artifacts?: ReadonlyArray<{
505
+ binding?: string;
506
+ namespace?: string;
507
+ }>;
508
+ /** Static assets carry a real `binding` the Worker reads (`env.ASSETS`). */
509
+ assets?: {
510
+ binding?: string;
511
+ directory?: string;
512
+ };
513
+ browser?: {
514
+ binding?: string;
515
+ };
516
+ containers?: ReadonlyArray<{
517
+ class_name?: string;
518
+ image?: string;
519
+ max_instances?: number;
520
+ }>;
521
+ /** Top-level exports; only `type: "workflow"` entries map to a binding requirement (see {@link collectWorkflowExports}). */
522
+ exports?: Record<string, {
523
+ name?: string;
524
+ type?: string;
525
+ } | null | undefined>;
526
+ hyperdrive?: ReadonlyArray<{
527
+ binding?: string;
528
+ id?: string;
529
+ }>;
530
+ images?: {
531
+ binding?: string;
532
+ };
533
+ media?: {
534
+ binding?: string;
535
+ };
536
+ /** `pipeline` is wrangler's deprecated spelling of `stream`; both are read. */
537
+ pipelines?: ReadonlyArray<{
538
+ binding?: string;
539
+ pipeline?: string;
540
+ stream?: string;
541
+ }>;
542
+ /** Adds `consumers` — the Alchemy translation models producers only. */
543
+ queues?: {
544
+ consumers?: ReadonlyArray<{
545
+ queue?: string;
546
+ }>;
547
+ producers?: ReadonlyArray<{
548
+ binding?: string;
549
+ queue?: string;
550
+ }>;
551
+ };
552
+ /** Service bindings to sibling Workers; `service` is the Worker name. */
553
+ services?: ReadonlyArray<{
554
+ binding?: string;
555
+ entrypoint?: string;
556
+ service?: string;
557
+ }>;
558
+ stream?: {
559
+ binding?: string;
560
+ };
561
+ vectorize?: ReadonlyArray<{
562
+ binding?: string;
563
+ index_name?: string;
564
+ }>;
565
+ vpc_networks?: ReadonlyArray<{
566
+ binding?: string;
567
+ network_id?: string;
568
+ tunnel_id?: string;
569
+ }>;
570
+ vpc_services?: ReadonlyArray<{
571
+ binding?: string;
572
+ service_id?: string;
573
+ }>;
574
+ workflows?: ReadonlyArray<{
575
+ binding?: string;
576
+ class_name?: string;
577
+ name?: string;
578
+ }>;
579
+ }
580
+ /**
581
+ * Build the manifest for a parsed `wrangler.jsonc`.
582
+ *
583
+ * Pure: reads nothing and writes nothing, so the caller decides where the
584
+ * document lands and the mapping stays testable as a plain object comparison.
585
+ *
586
+ * Total over any parsed JSON: the config is user-edited and read on every
587
+ * `lunora dev` start, so a section of the wrong shape lands in
588
+ * {@link BindingManifest.malformed} instead of throwing.
589
+ * @param config The parsed, already-reconciled `wrangler.jsonc`.
590
+ * @returns the requirements document.
591
+ */
592
+ declare const buildBindingManifest: (config: ManifestConfigShape) => BindingManifest;
593
+ export { AlchemyTranslation as A, BindingRequirement as B, DEFAULT_OBSERVABILITY as D, ManifestConfigShape as M, ObservabilitySignalSampling as O, TailConsumer as T, WranglerConfig as W, WranglerValidationReport as a, BINDING_MANIFEST_VERSION as b, BindingManifest as c, WranglerConfigShape as d, WranglerContainerEntry as e, WranglerObservability as f, WranglerObservabilityLogs as g, WranglerObservabilityTraces as h, WranglerWorkflowEntry as i, buildBindingManifest as j, resolveObservabilitySampling as r, wranglerToAlchemy as w };