create-cloudflare 2.68.3 → 2.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -13533,7 +13533,7 @@ var require_snapshot_recorder = __commonJS({
13533
13533
  "use strict";
13534
13534
  var { writeFile: writeFile4, readFile: readFile2, mkdir } = require("node:fs/promises");
13535
13535
  var { dirname: dirname7, resolve: resolve12 } = require("node:path");
13536
- var { setTimeout: setTimeout5, clearTimeout: clearTimeout2 } = require("node:timers");
13536
+ var { setTimeout: setTimeout6, clearTimeout: clearTimeout2 } = require("node:timers");
13537
13537
  var { InvalidArgumentError, UndiciError } = require_errors();
13538
13538
  var { hashId, isUrlExcludedFactory, normalizeHeaders, createHeaderFilters } = require_snapshot_utils();
13539
13539
  function formatRequestKey(opts, headerFilters, matchOptions = {}) {
@@ -13867,7 +13867,7 @@ var require_snapshot_recorder = __commonJS({
13867
13867
  * Schedules a flush (debounced to avoid excessive writes)
13868
13868
  */
13869
13869
  #scheduleFlush() {
13870
- this.#flushTimeout = setTimeout5(() => {
13870
+ this.#flushTimeout = setTimeout6(() => {
13871
13871
  this.saveSnapshots().catch(() => {
13872
13872
  });
13873
13873
  if (this.#autoFlush) {
@@ -25398,7 +25398,7 @@ var require_onetime = __commonJS({
25398
25398
  });
25399
25399
 
25400
25400
  // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
25401
- var require_signals = __commonJS({
25401
+ var require_signals2 = __commonJS({
25402
25402
  "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
25403
25403
  module2.exports = [
25404
25404
  "SIGABRT",
@@ -25435,7 +25435,7 @@ var require_signals = __commonJS({
25435
25435
  });
25436
25436
 
25437
25437
  // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
25438
- var require_signal_exit = __commonJS({
25438
+ var require_signal_exit2 = __commonJS({
25439
25439
  "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
25440
25440
  var process13 = global.process;
25441
25441
  var processOk = function(process14) {
@@ -25448,7 +25448,7 @@ var require_signal_exit = __commonJS({
25448
25448
  };
25449
25449
  } else {
25450
25450
  assert7 = require("assert");
25451
- signals = require_signals();
25451
+ signals = require_signals2();
25452
25452
  isWin = /^win/i.test(process13.platform);
25453
25453
  EE = require("events");
25454
25454
  if (typeof EE !== "function") {
@@ -52043,7 +52043,7 @@ var require_tiny_invariant_cjs = __commonJS({
52043
52043
  });
52044
52044
 
52045
52045
  // ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js
52046
- var require_base64 = __commonJS({
52046
+ var require_base642 = __commonJS({
52047
52047
  "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(exports2) {
52048
52048
  var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
52049
52049
  exports2.encode = function(number) {
@@ -52086,7 +52086,7 @@ var require_base64 = __commonJS({
52086
52086
  // ../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js
52087
52087
  var require_base64_vlq = __commonJS({
52088
52088
  "../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(exports2) {
52089
- var base64 = require_base64();
52089
+ var base64 = require_base642();
52090
52090
  var VLQ_BASE_SHIFT = 5;
52091
52091
  var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
52092
52092
  var VLQ_BASE_MASK = VLQ_BASE - 1;
@@ -74459,7 +74459,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
74459
74459
  mod
74460
74460
  ));
74461
74461
 
74462
- // ../workers-utils/dist/chunk-BLWXWFJK.mjs
74462
+ // ../workers-utils/dist/chunk-AKFE3ND4.mjs
74463
74463
  var import_node_assert = __toESM(require("node:assert"), 1);
74464
74464
  function isCompatDate(str) {
74465
74465
  return /^\d{4}-\d{2}-\d{2}$/.test(str);
@@ -74755,6 +74755,23 @@ function mapWorkerMetadataBindings(bindings) {
74755
74755
  }
74756
74756
  ];
74757
74757
  break;
74758
+ case "web_search":
74759
+ {
74760
+ configObj.web_search = {
74761
+ binding: binding.name
74762
+ };
74763
+ }
74764
+ break;
74765
+ case "agent_memory": {
74766
+ configObj.agent_memory = [
74767
+ ...configObj.agent_memory ?? [],
74768
+ {
74769
+ binding: binding.name,
74770
+ namespace: binding.namespace
74771
+ }
74772
+ ];
74773
+ break;
74774
+ }
74758
74775
  case "hyperdrive":
74759
74776
  configObj.hyperdrive = [
74760
74777
  ...configObj.hyperdrive ?? [],
@@ -74778,7 +74795,9 @@ function mapWorkerMetadataBindings(bindings) {
74778
74795
  ...configObj.pipelines ?? [],
74779
74796
  {
74780
74797
  binding: binding.name,
74781
- pipeline: binding.pipeline
74798
+ // NOTE: stream is the primary field, but we also support pipeline for backward compatibility
74799
+ ...binding.stream && { stream: binding.stream },
74800
+ ...binding.pipeline && { pipeline: binding.pipeline }
74782
74801
  }
74783
74802
  ];
74784
74803
  break;
@@ -74957,55 +74976,6 @@ function constructWranglerConfig(workerOrWorkers) {
74957
74976
  }
74958
74977
  __name(constructWranglerConfig, "constructWranglerConfig");
74959
74978
 
74960
- // ../workers-utils/dist/chunk-O4YGOZSW.mjs
74961
- var MetricsRegistry = class {
74962
- static {
74963
- __name(this, "MetricsRegistry");
74964
- }
74965
- counters = [];
74966
- /**
74967
- * Create and register a new counter metric.
74968
- *
74969
- * @param name - The metric name (e.g. "service_request_total")
74970
- * @param help - A human-readable description of the metric
74971
- * @returns A Counter that can be incremented
74972
- */
74973
- createCounter(name3, help) {
74974
- const entry = { name: name3, help, value: 0 };
74975
- this.counters.push(entry);
74976
- return {
74977
- inc: /* @__PURE__ */ __name(() => {
74978
- entry.value++;
74979
- }, "inc"),
74980
- add: /* @__PURE__ */ __name((amount) => {
74981
- if (amount < 0) {
74982
- throw new Error("Counter value cannot decrease");
74983
- }
74984
- entry.value += amount;
74985
- }, "add")
74986
- };
74987
- }
74988
- /**
74989
- * Serialize all registered metrics in Prometheus text exposition format.
74990
- *
74991
- * @see https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format
74992
- */
74993
- metrics() {
74994
- return this.counters.map((c2) => {
74995
- let result = "";
74996
- if (c2.help.length > 0) {
74997
- result += `# HELP ${c2.name} ${c2.help}
74998
- `;
74999
- }
75000
- result += `# TYPE ${c2.name} counter
75001
- `;
75002
- result += `${c2.name} ${c2.value}
75003
- `;
75004
- return result;
75005
- }).join("");
75006
- }
75007
- };
75008
-
75009
74979
  // ../workers-utils/dist/chunk-GMTGAG26.mjs
75010
74980
  var import_node_fs = __toESM(require("node:fs"), 1);
75011
74981
  var import_node_path = __toESM(require("node:path"), 1);
@@ -77869,6 +77839,7 @@ var import_node_os2 = __toESM(require("node:os"), 1);
77869
77839
  var import_node_child_process = require("node:child_process");
77870
77840
  var import_node_crypto = require("node:crypto");
77871
77841
  var import_undici = __toESM(require_undici(), 1);
77842
+ var timersPromises = __toESM(require("node:timers/promises"), 1);
77872
77843
  var require_XDGAppPaths = __commonJS2({
77873
77844
  "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js"(exports2) {
77874
77845
  exports2.__esModule = true;
@@ -77890,7 +77861,7 @@ var require_XDGAppPaths = __commonJS2({
77890
77861
  }
77891
77862
  __name(typeOf, "typeOf");
77892
77863
  function Adapt(adapter_) {
77893
- var meta = adapter_.meta, path42 = adapter_.path, xdg = adapter_.xdg;
77864
+ var meta = adapter_.meta, path52 = adapter_.path, xdg = adapter_.xdg;
77894
77865
  var XDGAppPaths_ = /* @__PURE__ */ (function() {
77895
77866
  function XDGAppPaths_2(options_) {
77896
77867
  if (options_ === void 0) {
@@ -77913,7 +77884,7 @@ var require_XDGAppPaths = __commonJS2({
77913
77884
  meta.mainFilename()
77914
77885
  ];
77915
77886
  var nameFallback = "$eval";
77916
- var name3 = path42.parse(((_c2 = namePriorityList.find(function(e2) {
77887
+ var name3 = path52.parse(((_c2 = namePriorityList.find(function(e2) {
77917
77888
  return isString2(e2);
77918
77889
  })) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
77919
77890
  XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
@@ -77934,28 +77905,28 @@ var require_XDGAppPaths = __commonJS2({
77934
77905
  }
77935
77906
  __name(finalPathSegment, "finalPathSegment");
77936
77907
  XDGAppPaths.cache = /* @__PURE__ */ __name(function cache(dirOptions) {
77937
- return path42.join(xdg.cache(), finalPathSegment(dirOptions));
77908
+ return path52.join(xdg.cache(), finalPathSegment(dirOptions));
77938
77909
  }, "cache");
77939
77910
  XDGAppPaths.config = /* @__PURE__ */ __name(function config49(dirOptions) {
77940
- return path42.join(xdg.config(), finalPathSegment(dirOptions));
77911
+ return path52.join(xdg.config(), finalPathSegment(dirOptions));
77941
77912
  }, "config");
77942
77913
  XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
77943
- return path42.join(xdg.data(), finalPathSegment(dirOptions));
77914
+ return path52.join(xdg.data(), finalPathSegment(dirOptions));
77944
77915
  }, "data");
77945
77916
  XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
77946
- return xdg.runtime() ? path42.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
77917
+ return xdg.runtime() ? path52.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
77947
77918
  }, "runtime");
77948
77919
  XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
77949
- return path42.join(xdg.state(), finalPathSegment(dirOptions));
77920
+ return path52.join(xdg.state(), finalPathSegment(dirOptions));
77950
77921
  }, "state");
77951
77922
  XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
77952
77923
  return xdg.configDirs().map(function(s) {
77953
- return path42.join(s, finalPathSegment(dirOptions));
77924
+ return path52.join(s, finalPathSegment(dirOptions));
77954
77925
  });
77955
77926
  }, "configDirs");
77956
77927
  XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
77957
77928
  return xdg.dataDirs().map(function(s) {
77958
- return path42.join(s, finalPathSegment(dirOptions));
77929
+ return path52.join(s, finalPathSegment(dirOptions));
77959
77930
  });
77960
77931
  }, "dataDirs");
77961
77932
  return XDGAppPaths;
@@ -77979,7 +77950,7 @@ var require_XDG = __commonJS2({
77979
77950
  exports2.__esModule = true;
77980
77951
  exports2.Adapt = void 0;
77981
77952
  function Adapt(adapter_) {
77982
- var env3 = adapter_.env, osPaths = adapter_.osPaths, path42 = adapter_.path;
77953
+ var env3 = adapter_.env, osPaths = adapter_.osPaths, path52 = adapter_.path;
77983
77954
  var isMacOS = /^darwin$/i.test(adapter_.process.platform);
77984
77955
  var isWinOS = /^win/i.test(adapter_.process.platform);
77985
77956
  function baseDir() {
@@ -77987,7 +77958,7 @@ var require_XDG = __commonJS2({
77987
77958
  }
77988
77959
  __name(baseDir, "baseDir");
77989
77960
  function valOrPath(val, pathSegments) {
77990
- return val || path42.join.apply(path42, pathSegments);
77961
+ return val || path52.join.apply(path52, pathSegments);
77991
77962
  }
77992
77963
  __name(valOrPath, "valOrPath");
77993
77964
  var linux = /* @__PURE__ */ __name(function() {
@@ -78066,11 +78037,11 @@ var require_XDG = __commonJS2({
78066
78037
  XDG.state = extension.state;
78067
78038
  XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
78068
78039
  var pathList = env3.get("XDG_CONFIG_DIRS");
78069
- return __spreadArray2([extension.config()], pathList ? pathList.split(path42.delimiter) : []);
78040
+ return __spreadArray2([extension.config()], pathList ? pathList.split(path52.delimiter) : []);
78070
78041
  }, "configDirs");
78071
78042
  XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
78072
78043
  var pathList = env3.get("XDG_DATA_DIRS");
78073
- return __spreadArray2([extension.data()], pathList ? pathList.split(path42.delimiter) : []);
78044
+ return __spreadArray2([extension.data()], pathList ? pathList.split(path52.delimiter) : []);
78074
78045
  }, "dataDirs");
78075
78046
  return XDG;
78076
78047
  }
@@ -78097,7 +78068,7 @@ var require_OSPaths = __commonJS2({
78097
78068
  }
78098
78069
  __name(isEmpty, "isEmpty");
78099
78070
  function Adapt(adapter_) {
78100
- var env3 = adapter_.env, os22 = adapter_.os, path42 = adapter_.path;
78071
+ var env3 = adapter_.env, os22 = adapter_.os, path52 = adapter_.path;
78101
78072
  var isWinOS = /^win/i.test(adapter_.process.platform);
78102
78073
  function normalizePath(path_) {
78103
78074
  return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
@@ -78112,7 +78083,7 @@ var require_OSPaths = __commonJS2({
78112
78083
  typeof os22.homedir === "function" ? os22.homedir() : void 0,
78113
78084
  env3.get("USERPROFILE"),
78114
78085
  env3.get("HOME"),
78115
- env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path42.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
78086
+ env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path52.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
78116
78087
  ];
78117
78088
  return normalizePath(priorityList.find(function(v) {
78118
78089
  return !isEmpty(v);
@@ -78123,7 +78094,7 @@ var require_OSPaths = __commonJS2({
78123
78094
  __name(home, "home");
78124
78095
  function temp() {
78125
78096
  function joinPathToBase(base, segments) {
78126
- return base ? path42.join.apply(path42, __spreadArray2([base], segments)) : void 0;
78097
+ return base ? path52.join.apply(path52, __spreadArray2([base], segments)) : void 0;
78127
78098
  }
78128
78099
  __name(joinPathToBase, "joinPathToBase");
78129
78100
  function posix() {
@@ -78226,7 +78197,7 @@ var require_node = __commonJS2({
78226
78197
  exports2.__esModule = true;
78227
78198
  exports2.adapter = void 0;
78228
78199
  var os22 = __importStar2(__require("os"));
78229
- var path42 = __importStar2(__require("path"));
78200
+ var path52 = __importStar2(__require("path"));
78230
78201
  exports2.adapter = {
78231
78202
  atImportPermissions: { env: true },
78232
78203
  env: {
@@ -78235,7 +78206,7 @@ var require_node = __commonJS2({
78235
78206
  }, "get")
78236
78207
  },
78237
78208
  os: os22,
78238
- path: path42,
78209
+ path: path52,
78239
78210
  process
78240
78211
  };
78241
78212
  }
@@ -78277,7 +78248,7 @@ var require_node2 = __commonJS2({
78277
78248
  };
78278
78249
  exports2.__esModule = true;
78279
78250
  exports2.adapter = void 0;
78280
- var path42 = __importStar2(__require("path"));
78251
+ var path52 = __importStar2(__require("path"));
78281
78252
  var os_paths_1 = __importDefault2(require_mod_cjs());
78282
78253
  exports2.adapter = {
78283
78254
  atImportPermissions: { env: true },
@@ -78287,7 +78258,7 @@ var require_node2 = __commonJS2({
78287
78258
  }, "get")
78288
78259
  },
78289
78260
  osPaths: os_paths_1["default"],
78290
- path: path42,
78261
+ path: path52,
78291
78262
  process
78292
78263
  };
78293
78264
  }
@@ -78329,7 +78300,7 @@ var require_node3 = __commonJS2({
78329
78300
  };
78330
78301
  exports2.__esModule = true;
78331
78302
  exports2.adapter = void 0;
78332
- var path42 = __importStar2(__require("path"));
78303
+ var path52 = __importStar2(__require("path"));
78333
78304
  var xdg_portable_1 = __importDefault2(require_mod_cjs2());
78334
78305
  exports2.adapter = {
78335
78306
  atImportPermissions: { env: true, read: true },
@@ -78344,7 +78315,7 @@ var require_node3 = __commonJS2({
78344
78315
  return process.pkg ? process.execPath : void 0;
78345
78316
  }, "pkgMainFilename")
78346
78317
  },
78347
- path: path42,
78318
+ path: path52,
78348
78319
  process,
78349
78320
  xdg: xdg_portable_1["default"]
78350
78321
  };
@@ -78357,15 +78328,207 @@ var require_mod_cjs3 = __commonJS2({
78357
78328
  module2.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
78358
78329
  }
78359
78330
  });
78331
+ var require_signals = __commonJS2({
78332
+ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
78333
+ module2.exports = [
78334
+ "SIGABRT",
78335
+ "SIGALRM",
78336
+ "SIGHUP",
78337
+ "SIGINT",
78338
+ "SIGTERM"
78339
+ ];
78340
+ if (process.platform !== "win32") {
78341
+ module2.exports.push(
78342
+ "SIGVTALRM",
78343
+ "SIGXCPU",
78344
+ "SIGXFSZ",
78345
+ "SIGUSR2",
78346
+ "SIGTRAP",
78347
+ "SIGSYS",
78348
+ "SIGQUIT",
78349
+ "SIGIOT"
78350
+ // should detect profiler and enable/disable accordingly.
78351
+ // see #21
78352
+ // 'SIGPROF'
78353
+ );
78354
+ }
78355
+ if (process.platform === "linux") {
78356
+ module2.exports.push(
78357
+ "SIGIO",
78358
+ "SIGPOLL",
78359
+ "SIGPWR",
78360
+ "SIGSTKFLT",
78361
+ "SIGUNUSED"
78362
+ );
78363
+ }
78364
+ }
78365
+ });
78366
+ var require_signal_exit = __commonJS2({
78367
+ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
78368
+ var process22 = global.process;
78369
+ var processOk = /* @__PURE__ */ __name(function(process32) {
78370
+ return process32 && typeof process32 === "object" && typeof process32.removeListener === "function" && typeof process32.emit === "function" && typeof process32.reallyExit === "function" && typeof process32.listeners === "function" && typeof process32.kill === "function" && typeof process32.pid === "number" && typeof process32.on === "function";
78371
+ }, "processOk");
78372
+ if (!processOk(process22)) {
78373
+ module2.exports = function() {
78374
+ return function() {
78375
+ };
78376
+ };
78377
+ } else {
78378
+ assert22 = __require("assert");
78379
+ signals = require_signals();
78380
+ isWin = /^win/i.test(process22.platform);
78381
+ EE = __require("events");
78382
+ if (typeof EE !== "function") {
78383
+ EE = EE.EventEmitter;
78384
+ }
78385
+ if (process22.__signal_exit_emitter__) {
78386
+ emitter = process22.__signal_exit_emitter__;
78387
+ } else {
78388
+ emitter = process22.__signal_exit_emitter__ = new EE();
78389
+ emitter.count = 0;
78390
+ emitter.emitted = {};
78391
+ }
78392
+ if (!emitter.infinite) {
78393
+ emitter.setMaxListeners(Infinity);
78394
+ emitter.infinite = true;
78395
+ }
78396
+ module2.exports = function(cb, opts) {
78397
+ if (!processOk(global.process)) {
78398
+ return function() {
78399
+ };
78400
+ }
78401
+ assert22.equal(typeof cb, "function", "a callback must be provided for exit handler");
78402
+ if (loaded === false) {
78403
+ load();
78404
+ }
78405
+ var ev = "exit";
78406
+ if (opts && opts.alwaysLast) {
78407
+ ev = "afterexit";
78408
+ }
78409
+ var remove = /* @__PURE__ */ __name(function() {
78410
+ emitter.removeListener(ev, cb);
78411
+ if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
78412
+ unload();
78413
+ }
78414
+ }, "remove");
78415
+ emitter.on(ev, cb);
78416
+ return remove;
78417
+ };
78418
+ unload = /* @__PURE__ */ __name(function unload2() {
78419
+ if (!loaded || !processOk(global.process)) {
78420
+ return;
78421
+ }
78422
+ loaded = false;
78423
+ signals.forEach(function(sig) {
78424
+ try {
78425
+ process22.removeListener(sig, sigListeners[sig]);
78426
+ } catch (er) {
78427
+ }
78428
+ });
78429
+ process22.emit = originalProcessEmit;
78430
+ process22.reallyExit = originalProcessReallyExit;
78431
+ emitter.count -= 1;
78432
+ }, "unload");
78433
+ module2.exports.unload = unload;
78434
+ emit = /* @__PURE__ */ __name(function emit2(event, code, signal) {
78435
+ if (emitter.emitted[event]) {
78436
+ return;
78437
+ }
78438
+ emitter.emitted[event] = true;
78439
+ emitter.emit(event, code, signal);
78440
+ }, "emit");
78441
+ sigListeners = {};
78442
+ signals.forEach(function(sig) {
78443
+ sigListeners[sig] = /* @__PURE__ */ __name(function listener() {
78444
+ if (!processOk(global.process)) {
78445
+ return;
78446
+ }
78447
+ var listeners = process22.listeners(sig);
78448
+ if (listeners.length === emitter.count) {
78449
+ unload();
78450
+ emit("exit", null, sig);
78451
+ emit("afterexit", null, sig);
78452
+ if (isWin && sig === "SIGHUP") {
78453
+ sig = "SIGINT";
78454
+ }
78455
+ process22.kill(process22.pid, sig);
78456
+ }
78457
+ }, "listener");
78458
+ });
78459
+ module2.exports.signals = function() {
78460
+ return signals;
78461
+ };
78462
+ loaded = false;
78463
+ load = /* @__PURE__ */ __name(function load2() {
78464
+ if (loaded || !processOk(global.process)) {
78465
+ return;
78466
+ }
78467
+ loaded = true;
78468
+ emitter.count += 1;
78469
+ signals = signals.filter(function(sig) {
78470
+ try {
78471
+ process22.on(sig, sigListeners[sig]);
78472
+ return true;
78473
+ } catch (er) {
78474
+ return false;
78475
+ }
78476
+ });
78477
+ process22.emit = processEmit;
78478
+ process22.reallyExit = processReallyExit;
78479
+ }, "load");
78480
+ module2.exports.load = load;
78481
+ originalProcessReallyExit = process22.reallyExit;
78482
+ processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
78483
+ if (!processOk(global.process)) {
78484
+ return;
78485
+ }
78486
+ process22.exitCode = code || /* istanbul ignore next */
78487
+ 0;
78488
+ emit("exit", process22.exitCode, null);
78489
+ emit("afterexit", process22.exitCode, null);
78490
+ originalProcessReallyExit.call(process22, process22.exitCode);
78491
+ }, "processReallyExit");
78492
+ originalProcessEmit = process22.emit;
78493
+ processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
78494
+ if (ev === "exit" && processOk(global.process)) {
78495
+ if (arg !== void 0) {
78496
+ process22.exitCode = arg;
78497
+ }
78498
+ var ret = originalProcessEmit.apply(this, arguments);
78499
+ emit("exit", process22.exitCode, null);
78500
+ emit("afterexit", process22.exitCode, null);
78501
+ return ret;
78502
+ } else {
78503
+ return originalProcessEmit.apply(this, arguments);
78504
+ }
78505
+ }, "processEmit");
78506
+ }
78507
+ var assert22;
78508
+ var signals;
78509
+ var isWin;
78510
+ var EE;
78511
+ var emitter;
78512
+ var unload;
78513
+ var emit;
78514
+ var sigListeners;
78515
+ var loaded;
78516
+ var load;
78517
+ var originalProcessReallyExit;
78518
+ var processReallyExit;
78519
+ var originalProcessEmit;
78520
+ var processEmit;
78521
+ }
78522
+ });
78360
78523
  var require_command_exists = __commonJS2({
78361
78524
  "../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports2, module2) {
78362
78525
  var exec4 = __require("child_process").exec;
78363
78526
  var execSync = __require("child_process").execSync;
78364
- var fs22 = __require("fs");
78365
- var path42 = __require("path");
78366
- var access = fs22.access;
78367
- var accessSync2 = fs22.accessSync;
78368
- var constants2 = fs22.constants || fs22;
78527
+ var fs32 = __require("fs");
78528
+ var path52 = __require("path");
78529
+ var access = fs32.access;
78530
+ var accessSync2 = fs32.accessSync;
78531
+ var constants2 = fs32.constants || fs32;
78369
78532
  var isUsingWindows = process.platform == "win32";
78370
78533
  var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback) {
78371
78534
  access(
@@ -78466,8 +78629,8 @@ var require_command_exists = __commonJS2({
78466
78629
  cleanInput = /* @__PURE__ */ __name(function(s) {
78467
78630
  var isPathName = /[\\]/.test(s);
78468
78631
  if (isPathName) {
78469
- var dirname22 = '"' + path42.dirname(s) + '"';
78470
- var basename5 = '"' + path42.basename(s) + '"';
78632
+ var dirname22 = '"' + path52.dirname(s) + '"';
78633
+ var basename5 = '"' + path52.basename(s) + '"';
78471
78634
  return dirname22 + ":" + basename5;
78472
78635
  }
78473
78636
  return '"' + s + '"';
@@ -78507,6 +78670,975 @@ var require_command_exists2 = __commonJS2({
78507
78670
  module2.exports = require_command_exists();
78508
78671
  }
78509
78672
  });
78673
+ var require_ini = __commonJS2({
78674
+ "../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js"(exports2) {
78675
+ exports2.parse = exports2.decode = decode;
78676
+ exports2.stringify = exports2.encode = encode;
78677
+ exports2.safe = safe;
78678
+ exports2.unsafe = unsafe;
78679
+ var eol = typeof process !== "undefined" && process.platform === "win32" ? "\r\n" : "\n";
78680
+ function encode(obj, opt) {
78681
+ var children = [];
78682
+ var out = "";
78683
+ if (typeof opt === "string") {
78684
+ opt = {
78685
+ section: opt,
78686
+ whitespace: false
78687
+ };
78688
+ } else {
78689
+ opt = opt || {};
78690
+ opt.whitespace = opt.whitespace === true;
78691
+ }
78692
+ var separator = opt.whitespace ? " = " : "=";
78693
+ Object.keys(obj).forEach(function(k, _2, __) {
78694
+ var val = obj[k];
78695
+ if (val && Array.isArray(val)) {
78696
+ val.forEach(function(item) {
78697
+ out += safe(k + "[]") + separator + safe(item) + "\n";
78698
+ });
78699
+ } else if (val && typeof val === "object")
78700
+ children.push(k);
78701
+ else
78702
+ out += safe(k) + separator + safe(val) + eol;
78703
+ });
78704
+ if (opt.section && out.length)
78705
+ out = "[" + safe(opt.section) + "]" + eol + out;
78706
+ children.forEach(function(k, _2, __) {
78707
+ var nk = dotSplit(k).join("\\.");
78708
+ var section = (opt.section ? opt.section + "." : "") + nk;
78709
+ var child = encode(obj[k], {
78710
+ section,
78711
+ whitespace: opt.whitespace
78712
+ });
78713
+ if (out.length && child.length)
78714
+ out += eol;
78715
+ out += child;
78716
+ });
78717
+ return out;
78718
+ }
78719
+ __name(encode, "encode");
78720
+ function dotSplit(str) {
78721
+ return str.replace(/\1/g, "LITERAL\\1LITERAL").replace(/\\\./g, "").split(/\./).map(function(part) {
78722
+ return part.replace(/\1/g, "\\.").replace(/\2LITERAL\\1LITERAL\2/g, "");
78723
+ });
78724
+ }
78725
+ __name(dotSplit, "dotSplit");
78726
+ function decode(str) {
78727
+ var out = {};
78728
+ var p2 = out;
78729
+ var section = null;
78730
+ var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
78731
+ var lines = str.split(/[\r\n]+/g);
78732
+ lines.forEach(function(line, _2, __) {
78733
+ if (!line || line.match(/^\s*[;#]/))
78734
+ return;
78735
+ var match = line.match(re);
78736
+ if (!match)
78737
+ return;
78738
+ if (match[1] !== void 0) {
78739
+ section = unsafe(match[1]);
78740
+ if (section === "__proto__") {
78741
+ p2 = {};
78742
+ return;
78743
+ }
78744
+ p2 = out[section] = out[section] || {};
78745
+ return;
78746
+ }
78747
+ var key = unsafe(match[2]);
78748
+ if (key === "__proto__")
78749
+ return;
78750
+ var value = match[3] ? unsafe(match[4]) : true;
78751
+ switch (value) {
78752
+ case "true":
78753
+ case "false":
78754
+ case "null":
78755
+ value = JSON.parse(value);
78756
+ }
78757
+ if (key.length > 2 && key.slice(-2) === "[]") {
78758
+ key = key.substring(0, key.length - 2);
78759
+ if (key === "__proto__")
78760
+ return;
78761
+ if (!p2[key])
78762
+ p2[key] = [];
78763
+ else if (!Array.isArray(p2[key]))
78764
+ p2[key] = [p2[key]];
78765
+ }
78766
+ if (Array.isArray(p2[key]))
78767
+ p2[key].push(value);
78768
+ else
78769
+ p2[key] = value;
78770
+ });
78771
+ Object.keys(out).filter(function(k, _2, __) {
78772
+ if (!out[k] || typeof out[k] !== "object" || Array.isArray(out[k]))
78773
+ return false;
78774
+ var parts = dotSplit(k);
78775
+ var p22 = out;
78776
+ var l = parts.pop();
78777
+ var nl = l.replace(/\\\./g, ".");
78778
+ parts.forEach(function(part, _3, __2) {
78779
+ if (part === "__proto__")
78780
+ return;
78781
+ if (!p22[part] || typeof p22[part] !== "object")
78782
+ p22[part] = {};
78783
+ p22 = p22[part];
78784
+ });
78785
+ if (p22 === out && nl === l)
78786
+ return false;
78787
+ p22[nl] = out[k];
78788
+ return true;
78789
+ }).forEach(function(del, _2, __) {
78790
+ delete out[del];
78791
+ });
78792
+ return out;
78793
+ }
78794
+ __name(decode, "decode");
78795
+ function isQuoted(val) {
78796
+ return val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'";
78797
+ }
78798
+ __name(isQuoted, "isQuoted");
78799
+ function safe(val) {
78800
+ return typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, "\\;").replace(/#/g, "\\#");
78801
+ }
78802
+ __name(safe, "safe");
78803
+ function unsafe(val, doUnesc) {
78804
+ val = (val || "").trim();
78805
+ if (isQuoted(val)) {
78806
+ if (val.charAt(0) === "'")
78807
+ val = val.substr(1, val.length - 2);
78808
+ try {
78809
+ val = JSON.parse(val);
78810
+ } catch (_2) {
78811
+ }
78812
+ } else {
78813
+ var esc = false;
78814
+ var unesc = "";
78815
+ for (var i = 0, l = val.length; i < l; i++) {
78816
+ var c2 = val.charAt(i);
78817
+ if (esc) {
78818
+ if ("\\;#".indexOf(c2) !== -1)
78819
+ unesc += c2;
78820
+ else
78821
+ unesc += "\\" + c2;
78822
+ esc = false;
78823
+ } else if (";#".indexOf(c2) !== -1)
78824
+ break;
78825
+ else if (c2 === "\\")
78826
+ esc = true;
78827
+ else
78828
+ unesc += c2;
78829
+ }
78830
+ if (esc)
78831
+ unesc += "\\";
78832
+ return unesc.trim();
78833
+ }
78834
+ return val;
78835
+ }
78836
+ __name(unsafe, "unsafe");
78837
+ }
78838
+ });
78839
+ var require_strip_json_comments = __commonJS2({
78840
+ "../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js"(exports2, module2) {
78841
+ var singleComment = 1;
78842
+ var multiComment = 2;
78843
+ function stripWithoutWhitespace() {
78844
+ return "";
78845
+ }
78846
+ __name(stripWithoutWhitespace, "stripWithoutWhitespace");
78847
+ function stripWithWhitespace(str, start, end) {
78848
+ return str.slice(start, end).replace(/\S/g, " ");
78849
+ }
78850
+ __name(stripWithWhitespace, "stripWithWhitespace");
78851
+ module2.exports = function(str, opts) {
78852
+ opts = opts || {};
78853
+ var currentChar;
78854
+ var nextChar;
78855
+ var insideString = false;
78856
+ var insideComment = false;
78857
+ var offset = 0;
78858
+ var ret = "";
78859
+ var strip = opts.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
78860
+ for (var i = 0; i < str.length; i++) {
78861
+ currentChar = str[i];
78862
+ nextChar = str[i + 1];
78863
+ if (!insideComment && currentChar === '"') {
78864
+ var escaped = str[i - 1] === "\\" && str[i - 2] !== "\\";
78865
+ if (!escaped) {
78866
+ insideString = !insideString;
78867
+ }
78868
+ }
78869
+ if (insideString) {
78870
+ continue;
78871
+ }
78872
+ if (!insideComment && currentChar + nextChar === "//") {
78873
+ ret += str.slice(offset, i);
78874
+ offset = i;
78875
+ insideComment = singleComment;
78876
+ i++;
78877
+ } else if (insideComment === singleComment && currentChar + nextChar === "\r\n") {
78878
+ i++;
78879
+ insideComment = false;
78880
+ ret += strip(str, offset, i);
78881
+ offset = i;
78882
+ continue;
78883
+ } else if (insideComment === singleComment && currentChar === "\n") {
78884
+ insideComment = false;
78885
+ ret += strip(str, offset, i);
78886
+ offset = i;
78887
+ } else if (!insideComment && currentChar + nextChar === "/*") {
78888
+ ret += str.slice(offset, i);
78889
+ offset = i;
78890
+ insideComment = multiComment;
78891
+ i++;
78892
+ continue;
78893
+ } else if (insideComment === multiComment && currentChar + nextChar === "*/") {
78894
+ i++;
78895
+ insideComment = false;
78896
+ ret += strip(str, offset, i + 1);
78897
+ offset = i + 1;
78898
+ continue;
78899
+ }
78900
+ }
78901
+ return ret + (insideComment ? strip(str.substr(offset)) : str.substr(offset));
78902
+ };
78903
+ }
78904
+ });
78905
+ var require_utils2 = __commonJS2({
78906
+ "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports2) {
78907
+ var fs32 = __require("fs");
78908
+ var ini = require_ini();
78909
+ var path52 = __require("path");
78910
+ var stripJsonComments = require_strip_json_comments();
78911
+ var parse10 = exports2.parse = function(content) {
78912
+ if (/^\s*{/.test(content))
78913
+ return JSON.parse(stripJsonComments(content));
78914
+ return ini.parse(content);
78915
+ };
78916
+ var file2 = exports2.file = function() {
78917
+ var args = [].slice.call(arguments).filter(function(arg) {
78918
+ return arg != null;
78919
+ });
78920
+ for (var i in args)
78921
+ if ("string" !== typeof args[i])
78922
+ return;
78923
+ var file22 = path52.join.apply(null, args);
78924
+ try {
78925
+ return fs32.readFileSync(file22, "utf-8");
78926
+ } catch (err) {
78927
+ return;
78928
+ }
78929
+ };
78930
+ exports2.json = function() {
78931
+ var content = file2.apply(null, arguments);
78932
+ return content ? parse10(content) : null;
78933
+ };
78934
+ exports2.env = function(prefix, env22) {
78935
+ env22 = env22 || process.env;
78936
+ var obj = {};
78937
+ var l = prefix.length;
78938
+ for (var k in env22) {
78939
+ if (k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) {
78940
+ var keypath = k.substring(l).split("__");
78941
+ var _emptyStringIndex;
78942
+ while ((_emptyStringIndex = keypath.indexOf("")) > -1) {
78943
+ keypath.splice(_emptyStringIndex, 1);
78944
+ }
78945
+ var cursor = obj;
78946
+ keypath.forEach(/* @__PURE__ */ __name(function _buildSubObj(_subkey, i) {
78947
+ if (!_subkey || typeof cursor !== "object")
78948
+ return;
78949
+ if (i === keypath.length - 1)
78950
+ cursor[_subkey] = env22[k];
78951
+ if (cursor[_subkey] === void 0)
78952
+ cursor[_subkey] = {};
78953
+ cursor = cursor[_subkey];
78954
+ }, "_buildSubObj"));
78955
+ }
78956
+ }
78957
+ return obj;
78958
+ };
78959
+ exports2.find = function() {
78960
+ var rel = path52.join.apply(null, [].slice.call(arguments));
78961
+ function find2(start, rel2) {
78962
+ var file22 = path52.join(start, rel2);
78963
+ try {
78964
+ fs32.statSync(file22);
78965
+ return file22;
78966
+ } catch (err) {
78967
+ if (path52.dirname(start) !== start)
78968
+ return find2(path52.dirname(start), rel2);
78969
+ }
78970
+ }
78971
+ __name(find2, "find");
78972
+ return find2(process.cwd(), rel);
78973
+ };
78974
+ }
78975
+ });
78976
+ var require_deep_extend = __commonJS2({
78977
+ "../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js"(exports2, module2) {
78978
+ function isSpecificValue(val) {
78979
+ return val instanceof Buffer || val instanceof Date || val instanceof RegExp ? true : false;
78980
+ }
78981
+ __name(isSpecificValue, "isSpecificValue");
78982
+ function cloneSpecificValue(val) {
78983
+ if (val instanceof Buffer) {
78984
+ var x = Buffer.alloc ? Buffer.alloc(val.length) : new Buffer(val.length);
78985
+ val.copy(x);
78986
+ return x;
78987
+ } else if (val instanceof Date) {
78988
+ return new Date(val.getTime());
78989
+ } else if (val instanceof RegExp) {
78990
+ return new RegExp(val);
78991
+ } else {
78992
+ throw new Error("Unexpected situation");
78993
+ }
78994
+ }
78995
+ __name(cloneSpecificValue, "cloneSpecificValue");
78996
+ function deepCloneArray(arr) {
78997
+ var clone = [];
78998
+ arr.forEach(function(item, index) {
78999
+ if (typeof item === "object" && item !== null) {
79000
+ if (Array.isArray(item)) {
79001
+ clone[index] = deepCloneArray(item);
79002
+ } else if (isSpecificValue(item)) {
79003
+ clone[index] = cloneSpecificValue(item);
79004
+ } else {
79005
+ clone[index] = deepExtend({}, item);
79006
+ }
79007
+ } else {
79008
+ clone[index] = item;
79009
+ }
79010
+ });
79011
+ return clone;
79012
+ }
79013
+ __name(deepCloneArray, "deepCloneArray");
79014
+ function safeGetProperty(object, property) {
79015
+ return property === "__proto__" ? void 0 : object[property];
79016
+ }
79017
+ __name(safeGetProperty, "safeGetProperty");
79018
+ var deepExtend = module2.exports = function() {
79019
+ if (arguments.length < 1 || typeof arguments[0] !== "object") {
79020
+ return false;
79021
+ }
79022
+ if (arguments.length < 2) {
79023
+ return arguments[0];
79024
+ }
79025
+ var target = arguments[0];
79026
+ var args = Array.prototype.slice.call(arguments, 1);
79027
+ var val, src;
79028
+ args.forEach(function(obj) {
79029
+ if (typeof obj !== "object" || obj === null || Array.isArray(obj)) {
79030
+ return;
79031
+ }
79032
+ Object.keys(obj).forEach(function(key) {
79033
+ src = safeGetProperty(target, key);
79034
+ val = safeGetProperty(obj, key);
79035
+ if (val === target) {
79036
+ return;
79037
+ } else if (typeof val !== "object" || val === null) {
79038
+ target[key] = val;
79039
+ return;
79040
+ } else if (Array.isArray(val)) {
79041
+ target[key] = deepCloneArray(val);
79042
+ return;
79043
+ } else if (isSpecificValue(val)) {
79044
+ target[key] = cloneSpecificValue(val);
79045
+ return;
79046
+ } else if (typeof src !== "object" || src === null || Array.isArray(src)) {
79047
+ target[key] = deepExtend({}, val);
79048
+ return;
79049
+ } else {
79050
+ target[key] = deepExtend(src, val);
79051
+ return;
79052
+ }
79053
+ });
79054
+ });
79055
+ return target;
79056
+ };
79057
+ }
79058
+ });
79059
+ var require_minimist = __commonJS2({
79060
+ "../../node_modules/.pnpm/minimist@1.2.6/node_modules/minimist/index.js"(exports2, module2) {
79061
+ module2.exports = function(args, opts) {
79062
+ if (!opts) opts = {};
79063
+ var flags = { bools: {}, strings: {}, unknownFn: null };
79064
+ if (typeof opts["unknown"] === "function") {
79065
+ flags.unknownFn = opts["unknown"];
79066
+ }
79067
+ if (typeof opts["boolean"] === "boolean" && opts["boolean"]) {
79068
+ flags.allBools = true;
79069
+ } else {
79070
+ [].concat(opts["boolean"]).filter(Boolean).forEach(function(key2) {
79071
+ flags.bools[key2] = true;
79072
+ });
79073
+ }
79074
+ var aliases = {};
79075
+ Object.keys(opts.alias || {}).forEach(function(key2) {
79076
+ aliases[key2] = [].concat(opts.alias[key2]);
79077
+ aliases[key2].forEach(function(x) {
79078
+ aliases[x] = [key2].concat(aliases[key2].filter(function(y2) {
79079
+ return x !== y2;
79080
+ }));
79081
+ });
79082
+ });
79083
+ [].concat(opts.string).filter(Boolean).forEach(function(key2) {
79084
+ flags.strings[key2] = true;
79085
+ if (aliases[key2]) {
79086
+ flags.strings[aliases[key2]] = true;
79087
+ }
79088
+ });
79089
+ var defaults = opts["default"] || {};
79090
+ var argv = { _: [] };
79091
+ Object.keys(flags.bools).forEach(function(key2) {
79092
+ setArg(key2, defaults[key2] === void 0 ? false : defaults[key2]);
79093
+ });
79094
+ var notFlags = [];
79095
+ if (args.indexOf("--") !== -1) {
79096
+ notFlags = args.slice(args.indexOf("--") + 1);
79097
+ args = args.slice(0, args.indexOf("--"));
79098
+ }
79099
+ function argDefined(key2, arg2) {
79100
+ return flags.allBools && /^--[^=]+$/.test(arg2) || flags.strings[key2] || flags.bools[key2] || aliases[key2];
79101
+ }
79102
+ __name(argDefined, "argDefined");
79103
+ function setArg(key2, val, arg2) {
79104
+ if (arg2 && flags.unknownFn && !argDefined(key2, arg2)) {
79105
+ if (flags.unknownFn(arg2) === false) return;
79106
+ }
79107
+ var value2 = !flags.strings[key2] && isNumber(val) ? Number(val) : val;
79108
+ setKey(argv, key2.split("."), value2);
79109
+ (aliases[key2] || []).forEach(function(x) {
79110
+ setKey(argv, x.split("."), value2);
79111
+ });
79112
+ }
79113
+ __name(setArg, "setArg");
79114
+ function setKey(obj, keys, value2) {
79115
+ var o = obj;
79116
+ for (var i2 = 0; i2 < keys.length - 1; i2++) {
79117
+ var key2 = keys[i2];
79118
+ if (isConstructorOrProto(o, key2)) return;
79119
+ if (o[key2] === void 0) o[key2] = {};
79120
+ if (o[key2] === Object.prototype || o[key2] === Number.prototype || o[key2] === String.prototype) o[key2] = {};
79121
+ if (o[key2] === Array.prototype) o[key2] = [];
79122
+ o = o[key2];
79123
+ }
79124
+ var key2 = keys[keys.length - 1];
79125
+ if (isConstructorOrProto(o, key2)) return;
79126
+ if (o === Object.prototype || o === Number.prototype || o === String.prototype) o = {};
79127
+ if (o === Array.prototype) o = [];
79128
+ if (o[key2] === void 0 || flags.bools[key2] || typeof o[key2] === "boolean") {
79129
+ o[key2] = value2;
79130
+ } else if (Array.isArray(o[key2])) {
79131
+ o[key2].push(value2);
79132
+ } else {
79133
+ o[key2] = [o[key2], value2];
79134
+ }
79135
+ }
79136
+ __name(setKey, "setKey");
79137
+ function aliasIsBoolean(key2) {
79138
+ return aliases[key2].some(function(x) {
79139
+ return flags.bools[x];
79140
+ });
79141
+ }
79142
+ __name(aliasIsBoolean, "aliasIsBoolean");
79143
+ for (var i = 0; i < args.length; i++) {
79144
+ var arg = args[i];
79145
+ if (/^--.+=/.test(arg)) {
79146
+ var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
79147
+ var key = m[1];
79148
+ var value = m[2];
79149
+ if (flags.bools[key]) {
79150
+ value = value !== "false";
79151
+ }
79152
+ setArg(key, value, arg);
79153
+ } else if (/^--no-.+/.test(arg)) {
79154
+ var key = arg.match(/^--no-(.+)/)[1];
79155
+ setArg(key, false, arg);
79156
+ } else if (/^--.+/.test(arg)) {
79157
+ var key = arg.match(/^--(.+)/)[1];
79158
+ var next = args[i + 1];
79159
+ if (next !== void 0 && !/^-/.test(next) && !flags.bools[key] && !flags.allBools && (aliases[key] ? !aliasIsBoolean(key) : true)) {
79160
+ setArg(key, next, arg);
79161
+ i++;
79162
+ } else if (/^(true|false)$/.test(next)) {
79163
+ setArg(key, next === "true", arg);
79164
+ i++;
79165
+ } else {
79166
+ setArg(key, flags.strings[key] ? "" : true, arg);
79167
+ }
79168
+ } else if (/^-[^-]+/.test(arg)) {
79169
+ var letters = arg.slice(1, -1).split("");
79170
+ var broken = false;
79171
+ for (var j2 = 0; j2 < letters.length; j2++) {
79172
+ var next = arg.slice(j2 + 2);
79173
+ if (next === "-") {
79174
+ setArg(letters[j2], next, arg);
79175
+ continue;
79176
+ }
79177
+ if (/[A-Za-z]/.test(letters[j2]) && /=/.test(next)) {
79178
+ setArg(letters[j2], next.split("=")[1], arg);
79179
+ broken = true;
79180
+ break;
79181
+ }
79182
+ if (/[A-Za-z]/.test(letters[j2]) && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
79183
+ setArg(letters[j2], next, arg);
79184
+ broken = true;
79185
+ break;
79186
+ }
79187
+ if (letters[j2 + 1] && letters[j2 + 1].match(/\W/)) {
79188
+ setArg(letters[j2], arg.slice(j2 + 2), arg);
79189
+ broken = true;
79190
+ break;
79191
+ } else {
79192
+ setArg(letters[j2], flags.strings[letters[j2]] ? "" : true, arg);
79193
+ }
79194
+ }
79195
+ var key = arg.slice(-1)[0];
79196
+ if (!broken && key !== "-") {
79197
+ if (args[i + 1] && !/^(-|--)[^-]/.test(args[i + 1]) && !flags.bools[key] && (aliases[key] ? !aliasIsBoolean(key) : true)) {
79198
+ setArg(key, args[i + 1], arg);
79199
+ i++;
79200
+ } else if (args[i + 1] && /^(true|false)$/.test(args[i + 1])) {
79201
+ setArg(key, args[i + 1] === "true", arg);
79202
+ i++;
79203
+ } else {
79204
+ setArg(key, flags.strings[key] ? "" : true, arg);
79205
+ }
79206
+ }
79207
+ } else {
79208
+ if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
79209
+ argv._.push(
79210
+ flags.strings["_"] || !isNumber(arg) ? arg : Number(arg)
79211
+ );
79212
+ }
79213
+ if (opts.stopEarly) {
79214
+ argv._.push.apply(argv._, args.slice(i + 1));
79215
+ break;
79216
+ }
79217
+ }
79218
+ }
79219
+ Object.keys(defaults).forEach(function(key2) {
79220
+ if (!hasKey(argv, key2.split("."))) {
79221
+ setKey(argv, key2.split("."), defaults[key2]);
79222
+ (aliases[key2] || []).forEach(function(x) {
79223
+ setKey(argv, x.split("."), defaults[key2]);
79224
+ });
79225
+ }
79226
+ });
79227
+ if (opts["--"]) {
79228
+ argv["--"] = new Array();
79229
+ notFlags.forEach(function(key2) {
79230
+ argv["--"].push(key2);
79231
+ });
79232
+ } else {
79233
+ notFlags.forEach(function(key2) {
79234
+ argv._.push(key2);
79235
+ });
79236
+ }
79237
+ return argv;
79238
+ };
79239
+ function hasKey(obj, keys) {
79240
+ var o = obj;
79241
+ keys.slice(0, -1).forEach(function(key2) {
79242
+ o = o[key2] || {};
79243
+ });
79244
+ var key = keys[keys.length - 1];
79245
+ return key in o;
79246
+ }
79247
+ __name(hasKey, "hasKey");
79248
+ function isNumber(x) {
79249
+ if (typeof x === "number") return true;
79250
+ if (/^0x[0-9a-f]+$/i.test(x)) return true;
79251
+ return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
79252
+ }
79253
+ __name(isNumber, "isNumber");
79254
+ function isConstructorOrProto(obj, key) {
79255
+ return key === "constructor" && typeof obj[key] === "function" || key === "__proto__";
79256
+ }
79257
+ __name(isConstructorOrProto, "isConstructorOrProto");
79258
+ }
79259
+ });
79260
+ var require_rc = __commonJS2({
79261
+ "../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/index.js"(exports2, module2) {
79262
+ var cc = require_utils2();
79263
+ var join22 = __require("path").join;
79264
+ var deepExtend = require_deep_extend();
79265
+ var etc = "/etc";
79266
+ var win = process.platform === "win32";
79267
+ var home = win ? process.env.USERPROFILE : process.env.HOME;
79268
+ module2.exports = function(name3, defaults, argv, parse10) {
79269
+ if ("string" !== typeof name3)
79270
+ throw new Error("rc(name): name *must* be string");
79271
+ if (!argv)
79272
+ argv = require_minimist()(process.argv.slice(2));
79273
+ defaults = ("string" === typeof defaults ? cc.json(defaults) : defaults) || {};
79274
+ parse10 = parse10 || cc.parse;
79275
+ var env3 = cc.env(name3 + "_");
79276
+ var configs = [defaults];
79277
+ var configFiles = [];
79278
+ function addConfigFile(file2) {
79279
+ if (configFiles.indexOf(file2) >= 0) return;
79280
+ var fileConfig = cc.file(file2);
79281
+ if (fileConfig) {
79282
+ configs.push(parse10(fileConfig));
79283
+ configFiles.push(file2);
79284
+ }
79285
+ }
79286
+ __name(addConfigFile, "addConfigFile");
79287
+ if (!win)
79288
+ [
79289
+ join22(etc, name3, "config"),
79290
+ join22(etc, name3 + "rc")
79291
+ ].forEach(addConfigFile);
79292
+ if (home)
79293
+ [
79294
+ join22(home, ".config", name3, "config"),
79295
+ join22(home, ".config", name3),
79296
+ join22(home, "." + name3, "config"),
79297
+ join22(home, "." + name3 + "rc")
79298
+ ].forEach(addConfigFile);
79299
+ addConfigFile(cc.find("." + name3 + "rc"));
79300
+ if (env3.config) addConfigFile(env3.config);
79301
+ if (argv.config) addConfigFile(argv.config);
79302
+ return deepExtend.apply(null, configs.concat([
79303
+ env3,
79304
+ argv,
79305
+ configFiles.length ? { configs: configFiles, config: configFiles[configFiles.length - 1] } : void 0
79306
+ ]));
79307
+ };
79308
+ }
79309
+ });
79310
+ var require_registry_url = __commonJS2({
79311
+ "../../node_modules/.pnpm/registry-url@3.1.0/node_modules/registry-url/index.js"(exports2, module2) {
79312
+ module2.exports = function(scope) {
79313
+ var rc = require_rc()("npm", { registry: "https://registry.npmjs.org/" });
79314
+ var url = rc[scope + ":registry"] || rc.registry;
79315
+ return url.slice(-1) === "/" ? url : url + "/";
79316
+ };
79317
+ }
79318
+ });
79319
+ var require_safe_buffer = __commonJS2({
79320
+ "../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js"(exports2, module2) {
79321
+ var buffer = __require("buffer");
79322
+ var Buffer22 = buffer.Buffer;
79323
+ function copyProps(src, dst) {
79324
+ for (var key in src) {
79325
+ dst[key] = src[key];
79326
+ }
79327
+ }
79328
+ __name(copyProps, "copyProps");
79329
+ if (Buffer22.from && Buffer22.alloc && Buffer22.allocUnsafe && Buffer22.allocUnsafeSlow) {
79330
+ module2.exports = buffer;
79331
+ } else {
79332
+ copyProps(buffer, exports2);
79333
+ exports2.Buffer = SafeBuffer;
79334
+ }
79335
+ function SafeBuffer(arg, encodingOrOffset, length) {
79336
+ return Buffer22(arg, encodingOrOffset, length);
79337
+ }
79338
+ __name(SafeBuffer, "SafeBuffer");
79339
+ SafeBuffer.prototype = Object.create(Buffer22.prototype);
79340
+ copyProps(Buffer22, SafeBuffer);
79341
+ SafeBuffer.from = function(arg, encodingOrOffset, length) {
79342
+ if (typeof arg === "number") {
79343
+ throw new TypeError("Argument must not be a number");
79344
+ }
79345
+ return Buffer22(arg, encodingOrOffset, length);
79346
+ };
79347
+ SafeBuffer.alloc = function(size, fill, encoding) {
79348
+ if (typeof size !== "number") {
79349
+ throw new TypeError("Argument must be a number");
79350
+ }
79351
+ var buf = Buffer22(size);
79352
+ if (fill !== void 0) {
79353
+ if (typeof encoding === "string") {
79354
+ buf.fill(fill, encoding);
79355
+ } else {
79356
+ buf.fill(fill);
79357
+ }
79358
+ } else {
79359
+ buf.fill(0);
79360
+ }
79361
+ return buf;
79362
+ };
79363
+ SafeBuffer.allocUnsafe = function(size) {
79364
+ if (typeof size !== "number") {
79365
+ throw new TypeError("Argument must be a number");
79366
+ }
79367
+ return Buffer22(size);
79368
+ };
79369
+ SafeBuffer.allocUnsafeSlow = function(size) {
79370
+ if (typeof size !== "number") {
79371
+ throw new TypeError("Argument must be a number");
79372
+ }
79373
+ return buffer.SlowBuffer(size);
79374
+ };
79375
+ }
79376
+ });
79377
+ var require_base64 = __commonJS2({
79378
+ "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/base64.js"(exports2, module2) {
79379
+ var safeBuffer = require_safe_buffer().Buffer;
79380
+ function decodeBase64(base64) {
79381
+ return safeBuffer.from(base64, "base64").toString("utf8");
79382
+ }
79383
+ __name(decodeBase64, "decodeBase64");
79384
+ function encodeBase64(string) {
79385
+ return safeBuffer.from(string, "utf8").toString("base64");
79386
+ }
79387
+ __name(encodeBase64, "encodeBase64");
79388
+ module2.exports = {
79389
+ decodeBase64,
79390
+ encodeBase64
79391
+ };
79392
+ }
79393
+ });
79394
+ var require_registry_auth_token = __commonJS2({
79395
+ "../../node_modules/.pnpm/registry-auth-token@3.3.2/node_modules/registry-auth-token/index.js"(exports2, module2) {
79396
+ var url = __require("url");
79397
+ var base64 = require_base64();
79398
+ var decodeBase64 = base64.decodeBase64;
79399
+ var encodeBase64 = base64.encodeBase64;
79400
+ var tokenKey = ":_authToken";
79401
+ var userKey = ":username";
79402
+ var passwordKey = ":_password";
79403
+ module2.exports = function() {
79404
+ var checkUrl;
79405
+ var options;
79406
+ if (arguments.length >= 2) {
79407
+ checkUrl = arguments[0];
79408
+ options = arguments[1];
79409
+ } else if (typeof arguments[0] === "string") {
79410
+ checkUrl = arguments[0];
79411
+ } else {
79412
+ options = arguments[0];
79413
+ }
79414
+ options = options || {};
79415
+ options.npmrc = options.npmrc || require_rc()("npm", { registry: "https://registry.npmjs.org/" });
79416
+ checkUrl = checkUrl || options.npmrc.registry;
79417
+ return getRegistryAuthInfo(checkUrl, options) || getLegacyAuthInfo(options.npmrc);
79418
+ };
79419
+ function getRegistryAuthInfo(checkUrl, options) {
79420
+ var parsed = url.parse(checkUrl, false, true);
79421
+ var pathname;
79422
+ while (pathname !== "/" && parsed.pathname !== pathname) {
79423
+ pathname = parsed.pathname || "/";
79424
+ var regUrl = "//" + parsed.host + pathname.replace(/\/$/, "");
79425
+ var authInfo = getAuthInfoForUrl(regUrl, options.npmrc);
79426
+ if (authInfo) {
79427
+ return authInfo;
79428
+ }
79429
+ if (!options.recursive) {
79430
+ return /\/$/.test(checkUrl) ? void 0 : getRegistryAuthInfo(url.resolve(checkUrl, "."), options);
79431
+ }
79432
+ parsed.pathname = url.resolve(normalizePath(pathname), "..") || "/";
79433
+ }
79434
+ return void 0;
79435
+ }
79436
+ __name(getRegistryAuthInfo, "getRegistryAuthInfo");
79437
+ function getLegacyAuthInfo(npmrc) {
79438
+ if (npmrc._auth) {
79439
+ return { token: npmrc._auth, type: "Basic" };
79440
+ }
79441
+ return void 0;
79442
+ }
79443
+ __name(getLegacyAuthInfo, "getLegacyAuthInfo");
79444
+ function normalizePath(path52) {
79445
+ return path52[path52.length - 1] === "/" ? path52 : path52 + "/";
79446
+ }
79447
+ __name(normalizePath, "normalizePath");
79448
+ function getAuthInfoForUrl(regUrl, npmrc) {
79449
+ var bearerAuth = getBearerToken(npmrc[regUrl + tokenKey] || npmrc[regUrl + "/" + tokenKey]);
79450
+ if (bearerAuth) {
79451
+ return bearerAuth;
79452
+ }
79453
+ var username = npmrc[regUrl + userKey] || npmrc[regUrl + "/" + userKey];
79454
+ var password = npmrc[regUrl + passwordKey] || npmrc[regUrl + "/" + passwordKey];
79455
+ var basicAuth = getTokenForUsernameAndPassword(username, password);
79456
+ if (basicAuth) {
79457
+ return basicAuth;
79458
+ }
79459
+ return void 0;
79460
+ }
79461
+ __name(getAuthInfoForUrl, "getAuthInfoForUrl");
79462
+ function getBearerToken(tok) {
79463
+ if (!tok) {
79464
+ return void 0;
79465
+ }
79466
+ var token = tok.replace(/^\$\{?([^}]*)\}?$/, function(fullMatch, envVar) {
79467
+ return process.env[envVar];
79468
+ });
79469
+ return { token, type: "Bearer" };
79470
+ }
79471
+ __name(getBearerToken, "getBearerToken");
79472
+ function getTokenForUsernameAndPassword(username, password) {
79473
+ if (!username || !password) {
79474
+ return void 0;
79475
+ }
79476
+ var pass = decodeBase64(password.replace(/^\$\{?([^}]*)\}?$/, function(fullMatch, envVar) {
79477
+ return process.env[envVar];
79478
+ }));
79479
+ var token = encodeBase64(username + ":" + pass);
79480
+ return {
79481
+ token,
79482
+ type: "Basic",
79483
+ password: pass,
79484
+ username
79485
+ };
79486
+ }
79487
+ __name(getTokenForUsernameAndPassword, "getTokenForUsernameAndPassword");
79488
+ }
79489
+ });
79490
+ var require_update_check = __commonJS2({
79491
+ "../../node_modules/.pnpm/update-check@1.5.4/node_modules/update-check/index.js"(exports2, module2) {
79492
+ var { URL: URL2 } = __require("url");
79493
+ var { join: join22 } = __require("path");
79494
+ var fs32 = __require("fs");
79495
+ var { promisify: promisify7 } = __require("util");
79496
+ var { tmpdir: tmpdir4 } = __require("os");
79497
+ var registryUrl = require_registry_url();
79498
+ var writeFile4 = promisify7(fs32.writeFile);
79499
+ var mkdir = promisify7(fs32.mkdir);
79500
+ var readFile2 = promisify7(fs32.readFile);
79501
+ var compareVersions = /* @__PURE__ */ __name((a, b2) => a.localeCompare(b2, "en-US", { numeric: true }), "compareVersions");
79502
+ var encode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/^%40/, "@"), "encode");
79503
+ var getFile = /* @__PURE__ */ __name(async (details, distTag) => {
79504
+ const rootDir = tmpdir4();
79505
+ const subDir = join22(rootDir, "update-check");
79506
+ if (!fs32.existsSync(subDir)) {
79507
+ await mkdir(subDir);
79508
+ }
79509
+ let name3 = `${details.name}-${distTag}.json`;
79510
+ if (details.scope) {
79511
+ name3 = `${details.scope}-${name3}`;
79512
+ }
79513
+ return join22(subDir, name3);
79514
+ }, "getFile");
79515
+ var evaluateCache = /* @__PURE__ */ __name(async (file2, time, interval) => {
79516
+ if (fs32.existsSync(file2)) {
79517
+ const content = await readFile2(file2, "utf8");
79518
+ const { lastUpdate, latest } = JSON.parse(content);
79519
+ const nextCheck = lastUpdate + interval;
79520
+ if (nextCheck > time) {
79521
+ return {
79522
+ shouldCheck: false,
79523
+ latest
79524
+ };
79525
+ }
79526
+ }
79527
+ return {
79528
+ shouldCheck: true,
79529
+ latest: null
79530
+ };
79531
+ }, "evaluateCache");
79532
+ var updateCache = /* @__PURE__ */ __name(async (file2, latest, lastUpdate) => {
79533
+ const content = JSON.stringify({
79534
+ latest,
79535
+ lastUpdate
79536
+ });
79537
+ await writeFile4(file2, content, "utf8");
79538
+ }, "updateCache");
79539
+ var loadPackage = /* @__PURE__ */ __name((url, authInfo) => new Promise((resolve12, reject) => {
79540
+ const options = {
79541
+ host: url.hostname,
79542
+ path: url.pathname,
79543
+ port: url.port,
79544
+ headers: {
79545
+ accept: "application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"
79546
+ },
79547
+ timeout: 2e3
79548
+ };
79549
+ if (authInfo) {
79550
+ options.headers.authorization = `${authInfo.type} ${authInfo.token}`;
79551
+ }
79552
+ const { get } = url.protocol === "https:" ? __require("https") : __require("http");
79553
+ get(options, (response) => {
79554
+ const { statusCode } = response;
79555
+ if (statusCode !== 200) {
79556
+ const error2 = new Error(`Request failed with code ${statusCode}`);
79557
+ error2.code = statusCode;
79558
+ reject(error2);
79559
+ response.resume();
79560
+ return;
79561
+ }
79562
+ let rawData = "";
79563
+ response.setEncoding("utf8");
79564
+ response.on("data", (chunk) => {
79565
+ rawData += chunk;
79566
+ });
79567
+ response.on("end", () => {
79568
+ try {
79569
+ const parsedData = JSON.parse(rawData);
79570
+ resolve12(parsedData);
79571
+ } catch (e2) {
79572
+ reject(e2);
79573
+ }
79574
+ });
79575
+ }).on("error", reject).on("timeout", reject);
79576
+ }), "loadPackage");
79577
+ var getMostRecent = /* @__PURE__ */ __name(async ({ full, scope }, distTag) => {
79578
+ const regURL = registryUrl(scope);
79579
+ const url = new URL2(full, regURL);
79580
+ let spec = null;
79581
+ try {
79582
+ spec = await loadPackage(url);
79583
+ } catch (err) {
79584
+ if (err.code && String(err.code).startsWith(4)) {
79585
+ const registryAuthToken = require_registry_auth_token();
79586
+ const authInfo = registryAuthToken(regURL, { recursive: true });
79587
+ spec = await loadPackage(url, authInfo);
79588
+ } else {
79589
+ throw err;
79590
+ }
79591
+ }
79592
+ const version3 = spec["dist-tags"][distTag];
79593
+ if (!version3) {
79594
+ throw new Error(`Distribution tag ${distTag} is not available`);
79595
+ }
79596
+ return version3;
79597
+ }, "getMostRecent");
79598
+ var defaultConfig = {
79599
+ interval: 36e5,
79600
+ distTag: "latest"
79601
+ };
79602
+ var getDetails = /* @__PURE__ */ __name((name3) => {
79603
+ const spec = {
79604
+ full: encode(name3)
79605
+ };
79606
+ if (name3.includes("/")) {
79607
+ const parts = name3.split("/");
79608
+ spec.scope = parts[0];
79609
+ spec.name = parts[1];
79610
+ } else {
79611
+ spec.scope = null;
79612
+ spec.name = name3;
79613
+ }
79614
+ return spec;
79615
+ }, "getDetails");
79616
+ module2.exports = async (pkg, config49) => {
79617
+ if (typeof pkg !== "object") {
79618
+ throw new Error("The first parameter should be your package.json file content");
79619
+ }
79620
+ const details = getDetails(pkg.name);
79621
+ const time = Date.now();
79622
+ const { distTag, interval } = Object.assign({}, defaultConfig, config49);
79623
+ const file2 = await getFile(details, distTag);
79624
+ let latest = null;
79625
+ let shouldCheck = true;
79626
+ ({ shouldCheck, latest } = await evaluateCache(file2, time, interval));
79627
+ if (shouldCheck) {
79628
+ latest = await getMostRecent(details, distTag);
79629
+ await updateCache(file2, latest, time);
79630
+ }
79631
+ const comparision = compareVersions(pkg.version, latest);
79632
+ if (comparision === -1) {
79633
+ return {
79634
+ latest,
79635
+ fromCache: !shouldCheck
79636
+ };
79637
+ }
79638
+ return null;
79639
+ };
79640
+ }
79641
+ });
78510
79642
  var defaultWranglerConfig = {
78511
79643
  /* COMPUTED_FIELDS */
78512
79644
  configPath: void 0,
@@ -78556,6 +79688,8 @@ var defaultWranglerConfig = {
78556
79688
  vectorize: [],
78557
79689
  ai_search_namespaces: [],
78558
79690
  ai_search: [],
79691
+ web_search: void 0,
79692
+ agent_memory: [],
78559
79693
  hyperdrive: [],
78560
79694
  workflows: [],
78561
79695
  secrets_store_secrets: [],
@@ -78990,8 +80124,8 @@ function getErrorMap() {
78990
80124
  }
78991
80125
  __name(getErrorMap, "getErrorMap");
78992
80126
  var makeIssue = /* @__PURE__ */ __name((params) => {
78993
- const { data, path: path42, errorMaps, issueData } = params;
78994
- const fullPath = [...path42, ...issueData.path || []];
80127
+ const { data, path: path52, errorMaps, issueData } = params;
80128
+ const fullPath = [...path52, ...issueData.path || []];
78995
80129
  const fullIssue = {
78996
80130
  ...issueData,
78997
80131
  path: fullPath
@@ -79097,11 +80231,11 @@ var ParseInputLazyPath = class {
79097
80231
  static {
79098
80232
  __name(this, "ParseInputLazyPath");
79099
80233
  }
79100
- constructor(parent, value, path42, key) {
80234
+ constructor(parent, value, path52, key) {
79101
80235
  this._cachedPath = [];
79102
80236
  this.parent = parent;
79103
80237
  this.data = value;
79104
- this._path = path42;
80238
+ this._path = path52;
79105
80239
  this._key = key;
79106
80240
  }
79107
80241
  get path() {
@@ -82594,7 +83728,8 @@ var getWranglerSendMetricsFromEnv = getBooleanEnvironmentVariableFactory({
82594
83728
  variableName: "WRANGLER_SEND_METRICS"
82595
83729
  });
82596
83730
  var getWranglerSendErrorReportsFromEnv = getBooleanEnvironmentVariableFactory({
82597
- variableName: "WRANGLER_SEND_ERROR_REPORTS"
83731
+ variableName: "WRANGLER_SEND_ERROR_REPORTS",
83732
+ defaultValue: false
82598
83733
  });
82599
83734
  var getCloudflareApiEnvironmentFromEnv = getEnvironmentVariableFactory(
82600
83735
  {
@@ -82883,9 +84018,9 @@ Please add "${field}" to "env.${envName}".`
82883
84018
  return rawEnv[field] ?? defaultValue;
82884
84019
  }
82885
84020
  __name(notInheritable, "notInheritable");
82886
- function unwindPropertyPath(root, path42) {
84021
+ function unwindPropertyPath(root, path52) {
82887
84022
  let container = root;
82888
- const parts = path42.split(".");
84023
+ const parts = path52.split(".");
82889
84024
  for (let i = 0; i < parts.length - 1; i++) {
82890
84025
  if (!hasProperty(container, parts[i])) {
82891
84026
  return;
@@ -83157,6 +84292,8 @@ var friendlyBindingNames = {
83157
84292
  vectorize: "Vectorize Index",
83158
84293
  ai_search_namespaces: "AI Search Namespace",
83159
84294
  ai_search: "AI Search Instance",
84295
+ web_search: "Web Search",
84296
+ agent_memory: "Agent Memory",
83160
84297
  hyperdrive: "Hyperdrive Config",
83161
84298
  r2_buckets: "R2 Bucket",
83162
84299
  logfwdr: "logfwdr",
@@ -83209,6 +84346,8 @@ var bindingTypeFriendlyNames = {
83209
84346
  vectorize: "Vectorize Index",
83210
84347
  ai_search_namespace: "AI Search Namespace",
83211
84348
  ai_search: "AI Search Instance",
84349
+ web_search: "Web Search",
84350
+ agent_memory: "Agent Memory",
83212
84351
  hyperdrive: "Hyperdrive Config",
83213
84352
  service: "Worker",
83214
84353
  fetcher: "Service Binding",
@@ -84403,6 +85542,26 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
84403
85542
  validateBindingArray(envName, validateAISearchBinding),
84404
85543
  []
84405
85544
  ),
85545
+ web_search: notInheritable(
85546
+ diagnostics,
85547
+ topLevelEnv,
85548
+ rawConfig,
85549
+ rawEnv,
85550
+ envName,
85551
+ "web_search",
85552
+ validateNamedSimpleBinding(envName),
85553
+ void 0
85554
+ ),
85555
+ agent_memory: notInheritable(
85556
+ diagnostics,
85557
+ topLevelEnv,
85558
+ rawConfig,
85559
+ rawEnv,
85560
+ envName,
85561
+ "agent_memory",
85562
+ validateBindingArray(envName, validateAgentMemoryBinding),
85563
+ []
85564
+ ),
84406
85565
  hyperdrive: notInheritable(
84407
85566
  diagnostics,
84408
85567
  topLevelEnv,
@@ -85199,6 +86358,42 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
85199
86358
  );
85200
86359
  isValid2 = false;
85201
86360
  }
86361
+ if (hasProperty(value, "schedules") && value.schedules !== void 0) {
86362
+ if (typeof value.schedules === "string") {
86363
+ if (value.schedules.length === 0) {
86364
+ diagnostics.errors.push(
86365
+ `"${field}" bindings "schedules" field must not be an empty string.`
86366
+ );
86367
+ isValid2 = false;
86368
+ }
86369
+ } else if (Array.isArray(value.schedules)) {
86370
+ if (value.schedules.length === 0) {
86371
+ diagnostics.errors.push(
86372
+ `"${field}" bindings "schedules" field must not be an empty array.`
86373
+ );
86374
+ isValid2 = false;
86375
+ } else if (!value.schedules.every((s) => typeof s === "string")) {
86376
+ diagnostics.errors.push(
86377
+ `"${field}" bindings should, optionally, have a string or array of strings "schedules" field but got ${JSON.stringify(
86378
+ value
86379
+ )}.`
86380
+ );
86381
+ isValid2 = false;
86382
+ } else if (value.schedules.some((s) => s === "")) {
86383
+ diagnostics.errors.push(
86384
+ `"${field}" bindings "schedules" field must not contain empty strings.`
86385
+ );
86386
+ isValid2 = false;
86387
+ }
86388
+ } else {
86389
+ diagnostics.errors.push(
86390
+ `"${field}" bindings should, optionally, have a string or array of strings "schedules" field but got ${JSON.stringify(
86391
+ value
86392
+ )}.`
86393
+ );
86394
+ isValid2 = false;
86395
+ }
86396
+ }
85202
86397
  if (hasProperty(value, "limits") && value.limits !== void 0) {
85203
86398
  if (typeof value.limits !== "object" || value.limits === null || Array.isArray(value.limits)) {
85204
86399
  diagnostics.errors.push(
@@ -85237,7 +86432,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
85237
86432
  "class_name",
85238
86433
  "script_name",
85239
86434
  "remote",
85240
- "limits"
86435
+ "limits",
86436
+ "schedules"
85241
86437
  ]);
85242
86438
  return isValid2;
85243
86439
  }, "validateWorkflowBinding");
@@ -85449,6 +86645,8 @@ var validateUnsafeBinding = /* @__PURE__ */ __name((diagnostics, field, value) =
85449
86645
  "ai",
85450
86646
  "ai_search_namespace",
85451
86647
  "ai_search",
86648
+ "web_search",
86649
+ "agent_memory",
85452
86650
  "kv_namespace",
85453
86651
  "durable_object_namespace",
85454
86652
  "d1_database",
@@ -86364,6 +87562,36 @@ var validateAISearchBinding = /* @__PURE__ */ __name((diagnostics, field, value)
86364
87562
  ]);
86365
87563
  return isValid2;
86366
87564
  }, "validateAISearchBinding");
87565
+ var validateAgentMemoryBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
87566
+ if (typeof value !== "object" || value === null) {
87567
+ diagnostics.errors.push(
87568
+ `"agent_memory" bindings should be objects, but got ${JSON.stringify(value)}`
87569
+ );
87570
+ return false;
87571
+ }
87572
+ let isValid2 = true;
87573
+ if (!isRequiredProperty(value, "binding", "string")) {
87574
+ diagnostics.errors.push(
87575
+ `"${field}" bindings should have a string "binding" field but got ${JSON.stringify(value)}.`
87576
+ );
87577
+ isValid2 = false;
87578
+ }
87579
+ if (!isRequiredProperty(value, "namespace", "string")) {
87580
+ diagnostics.errors.push(
87581
+ `"${field}" bindings must have a "namespace" field but got ${JSON.stringify(value)}.`
87582
+ );
87583
+ isValid2 = false;
87584
+ }
87585
+ if (!isRemoteValid(value, field, diagnostics)) {
87586
+ isValid2 = false;
87587
+ }
87588
+ validateAdditionalProperties(diagnostics, field, Object.keys(value), [
87589
+ "binding",
87590
+ "namespace",
87591
+ "remote"
87592
+ ]);
87593
+ return isValid2;
87594
+ }, "validateAgentMemoryBinding");
86367
87595
  var validateHyperdriveBinding = /* @__PURE__ */ __name((diagnostics, field, value) => {
86368
87596
  if (typeof value !== "object" || value === null) {
86369
87597
  diagnostics.errors.push(
@@ -86863,9 +88091,17 @@ var validatePipelineBinding = /* @__PURE__ */ __name((diagnostics, field, value)
86863
88091
  );
86864
88092
  isValid2 = false;
86865
88093
  }
86866
- if (!isRequiredProperty(value, "pipeline", "string")) {
88094
+ const hasStream = isOptionalProperty(value, "stream", "string");
88095
+ const hasPipeline = isOptionalProperty(value, "pipeline", "string");
88096
+ const v = value;
88097
+ if (hasStream && v.stream) ;
88098
+ else if (hasPipeline && v.pipeline) {
88099
+ diagnostics.warnings.push(
88100
+ `The "pipeline" field in "${field}" bindings is deprecated. Use "stream" instead.`
88101
+ );
88102
+ } else {
86867
88103
  diagnostics.errors.push(
86868
- `"${field}" bindings must have a string "pipeline" field but got ${JSON.stringify(
88104
+ `"${field}" bindings must have a string "stream" field but got ${JSON.stringify(
86869
88105
  value
86870
88106
  )}.`
86871
88107
  );
@@ -86876,6 +88112,7 @@ var validatePipelineBinding = /* @__PURE__ */ __name((diagnostics, field, value)
86876
88112
  }
86877
88113
  validateAdditionalProperties(diagnostics, field, Object.keys(value), [
86878
88114
  "binding",
88115
+ "stream",
86879
88116
  "pipeline",
86880
88117
  "remote"
86881
88118
  ]);
@@ -87773,6 +89010,59 @@ function isDockerfile(imagePath, configPath) {
87773
89010
  return false;
87774
89011
  }
87775
89012
  __name(isDockerfile, "isDockerfile");
89013
+ var BINDING_LOCAL_SUPPORT = {
89014
+ plain_text: "local-only",
89015
+ secret_text: "local-only",
89016
+ json: "local-only",
89017
+ wasm_module: "local-only",
89018
+ text_blob: "local-only",
89019
+ data_blob: "local-only",
89020
+ version_metadata: "local-only",
89021
+ inherit: "local-only",
89022
+ logfwdr: "local-only",
89023
+ assets: "local-only",
89024
+ unsafe_hello_world: "local-only",
89025
+ durable_object_namespace: "local-only",
89026
+ hyperdrive: "local-only",
89027
+ fetcher: "local-only",
89028
+ analytics_engine: "local-only",
89029
+ secrets_store_secret: "local-only",
89030
+ ratelimit: "local-only",
89031
+ worker_loader: "local-only",
89032
+ kv_namespace: "local-and-remote",
89033
+ r2_bucket: "local-and-remote",
89034
+ d1: "local-and-remote",
89035
+ workflow: "local-and-remote",
89036
+ browser: "local-and-remote",
89037
+ images: "local-and-remote",
89038
+ stream: "local-and-remote",
89039
+ send_email: "local-and-remote",
89040
+ pipeline: "local-and-remote",
89041
+ service: "local-and-remote",
89042
+ // TODO: Miniflare currently ignores `remote: true` on queues, tracked in #13727.
89043
+ queue: "local-and-remote",
89044
+ vectorize: "remote",
89045
+ mtls_certificate: "remote",
89046
+ dispatch_namespace: "remote",
89047
+ // Reach out to the @cloudflare/wrangler team before adding anything here
89048
+ ai: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89049
+ ai_search: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89050
+ ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89051
+ media: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89052
+ artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89053
+ flagship: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89054
+ vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89055
+ vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89056
+ web_search: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
89057
+ agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
89058
+ };
89059
+ function getBindingLocalSupport(type) {
89060
+ if (type in BINDING_LOCAL_SUPPORT) {
89061
+ return BINDING_LOCAL_SUPPORT[type];
89062
+ }
89063
+ return "local-only";
89064
+ }
89065
+ __name(getBindingLocalSupport, "getBindingLocalSupport");
87776
89066
  var supportedPagesConfigFields = [
87777
89067
  "pages_build_output_dir",
87778
89068
  "name",
@@ -87902,6 +89192,64 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
87902
89192
  }
87903
89193
  }
87904
89194
  __name(validateDurableObjectBinding2, "validateDurableObjectBinding");
89195
+ var import_signal_exit = __toESM2(require_signal_exit());
89196
+ function getWranglerHiddenDirPath(projectRoot) {
89197
+ projectRoot ??= process.cwd();
89198
+ return import_node_path2.default.join(projectRoot, ".wrangler");
89199
+ }
89200
+ __name(getWranglerHiddenDirPath, "getWranglerHiddenDirPath");
89201
+ var STALE_WRANGLER_TMP_DIR_MS = 24 * 60 * 60 * 1e3;
89202
+ var sweptTmpRoots = /* @__PURE__ */ new Set();
89203
+ function sweepStaleWranglerTmpDirs(tmpRoot) {
89204
+ if (sweptTmpRoots.has(tmpRoot)) {
89205
+ return;
89206
+ }
89207
+ sweptTmpRoots.add(tmpRoot);
89208
+ let entries;
89209
+ try {
89210
+ entries = import_node_fs2.default.readdirSync(tmpRoot, { withFileTypes: true });
89211
+ } catch {
89212
+ return;
89213
+ }
89214
+ const cutoff = Date.now() - STALE_WRANGLER_TMP_DIR_MS;
89215
+ for (const entry of entries) {
89216
+ if (!entry.isDirectory()) {
89217
+ continue;
89218
+ }
89219
+ const entryPath = import_node_path2.default.join(tmpRoot, entry.name);
89220
+ try {
89221
+ if (import_node_fs2.default.statSync(entryPath).mtimeMs < cutoff) {
89222
+ removeDirSync(entryPath);
89223
+ }
89224
+ } catch {
89225
+ }
89226
+ }
89227
+ }
89228
+ __name(sweepStaleWranglerTmpDirs, "sweepStaleWranglerTmpDirs");
89229
+ function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
89230
+ const tmpRoot = import_node_path2.default.join(getWranglerHiddenDirPath(projectRoot), "tmp");
89231
+ import_node_fs2.default.mkdirSync(tmpRoot, { recursive: true });
89232
+ sweepStaleWranglerTmpDirs(tmpRoot);
89233
+ const tmpPrefix = import_node_path2.default.join(tmpRoot, `${prefix}-`);
89234
+ const tmpDir = import_node_fs2.default.realpathSync(import_node_fs2.default.mkdtempSync(tmpPrefix));
89235
+ const cleanupDir = /* @__PURE__ */ __name(() => {
89236
+ if (cleanup) {
89237
+ try {
89238
+ removeDirSync(tmpDir);
89239
+ } catch {
89240
+ }
89241
+ }
89242
+ }, "cleanupDir");
89243
+ const removeExitListener = (0, import_signal_exit.default)(cleanupDir);
89244
+ return {
89245
+ path: tmpDir,
89246
+ remove() {
89247
+ removeExitListener();
89248
+ cleanupDir();
89249
+ }
89250
+ };
89251
+ }
89252
+ __name(getWranglerTmpDir, "getWranglerTmpDir");
87905
89253
  var import_command_exists = __toESM2(require_command_exists2());
87906
89254
  var UPDATE_SERVICE_URL = "https://update.argotunnel.com";
87907
89255
  var CLOUDFLARED_VERSION_PATTERN = /^\d{4}\.\d+\.\d+$/;
@@ -88275,18 +89623,6 @@ __name(downloadCloudflared, "downloadCloudflared");
88275
89623
  async function downloadAndExtractTarball(response, expectedChecksum, binPath, cacheDir) {
88276
89624
  const tempTarPath = (0, import_node_path2.join)(cacheDir, "cloudflared.tgz");
88277
89625
  const buffer = Buffer.from(await response.arrayBuffer());
88278
- if (expectedChecksum) {
88279
- const actualSha256 = sha256Hex(buffer);
88280
- if (actualSha256 !== expectedChecksum) {
88281
- throw new UserError(
88282
- `[cloudflared] SHA256 mismatch for downloaded cloudflared tarball.
88283
-
88284
- Expected: ${expectedChecksum}
88285
- Actual: ${actualSha256}`,
88286
- { telemetryMessage: "tunnel cloudflared tarball checksum mismatch" }
88287
- );
88288
- }
88289
- }
88290
89626
  (0, import_node_fs2.writeFileSync)(tempTarPath, buffer);
88291
89627
  try {
88292
89628
  (0, import_node_child_process.execFileSync)("tar", ["-xzf", tempTarPath, "-C", cacheDir], {
@@ -88296,6 +89632,21 @@ Actual: ${actualSha256}`,
88296
89632
  if (extractedPath !== binPath && (0, import_node_fs2.existsSync)(extractedPath)) {
88297
89633
  (0, import_node_fs2.renameSync)(extractedPath, binPath);
88298
89634
  }
89635
+ if (expectedChecksum) {
89636
+ const extractedBinary = (0, import_node_fs2.readFileSync)(binPath);
89637
+ const actualSha256 = sha256Hex(extractedBinary);
89638
+ if (actualSha256 !== expectedChecksum) {
89639
+ throw new UserError(
89640
+ `[cloudflared] SHA256 mismatch for downloaded cloudflared binary.
89641
+
89642
+ Expected: ${expectedChecksum}
89643
+ Actual: ${actualSha256}`,
89644
+ {
89645
+ telemetryMessage: "tunnel cloudflared extracted binary checksum mismatch"
89646
+ }
89647
+ );
89648
+ }
89649
+ }
88299
89650
  } finally {
88300
89651
  try {
88301
89652
  if ((0, import_node_fs2.existsSync)(tempTarPath)) {
@@ -88651,6 +90002,35 @@ The local dev server started at ${origin.href}.
88651
90002
  return new Error(errorMessage);
88652
90003
  }
88653
90004
  __name(createTunnelStartupError, "createTunnelStartupError");
90005
+ var import_update_check = __toESM2(require_update_check());
90006
+ var UPDATE_CHECK_TIMEOUT_MS = 3e3;
90007
+ var TIMED_OUT = /* @__PURE__ */ Symbol("timed_out");
90008
+ async function fetchLatestNpmVersion(name3, version3) {
90009
+ let result = null;
90010
+ try {
90011
+ result = await Promise.race([
90012
+ (0, import_update_check.default)(
90013
+ { name: name3, version: version3 },
90014
+ {
90015
+ distTag: version3.startsWith("0.0.0") ? "beta" : "latest"
90016
+ }
90017
+ ),
90018
+ timersPromises.setTimeout(UPDATE_CHECK_TIMEOUT_MS, TIMED_OUT, {
90019
+ ref: false
90020
+ })
90021
+ ]);
90022
+ } catch {
90023
+ return { status: "failed" };
90024
+ }
90025
+ if (result === TIMED_OUT) {
90026
+ return { status: "failed" };
90027
+ }
90028
+ if (result === null) {
90029
+ return { status: "up-to-date" };
90030
+ }
90031
+ return { status: "update-available", latest: result.latest };
90032
+ }
90033
+ __name(fetchLatestNpmVersion, "fetchLatestNpmVersion");
88654
90034
 
88655
90035
  // ../cli/dist/check-macos-version.mjs
88656
90036
  var import_ci_info = __toESM(require_ci_info(), 1);
@@ -89633,9 +91013,9 @@ var import_node_process5 = __toESM(require("node:process"), 1);
89633
91013
  // ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
89634
91014
  var import_node_process4 = __toESM(require("node:process"), 1);
89635
91015
  var import_onetime = __toESM(require_onetime(), 1);
89636
- var import_signal_exit = __toESM(require_signal_exit(), 1);
91016
+ var import_signal_exit2 = __toESM(require_signal_exit2(), 1);
89637
91017
  var restoreCursor = (0, import_onetime.default)(() => {
89638
- (0, import_signal_exit.default)(() => {
91018
+ (0, import_signal_exit2.default)(() => {
89639
91019
  import_node_process4.default.stderr.write("\x1B[?25h");
89640
91020
  }, { alwaysLast: true });
89641
91021
  });
@@ -95618,7 +96998,7 @@ var Yargs = YargsFactory(esm_default2);
95618
96998
  var yargs_default = Yargs;
95619
96999
 
95620
97000
  // package.json
95621
- var version = "2.68.3";
97001
+ var version = "2.69.0";
95622
97002
 
95623
97003
  // src/metrics.ts
95624
97004
  var import_node_async_hooks = require("node:async_hooks");
@@ -97829,14 +99209,14 @@ __name2(getPropertyName, "getPropertyName");
97829
99209
  var package_default = {
97830
99210
  name: "frameworks_clis_info",
97831
99211
  dependencies: {
97832
- "@angular/create": "21.2.11",
97833
- "@tanstack/create-start": "0.59.32",
97834
- "create-analog": "2.5.1",
99212
+ "@angular/create": "21.2.12",
99213
+ "@tanstack/cli": "0.68.0",
99214
+ "create-analog": "2.5.2",
97835
99215
  "create-astro": "5.0.6",
97836
99216
  "create-docusaurus": "3.10.1",
97837
99217
  "create-hono": "0.19.4",
97838
99218
  "create-next-app": "16.2.6",
97839
- "create-qwik": "1.19.2",
99219
+ "create-qwik": "1.20.0",
97840
99220
  "create-react-router": "7.15.1",
97841
99221
  "create-rwsdk": "3.1.3",
97842
99222
  "create-solid": "0.7.0",
@@ -100008,6 +101388,8 @@ var c3_default43 = config40;
100008
101388
  var { npm: npm19 } = detectPackageManager();
100009
101389
  var generate25 = async (ctx) => {
100010
101390
  await runFrameworkGenerator(ctx, [
101391
+ // @tanstack/cli uses `create` as a subcommand
101392
+ "create",
100011
101393
  ctx.project.name,
100012
101394
  "--deployment",
100013
101395
  "cloudflare",
@@ -100022,7 +101404,7 @@ var config41 = {
100022
101404
  configVersion: 1,
100023
101405
  id: "tanstack-start",
100024
101406
  platform: "workers",
100025
- frameworkCli: "@tanstack/create-start",
101407
+ frameworkCli: "@tanstack/cli",
100026
101408
  displayName: "TanStack Start",
100027
101409
  generate: generate25,
100028
101410
  transformPackageJson: async () => ({
@@ -100304,7 +101686,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
100304
101686
  var import_node_assert6 = __toESM(require("node:assert"));
100305
101687
 
100306
101688
  // ../wrangler/package.json
100307
- var version2 = "4.93.0";
101689
+ var version2 = "4.96.0";
100308
101690
 
100309
101691
  // src/git.ts
100310
101692
  var offerGit = async (ctx) => {
@@ -104396,6 +105778,39 @@ smol-toml/dist/index.js:
104396
105778
  */
104397
105779
  /*! Bundled license information:
104398
105780
 
105781
+ deep-extend/lib/deep-extend.js:
105782
+ (*!
105783
+ * @description Recursive object extending
105784
+ * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
105785
+ * @license MIT
105786
+ *
105787
+ * The MIT License (MIT)
105788
+ *
105789
+ * Copyright (c) 2013-2018 Viacheslav Lotsmanov
105790
+ *
105791
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
105792
+ * this software and associated documentation files (the "Software"), to deal in
105793
+ * the Software without restriction, including without limitation the rights to
105794
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
105795
+ * the Software, and to permit persons to whom the Software is furnished to do so,
105796
+ * subject to the following conditions:
105797
+ *
105798
+ * The above copyright notice and this permission notice shall be included in all
105799
+ * copies or substantial portions of the Software.
105800
+ *
105801
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105802
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
105803
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
105804
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
105805
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
105806
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
105807
+ *)
105808
+
105809
+ safe-buffer/index.js:
105810
+ (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
105811
+ */
105812
+ /*! Bundled license information:
105813
+
104399
105814
  undici/lib/web/fetch/body.js:
104400
105815
  (*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
104401
105816