@cloudflare/deploy-helpers 0.20.4 → 0.22.0

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.
@@ -1,8 +1,9 @@
1
1
  import { createRequire } from 'node:module';
2
2
  import { __name } from './chunk-U6NEESU5.mjs';
3
- import { resolveCliPresentation } from '@cloudflare/workers-utils';
4
3
 
5
4
  createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
5
+
6
+ // src/shared/context.ts
6
7
  var logger;
7
8
  var fetchResult;
8
9
  var fetchListResult;
@@ -11,9 +12,7 @@ var fetchKVGetValue;
11
12
  var confirm;
12
13
  var prompt;
13
14
  var select;
14
- var cliPresentation = resolveCliPresentation();
15
15
  function initDeployHelpersContext(ctx) {
16
- cliPresentation = resolveCliPresentation(ctx.cliPresentation);
17
16
  logger = ctx.logger;
18
17
  fetchResult = ctx.fetchResult;
19
18
  fetchListResult = ctx.fetchListResult;
@@ -25,4 +24,4 @@ function initDeployHelpersContext(ctx) {
25
24
  }
26
25
  __name(initDeployHelpersContext, "initDeployHelpersContext");
27
26
 
28
- export { cliPresentation, confirm, fetchKVGetValue, fetchListResult, fetchPagedListResult, fetchResult, initDeployHelpersContext, logger, prompt, select };
27
+ export { confirm, fetchKVGetValue, fetchListResult, fetchPagedListResult, fetchResult, initDeployHelpersContext, logger, prompt, select };
@@ -1,10 +1,8 @@
1
1
  import { BuiltImage, ContainerNormalizedConfig, BuiltContainerImage } from '@cloudflare/containers-shared';
2
- import { ContainerApp, Config, CliPresentationOverrides, FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, DurableObjectCodeUpdateStrategy, CfModule, CfWorkerSourceMap, CfModuleType, CliPresentation } from '@cloudflare/workers-utils';
2
+ import { ContainerApp, Config, FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, DurableObjectCodeUpdateStrategy, CfModule, CfWorkerSourceMap, CfModuleType } from '@cloudflare/workers-utils';
3
3
 
4
4
  /** API, logging, and prompt implementations supplied by the consumer. */
5
5
  type DeployHelpersContext = {
6
- /** Consumer-specific names and commands used in user-facing output. */
7
- cliPresentation?: CliPresentationOverrides;
8
6
  fetchResult: FetchResultFetcher;
9
7
  fetchListResult: FetchListResultFetcher;
10
8
  fetchPagedListResult: FetchPagedListResultFetcher;
@@ -175,6 +173,11 @@ type TriggerProps = {
175
173
  firstDeploy: boolean;
176
174
  dryRun: boolean;
177
175
  validated: boolean;
176
+ queueCreateCommand: (queueName: string) => string;
177
+ workersDevConfigFieldName: string;
178
+ workersDevConfigAssignment: (value: boolean) => string;
179
+ previewUrlsConfigFieldName: string;
180
+ previewUrlsConfigAssignment: (value: boolean) => string;
178
181
  };
179
182
 
180
183
  /**
@@ -197,11 +200,10 @@ declare let fetchKVGetValue: FetchKVGetValueFetcher;
197
200
  declare let confirm: DeployHelpersContext["confirm"];
198
201
  declare let prompt: DeployHelpersContext["prompt"];
199
202
  declare let select: DeployHelpersContext["select"];
200
- declare let cliPresentation: CliPresentation;
201
203
  /**
202
204
  * Set the global context for deploy-helpers. Must be called once at
203
205
  * startup before any deploy-helpers function that needs these values.
204
206
  */
205
207
  declare function initDeployHelpersContext(ctx: DeployHelpersContext): void;
206
208
 
207
- export { type BuiltDurableObjectContainerImage as B, type ContainerlessConfig as C, type DeployProps as D, type SharedDeployVersionsProps as S, type TriggerProps as T, type VersionsUploadProps as V, type WorkerBuildResult as W, type TriggerDeployment as a, type ContainerDeployConfig as b, type DeployHelpersContext as c, cliPresentation as d, confirm as e, fetchKVGetValue as f, fetchListResult as g, fetchPagedListResult as h, initDeployHelpersContext as i, fetchResult as j, logger as l, prompt as p, select as s };
209
+ export { type BuiltDurableObjectContainerImage as B, type ContainerlessConfig as C, type DeployProps as D, type SharedDeployVersionsProps as S, type TriggerProps as T, type VersionsUploadProps as V, type WorkerBuildResult as W, type TriggerDeployment as a, type ContainerDeployConfig as b, type DeployHelpersContext as c, confirm as d, fetchListResult as e, fetchKVGetValue as f, fetchPagedListResult as g, fetchResult as h, initDeployHelpersContext as i, logger as l, prompt as p, select as s };
@@ -1,3 +1,3 @@
1
- export { d as cliPresentation, e as confirm, f as fetchKVGetValue, g as fetchListResult, h as fetchPagedListResult, j as fetchResult, i as initDeployHelpersContext, l as logger, p as prompt, s as select } from './context-CYOACjI9.mjs';
1
+ export { d as confirm, f as fetchKVGetValue, e as fetchListResult, g as fetchPagedListResult, h as fetchResult, i as initDeployHelpersContext, l as logger, p as prompt, s as select } from './context-qB2Gxcuw.mjs';
2
2
  import '@cloudflare/workers-utils';
3
3
  import '@cloudflare/containers-shared';
package/dist/context.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from 'node:module';
2
- export { cliPresentation, confirm, fetchKVGetValue, fetchListResult, fetchPagedListResult, fetchResult, initDeployHelpersContext, logger, prompt, select } from './chunk-JXU4CCEI.mjs';
2
+ export { confirm, fetchKVGetValue, fetchListResult, fetchPagedListResult, fetchResult, initDeployHelpersContext, logger, prompt, select } from './chunk-Y4VATABS.mjs';
3
3
  import './chunk-U6NEESU5.mjs';
4
4
 
5
5
  createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SharedDeployVersionsProps, D as DeployProps, C as ContainerlessConfig, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment, B as BuiltDurableObjectContainerImage } from './context-CYOACjI9.mjs';
2
- export { b as ContainerDeployConfig, c as DeployHelpersContext, i as initDeployHelpersContext } from './context-CYOACjI9.mjs';
1
+ import { S as SharedDeployVersionsProps, D as DeployProps, C as ContainerlessConfig, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment, B as BuiltDurableObjectContainerImage } from './context-qB2Gxcuw.mjs';
2
+ export { b as ContainerDeployConfig, c as DeployHelpersContext, i as initDeployHelpersContext } from './context-qB2Gxcuw.mjs';
3
3
  import * as _cloudflare_workers_utils from '@cloudflare/workers-utils';
4
4
  import { CfModule, Config, AssetsOptions, ComplianceConfig, LegacyAssetPaths, Route, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfPlacement, Binding as Binding$1, RawConfig, CfCapnp, CfScriptFormat, ParseError, WorkerMetadataBinding, CfUserLimits, CfWorkerInit, TailConsumer, StreamingTailConsumer, Observability, ResolvedDurableObjectContainerApp, DurableObjectContainerApp, ExportsReconciliationErrorDetail, ExportsReconciliationResult, StartDevWorkerInput, Json, CacheOptions, PreviewsConfig } from '@cloudflare/workers-utils';
5
5
  import { FormData } from 'undici';
@@ -39,11 +39,22 @@ declare const buildAssetManifest: (dir: string) => Promise<AssetManifest>;
39
39
  declare function resolveAssetOptions({ assetsDir, main }: Pick<SharedDeployVersionsProps, "assetsDir" | "main">, config: Config): AssetsOptions | undefined;
40
40
 
41
41
  /**
42
- * Wrangler-specific functions injected into `deploy()`. These remain in
43
- * wrangler because they depend on wrangler-only systems (account selection,
44
- * metrics, the dev-mode worker registry, etc.).
42
+ * Consumer-specific values and integrations injected into `deploy()`.
45
43
  */
46
- type DeployCallbacks = {
44
+ type DeployOptions = {
45
+ deployCommand: string;
46
+ versionsDeployCommand: string;
47
+ d1ListCommand: string;
48
+ d1DeleteCommand: string;
49
+ queueCreateCommand: (queueName: string) => string;
50
+ secretPutCommand: string;
51
+ workersDevConfigFieldName: string;
52
+ workersDevConfigAssignment: (value: boolean) => string;
53
+ previewUrlsConfigFieldName: string;
54
+ previewUrlsConfigAssignment: (value: boolean) => string;
55
+ configFileName: string;
56
+ observabilityTargetPercentageField: string;
57
+ observabilityTargetCountField: string;
47
58
  syncWorkersSite: ((complianceConfig: ComplianceConfig, accountId: string | undefined, scriptName: string, siteAssets: LegacyAssetPaths | undefined, preview: boolean, dryRun: boolean | undefined, oldAssetTTL: number | undefined) => Promise<{
48
59
  manifest: {
49
60
  [filePath: string]: string;
@@ -63,10 +74,22 @@ type DeployResult = {
63
74
  targets?: string[];
64
75
  bundleSize?: BundleSize;
65
76
  };
66
- declare function deploy(props: DeployProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, callbacks: DeployCallbacks): Promise<DeployResult>;
77
+ declare function deploy(props: DeployProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, options: DeployOptions): Promise<DeployResult>;
67
78
 
68
- /** Compatibility callback shape for existing deploy-helpers consumers. */
69
- type VersionsUploadCallbacks = Pick<DeployCallbacks, "analyseBundle">;
79
+ type VersionsUploadOptions = {
80
+ deployCommand: string;
81
+ versionsUploadCommand: string;
82
+ versionsDeployCommand: string;
83
+ triggersDeployCommand: string;
84
+ d1ListCommand: string;
85
+ d1DeleteCommand: string;
86
+ queueCreateCommand: (queueName: string) => string;
87
+ versionsSecretPutCommand: string;
88
+ /**
89
+ * @deprecated Startup profiling is provided by deploy-helpers automatically.
90
+ */
91
+ analyseBundle?: (workerBundle: string | FormData) => Promise<Record<string, unknown>>;
92
+ };
70
93
  type VersionsUploadResult = {
71
94
  versionId: string | null;
72
95
  workerTag: string | null;
@@ -75,7 +98,7 @@ type VersionsUploadResult = {
75
98
  versionPreviewAliasUrl?: string | undefined;
76
99
  bundleSize?: BundleSize;
77
100
  };
78
- declare function versionsUpload(props: VersionsUploadProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, callbacks?: VersionsUploadCallbacks): Promise<VersionsUploadResult>;
101
+ declare function versionsUpload(props: VersionsUploadProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, options: VersionsUploadOptions): Promise<VersionsUploadResult>;
79
102
 
80
103
  declare const PREVIEW_DOMAIN_PROVISIONING_NOTE = "Note: DNS and TLS certificate provisioning for Preview domains may continue after this deploy. If a new Preview URL does not work immediately, wait a few minutes and retry.";
81
104
  declare function triggersDeploy(props: TriggerProps): Promise<string[] | void>;
@@ -95,7 +118,7 @@ declare function getSubdomainValuesAPIMock(config_workers_dev: boolean | undefin
95
118
  * @param afterEnabled Whether workers.dev is enabled for the deployment.
96
119
  * @returns Consumer-specific guidance for making the setting explicit.
97
120
  */
98
- declare function renderWorkersDevDefaultWarning(beforeEnabled: boolean, afterEnabled: boolean): string;
121
+ declare function renderWorkersDevDefaultWarning(beforeEnabled: boolean, afterEnabled: boolean, configFile: string, workersDevConfigFieldName: string, workersDevConfigAssignment: (value: boolean) => string): string;
99
122
  declare function validateEventTriggerTargets(config: Config, scriptName: string): void;
100
123
 
101
124
  type WorkersDevSubdomainRegistrationContext = "workers_dev" | "workflows";
@@ -257,15 +280,15 @@ interface PurgeQueueResponse {
257
280
  complete: boolean;
258
281
  }
259
282
  declare function listQueues(complianceConfig: ComplianceConfig, accountId: string, page?: number, name?: string): Promise<QueueResponse[]>;
260
- declare function getQueue(complianceConfig: ComplianceConfig, accountId: string, queueName: string): Promise<QueueResponse>;
261
- declare function postConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, body: PostTypedConsumerBody): Promise<TypedConsumerResponse>;
283
+ declare function getQueue(complianceConfig: ComplianceConfig, accountId: string, queueName: string, queueCreateCommand?: (queueName: string) => string): Promise<QueueResponse>;
284
+ declare function postConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, body: PostTypedConsumerBody, queueCreateCommand?: (queueName: string) => string): Promise<TypedConsumerResponse>;
262
285
  declare function putConsumerById(complianceConfig: ComplianceConfig, accountId: string, queueId: string, consumerId: string, body: PostTypedConsumerBody): Promise<TypedConsumerResponse>;
263
- declare function putConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, scriptName: string, envName: string | undefined, body: PostTypedConsumerBody): Promise<TypedConsumerResponse>;
264
- declare function deletePullConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string): Promise<void>;
265
- declare function listConsumers(complianceConfig: ComplianceConfig, accountId: string, queueName: string): Promise<Consumer[]>;
266
- declare function deleteWorkerConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, scriptName: string, envName: string | undefined): Promise<void>;
267
- declare function updateQueueConsumers(complianceConfig: ComplianceConfig, accountId: string, scriptName: string, config: Config): Promise<Promise<TriggerDeployment>[]>;
268
- declare function ensureQueuesExistByConfig(config: Config, accountId: string, includeProducers?: boolean, scriptName?: string): Promise<void>;
286
+ declare function putConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, scriptName: string, envName: string | undefined, body: PostTypedConsumerBody, queueCreateCommand?: (queueName: string) => string): Promise<TypedConsumerResponse>;
287
+ declare function deletePullConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, queueCreateCommand?: (queueName: string) => string): Promise<void>;
288
+ declare function listConsumers(complianceConfig: ComplianceConfig, accountId: string, queueName: string, queueCreateCommand?: (queueName: string) => string): Promise<Consumer[]>;
289
+ declare function deleteWorkerConsumer(complianceConfig: ComplianceConfig, accountId: string, queueName: string, scriptName: string, envName: string | undefined, queueCreateCommand?: (queueName: string) => string): Promise<void>;
290
+ declare function updateQueueConsumers(complianceConfig: ComplianceConfig, accountId: string, scriptName: string, config: Config, queueCreateCommand: (queueName: string) => string): Promise<Promise<TriggerDeployment>[]>;
291
+ declare function ensureQueuesExistByConfig(config: Config, accountId: string, includeProducers?: boolean, scriptName?: string, queueCreateCommand?: (queueName: string) => string): Promise<void>;
269
292
 
270
293
  /**
271
294
  * Parse placement out of a Config
@@ -332,9 +355,18 @@ declare const WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE = 10208;
332
355
  type SecretsValidationOptions = {
333
356
  type: "deploy";
334
357
  workerExists: boolean;
358
+ secretPutCommand: string;
359
+ uploadCommand: string;
335
360
  } | {
336
361
  type: "upload";
337
362
  };
363
+ type MissingSecretsOptions = Exclude<SecretsValidationOptions, {
364
+ type: "upload";
365
+ }> | {
366
+ type: "upload";
367
+ secretPutCommand: string;
368
+ uploadCommand: string;
369
+ };
338
370
  /**
339
371
  * When `secrets.required` is defined in config, validate the secrets exist on the Worker.
340
372
  * For deploy, if the Worker doesn't exist yet, fail immediately.
@@ -350,7 +382,7 @@ declare function addRequiredSecretsInheritBindings(config: Config, bindings: Rec
350
382
  * The API returns all missing inherit bindings at once, each as a separate
351
383
  * error in response.errors, which maps to individual err.notes entries.
352
384
  */
353
- declare function handleMissingSecretsError(err: unknown, config: Config, options: SecretsValidationOptions): void;
385
+ declare function handleMissingSecretsError(err: unknown, config: Config, options: MissingSecretsOptions): void;
354
386
 
355
387
  type JsonLike = string | number | boolean | null | JsonLike[] | undefined | {
356
388
  [id: string]: JsonLike;
@@ -734,6 +766,8 @@ type PrepareDurableObjectContainerApplicationsArgs = {
734
766
  scriptName: string;
735
767
  /** Version uploads cannot initialize applications without named images. */
736
768
  requireExistingImageLessApplications?: boolean;
769
+ deployCommand?: string;
770
+ versionsUploadCommand?: string;
737
771
  };
738
772
  type DurableObjectContainerApplication = Pick<ResolvedDurableObjectContainerApp, "class_name" | "name">;
739
773
  type VersionedDurableObjectContainerApplication = DurableObjectContainerApplication & {
@@ -756,9 +790,11 @@ declare function getVersionedDurableObjectContainerApplications(versions: ApiVer
756
790
  * These versions carry no managed-policy discriminator, so versions deploy
757
791
  * cannot initialize their applications. A normal deploy must provision them first.
758
792
  */
759
- declare function validateImageLessContainerApplicationsForUpload(config: ContainerlessConfig, containers: DurableObjectContainerApp[], { accountId, scriptName }: {
793
+ declare function validateImageLessContainerApplicationsForUpload(config: ContainerlessConfig, containers: DurableObjectContainerApp[], { accountId, scriptName, deployCommand, versionsUploadCommand, }: {
760
794
  accountId: string;
761
795
  scriptName: string;
796
+ deployCommand: string;
797
+ versionsUploadCommand: string;
762
798
  }): Promise<void>;
763
799
  /** Resolve every versioned application's namespace without creating applications. */
764
800
  declare function resolveVersionedDurableObjectContainerApplications(config: Config, { applications, accountId, scriptName, allowMissingNamespaces, }: {
@@ -779,7 +815,7 @@ declare function deployVersionedDurableObjectContainerApplications(config: Confi
779
815
  scriptName: string;
780
816
  }): Promise<void>;
781
817
  /** Validate managed classes and prepare their named images before Worker upload. */
782
- declare function prepareDurableObjectContainerApplications(config: ContainerlessConfig, durableObjectContainerConfig: DurableObjectContainerApp[], builtImages: BuiltDurableObjectContainerImage[], { accountId, dryRun, scriptName, dispatchNamespace, requireExistingImageLessApplications, }: PrepareDurableObjectContainerApplicationsArgs): Promise<PreparedContainerImages>;
818
+ declare function prepareDurableObjectContainerApplications(config: ContainerlessConfig, durableObjectContainerConfig: DurableObjectContainerApp[], builtImages: BuiltDurableObjectContainerImage[], { accountId, dryRun, scriptName, dispatchNamespace, requireExistingImageLessApplications, deployCommand, versionsUploadCommand, }: PrepareDurableObjectContainerApplicationsArgs): Promise<PreparedContainerImages>;
783
819
  /**
784
820
  * Apply explicit application settings after an uploaded Worker's namespaces exist.
785
821
  *
@@ -827,9 +863,10 @@ declare function isExportsReconciliationErrorDetails(value: unknown): value is E
827
863
  * concrete CLI-specific next step and a link to the gradual-deployments docs.
828
864
  *
829
865
  * @param serverMessage Error message returned by the deployment API.
866
+ * @param versionsDeployAt100Command Command that deploys the version at 100%.
830
867
  * @returns The server message followed by consumer-specific recovery guidance.
831
868
  */
832
- declare function renderInconsistentExportsAcrossVersionsError(serverMessage: string): string;
869
+ declare function renderInconsistentExportsAcrossVersionsError(serverMessage: string, versionsDeployAt100Command: string): string;
833
870
 
834
871
  /**
835
872
  * Build the user-facing error message for EWC code 100406
@@ -858,7 +895,7 @@ declare function checkRemoteSecretsOverride(config: Config, scriptName: string,
858
895
  }>;
859
896
 
860
897
  /** Confirm replacement of the current deployment, preserving the public boolean API. */
861
- declare function confirmLatestDeploymentOverwrite(config: Config, accountId: string, scriptName: string): Promise<boolean>;
898
+ declare function confirmLatestDeploymentOverwrite(config: Config, accountId: string, scriptName: string, deployCommand: string, versionsDeployCommand: string): Promise<boolean>;
862
899
  declare function printVersions(versions: ApiVersion[], traffic: Map<VersionId, Percentage>): void;
863
900
 
864
901
  declare const hashFile: (filepath: string) => string;
@@ -907,6 +944,8 @@ type ProvisionBindingsResult = {
907
944
  };
908
945
  declare function provisionBindings(bindings: StartDevWorkerInput["bindings"], accountId: string, scriptName: string, autoCreate: boolean, config: Config, options: {
909
946
  skipConfigWriteback?: boolean;
947
+ d1ListCommand: string;
948
+ d1DeleteCommand: string;
910
949
  }): Promise<ProvisionBindingsResult>;
911
950
  declare function getSettings(complianceConfig: ComplianceConfig, accountId: string, scriptName: string): Promise<Settings>;
912
951
  /**
@@ -915,7 +954,7 @@ declare function getSettings(complianceConfig: ComplianceConfig, accountId: stri
915
954
  * @param accountId Account identifier used to construct the upgrade URL.
916
955
  * @returns Consumer-specific database listing and deletion guidance.
917
956
  */
918
- declare function renderD1DatabaseLimitError(accountId: string): string;
957
+ declare function renderD1DatabaseLimitError(accountId: string, d1ListCommand: string, d1DeleteCommand: string): string;
919
958
 
920
959
  interface Binding {
921
960
  type: string;
@@ -1221,7 +1260,9 @@ type PreviewBuildOutput = {
1221
1260
  };
1222
1261
  /** Verify that Build Output was produced with Preview configuration. */
1223
1262
  declare function assertPreviewBuildOutputRootConfig(rootConfig: ParsedOutputRootConfig | undefined): asserts rootConfig is PreviewBuildOutputRootConfig;
1224
- type PreviewCallbacks = {
1263
+ type PreviewOptions = {
1264
+ deployCommand?: string;
1265
+ previewCommand?: string;
1225
1266
  productionBindingsExpectedInPreview?: Record<string, {
1226
1267
  type: string;
1227
1268
  }>;
@@ -1236,7 +1277,7 @@ type PreviewCallbacks = {
1236
1277
  verifyContainersScope?: (scopedConfig: Config) => Promise<void>;
1237
1278
  };
1238
1279
  declare const NO_ACTIVE_PREVIEW_URLS_MESSAGE = "Note: This Preview deployment has no active URLs.";
1239
- declare function formatNoActivePreviewUrlsMessage(config: Config): string;
1280
+ declare function formatNoActivePreviewUrlsMessage(config: Config, deployCommand?: string, previewCommand?: string): string;
1240
1281
  /**
1241
1282
  * Upload a Preview from Wrangler configuration.
1242
1283
  *
@@ -1248,9 +1289,9 @@ declare function formatNoActivePreviewUrlsMessage(config: Config): string;
1248
1289
  * @param config Resolved Wrangler configuration.
1249
1290
  * @param buildResult Compiled Worker code and modules.
1250
1291
  * @param assetsOptions Static asset configuration and artifacts.
1251
- * @param callbacks Wrangler container integrations.
1292
+ * @param options Consumer-specific command paths and Container integrations.
1252
1293
  */
1253
- declare function preview(accountId: string, args: PreviewArgs, config: Config, buildResult: WorkerBuildResult, assetsOptions: PreviewAssetsOptions | undefined, callbacks: PreviewCallbacks): Promise<PreviewResult>;
1294
+ declare function preview(accountId: string, args: PreviewArgs, config: Config, buildResult: WorkerBuildResult, assetsOptions: PreviewAssetsOptions | undefined, options: PreviewOptions): Promise<PreviewResult>;
1254
1295
  /**
1255
1296
  * Upload a Preview from resolved Build Output configuration.
1256
1297
  *
@@ -1258,7 +1299,7 @@ declare function preview(accountId: string, args: PreviewArgs, config: Config, b
1258
1299
  * @param args Preview name and deployment annotations.
1259
1300
  * @param buildOutput Exact configuration and artifacts emitted by the build.
1260
1301
  */
1261
- declare function previewBuildOutput(accountId: string, args: Pick<PreviewArgs, "name" | "tag" | "message" | "json">, buildOutput: PreviewBuildOutput, callbacks?: PreviewCallbacks): Promise<PreviewResult>;
1302
+ declare function previewBuildOutput(accountId: string, args: Pick<PreviewArgs, "name" | "tag" | "message" | "json">, buildOutput: PreviewBuildOutput, options?: PreviewOptions): Promise<PreviewResult>;
1262
1303
  /**
1263
1304
  * Delete a preview and all its deployments.
1264
1305
  */
@@ -1312,4 +1353,4 @@ type DrawConnectedChildBoxOptions = {
1312
1353
  */
1313
1354
  declare function drawConnectedChildBox(contentLines: string[], options?: DrawConnectedChildBoxOptions): string;
1314
1355
 
1315
- export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, BuiltDurableObjectContainerImage, type BulkInputNullableResult, type BulkInputResult, type BundleSize, type Consumer, type ConsumerSettings, ContainerlessConfig, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployCallbacks, DeployProps, type DeploymentResource, type DurableObjectContainerApplication, EXPORTS_RECONCILIATION_ERROR_CODE, type EnvBindings, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, type JsonLike, NO_ACTIVE_PREVIEW_URLS_MESSAGE, NoInputError, type NonVersionedScriptSettings, PREVIEW_DOMAIN_PROVISIONING_NOTE, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreparedContainerImages, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewBuildOutput, type PreviewBuildOutputRootConfig, type PreviewCallbacks, type PreviewDeleteArgs, type PreviewDeploymentModule, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type Producer, type ProvisionBindingsResult, type PullRequestMetadata, type PurgeQueueBody, type PurgeQueueResponse, type QueueJurisdiction, type QueueResponse, type QueueSettings, type RetrieveSourceMapFunction, type RouteObject, type ScriptReference, type Settings, SharedDeployVersionsProps, TriggerDeployment, TriggerProps, type TypedConsumerResponse, type UpdatePreviewRequestParams, type VersionCache, type VersionId, type VersionedDurableObjectContainerApplication, type VersionsUploadCallbacks, VersionsUploadProps, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, WorkerBuildResult, type WorkerSubdomain, type Workflow, type WorkflowConflict, type Zone, type ZoneIdCache, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewScriptSettings, assertPreviewBuildOutputRootConfig, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createDurableObjectContainerApplication, createPreview, createPreviewDeployment, createPreviewDeploymentForm, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployDurableObjectContainerApplications, deployVersionedDurableObjectContainerApplications, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, ensureQueuesExistByConfig, extractBuildOutputBindings, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatNoActivePreviewUrlsMessage, generatePreviewAlias, getBindingValue, getBranchName, getCommitSha, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getPullRequestMetadata, getQueue, getRemoteConfigDiff, getRepositoryUrl, getSettings, getSize, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getVersionedDurableObjectContainerApplications, getWorkerSubdomain, getWorkersDevSubdomain, getWorkersDevSubdomainIfAccessible, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, prepareDurableObjectContainerApplications, preview, previewBuildOutput, previewContainerAppName, previewDelete, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderD1DatabaseLimitError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, renderWorkersDevDefaultWarning, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveVersionedDurableObjectContainerApplications, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateImageLessContainerApplicationsForUpload, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, workerNotFoundErrorMessage };
1356
+ export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, BuiltDurableObjectContainerImage, type BulkInputNullableResult, type BulkInputResult, type BundleSize, type Consumer, type ConsumerSettings, ContainerlessConfig, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployOptions, DeployProps, type DeploymentResource, type DurableObjectContainerApplication, EXPORTS_RECONCILIATION_ERROR_CODE, type EnvBindings, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, type JsonLike, NO_ACTIVE_PREVIEW_URLS_MESSAGE, NoInputError, type NonVersionedScriptSettings, PREVIEW_DOMAIN_PROVISIONING_NOTE, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreparedContainerImages, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewBuildOutput, type PreviewBuildOutputRootConfig, type PreviewDeleteArgs, type PreviewDeploymentModule, type PreviewOptions, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type Producer, type ProvisionBindingsResult, type PullRequestMetadata, type PurgeQueueBody, type PurgeQueueResponse, type QueueJurisdiction, type QueueResponse, type QueueSettings, type RetrieveSourceMapFunction, type RouteObject, type ScriptReference, type Settings, SharedDeployVersionsProps, TriggerDeployment, TriggerProps, type TypedConsumerResponse, type UpdatePreviewRequestParams, type VersionCache, type VersionId, type VersionedDurableObjectContainerApplication, type VersionsUploadOptions, VersionsUploadProps, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, WorkerBuildResult, type WorkerSubdomain, type Workflow, type WorkflowConflict, type Zone, type ZoneIdCache, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewScriptSettings, assertPreviewBuildOutputRootConfig, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createDurableObjectContainerApplication, createPreview, createPreviewDeployment, createPreviewDeploymentForm, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployDurableObjectContainerApplications, deployVersionedDurableObjectContainerApplications, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, ensureQueuesExistByConfig, extractBuildOutputBindings, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatNoActivePreviewUrlsMessage, generatePreviewAlias, getBindingValue, getBranchName, getCommitSha, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getPullRequestMetadata, getQueue, getRemoteConfigDiff, getRepositoryUrl, getSettings, getSize, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getVersionedDurableObjectContainerApplications, getWorkerSubdomain, getWorkersDevSubdomain, getWorkersDevSubdomainIfAccessible, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, prepareDurableObjectContainerApplications, preview, previewBuildOutput, previewContainerAppName, previewDelete, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderD1DatabaseLimitError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, renderWorkersDevDefaultWarning, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveVersionedDurableObjectContainerApplications, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateImageLessContainerApplicationsForUpload, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, workerNotFoundErrorMessage };