@cloudflare/workers-utils 0.33.0 → 0.33.1

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,4 +1,4 @@
1
- import { T as TailConsumer, aO as WorkerMetadata, R as RawConfig } from './config-BKgj-0W1.mjs';
1
+ import { T as TailConsumer, aP as WorkerMetadata, R as RawConfig } from './config-CRUFg2tu.mjs';
2
2
  import { AssetConfig } from '@cloudflare/workers-shared';
3
3
  import { Cloudflare } from 'cloudflare';
4
4
  import 'node:url';
package/dist/browser.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { constructWranglerConfig } from './chunk-NMPHTL5R.mjs';
1
+ export { constructWranglerConfig } from './chunk-IV7UMGT2.mjs';
2
2
  import './chunk-Q72B4Q5Z.mjs';
@@ -1,43 +1,7 @@
1
1
  import { __name } from './chunk-Q72B4Q5Z.mjs';
2
- import assert from 'node:assert';
3
2
 
4
- function isCompatDate(str) {
5
- return /^\d{4}-\d{2}-\d{2}$/.test(str);
6
- }
7
- __name(isCompatDate, "isCompatDate");
8
- function formatCompatibilityDate(date) {
9
- const compatDate = date.toISOString().slice(0, 10);
10
- assert(isCompatDate(compatDate));
11
- return compatDate;
12
- }
13
- __name(formatCompatibilityDate, "formatCompatibilityDate");
14
- function getTodaysCompatDate() {
15
- return formatCompatibilityDate(/* @__PURE__ */ new Date());
16
- }
17
- __name(getTodaysCompatDate, "getTodaysCompatDate");
18
- var NODEJS_COMPAT_DEFAULT_ON_DATE = "2026-08-04";
19
- function isNodejsCompatDefaultOn(compatibilityDate) {
20
- return compatibilityDate !== void 0 && compatibilityDate >= NODEJS_COMPAT_DEFAULT_ON_DATE;
21
- }
22
- __name(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
23
- var NODEJS_COMPAT_V2_SWITCH_OVER_DATE = "2024-09-23";
24
- function resolveNodejsCompat(compatibilityDate, compatibilityFlags) {
25
- const isDefaultOn = isNodejsCompatDefaultOn(compatibilityDate);
26
- const isNodejsCompatEnabled = compatibilityFlags.includes("nodejs_compat") || isDefaultOn && !compatibilityFlags.includes("no_nodejs_compat");
27
- const isNodejsCompatV2Enabled = compatibilityFlags.includes("nodejs_compat_v2") || !compatibilityFlags.includes("no_nodejs_compat_v2") && (isDefaultOn || isNodejsCompatEnabled && compatibilityDate >= NODEJS_COMPAT_V2_SWITCH_OVER_DATE);
28
- return { isNodejsCompatEnabled, isNodejsCompatV2Enabled };
29
- }
30
- __name(resolveNodejsCompat, "resolveNodejsCompat");
31
- function stripRedundantNodejsCompatFlags(compatibilityDate, compatibilityFlags) {
32
- if (!isNodejsCompatDefaultOn(compatibilityDate)) {
33
- return compatibilityFlags;
34
- }
35
- const redundantFlags = ["nodejs_compat", "nodejs_compat_v2"].filter(
36
- (flag) => !compatibilityFlags.includes(`no_${flag}`)
37
- );
38
- return compatibilityFlags.filter((flag) => !redundantFlags.includes(flag));
39
- }
40
- __name(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
3
+ // src/default-compat-date.ts
4
+ var DEFAULT_COMPAT_DATE = "2026-08-15";
41
5
 
42
6
  // src/assert-never.ts
43
7
  function assertNever(_value) {
@@ -483,7 +447,7 @@ function constructWranglerConfig(config) {
483
447
  main: config.entrypoint,
484
448
  workers_dev: config.subdomain.enabled,
485
449
  preview_urls: config.subdomain.previews_enabled,
486
- compatibility_date: config.compatibility_date ?? getTodaysCompatDate(),
450
+ compatibility_date: config.compatibility_date ?? DEFAULT_COMPAT_DATE,
487
451
  compatibility_flags: config.compatibility_flags,
488
452
  ...allRoutes.length ? { routes: allRoutes } : {},
489
453
  placement: config.placement?.mode === "smart" ? { mode: "smart" } : void 0,
@@ -508,4 +472,4 @@ function constructWranglerConfig(config) {
508
472
  }
509
473
  __name(constructWranglerConfig, "constructWranglerConfig");
510
474
 
511
- export { NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, assertNever, constructWranglerConfig, getTodaysCompatDate, isCompatDate, isNodejsCompatDefaultOn, mapWorkerMetadataBindings, resolveNodejsCompat, stripRedundantNodejsCompatFlags };
475
+ export { DEFAULT_COMPAT_DATE, assertNever, constructWranglerConfig, mapWorkerMetadataBindings };
@@ -3,6 +3,11 @@ import { readFileSync as readFileSync$1, statSync, existsSync } from 'node:fs';
3
3
  import path, { resolve, isAbsolute, dirname, join } from 'node:path';
4
4
 
5
5
  // src/config/exports.ts
6
+ function hasKnownExportType(entry) {
7
+ const type = entry?.type;
8
+ return type === "durable-object" || type === "worker";
9
+ }
10
+ __name(hasKnownExportType, "hasKnownExportType");
6
11
  function partitionExports(exports) {
7
12
  const partitioned = {
8
13
  "durable-object": {},
@@ -12,12 +17,60 @@ function partitionExports(exports) {
12
17
  return partitioned;
13
18
  }
14
19
  for (const [name, entry] of Object.entries(exports)) {
20
+ if (!hasKnownExportType(entry)) {
21
+ continue;
22
+ }
15
23
  partitioned[entry.type][name] = entry;
16
24
  }
17
25
  return partitioned;
18
26
  }
19
27
  __name(partitionExports, "partitionExports");
20
28
 
29
+ // src/config/durable-object-exports.ts
30
+ function getDurableObjectExports(exports) {
31
+ return partitionExports(exports)["durable-object"];
32
+ }
33
+ __name(getDurableObjectExports, "getDurableObjectExports");
34
+ function hasDurableObjectExports(exports) {
35
+ return Object.keys(getDurableObjectExports(exports)).length > 0;
36
+ }
37
+ __name(hasDurableObjectExports, "hasDurableObjectExports");
38
+
39
+ // src/config/containers.ts
40
+ function getContainerNameToClassNameMap(exports) {
41
+ const containerNameToClassName = /* @__PURE__ */ new Map();
42
+ for (const [className, entry] of Object.entries(
43
+ getDurableObjectExports(exports)
44
+ )) {
45
+ if ("container" in entry && typeof entry.container === "string" && !containerNameToClassName.has(entry.container)) {
46
+ containerNameToClassName.set(entry.container, className);
47
+ }
48
+ }
49
+ return containerNameToClassName;
50
+ }
51
+ __name(getContainerNameToClassNameMap, "getContainerNameToClassNameMap");
52
+ function resolveContainerClassName(container, exports) {
53
+ if (container.class_name !== void 0) {
54
+ return container.class_name;
55
+ }
56
+ if (container.name === void 0) {
57
+ return void 0;
58
+ }
59
+ return getContainerNameToClassNameMap(exports).get(container.name);
60
+ }
61
+ __name(resolveContainerClassName, "resolveContainerClassName");
62
+ function getContainerDurableObjectClassNames(containers, exports) {
63
+ const classNames = /* @__PURE__ */ new Set();
64
+ for (const container of containers ?? []) {
65
+ const className = resolveContainerClassName(container, exports);
66
+ if (className !== void 0) {
67
+ classNames.add(className);
68
+ }
69
+ }
70
+ return classNames;
71
+ }
72
+ __name(getContainerDurableObjectClassNames, "getContainerDurableObjectClassNames");
73
+
21
74
  // src/errors.ts
22
75
  var UserError = class extends Error {
23
76
  static {
@@ -3201,4 +3254,4 @@ smol-toml/dist/index.js:
3201
3254
  *)
3202
3255
  */
3203
3256
 
3204
- export { APIError, CommandLineArgsError, DeprecationError, ENVIRONMENT_TAG_PREFIX, FatalError, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, JsonFriendlyFatalError, MissingConfigError, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, UserError, applyEdits, configFileName, configFormat, createFatalError, dedent, dir, dist_default, experimental_readRawConfig, findWranglerConfig, format2 as format, formatConfigSnippet, indexLocation, isRedirectedConfig, isRedirectedRawConfig, modify, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveWranglerConfigPath, searchLocation };
3257
+ export { APIError, CommandLineArgsError, DeprecationError, ENVIRONMENT_TAG_PREFIX, FatalError, INHERIT_SYMBOL, JSON_CONFIG_FORMATS, JsonFriendlyFatalError, MissingConfigError, PATH_TO_DEPLOY_CONFIG, ParseError, SERVICE_TAG_PREFIX, UserError, applyEdits, configFileName, configFormat, createFatalError, dedent, dir, dist_default, experimental_readRawConfig, findWranglerConfig, format2 as format, formatConfigSnippet, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectExports, hasDurableObjectExports, indexLocation, isRedirectedConfig, isRedirectedRawConfig, modify, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveWranglerConfigPath, searchLocation };
@@ -53,6 +53,13 @@ declare function isDoNotTrackEnabled(): boolean;
53
53
  * `DO_NOT_TRACK` takes precedence when it is set to an opt-out value.
54
54
  */
55
55
  declare function getWranglerSendMetricsFromEnv(): boolean | undefined;
56
+ /**
57
+ * `WRANGLER_NO_SKILLS_UPDATE_PROMPTS` suppresses the prompt that offers to
58
+ * update Cloudflare agent skills when they are out of date.
59
+ *
60
+ * Set to `"true"` to never be prompted for skills updates.
61
+ */
62
+ declare const getNoSkillsUpdatePromptsFromEnv: () => boolean | undefined;
56
63
  /**
57
64
  * `WRANGLER_SEND_ERROR_REPORTS` controls whether we attempt to send error reports to Sentry.
58
65
  *
@@ -800,8 +807,13 @@ interface CfWorkerInit {
800
807
  * The list of source maps to include on upload.
801
808
  */
802
809
  sourceMaps: CfWorkerSourceMap[] | undefined;
810
+ /**
811
+ * A container is linked to its Durable Object either by `class_name`, or by
812
+ * the Durable Object's `exports` entry naming the container by `name`.
813
+ */
803
814
  containers: {
804
- class_name: string;
815
+ name?: string;
816
+ class_name?: string;
805
817
  }[] | undefined;
806
818
  migrations: CfDurableObjectMigrations | undefined;
807
819
  /**
@@ -1145,7 +1157,8 @@ type WorkerMetadataPut = {
1145
1157
  };
1146
1158
  observability?: Observability | undefined;
1147
1159
  containers?: {
1148
- class_name: string;
1160
+ name?: string;
1161
+ class_name?: string;
1149
1162
  }[];
1150
1163
  package_dependencies?: Array<{
1151
1164
  name: string;
@@ -1443,6 +1456,8 @@ interface StartDevWorkerInput {
1443
1456
  triggers?: Trigger[];
1444
1457
  tailConsumers?: CfTailConsumer[];
1445
1458
  streamingTailConsumers?: CfTailConsumer[];
1459
+ /** Cloudflare Access authentication configuration */
1460
+ access?: Config["access"];
1446
1461
  /**
1447
1462
  * Whether Wrangler should send usage metrics to Cloudflare for this project.
1448
1463
  *
@@ -1663,8 +1678,14 @@ type UnsafeBinding = {
1663
1678
  */
1664
1679
  type ContainerApp = {
1665
1680
  /**
1666
- * Name of the application
1667
- * @optional Defaults to `worker_name-class_name` if not specified.
1681
+ * Name of the application.
1682
+ *
1683
+ * This is also the identifier used to reference the container from a Durable
1684
+ * Object's `exports` entry via its `container` field.
1685
+ *
1686
+ * @optional Defaults to `worker_name-class_name` if not specified. A name is
1687
+ * required when `class_name` is not set, since there is no class name to
1688
+ * derive the default from.
1668
1689
  */
1669
1690
  name?: string;
1670
1691
  /**
@@ -1695,8 +1716,12 @@ type ContainerApp = {
1695
1716
  image_vars?: Record<string, string>;
1696
1717
  /**
1697
1718
  * The class name of the Durable Object the container is connected to.
1719
+ *
1720
+ * @optional Instead of naming the Durable Object here, you can reference this
1721
+ * container from the Durable Object's `exports` entry via its `container`
1722
+ * field. Exactly one of the two directions must be configured.
1698
1723
  */
1699
- class_name: string;
1724
+ class_name?: string;
1700
1725
  /**
1701
1726
  * The scheduling policy of the application
1702
1727
  * @optional
@@ -1908,11 +1933,22 @@ type DurableObjectExportStorage = "sqlite" | "legacy-kv";
1908
1933
  * script via `transfer_from`.
1909
1934
  * - `expecting-transfer` (live): receiving side of a two-phase transfer;
1910
1935
  * `storage` and `transfer_from` are both required.
1936
+ *
1937
+ * The live states may additionally attach a container via `container`, which
1938
+ * names an entry in the top-level `containers` array. Tombstones cannot.
1911
1939
  */
1912
1940
  type DurableObjectExport = {
1913
1941
  type: "durable-object";
1914
1942
  state?: "created";
1915
1943
  storage: DurableObjectExportStorage;
1944
+ /**
1945
+ * Attach a container to this Durable Object. Must match the `name` of an
1946
+ * entry in the top-level `containers` array, and requires
1947
+ * `storage: "sqlite"`.
1948
+ *
1949
+ * @optional
1950
+ */
1951
+ container?: string;
1916
1952
  } | {
1917
1953
  type: "durable-object";
1918
1954
  state: "deleted";
@@ -1929,6 +1965,14 @@ type DurableObjectExport = {
1929
1965
  state: "expecting-transfer";
1930
1966
  storage: DurableObjectExportStorage;
1931
1967
  transfer_from: string;
1968
+ /**
1969
+ * Attach a container to this Durable Object. Must match the `name` of an
1970
+ * entry in the top-level `containers` array, and requires
1971
+ * `storage: "sqlite"`.
1972
+ *
1973
+ * @optional
1974
+ */
1975
+ container?: string;
1932
1976
  };
1933
1977
  interface WorkerEntrypointExport {
1934
1978
  type: "worker";
@@ -2243,6 +2287,12 @@ interface EnvironmentInheritable {
2243
2287
  * @inheritable
2244
2288
  */
2245
2289
  observability: Observability | undefined;
2290
+ /**
2291
+ * Specify the Cloudflare Access authentication behavior of the Worker.
2292
+ *
2293
+ * @inheritable
2294
+ */
2295
+ access: Access | undefined;
2246
2296
  /**
2247
2297
  * Specify the cache behavior of the Worker.
2248
2298
  *
@@ -3197,6 +3247,15 @@ interface Observability {
3197
3247
  destinations?: string[];
3198
3248
  };
3199
3249
  }
3250
+ interface Access {
3251
+ /** Local dev simulation of Cloudflare Access authentication */
3252
+ dev?: {
3253
+ /** The Access application audience tag (aud) */
3254
+ aud: string;
3255
+ /** Mock identity object returned by ctx.access.getIdentity() */
3256
+ identity?: Record<string, unknown>;
3257
+ };
3258
+ }
3200
3259
  interface CacheOptions {
3201
3260
  /** If cache is enabled for this Worker */
3202
3261
  enabled: boolean;
@@ -3507,4 +3566,4 @@ interface EnvironmentMap {
3507
3566
  }
3508
3567
  declare const defaultWranglerConfig: Config;
3509
3568
 
3510
- export { type CfBrowserBinding as $, ARTIFACTS_EVENT_TYPES as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type DispatchNamespaceOutbound as F, type Assets as G, type CacheOptions as H, type DockerConfiguration as I, type ContainerEngine as J, type CfScriptFormat as K, type Logger as L, type CfModuleType as M, type CfModule as N, type Observability as O, type PreviewsConfig as P, type CfVars as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfKvNamespace as V, type WorkerEntrypointExport as W, type CfSendEmailBindings as X, type CfWasmModuleBindings as Y, type ZoneIdRoute as Z, type CfTextBlobBindings as _, type RedirectedRawConfig as a, type Trigger as a$, type CfAIBinding as a0, type CfImagesBinding as a1, type CfMediaBinding as a2, type CfStreamBinding as a3, type CfVersionMetadataBinding as a4, type CfDataBlobBindings as a5, type CfDurableObject as a6, type CfWorkflow as a7, type CfQueue as a8, type CfR2Bucket as a9, type CfUnsafe as aA, type CfDurableObjectMigrations as aB, type CfExports as aC, type CfPlacement as aD, type CfTailConsumer as aE, type CfUserLimits as aF, type CfWorkerInit as aG, type CfWorkerContext as aH, type CfWorkerSourceMap as aI, type Json as aJ, type AssetConfigMetadata as aK, type AssetsOptions as aL, type ValidatedAssetsOptions as aM, type LegacyAssetPaths as aN, type WorkerMetadata as aO, type ExportsReconciliationEntryBase as aP, type ExportsReconciliationInfo as aQ, type ExportsReconciliationWarning as aR, type ExportsReconciliationErrorDetail as aS, type ExportsReconciliationRename as aT, type ExportsReconciliationTransfer as aU, type ExportsReconciliationTransferPending as aV, type ExportsReconciliationResult as aW, type ServiceMetadataRes as aX, type ServiceFetch as aY, type File as aZ, type BinaryFile as a_, type CfD1Database as aa, type CfVectorize as ab, type CfAISearchNamespace as ac, type CfAISearch as ad, type CfWebSearch as ae, type CfAgentMemory as af, type CfSecretsStoreSecrets as ag, type CfArtifacts as ah, type CfHelloWorld as ai, type CfFlagship as aj, type CfWorkerLoader as ak, type CfRateLimit as al, type CfHyperdrive as am, type CfDevPluginCfg as an, type CfService as ao, type CfVpcService as ap, type CfVpcNetwork as aq, type CfAnalyticsEngineDataset as ar, type CfDispatchNamespace as as, type CfMTlsCertificate as at, type CfLogfwdr as au, type CfLogfwdrBinding as av, type CfAssetsBinding as aw, type CfPipeline as ax, type CfUnsafeBinding as ay, type CfCapnp as az, type Config as b, parseRetryAfterValue as b$, type CfAccount as b0, type HookValues as b1, type Hook as b2, type AsyncHook as b3, type LogLevel as b4, type NodeJSCompatMode as b5, type StartDevWorkerInput as b6, type Entry as b7, INHERIT_SYMBOL as b8, SERVICE_TAG_PREFIX as b9, getDockerPath as bA, getSubdomainMixedStateCheckDisabled as bB, getCloudflareLoadDevVarsFromDotEnv as bC, getCloudflareIncludeProcessEnvFromEnv as bD, getTraceHeader as bE, getDisableConfigWatching as bF, getWranglerHideBanner as bG, getCloudflareEnv as bH, getOpenNextDeployFromEnv as bI, getLocalExplorerEnabledFromEnv as bJ, getLocalObservabilityEnabledFromEnv as bK, getBrowserRenderingHeadfulFromEnv as bL, getCfFetchEnabledFromEnv as bM, getCfFetchPathFromEnv as bN, getWranglerCacheDirFromEnv as bO, getCloudflaredPathFromEnv as bP, type ApiCredentials as bQ, type FetchResult as bR, type FetchResultFetcher as bS, type FetchListResultFetcher as bT, type FetchPagedListResultFetcher as bU, performApiFetchBase as bV, fetchInternalBase as bW, fetchResultBase as bX, fetchListResultBase as bY, truncate as bZ, isWAFBlockResponse as b_, ENVIRONMENT_TAG_PREFIX as ba, PATH_TO_DEPLOY_CONFIG as bb, JSON_CONFIG_FORMATS as bc, getC3CommandFromEnv as bd, isDoNotTrackEnabled as be, getWranglerSendMetricsFromEnv as bf, getWranglerSendErrorReportsFromEnv as bg, getCloudflareApiEnvironmentFromEnv as bh, type ComplianceConfig as bi, COMPLIANCE_REGION_CONFIG_PUBLIC as bj, COMPLIANCE_REGION_CONFIG_UNKNOWN as bk, getCloudflareComplianceRegion as bl, getCloudflareApiBaseUrl as bm, getComplianceRegionSubdomain as bn, getSanitizeLogs as bo, getOutputFileDirectoryFromEnv as bp, getOutputFilePathFromEnv as bq, getCIMatchTag as br, getCIOverrideName as bs, getCIOverrideNetworkModeHost as bt, getCIGeneratePreviewAlias as bu, getWorkersCIBranchName as bv, getBuildConditionsFromEnv as bw, getBuildPlatformFromEnv as bx, getRegistryPath as by, getD1ExtraLocationChoices as bz, type WorkerMetadataBinding as c, parseRetryAfterMs as c0, extractWAFBlockRayId as c1, extractAccountTag as c2, hasMorePages as c3, renderError as c4, addAuthorizationHeader as c5, throwFetchError as c6, fetchKVGetValueBase as c7, type FetchKVGetValueFetcher as c8, hasCursor as c9, maybeAddTraceHeader as ca, type Route as d, type RawDevConfig as e, type ConfigFields as f, type RawEnvironment as g, defaultWranglerConfig as h, LOGGER_LEVELS as i, type LoggerLevel as j, type Environment as k, type LocalS3Credentials as l, type ZoneNameRoute as m, type CustomDomainRoute as n, type CloudchamberConfig as o, type ContainerApp as p, type DurableObjectMigration as q, type DurableObjectExportStorage as r, type ConfiguredExport as s, type DurableObjectBindings as t, type ArtifactsEventType as u, type ArtifactsEventTrigger as v, type WorkflowBinding as w, type EnvironmentNonInheritable as x, type Rule as y, type ConfigModuleRuleType as z };
3569
+ export { type CfTextBlobBindings as $, ARTIFACTS_EVENT_TYPES as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type DispatchNamespaceOutbound as F, type Assets as G, type Access as H, type CacheOptions as I, type DockerConfiguration as J, type ContainerEngine as K, type Logger as L, type CfScriptFormat as M, type CfModuleType as N, type Observability as O, type PreviewsConfig as P, type CfModule as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfVars as V, type WorkerEntrypointExport as W, type CfKvNamespace as X, type CfSendEmailBindings as Y, type ZoneIdRoute as Z, type CfWasmModuleBindings as _, type RedirectedRawConfig as a, type BinaryFile as a$, type CfBrowserBinding as a0, type CfAIBinding as a1, type CfImagesBinding as a2, type CfMediaBinding as a3, type CfStreamBinding as a4, type CfVersionMetadataBinding as a5, type CfDataBlobBindings as a6, type CfDurableObject as a7, type CfWorkflow as a8, type CfQueue as a9, type CfCapnp as aA, type CfUnsafe as aB, type CfDurableObjectMigrations as aC, type CfExports as aD, type CfPlacement as aE, type CfTailConsumer as aF, type CfUserLimits as aG, type CfWorkerInit as aH, type CfWorkerContext as aI, type CfWorkerSourceMap as aJ, type Json as aK, type AssetConfigMetadata as aL, type AssetsOptions as aM, type ValidatedAssetsOptions as aN, type LegacyAssetPaths as aO, type WorkerMetadata as aP, type ExportsReconciliationEntryBase as aQ, type ExportsReconciliationInfo as aR, type ExportsReconciliationWarning as aS, type ExportsReconciliationErrorDetail as aT, type ExportsReconciliationRename as aU, type ExportsReconciliationTransfer as aV, type ExportsReconciliationTransferPending as aW, type ExportsReconciliationResult as aX, type ServiceMetadataRes as aY, type ServiceFetch as aZ, type File as a_, type CfR2Bucket as aa, type CfD1Database as ab, type CfVectorize as ac, type CfAISearchNamespace as ad, type CfAISearch as ae, type CfWebSearch as af, type CfAgentMemory as ag, type CfSecretsStoreSecrets as ah, type CfArtifacts as ai, type CfHelloWorld as aj, type CfFlagship as ak, type CfWorkerLoader as al, type CfRateLimit as am, type CfHyperdrive as an, type CfDevPluginCfg as ao, type CfService as ap, type CfVpcService as aq, type CfVpcNetwork as ar, type CfAnalyticsEngineDataset as as, type CfDispatchNamespace as at, type CfMTlsCertificate as au, type CfLogfwdr as av, type CfLogfwdrBinding as aw, type CfAssetsBinding as ax, type CfPipeline as ay, type CfUnsafeBinding as az, type Config as b, truncate as b$, type Trigger as b0, type CfAccount as b1, type HookValues as b2, type Hook as b3, type AsyncHook as b4, type LogLevel as b5, type NodeJSCompatMode as b6, type StartDevWorkerInput as b7, type Entry as b8, INHERIT_SYMBOL as b9, getRegistryPath as bA, getD1ExtraLocationChoices as bB, getDockerPath as bC, getSubdomainMixedStateCheckDisabled as bD, getCloudflareLoadDevVarsFromDotEnv as bE, getCloudflareIncludeProcessEnvFromEnv as bF, getTraceHeader as bG, getDisableConfigWatching as bH, getWranglerHideBanner as bI, getCloudflareEnv as bJ, getOpenNextDeployFromEnv as bK, getLocalExplorerEnabledFromEnv as bL, getLocalObservabilityEnabledFromEnv as bM, getBrowserRenderingHeadfulFromEnv as bN, getCfFetchEnabledFromEnv as bO, getCfFetchPathFromEnv as bP, getWranglerCacheDirFromEnv as bQ, getCloudflaredPathFromEnv as bR, type ApiCredentials as bS, type FetchResult as bT, type FetchResultFetcher as bU, type FetchListResultFetcher as bV, type FetchPagedListResultFetcher as bW, performApiFetchBase as bX, fetchInternalBase as bY, fetchResultBase as bZ, fetchListResultBase as b_, SERVICE_TAG_PREFIX as ba, ENVIRONMENT_TAG_PREFIX as bb, PATH_TO_DEPLOY_CONFIG as bc, JSON_CONFIG_FORMATS as bd, getC3CommandFromEnv as be, isDoNotTrackEnabled as bf, getWranglerSendMetricsFromEnv as bg, getNoSkillsUpdatePromptsFromEnv as bh, getWranglerSendErrorReportsFromEnv as bi, getCloudflareApiEnvironmentFromEnv as bj, type ComplianceConfig as bk, COMPLIANCE_REGION_CONFIG_PUBLIC as bl, COMPLIANCE_REGION_CONFIG_UNKNOWN as bm, getCloudflareComplianceRegion as bn, getCloudflareApiBaseUrl as bo, getComplianceRegionSubdomain as bp, getSanitizeLogs as bq, getOutputFileDirectoryFromEnv as br, getOutputFilePathFromEnv as bs, getCIMatchTag as bt, getCIOverrideName as bu, getCIOverrideNetworkModeHost as bv, getCIGeneratePreviewAlias as bw, getWorkersCIBranchName as bx, getBuildConditionsFromEnv as by, getBuildPlatformFromEnv as bz, type ContainerApp as c, isWAFBlockResponse as c0, parseRetryAfterValue as c1, parseRetryAfterMs as c2, extractWAFBlockRayId as c3, extractAccountTag as c4, hasMorePages as c5, renderError as c6, addAuthorizationHeader as c7, throwFetchError as c8, fetchKVGetValueBase as c9, type FetchKVGetValueFetcher as ca, hasCursor as cb, maybeAddTraceHeader as cc, type WorkerMetadataBinding as d, type Route as e, type RawDevConfig as f, type ConfigFields as g, type RawEnvironment as h, defaultWranglerConfig as i, LOGGER_LEVELS as j, type LoggerLevel as k, type Environment as l, type LocalS3Credentials as m, type ZoneNameRoute as n, type CustomDomainRoute as o, type CloudchamberConfig as p, type DurableObjectMigration as q, type DurableObjectExportStorage as r, type ConfiguredExport as s, type DurableObjectBindings as t, type ArtifactsEventType as u, type ArtifactsEventTrigger as v, type WorkflowBinding as w, type EnvironmentNonInheritable as x, type Rule as y, type ConfigModuleRuleType as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkerMetadataBinding, L as Logger, d as Route } from './config-BKgj-0W1.mjs';
2
- export { A as ARTIFACTS_EVENT_TYPES, bQ as ApiCredentials, v as ArtifactsEventTrigger, u as ArtifactsEventType, aK as AssetConfigMetadata, G as Assets, aL as AssetsOptions, b3 as AsyncHook, a_ as BinaryFile, bj as COMPLIANCE_REGION_CONFIG_PUBLIC, bk as COMPLIANCE_REGION_CONFIG_UNKNOWN, H as CacheOptions, a0 as CfAIBinding, ad as CfAISearch, ac as CfAISearchNamespace, b0 as CfAccount, af as CfAgentMemory, ar as CfAnalyticsEngineDataset, ah as CfArtifacts, aw as CfAssetsBinding, $ as CfBrowserBinding, az as CfCapnp, aa as CfD1Database, a5 as CfDataBlobBindings, an as CfDevPluginCfg, as as CfDispatchNamespace, a6 as CfDurableObject, aB as CfDurableObjectMigrations, aC as CfExports, aj as CfFlagship, ai as CfHelloWorld, am as CfHyperdrive, a1 as CfImagesBinding, V as CfKvNamespace, au as CfLogfwdr, av as CfLogfwdrBinding, at as CfMTlsCertificate, a2 as CfMediaBinding, N as CfModule, M as CfModuleType, ax as CfPipeline, aD as CfPlacement, a8 as CfQueue, a9 as CfR2Bucket, al as CfRateLimit, K as CfScriptFormat, ag as CfSecretsStoreSecrets, X as CfSendEmailBindings, ao as CfService, a3 as CfStreamBinding, aE as CfTailConsumer, _ as CfTextBlobBindings, aA as CfUnsafe, ay as CfUnsafeBinding, aF as CfUserLimits, Q as CfVars, ab as CfVectorize, a4 as CfVersionMetadataBinding, aq as CfVpcNetwork, ap as CfVpcService, Y as CfWasmModuleBindings, ae as CfWebSearch, aH as CfWorkerContext, aG as CfWorkerInit, ak as CfWorkerLoader, aI as CfWorkerSourceMap, a7 as CfWorkflow, o as CloudchamberConfig, bi as ComplianceConfig, f as ConfigFields, z as ConfigModuleRuleType, s as ConfiguredExport, p as ContainerApp, J as ContainerEngine, n as CustomDomainRoute, F as DispatchNamespaceOutbound, I as DockerConfiguration, t as DurableObjectBindings, r as DurableObjectExportStorage, q as DurableObjectMigration, ba as ENVIRONMENT_TAG_PREFIX, b7 as Entry, k as Environment, x as EnvironmentNonInheritable, aP as ExportsReconciliationEntryBase, aS as ExportsReconciliationErrorDetail, aQ as ExportsReconciliationInfo, aT as ExportsReconciliationRename, aW as ExportsReconciliationResult, aU as ExportsReconciliationTransfer, aV as ExportsReconciliationTransferPending, aR as ExportsReconciliationWarning, c8 as FetchKVGetValueFetcher, bT as FetchListResultFetcher, bU as FetchPagedListResultFetcher, bR as FetchResult, bS as FetchResultFetcher, aZ as File, b2 as Hook, b1 as HookValues, b8 as INHERIT_SYMBOL, bc as JSON_CONFIG_FORMATS, aJ as Json, i as LOGGER_LEVELS, aN as LegacyAssetPaths, l as LocalS3Credentials, b4 as LogLevel, j as LoggerLevel, b5 as NodeJSCompatMode, O as Observability, bb as PATH_TO_DEPLOY_CONFIG, P as PreviewsConfig, e as RawDevConfig, g as RawEnvironment, a as RedirectedRawConfig, y as Rule, b9 as SERVICE_TAG_PREFIX, aY as ServiceFetch, aX as ServiceMetadataRes, b6 as StartDevWorkerInput, S as StreamingTailConsumer, T as TailConsumer, a$ as Trigger, U as UserLimits, aM as ValidatedAssetsOptions, aO as WorkerMetadata, w as WorkflowBinding, Z as ZoneIdRoute, m as ZoneNameRoute, c5 as addAuthorizationHeader, h as defaultWranglerConfig, c2 as extractAccountTag, c1 as extractWAFBlockRayId, bW as fetchInternalBase, c7 as fetchKVGetValueBase, bY as fetchListResultBase, bX as fetchResultBase, bL as getBrowserRenderingHeadfulFromEnv, bw as getBuildConditionsFromEnv, bx as getBuildPlatformFromEnv, bd as getC3CommandFromEnv, bu as getCIGeneratePreviewAlias, br as getCIMatchTag, bs as getCIOverrideName, bt as getCIOverrideNetworkModeHost, bM as getCfFetchEnabledFromEnv, bN as getCfFetchPathFromEnv, bm as getCloudflareApiBaseUrl, bh as getCloudflareApiEnvironmentFromEnv, bl as getCloudflareComplianceRegion, bH as getCloudflareEnv, bD as getCloudflareIncludeProcessEnvFromEnv, bC as getCloudflareLoadDevVarsFromDotEnv, bP as getCloudflaredPathFromEnv, bn as getComplianceRegionSubdomain, bz as getD1ExtraLocationChoices, bF as getDisableConfigWatching, bA as getDockerPath, bJ as getLocalExplorerEnabledFromEnv, bK as getLocalObservabilityEnabledFromEnv, bI as getOpenNextDeployFromEnv, bp as getOutputFileDirectoryFromEnv, bq as getOutputFilePathFromEnv, by as getRegistryPath, bo as getSanitizeLogs, bB as getSubdomainMixedStateCheckDisabled, bE as getTraceHeader, bv as getWorkersCIBranchName, bO as getWranglerCacheDirFromEnv, bG as getWranglerHideBanner, bg as getWranglerSendErrorReportsFromEnv, bf as getWranglerSendMetricsFromEnv, c9 as hasCursor, c3 as hasMorePages, be as isDoNotTrackEnabled, b_ as isWAFBlockResponse, ca as maybeAddTraceHeader, c0 as parseRetryAfterMs, b$ as parseRetryAfterValue, bV as performApiFetchBase, c4 as renderError, c6 as throwFetchError, bZ as truncate } from './config-BKgj-0W1.mjs';
1
+ import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as ContainerApp, d as WorkerMetadataBinding, L as Logger, e as Route } from './config-CRUFg2tu.mjs';
2
+ export { A as ARTIFACTS_EVENT_TYPES, H as Access, bS as ApiCredentials, v as ArtifactsEventTrigger, u as ArtifactsEventType, aL as AssetConfigMetadata, G as Assets, aM as AssetsOptions, b4 as AsyncHook, a$ as BinaryFile, bl as COMPLIANCE_REGION_CONFIG_PUBLIC, bm as COMPLIANCE_REGION_CONFIG_UNKNOWN, I as CacheOptions, a1 as CfAIBinding, ae as CfAISearch, ad as CfAISearchNamespace, b1 as CfAccount, ag as CfAgentMemory, as as CfAnalyticsEngineDataset, ai as CfArtifacts, ax as CfAssetsBinding, a0 as CfBrowserBinding, aA as CfCapnp, ab as CfD1Database, a6 as CfDataBlobBindings, ao as CfDevPluginCfg, at as CfDispatchNamespace, a7 as CfDurableObject, aC as CfDurableObjectMigrations, aD as CfExports, ak as CfFlagship, aj as CfHelloWorld, an as CfHyperdrive, a2 as CfImagesBinding, X as CfKvNamespace, av as CfLogfwdr, aw as CfLogfwdrBinding, au as CfMTlsCertificate, a3 as CfMediaBinding, Q as CfModule, N as CfModuleType, ay as CfPipeline, aE as CfPlacement, a9 as CfQueue, aa as CfR2Bucket, am as CfRateLimit, M as CfScriptFormat, ah as CfSecretsStoreSecrets, Y as CfSendEmailBindings, ap as CfService, a4 as CfStreamBinding, aF as CfTailConsumer, $ as CfTextBlobBindings, aB as CfUnsafe, az as CfUnsafeBinding, aG as CfUserLimits, V as CfVars, ac as CfVectorize, a5 as CfVersionMetadataBinding, ar as CfVpcNetwork, aq as CfVpcService, _ as CfWasmModuleBindings, af as CfWebSearch, aI as CfWorkerContext, aH as CfWorkerInit, al as CfWorkerLoader, aJ as CfWorkerSourceMap, a8 as CfWorkflow, p as CloudchamberConfig, bk as ComplianceConfig, g as ConfigFields, z as ConfigModuleRuleType, s as ConfiguredExport, K as ContainerEngine, o as CustomDomainRoute, F as DispatchNamespaceOutbound, J as DockerConfiguration, t as DurableObjectBindings, r as DurableObjectExportStorage, q as DurableObjectMigration, bb as ENVIRONMENT_TAG_PREFIX, b8 as Entry, l as Environment, x as EnvironmentNonInheritable, aQ as ExportsReconciliationEntryBase, aT as ExportsReconciliationErrorDetail, aR as ExportsReconciliationInfo, aU as ExportsReconciliationRename, aX as ExportsReconciliationResult, aV as ExportsReconciliationTransfer, aW as ExportsReconciliationTransferPending, aS as ExportsReconciliationWarning, ca as FetchKVGetValueFetcher, bV as FetchListResultFetcher, bW as FetchPagedListResultFetcher, bT as FetchResult, bU as FetchResultFetcher, a_ as File, b3 as Hook, b2 as HookValues, b9 as INHERIT_SYMBOL, bd as JSON_CONFIG_FORMATS, aK as Json, j as LOGGER_LEVELS, aO as LegacyAssetPaths, m as LocalS3Credentials, b5 as LogLevel, k as LoggerLevel, b6 as NodeJSCompatMode, O as Observability, bc as PATH_TO_DEPLOY_CONFIG, P as PreviewsConfig, f as RawDevConfig, h as RawEnvironment, a as RedirectedRawConfig, y as Rule, ba as SERVICE_TAG_PREFIX, aZ as ServiceFetch, aY as ServiceMetadataRes, b7 as StartDevWorkerInput, S as StreamingTailConsumer, T as TailConsumer, b0 as Trigger, U as UserLimits, aN as ValidatedAssetsOptions, aP as WorkerMetadata, w as WorkflowBinding, Z as ZoneIdRoute, n as ZoneNameRoute, c7 as addAuthorizationHeader, i as defaultWranglerConfig, c4 as extractAccountTag, c3 as extractWAFBlockRayId, bY as fetchInternalBase, c9 as fetchKVGetValueBase, b_ as fetchListResultBase, bZ as fetchResultBase, bN as getBrowserRenderingHeadfulFromEnv, by as getBuildConditionsFromEnv, bz as getBuildPlatformFromEnv, be as getC3CommandFromEnv, bw as getCIGeneratePreviewAlias, bt as getCIMatchTag, bu as getCIOverrideName, bv as getCIOverrideNetworkModeHost, bO as getCfFetchEnabledFromEnv, bP as getCfFetchPathFromEnv, bo as getCloudflareApiBaseUrl, bj as getCloudflareApiEnvironmentFromEnv, bn as getCloudflareComplianceRegion, bJ as getCloudflareEnv, bF as getCloudflareIncludeProcessEnvFromEnv, bE as getCloudflareLoadDevVarsFromDotEnv, bR as getCloudflaredPathFromEnv, bp as getComplianceRegionSubdomain, bB as getD1ExtraLocationChoices, bH as getDisableConfigWatching, bC as getDockerPath, bL as getLocalExplorerEnabledFromEnv, bM as getLocalObservabilityEnabledFromEnv, bh as getNoSkillsUpdatePromptsFromEnv, bK as getOpenNextDeployFromEnv, br as getOutputFileDirectoryFromEnv, bs as getOutputFilePathFromEnv, bA as getRegistryPath, bq as getSanitizeLogs, bD as getSubdomainMixedStateCheckDisabled, bG as getTraceHeader, bx as getWorkersCIBranchName, bQ as getWranglerCacheDirFromEnv, bI as getWranglerHideBanner, bi as getWranglerSendErrorReportsFromEnv, bg as getWranglerSendMetricsFromEnv, cb as hasCursor, c5 as hasMorePages, bf as isDoNotTrackEnabled, c0 as isWAFBlockResponse, cc as maybeAddTraceHeader, c2 as parseRetryAfterMs, c1 as parseRetryAfterValue, bX as performApiFetchBase, c6 as renderError, c8 as throwFetchError, b$ as truncate } from './config-CRUFg2tu.mjs';
3
3
  import * as jsoncParser from 'jsonc-parser';
4
4
  export { constructWranglerConfig } from './browser.mjs';
5
5
  export { GetGlobalConfigPathOptions, getGlobalConfigPath, getGlobalWranglerCachePath } from './global-wrangler-config-path.mjs';
@@ -147,6 +147,35 @@ interface PartitionedExports {
147
147
  }
148
148
  declare function partitionExports(exports: Exports | undefined): PartitionedExports;
149
149
 
150
+ /**
151
+ * A container can be linked to a Durable Object from either direction:
152
+ *
153
+ * - the container names the class via `containers[].class_name`, or
154
+ * - the Durable Object names the container via `exports[Class].container`.
155
+ *
156
+ * This returns the second direction as a lookup of container name to Durable
157
+ * Object class name. Only live `durable-object` exports can attach a container,
158
+ * so tombstones are ignored.
159
+ *
160
+ * When two exports name the same container the first wins. That is a config
161
+ * error caught during validation, so the choice only affects which class a
162
+ * rejected config reports.
163
+ */
164
+ declare function getContainerNameToClassNameMap(exports: Exports | undefined): Map<string, string>;
165
+ /**
166
+ * The Durable Object class a container backs, resolved from either direction of
167
+ * the container/Durable Object link.
168
+ *
169
+ * Returns `undefined` when the container is not linked to a Durable Object at
170
+ * all, which validation rejects.
171
+ */
172
+ declare function resolveContainerClassName(container: Pick<ContainerApp, "class_name" | "name">, exports: Exports | undefined): string | undefined;
173
+ /**
174
+ * The set of Durable Object class names that have a container attached, resolved
175
+ * from either direction of the container/Durable Object link.
176
+ */
177
+ declare function getContainerDurableObjectClassNames(containers: ContainerApp[] | undefined, exports: Exports | undefined): Set<string>;
178
+
150
179
  type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows" | "vpc_services">;
151
180
 
152
181
  declare function configFormat(configPath: string | undefined): "json" | "jsonc" | "toml" | "none";
@@ -577,6 +606,8 @@ type VariableNames =
577
606
  | "WRANGLER_SEND_METRICS"
578
607
  /** Enable/disable error reporting to Sentry. */
579
608
  | "WRANGLER_SEND_ERROR_REPORTS"
609
+ /** Suppress the prompt that offers to update Cloudflare agent skills. */
610
+ | "WRANGLER_NO_SKILLS_UPDATE_PROMPTS"
580
611
  /** CI branch name (internal use). */
581
612
  | "WORKERS_CI_BRANCH"
582
613
  /** CI tag matching configuration (internal use). */
@@ -720,6 +751,27 @@ declare function resolveNodejsCompat(compatibilityDate: string, compatibilityFla
720
751
  */
721
752
  declare function stripRedundantNodejsCompatFlags(compatibilityDate: string | undefined, compatibilityFlags: string[]): string[];
722
753
 
754
+ /**
755
+ * The compatibility date to use when the user has not specified one.
756
+ *
757
+ * This is the release date of the `workerd` version pinned in the pnpm catalog,
758
+ * so it is fixed for a given release of workers-sdk and updated whenever
759
+ * `workerd` is upgraded.
760
+ *
761
+ * It deliberately tracks `workerd` rather than the current date, because
762
+ * workerd rejects a compatibility date later than either of:
763
+ *
764
+ * - its `MAXIMUM_COMPATIBILITY_DATE`, which is its release date plus 7 days, or
765
+ * - today's date (UTC).
766
+ *
767
+ * Run `pnpm update:compat-date` to refresh this value; `pnpm check:compat-date`
768
+ * asserts that it matches the pinned `workerd` version.
769
+ *
770
+ * @see https://github.com/cloudflare/workerd/blob/main/src/workerd/io/BUILD.bazel
771
+ * @see https://github.com/cloudflare/workerd/blob/main/src/workerd/io/compatibility-date.c%2B%2B
772
+ */
773
+ declare const DEFAULT_COMPAT_DATE: CompatDate;
774
+
723
775
  /**
724
776
  * A file-backed key/value cache scoped to a consumer's cache directory.
725
777
  *
@@ -1115,4 +1167,4 @@ declare function toUrlPath(filePath: string): UrlPath;
1115
1167
  */
1116
1168
  declare const friendlyBindingNames: Record<ConfigBindingFieldName, string>;
1117
1169
 
1118
- export { APIError, Binding, type BindingLocalSupport, BunPackageManager, CommandLineArgsError, type CompatDate, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, DeprecationError, Diagnostics, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, FatalError, JsonFriendlyFatalError, type Location, Logger, type Message, MissingConfigError, NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, RawConfig, type ResolveConfigPathOptions, Route, type TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadataBinding, YarnPackageManager, _forceColour, assertNever, bucketFormatMessage, checkWorkerNameValidity, configFileName, configFormat, createConfigCache, createFatalError, experimental_patchConfig, experimental_readRawConfig, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, formatZodError, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getTodaysCompatDate, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isCompatDate, isDockerfile, isInteractive, isNodejsCompatDefaultOn, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveNodejsCompat, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, stripRedundantNodejsCompatFlags, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validatePagesConfig };
1170
+ export { APIError, Binding, type BindingLocalSupport, BunPackageManager, CommandLineArgsError, type CompatDate, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, DEFAULT_COMPAT_DATE, DeprecationError, Diagnostics, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, FatalError, JsonFriendlyFatalError, type Location, Logger, type Message, MissingConfigError, NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, RawConfig, type ResolveConfigPathOptions, Route, type TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadataBinding, YarnPackageManager, _forceColour, assertNever, bucketFormatMessage, checkWorkerNameValidity, configFileName, configFormat, createConfigCache, createFatalError, experimental_patchConfig, experimental_readRawConfig, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, formatZodError, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getTodaysCompatDate, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isCompatDate, isDockerfile, isInteractive, isNodejsCompatDefaultOn, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveNodejsCompat, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, stripRedundantNodejsCompatFlags, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validatePagesConfig };