@cloudflare/vite-plugin 1.62.2 → 1.62.4

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.
package/dist/index.mjs CHANGED
@@ -41752,11 +41752,13 @@ var defaultWranglerConfig = {
41752
41752
  containers: void 0,
41753
41753
  send_email: [],
41754
41754
  browser: void 0,
41755
+ analytics: void 0,
41755
41756
  unsafe: {},
41756
41757
  mtls_certificates: [],
41757
41758
  tail_consumers: void 0,
41758
41759
  streaming_tail_consumers: void 0,
41759
41760
  pipelines: [],
41761
+ k2: [],
41760
41762
  vpc_services: [],
41761
41763
  vpc_networks: []
41762
41764
  };
@@ -42056,6 +42058,7 @@ var friendlyBindingNames = {
42056
42058
  analytics_engine_datasets: "Analytics Engine Dataset",
42057
42059
  text_blobs: "Text Blob",
42058
42060
  browser: "Browser Run",
42061
+ analytics: "Analytics SQL",
42059
42062
  ai: "AI",
42060
42063
  images: "Images",
42061
42064
  stream: "Stream",
@@ -42068,6 +42071,7 @@ var friendlyBindingNames = {
42068
42071
  mtls_certificates: "mTLS Certificate",
42069
42072
  workflows: "Workflow",
42070
42073
  pipelines: "Pipeline",
42074
+ k2: "K2 Stream",
42071
42075
  secrets_store_secrets: "Secrets Store Secret",
42072
42076
  artifacts: "Artifacts",
42073
42077
  ratelimits: "Rate Limit",
@@ -42087,6 +42091,7 @@ var bindingTypeFriendlyNames = {
42087
42091
  wasm_module: "Wasm Module",
42088
42092
  text_blob: "Text Blob",
42089
42093
  browser: "Browser Run",
42094
+ analytics: "Analytics SQL",
42090
42095
  ai: "AI",
42091
42096
  images: "Images",
42092
42097
  stream: "Stream",
@@ -42108,6 +42113,7 @@ var bindingTypeFriendlyNames = {
42108
42113
  dispatch_namespace: "Dispatch Namespace",
42109
42114
  mtls_certificate: "mTLS Certificate",
42110
42115
  pipeline: "Pipeline",
42116
+ k2: "K2 Stream",
42111
42117
  secrets_store_secret: "Secrets Store Secret",
42112
42118
  artifacts: "Artifacts",
42113
42119
  logfwdr: "logfwdr",
@@ -42634,11 +42640,13 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
42634
42640
  streaming_tail_consumers: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "streaming_tail_consumers", validateStreamingTailConsumers, void 0),
42635
42641
  unsafe: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "unsafe", validateUnsafeSettings(envName), {}),
42636
42642
  browser: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "browser", validateNamedSimpleBinding(envName), void 0),
42643
+ analytics: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "analytics", validateNamedSimpleBinding(envName), void 0),
42637
42644
  ai: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "ai", validateAIBinding(envName), void 0),
42638
42645
  images: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "images", validateNamedSimpleBinding(envName), void 0),
42639
42646
  stream: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "stream", validateNamedSimpleBinding(envName), void 0),
42640
42647
  media: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "media", validateNamedSimpleBinding(envName), void 0),
42641
42648
  pipelines: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "pipelines", validateBindingArray(envName, validatePipelineBinding), []),
42649
+ k2: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "k2", validateBindingArray(envName, validateK2Binding), []),
42642
42650
  secrets_store_secrets: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "secrets_store_secrets", validateBindingArray(envName, validateSecretsStoreSecretBinding), []),
42643
42651
  artifacts: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "artifacts", validateBindingArray(envName, validateArtifactsBinding), []),
42644
42652
  unsafe_hello_world: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "unsafe_hello_world", validateBindingArray(envName, validateHelloWorldBinding), []),
@@ -43235,6 +43243,7 @@ var validateUnsafeBinding = /* @__PURE__ */ __name$6((diagnostics, field, value)
43235
43243
  "data_blob",
43236
43244
  "text_blob",
43237
43245
  "browser",
43246
+ "analytics",
43238
43247
  "ai",
43239
43248
  "ai_search_namespace",
43240
43249
  "ai_search",
@@ -43247,6 +43256,7 @@ var validateUnsafeBinding = /* @__PURE__ */ __name$6((diagnostics, field, value)
43247
43256
  "logfwdr",
43248
43257
  "mtls_certificate",
43249
43258
  "pipeline",
43259
+ "k2",
43250
43260
  "worker_loader",
43251
43261
  "vpc_service",
43252
43262
  "flagship",
@@ -44375,6 +44385,32 @@ var validatePipelineBinding = /* @__PURE__ */ __name$6((diagnostics, field, valu
44375
44385
  ]);
44376
44386
  return isValid;
44377
44387
  }, "validatePipelineBinding");
44388
+ var validateK2Binding = /* @__PURE__ */ __name$6((diagnostics, field, value) => {
44389
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
44390
+ diagnostics.errors.push(`"${field}" bindings should be objects, but got ${JSON.stringify(value)}`);
44391
+ return false;
44392
+ }
44393
+ let isValid = true;
44394
+ if (!isRequiredProperty(value, "binding", "string")) {
44395
+ diagnostics.errors.push(`"${field}" must have a string "binding" field.`);
44396
+ isValid = false;
44397
+ }
44398
+ if (!isRequiredProperty(value, "stream", "string")) {
44399
+ diagnostics.errors.push(`"${field}" must have a string "stream" field.`);
44400
+ isValid = false;
44401
+ }
44402
+ if (!isRemoteValid(value, field, diagnostics)) isValid = false;
44403
+ if ("remote" in value && value.remote === false) {
44404
+ diagnostics.errors.push(`"${field}" does not support \`remote: false\`. K2 bindings always access remote resources; omit "remote" or set \`remote: true\`.`);
44405
+ isValid = false;
44406
+ }
44407
+ validateAdditionalProperties(diagnostics, field, Object.keys(value), [
44408
+ "binding",
44409
+ "stream",
44410
+ "remote"
44411
+ ]);
44412
+ return isValid;
44413
+ }, "validateK2Binding");
44378
44414
  var validateSecretsStoreSecretBinding = /* @__PURE__ */ __name$6((diagnostics, field, value) => {
44379
44415
  if (typeof value !== "object" || value === null) {
44380
44416
  diagnostics.errors.push(`"secrets_store_secrets" bindings should be objects, but got ${JSON.stringify(value)}`);
@@ -44550,11 +44586,13 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$6((envName, configPath) => (
44550
44586
  "streaming_tail_consumers",
44551
44587
  "unsafe",
44552
44588
  "browser",
44589
+ "analytics",
44553
44590
  "ai",
44554
44591
  "images",
44555
44592
  "stream",
44556
44593
  "media",
44557
44594
  "pipelines",
44595
+ "k2",
44558
44596
  "secrets_store_secrets",
44559
44597
  "artifacts",
44560
44598
  "unsafe_hello_world",
@@ -44592,12 +44630,14 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$6((envName, configPath) => (
44592
44630
  isValid = validateStreamingTailConsumers(diagnostics, `${field}.streaming_tail_consumers`, previews.streaming_tail_consumers, void 0) && isValid;
44593
44631
  if (previews.unsafe !== void 0) isValid = validateUnsafeSettings(envName)(diagnostics, `${field}.unsafe`, previews.unsafe, void 0) && isValid;
44594
44632
  if (previews.browser !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.browser`, previews.browser, void 0) && isValid;
44633
+ if (previews.analytics !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.analytics`, previews.analytics, void 0) && isValid;
44595
44634
  if (previews.ai !== void 0) isValid = validateAIBinding(envName)(diagnostics, `${field}.ai`, previews.ai, void 0) && isValid;
44596
44635
  if (previews.images !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.images`, previews.images, void 0) && isValid;
44597
44636
  if (previews.stream !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.stream`, previews.stream, void 0) && isValid;
44598
44637
  if (previews.media !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.media`, previews.media, void 0) && isValid;
44599
44638
  isValid = validateBindingArray(envName, validatePipelineBinding)(diagnostics, `${field}.pipelines`, previews.pipelines, void 0) && isValid;
44600
44639
  isValid = validateBindingArray(envName, validateSecretsStoreSecretBinding)(diagnostics, `${field}.secrets_store_secrets`, previews.secrets_store_secrets, void 0) && isValid;
44640
+ isValid = validateBindingArray(envName, validateK2Binding)(diagnostics, `${field}.k2`, previews.k2, void 0) && isValid;
44601
44641
  isValid = validateBindingArray(envName, validateArtifactsBinding)(diagnostics, `${field}.artifacts`, previews.artifacts, void 0) && isValid;
44602
44642
  isValid = validateBindingArray(envName, validateHelloWorldBinding)(diagnostics, `${field}.unsafe_hello_world`, previews.unsafe_hello_world, void 0) && isValid;
44603
44643
  isValid = validateBindingArray(envName, validateFlagshipBinding)(diagnostics, `${field}.flagship`, previews.flagship, void 0) && isValid;
@@ -45189,6 +45229,7 @@ var BINDING_LOCAL_SUPPORT = {
45189
45229
  vectorize: "remote",
45190
45230
  mtls_certificate: "remote",
45191
45231
  dispatch_namespace: "remote",
45232
+ k2: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45192
45233
  ai: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45193
45234
  ai_search: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45194
45235
  ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
@@ -45196,7 +45237,8 @@ var BINDING_LOCAL_SUPPORT = {
45196
45237
  artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45197
45238
  vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45198
45239
  vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45199
- agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
45240
+ agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
45241
+ analytics: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
45200
45242
  };
45201
45243
  function getBindingLocalSupport(type) {
45202
45244
  if (type in BINDING_LOCAL_SUPPORT) return BINDING_LOCAL_SUPPORT[type];
@@ -45386,6 +45428,9 @@ function mapWorkerMetadataBindings(bindings) {
45386
45428
  case "browser":
45387
45429
  configObj.browser = { binding: binding.name };
45388
45430
  break;
45431
+ case "analytics":
45432
+ configObj.analytics = { binding: binding.name };
45433
+ break;
45389
45434
  case "ai":
45390
45435
  configObj.ai = { binding: binding.name };
45391
45436
  break;
@@ -45542,6 +45587,12 @@ function mapWorkerMetadataBindings(bindings) {
45542
45587
  ...binding.pipeline && { pipeline: binding.pipeline }
45543
45588
  }];
45544
45589
  break;
45590
+ case "k2":
45591
+ configObj.k2 = [...configObj.k2 ?? [], {
45592
+ binding: binding.name,
45593
+ stream: binding.stream
45594
+ }];
45595
+ break;
45545
45596
  case "assets":
45546
45597
  configObj.assets = { binding: binding.name };
45547
45598
  break;
@@ -45597,7 +45648,7 @@ function mapWorkerMetadataBindings(bindings) {
45597
45648
  }, {});
45598
45649
  }
45599
45650
  __name$6(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
45600
- var DEFAULT_COMPAT_DATE = "2026-09-26";
45651
+ var DEFAULT_COMPAT_DATE = "2026-10-01";
45601
45652
  function constructWranglerConfig(config$2) {
45602
45653
  const mappedBindings = mapWorkerMetadataBindings(config$2.bindings);
45603
45654
  const durableObjectClassNames = config$2.bindings.filter((binding) => binding.type === "durable_object_namespace" && binding.script_name === config$2.name).map((durableObject) => durableObject.class_name);
@@ -45714,6 +45765,14 @@ function convertConfigToBindings(config$2, options) {
45714
45765
  };
45715
45766
  break;
45716
45767
  }
45768
+ case "analytics": {
45769
+ const { binding,...x } = info$1;
45770
+ output[binding] = {
45771
+ type: "analytics",
45772
+ ...x
45773
+ };
45774
+ break;
45775
+ }
45717
45776
  case "durable_objects":
45718
45777
  for (const { name,...x } of info$1.bindings ?? []) output[name] = {
45719
45778
  type: "durable_object_namespace",
@@ -45859,6 +45918,13 @@ function convertConfigToBindings(config$2, options) {
45859
45918
  ...x
45860
45919
  };
45861
45920
  break;
45921
+ case "k2":
45922
+ if (pages) break;
45923
+ for (const { binding,...x } of info$1) output[binding] = {
45924
+ type: "k2",
45925
+ ...x
45926
+ };
45927
+ break;
45862
45928
  case "secrets_store_secrets":
45863
45929
  for (const { binding,...x } of info$1) output[binding] = {
45864
45930
  type: "secrets_store_secret",
@@ -45992,6 +46058,7 @@ function printBindings(bindings, options) {
45992
46058
  const analytics_engine_datasets = extractBindingsOfType("analytics_engine", bindings);
45993
46059
  const text_blobs = extractBindingsOfType("text_blob", bindings);
45994
46060
  const browser = extractBindingsOfType("browser", bindings);
46061
+ const analytics = extractBindingsOfType("analytics", bindings);
45995
46062
  const images = extractBindingsOfType("images", bindings);
45996
46063
  const stream$2 = extractBindingsOfType("stream", bindings);
45997
46064
  const ai = extractBindingsOfType("ai", bindings);
@@ -46004,6 +46071,7 @@ function printBindings(bindings, options) {
46004
46071
  const dispatch_namespaces = extractBindingsOfType("dispatch_namespace", bindings);
46005
46072
  const mtls_certificates = extractBindingsOfType("mtls_certificate", bindings);
46006
46073
  const pipelines = extractBindingsOfType("pipeline", bindings);
46074
+ const k2 = extractBindingsOfType("k2", bindings);
46007
46075
  const ratelimits = extractBindingsOfType("ratelimit", bindings);
46008
46076
  const assets = extractBindingsOfType("assets", bindings);
46009
46077
  const unsafe_hello_world = extractBindingsOfType("unsafe_hello_world", bindings);
@@ -46249,6 +46317,12 @@ function printBindings(bindings, options) {
46249
46317
  value: void 0,
46250
46318
  mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled || !remote })
46251
46319
  })));
46320
+ if (analytics.length > 0) output.push(...analytics.map(({ binding, remote }) => ({
46321
+ name: binding,
46322
+ type: getBindingTypeFriendlyName("analytics"),
46323
+ value: void 0,
46324
+ mode: getMode({ isSimulatedLocally: (remote === true || remote === void 0) && !context.remoteBindingsDisabled ? false : void 0 })
46325
+ })));
46252
46326
  if (images.length > 0) output.push(...images.map(({ binding, remote }) => ({
46253
46327
  name: binding,
46254
46328
  type: getBindingTypeFriendlyName("images"),
@@ -46279,6 +46353,12 @@ function printBindings(bindings, options) {
46279
46353
  value: pipelineStream || pipeline$5,
46280
46354
  mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled || !remote })
46281
46355
  })));
46356
+ if (k2.length > 0) output.push(...k2.map(({ binding, stream: k2Stream }) => ({
46357
+ name: binding,
46358
+ type: getBindingTypeFriendlyName("k2"),
46359
+ value: k2Stream,
46360
+ mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled ? void 0 : false })
46361
+ })));
46282
46362
  if (ratelimits.length > 0) output.push(...ratelimits.map(({ name, simple }) => ({
46283
46363
  name,
46284
46364
  type: getBindingTypeFriendlyName("ratelimit"),
@@ -47167,10 +47247,13 @@ You can try:
47167
47247
  __name$6(validateBinary, "validateBinary");
47168
47248
  function redactCloudflaredArgsForLogging(args) {
47169
47249
  const redacted = [...args];
47250
+ const sensitiveArgs = ["--token", "--allowed-mail"];
47170
47251
  for (let i$1 = 0; i$1 < redacted.length; i$1++) {
47171
47252
  const arg = redacted[i$1];
47172
- if (arg === "--token" && i$1 + 1 < redacted.length) redacted[i$1 + 1] = "[REDACTED]";
47173
- if (arg.startsWith("--token=")) redacted[i$1] = "--token=[REDACTED]";
47253
+ for (const sensitiveArg of sensitiveArgs) {
47254
+ if (arg === sensitiveArg && i$1 + 1 < redacted.length) redacted[i$1 + 1] = "[REDACTED]";
47255
+ if (arg.startsWith(`${sensitiveArg}=`)) redacted[i$1] = `${sensitiveArg}=[REDACTED]`;
47256
+ }
47174
47257
  }
47175
47258
  return redacted;
47176
47259
  }
@@ -47369,6 +47452,18 @@ async function spawnCloudflared(args, options) {
47369
47452
  confirmDownload: options?.confirmDownload,
47370
47453
  logger: logger$2
47371
47454
  });
47455
+ if (args.some((arg) => arg === "--allowed-mail" || arg.startsWith("--allowed-mail="))) {
47456
+ const minimumVersion$1 = "2026.9.2";
47457
+ const installedVersion = getInstalledVersion(binPath);
47458
+ if (!installedVersion || isVersionOutdated(installedVersion, minimumVersion$1)) throw new UserError(`[cloudflared] --allowed-mail requires cloudflared ${minimumVersion$1} or later.
47459
+
47460
+ ` + (installedVersion ? `The selected binary (${binPath}) is version ${installedVersion}.
47461
+
47462
+ ` : `Could not determine the version of the selected binary (${binPath}).
47463
+
47464
+ `) + `Update cloudflared in your PATH or set CLOUDFLARED_PATH to a compatible binary.
47465
+ Download instructions: https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/downloads/`, { telemetryMessage: "tunnel cloudflared allowed mail unsupported version" });
47466
+ }
47372
47467
  logger$2?.debug(`Spawning cloudflared: ${binPath} ${redactCloudflaredArgsForLogging(args).join(" ")}`);
47373
47468
  return spawn(binPath, args, {
47374
47469
  stdio: options?.stdio ?? "inherit",
@@ -56534,6 +56629,10 @@ const BrowserBindingSchema = strictObject({
56534
56629
  type: literal$1("browser"),
56535
56630
  dev: RemoteBindingDevSchema.optional()
56536
56631
  });
56632
+ const AnalyticsSQLBindingSchema = strictObject({
56633
+ type: literal$1("analytics"),
56634
+ dev: RemoteBindingDevSchema.optional()
56635
+ });
56537
56636
  const WorkerBindingSchema = strictObject({
56538
56637
  type: literal$1("worker"),
56539
56638
  worker: string(),
@@ -56615,6 +56714,7 @@ const KnownBindingSchema = discriminatedUnion("type", [
56615
56714
  }),
56616
56715
  strictObject({ type: literal$1("assets") }),
56617
56716
  BrowserBindingSchema,
56717
+ AnalyticsSQLBindingSchema,
56618
56718
  D1BindingSchema,
56619
56719
  strictObject({
56620
56720
  type: literal$1("dispatch-namespace"),
@@ -56659,6 +56759,11 @@ const KnownBindingSchema = discriminatedUnion("type", [
56659
56759
  name: string(),
56660
56760
  dev: RemoteBindingDevSchema.optional()
56661
56761
  }),
56762
+ strictObject({
56763
+ type: literal$1("k2"),
56764
+ stream: string(),
56765
+ dev: RemoteBindingDevSchema.optional()
56766
+ }),
56662
56767
  QueueBindingSchema,
56663
56768
  strictObject({
56664
56769
  type: literal$1("rate-limit"),
@@ -56746,6 +56851,7 @@ const SINGLETON_BINDING_TYPES = new Set([
56746
56851
  "ai",
56747
56852
  "assets",
56748
56853
  "browser",
56854
+ "analytics",
56749
56855
  "images",
56750
56856
  "media",
56751
56857
  "stream",
@@ -57440,6 +57546,7 @@ function convertBindingsAndAssets(config$2, result) {
57440
57546
  const mtlsCertificates = [];
57441
57547
  const hyperdrive = [];
57442
57548
  const pipelines = [];
57549
+ const k2 = [];
57443
57550
  const flagship = [];
57444
57551
  const aiSearch = [];
57445
57552
  const aiSearchNamespaces = [];
@@ -57520,6 +57627,12 @@ function convertBindingsAndAssets(config$2, result) {
57520
57627
  remote: binding.dev?.remote
57521
57628
  });
57522
57629
  break;
57630
+ case "analytics":
57631
+ result.analytics = omitUndefined({
57632
+ binding: name,
57633
+ remote: binding.dev?.remote
57634
+ });
57635
+ break;
57523
57636
  case "d1":
57524
57637
  d1Databases.push(omitUndefined({
57525
57638
  binding: name,
@@ -57604,6 +57717,13 @@ function convertBindingsAndAssets(config$2, result) {
57604
57717
  remote: binding.dev?.remote
57605
57718
  }));
57606
57719
  break;
57720
+ case "k2":
57721
+ k2.push(omitUndefined({
57722
+ binding: name,
57723
+ stream: binding.stream,
57724
+ remote: binding.dev?.remote
57725
+ }));
57726
+ break;
57607
57727
  case "queue":
57608
57728
  queueProducers.push(omitUndefined({
57609
57729
  binding: name,
@@ -57716,6 +57836,7 @@ function convertBindingsAndAssets(config$2, result) {
57716
57836
  if (mtlsCertificates.length) result.mtls_certificates = mtlsCertificates;
57717
57837
  if (hyperdrive.length) result.hyperdrive = hyperdrive;
57718
57838
  if (pipelines.length) result.pipelines = pipelines;
57839
+ if (k2.length) result.k2 = k2;
57719
57840
  if (flagship.length) result.flagship = flagship;
57720
57841
  if (aiSearch.length) result.ai_search = aiSearch;
57721
57842
  if (aiSearchNamespaces.length) result.ai_search_namespaces = aiSearchNamespaces;
@@ -84272,6 +84393,7 @@ var CF_CLIENT_REGISTERED_SCOPES = [
84272
84393
  "access:read",
84273
84394
  "access:write",
84274
84395
  "account:read",
84396
+ "account_api_tokens:create",
84275
84397
  "agw:read",
84276
84398
  "agw:run",
84277
84399
  "agw:write",
@@ -84578,6 +84700,10 @@ var CF_CLIENT_REGISTERED_SCOPES = [
84578
84700
  "ip-prefix-bgp-on-demand.write",
84579
84701
  "ip-prefix.read",
84580
84702
  "ip-prefix.write",
84703
+ "k2.consume",
84704
+ "k2.produce",
84705
+ "k2.read",
84706
+ "k2.write",
84581
84707
  "l4-ddos-managed-ruleset.read",
84582
84708
  "l4-ddos-managed-ruleset.write",
84583
84709
  "load-balancers-account.read",
@@ -84835,6 +84961,8 @@ __name$1(setKeyringPreference$1, "setKeyringPreference");
84835
84961
  //#region ../workers-auth/dist/wrangler/index.mjs
84836
84962
  createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
84837
84963
  var DefaultScopes = {
84964
+ "k2.read": "See K2 stream configurations and bind existing streams to Workers.",
84965
+ "k2.write": "Create and manage K2 stream configurations.",
84838
84966
  "account:read": "See your account info such as account details, analytics, and memberships.",
84839
84967
  "user:read": "See your user info such as name, email address, and account memberships.",
84840
84968
  "workers:write": "See and change Cloudflare Workers data such as zones, KV storage, namespaces, scripts, and routes.",
@@ -85076,7 +85204,7 @@ var require_command_exists = /* @__PURE__ */ __commonJS$3({ "../../node_modules/
85076
85204
  }) });
85077
85205
 
85078
85206
  //#endregion
85079
- //#region ../deploy-helpers/dist/chunk-M77HNR46.mjs
85207
+ //#region ../deploy-helpers/dist/chunk-KKDV4JPS.mjs
85080
85208
  var import_undici$1 = require_undici();
85081
85209
  var import_command_exists = require_command_exists();
85082
85210
  createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
@@ -85168,10 +85296,12 @@ function createWorkerUploadForm(worker, bindings, options) {
85168
85296
  const dispatch_namespaces = extractBindingsOfType("dispatch_namespace", bindings);
85169
85297
  const mtls_certificates = extractBindingsOfType("mtls_certificate", bindings);
85170
85298
  const pipelines = extractBindingsOfType("pipeline", bindings);
85299
+ const k2 = extractBindingsOfType("k2", bindings);
85171
85300
  const worker_loaders = extractBindingsOfType("worker_loader", bindings);
85172
85301
  const logfwdr = extractBindingsOfType("logfwdr", bindings);
85173
85302
  const wasm_modules = extractBindingsOfType("wasm_module", bindings);
85174
85303
  const browser = extractBindingsOfType("browser", bindings)[0];
85304
+ const analytics = extractBindingsOfType("analytics", bindings)[0];
85175
85305
  const ai = extractBindingsOfType("ai", bindings)[0];
85176
85306
  const images = extractBindingsOfType("images", bindings)[0];
85177
85307
  const stream$2 = extractBindingsOfType("stream", bindings)[0];
@@ -85463,6 +85593,13 @@ function createWorkerUploadForm(worker, bindings, options) {
85463
85593
  });
85464
85594
  else throw new Error("Pipeline binding must specify a stream or pipeline");
85465
85595
  });
85596
+ k2.forEach(({ binding, stream: k2Stream }) => {
85597
+ metadataBindings.push({
85598
+ name: binding,
85599
+ type: "k2",
85600
+ stream: k2Stream
85601
+ });
85602
+ });
85466
85603
  worker_loaders.forEach(({ binding }) => {
85467
85604
  metadataBindings.push({
85468
85605
  name: binding,
@@ -85489,6 +85626,10 @@ function createWorkerUploadForm(worker, bindings, options) {
85489
85626
  type: "browser",
85490
85627
  raw: browser.raw
85491
85628
  });
85629
+ if (analytics !== void 0) metadataBindings.push({
85630
+ name: analytics.binding,
85631
+ type: "analytics"
85632
+ });
85492
85633
  if (ai !== void 0) metadataBindings.push({
85493
85634
  name: ai.binding,
85494
85635
  staging: ai.staging,
@@ -85633,7 +85774,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
85633
85774
  //#endregion
85634
85775
  //#region ../remote-bindings/dist/index.mjs
85635
85776
  var import_undici = require_undici();
85636
- var version$2 = "0.0.39";
85777
+ var version$2 = "0.0.42";
85637
85778
  var NoDefaultValueProvided = class extends UserError {
85638
85779
  constructor() {
85639
85780
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });