create-cloudflare 2.72.8 → 2.72.10

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/cli.js CHANGED
@@ -50263,7 +50263,7 @@ var require_types = __commonJS({
50263
50263
  });
50264
50264
 
50265
50265
  // ../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js
50266
- var require_path = __commonJS({
50266
+ var require_path2 = __commonJS({
50267
50267
  "../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(exports2, module2) {
50268
50268
  "use strict";
50269
50269
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -50865,7 +50865,7 @@ var require_node_path = __commonJS({
50865
50865
  Object.defineProperty(exports2, "__esModule", { value: true });
50866
50866
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
50867
50867
  var types_1 = tslib_1.__importDefault(require_types());
50868
- var path_1 = tslib_1.__importDefault(require_path());
50868
+ var path_1 = tslib_1.__importDefault(require_path2());
50869
50869
  var scope_1 = tslib_1.__importDefault(require_scope());
50870
50870
  var shared_1 = require_shared();
50871
50871
  function nodePathPlugin(fork) {
@@ -51676,7 +51676,7 @@ var require_fork = __commonJS({
51676
51676
  var types_1 = tslib_1.__importDefault(require_types());
51677
51677
  var path_visitor_1 = tslib_1.__importDefault(require_path_visitor());
51678
51678
  var equiv_1 = tslib_1.__importDefault(require_equiv());
51679
- var path_1 = tslib_1.__importDefault(require_path());
51679
+ var path_1 = tslib_1.__importDefault(require_path2());
51680
51680
  var node_path_1 = tslib_1.__importDefault(require_node_path());
51681
51681
  var shared_1 = require_shared();
51682
51682
  function default_1(plugins) {
@@ -77461,7 +77461,7 @@ function dedent(templ) {
77461
77461
  __name(dedent, "dedent");
77462
77462
  var esm_default = dedent;
77463
77463
 
77464
- // ../workers-utils/dist/chunk-JGKSDUFK.mjs
77464
+ // ../workers-utils/dist/chunk-JTB7VJSC.mjs
77465
77465
  init_chunk_Q72B4Q5Z();
77466
77466
  var import_node_fs = require("node:fs");
77467
77467
  var import_node_path = __toESM(require("node:path"), 1);
@@ -77495,7 +77495,6 @@ function hasDurableObjectExports(exports$1) {
77495
77495
  return Object.keys(getDurableObjectExports(exports$1)).length > 0;
77496
77496
  }
77497
77497
  __name(hasDurableObjectExports, "hasDurableObjectExports");
77498
- var CONTAINER_IMAGES_BINDING = "EXPERIMENTAL_CLOUDFLARE_CONTAINER_IMAGES";
77499
77498
  function isDurableObjectContainerApp(container) {
77500
77499
  return container.scheduling_policy === "durable_object";
77501
77500
  }
@@ -80413,9 +80412,9 @@ function formatConfigSnippet(snippet, configPath, formatted = true) {
80413
80412
  }
80414
80413
  __name(formatConfigSnippet, "formatConfigSnippet");
80415
80414
 
80416
- // ../workers-utils/dist/chunk-5H6GBNUC.mjs
80415
+ // ../workers-utils/dist/chunk-4PNP2TCS.mjs
80417
80416
  init_chunk_Q72B4Q5Z();
80418
- var DEFAULT_COMPAT_DATE = "2026-09-15";
80417
+ var DEFAULT_COMPAT_DATE = "2026-09-21";
80419
80418
  function assertNever(_value) {
80420
80419
  }
80421
80420
  __name(assertNever, "assertNever");
@@ -81358,7 +81357,6 @@ var import_node_crypto = require("node:crypto");
81358
81357
  var import_node_os5 = require("node:os");
81359
81358
  var timersPromises = __toESM(require("node:timers/promises"), 1);
81360
81359
  var import_promises2 = require("node:timers/promises");
81361
- var import_node_console = require("node:console");
81362
81360
  var require_vendors2 = __commonJS2({
81363
81361
  "../../node_modules/.pnpm/ci-info@4.4.0/node_modules/ci-info/vendors.json"(exports$1, module2) {
81364
81362
  module2.exports = [
@@ -81810,11 +81808,11 @@ var require_command_exists = __commonJS2({
81810
81808
  "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports$1, module2) {
81811
81809
  var exec4 = __require("child_process").exec;
81812
81810
  var execSync = __require("child_process").execSync;
81813
- var fs32 = __require("fs");
81814
- var path52 = __require("path");
81815
- var access = fs32.access;
81816
- var accessSync2 = fs32.accessSync;
81817
- var constants22 = fs32.constants || fs32;
81811
+ var fs42 = __require("fs");
81812
+ var path62 = __require("path");
81813
+ var access = fs42.access;
81814
+ var accessSync2 = fs42.accessSync;
81815
+ var constants22 = fs42.constants || fs42;
81818
81816
  var isUsingWindows = process.platform == "win32";
81819
81817
  var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback) {
81820
81818
  access(
@@ -81915,8 +81913,8 @@ var require_command_exists = __commonJS2({
81915
81913
  cleanInput = /* @__PURE__ */ __name(function(s) {
81916
81914
  var isPathName = /[\\]/.test(s);
81917
81915
  if (isPathName) {
81918
- var dirname42 = '"' + path52.dirname(s) + '"';
81919
- var basename22 = '"' + path52.basename(s) + '"';
81916
+ var dirname42 = '"' + path62.dirname(s) + '"';
81917
+ var basename22 = '"' + path62.basename(s) + '"';
81920
81918
  return dirname42 + ":" + basename22;
81921
81919
  }
81922
81920
  return '"' + s + '"';
@@ -82190,9 +82188,9 @@ var require_strip_json_comments = __commonJS2({
82190
82188
  });
82191
82189
  var require_utils2 = __commonJS2({
82192
82190
  "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports$1) {
82193
- var fs32 = __require("fs");
82191
+ var fs42 = __require("fs");
82194
82192
  var ini = require_ini();
82195
- var path52 = __require("path");
82193
+ var path62 = __require("path");
82196
82194
  var stripJsonComments = require_strip_json_comments();
82197
82195
  var parse32 = exports$1.parse = function(content) {
82198
82196
  if (/^\s*{/.test(content))
@@ -82206,9 +82204,9 @@ var require_utils2 = __commonJS2({
82206
82204
  for (var i in args)
82207
82205
  if ("string" !== typeof args[i])
82208
82206
  return;
82209
- var file3 = path52.join.apply(null, args);
82207
+ var file3 = path62.join.apply(null, args);
82210
82208
  try {
82211
- return fs32.readFileSync(file3, "utf-8");
82209
+ return fs42.readFileSync(file3, "utf-8");
82212
82210
  } catch (err) {
82213
82211
  return;
82214
82212
  }
@@ -82243,15 +82241,15 @@ var require_utils2 = __commonJS2({
82243
82241
  return obj;
82244
82242
  };
82245
82243
  exports$1.find = function() {
82246
- var rel = path52.join.apply(null, [].slice.call(arguments));
82244
+ var rel = path62.join.apply(null, [].slice.call(arguments));
82247
82245
  function find2(start, rel2) {
82248
- var file3 = path52.join(start, rel2);
82246
+ var file3 = path62.join(start, rel2);
82249
82247
  try {
82250
- fs32.statSync(file3);
82248
+ fs42.statSync(file3);
82251
82249
  return file3;
82252
82250
  } catch (err) {
82253
- if (path52.dirname(start) !== start)
82254
- return find2(path52.dirname(start), rel2);
82251
+ if (path62.dirname(start) !== start)
82252
+ return find2(path62.dirname(start), rel2);
82255
82253
  }
82256
82254
  }
82257
82255
  __name(find2, "find");
@@ -82727,8 +82725,8 @@ var require_registry_auth_token = __commonJS2({
82727
82725
  return void 0;
82728
82726
  }
82729
82727
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
82730
- function normalizePath2(path52) {
82731
- return path52[path52.length - 1] === "/" ? path52 : path52 + "/";
82728
+ function normalizePath2(path62) {
82729
+ return path62[path62.length - 1] === "/" ? path62 : path62 + "/";
82732
82730
  }
82733
82731
  __name(normalizePath2, "normalizePath");
82734
82732
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -82777,19 +82775,19 @@ var require_update_check = __commonJS2({
82777
82775
  "../../node_modules/.pnpm/update-check@1.5.4/node_modules/update-check/index.js"(exports$1, module2) {
82778
82776
  var { URL: URL2 } = __require("url");
82779
82777
  var { join: join32 } = __require("path");
82780
- var fs32 = __require("fs");
82778
+ var fs42 = __require("fs");
82781
82779
  var { promisify: promisify8 } = __require("util");
82782
82780
  var { tmpdir: tmpdir4 } = __require("os");
82783
82781
  var registryUrl = require_registry_url();
82784
- var writeFile4 = promisify8(fs32.writeFile);
82785
- var mkdir = promisify8(fs32.mkdir);
82786
- var readFile2 = promisify8(fs32.readFile);
82782
+ var writeFile4 = promisify8(fs42.writeFile);
82783
+ var mkdir = promisify8(fs42.mkdir);
82784
+ var readFile2 = promisify8(fs42.readFile);
82787
82785
  var compareVersions = /* @__PURE__ */ __name((a, b2) => a.localeCompare(b2, "en-US", { numeric: true }), "compareVersions");
82788
82786
  var encode3 = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/^%40/, "@"), "encode");
82789
82787
  var getFile = /* @__PURE__ */ __name(async (details, distTag) => {
82790
82788
  const rootDir = tmpdir4();
82791
82789
  const subDir = join32(rootDir, "update-check");
82792
- if (!fs32.existsSync(subDir)) {
82790
+ if (!fs42.existsSync(subDir)) {
82793
82791
  await mkdir(subDir);
82794
82792
  }
82795
82793
  let name3 = `${details.name}-${distTag}.json`;
@@ -82799,7 +82797,7 @@ var require_update_check = __commonJS2({
82799
82797
  return join32(subDir, name3);
82800
82798
  }, "getFile");
82801
82799
  var evaluateCache = /* @__PURE__ */ __name(async (file22, time3, interval) => {
82802
- if (fs32.existsSync(file22)) {
82800
+ if (fs42.existsSync(file22)) {
82803
82801
  const content = await readFile2(file22, "utf8");
82804
82802
  const { lastUpdate, latest } = JSON.parse(content);
82805
82803
  const nextCheck = lastUpdate + interval;
@@ -82925,6 +82923,788 @@ var require_update_check = __commonJS2({
82925
82923
  };
82926
82924
  }
82927
82925
  });
82926
+ var require_path = __commonJS2({
82927
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports$1, module2) {
82928
+ var isWindows3 = typeof process === "object" && process && process.platform === "win32";
82929
+ module2.exports = isWindows3 ? { sep: "\\" } : { sep: "/" };
82930
+ }
82931
+ });
82932
+ var require_balanced_match = __commonJS2({
82933
+ "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports$1, module2) {
82934
+ module2.exports = balanced;
82935
+ function balanced(a, b2, str) {
82936
+ if (a instanceof RegExp) a = maybeMatch(a, str);
82937
+ if (b2 instanceof RegExp) b2 = maybeMatch(b2, str);
82938
+ var r2 = range(a, b2, str);
82939
+ return r2 && {
82940
+ start: r2[0],
82941
+ end: r2[1],
82942
+ pre: str.slice(0, r2[0]),
82943
+ body: str.slice(r2[0] + a.length, r2[1]),
82944
+ post: str.slice(r2[1] + b2.length)
82945
+ };
82946
+ }
82947
+ __name(balanced, "balanced");
82948
+ function maybeMatch(reg, str) {
82949
+ var m = str.match(reg);
82950
+ return m ? m[0] : null;
82951
+ }
82952
+ __name(maybeMatch, "maybeMatch");
82953
+ balanced.range = range;
82954
+ function range(a, b2, str) {
82955
+ var begs, beg, left2, right2, result;
82956
+ var ai = str.indexOf(a);
82957
+ var bi = str.indexOf(b2, ai + 1);
82958
+ var i = ai;
82959
+ if (ai >= 0 && bi > 0) {
82960
+ if (a === b2) {
82961
+ return [ai, bi];
82962
+ }
82963
+ begs = [];
82964
+ left2 = str.length;
82965
+ while (i >= 0 && !result) {
82966
+ if (i == ai) {
82967
+ begs.push(i);
82968
+ ai = str.indexOf(a, i + 1);
82969
+ } else if (begs.length == 1) {
82970
+ result = [begs.pop(), bi];
82971
+ } else {
82972
+ beg = begs.pop();
82973
+ if (beg < left2) {
82974
+ left2 = beg;
82975
+ right2 = bi;
82976
+ }
82977
+ bi = str.indexOf(b2, i + 1);
82978
+ }
82979
+ i = ai < bi && ai >= 0 ? ai : bi;
82980
+ }
82981
+ if (begs.length) {
82982
+ result = [left2, right2];
82983
+ }
82984
+ }
82985
+ return result;
82986
+ }
82987
+ __name(range, "range");
82988
+ }
82989
+ });
82990
+ var require_brace_expansion = __commonJS2({
82991
+ "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports$1, module2) {
82992
+ var balanced = require_balanced_match();
82993
+ module2.exports = expandTop;
82994
+ var escSlash = "\0SLASH" + Math.random() + "\0";
82995
+ var escOpen = "\0OPEN" + Math.random() + "\0";
82996
+ var escClose = "\0CLOSE" + Math.random() + "\0";
82997
+ var escComma = "\0COMMA" + Math.random() + "\0";
82998
+ var escPeriod = "\0PERIOD" + Math.random() + "\0";
82999
+ function numeric(str) {
83000
+ return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
83001
+ }
83002
+ __name(numeric, "numeric");
83003
+ function escapeBraces(str) {
83004
+ return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
83005
+ }
83006
+ __name(escapeBraces, "escapeBraces");
83007
+ function unescapeBraces(str) {
83008
+ return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
83009
+ }
83010
+ __name(unescapeBraces, "unescapeBraces");
83011
+ function parseCommaParts(str) {
83012
+ if (!str)
83013
+ return [""];
83014
+ var parts = [];
83015
+ var m = balanced("{", "}", str);
83016
+ if (!m)
83017
+ return str.split(",");
83018
+ var pre = m.pre;
83019
+ var body = m.body;
83020
+ var post = m.post;
83021
+ var p2 = pre.split(",");
83022
+ p2[p2.length - 1] += "{" + body + "}";
83023
+ var postParts = parseCommaParts(post);
83024
+ if (post.length) {
83025
+ p2[p2.length - 1] += postParts.shift();
83026
+ p2.push.apply(p2, postParts);
83027
+ }
83028
+ parts.push.apply(parts, p2);
83029
+ return parts;
83030
+ }
83031
+ __name(parseCommaParts, "parseCommaParts");
83032
+ function expandTop(str) {
83033
+ if (!str)
83034
+ return [];
83035
+ if (str.substr(0, 2) === "{}") {
83036
+ str = "\\{\\}" + str.substr(2);
83037
+ }
83038
+ return expand(escapeBraces(str), true).map(unescapeBraces);
83039
+ }
83040
+ __name(expandTop, "expandTop");
83041
+ function embrace(str) {
83042
+ return "{" + str + "}";
83043
+ }
83044
+ __name(embrace, "embrace");
83045
+ function isPadded(el) {
83046
+ return /^-?0\d/.test(el);
83047
+ }
83048
+ __name(isPadded, "isPadded");
83049
+ function lte(i, y2) {
83050
+ return i <= y2;
83051
+ }
83052
+ __name(lte, "lte");
83053
+ function gte(i, y2) {
83054
+ return i >= y2;
83055
+ }
83056
+ __name(gte, "gte");
83057
+ function expand(str, isTop) {
83058
+ var expansions = [];
83059
+ var m = balanced("{", "}", str);
83060
+ if (!m) return [str];
83061
+ var pre = m.pre;
83062
+ var post = m.post.length ? expand(m.post, false) : [""];
83063
+ if (/\$$/.test(m.pre)) {
83064
+ for (var k = 0; k < post.length; k++) {
83065
+ var expansion = pre + "{" + m.body + "}" + post[k];
83066
+ expansions.push(expansion);
83067
+ }
83068
+ } else {
83069
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
83070
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
83071
+ var isSequence = isNumericSequence || isAlphaSequence;
83072
+ var isOptions = m.body.indexOf(",") >= 0;
83073
+ if (!isSequence && !isOptions) {
83074
+ if (m.post.match(/,.*\}/)) {
83075
+ str = m.pre + "{" + m.body + escClose + m.post;
83076
+ return expand(str);
83077
+ }
83078
+ return [str];
83079
+ }
83080
+ var n2;
83081
+ if (isSequence) {
83082
+ n2 = m.body.split(/\.\./);
83083
+ } else {
83084
+ n2 = parseCommaParts(m.body);
83085
+ if (n2.length === 1) {
83086
+ n2 = expand(n2[0], false).map(embrace);
83087
+ if (n2.length === 1) {
83088
+ return post.map(function(p2) {
83089
+ return m.pre + n2[0] + p2;
83090
+ });
83091
+ }
83092
+ }
83093
+ }
83094
+ var N;
83095
+ if (isSequence) {
83096
+ var x = numeric(n2[0]);
83097
+ var y2 = numeric(n2[1]);
83098
+ var width = Math.max(n2[0].length, n2[1].length);
83099
+ var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
83100
+ var test = lte;
83101
+ var reverse = y2 < x;
83102
+ if (reverse) {
83103
+ incr *= -1;
83104
+ test = gte;
83105
+ }
83106
+ var pad = n2.some(isPadded);
83107
+ N = [];
83108
+ for (var i = x; test(i, y2); i += incr) {
83109
+ var c2;
83110
+ if (isAlphaSequence) {
83111
+ c2 = String.fromCharCode(i);
83112
+ if (c2 === "\\")
83113
+ c2 = "";
83114
+ } else {
83115
+ c2 = String(i);
83116
+ if (pad) {
83117
+ var need = width - c2.length;
83118
+ if (need > 0) {
83119
+ var z2 = new Array(need + 1).join("0");
83120
+ if (i < 0)
83121
+ c2 = "-" + z2 + c2.slice(1);
83122
+ else
83123
+ c2 = z2 + c2;
83124
+ }
83125
+ }
83126
+ }
83127
+ N.push(c2);
83128
+ }
83129
+ } else {
83130
+ N = [];
83131
+ for (var j2 = 0; j2 < n2.length; j2++) {
83132
+ N.push.apply(N, expand(n2[j2], false));
83133
+ }
83134
+ }
83135
+ for (var j2 = 0; j2 < N.length; j2++) {
83136
+ for (var k = 0; k < post.length; k++) {
83137
+ var expansion = pre + N[j2] + post[k];
83138
+ if (!isTop || isSequence || expansion)
83139
+ expansions.push(expansion);
83140
+ }
83141
+ }
83142
+ }
83143
+ return expansions;
83144
+ }
83145
+ __name(expand, "expand");
83146
+ }
83147
+ });
83148
+ var require_minimatch = __commonJS2({
83149
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports$1, module2) {
83150
+ var minimatch = module2.exports = (p2, pattern, options = {}) => {
83151
+ assertValidPattern(pattern);
83152
+ if (!options.nocomment && pattern.charAt(0) === "#") {
83153
+ return false;
83154
+ }
83155
+ return new Minimatch2(pattern, options).match(p2);
83156
+ };
83157
+ module2.exports = minimatch;
83158
+ var path62 = require_path();
83159
+ minimatch.sep = path62.sep;
83160
+ var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
83161
+ minimatch.GLOBSTAR = GLOBSTAR;
83162
+ var expand = require_brace_expansion();
83163
+ var plTypes = {
83164
+ "!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
83165
+ "?": { open: "(?:", close: ")?" },
83166
+ "+": { open: "(?:", close: ")+" },
83167
+ "*": { open: "(?:", close: ")*" },
83168
+ "@": { open: "(?:", close: ")" }
83169
+ };
83170
+ var qmark = "[^/]";
83171
+ var star = qmark + "*?";
83172
+ var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
83173
+ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
83174
+ var charSet = /* @__PURE__ */ __name((s) => s.split("").reduce((set2, c2) => {
83175
+ set2[c2] = true;
83176
+ return set2;
83177
+ }, {}), "charSet");
83178
+ var reSpecials = charSet("().*{}+?[]^$\\!");
83179
+ var addPatternStartSet = charSet("[.(");
83180
+ var slashSplit = /\/+/;
83181
+ minimatch.filter = (pattern, options = {}) => (p2, i, list) => minimatch(p2, pattern, options);
83182
+ var ext = /* @__PURE__ */ __name((a, b2 = {}) => {
83183
+ const t2 = {};
83184
+ Object.keys(a).forEach((k) => t2[k] = a[k]);
83185
+ Object.keys(b2).forEach((k) => t2[k] = b2[k]);
83186
+ return t2;
83187
+ }, "ext");
83188
+ minimatch.defaults = (def) => {
83189
+ if (!def || typeof def !== "object" || !Object.keys(def).length) {
83190
+ return minimatch;
83191
+ }
83192
+ const orig = minimatch;
83193
+ const m = /* @__PURE__ */ __name((p2, pattern, options) => orig(p2, pattern, ext(def, options)), "m");
83194
+ m.Minimatch = class Minimatch extends orig.Minimatch {
83195
+ static {
83196
+ __name(this, "Minimatch");
83197
+ }
83198
+ constructor(pattern, options) {
83199
+ super(pattern, ext(def, options));
83200
+ }
83201
+ };
83202
+ m.Minimatch.defaults = (options) => orig.defaults(ext(def, options)).Minimatch;
83203
+ m.filter = (pattern, options) => orig.filter(pattern, ext(def, options));
83204
+ m.defaults = (options) => orig.defaults(ext(def, options));
83205
+ m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options));
83206
+ m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options));
83207
+ m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options));
83208
+ return m;
83209
+ };
83210
+ minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options);
83211
+ var braceExpand = /* @__PURE__ */ __name((pattern, options = {}) => {
83212
+ assertValidPattern(pattern);
83213
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
83214
+ return [pattern];
83215
+ }
83216
+ return expand(pattern);
83217
+ }, "braceExpand");
83218
+ var MAX_PATTERN_LENGTH = 1024 * 64;
83219
+ var assertValidPattern = /* @__PURE__ */ __name((pattern) => {
83220
+ if (typeof pattern !== "string") {
83221
+ throw new TypeError("invalid pattern");
83222
+ }
83223
+ if (pattern.length > MAX_PATTERN_LENGTH) {
83224
+ throw new TypeError("pattern is too long");
83225
+ }
83226
+ }, "assertValidPattern");
83227
+ var SUBPARSE = /* @__PURE__ */ Symbol("subparse");
83228
+ minimatch.makeRe = (pattern, options) => new Minimatch2(pattern, options || {}).makeRe();
83229
+ minimatch.match = (list, pattern, options = {}) => {
83230
+ const mm = new Minimatch2(pattern, options);
83231
+ list = list.filter((f) => mm.match(f));
83232
+ if (mm.options.nonull && !list.length) {
83233
+ list.push(pattern);
83234
+ }
83235
+ return list;
83236
+ };
83237
+ var globUnescape = /* @__PURE__ */ __name((s) => s.replace(/\\(.)/g, "$1"), "globUnescape");
83238
+ var charUnescape = /* @__PURE__ */ __name((s) => s.replace(/\\([^-\]])/g, "$1"), "charUnescape");
83239
+ var regExpEscape = /* @__PURE__ */ __name((s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "regExpEscape");
83240
+ var braExpEscape = /* @__PURE__ */ __name((s) => s.replace(/[[\]\\]/g, "\\$&"), "braExpEscape");
83241
+ var Minimatch2 = class {
83242
+ static {
83243
+ __name(this, "Minimatch");
83244
+ }
83245
+ constructor(pattern, options) {
83246
+ assertValidPattern(pattern);
83247
+ if (!options) options = {};
83248
+ this.options = options;
83249
+ this.set = [];
83250
+ this.pattern = pattern;
83251
+ this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
83252
+ if (this.windowsPathsNoEscape) {
83253
+ this.pattern = this.pattern.replace(/\\/g, "/");
83254
+ }
83255
+ this.regexp = null;
83256
+ this.negate = false;
83257
+ this.comment = false;
83258
+ this.empty = false;
83259
+ this.partial = !!options.partial;
83260
+ this.make();
83261
+ }
83262
+ debug() {
83263
+ }
83264
+ make() {
83265
+ const pattern = this.pattern;
83266
+ const options = this.options;
83267
+ if (!options.nocomment && pattern.charAt(0) === "#") {
83268
+ this.comment = true;
83269
+ return;
83270
+ }
83271
+ if (!pattern) {
83272
+ this.empty = true;
83273
+ return;
83274
+ }
83275
+ this.parseNegate();
83276
+ let set2 = this.globSet = this.braceExpand();
83277
+ if (options.debug) this.debug = (...args) => console.error(...args);
83278
+ this.debug(this.pattern, set2);
83279
+ set2 = this.globParts = set2.map((s) => s.split(slashSplit));
83280
+ this.debug(this.pattern, set2);
83281
+ set2 = set2.map((s, si, set3) => s.map(this.parse, this));
83282
+ this.debug(this.pattern, set2);
83283
+ set2 = set2.filter((s) => s.indexOf(false) === -1);
83284
+ this.debug(this.pattern, set2);
83285
+ this.set = set2;
83286
+ }
83287
+ parseNegate() {
83288
+ if (this.options.nonegate) return;
83289
+ const pattern = this.pattern;
83290
+ let negate = false;
83291
+ let negateOffset = 0;
83292
+ for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
83293
+ negate = !negate;
83294
+ negateOffset++;
83295
+ }
83296
+ if (negateOffset) this.pattern = pattern.slice(negateOffset);
83297
+ this.negate = negate;
83298
+ }
83299
+ // set partial to true to test if, for example,
83300
+ // "/a/b" matches the start of "/*/b/*/d"
83301
+ // Partial means, if you run out of file before you run
83302
+ // out of pattern, then that's fine, as long as all
83303
+ // the parts match.
83304
+ matchOne(file22, pattern, partial2) {
83305
+ var options = this.options;
83306
+ this.debug(
83307
+ "matchOne",
83308
+ { "this": this, file: file22, pattern }
83309
+ );
83310
+ this.debug("matchOne", file22.length, pattern.length);
83311
+ for (var fi = 0, pi = 0, fl = file22.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
83312
+ this.debug("matchOne loop");
83313
+ var p2 = pattern[pi];
83314
+ var f = file22[fi];
83315
+ this.debug(pattern, p2, f);
83316
+ if (p2 === false) return false;
83317
+ if (p2 === GLOBSTAR) {
83318
+ this.debug("GLOBSTAR", [pattern, p2, f]);
83319
+ var fr = fi;
83320
+ var pr = pi + 1;
83321
+ if (pr === pl) {
83322
+ this.debug("** at the end");
83323
+ for (; fi < fl; fi++) {
83324
+ if (file22[fi] === "." || file22[fi] === ".." || !options.dot && file22[fi].charAt(0) === ".") return false;
83325
+ }
83326
+ return true;
83327
+ }
83328
+ while (fr < fl) {
83329
+ var swallowee = file22[fr];
83330
+ this.debug("\nglobstar while", file22, fr, pattern, pr, swallowee);
83331
+ if (this.matchOne(file22.slice(fr), pattern.slice(pr), partial2)) {
83332
+ this.debug("globstar found match!", fr, fl, swallowee);
83333
+ return true;
83334
+ } else {
83335
+ if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
83336
+ this.debug("dot detected!", file22, fr, pattern, pr);
83337
+ break;
83338
+ }
83339
+ this.debug("globstar swallow a segment, and continue");
83340
+ fr++;
83341
+ }
83342
+ }
83343
+ if (partial2) {
83344
+ this.debug("\n>>> no match, partial?", file22, fr, pattern, pr);
83345
+ if (fr === fl) return true;
83346
+ }
83347
+ return false;
83348
+ }
83349
+ var hit;
83350
+ if (typeof p2 === "string") {
83351
+ hit = f === p2;
83352
+ this.debug("string match", p2, f, hit);
83353
+ } else {
83354
+ hit = f.match(p2);
83355
+ this.debug("pattern match", p2, f, hit);
83356
+ }
83357
+ if (!hit) return false;
83358
+ }
83359
+ if (fi === fl && pi === pl) {
83360
+ return true;
83361
+ } else if (fi === fl) {
83362
+ return partial2;
83363
+ } else if (pi === pl) {
83364
+ return fi === fl - 1 && file22[fi] === "";
83365
+ }
83366
+ throw new Error("wtf?");
83367
+ }
83368
+ braceExpand() {
83369
+ return braceExpand(this.pattern, this.options);
83370
+ }
83371
+ parse(pattern, isSub) {
83372
+ assertValidPattern(pattern);
83373
+ const options = this.options;
83374
+ if (pattern === "**") {
83375
+ if (!options.noglobstar)
83376
+ return GLOBSTAR;
83377
+ else
83378
+ pattern = "*";
83379
+ }
83380
+ if (pattern === "") return "";
83381
+ let re = "";
83382
+ let hasMagic = false;
83383
+ let escaping = false;
83384
+ const patternListStack = [];
83385
+ const negativeLists = [];
83386
+ let stateChar;
83387
+ let inClass = false;
83388
+ let reClassStart = -1;
83389
+ let classStart = -1;
83390
+ let cs;
83391
+ let pl;
83392
+ let sp;
83393
+ let dotTravAllowed = pattern.charAt(0) === ".";
83394
+ let dotFileAllowed = options.dot || dotTravAllowed;
83395
+ const patternStart = /* @__PURE__ */ __name(() => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", "patternStart");
83396
+ const subPatternStart = /* @__PURE__ */ __name((p2) => p2.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)", "subPatternStart");
83397
+ const clearStateChar = /* @__PURE__ */ __name(() => {
83398
+ if (stateChar) {
83399
+ switch (stateChar) {
83400
+ case "*":
83401
+ re += star;
83402
+ hasMagic = true;
83403
+ break;
83404
+ case "?":
83405
+ re += qmark;
83406
+ hasMagic = true;
83407
+ break;
83408
+ default:
83409
+ re += "\\" + stateChar;
83410
+ break;
83411
+ }
83412
+ this.debug("clearStateChar %j %j", stateChar, re);
83413
+ stateChar = false;
83414
+ }
83415
+ }, "clearStateChar");
83416
+ for (let i = 0, c2; i < pattern.length && (c2 = pattern.charAt(i)); i++) {
83417
+ this.debug("%s %s %s %j", pattern, i, re, c2);
83418
+ if (escaping) {
83419
+ if (c2 === "/") {
83420
+ return false;
83421
+ }
83422
+ if (reSpecials[c2]) {
83423
+ re += "\\";
83424
+ }
83425
+ re += c2;
83426
+ escaping = false;
83427
+ continue;
83428
+ }
83429
+ switch (c2) {
83430
+ /* istanbul ignore next */
83431
+ case "/": {
83432
+ return false;
83433
+ }
83434
+ case "\\":
83435
+ if (inClass && pattern.charAt(i + 1) === "-") {
83436
+ re += c2;
83437
+ continue;
83438
+ }
83439
+ clearStateChar();
83440
+ escaping = true;
83441
+ continue;
83442
+ // the various stateChar values
83443
+ // for the "extglob" stuff.
83444
+ case "?":
83445
+ case "*":
83446
+ case "+":
83447
+ case "@":
83448
+ case "!":
83449
+ this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c2);
83450
+ if (inClass) {
83451
+ this.debug(" in class");
83452
+ if (c2 === "!" && i === classStart + 1) c2 = "^";
83453
+ re += c2;
83454
+ continue;
83455
+ }
83456
+ this.debug("call clearStateChar %j", stateChar);
83457
+ clearStateChar();
83458
+ stateChar = c2;
83459
+ if (options.noext) clearStateChar();
83460
+ continue;
83461
+ case "(": {
83462
+ if (inClass) {
83463
+ re += "(";
83464
+ continue;
83465
+ }
83466
+ if (!stateChar) {
83467
+ re += "\\(";
83468
+ continue;
83469
+ }
83470
+ const plEntry = {
83471
+ type: stateChar,
83472
+ start: i - 1,
83473
+ reStart: re.length,
83474
+ open: plTypes[stateChar].open,
83475
+ close: plTypes[stateChar].close
83476
+ };
83477
+ this.debug(this.pattern, " ", plEntry);
83478
+ patternListStack.push(plEntry);
83479
+ re += plEntry.open;
83480
+ if (plEntry.start === 0 && plEntry.type !== "!") {
83481
+ dotTravAllowed = true;
83482
+ re += subPatternStart(pattern.slice(i + 1));
83483
+ }
83484
+ this.debug("plType %j %j", stateChar, re);
83485
+ stateChar = false;
83486
+ continue;
83487
+ }
83488
+ case ")": {
83489
+ const plEntry = patternListStack[patternListStack.length - 1];
83490
+ if (inClass || !plEntry) {
83491
+ re += "\\)";
83492
+ continue;
83493
+ }
83494
+ patternListStack.pop();
83495
+ clearStateChar();
83496
+ hasMagic = true;
83497
+ pl = plEntry;
83498
+ re += pl.close;
83499
+ if (pl.type === "!") {
83500
+ negativeLists.push(Object.assign(pl, { reEnd: re.length }));
83501
+ }
83502
+ continue;
83503
+ }
83504
+ case "|": {
83505
+ const plEntry = patternListStack[patternListStack.length - 1];
83506
+ if (inClass || !plEntry) {
83507
+ re += "\\|";
83508
+ continue;
83509
+ }
83510
+ clearStateChar();
83511
+ re += "|";
83512
+ if (plEntry.start === 0 && plEntry.type !== "!") {
83513
+ dotTravAllowed = true;
83514
+ re += subPatternStart(pattern.slice(i + 1));
83515
+ }
83516
+ continue;
83517
+ }
83518
+ // these are mostly the same in regexp and glob
83519
+ case "[":
83520
+ clearStateChar();
83521
+ if (inClass) {
83522
+ re += "\\" + c2;
83523
+ continue;
83524
+ }
83525
+ inClass = true;
83526
+ classStart = i;
83527
+ reClassStart = re.length;
83528
+ re += c2;
83529
+ continue;
83530
+ case "]":
83531
+ if (i === classStart + 1 || !inClass) {
83532
+ re += "\\" + c2;
83533
+ continue;
83534
+ }
83535
+ cs = pattern.substring(classStart + 1, i);
83536
+ try {
83537
+ RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
83538
+ re += c2;
83539
+ } catch (er) {
83540
+ re = re.substring(0, reClassStart) + "(?:$.)";
83541
+ }
83542
+ hasMagic = true;
83543
+ inClass = false;
83544
+ continue;
83545
+ default:
83546
+ clearStateChar();
83547
+ if (reSpecials[c2] && !(c2 === "^" && inClass)) {
83548
+ re += "\\";
83549
+ }
83550
+ re += c2;
83551
+ break;
83552
+ }
83553
+ }
83554
+ if (inClass) {
83555
+ cs = pattern.slice(classStart + 1);
83556
+ sp = this.parse(cs, SUBPARSE);
83557
+ re = re.substring(0, reClassStart) + "\\[" + sp[0];
83558
+ hasMagic = hasMagic || sp[1];
83559
+ }
83560
+ for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
83561
+ let tail;
83562
+ tail = re.slice(pl.reStart + pl.open.length);
83563
+ this.debug("setting tail", re, pl);
83564
+ tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => {
83565
+ if (!$2) {
83566
+ $2 = "\\";
83567
+ }
83568
+ return $1 + $1 + $2 + "|";
83569
+ });
83570
+ this.debug("tail=%j\n %s", tail, tail, pl, re);
83571
+ const t2 = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
83572
+ hasMagic = true;
83573
+ re = re.slice(0, pl.reStart) + t2 + "\\(" + tail;
83574
+ }
83575
+ clearStateChar();
83576
+ if (escaping) {
83577
+ re += "\\\\";
83578
+ }
83579
+ const addPatternStart = addPatternStartSet[re.charAt(0)];
83580
+ for (let n2 = negativeLists.length - 1; n2 > -1; n2--) {
83581
+ const nl = negativeLists[n2];
83582
+ const nlBefore = re.slice(0, nl.reStart);
83583
+ const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
83584
+ let nlAfter = re.slice(nl.reEnd);
83585
+ const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
83586
+ const closeParensBefore = nlBefore.split(")").length;
83587
+ const openParensBefore = nlBefore.split("(").length - closeParensBefore;
83588
+ let cleanAfter = nlAfter;
83589
+ for (let i = 0; i < openParensBefore; i++) {
83590
+ cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
83591
+ }
83592
+ nlAfter = cleanAfter;
83593
+ const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
83594
+ re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
83595
+ }
83596
+ if (re !== "" && hasMagic) {
83597
+ re = "(?=.)" + re;
83598
+ }
83599
+ if (addPatternStart) {
83600
+ re = patternStart() + re;
83601
+ }
83602
+ if (isSub === SUBPARSE) {
83603
+ return [re, hasMagic];
83604
+ }
83605
+ if (options.nocase && !hasMagic) {
83606
+ hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
83607
+ }
83608
+ if (!hasMagic) {
83609
+ return globUnescape(pattern);
83610
+ }
83611
+ const flags = options.nocase ? "i" : "";
83612
+ try {
83613
+ return Object.assign(new RegExp("^" + re + "$", flags), {
83614
+ _glob: pattern,
83615
+ _src: re
83616
+ });
83617
+ } catch (er) {
83618
+ return new RegExp("$.");
83619
+ }
83620
+ }
83621
+ makeRe() {
83622
+ if (this.regexp || this.regexp === false) return this.regexp;
83623
+ const set2 = this.set;
83624
+ if (!set2.length) {
83625
+ this.regexp = false;
83626
+ return this.regexp;
83627
+ }
83628
+ const options = this.options;
83629
+ const twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
83630
+ const flags = options.nocase ? "i" : "";
83631
+ let re = set2.map((pattern) => {
83632
+ pattern = pattern.map(
83633
+ (p2) => typeof p2 === "string" ? regExpEscape(p2) : p2 === GLOBSTAR ? GLOBSTAR : p2._src
83634
+ ).reduce((set3, p2) => {
83635
+ if (!(set3[set3.length - 1] === GLOBSTAR && p2 === GLOBSTAR)) {
83636
+ set3.push(p2);
83637
+ }
83638
+ return set3;
83639
+ }, []);
83640
+ pattern.forEach((p2, i) => {
83641
+ if (p2 !== GLOBSTAR || pattern[i - 1] === GLOBSTAR) {
83642
+ return;
83643
+ }
83644
+ if (i === 0) {
83645
+ if (pattern.length > 1) {
83646
+ pattern[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + pattern[i + 1];
83647
+ } else {
83648
+ pattern[i] = twoStar;
83649
+ }
83650
+ } else if (i === pattern.length - 1) {
83651
+ pattern[i - 1] += "(?:\\/|" + twoStar + ")?";
83652
+ } else {
83653
+ pattern[i - 1] += "(?:\\/|\\/" + twoStar + "\\/)" + pattern[i + 1];
83654
+ pattern[i + 1] = GLOBSTAR;
83655
+ }
83656
+ });
83657
+ return pattern.filter((p2) => p2 !== GLOBSTAR).join("/");
83658
+ }).join("|");
83659
+ re = "^(?:" + re + ")$";
83660
+ if (this.negate) re = "^(?!" + re + ").*$";
83661
+ try {
83662
+ this.regexp = new RegExp(re, flags);
83663
+ } catch (ex) {
83664
+ this.regexp = false;
83665
+ }
83666
+ return this.regexp;
83667
+ }
83668
+ match(f, partial2 = this.partial) {
83669
+ this.debug("match", f, this.pattern);
83670
+ if (this.comment) return false;
83671
+ if (this.empty) return f === "";
83672
+ if (f === "/" && partial2) return true;
83673
+ const options = this.options;
83674
+ if (path62.sep !== "/") {
83675
+ f = f.split(path62.sep).join("/");
83676
+ }
83677
+ f = f.split(slashSplit);
83678
+ this.debug(this.pattern, "split", f);
83679
+ const set2 = this.set;
83680
+ this.debug(this.pattern, "set", set2);
83681
+ let filename;
83682
+ for (let i = f.length - 1; i >= 0; i--) {
83683
+ filename = f[i];
83684
+ if (filename) break;
83685
+ }
83686
+ for (let i = 0; i < set2.length; i++) {
83687
+ const pattern = set2[i];
83688
+ let file22 = f;
83689
+ if (options.matchBase && pattern.length === 1) {
83690
+ file22 = [filename];
83691
+ }
83692
+ const hit = this.matchOne(file22, pattern, partial2);
83693
+ if (hit) {
83694
+ if (options.flipNegate) return true;
83695
+ return !this.negate;
83696
+ }
83697
+ }
83698
+ if (options.flipNegate) return false;
83699
+ return this.negate;
83700
+ }
83701
+ static defaults(def) {
83702
+ return minimatch.defaults(def).Minimatch;
83703
+ }
83704
+ };
83705
+ minimatch.Minimatch = Minimatch2;
83706
+ }
83707
+ });
82928
83708
  var ARTIFACTS_EVENT_TYPES = [
82929
83709
  "cf.artifacts.repo.created",
82930
83710
  "cf.artifacts.repo.deleted",
@@ -83856,10 +84636,10 @@ function cloneDef(schema) {
83856
84636
  return mergeDefs(schema._zod.def);
83857
84637
  }
83858
84638
  __name(cloneDef, "cloneDef");
83859
- function getElementAtPath(obj, path52) {
83860
- if (!path52)
84639
+ function getElementAtPath(obj, path62) {
84640
+ if (!path62)
83861
84641
  return obj;
83862
- return path52.reduce((acc, key) => acc?.[key], obj);
84642
+ return path62.reduce((acc, key) => acc?.[key], obj);
83863
84643
  }
83864
84644
  __name(getElementAtPath, "getElementAtPath");
83865
84645
  function promiseAllObject(promisesObj) {
@@ -84292,11 +85072,11 @@ function explicitlyAborted(x, startIndex = 0) {
84292
85072
  return false;
84293
85073
  }
84294
85074
  __name(explicitlyAborted, "explicitlyAborted");
84295
- function prefixIssues(path52, issues) {
85075
+ function prefixIssues(path62, issues) {
84296
85076
  return issues.map((iss) => {
84297
85077
  var _a32;
84298
85078
  (_a32 = iss).path ?? (_a32.path = []);
84299
- iss.path.unshift(path52);
85079
+ iss.path.unshift(path62);
84300
85080
  return iss;
84301
85081
  });
84302
85082
  }
@@ -84459,16 +85239,16 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
84459
85239
  __name(flattenError, "flattenError");
84460
85240
  function formatError(error51, mapper = (issue2) => issue2.message) {
84461
85241
  const fieldErrors = { _errors: [] };
84462
- const processError = /* @__PURE__ */ __name((error52, path52 = []) => {
85242
+ const processError = /* @__PURE__ */ __name((error52, path62 = []) => {
84463
85243
  for (const issue2 of error52.issues) {
84464
85244
  if (issue2.code === "invalid_union" && issue2.errors.length) {
84465
- issue2.errors.map((issues) => processError({ issues }, [...path52, ...issue2.path]));
85245
+ issue2.errors.map((issues) => processError({ issues }, [...path62, ...issue2.path]));
84466
85246
  } else if (issue2.code === "invalid_key") {
84467
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85247
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84468
85248
  } else if (issue2.code === "invalid_element") {
84469
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85249
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84470
85250
  } else {
84471
- const fullpath = [...path52, ...issue2.path];
85251
+ const fullpath = [...path62, ...issue2.path];
84472
85252
  if (fullpath.length === 0) {
84473
85253
  fieldErrors._errors.push(mapper(issue2));
84474
85254
  } else {
@@ -84496,17 +85276,17 @@ function formatError(error51, mapper = (issue2) => issue2.message) {
84496
85276
  __name(formatError, "formatError");
84497
85277
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
84498
85278
  const result = { errors: [] };
84499
- const processError = /* @__PURE__ */ __name((error52, path52 = []) => {
85279
+ const processError = /* @__PURE__ */ __name((error52, path62 = []) => {
84500
85280
  var _a32, _b2;
84501
85281
  for (const issue2 of error52.issues) {
84502
85282
  if (issue2.code === "invalid_union" && issue2.errors.length) {
84503
- issue2.errors.map((issues) => processError({ issues }, [...path52, ...issue2.path]));
85283
+ issue2.errors.map((issues) => processError({ issues }, [...path62, ...issue2.path]));
84504
85284
  } else if (issue2.code === "invalid_key") {
84505
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85285
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84506
85286
  } else if (issue2.code === "invalid_element") {
84507
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85287
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84508
85288
  } else {
84509
- const fullpath = [...path52, ...issue2.path];
85289
+ const fullpath = [...path62, ...issue2.path];
84510
85290
  if (fullpath.length === 0) {
84511
85291
  result.errors.push(mapper(issue2));
84512
85292
  continue;
@@ -84539,8 +85319,8 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
84539
85319
  __name(treeifyError, "treeifyError");
84540
85320
  function toDotPath(_path) {
84541
85321
  const segs = [];
84542
- const path52 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
84543
- for (const seg of path52) {
85322
+ const path62 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
85323
+ for (const seg of path62) {
84544
85324
  if (typeof seg === "number")
84545
85325
  segs.push(`[${seg}]`);
84546
85326
  else if (typeof seg === "symbol")
@@ -97453,13 +98233,13 @@ function resolveRef(ref, ctx) {
97453
98233
  if (!ref.startsWith("#")) {
97454
98234
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
97455
98235
  }
97456
- const path52 = ref.slice(1).split("/").filter(Boolean);
97457
- if (path52.length === 0) {
98236
+ const path62 = ref.slice(1).split("/").filter(Boolean);
98237
+ if (path62.length === 0) {
97458
98238
  return ctx.rootSchema;
97459
98239
  }
97460
98240
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
97461
- if (path52[0] === defsKey) {
97462
- const key = path52[1];
98241
+ if (path62[0] === defsKey) {
98242
+ const key = path62[1];
97463
98243
  if (!key || !ctx.defs[key]) {
97464
98244
  throw new Error(`Reference not found: ${ref}`);
97465
98245
  }
@@ -98021,9 +98801,9 @@ Please add "${field}" to "env.${envName}".`
98021
98801
  return rawEnv[field] ?? defaultValue;
98022
98802
  }
98023
98803
  __name(notInheritable, "notInheritable");
98024
- function unwindPropertyPath(root, path52) {
98804
+ function unwindPropertyPath(root, path62) {
98025
98805
  let container = root;
98026
- const parts = path52.split(".");
98806
+ const parts = path62.split(".");
98027
98807
  for (let i = 0; i < parts.length - 1; i++) {
98028
98808
  if (!hasProperty(container, parts[i])) {
98029
98809
  return;
@@ -99077,17 +99857,31 @@ function validateRoutes(diagnostics, topLevelEnv, rawEnv, envName) {
99077
99857
  return result;
99078
99858
  }
99079
99859
  __name(validateRoutes, "validateRoutes");
99080
- function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
99081
- if (rawEnv.placement) {
99860
+ function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv, diagnosticField = "placement") {
99861
+ if (rawEnv.placement !== void 0) {
99862
+ if (typeof rawEnv.placement !== "object" || rawEnv.placement === null || Array.isArray(rawEnv.placement)) {
99863
+ diagnostics.errors.push(
99864
+ `The field "${diagnosticField}" should be an object but got ${JSON.stringify(rawEnv.placement)}.`
99865
+ );
99866
+ return inheritable(
99867
+ diagnostics,
99868
+ topLevelEnv,
99869
+ rawEnv,
99870
+ "placement",
99871
+ () => true,
99872
+ void 0
99873
+ );
99874
+ }
99082
99875
  const placement = rawEnv.placement;
99083
99876
  const hasHint = "hint" in placement;
99084
- const hasRegion = "region" in placement;
99085
- const hasHost = "host" in placement;
99086
- const hasHostname = "hostname" in placement;
99087
- const hasTargetedFields = hasRegion || hasHost || hasHostname;
99877
+ const targetedFields = ["region", "host", "hostname"];
99878
+ const presentTargetedFields = targetedFields.filter(
99879
+ (field) => field in placement
99880
+ );
99881
+ const hasTargetedFields = presentTargetedFields.length > 0;
99088
99882
  if (hasHint && hasTargetedFields) {
99089
99883
  diagnostics.errors.push(
99090
- `"placement" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`
99884
+ `"${diagnosticField}" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`
99091
99885
  );
99092
99886
  return inheritable(
99093
99887
  diagnostics,
@@ -99101,7 +99895,7 @@ function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
99101
99895
  if (hasHint) {
99102
99896
  validateRequiredProperty(
99103
99897
  diagnostics,
99104
- "placement",
99898
+ diagnosticField,
99105
99899
  "mode",
99106
99900
  placement.mode,
99107
99901
  "string",
@@ -99111,75 +99905,58 @@ function normalizeAndValidatePlacement(diagnostics, topLevelEnv, rawEnv) {
99111
99905
  const hint = placement.hint;
99112
99906
  if (hint !== void 0 && typeof hint !== "string") {
99113
99907
  diagnostics.errors.push(
99114
- `"placement.hint" must be a string when "placement.mode" is "${mode}"`
99908
+ `"${diagnosticField}.hint" must be a string when "${diagnosticField}.mode" is "${mode}"`
99115
99909
  );
99116
99910
  }
99117
99911
  if (hint && mode !== "smart") {
99118
99912
  diagnostics.errors.push(
99119
- `"placement.hint" can only be set when "placement.mode" is "smart"`
99913
+ `"${diagnosticField}.hint" can only be set when "${diagnosticField}.mode" is "smart"`
99120
99914
  );
99121
99915
  }
99122
99916
  } else if (hasTargetedFields) {
99123
99917
  validateOptionalProperty(
99124
99918
  diagnostics,
99125
- "placement",
99919
+ diagnosticField,
99126
99920
  "mode",
99127
99921
  placement.mode,
99128
99922
  "string",
99129
- ["off", "targeted"]
99923
+ ["targeted"]
99130
99924
  );
99131
- if (hasRegion) {
99132
- validateOptionalProperty(
99133
- diagnostics,
99134
- "placement",
99135
- "region",
99136
- placement.region,
99137
- "string"
99138
- );
99139
- }
99140
- if (hasHost) {
99141
- validateOptionalProperty(
99925
+ for (const field of presentTargetedFields) {
99926
+ validateRequiredProperty(
99142
99927
  diagnostics,
99143
- "placement",
99144
- "host",
99145
- placement.host,
99146
- "string"
99147
- );
99148
- }
99149
- if (hasHostname) {
99150
- validateOptionalProperty(
99151
- diagnostics,
99152
- "placement",
99153
- "hostname",
99154
- placement.hostname,
99928
+ diagnosticField,
99929
+ field,
99930
+ placement[field],
99155
99931
  "string"
99156
99932
  );
99157
- }
99158
- const fieldsPresent = [hasRegion, hasHost, hasHostname].filter(Boolean);
99159
- if (fieldsPresent.length > 1) {
99160
- const presentFields = [];
99161
- if (hasRegion) {
99162
- presentFields.push("region");
99163
- }
99164
- if (hasHost) {
99165
- presentFields.push("host");
99166
- }
99167
- if (hasHostname) {
99168
- presentFields.push("hostname");
99933
+ if (placement[field] === "") {
99934
+ diagnostics.errors.push(
99935
+ `"${diagnosticField}.${field}" must be a non-empty string.`
99936
+ );
99169
99937
  }
99938
+ }
99939
+ if (presentTargetedFields.length > 1) {
99170
99940
  diagnostics.errors.push(
99171
- `"placement" fields ${presentFields.map((f) => `"${f}"`).join(", ")} are mutually exclusive. Only one can be specified.`
99941
+ `"${diagnosticField}" fields ${presentTargetedFields.map((field) => `"${field}"`).join(", ")} are mutually exclusive. Only one can be specified.`
99172
99942
  );
99173
99943
  }
99174
99944
  } else {
99175
99945
  validateRequiredProperty(
99176
99946
  diagnostics,
99177
- "placement",
99947
+ diagnosticField,
99178
99948
  "mode",
99179
99949
  placement.mode,
99180
99950
  "string",
99181
99951
  ["off", "smart", "targeted"]
99182
99952
  );
99953
+ if (placement.mode === "targeted") {
99954
+ validateAtLeastOnePropertyRequired(diagnostics, diagnosticField, [
99955
+ { key: "region", value: placement.region, type: "string" },
99956
+ { key: "host", value: placement.host, type: "string" },
99957
+ { key: "hostname", value: placement.hostname, type: "string" }
99958
+ ]);
99959
+ }
99183
99960
  }
99184
99961
  }
99185
99962
  return inheritable(
@@ -102247,7 +103024,6 @@ var validateBindingsHaveUniqueNames = /* @__PURE__ */ __name((diagnostics, confi
102247
103024
  ])
102248
103025
  );
102249
103026
  bindingsGroupedByType["Secret"] = config210.secrets?.required ?? [];
102250
- bindingsGroupedByType["Container images"] = [CONTAINER_IMAGES_BINDING];
102251
103027
  const bindingsGroupedByName = {};
102252
103028
  for (const bindingType in bindingsGroupedByType) {
102253
103029
  const bindingNames = bindingsGroupedByType[bindingType];
@@ -103100,6 +103876,7 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName, configPath) => (di
103100
103876
  "logpush",
103101
103877
  "observability",
103102
103878
  "limits",
103879
+ "placement",
103103
103880
  "cache"
103104
103881
  ]) && isValid;
103105
103882
  isValid = validateVars(envName)(
@@ -103114,6 +103891,12 @@ var validatePreviewsConfig = /* @__PURE__ */ __name((envName, configPath) => (di
103114
103891
  previews.define,
103115
103892
  void 0
103116
103893
  ) && isValid;
103894
+ normalizeAndValidatePlacement(
103895
+ diagnostics,
103896
+ void 0,
103897
+ previews,
103898
+ `${field}.placement`
103899
+ );
103117
103900
  isValid = validateBindingsProperty(envName, validateDurableObjectBinding)(
103118
103901
  diagnostics,
103119
103902
  `${field}.durable_objects`,
@@ -103832,6 +104615,11 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103832
104615
  key: "traces.enabled",
103833
104616
  value: val.traces?.enabled,
103834
104617
  type: "boolean"
104618
+ },
104619
+ {
104620
+ key: "issues.enabled",
104621
+ value: val.issues?.enabled,
104622
+ type: "boolean"
103835
104623
  }
103836
104624
  ]) && isValid;
103837
104625
  isValid = validateOptionalProperty(
@@ -103848,6 +104636,13 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103848
104636
  val.redact_query_string,
103849
104637
  "boolean"
103850
104638
  ) && isValid;
104639
+ const issuesIsObject = val.issues === void 0 || val.issues !== null && typeof val.issues === "object" && !Array.isArray(val.issues);
104640
+ if (!issuesIsObject) {
104641
+ diagnostics.errors.push(
104642
+ `"${field}.issues" should be an object but got ${JSON.stringify(val.issues)}.`
104643
+ );
104644
+ isValid = false;
104645
+ }
103851
104646
  isValid = validateOptionalProperty(diagnostics, field, "logs", val.logs, "object") && isValid;
103852
104647
  isValid = validateOptionalProperty(
103853
104648
  diagnostics,
@@ -103860,9 +104655,25 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103860
104655
  "enabled",
103861
104656
  "head_sampling_rate",
103862
104657
  "redact_query_string",
104658
+ "issues",
103863
104659
  "logs",
103864
104660
  "traces"
103865
104661
  ]) && isValid;
104662
+ if (val.issues !== void 0 && issuesIsObject) {
104663
+ isValid = validateOptionalProperty(
104664
+ diagnostics,
104665
+ `${field}.issues`,
104666
+ "enabled",
104667
+ val.issues.enabled,
104668
+ "boolean"
104669
+ ) && isValid;
104670
+ isValid = validateAdditionalProperties(
104671
+ diagnostics,
104672
+ `${field}.issues`,
104673
+ Object.keys(val.issues),
104674
+ ["enabled"]
104675
+ ) && isValid;
104676
+ }
103866
104677
  if (typeof val.logs === "object") {
103867
104678
  isValid = validateOptionalProperty(
103868
104679
  diagnostics,
@@ -104313,6 +105124,7 @@ var BINDING_LOCAL_SUPPORT = {
104313
105124
  service: "local-and-remote",
104314
105125
  // TODO: Miniflare currently ignores `remote: true` on queues, tracked in #13727.
104315
105126
  queue: "local-and-remote",
105127
+ flagship: "local-and-remote",
104316
105128
  vectorize: "remote",
104317
105129
  mtls_certificate: "remote",
104318
105130
  dispatch_namespace: "remote",
@@ -104322,7 +105134,6 @@ var BINDING_LOCAL_SUPPORT = {
104322
105134
  ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104323
105135
  media: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104324
105136
  artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104325
- flagship: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104326
105137
  vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104327
105138
  vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104328
105139
  agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
@@ -105322,13 +106133,13 @@ function printBindings(bindings, options) {
105322
106133
  }
105323
106134
  if (flagship.length > 0) {
105324
106135
  output.push(
105325
- ...flagship.map(({ binding, app_id }) => {
106136
+ ...flagship.map(({ binding, app_id, remote }) => {
105326
106137
  return {
105327
106138
  name: binding,
105328
106139
  type: getBindingTypeFriendlyName("flagship"),
105329
106140
  value: app_id,
105330
106141
  mode: getMode({
105331
- isSimulatedLocally: !context.remoteBindingsDisabled ? false : void 0
106142
+ isSimulatedLocally: context.remoteBindingsDisabled || !remote
105332
106143
  })
105333
106144
  };
105334
106145
  })
@@ -107692,13 +108503,131 @@ function getWorkerNameFromProject(projectPath) {
107692
108503
  }
107693
108504
  __name(getWorkerNameFromProject, "getWorkerNameFromProject");
107694
108505
  function toUrlPath(filePath) {
107695
- (0, import_node_console.assert)(
108506
+ (0, import_node_assert2.default)(
107696
108507
  !/^[a-z]:/i.test(filePath),
107697
108508
  "Tried to convert a Windows file path with a drive to a URL path."
107698
108509
  );
107699
108510
  return filePath.replace(/\\/g, "/");
107700
108511
  }
107701
108512
  __name(toUrlPath, "toUrlPath");
108513
+ var import_minimatch = __toESM2(require_minimatch());
108514
+ var DEFAULT_MIGRATIONS_DIR = "./migrations";
108515
+ function getD1MigrationFiles(options) {
108516
+ const migrationsDir = normalizeRelativePath(
108517
+ options.migrationsDir ?? DEFAULT_MIGRATIONS_DIR
108518
+ );
108519
+ const migrationsPattern = normalizeRelativePath(
108520
+ options.migrationsPattern ?? `${migrationsDir}/*.sql`
108521
+ );
108522
+ const dirRelativePattern = stripDirPrefix(migrationsPattern, migrationsDir);
108523
+ const walkRoot = import_node_path5.default.resolve(options.projectPath, migrationsDir);
108524
+ const names = listFilesRelative(
108525
+ walkRoot,
108526
+ new import_minimatch.Minimatch(dirRelativePattern, { dot: false })
108527
+ );
108528
+ return names.map((name3) => ({
108529
+ name: name3,
108530
+ filePath: import_node_path5.default.join(walkRoot, ...name3.split("/"))
108531
+ }));
108532
+ }
108533
+ __name(getD1MigrationFiles, "getD1MigrationFiles");
108534
+ function normalizeRelativePath(p2) {
108535
+ const forwardSlashed = p2.replace(/\\/g, "/");
108536
+ const normalized = import_node_path5.default.posix.normalize(forwardSlashed);
108537
+ if (normalized.endsWith("/")) {
108538
+ return normalized.slice(0, -1);
108539
+ }
108540
+ return normalized;
108541
+ }
108542
+ __name(normalizeRelativePath, "normalizeRelativePath");
108543
+ function stripDirPrefix(pattern, dir2) {
108544
+ if (dir2 === ".") {
108545
+ return pattern;
108546
+ }
108547
+ const prefix = `${dir2}/`;
108548
+ if (!pattern.startsWith(prefix)) {
108549
+ throw new Error(
108550
+ `Expected migrations pattern ${JSON.stringify(pattern)} to start with ${JSON.stringify(prefix)}`
108551
+ );
108552
+ }
108553
+ return pattern.slice(prefix.length);
108554
+ }
108555
+ __name(stripDirPrefix, "stripDirPrefix");
108556
+ function listFilesRelative(dir2, matcher) {
108557
+ const out = [];
108558
+ const stack = [{ abs: dir2, rel: "" }];
108559
+ while (stack.length > 0) {
108560
+ const { abs, rel } = stack.pop();
108561
+ let entries;
108562
+ try {
108563
+ entries = import_node_fs4.default.readdirSync(abs, { withFileTypes: true });
108564
+ } catch {
108565
+ continue;
108566
+ }
108567
+ for (const entry of entries) {
108568
+ const childRel = rel === "" ? entry.name : `${rel}/${entry.name}`;
108569
+ if (entry.isDirectory()) {
108570
+ if (matcher.match(
108571
+ childRel,
108572
+ true
108573
+ /* partial */
108574
+ )) {
108575
+ stack.push({ abs: import_node_path5.default.join(abs, entry.name), rel: childRel });
108576
+ }
108577
+ } else if (entry.isFile() && matcher.match(childRel)) {
108578
+ out.push(childRel);
108579
+ }
108580
+ }
108581
+ }
108582
+ return out.sort(compareMigrationPaths);
108583
+ }
108584
+ __name(listFilesRelative, "listFilesRelative");
108585
+ function compareMigrationPaths(a, b2) {
108586
+ const aSegments = a.split("/");
108587
+ const bSegments = b2.split("/");
108588
+ const shared = Math.min(aSegments.length, bSegments.length);
108589
+ for (let i = 0; i < shared; i++) {
108590
+ const aSegment = aSegments[i];
108591
+ const bSegment = bSegments[i];
108592
+ if (aSegment === void 0 || bSegment === void 0) {
108593
+ break;
108594
+ }
108595
+ const cmp = compareSegments(aSegment, bSegment);
108596
+ if (cmp !== 0) {
108597
+ return cmp;
108598
+ }
108599
+ }
108600
+ return aSegments.length - bSegments.length;
108601
+ }
108602
+ __name(compareMigrationPaths, "compareMigrationPaths");
108603
+ function compareSegments(a, b2) {
108604
+ const aNum = leadingMigrationNumber(a);
108605
+ const bNum = leadingMigrationNumber(b2);
108606
+ if (aNum !== bNum) {
108607
+ if (Number.isFinite(aNum) && Number.isFinite(bNum)) {
108608
+ return aNum - bNum;
108609
+ }
108610
+ if (Number.isFinite(aNum)) {
108611
+ return -1;
108612
+ }
108613
+ if (Number.isFinite(bNum)) {
108614
+ return 1;
108615
+ }
108616
+ }
108617
+ if (a < b2) {
108618
+ return -1;
108619
+ }
108620
+ if (a > b2) {
108621
+ return 1;
108622
+ }
108623
+ return 0;
108624
+ }
108625
+ __name(compareSegments, "compareSegments");
108626
+ function leadingMigrationNumber(relativePath) {
108627
+ const firstSegment = relativePath.split("/")[0];
108628
+ return parseInt(firstSegment.split("_")[0], 10);
108629
+ }
108630
+ __name(leadingMigrationNumber, "leadingMigrationNumber");
107702
108631
 
107703
108632
  // ../cli/dist/gitignore.mjs
107704
108633
  function maybeAppendWranglerToGitIgnoreLikeFile(filePath) {
@@ -112590,7 +113519,7 @@ var Yargs = YargsFactory(esm_default2);
112590
113519
  var yargs_default = Yargs;
112591
113520
 
112592
113521
  // package.json
112593
- var version2 = "2.72.8";
113522
+ var version2 = "2.72.10";
112594
113523
 
112595
113524
  // src/metrics.ts
112596
113525
  var import_node_async_hooks = require("node:async_hooks");
@@ -115185,13 +116114,13 @@ var package_default = {
115185
116114
  "create-hono": "0.19.5",
115186
116115
  "create-next-app": "16.3.5",
115187
116116
  "create-qwik": "1.20.0",
115188
- "create-react-router": "8.3.1",
116117
+ "create-react-router": "8.4.0",
115189
116118
  "create-rwsdk": "3.1.3",
115190
116119
  "create-solid": "0.12.0",
115191
116120
  "create-vike": "0.0.681",
115192
- "create-vinext-app": "1.0.0-beta.2",
116121
+ "create-vinext-app": "1.0.0-beta.3",
115193
116122
  "create-vite": "9.2.1",
115194
- "create-vue": "3.23.0",
116123
+ "create-vue": "3.24.0",
115195
116124
  "create-waku": "0.12.5-1.0.0-alpha.10-0",
115196
116125
  gatsby: "5.16.1",
115197
116126
  nuxi: "3.37.0",
@@ -117803,7 +118732,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
117803
118732
  var import_node_assert7 = __toESM(require("node:assert"));
117804
118733
 
117805
118734
  // ../wrangler/package.json
117806
- var version3 = "4.132.0";
118735
+ var version3 = "4.136.0";
117807
118736
 
117808
118737
  // src/git.ts
117809
118738
  var offerGit = async (ctx) => {