create-cloudflare 2.72.9 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +989 -63
  2. package/package.json +6 -6
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-YZWVNJ5I.mjs
80415
+ // ../workers-utils/dist/chunk-4PNP2TCS.mjs
80417
80416
  init_chunk_Q72B4Q5Z();
80418
- var DEFAULT_COMPAT_DATE = "2026-09-16";
80417
+ var DEFAULT_COMPAT_DATE = "2026-09-21";
80419
80418
  function assertNever(_value) {
80420
80419
  }
80421
80420
  __name(assertNever, "assertNever");
@@ -81809,11 +81808,11 @@ var require_command_exists = __commonJS2({
81809
81808
  "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports$1, module2) {
81810
81809
  var exec4 = __require("child_process").exec;
81811
81810
  var execSync = __require("child_process").execSync;
81812
- var fs32 = __require("fs");
81813
- var path52 = __require("path");
81814
- var access = fs32.access;
81815
- var accessSync2 = fs32.accessSync;
81816
- 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;
81817
81816
  var isUsingWindows = process.platform == "win32";
81818
81817
  var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback) {
81819
81818
  access(
@@ -81914,8 +81913,8 @@ var require_command_exists = __commonJS2({
81914
81913
  cleanInput = /* @__PURE__ */ __name(function(s) {
81915
81914
  var isPathName = /[\\]/.test(s);
81916
81915
  if (isPathName) {
81917
- var dirname42 = '"' + path52.dirname(s) + '"';
81918
- var basename22 = '"' + path52.basename(s) + '"';
81916
+ var dirname42 = '"' + path62.dirname(s) + '"';
81917
+ var basename22 = '"' + path62.basename(s) + '"';
81919
81918
  return dirname42 + ":" + basename22;
81920
81919
  }
81921
81920
  return '"' + s + '"';
@@ -82189,9 +82188,9 @@ var require_strip_json_comments = __commonJS2({
82189
82188
  });
82190
82189
  var require_utils2 = __commonJS2({
82191
82190
  "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports$1) {
82192
- var fs32 = __require("fs");
82191
+ var fs42 = __require("fs");
82193
82192
  var ini = require_ini();
82194
- var path52 = __require("path");
82193
+ var path62 = __require("path");
82195
82194
  var stripJsonComments = require_strip_json_comments();
82196
82195
  var parse32 = exports$1.parse = function(content) {
82197
82196
  if (/^\s*{/.test(content))
@@ -82205,9 +82204,9 @@ var require_utils2 = __commonJS2({
82205
82204
  for (var i in args)
82206
82205
  if ("string" !== typeof args[i])
82207
82206
  return;
82208
- var file3 = path52.join.apply(null, args);
82207
+ var file3 = path62.join.apply(null, args);
82209
82208
  try {
82210
- return fs32.readFileSync(file3, "utf-8");
82209
+ return fs42.readFileSync(file3, "utf-8");
82211
82210
  } catch (err) {
82212
82211
  return;
82213
82212
  }
@@ -82242,15 +82241,15 @@ var require_utils2 = __commonJS2({
82242
82241
  return obj;
82243
82242
  };
82244
82243
  exports$1.find = function() {
82245
- var rel = path52.join.apply(null, [].slice.call(arguments));
82244
+ var rel = path62.join.apply(null, [].slice.call(arguments));
82246
82245
  function find2(start, rel2) {
82247
- var file3 = path52.join(start, rel2);
82246
+ var file3 = path62.join(start, rel2);
82248
82247
  try {
82249
- fs32.statSync(file3);
82248
+ fs42.statSync(file3);
82250
82249
  return file3;
82251
82250
  } catch (err) {
82252
- if (path52.dirname(start) !== start)
82253
- return find2(path52.dirname(start), rel2);
82251
+ if (path62.dirname(start) !== start)
82252
+ return find2(path62.dirname(start), rel2);
82254
82253
  }
82255
82254
  }
82256
82255
  __name(find2, "find");
@@ -82726,8 +82725,8 @@ var require_registry_auth_token = __commonJS2({
82726
82725
  return void 0;
82727
82726
  }
82728
82727
  __name(getLegacyAuthInfo, "getLegacyAuthInfo");
82729
- function normalizePath2(path52) {
82730
- return path52[path52.length - 1] === "/" ? path52 : path52 + "/";
82728
+ function normalizePath2(path62) {
82729
+ return path62[path62.length - 1] === "/" ? path62 : path62 + "/";
82731
82730
  }
82732
82731
  __name(normalizePath2, "normalizePath");
82733
82732
  function getAuthInfoForUrl(regUrl, npmrc) {
@@ -82776,19 +82775,19 @@ var require_update_check = __commonJS2({
82776
82775
  "../../node_modules/.pnpm/update-check@1.5.4/node_modules/update-check/index.js"(exports$1, module2) {
82777
82776
  var { URL: URL2 } = __require("url");
82778
82777
  var { join: join32 } = __require("path");
82779
- var fs32 = __require("fs");
82778
+ var fs42 = __require("fs");
82780
82779
  var { promisify: promisify8 } = __require("util");
82781
82780
  var { tmpdir: tmpdir4 } = __require("os");
82782
82781
  var registryUrl = require_registry_url();
82783
- var writeFile4 = promisify8(fs32.writeFile);
82784
- var mkdir = promisify8(fs32.mkdir);
82785
- var readFile2 = promisify8(fs32.readFile);
82782
+ var writeFile4 = promisify8(fs42.writeFile);
82783
+ var mkdir = promisify8(fs42.mkdir);
82784
+ var readFile2 = promisify8(fs42.readFile);
82786
82785
  var compareVersions = /* @__PURE__ */ __name((a, b2) => a.localeCompare(b2, "en-US", { numeric: true }), "compareVersions");
82787
82786
  var encode3 = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/^%40/, "@"), "encode");
82788
82787
  var getFile = /* @__PURE__ */ __name(async (details, distTag) => {
82789
82788
  const rootDir = tmpdir4();
82790
82789
  const subDir = join32(rootDir, "update-check");
82791
- if (!fs32.existsSync(subDir)) {
82790
+ if (!fs42.existsSync(subDir)) {
82792
82791
  await mkdir(subDir);
82793
82792
  }
82794
82793
  let name3 = `${details.name}-${distTag}.json`;
@@ -82798,7 +82797,7 @@ var require_update_check = __commonJS2({
82798
82797
  return join32(subDir, name3);
82799
82798
  }, "getFile");
82800
82799
  var evaluateCache = /* @__PURE__ */ __name(async (file22, time3, interval) => {
82801
- if (fs32.existsSync(file22)) {
82800
+ if (fs42.existsSync(file22)) {
82802
82801
  const content = await readFile2(file22, "utf8");
82803
82802
  const { lastUpdate, latest } = JSON.parse(content);
82804
82803
  const nextCheck = lastUpdate + interval;
@@ -82924,6 +82923,788 @@ var require_update_check = __commonJS2({
82924
82923
  };
82925
82924
  }
82926
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
+ });
82927
83708
  var ARTIFACTS_EVENT_TYPES = [
82928
83709
  "cf.artifacts.repo.created",
82929
83710
  "cf.artifacts.repo.deleted",
@@ -83855,10 +84636,10 @@ function cloneDef(schema) {
83855
84636
  return mergeDefs(schema._zod.def);
83856
84637
  }
83857
84638
  __name(cloneDef, "cloneDef");
83858
- function getElementAtPath(obj, path52) {
83859
- if (!path52)
84639
+ function getElementAtPath(obj, path62) {
84640
+ if (!path62)
83860
84641
  return obj;
83861
- return path52.reduce((acc, key) => acc?.[key], obj);
84642
+ return path62.reduce((acc, key) => acc?.[key], obj);
83862
84643
  }
83863
84644
  __name(getElementAtPath, "getElementAtPath");
83864
84645
  function promiseAllObject(promisesObj) {
@@ -84291,11 +85072,11 @@ function explicitlyAborted(x, startIndex = 0) {
84291
85072
  return false;
84292
85073
  }
84293
85074
  __name(explicitlyAborted, "explicitlyAborted");
84294
- function prefixIssues(path52, issues) {
85075
+ function prefixIssues(path62, issues) {
84295
85076
  return issues.map((iss) => {
84296
85077
  var _a32;
84297
85078
  (_a32 = iss).path ?? (_a32.path = []);
84298
- iss.path.unshift(path52);
85079
+ iss.path.unshift(path62);
84299
85080
  return iss;
84300
85081
  });
84301
85082
  }
@@ -84458,16 +85239,16 @@ function flattenError(error51, mapper = (issue2) => issue2.message) {
84458
85239
  __name(flattenError, "flattenError");
84459
85240
  function formatError(error51, mapper = (issue2) => issue2.message) {
84460
85241
  const fieldErrors = { _errors: [] };
84461
- const processError = /* @__PURE__ */ __name((error52, path52 = []) => {
85242
+ const processError = /* @__PURE__ */ __name((error52, path62 = []) => {
84462
85243
  for (const issue2 of error52.issues) {
84463
85244
  if (issue2.code === "invalid_union" && issue2.errors.length) {
84464
- issue2.errors.map((issues) => processError({ issues }, [...path52, ...issue2.path]));
85245
+ issue2.errors.map((issues) => processError({ issues }, [...path62, ...issue2.path]));
84465
85246
  } else if (issue2.code === "invalid_key") {
84466
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85247
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84467
85248
  } else if (issue2.code === "invalid_element") {
84468
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85249
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84469
85250
  } else {
84470
- const fullpath = [...path52, ...issue2.path];
85251
+ const fullpath = [...path62, ...issue2.path];
84471
85252
  if (fullpath.length === 0) {
84472
85253
  fieldErrors._errors.push(mapper(issue2));
84473
85254
  } else {
@@ -84495,17 +85276,17 @@ function formatError(error51, mapper = (issue2) => issue2.message) {
84495
85276
  __name(formatError, "formatError");
84496
85277
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
84497
85278
  const result = { errors: [] };
84498
- const processError = /* @__PURE__ */ __name((error52, path52 = []) => {
85279
+ const processError = /* @__PURE__ */ __name((error52, path62 = []) => {
84499
85280
  var _a32, _b2;
84500
85281
  for (const issue2 of error52.issues) {
84501
85282
  if (issue2.code === "invalid_union" && issue2.errors.length) {
84502
- issue2.errors.map((issues) => processError({ issues }, [...path52, ...issue2.path]));
85283
+ issue2.errors.map((issues) => processError({ issues }, [...path62, ...issue2.path]));
84503
85284
  } else if (issue2.code === "invalid_key") {
84504
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85285
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84505
85286
  } else if (issue2.code === "invalid_element") {
84506
- processError({ issues: issue2.issues }, [...path52, ...issue2.path]);
85287
+ processError({ issues: issue2.issues }, [...path62, ...issue2.path]);
84507
85288
  } else {
84508
- const fullpath = [...path52, ...issue2.path];
85289
+ const fullpath = [...path62, ...issue2.path];
84509
85290
  if (fullpath.length === 0) {
84510
85291
  result.errors.push(mapper(issue2));
84511
85292
  continue;
@@ -84538,8 +85319,8 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
84538
85319
  __name(treeifyError, "treeifyError");
84539
85320
  function toDotPath(_path) {
84540
85321
  const segs = [];
84541
- const path52 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
84542
- for (const seg of path52) {
85322
+ const path62 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
85323
+ for (const seg of path62) {
84543
85324
  if (typeof seg === "number")
84544
85325
  segs.push(`[${seg}]`);
84545
85326
  else if (typeof seg === "symbol")
@@ -97452,13 +98233,13 @@ function resolveRef(ref, ctx) {
97452
98233
  if (!ref.startsWith("#")) {
97453
98234
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
97454
98235
  }
97455
- const path52 = ref.slice(1).split("/").filter(Boolean);
97456
- if (path52.length === 0) {
98236
+ const path62 = ref.slice(1).split("/").filter(Boolean);
98237
+ if (path62.length === 0) {
97457
98238
  return ctx.rootSchema;
97458
98239
  }
97459
98240
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
97460
- if (path52[0] === defsKey) {
97461
- const key = path52[1];
98241
+ if (path62[0] === defsKey) {
98242
+ const key = path62[1];
97462
98243
  if (!key || !ctx.defs[key]) {
97463
98244
  throw new Error(`Reference not found: ${ref}`);
97464
98245
  }
@@ -98020,9 +98801,9 @@ Please add "${field}" to "env.${envName}".`
98020
98801
  return rawEnv[field] ?? defaultValue;
98021
98802
  }
98022
98803
  __name(notInheritable, "notInheritable");
98023
- function unwindPropertyPath(root, path52) {
98804
+ function unwindPropertyPath(root, path62) {
98024
98805
  let container = root;
98025
- const parts = path52.split(".");
98806
+ const parts = path62.split(".");
98026
98807
  for (let i = 0; i < parts.length - 1; i++) {
98027
98808
  if (!hasProperty(container, parts[i])) {
98028
98809
  return;
@@ -102243,7 +103024,6 @@ var validateBindingsHaveUniqueNames = /* @__PURE__ */ __name((diagnostics, confi
102243
103024
  ])
102244
103025
  );
102245
103026
  bindingsGroupedByType["Secret"] = config210.secrets?.required ?? [];
102246
- bindingsGroupedByType["Container images"] = [CONTAINER_IMAGES_BINDING];
102247
103027
  const bindingsGroupedByName = {};
102248
103028
  for (const bindingType in bindingsGroupedByType) {
102249
103029
  const bindingNames = bindingsGroupedByType[bindingType];
@@ -103835,6 +104615,11 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103835
104615
  key: "traces.enabled",
103836
104616
  value: val.traces?.enabled,
103837
104617
  type: "boolean"
104618
+ },
104619
+ {
104620
+ key: "issues.enabled",
104621
+ value: val.issues?.enabled,
104622
+ type: "boolean"
103838
104623
  }
103839
104624
  ]) && isValid;
103840
104625
  isValid = validateOptionalProperty(
@@ -103851,6 +104636,13 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103851
104636
  val.redact_query_string,
103852
104637
  "boolean"
103853
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
+ }
103854
104646
  isValid = validateOptionalProperty(diagnostics, field, "logs", val.logs, "object") && isValid;
103855
104647
  isValid = validateOptionalProperty(
103856
104648
  diagnostics,
@@ -103863,9 +104655,25 @@ var validateObservability = /* @__PURE__ */ __name((diagnostics, field, value) =
103863
104655
  "enabled",
103864
104656
  "head_sampling_rate",
103865
104657
  "redact_query_string",
104658
+ "issues",
103866
104659
  "logs",
103867
104660
  "traces"
103868
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
+ }
103869
104677
  if (typeof val.logs === "object") {
103870
104678
  isValid = validateOptionalProperty(
103871
104679
  diagnostics,
@@ -104316,6 +105124,7 @@ var BINDING_LOCAL_SUPPORT = {
104316
105124
  service: "local-and-remote",
104317
105125
  // TODO: Miniflare currently ignores `remote: true` on queues, tracked in #13727.
104318
105126
  queue: "local-and-remote",
105127
+ flagship: "local-and-remote",
104319
105128
  vectorize: "remote",
104320
105129
  mtls_certificate: "remote",
104321
105130
  dispatch_namespace: "remote",
@@ -104325,7 +105134,6 @@ var BINDING_LOCAL_SUPPORT = {
104325
105134
  ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104326
105135
  media: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104327
105136
  artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104328
- flagship: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104329
105137
  vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104330
105138
  vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
104331
105139
  agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
@@ -105325,13 +106133,13 @@ function printBindings(bindings, options) {
105325
106133
  }
105326
106134
  if (flagship.length > 0) {
105327
106135
  output.push(
105328
- ...flagship.map(({ binding, app_id }) => {
106136
+ ...flagship.map(({ binding, app_id, remote }) => {
105329
106137
  return {
105330
106138
  name: binding,
105331
106139
  type: getBindingTypeFriendlyName("flagship"),
105332
106140
  value: app_id,
105333
106141
  mode: getMode({
105334
- isSimulatedLocally: !context.remoteBindingsDisabled ? false : void 0
106142
+ isSimulatedLocally: context.remoteBindingsDisabled || !remote
105335
106143
  })
105336
106144
  };
105337
106145
  })
@@ -107702,6 +108510,124 @@ function toUrlPath(filePath) {
107702
108510
  return filePath.replace(/\\/g, "/");
107703
108511
  }
107704
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");
107705
108631
 
107706
108632
  // ../cli/dist/gitignore.mjs
107707
108633
  function maybeAppendWranglerToGitIgnoreLikeFile(filePath) {
@@ -112593,7 +113519,7 @@ var Yargs = YargsFactory(esm_default2);
112593
113519
  var yargs_default = Yargs;
112594
113520
 
112595
113521
  // package.json
112596
- var version2 = "2.72.9";
113522
+ var version2 = "2.72.10";
112597
113523
 
112598
113524
  // src/metrics.ts
112599
113525
  var import_node_async_hooks = require("node:async_hooks");
@@ -115188,13 +116114,13 @@ var package_default = {
115188
116114
  "create-hono": "0.19.5",
115189
116115
  "create-next-app": "16.3.5",
115190
116116
  "create-qwik": "1.20.0",
115191
- "create-react-router": "8.3.1",
116117
+ "create-react-router": "8.4.0",
115192
116118
  "create-rwsdk": "3.1.3",
115193
116119
  "create-solid": "0.12.0",
115194
116120
  "create-vike": "0.0.681",
115195
- "create-vinext-app": "1.0.0-beta.2",
116121
+ "create-vinext-app": "1.0.0-beta.3",
115196
116122
  "create-vite": "9.2.1",
115197
- "create-vue": "3.23.0",
116123
+ "create-vue": "3.24.0",
115198
116124
  "create-waku": "0.12.5-1.0.0-alpha.10-0",
115199
116125
  gatsby: "5.16.1",
115200
116126
  nuxi: "3.37.0",
@@ -117806,7 +118732,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
117806
118732
  var import_node_assert7 = __toESM(require("node:assert"));
117807
118733
 
117808
118734
  // ../wrangler/package.json
117809
- var version3 = "4.133.0";
118735
+ var version3 = "4.136.0";
117810
118736
 
117811
118737
  // src/git.ts
117812
118738
  var offerGit = async (ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "2.72.9",
3
+ "version": "2.72.10",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -31,7 +31,7 @@
31
31
  "@babel/parser": "^7.21.3",
32
32
  "@babel/types": "^7.21.4",
33
33
  "@clack/prompts": "^1.2.0",
34
- "@cloudflare/workers-types": "^5.20260916.1",
34
+ "@cloudflare/workers-types": "^5.20260921.1",
35
35
  "@types/command-exists": "^1.2.0",
36
36
  "@types/cross-spawn": "^6.0.2",
37
37
  "@types/deepmerge": "^2.2.0",
@@ -70,13 +70,13 @@
70
70
  "which-pm-runs": "^1.1.0",
71
71
  "wrap-ansi": "^9.0.0",
72
72
  "yargs": "^17.7.2",
73
- "@cloudflare/cli-shared-helpers": "0.1.32",
73
+ "@cloudflare/cli-shared-helpers": "0.1.35",
74
74
  "@cloudflare/mock-npm-registry": "0.0.0",
75
75
  "@cloudflare/shared-ast-primitives": "1.1.0",
76
- "@cloudflare/vite-plugin": "1.54.11",
76
+ "@cloudflare/vite-plugin": "1.57.0",
77
77
  "@cloudflare/workers-tsconfig": "0.0.0",
78
- "@cloudflare/workers-utils": "0.39.1",
79
- "wrangler": "4.133.0"
78
+ "@cloudflare/workers-utils": "0.41.0",
79
+ "wrangler": "4.136.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.0.0"