@boxes-dev/dvb 1.0.27 → 1.0.29

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/bin/dvb.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="715ed7b2-d59f-5125-ada3-3f07ca10b2ed")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="711536f2-2991-528d-9542-1452d269ca68")}catch(e){}}();
4
4
 
5
5
  var __create = Object.create;
6
6
  var __defProp = Object.defineProperty;
@@ -21449,9 +21449,9 @@ var require_getMachineId_linux = __commonJS({
21449
21449
  var api_1 = require_src();
21450
21450
  async function getMachineId() {
21451
21451
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
21452
- for (const path27 of paths) {
21452
+ for (const path28 of paths) {
21453
21453
  try {
21454
- const result = await fs_1.promises.readFile(path27, { encoding: "utf8" });
21454
+ const result = await fs_1.promises.readFile(path28, { encoding: "utf8" });
21455
21455
  return result.trim();
21456
21456
  } catch (e2) {
21457
21457
  api_1.diag.debug(`error reading machine id: ${e2}`);
@@ -21657,7 +21657,7 @@ var require_ProcessDetector = __commonJS({
21657
21657
  exports2.processDetector = void 0;
21658
21658
  var api_1 = require_src();
21659
21659
  var semconv_1 = require_semconv5();
21660
- var os15 = require("os");
21660
+ var os16 = require("os");
21661
21661
  var ProcessDetector = class {
21662
21662
  detect(_config) {
21663
21663
  const attributes = {
@@ -21677,7 +21677,7 @@ var require_ProcessDetector = __commonJS({
21677
21677
  attributes[semconv_1.ATTR_PROCESS_COMMAND] = process.argv[1];
21678
21678
  }
21679
21679
  try {
21680
- const userInfo = os15.userInfo();
21680
+ const userInfo = os16.userInfo();
21681
21681
  attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo.username;
21682
21682
  } catch (e2) {
21683
21683
  api_1.diag.debug(`error obtaining process owner: ${e2}`);
@@ -24468,8 +24468,8 @@ var require_otlp_node_http_env_configuration = __commonJS({
24468
24468
  "use strict";
24469
24469
  Object.defineProperty(exports2, "__esModule", { value: true });
24470
24470
  exports2.getNodeHttpConfigurationFromEnvironment = void 0;
24471
- var fs26 = require("fs");
24472
- var path27 = require("path");
24471
+ var fs27 = require("fs");
24472
+ var path28 = require("path");
24473
24473
  var core_1 = require_src3();
24474
24474
  var api_1 = require_src();
24475
24475
  var shared_env_configuration_1 = require_shared_env_configuration();
@@ -24494,7 +24494,7 @@ var require_otlp_node_http_env_configuration = __commonJS({
24494
24494
  return void 0;
24495
24495
  }
24496
24496
  }
24497
- function appendResourcePathToUrl(url, path28) {
24497
+ function appendResourcePathToUrl(url, path29) {
24498
24498
  try {
24499
24499
  new URL(url);
24500
24500
  } catch {
@@ -24504,11 +24504,11 @@ var require_otlp_node_http_env_configuration = __commonJS({
24504
24504
  if (!url.endsWith("/")) {
24505
24505
  url = url + "/";
24506
24506
  }
24507
- url += path28;
24507
+ url += path29;
24508
24508
  try {
24509
24509
  new URL(url);
24510
24510
  } catch {
24511
- api_1.diag.warn(`Configuration: Provided URL appended with '${path28}' is not a valid URL, using 'undefined' instead of '${url}'`);
24511
+ api_1.diag.warn(`Configuration: Provided URL appended with '${path29}' is not a valid URL, using 'undefined' instead of '${url}'`);
24512
24512
  return void 0;
24513
24513
  }
24514
24514
  return url;
@@ -24533,7 +24533,7 @@ var require_otlp_node_http_env_configuration = __commonJS({
24533
24533
  const filePath = signalSpecificPath ?? nonSignalSpecificPath;
24534
24534
  if (filePath != null) {
24535
24535
  try {
24536
- return fs26.readFileSync(path27.resolve(process.cwd(), filePath));
24536
+ return fs27.readFileSync(path28.resolve(process.cwd(), filePath));
24537
24537
  } catch {
24538
24538
  api_1.diag.warn(warningMessage);
24539
24539
  return void 0;
@@ -34151,7 +34151,7 @@ var require_ms = __commonJS({
34151
34151
  var m = s2 * 60;
34152
34152
  var h2 = m * 60;
34153
34153
  var d2 = h2 * 24;
34154
- var w2 = d2 * 7;
34154
+ var w3 = d2 * 7;
34155
34155
  var y2 = d2 * 365.25;
34156
34156
  module2.exports = function(val, options) {
34157
34157
  options = options || {};
@@ -34188,7 +34188,7 @@ var require_ms = __commonJS({
34188
34188
  case "weeks":
34189
34189
  case "week":
34190
34190
  case "w":
34191
- return n2 * w2;
34191
+ return n2 * w3;
34192
34192
  case "days":
34193
34193
  case "day":
34194
34194
  case "d":
@@ -34814,19 +34814,19 @@ var require_module_details_from_path = __commonJS({
34814
34814
  basedir += segments[i2] + sep3;
34815
34815
  }
34816
34816
  }
34817
- var path27 = "";
34817
+ var path28 = "";
34818
34818
  var lastSegmentIndex = segments.length - 1;
34819
34819
  for (var i22 = index + offset; i22 <= lastSegmentIndex; i22++) {
34820
34820
  if (i22 === lastSegmentIndex) {
34821
- path27 += segments[i22];
34821
+ path28 += segments[i22];
34822
34822
  } else {
34823
- path27 += segments[i22] + sep3;
34823
+ path28 += segments[i22] + sep3;
34824
34824
  }
34825
34825
  }
34826
34826
  return {
34827
34827
  name,
34828
34828
  basedir,
34829
- path: path27
34829
+ path: path28
34830
34830
  };
34831
34831
  };
34832
34832
  }
@@ -34836,7 +34836,7 @@ var require_module_details_from_path = __commonJS({
34836
34836
  var require_require_in_the_middle = __commonJS({
34837
34837
  "../../node_modules/require-in-the-middle/index.js"(exports2, module2) {
34838
34838
  "use strict";
34839
- var path27 = require("path");
34839
+ var path28 = require("path");
34840
34840
  var Module = require("module");
34841
34841
  var debug2 = require_src22()("require-in-the-middle");
34842
34842
  var moduleDetailsFromPath = require_module_details_from_path();
@@ -34981,7 +34981,7 @@ var require_require_in_the_middle = __commonJS({
34981
34981
  }
34982
34982
  moduleName2 = filename;
34983
34983
  } else if (hasWhitelist === true && modules.includes(filename)) {
34984
- const parsedPath = path27.parse(filename);
34984
+ const parsedPath = path28.parse(filename);
34985
34985
  moduleName2 = parsedPath.name;
34986
34986
  basedir = parsedPath.dir;
34987
34987
  } else {
@@ -35019,7 +35019,7 @@ var require_require_in_the_middle = __commonJS({
35019
35019
  }
35020
35020
  if (res !== filename) {
35021
35021
  if (internals === true) {
35022
- moduleName2 = moduleName2 + path27.sep + path27.relative(basedir, filename);
35022
+ moduleName2 = moduleName2 + path28.sep + path28.relative(basedir, filename);
35023
35023
  debug2("preparing to process require of internal file: %s", moduleName2);
35024
35024
  } else {
35025
35025
  debug2("ignoring require of non-main module file: %s", res);
@@ -35055,8 +35055,8 @@ var require_require_in_the_middle = __commonJS({
35055
35055
  }
35056
35056
  };
35057
35057
  function resolveModuleName(stat) {
35058
- const normalizedPath = path27.sep !== "/" ? stat.path.split(path27.sep).join("/") : stat.path;
35059
- return path27.posix.join(stat.name, normalizedPath).replace(normalize2, "");
35058
+ const normalizedPath = path28.sep !== "/" ? stat.path.split(path28.sep).join("/") : stat.path;
35059
+ return path28.posix.join(stat.name, normalizedPath).replace(normalize2, "");
35060
35060
  }
35061
35061
  }
35062
35062
  });
@@ -35141,7 +35141,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
35141
35141
  Object.defineProperty(exports2, "__esModule", { value: true });
35142
35142
  exports2.RequireInTheMiddleSingleton = void 0;
35143
35143
  var require_in_the_middle_1 = require_require_in_the_middle();
35144
- var path27 = require("path");
35144
+ var path28 = require("path");
35145
35145
  var ModuleNameTrie_1 = require_ModuleNameTrie();
35146
35146
  var isMocha = [
35147
35147
  "afterEach",
@@ -35205,7 +35205,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
35205
35205
  };
35206
35206
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
35207
35207
  function normalizePathSeparators(moduleNameOrPath) {
35208
- return path27.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path27.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
35208
+ return path28.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path28.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
35209
35209
  }
35210
35210
  }
35211
35211
  });
@@ -35266,7 +35266,7 @@ var require_register = __commonJS({
35266
35266
  // ../../node_modules/import-in-the-middle/index.js
35267
35267
  var require_import_in_the_middle = __commonJS({
35268
35268
  "../../node_modules/import-in-the-middle/index.js"(exports2, module2) {
35269
- var path27 = require("path");
35269
+ var path28 = require("path");
35270
35270
  var moduleDetailsFromPath = require_module_details_from_path();
35271
35271
  var { fileURLToPath } = require("url");
35272
35272
  var { MessageChannel } = require("worker_threads");
@@ -35379,7 +35379,7 @@ var require_import_in_the_middle = __commonJS({
35379
35379
  } else if (baseDir.endsWith(specifiers.get(loadUrl))) {
35380
35380
  callHookFn(hookFn, namespace, name, baseDir);
35381
35381
  } else if (internals) {
35382
- const internalPath = name + path27.sep + path27.relative(baseDir, filePath);
35382
+ const internalPath = name + path28.sep + path28.relative(baseDir, filePath);
35383
35383
  callHookFn(hookFn, namespace, internalPath, baseDir);
35384
35384
  }
35385
35385
  } else if (matchArg === specifier) {
@@ -35454,7 +35454,7 @@ var require_instrumentation2 = __commonJS({
35454
35454
  "use strict";
35455
35455
  Object.defineProperty(exports2, "__esModule", { value: true });
35456
35456
  exports2.InstrumentationBase = void 0;
35457
- var path27 = require("path");
35457
+ var path28 = require("path");
35458
35458
  var util_1 = require("util");
35459
35459
  var semver_1 = require_semver2();
35460
35460
  var shimmer_1 = require_shimmer();
@@ -35552,7 +35552,7 @@ var require_instrumentation2 = __commonJS({
35552
35552
  }
35553
35553
  _extractPackageVersion(baseDir) {
35554
35554
  try {
35555
- const json = (0, fs_1.readFileSync)(path27.join(baseDir, "package.json"), {
35555
+ const json = (0, fs_1.readFileSync)(path28.join(baseDir, "package.json"), {
35556
35556
  encoding: "utf8"
35557
35557
  });
35558
35558
  const version2 = JSON.parse(json).version;
@@ -35594,7 +35594,7 @@ var require_instrumentation2 = __commonJS({
35594
35594
  return exports3;
35595
35595
  }
35596
35596
  const files = module3.files ?? [];
35597
- const normalizedName = path27.normalize(name);
35597
+ const normalizedName = path28.normalize(name);
35598
35598
  const supportedFileInstrumentations = files.filter((f2) => f2.name === normalizedName && isSupported(f2.supportedVersions, version2, module3.includePrerelease));
35599
35599
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
35600
35600
  file.moduleExports = patchedExports;
@@ -35640,8 +35640,8 @@ var require_instrumentation2 = __commonJS({
35640
35640
  this._warnOnPreloadedModules();
35641
35641
  for (const module3 of this._modules) {
35642
35642
  const hookFn = (exports3, name, baseDir) => {
35643
- if (!baseDir && path27.isAbsolute(name)) {
35644
- const parsedPath = path27.parse(name);
35643
+ if (!baseDir && path28.isAbsolute(name)) {
35644
+ const parsedPath = path28.parse(name);
35645
35645
  name = parsedPath.name;
35646
35646
  baseDir = parsedPath.dir;
35647
35647
  }
@@ -35650,7 +35650,7 @@ var require_instrumentation2 = __commonJS({
35650
35650
  const onRequire = (exports3, name, baseDir) => {
35651
35651
  return this._onRequire(module3, exports3, name, baseDir);
35652
35652
  };
35653
- const hook = path27.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
35653
+ const hook = path28.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
35654
35654
  this._hooks.push(hook);
35655
35655
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: true }, hookFn);
35656
35656
  this._hooks.push(esmHook);
@@ -36580,14 +36580,14 @@ var require_tls_helpers = __commonJS({
36580
36580
  Object.defineProperty(exports2, "__esModule", { value: true });
36581
36581
  exports2.CIPHER_SUITES = void 0;
36582
36582
  exports2.getDefaultRootsData = getDefaultRootsData;
36583
- var fs26 = require("fs");
36583
+ var fs27 = require("fs");
36584
36584
  exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
36585
36585
  var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
36586
36586
  var defaultRootsData = null;
36587
36587
  function getDefaultRootsData() {
36588
36588
  if (DEFAULT_ROOTS_FILE_PATH) {
36589
36589
  if (defaultRootsData === null) {
36590
- defaultRootsData = fs26.readFileSync(DEFAULT_ROOTS_FILE_PATH);
36590
+ defaultRootsData = fs27.readFileSync(DEFAULT_ROOTS_FILE_PATH);
36591
36591
  }
36592
36592
  return defaultRootsData;
36593
36593
  }
@@ -36618,19 +36618,19 @@ var require_uri_parser = __commonJS({
36618
36618
  };
36619
36619
  }
36620
36620
  var NUMBER_REGEX = /^\d+$/;
36621
- function splitHostPort(path27) {
36622
- if (path27.startsWith("[")) {
36623
- const hostEnd = path27.indexOf("]");
36621
+ function splitHostPort(path28) {
36622
+ if (path28.startsWith("[")) {
36623
+ const hostEnd = path28.indexOf("]");
36624
36624
  if (hostEnd === -1) {
36625
36625
  return null;
36626
36626
  }
36627
- const host = path27.substring(1, hostEnd);
36627
+ const host = path28.substring(1, hostEnd);
36628
36628
  if (host.indexOf(":") === -1) {
36629
36629
  return null;
36630
36630
  }
36631
- if (path27.length > hostEnd + 1) {
36632
- if (path27[hostEnd + 1] === ":") {
36633
- const portString = path27.substring(hostEnd + 2);
36631
+ if (path28.length > hostEnd + 1) {
36632
+ if (path28[hostEnd + 1] === ":") {
36633
+ const portString = path28.substring(hostEnd + 2);
36634
36634
  if (NUMBER_REGEX.test(portString)) {
36635
36635
  return {
36636
36636
  host,
@@ -36648,7 +36648,7 @@ var require_uri_parser = __commonJS({
36648
36648
  };
36649
36649
  }
36650
36650
  } else {
36651
- const splitPath2 = path27.split(":");
36651
+ const splitPath2 = path28.split(":");
36652
36652
  if (splitPath2.length === 2) {
36653
36653
  if (NUMBER_REGEX.test(splitPath2[1])) {
36654
36654
  return {
@@ -36660,7 +36660,7 @@ var require_uri_parser = __commonJS({
36660
36660
  }
36661
36661
  } else {
36662
36662
  return {
36663
- host: path27
36663
+ host: path28
36664
36664
  };
36665
36665
  }
36666
36666
  }
@@ -37237,7 +37237,7 @@ var require_service_config = __commonJS({
37237
37237
  exports2.validateRetryThrottling = validateRetryThrottling;
37238
37238
  exports2.validateServiceConfig = validateServiceConfig;
37239
37239
  exports2.extractAndSelectServiceConfig = extractAndSelectServiceConfig;
37240
- var os15 = require("os");
37240
+ var os16 = require("os");
37241
37241
  var constants_1 = require_constants9();
37242
37242
  var DURATION_REGEX = /^\d+(\.\d{1,9})?s$/;
37243
37243
  var CLIENT_LANGUAGE_STRING = "node";
@@ -37536,7 +37536,7 @@ var require_service_config = __commonJS({
37536
37536
  if (Array.isArray(validatedConfig.clientHostname)) {
37537
37537
  let hostnameMatched = false;
37538
37538
  for (const hostname2 of validatedConfig.clientHostname) {
37539
- if (hostname2 === os15.hostname()) {
37539
+ if (hostname2 === os16.hostname()) {
37540
37540
  hostnameMatched = true;
37541
37541
  }
37542
37542
  }
@@ -39660,14 +39660,14 @@ var require_client_interceptors = __commonJS({
39660
39660
  }
39661
39661
  };
39662
39662
  exports2.InterceptingCall = InterceptingCall;
39663
- function getCall(channel3, path27, options) {
39663
+ function getCall(channel3, path28, options) {
39664
39664
  var _a2, _b2;
39665
39665
  const deadline = (_a2 = options.deadline) !== null && _a2 !== void 0 ? _a2 : Infinity;
39666
39666
  const host = options.host;
39667
39667
  const parent = (_b2 = options.parent) !== null && _b2 !== void 0 ? _b2 : null;
39668
39668
  const propagateFlags = options.propagate_flags;
39669
39669
  const credentials = options.credentials;
39670
- const call = channel3.createCall(path27, deadline, host, parent, propagateFlags);
39670
+ const call = channel3.createCall(path28, deadline, host, parent, propagateFlags);
39671
39671
  if (credentials) {
39672
39672
  call.setCredentials(credentials);
39673
39673
  }
@@ -40237,9 +40237,9 @@ var require_make_client = __commonJS({
40237
40237
  ServiceClientImpl.serviceName = serviceName;
40238
40238
  return ServiceClientImpl;
40239
40239
  }
40240
- function partial(fn, path27, serialize, deserialize) {
40240
+ function partial(fn, path28, serialize, deserialize) {
40241
40241
  return function(...args) {
40242
- return fn.call(this, path27, serialize, deserialize, ...args);
40242
+ return fn.call(this, path28, serialize, deserialize, ...args);
40243
40243
  };
40244
40244
  }
40245
40245
  function isProtobufTypeDefinition(obj) {
@@ -41598,7 +41598,7 @@ var require_fetch = __commonJS({
41598
41598
  module2.exports = fetch2;
41599
41599
  var asPromise = require_aspromise();
41600
41600
  var inquire2 = require_inquire();
41601
- var fs26 = inquire2("fs");
41601
+ var fs27 = inquire2("fs");
41602
41602
  function fetch2(filename, options, callback) {
41603
41603
  if (typeof options === "function") {
41604
41604
  callback = options;
@@ -41607,8 +41607,8 @@ var require_fetch = __commonJS({
41607
41607
  options = {};
41608
41608
  if (!callback)
41609
41609
  return asPromise(fetch2, this, filename, options);
41610
- if (!options.xhr && fs26 && fs26.readFile)
41611
- return fs26.readFile(filename, function fetchReadFileCallback(err, contents) {
41610
+ if (!options.xhr && fs27 && fs27.readFile)
41611
+ return fs27.readFile(filename, function fetchReadFileCallback(err, contents) {
41612
41612
  return err && typeof XMLHttpRequest !== "undefined" ? fetch2.xhr(filename, options, callback) : err ? callback(err) : callback(null, options.binary ? contents : contents.toString("utf8"));
41613
41613
  });
41614
41614
  return fetch2.xhr(filename, options, callback);
@@ -41646,15 +41646,15 @@ var require_fetch = __commonJS({
41646
41646
  var require_path = __commonJS({
41647
41647
  "../../node_modules/@protobufjs/path/index.js"(exports2) {
41648
41648
  "use strict";
41649
- var path27 = exports2;
41649
+ var path28 = exports2;
41650
41650
  var isAbsolute2 = (
41651
41651
  /**
41652
41652
  * Tests if the specified path is absolute.
41653
41653
  * @param {string} path Path to test
41654
41654
  * @returns {boolean} `true` if path is absolute
41655
41655
  */
41656
- path27.isAbsolute = function isAbsolute3(path28) {
41657
- return /^(?:\/|\w+:)/.test(path28);
41656
+ path28.isAbsolute = function isAbsolute3(path29) {
41657
+ return /^(?:\/|\w+:)/.test(path29);
41658
41658
  }
41659
41659
  );
41660
41660
  var normalize2 = (
@@ -41663,9 +41663,9 @@ var require_path = __commonJS({
41663
41663
  * @param {string} path Path to normalize
41664
41664
  * @returns {string} Normalized path
41665
41665
  */
41666
- path27.normalize = function normalize3(path28) {
41667
- path28 = path28.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
41668
- var parts = path28.split("/"), absolute = isAbsolute2(path28), prefix = "";
41666
+ path28.normalize = function normalize3(path29) {
41667
+ path29 = path29.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
41668
+ var parts = path29.split("/"), absolute = isAbsolute2(path29), prefix = "";
41669
41669
  if (absolute)
41670
41670
  prefix = parts.shift() + "/";
41671
41671
  for (var i2 = 0; i2 < parts.length; ) {
@@ -41684,7 +41684,7 @@ var require_path = __commonJS({
41684
41684
  return prefix + parts.join("/");
41685
41685
  }
41686
41686
  );
41687
- path27.resolve = function resolve2(originPath, includePath, alreadyNormalized) {
41687
+ path28.resolve = function resolve2(originPath, includePath, alreadyNormalized) {
41688
41688
  if (!alreadyNormalized)
41689
41689
  includePath = normalize2(includePath);
41690
41690
  if (isAbsolute2(includePath))
@@ -41835,16 +41835,16 @@ var require_namespace = __commonJS({
41835
41835
  object.onRemove(this);
41836
41836
  return clearCache(this);
41837
41837
  };
41838
- Namespace.prototype.define = function define2(path27, json) {
41839
- if (util2.isString(path27))
41840
- path27 = path27.split(".");
41841
- else if (!Array.isArray(path27))
41838
+ Namespace.prototype.define = function define2(path28, json) {
41839
+ if (util2.isString(path28))
41840
+ path28 = path28.split(".");
41841
+ else if (!Array.isArray(path28))
41842
41842
  throw TypeError("illegal path");
41843
- if (path27 && path27.length && path27[0] === "")
41843
+ if (path28 && path28.length && path28[0] === "")
41844
41844
  throw Error("path must be relative");
41845
41845
  var ptr = this;
41846
- while (path27.length > 0) {
41847
- var part = path27.shift();
41846
+ while (path28.length > 0) {
41847
+ var part = path28.shift();
41848
41848
  if (ptr.nested && ptr.nested[part]) {
41849
41849
  ptr = ptr.nested[part];
41850
41850
  if (!(ptr instanceof Namespace))
@@ -41879,26 +41879,26 @@ var require_namespace = __commonJS({
41879
41879
  });
41880
41880
  return this;
41881
41881
  };
41882
- Namespace.prototype.lookup = function lookup2(path27, filterTypes, parentAlreadyChecked) {
41882
+ Namespace.prototype.lookup = function lookup2(path28, filterTypes, parentAlreadyChecked) {
41883
41883
  if (typeof filterTypes === "boolean") {
41884
41884
  parentAlreadyChecked = filterTypes;
41885
41885
  filterTypes = void 0;
41886
41886
  } else if (filterTypes && !Array.isArray(filterTypes))
41887
41887
  filterTypes = [filterTypes];
41888
- if (util2.isString(path27) && path27.length) {
41889
- if (path27 === ".")
41888
+ if (util2.isString(path28) && path28.length) {
41889
+ if (path28 === ".")
41890
41890
  return this.root;
41891
- path27 = path27.split(".");
41892
- } else if (!path27.length)
41891
+ path28 = path28.split(".");
41892
+ } else if (!path28.length)
41893
41893
  return this;
41894
- var flatPath = path27.join(".");
41895
- if (path27[0] === "")
41896
- return this.root.lookup(path27.slice(1), filterTypes);
41894
+ var flatPath = path28.join(".");
41895
+ if (path28[0] === "")
41896
+ return this.root.lookup(path28.slice(1), filterTypes);
41897
41897
  var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
41898
41898
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
41899
41899
  return found;
41900
41900
  }
41901
- found = this._lookupImpl(path27, flatPath);
41901
+ found = this._lookupImpl(path28, flatPath);
41902
41902
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
41903
41903
  return found;
41904
41904
  }
@@ -41906,7 +41906,7 @@ var require_namespace = __commonJS({
41906
41906
  return null;
41907
41907
  var current = this;
41908
41908
  while (current.parent) {
41909
- found = current.parent._lookupImpl(path27, flatPath);
41909
+ found = current.parent._lookupImpl(path28, flatPath);
41910
41910
  if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
41911
41911
  return found;
41912
41912
  }
@@ -41914,49 +41914,49 @@ var require_namespace = __commonJS({
41914
41914
  }
41915
41915
  return null;
41916
41916
  };
41917
- Namespace.prototype._lookupImpl = function lookup2(path27, flatPath) {
41917
+ Namespace.prototype._lookupImpl = function lookup2(path28, flatPath) {
41918
41918
  if (Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) {
41919
41919
  return this._lookupCache[flatPath];
41920
41920
  }
41921
- var found = this.get(path27[0]);
41921
+ var found = this.get(path28[0]);
41922
41922
  var exact = null;
41923
41923
  if (found) {
41924
- if (path27.length === 1) {
41924
+ if (path28.length === 1) {
41925
41925
  exact = found;
41926
41926
  } else if (found instanceof Namespace) {
41927
- path27 = path27.slice(1);
41928
- exact = found._lookupImpl(path27, path27.join("."));
41927
+ path28 = path28.slice(1);
41928
+ exact = found._lookupImpl(path28, path28.join("."));
41929
41929
  }
41930
41930
  } else {
41931
41931
  for (var i2 = 0; i2 < this.nestedArray.length; ++i2)
41932
- if (this._nestedArray[i2] instanceof Namespace && (found = this._nestedArray[i2]._lookupImpl(path27, flatPath)))
41932
+ if (this._nestedArray[i2] instanceof Namespace && (found = this._nestedArray[i2]._lookupImpl(path28, flatPath)))
41933
41933
  exact = found;
41934
41934
  }
41935
41935
  this._lookupCache[flatPath] = exact;
41936
41936
  return exact;
41937
41937
  };
41938
- Namespace.prototype.lookupType = function lookupType(path27) {
41939
- var found = this.lookup(path27, [Type]);
41938
+ Namespace.prototype.lookupType = function lookupType(path28) {
41939
+ var found = this.lookup(path28, [Type]);
41940
41940
  if (!found)
41941
- throw Error("no such type: " + path27);
41941
+ throw Error("no such type: " + path28);
41942
41942
  return found;
41943
41943
  };
41944
- Namespace.prototype.lookupEnum = function lookupEnum(path27) {
41945
- var found = this.lookup(path27, [Enum]);
41944
+ Namespace.prototype.lookupEnum = function lookupEnum(path28) {
41945
+ var found = this.lookup(path28, [Enum]);
41946
41946
  if (!found)
41947
- throw Error("no such Enum '" + path27 + "' in " + this);
41947
+ throw Error("no such Enum '" + path28 + "' in " + this);
41948
41948
  return found;
41949
41949
  };
41950
- Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path27) {
41951
- var found = this.lookup(path27, [Type, Enum]);
41950
+ Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path28) {
41951
+ var found = this.lookup(path28, [Type, Enum]);
41952
41952
  if (!found)
41953
- throw Error("no such Type or Enum '" + path27 + "' in " + this);
41953
+ throw Error("no such Type or Enum '" + path28 + "' in " + this);
41954
41954
  return found;
41955
41955
  };
41956
- Namespace.prototype.lookupService = function lookupService(path27) {
41957
- var found = this.lookup(path27, [Service]);
41956
+ Namespace.prototype.lookupService = function lookupService(path28) {
41957
+ var found = this.lookup(path28, [Service]);
41958
41958
  if (!found)
41959
- throw Error("no such Service '" + path27 + "' in " + this);
41959
+ throw Error("no such Service '" + path28 + "' in " + this);
41960
41960
  return found;
41961
41961
  };
41962
41962
  Namespace._configure = function(Type_, Service_, Enum_) {
@@ -43319,14 +43319,14 @@ var require_util3 = __commonJS({
43319
43319
  Object.defineProperty(object, "$type", { value: enm, enumerable: false });
43320
43320
  return enm;
43321
43321
  };
43322
- util2.setProperty = function setProperty(dst, path27, value, ifNotSet) {
43323
- function setProp(dst2, path28, value2) {
43324
- var part = path28.shift();
43322
+ util2.setProperty = function setProperty(dst, path28, value, ifNotSet) {
43323
+ function setProp(dst2, path29, value2) {
43324
+ var part = path29.shift();
43325
43325
  if (part === "__proto__" || part === "prototype") {
43326
43326
  return dst2;
43327
43327
  }
43328
- if (path28.length > 0) {
43329
- dst2[part] = setProp(dst2[part] || {}, path28, value2);
43328
+ if (path29.length > 0) {
43329
+ dst2[part] = setProp(dst2[part] || {}, path29, value2);
43330
43330
  } else {
43331
43331
  var prevValue = dst2[part];
43332
43332
  if (prevValue && ifNotSet)
@@ -43339,10 +43339,10 @@ var require_util3 = __commonJS({
43339
43339
  }
43340
43340
  if (typeof dst !== "object")
43341
43341
  throw TypeError("dst must be an object");
43342
- if (!path27)
43342
+ if (!path28)
43343
43343
  throw TypeError("path must be specified");
43344
- path27 = path27.split(".");
43345
- return setProp(dst, path27, value);
43344
+ path28 = path28.split(".");
43345
+ return setProp(dst, path28, value);
43346
43346
  };
43347
43347
  Object.defineProperty(util2, "decorateRoot", {
43348
43348
  get: function() {
@@ -43888,12 +43888,12 @@ var require_object = __commonJS({
43888
43888
  */
43889
43889
  fullName: {
43890
43890
  get: function() {
43891
- var path27 = [this.name], ptr = this.parent;
43891
+ var path28 = [this.name], ptr = this.parent;
43892
43892
  while (ptr) {
43893
- path27.unshift(ptr.name);
43893
+ path28.unshift(ptr.name);
43894
43894
  ptr = ptr.parent;
43895
43895
  }
43896
- return path27.join(".");
43896
+ return path28.join(".");
43897
43897
  }
43898
43898
  }
43899
43899
  });
@@ -47882,19 +47882,19 @@ var require_util4 = __commonJS({
47882
47882
  "use strict";
47883
47883
  Object.defineProperty(exports2, "__esModule", { value: true });
47884
47884
  exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
47885
- var fs26 = require("fs");
47886
- var path27 = require("path");
47885
+ var fs27 = require("fs");
47886
+ var path28 = require("path");
47887
47887
  var Protobuf = require_protobufjs();
47888
47888
  function addIncludePathResolver(root, includePaths) {
47889
47889
  const originalResolvePath = root.resolvePath;
47890
47890
  root.resolvePath = (origin, target) => {
47891
- if (path27.isAbsolute(target)) {
47891
+ if (path28.isAbsolute(target)) {
47892
47892
  return target;
47893
47893
  }
47894
47894
  for (const directory of includePaths) {
47895
- const fullPath = path27.join(directory, target);
47895
+ const fullPath = path28.join(directory, target);
47896
47896
  try {
47897
- fs26.accessSync(fullPath, fs26.constants.R_OK);
47897
+ fs27.accessSync(fullPath, fs27.constants.R_OK);
47898
47898
  return fullPath;
47899
47899
  } catch (err) {
47900
47900
  continue;
@@ -51340,7 +51340,7 @@ var require_subchannel_call = __commonJS({
51340
51340
  Object.defineProperty(exports2, "__esModule", { value: true });
51341
51341
  exports2.Http2SubchannelCall = void 0;
51342
51342
  var http22 = require("http2");
51343
- var os15 = require("os");
51343
+ var os16 = require("os");
51344
51344
  var constants_1 = require_constants9();
51345
51345
  var metadata_1 = require_metadata();
51346
51346
  var stream_decoder_1 = require_stream_decoder();
@@ -51348,7 +51348,7 @@ var require_subchannel_call = __commonJS({
51348
51348
  var constants_2 = require_constants9();
51349
51349
  var TRACER_NAME = "subchannel_call";
51350
51350
  function getSystemErrorName(errno) {
51351
- for (const [name, num] of Object.entries(os15.constants.errno)) {
51351
+ for (const [name, num] of Object.entries(os16.constants.errno)) {
51352
51352
  if (num === errno) {
51353
51353
  return name;
51354
51354
  }
@@ -54215,9 +54215,9 @@ var require_server_call = __commonJS({
54215
54215
  return status;
54216
54216
  }
54217
54217
  var ServerUnaryCallImpl = class extends events_1.EventEmitter {
54218
- constructor(path27, call, metadata, request2) {
54218
+ constructor(path28, call, metadata, request2) {
54219
54219
  super();
54220
- this.path = path27;
54220
+ this.path = path28;
54221
54221
  this.call = call;
54222
54222
  this.metadata = metadata;
54223
54223
  this.request = request2;
@@ -54247,9 +54247,9 @@ var require_server_call = __commonJS({
54247
54247
  };
54248
54248
  exports2.ServerUnaryCallImpl = ServerUnaryCallImpl;
54249
54249
  var ServerReadableStreamImpl = class extends stream_1.Readable {
54250
- constructor(path27, call, metadata) {
54250
+ constructor(path28, call, metadata) {
54251
54251
  super({ objectMode: true });
54252
- this.path = path27;
54252
+ this.path = path28;
54253
54253
  this.call = call;
54254
54254
  this.metadata = metadata;
54255
54255
  this.cancelled = false;
@@ -54281,9 +54281,9 @@ var require_server_call = __commonJS({
54281
54281
  };
54282
54282
  exports2.ServerReadableStreamImpl = ServerReadableStreamImpl;
54283
54283
  var ServerWritableStreamImpl = class extends stream_1.Writable {
54284
- constructor(path27, call, metadata, request2) {
54284
+ constructor(path28, call, metadata, request2) {
54285
54285
  super({ objectMode: true });
54286
- this.path = path27;
54286
+ this.path = path28;
54287
54287
  this.call = call;
54288
54288
  this.metadata = metadata;
54289
54289
  this.request = request2;
@@ -54337,9 +54337,9 @@ var require_server_call = __commonJS({
54337
54337
  };
54338
54338
  exports2.ServerWritableStreamImpl = ServerWritableStreamImpl;
54339
54339
  var ServerDuplexStreamImpl = class extends stream_1.Duplex {
54340
- constructor(path27, call, metadata) {
54340
+ constructor(path28, call, metadata) {
54341
54341
  super({ objectMode: true });
54342
- this.path = path27;
54342
+ this.path = path28;
54343
54343
  this.call = call;
54344
54344
  this.metadata = metadata;
54345
54345
  this.pendingStatus = {
@@ -56615,11 +56615,11 @@ var require_server = __commonJS({
56615
56615
  }
56616
56616
  return true;
56617
56617
  }
56618
- _retrieveHandler(path27) {
56619
- serverCallTrace("Received call to method " + path27 + " at address " + this.serverAddressString);
56620
- const handler = this.handlers.get(path27);
56618
+ _retrieveHandler(path28) {
56619
+ serverCallTrace("Received call to method " + path28 + " at address " + this.serverAddressString);
56620
+ const handler = this.handlers.get(path28);
56621
56621
  if (handler === void 0) {
56622
- serverCallTrace("No handler registered for method " + path27 + ". Sending UNIMPLEMENTED status.");
56622
+ serverCallTrace("No handler registered for method " + path28 + ". Sending UNIMPLEMENTED status.");
56623
56623
  return null;
56624
56624
  }
56625
56625
  return handler;
@@ -56641,10 +56641,10 @@ var require_server = __commonJS({
56641
56641
  channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed();
56642
56642
  return;
56643
56643
  }
56644
- const path27 = headers[HTTP2_HEADER_PATH];
56645
- const handler = this._retrieveHandler(path27);
56644
+ const path28 = headers[HTTP2_HEADER_PATH];
56645
+ const handler = this._retrieveHandler(path28);
56646
56646
  if (!handler) {
56647
- this._respondWithError(getUnimplementedStatusResponse(path27), stream, channelzSessionInfo);
56647
+ this._respondWithError(getUnimplementedStatusResponse(path28), stream, channelzSessionInfo);
56648
56648
  return;
56649
56649
  }
56650
56650
  const callEventTracker = {
@@ -56692,10 +56692,10 @@ var require_server = __commonJS({
56692
56692
  if (this._verifyContentType(stream, headers) !== true) {
56693
56693
  return;
56694
56694
  }
56695
- const path27 = headers[HTTP2_HEADER_PATH];
56696
- const handler = this._retrieveHandler(path27);
56695
+ const path28 = headers[HTTP2_HEADER_PATH];
56696
+ const handler = this._retrieveHandler(path28);
56697
56697
  if (!handler) {
56698
- this._respondWithError(getUnimplementedStatusResponse(path27), stream, null);
56698
+ this._respondWithError(getUnimplementedStatusResponse(path28), stream, null);
56699
56699
  return;
56700
56700
  }
56701
56701
  const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options);
@@ -57716,7 +57716,7 @@ var require_certificate_provider = __commonJS({
57716
57716
  "use strict";
57717
57717
  Object.defineProperty(exports2, "__esModule", { value: true });
57718
57718
  exports2.FileWatcherCertificateProvider = void 0;
57719
- var fs26 = require("fs");
57719
+ var fs27 = require("fs");
57720
57720
  var logging = require_logging();
57721
57721
  var constants_1 = require_constants9();
57722
57722
  var util_1 = require("util");
@@ -57724,7 +57724,7 @@ var require_certificate_provider = __commonJS({
57724
57724
  function trace15(text) {
57725
57725
  logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
57726
57726
  }
57727
- var readFilePromise = (0, util_1.promisify)(fs26.readFile);
57727
+ var readFilePromise = (0, util_1.promisify)(fs27.readFile);
57728
57728
  var FileWatcherCertificateProvider = class {
57729
57729
  constructor(config3) {
57730
57730
  this.config = config3;
@@ -57979,13 +57979,13 @@ var require_resolver_uds = __commonJS({
57979
57979
  this.listener = listener;
57980
57980
  this.hasReturnedResult = false;
57981
57981
  this.endpoints = [];
57982
- let path27;
57982
+ let path28;
57983
57983
  if (target.authority === "") {
57984
- path27 = "/" + target.path;
57984
+ path28 = "/" + target.path;
57985
57985
  } else {
57986
- path27 = target.path;
57986
+ path28 = target.path;
57987
57987
  }
57988
- this.endpoints = [{ addresses: [{ path: path27 }] }];
57988
+ this.endpoints = [{ addresses: [{ path: path28 }] }];
57989
57989
  }
57990
57990
  updateResolution() {
57991
57991
  if (!this.hasReturnedResult) {
@@ -58045,12 +58045,12 @@ var require_resolver_ip = __commonJS({
58045
58045
  return;
58046
58046
  }
58047
58047
  const pathList = target.path.split(",");
58048
- for (const path27 of pathList) {
58049
- const hostPort = (0, uri_parser_1.splitHostPort)(path27);
58048
+ for (const path28 of pathList) {
58049
+ const hostPort = (0, uri_parser_1.splitHostPort)(path28);
58050
58050
  if (hostPort === null) {
58051
58051
  this.error = {
58052
58052
  code: constants_1.Status.UNAVAILABLE,
58053
- details: `Failed to parse ${target.scheme} address ${path27}`,
58053
+ details: `Failed to parse ${target.scheme} address ${path28}`,
58054
58054
  metadata: new metadata_1.Metadata()
58055
58055
  };
58056
58056
  return;
@@ -58058,7 +58058,7 @@ var require_resolver_ip = __commonJS({
58058
58058
  if (target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host) || target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host)) {
58059
58059
  this.error = {
58060
58060
  code: constants_1.Status.UNAVAILABLE,
58061
- details: `Failed to parse ${target.scheme} address ${path27}`,
58061
+ details: `Failed to parse ${target.scheme} address ${path28}`,
58062
58062
  metadata: new metadata_1.Metadata()
58063
58063
  };
58064
58064
  return;
@@ -59414,10 +59414,10 @@ var require_create_service_client_constructor = __commonJS({
59414
59414
  Object.defineProperty(exports2, "__esModule", { value: true });
59415
59415
  exports2.createServiceClientConstructor = void 0;
59416
59416
  var grpc = require_src27();
59417
- function createServiceClientConstructor(path27, name) {
59417
+ function createServiceClientConstructor(path28, name) {
59418
59418
  const serviceDefinition = {
59419
59419
  export: {
59420
- path: path27,
59420
+ path: path28,
59421
59421
  requestStream: false,
59422
59422
  responseStream: false,
59423
59423
  requestSerialize: (arg) => {
@@ -61048,8 +61048,8 @@ var require_otlp_grpc_env_configuration = __commonJS({
61048
61048
  var core_1 = require_src28();
61049
61049
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
61050
61050
  var node_http_1 = require_index_node_http();
61051
- var fs26 = require("fs");
61052
- var path27 = require("path");
61051
+ var fs27 = require("fs");
61052
+ var path28 = require("path");
61053
61053
  var api_1 = require_src();
61054
61054
  function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
61055
61055
  if (signalSpecific != null && signalSpecific !== "") {
@@ -61098,7 +61098,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
61098
61098
  const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
61099
61099
  if (filePath != null) {
61100
61100
  try {
61101
- return fs26.readFileSync(path27.resolve(process.cwd(), filePath));
61101
+ return fs27.readFileSync(path28.resolve(process.cwd(), filePath));
61102
61102
  } catch {
61103
61103
  api_1.diag.warn(warningMessage);
61104
61104
  return void 0;
@@ -72703,17 +72703,17 @@ var require_visit = __commonJS({
72703
72703
  visit2.BREAK = BREAK;
72704
72704
  visit2.SKIP = SKIP;
72705
72705
  visit2.REMOVE = REMOVE;
72706
- function visit_(key, node2, visitor, path27) {
72707
- const ctrl = callVisitor(key, node2, visitor, path27);
72706
+ function visit_(key, node2, visitor, path28) {
72707
+ const ctrl = callVisitor(key, node2, visitor, path28);
72708
72708
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
72709
- replaceNode(key, path27, ctrl);
72710
- return visit_(key, ctrl, visitor, path27);
72709
+ replaceNode(key, path28, ctrl);
72710
+ return visit_(key, ctrl, visitor, path28);
72711
72711
  }
72712
72712
  if (typeof ctrl !== "symbol") {
72713
72713
  if (identity.isCollection(node2)) {
72714
- path27 = Object.freeze(path27.concat(node2));
72714
+ path28 = Object.freeze(path28.concat(node2));
72715
72715
  for (let i2 = 0; i2 < node2.items.length; ++i2) {
72716
- const ci = visit_(i2, node2.items[i2], visitor, path27);
72716
+ const ci = visit_(i2, node2.items[i2], visitor, path28);
72717
72717
  if (typeof ci === "number")
72718
72718
  i2 = ci - 1;
72719
72719
  else if (ci === BREAK)
@@ -72724,13 +72724,13 @@ var require_visit = __commonJS({
72724
72724
  }
72725
72725
  }
72726
72726
  } else if (identity.isPair(node2)) {
72727
- path27 = Object.freeze(path27.concat(node2));
72728
- const ck = visit_("key", node2.key, visitor, path27);
72727
+ path28 = Object.freeze(path28.concat(node2));
72728
+ const ck = visit_("key", node2.key, visitor, path28);
72729
72729
  if (ck === BREAK)
72730
72730
  return BREAK;
72731
72731
  else if (ck === REMOVE)
72732
72732
  node2.key = null;
72733
- const cv = visit_("value", node2.value, visitor, path27);
72733
+ const cv = visit_("value", node2.value, visitor, path28);
72734
72734
  if (cv === BREAK)
72735
72735
  return BREAK;
72736
72736
  else if (cv === REMOVE)
@@ -72751,17 +72751,17 @@ var require_visit = __commonJS({
72751
72751
  visitAsync.BREAK = BREAK;
72752
72752
  visitAsync.SKIP = SKIP;
72753
72753
  visitAsync.REMOVE = REMOVE;
72754
- async function visitAsync_(key, node2, visitor, path27) {
72755
- const ctrl = await callVisitor(key, node2, visitor, path27);
72754
+ async function visitAsync_(key, node2, visitor, path28) {
72755
+ const ctrl = await callVisitor(key, node2, visitor, path28);
72756
72756
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
72757
- replaceNode(key, path27, ctrl);
72758
- return visitAsync_(key, ctrl, visitor, path27);
72757
+ replaceNode(key, path28, ctrl);
72758
+ return visitAsync_(key, ctrl, visitor, path28);
72759
72759
  }
72760
72760
  if (typeof ctrl !== "symbol") {
72761
72761
  if (identity.isCollection(node2)) {
72762
- path27 = Object.freeze(path27.concat(node2));
72762
+ path28 = Object.freeze(path28.concat(node2));
72763
72763
  for (let i2 = 0; i2 < node2.items.length; ++i2) {
72764
- const ci = await visitAsync_(i2, node2.items[i2], visitor, path27);
72764
+ const ci = await visitAsync_(i2, node2.items[i2], visitor, path28);
72765
72765
  if (typeof ci === "number")
72766
72766
  i2 = ci - 1;
72767
72767
  else if (ci === BREAK)
@@ -72772,13 +72772,13 @@ var require_visit = __commonJS({
72772
72772
  }
72773
72773
  }
72774
72774
  } else if (identity.isPair(node2)) {
72775
- path27 = Object.freeze(path27.concat(node2));
72776
- const ck = await visitAsync_("key", node2.key, visitor, path27);
72775
+ path28 = Object.freeze(path28.concat(node2));
72776
+ const ck = await visitAsync_("key", node2.key, visitor, path28);
72777
72777
  if (ck === BREAK)
72778
72778
  return BREAK;
72779
72779
  else if (ck === REMOVE)
72780
72780
  node2.key = null;
72781
- const cv = await visitAsync_("value", node2.value, visitor, path27);
72781
+ const cv = await visitAsync_("value", node2.value, visitor, path28);
72782
72782
  if (cv === BREAK)
72783
72783
  return BREAK;
72784
72784
  else if (cv === REMOVE)
@@ -72805,23 +72805,23 @@ var require_visit = __commonJS({
72805
72805
  }
72806
72806
  return visitor;
72807
72807
  }
72808
- function callVisitor(key, node2, visitor, path27) {
72808
+ function callVisitor(key, node2, visitor, path28) {
72809
72809
  if (typeof visitor === "function")
72810
- return visitor(key, node2, path27);
72810
+ return visitor(key, node2, path28);
72811
72811
  if (identity.isMap(node2))
72812
- return visitor.Map?.(key, node2, path27);
72812
+ return visitor.Map?.(key, node2, path28);
72813
72813
  if (identity.isSeq(node2))
72814
- return visitor.Seq?.(key, node2, path27);
72814
+ return visitor.Seq?.(key, node2, path28);
72815
72815
  if (identity.isPair(node2))
72816
- return visitor.Pair?.(key, node2, path27);
72816
+ return visitor.Pair?.(key, node2, path28);
72817
72817
  if (identity.isScalar(node2))
72818
- return visitor.Scalar?.(key, node2, path27);
72818
+ return visitor.Scalar?.(key, node2, path28);
72819
72819
  if (identity.isAlias(node2))
72820
- return visitor.Alias?.(key, node2, path27);
72820
+ return visitor.Alias?.(key, node2, path28);
72821
72821
  return void 0;
72822
72822
  }
72823
- function replaceNode(key, path27, node2) {
72824
- const parent = path27[path27.length - 1];
72823
+ function replaceNode(key, path28, node2) {
72824
+ const parent = path28[path28.length - 1];
72825
72825
  if (identity.isCollection(parent)) {
72826
72826
  parent.items[key] = node2;
72827
72827
  } else if (identity.isPair(parent)) {
@@ -73429,10 +73429,10 @@ var require_Collection = __commonJS({
73429
73429
  var createNode = require_createNode();
73430
73430
  var identity = require_identity();
73431
73431
  var Node = require_Node();
73432
- function collectionFromPath(schema, path27, value) {
73432
+ function collectionFromPath(schema, path28, value) {
73433
73433
  let v2 = value;
73434
- for (let i2 = path27.length - 1; i2 >= 0; --i2) {
73435
- const k3 = path27[i2];
73434
+ for (let i2 = path28.length - 1; i2 >= 0; --i2) {
73435
+ const k3 = path28[i2];
73436
73436
  if (typeof k3 === "number" && Number.isInteger(k3) && k3 >= 0) {
73437
73437
  const a2 = [];
73438
73438
  a2[k3] = v2;
@@ -73451,7 +73451,7 @@ var require_Collection = __commonJS({
73451
73451
  sourceObjects: /* @__PURE__ */ new Map()
73452
73452
  });
73453
73453
  }
73454
- var isEmptyPath = (path27) => path27 == null || typeof path27 === "object" && !!path27[Symbol.iterator]().next().done;
73454
+ var isEmptyPath = (path28) => path28 == null || typeof path28 === "object" && !!path28[Symbol.iterator]().next().done;
73455
73455
  var Collection = class extends Node.NodeBase {
73456
73456
  constructor(type, schema) {
73457
73457
  super(type);
@@ -73481,11 +73481,11 @@ var require_Collection = __commonJS({
73481
73481
  * be a Pair instance or a `{ key, value }` object, which may not have a key
73482
73482
  * that already exists in the map.
73483
73483
  */
73484
- addIn(path27, value) {
73485
- if (isEmptyPath(path27))
73484
+ addIn(path28, value) {
73485
+ if (isEmptyPath(path28))
73486
73486
  this.add(value);
73487
73487
  else {
73488
- const [key, ...rest] = path27;
73488
+ const [key, ...rest] = path28;
73489
73489
  const node2 = this.get(key, true);
73490
73490
  if (identity.isCollection(node2))
73491
73491
  node2.addIn(rest, value);
@@ -73499,8 +73499,8 @@ var require_Collection = __commonJS({
73499
73499
  * Removes a value from the collection.
73500
73500
  * @returns `true` if the item was found and removed.
73501
73501
  */
73502
- deleteIn(path27) {
73503
- const [key, ...rest] = path27;
73502
+ deleteIn(path28) {
73503
+ const [key, ...rest] = path28;
73504
73504
  if (rest.length === 0)
73505
73505
  return this.delete(key);
73506
73506
  const node2 = this.get(key, true);
@@ -73514,8 +73514,8 @@ var require_Collection = __commonJS({
73514
73514
  * scalar values from their surrounding node; to disable set `keepScalar` to
73515
73515
  * `true` (collections are always returned intact).
73516
73516
  */
73517
- getIn(path27, keepScalar) {
73518
- const [key, ...rest] = path27;
73517
+ getIn(path28, keepScalar) {
73518
+ const [key, ...rest] = path28;
73519
73519
  const node2 = this.get(key, true);
73520
73520
  if (rest.length === 0)
73521
73521
  return !keepScalar && identity.isScalar(node2) ? node2.value : node2;
@@ -73533,8 +73533,8 @@ var require_Collection = __commonJS({
73533
73533
  /**
73534
73534
  * Checks if the collection includes a value with the key `key`.
73535
73535
  */
73536
- hasIn(path27) {
73537
- const [key, ...rest] = path27;
73536
+ hasIn(path28) {
73537
+ const [key, ...rest] = path28;
73538
73538
  if (rest.length === 0)
73539
73539
  return this.has(key);
73540
73540
  const node2 = this.get(key, true);
@@ -73544,8 +73544,8 @@ var require_Collection = __commonJS({
73544
73544
  * Sets a value in this collection. For `!!set`, `value` needs to be a
73545
73545
  * boolean to add/remove the item from the set.
73546
73546
  */
73547
- setIn(path27, value) {
73548
- const [key, ...rest] = path27;
73547
+ setIn(path28, value) {
73548
+ const [key, ...rest] = path28;
73549
73549
  if (rest.length === 0) {
73550
73550
  this.set(key, value);
73551
73551
  } else {
@@ -76049,9 +76049,9 @@ var require_Document = __commonJS({
76049
76049
  this.contents.add(value);
76050
76050
  }
76051
76051
  /** Adds a value to the document. */
76052
- addIn(path27, value) {
76052
+ addIn(path28, value) {
76053
76053
  if (assertCollection(this.contents))
76054
- this.contents.addIn(path27, value);
76054
+ this.contents.addIn(path28, value);
76055
76055
  }
76056
76056
  /**
76057
76057
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -76126,14 +76126,14 @@ var require_Document = __commonJS({
76126
76126
  * Removes a value from the document.
76127
76127
  * @returns `true` if the item was found and removed.
76128
76128
  */
76129
- deleteIn(path27) {
76130
- if (Collection.isEmptyPath(path27)) {
76129
+ deleteIn(path28) {
76130
+ if (Collection.isEmptyPath(path28)) {
76131
76131
  if (this.contents == null)
76132
76132
  return false;
76133
76133
  this.contents = null;
76134
76134
  return true;
76135
76135
  }
76136
- return assertCollection(this.contents) ? this.contents.deleteIn(path27) : false;
76136
+ return assertCollection(this.contents) ? this.contents.deleteIn(path28) : false;
76137
76137
  }
76138
76138
  /**
76139
76139
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -76148,10 +76148,10 @@ var require_Document = __commonJS({
76148
76148
  * scalar values from their surrounding node; to disable set `keepScalar` to
76149
76149
  * `true` (collections are always returned intact).
76150
76150
  */
76151
- getIn(path27, keepScalar) {
76152
- if (Collection.isEmptyPath(path27))
76151
+ getIn(path28, keepScalar) {
76152
+ if (Collection.isEmptyPath(path28))
76153
76153
  return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
76154
- return identity.isCollection(this.contents) ? this.contents.getIn(path27, keepScalar) : void 0;
76154
+ return identity.isCollection(this.contents) ? this.contents.getIn(path28, keepScalar) : void 0;
76155
76155
  }
76156
76156
  /**
76157
76157
  * Checks if the document includes a value with the key `key`.
@@ -76162,10 +76162,10 @@ var require_Document = __commonJS({
76162
76162
  /**
76163
76163
  * Checks if the document includes a value at `path`.
76164
76164
  */
76165
- hasIn(path27) {
76166
- if (Collection.isEmptyPath(path27))
76165
+ hasIn(path28) {
76166
+ if (Collection.isEmptyPath(path28))
76167
76167
  return this.contents !== void 0;
76168
- return identity.isCollection(this.contents) ? this.contents.hasIn(path27) : false;
76168
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path28) : false;
76169
76169
  }
76170
76170
  /**
76171
76171
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -76182,13 +76182,13 @@ var require_Document = __commonJS({
76182
76182
  * Sets a value in this document. For `!!set`, `value` needs to be a
76183
76183
  * boolean to add/remove the item from the set.
76184
76184
  */
76185
- setIn(path27, value) {
76186
- if (Collection.isEmptyPath(path27)) {
76185
+ setIn(path28, value) {
76186
+ if (Collection.isEmptyPath(path28)) {
76187
76187
  this.contents = value;
76188
76188
  } else if (this.contents == null) {
76189
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path27), value);
76189
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path28), value);
76190
76190
  } else if (assertCollection(this.contents)) {
76191
- this.contents.setIn(path27, value);
76191
+ this.contents.setIn(path28, value);
76192
76192
  }
76193
76193
  }
76194
76194
  /**
@@ -78140,9 +78140,9 @@ var require_cst_visit = __commonJS({
78140
78140
  visit2.BREAK = BREAK;
78141
78141
  visit2.SKIP = SKIP;
78142
78142
  visit2.REMOVE = REMOVE;
78143
- visit2.itemAtPath = (cst, path27) => {
78143
+ visit2.itemAtPath = (cst, path28) => {
78144
78144
  let item = cst;
78145
- for (const [field, index] of path27) {
78145
+ for (const [field, index] of path28) {
78146
78146
  const tok = item?.[field];
78147
78147
  if (tok && "items" in tok) {
78148
78148
  item = tok.items[index];
@@ -78151,23 +78151,23 @@ var require_cst_visit = __commonJS({
78151
78151
  }
78152
78152
  return item;
78153
78153
  };
78154
- visit2.parentCollection = (cst, path27) => {
78155
- const parent = visit2.itemAtPath(cst, path27.slice(0, -1));
78156
- const field = path27[path27.length - 1][0];
78154
+ visit2.parentCollection = (cst, path28) => {
78155
+ const parent = visit2.itemAtPath(cst, path28.slice(0, -1));
78156
+ const field = path28[path28.length - 1][0];
78157
78157
  const coll = parent?.[field];
78158
78158
  if (coll && "items" in coll)
78159
78159
  return coll;
78160
78160
  throw new Error("Parent collection not found");
78161
78161
  };
78162
- function _visit(path27, item, visitor) {
78163
- let ctrl = visitor(item, path27);
78162
+ function _visit(path28, item, visitor) {
78163
+ let ctrl = visitor(item, path28);
78164
78164
  if (typeof ctrl === "symbol")
78165
78165
  return ctrl;
78166
78166
  for (const field of ["key", "value"]) {
78167
78167
  const token = item[field];
78168
78168
  if (token && "items" in token) {
78169
78169
  for (let i2 = 0; i2 < token.items.length; ++i2) {
78170
- const ci = _visit(Object.freeze(path27.concat([[field, i2]])), token.items[i2], visitor);
78170
+ const ci = _visit(Object.freeze(path28.concat([[field, i2]])), token.items[i2], visitor);
78171
78171
  if (typeof ci === "number")
78172
78172
  i2 = ci - 1;
78173
78173
  else if (ci === BREAK)
@@ -78178,10 +78178,10 @@ var require_cst_visit = __commonJS({
78178
78178
  }
78179
78179
  }
78180
78180
  if (typeof ctrl === "function" && field === "key")
78181
- ctrl = ctrl(item, path27);
78181
+ ctrl = ctrl(item, path28);
78182
78182
  }
78183
78183
  }
78184
- return typeof ctrl === "function" ? ctrl(item, path27) : ctrl;
78184
+ return typeof ctrl === "function" ? ctrl(item, path28) : ctrl;
78185
78185
  }
78186
78186
  exports2.visit = visit2;
78187
78187
  }
@@ -79466,14 +79466,14 @@ var require_parser = __commonJS({
79466
79466
  case "scalar":
79467
79467
  case "single-quoted-scalar":
79468
79468
  case "double-quoted-scalar": {
79469
- const fs26 = this.flowScalar(this.type);
79469
+ const fs27 = this.flowScalar(this.type);
79470
79470
  if (atNextItem || it2.value) {
79471
- map.items.push({ start, key: fs26, sep: [] });
79471
+ map.items.push({ start, key: fs27, sep: [] });
79472
79472
  this.onKeyLine = true;
79473
79473
  } else if (it2.sep) {
79474
- this.stack.push(fs26);
79474
+ this.stack.push(fs27);
79475
79475
  } else {
79476
- Object.assign(it2, { key: fs26, sep: [] });
79476
+ Object.assign(it2, { key: fs27, sep: [] });
79477
79477
  this.onKeyLine = true;
79478
79478
  }
79479
79479
  return;
@@ -79601,13 +79601,13 @@ var require_parser = __commonJS({
79601
79601
  case "scalar":
79602
79602
  case "single-quoted-scalar":
79603
79603
  case "double-quoted-scalar": {
79604
- const fs26 = this.flowScalar(this.type);
79604
+ const fs27 = this.flowScalar(this.type);
79605
79605
  if (!it2 || it2.value)
79606
- fc.items.push({ start: [], key: fs26, sep: [] });
79606
+ fc.items.push({ start: [], key: fs27, sep: [] });
79607
79607
  else if (it2.sep)
79608
- this.stack.push(fs26);
79608
+ this.stack.push(fs27);
79609
79609
  else
79610
- Object.assign(it2, { key: fs26, sep: [] });
79610
+ Object.assign(it2, { key: fs27, sep: [] });
79611
79611
  return;
79612
79612
  }
79613
79613
  case "flow-map-end":
@@ -79923,7 +79923,7 @@ var require_FileConfigFactory = __commonJS({
79923
79923
  exports2.setLoggerProvider = exports2.getSeverity = exports2.setMeterProvider = exports2.getTemporalityPreference = exports2.setTracerProvider = exports2.setPropagator = exports2.setAttributeLimits = exports2.setResourceAttributes = exports2.parseConfigFile = exports2.hasValidConfigFile = exports2.FileConfigFactory = void 0;
79924
79924
  var core_1 = require_src46();
79925
79925
  var configModel_1 = require_configModel();
79926
- var fs26 = require("fs");
79926
+ var fs27 = require("fs");
79927
79927
  var yaml = require_dist();
79928
79928
  var utils_1 = require_utils27();
79929
79929
  var commonModel_1 = require_commonModel();
@@ -79945,7 +79945,7 @@ var require_FileConfigFactory = __commonJS({
79945
79945
  function hasValidConfigFile() {
79946
79946
  const configFile = (0, core_1.getStringFromEnv)("OTEL_EXPERIMENTAL_CONFIG_FILE");
79947
79947
  if (configFile) {
79948
- if (!(configFile.endsWith(".yaml") || configFile.endsWith(".yml")) || !fs26.existsSync(configFile)) {
79948
+ if (!(configFile.endsWith(".yaml") || configFile.endsWith(".yml")) || !fs27.existsSync(configFile)) {
79949
79949
  api_1.diag.warn(`Config file ${configFile} set on OTEL_EXPERIMENTAL_CONFIG_FILE is not valid`);
79950
79950
  return false;
79951
79951
  }
@@ -79957,7 +79957,7 @@ var require_FileConfigFactory = __commonJS({
79957
79957
  function parseConfigFile(config3) {
79958
79958
  const supportedFileVersions = ["1.0-rc.3"];
79959
79959
  const configFile = (0, core_1.getStringFromEnv)("OTEL_EXPERIMENTAL_CONFIG_FILE") || "";
79960
- const file = fs26.readFileSync(configFile, "utf8");
79960
+ const file = fs27.readFileSync(configFile, "utf8");
79961
79961
  const parsedContent = yaml.parse(file);
79962
79962
  if (parsedContent["file_format"] && supportedFileVersions.includes(parsedContent["file_format"])) {
79963
79963
  const disabled = (0, utils_1.getBooleanFromConfigFile)(parsedContent["disabled"]);
@@ -83347,7 +83347,7 @@ var require_RequireInTheMiddleSingleton2 = __commonJS({
83347
83347
  Object.defineProperty(exports2, "__esModule", { value: true });
83348
83348
  exports2.RequireInTheMiddleSingleton = void 0;
83349
83349
  var require_in_the_middle_1 = require_require_in_the_middle();
83350
- var path27 = require("path");
83350
+ var path28 = require("path");
83351
83351
  var ModuleNameTrie_1 = require_ModuleNameTrie2();
83352
83352
  var isMocha = [
83353
83353
  "afterEach",
@@ -83411,7 +83411,7 @@ var require_RequireInTheMiddleSingleton2 = __commonJS({
83411
83411
  };
83412
83412
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
83413
83413
  function normalizePathSeparators(moduleNameOrPath) {
83414
- return path27.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path27.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
83414
+ return path28.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path28.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
83415
83415
  }
83416
83416
  }
83417
83417
  });
@@ -83467,7 +83467,7 @@ var require_instrumentation4 = __commonJS({
83467
83467
  "use strict";
83468
83468
  Object.defineProperty(exports2, "__esModule", { value: true });
83469
83469
  exports2.InstrumentationBase = void 0;
83470
- var path27 = require("path");
83470
+ var path28 = require("path");
83471
83471
  var util_1 = require("util");
83472
83472
  var semver_1 = require_semver3();
83473
83473
  var shimmer_1 = require_shimmer2();
@@ -83565,7 +83565,7 @@ var require_instrumentation4 = __commonJS({
83565
83565
  }
83566
83566
  _extractPackageVersion(baseDir) {
83567
83567
  try {
83568
- const json = (0, fs_1.readFileSync)(path27.join(baseDir, "package.json"), {
83568
+ const json = (0, fs_1.readFileSync)(path28.join(baseDir, "package.json"), {
83569
83569
  encoding: "utf8"
83570
83570
  });
83571
83571
  const version2 = JSON.parse(json).version;
@@ -83607,7 +83607,7 @@ var require_instrumentation4 = __commonJS({
83607
83607
  return exports3;
83608
83608
  }
83609
83609
  const files = module3.files ?? [];
83610
- const normalizedName = path27.normalize(name);
83610
+ const normalizedName = path28.normalize(name);
83611
83611
  const supportedFileInstrumentations = files.filter((f2) => f2.name === normalizedName && isSupported(f2.supportedVersions, version2, module3.includePrerelease));
83612
83612
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
83613
83613
  file.moduleExports = patchedExports;
@@ -83653,8 +83653,8 @@ var require_instrumentation4 = __commonJS({
83653
83653
  this._warnOnPreloadedModules();
83654
83654
  for (const module3 of this._modules) {
83655
83655
  const hookFn = (exports3, name, baseDir) => {
83656
- if (!baseDir && path27.isAbsolute(name)) {
83657
- const parsedPath = path27.parse(name);
83656
+ if (!baseDir && path28.isAbsolute(name)) {
83657
+ const parsedPath = path28.parse(name);
83658
83658
  name = parsedPath.name;
83659
83659
  baseDir = parsedPath.dir;
83660
83660
  }
@@ -83663,7 +83663,7 @@ var require_instrumentation4 = __commonJS({
83663
83663
  const onRequire = (exports3, name, baseDir) => {
83664
83664
  return this._onRequire(module3, exports3, name, baseDir);
83665
83665
  };
83666
- const hook = path27.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
83666
+ const hook = path28.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
83667
83667
  this._hooks.push(hook);
83668
83668
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: true }, hookFn);
83669
83669
  this._hooks.push(esmHook);
@@ -84116,26 +84116,26 @@ var require_utils30 = __commonJS({
84116
84116
  const reqUrlObject = requestUrl || {};
84117
84117
  const protocol = reqUrlObject.protocol || fallbackProtocol;
84118
84118
  const port = (reqUrlObject.port || "").toString();
84119
- let path27 = reqUrlObject.path || "/";
84119
+ let path28 = reqUrlObject.path || "/";
84120
84120
  let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
84121
84121
  if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
84122
84122
  host += `:${port}`;
84123
84123
  }
84124
- if (path27.includes("?")) {
84124
+ if (path28.includes("?")) {
84125
84125
  try {
84126
- const parsedUrl = new URL(path27, "http://localhost");
84126
+ const parsedUrl = new URL(path28, "http://localhost");
84127
84127
  const sensitiveParamsToRedact = redactedQueryParams || [];
84128
84128
  for (const sensitiveParam of sensitiveParamsToRedact) {
84129
84129
  if (parsedUrl.searchParams.get(sensitiveParam)) {
84130
84130
  parsedUrl.searchParams.set(sensitiveParam, internal_types_2.STR_REDACTED);
84131
84131
  }
84132
84132
  }
84133
- path27 = `${parsedUrl.pathname}${parsedUrl.search}`;
84133
+ path28 = `${parsedUrl.pathname}${parsedUrl.search}`;
84134
84134
  } catch {
84135
84135
  }
84136
84136
  }
84137
84137
  const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
84138
- return `${protocol}//${authPart}${host}${path27}`;
84138
+ return `${protocol}//${authPart}${host}${path28}`;
84139
84139
  };
84140
84140
  exports2.getAbsoluteUrl = getAbsoluteUrl4;
84141
84141
  var parseResponseStatus = (kind, statusCode) => {
@@ -86289,7 +86289,7 @@ var require_RequireInTheMiddleSingleton3 = __commonJS({
86289
86289
  Object.defineProperty(exports2, "__esModule", { value: true });
86290
86290
  exports2.RequireInTheMiddleSingleton = void 0;
86291
86291
  var require_in_the_middle_1 = require_require_in_the_middle();
86292
- var path27 = require("path");
86292
+ var path28 = require("path");
86293
86293
  var ModuleNameTrie_1 = require_ModuleNameTrie3();
86294
86294
  var isMocha = [
86295
86295
  "afterEach",
@@ -86353,7 +86353,7 @@ var require_RequireInTheMiddleSingleton3 = __commonJS({
86353
86353
  };
86354
86354
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
86355
86355
  function normalizePathSeparators(moduleNameOrPath) {
86356
- return path27.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path27.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
86356
+ return path28.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path28.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
86357
86357
  }
86358
86358
  }
86359
86359
  });
@@ -86409,7 +86409,7 @@ var require_instrumentation6 = __commonJS({
86409
86409
  "use strict";
86410
86410
  Object.defineProperty(exports2, "__esModule", { value: true });
86411
86411
  exports2.InstrumentationBase = void 0;
86412
- var path27 = require("path");
86412
+ var path28 = require("path");
86413
86413
  var util_1 = require("util");
86414
86414
  var semver_1 = require_semver4();
86415
86415
  var shimmer_1 = require_shimmer3();
@@ -86507,7 +86507,7 @@ var require_instrumentation6 = __commonJS({
86507
86507
  }
86508
86508
  _extractPackageVersion(baseDir) {
86509
86509
  try {
86510
- const json = (0, fs_1.readFileSync)(path27.join(baseDir, "package.json"), {
86510
+ const json = (0, fs_1.readFileSync)(path28.join(baseDir, "package.json"), {
86511
86511
  encoding: "utf8"
86512
86512
  });
86513
86513
  const version2 = JSON.parse(json).version;
@@ -86549,7 +86549,7 @@ var require_instrumentation6 = __commonJS({
86549
86549
  return exports3;
86550
86550
  }
86551
86551
  const files = module3.files ?? [];
86552
- const normalizedName = path27.normalize(name);
86552
+ const normalizedName = path28.normalize(name);
86553
86553
  const supportedFileInstrumentations = files.filter((f2) => f2.name === normalizedName && isSupported(f2.supportedVersions, version2, module3.includePrerelease));
86554
86554
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
86555
86555
  file.moduleExports = patchedExports;
@@ -86595,8 +86595,8 @@ var require_instrumentation6 = __commonJS({
86595
86595
  this._warnOnPreloadedModules();
86596
86596
  for (const module3 of this._modules) {
86597
86597
  const hookFn = (exports3, name, baseDir) => {
86598
- if (!baseDir && path27.isAbsolute(name)) {
86599
- const parsedPath = path27.parse(name);
86598
+ if (!baseDir && path28.isAbsolute(name)) {
86599
+ const parsedPath = path28.parse(name);
86600
86600
  name = parsedPath.name;
86601
86601
  baseDir = parsedPath.dir;
86602
86602
  }
@@ -86605,7 +86605,7 @@ var require_instrumentation6 = __commonJS({
86605
86605
  const onRequire = (exports3, name, baseDir) => {
86606
86606
  return this._onRequire(module3, exports3, name, baseDir);
86607
86607
  };
86608
- const hook = path27.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
86608
+ const hook = path28.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
86609
86609
  this._hooks.push(hook);
86610
86610
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: false }, hookFn);
86611
86611
  this._hooks.push(esmHook);
@@ -88615,8 +88615,8 @@ var init_otel = __esm({
88615
88615
  return trimmed && trimmed.length > 0 ? trimmed : void 0;
88616
88616
  };
88617
88617
  readBuildMetadata = () => {
88618
- const rawPackageVersion = "1.0.27";
88619
- const rawGitSha = "2821c00b17041bcfe2faee30dac86a5e71409763";
88618
+ const rawPackageVersion = "1.0.29";
88619
+ const rawGitSha = "7b0db18f364a482d8fd6f0d875d43bdf93e0154f";
88620
88620
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
88621
88621
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
88622
88622
  return { packageVersion, gitSha };
@@ -88652,17 +88652,17 @@ var init_otel = __esm({
88652
88652
  ensureTracesEndpoint = (raw) => {
88653
88653
  try {
88654
88654
  const url = new URL(raw);
88655
- const path27 = url.pathname || "/";
88656
- if (path27 === "/" || path27 === "") {
88655
+ const path28 = url.pathname || "/";
88656
+ if (path28 === "/" || path28 === "") {
88657
88657
  url.pathname = "/v1/traces";
88658
88658
  return url.toString();
88659
88659
  }
88660
- if (path27.endsWith("/v1")) {
88661
- url.pathname = `${path27}/traces`;
88660
+ if (path28.endsWith("/v1")) {
88661
+ url.pathname = `${path28}/traces`;
88662
88662
  return url.toString();
88663
88663
  }
88664
- if (path27.endsWith("/v1/")) {
88665
- url.pathname = `${path27}traces`;
88664
+ if (path28.endsWith("/v1/")) {
88665
+ url.pathname = `${path28}traces`;
88666
88666
  return url.toString();
88667
88667
  }
88668
88668
  return url.toString();
@@ -89022,26 +89022,26 @@ var require_utils33 = __commonJS({
89022
89022
  const reqUrlObject = requestUrl || {};
89023
89023
  const protocol = reqUrlObject.protocol || fallbackProtocol;
89024
89024
  const port = (reqUrlObject.port || "").toString();
89025
- let path27 = reqUrlObject.path || "/";
89025
+ let path28 = reqUrlObject.path || "/";
89026
89026
  let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
89027
89027
  if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
89028
89028
  host += `:${port}`;
89029
89029
  }
89030
- if (path27.includes("?")) {
89030
+ if (path28.includes("?")) {
89031
89031
  try {
89032
- const parsedUrl = new URL(path27, "http://localhost");
89032
+ const parsedUrl = new URL(path28, "http://localhost");
89033
89033
  const sensitiveParamsToRedact = redactedQueryParams || [];
89034
89034
  for (const sensitiveParam of sensitiveParamsToRedact) {
89035
89035
  if (parsedUrl.searchParams.get(sensitiveParam)) {
89036
89036
  parsedUrl.searchParams.set(sensitiveParam, internal_types_2.STR_REDACTED);
89037
89037
  }
89038
89038
  }
89039
- path27 = `${parsedUrl.pathname}${parsedUrl.search}`;
89039
+ path28 = `${parsedUrl.pathname}${parsedUrl.search}`;
89040
89040
  } catch {
89041
89041
  }
89042
89042
  }
89043
89043
  const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
89044
- return `${protocol}//${authPart}${host}${path27}`;
89044
+ return `${protocol}//${authPart}${host}${path28}`;
89045
89045
  };
89046
89046
  exports2.getAbsoluteUrl = getAbsoluteUrl4;
89047
89047
  var parseResponseStatus = (kind, statusCode) => {
@@ -90414,8 +90414,8 @@ function getVueInternalName(value) {
90414
90414
  const isVNode = "__v_isVNode" in value && value.__v_isVNode;
90415
90415
  return isVNode ? "[VueVNode]" : "[VueViewModel]";
90416
90416
  }
90417
- function normalizeStackTracePath(path27) {
90418
- let filename = path27?.startsWith("file://") ? path27.slice(7) : path27;
90417
+ function normalizeStackTracePath(path28) {
90418
+ let filename = path28?.startsWith("file://") ? path28.slice(7) : path28;
90419
90419
  if (filename?.match(/\/[A-Z]:/)) {
90420
90420
  filename = filename.slice(1);
90421
90421
  }
@@ -92212,8 +92212,8 @@ function isValidProtocol(protocol) {
92212
92212
  return protocol === "http" || protocol === "https";
92213
92213
  }
92214
92214
  function dsnToString(dsn, withPassword = false) {
92215
- const { host, path: path27, pass, port, projectId, protocol, publicKey } = dsn;
92216
- return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path27 ? `${path27}/` : path27}${projectId}`;
92215
+ const { host, path: path28, pass, port, projectId, protocol, publicKey } = dsn;
92216
+ return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path28 ? `${path28}/` : path28}${projectId}`;
92217
92217
  }
92218
92218
  function dsnFromString(str) {
92219
92219
  const match2 = DSN_REGEX.exec(str);
@@ -92224,11 +92224,11 @@ function dsnFromString(str) {
92224
92224
  return void 0;
92225
92225
  }
92226
92226
  const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match2.slice(1);
92227
- let path27 = "";
92227
+ let path28 = "";
92228
92228
  let projectId = lastPath;
92229
92229
  const split = projectId.split("/");
92230
92230
  if (split.length > 1) {
92231
- path27 = split.slice(0, -1).join("/");
92231
+ path28 = split.slice(0, -1).join("/");
92232
92232
  projectId = split.pop();
92233
92233
  }
92234
92234
  if (projectId) {
@@ -92237,7 +92237,7 @@ function dsnFromString(str) {
92237
92237
  projectId = projectMatch[0];
92238
92238
  }
92239
92239
  }
92240
- return dsnFromComponents({ host, pass, path: path27, projectId, port, protocol, publicKey });
92240
+ return dsnFromComponents({ host, pass, path: path28, projectId, port, protocol, publicKey });
92241
92241
  }
92242
92242
  function dsnFromComponents(components) {
92243
92243
  return {
@@ -96375,9 +96375,9 @@ function stripUrlQueryAndFragment(urlPath) {
96375
96375
  return urlPath.split(/[?#]/, 1)[0];
96376
96376
  }
96377
96377
  function getSanitizedUrlString(url) {
96378
- const { protocol, host, path: path27 } = url;
96378
+ const { protocol, host, path: path28 } = url;
96379
96379
  const filteredHost = host?.replace(/^.*@/, "[filtered]:[filtered]@").replace(/(:80)$/, "").replace(/(:443)$/, "") || "";
96380
- return `${protocol ? `${protocol}://` : ""}${filteredHost}${path27}`;
96380
+ return `${protocol ? `${protocol}://` : ""}${filteredHost}${path28}`;
96381
96381
  }
96382
96382
  function stripDataUrlContent(url, includeDataPrefix = true) {
96383
96383
  if (url.startsWith("data:")) {
@@ -97232,8 +97232,8 @@ function splitPath(filename) {
97232
97232
  const parts = splitPathRe.exec(truncated);
97233
97233
  return parts ? parts.slice(1) : [];
97234
97234
  }
97235
- function dirname(path27) {
97236
- const result = splitPath(path27);
97235
+ function dirname(path28) {
97236
+ const result = splitPath(path28);
97237
97237
  const root = result[0] || "";
97238
97238
  let dir = result[1];
97239
97239
  if (!root && !dir) {
@@ -100948,11 +100948,11 @@ function isKnownPrefetchRequest(req) {
100948
100948
  return req.headers["next-router-prefetch"] === "1";
100949
100949
  }
100950
100950
  function isStaticAssetRequest(urlPath) {
100951
- const path27 = stripUrlQueryAndFragment(urlPath);
100952
- if (path27.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
100951
+ const path28 = stripUrlQueryAndFragment(urlPath);
100952
+ if (path28.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)) {
100953
100953
  return true;
100954
100954
  }
100955
- if (path27.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
100955
+ if (path28.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)) {
100956
100956
  return true;
100957
100957
  }
100958
100958
  return false;
@@ -101192,8 +101192,8 @@ function getRequestUrl(requestOptions) {
101192
101192
  const protocol = requestOptions.protocol || "";
101193
101193
  const hostname2 = requestOptions.hostname || requestOptions.host || "";
101194
101194
  const port = !requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\d+)$/.test(hostname2) ? "" : `:${requestOptions.port}`;
101195
- const path27 = requestOptions.path ? requestOptions.path : "/";
101196
- return `${protocol}//${hostname2}${port}${path27}`;
101195
+ const path28 = requestOptions.path ? requestOptions.path : "/";
101196
+ return `${protocol}//${hostname2}${port}${path28}`;
101197
101197
  }
101198
101198
  var init_getRequestUrl = __esm({
101199
101199
  "../../node_modules/@sentry/node-core/build/esm/utils/getRequestUrl.js"() {
@@ -102708,8 +102708,8 @@ function getRequestOptions(request2) {
102708
102708
  function getRequestUrl2(request2) {
102709
102709
  const hostname2 = request2.getHeader("host") || request2.host;
102710
102710
  const protocol = request2.protocol;
102711
- const path27 = request2.path;
102712
- return `${protocol}//${hostname2}${path27}`;
102711
+ const path28 = request2.path;
102712
+ return `${protocol}//${hostname2}${path28}`;
102713
102713
  }
102714
102714
  var init_outgoing_requests = __esm({
102715
102715
  "../../node_modules/@sentry/node-core/build/esm/integrations/http/outgoing-requests.js"() {
@@ -102931,19 +102931,19 @@ function getBreadcrumbData2(request2) {
102931
102931
  return {};
102932
102932
  }
102933
102933
  }
102934
- function getAbsoluteUrl2(origin, path27 = "/") {
102934
+ function getAbsoluteUrl2(origin, path28 = "/") {
102935
102935
  try {
102936
- const url = new URL(path27, origin);
102936
+ const url = new URL(path28, origin);
102937
102937
  return url.toString();
102938
102938
  } catch {
102939
102939
  const url = `${origin}`;
102940
- if (url.endsWith("/") && path27.startsWith("/")) {
102941
- return `${url}${path27.slice(1)}`;
102940
+ if (url.endsWith("/") && path28.startsWith("/")) {
102941
+ return `${url}${path28.slice(1)}`;
102942
102942
  }
102943
- if (!url.endsWith("/") && !path27.startsWith("/")) {
102944
- return `${url}/${path27.slice(1)}`;
102943
+ if (!url.endsWith("/") && !path28.startsWith("/")) {
102944
+ return `${url}/${path28.slice(1)}`;
102945
102945
  }
102946
- return `${url}${path27}`;
102946
+ return `${url}${path28}`;
102947
102947
  }
102948
102948
  }
102949
102949
  var import_api7, import_core12, import_instrumentation3, diagch, SENTRY_TRACE_HEADER2, SENTRY_BAGGAGE_HEADER2, BAGGAGE_HEADER_REGEX, SentryNodeFetchInstrumentation;
@@ -103435,12 +103435,12 @@ function emplace(map, key, contents) {
103435
103435
  }
103436
103436
  return value;
103437
103437
  }
103438
- function shouldSkipContextLinesForFile(path27) {
103439
- if (path27.startsWith("node:")) return true;
103440
- if (path27.endsWith(".min.js")) return true;
103441
- if (path27.endsWith(".min.cjs")) return true;
103442
- if (path27.endsWith(".min.mjs")) return true;
103443
- if (path27.startsWith("data:")) return true;
103438
+ function shouldSkipContextLinesForFile(path28) {
103439
+ if (path28.startsWith("node:")) return true;
103440
+ if (path28.endsWith(".min.js")) return true;
103441
+ if (path28.endsWith(".min.cjs")) return true;
103442
+ if (path28.endsWith(".min.mjs")) return true;
103443
+ if (path28.startsWith("data:")) return true;
103444
103444
  return false;
103445
103445
  }
103446
103446
  function shouldSkipContextLinesForFrame(frame) {
@@ -103488,9 +103488,9 @@ function makeLineReaderRanges(lines, linecontext) {
103488
103488
  }
103489
103489
  return out;
103490
103490
  }
103491
- function getContextLinesFromFile(path27, ranges, output) {
103491
+ function getContextLinesFromFile(path28, ranges, output) {
103492
103492
  return new Promise((resolve2, _reject) => {
103493
- const stream = (0, import_node_fs2.createReadStream)(path27);
103493
+ const stream = (0, import_node_fs2.createReadStream)(path28);
103494
103494
  const lineReaded = (0, import_node_readline.createInterface)({
103495
103495
  input: stream
103496
103496
  });
@@ -103508,8 +103508,8 @@ function getContextLinesFromFile(path27, ranges, output) {
103508
103508
  let rangeStart = range[0];
103509
103509
  let rangeEnd = range[1];
103510
103510
  function onStreamError(e2) {
103511
- LRU_FILE_CONTENTS_FS_READ_FAILED.set(path27, 1);
103512
- DEBUG_BUILD2 && debug.error(`Failed to read file: ${path27}. Error: ${e2}`);
103511
+ LRU_FILE_CONTENTS_FS_READ_FAILED.set(path28, 1);
103512
+ DEBUG_BUILD2 && debug.error(`Failed to read file: ${path28}. Error: ${e2}`);
103513
103513
  lineReaded.close();
103514
103514
  lineReaded.removeAllListeners();
103515
103515
  destroyStreamAndResolve();
@@ -104193,8 +104193,8 @@ function collectRequireModules() {
104193
104193
  const paths = getRequireCachePaths();
104194
104194
  const infos = {};
104195
104195
  const seen = /* @__PURE__ */ new Set();
104196
- paths.forEach((path27) => {
104197
- let dir = path27;
104196
+ paths.forEach((path28) => {
104197
+ let dir = path28;
104198
104198
  const updir = () => {
104199
104199
  const orig = dir;
104200
104200
  dir = (0, import_node_path3.dirname)(orig);
@@ -105151,8 +105151,8 @@ var init_envToBool = __esm({
105151
105151
  });
105152
105152
 
105153
105153
  // ../../node_modules/@sentry/node-core/build/esm/utils/module.js
105154
- function normalizeWindowsPath(path27) {
105155
- return path27.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
105154
+ function normalizeWindowsPath(path28) {
105155
+ return path28.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
105156
105156
  }
105157
105157
  function createGetModuleFromFilename(basePath = process.argv[1] ? dirname(process.argv[1]) : process.cwd(), isWindows = import_node_path4.sep === "\\") {
105158
105158
  const normalizedBase = isWindows ? normalizeWindowsPath(basePath) : basePath;
@@ -105742,15 +105742,15 @@ var init_http3 = __esm({
105742
105742
  });
105743
105743
 
105744
105744
  // ../../node_modules/@sentry/node/build/esm/integrations/node-fetch.js
105745
- function getAbsoluteUrl3(origin, path27 = "/") {
105745
+ function getAbsoluteUrl3(origin, path28 = "/") {
105746
105746
  const url = `${origin}`;
105747
- if (url.endsWith("/") && path27.startsWith("/")) {
105748
- return `${url}${path27.slice(1)}`;
105747
+ if (url.endsWith("/") && path28.startsWith("/")) {
105748
+ return `${url}${path28.slice(1)}`;
105749
105749
  }
105750
- if (!url.endsWith("/") && !path27.startsWith("/")) {
105751
- return `${url}/${path27.slice(1)}`;
105750
+ if (!url.endsWith("/") && !path28.startsWith("/")) {
105751
+ return `${url}/${path28.slice(1)}`;
105752
105752
  }
105753
- return `${url}${path27}`;
105753
+ return `${url}${path28}`;
105754
105754
  }
105755
105755
  function _shouldInstrumentSpans(options, clientOptions = {}) {
105756
105756
  return typeof options.spans === "boolean" ? options.spans : !clientOptions.skipOpenTelemetrySetup && hasSpansEnabled(clientOptions);
@@ -105883,15 +105883,15 @@ var require_utils34 = __commonJS({
105883
105883
  return { isLayerPathStored: true };
105884
105884
  };
105885
105885
  exports2.storeLayerPath = storeLayerPath;
105886
- var getRouterPath = (path27, layer) => {
105886
+ var getRouterPath = (path28, layer) => {
105887
105887
  const stackLayer = layer.handle?.stack?.[0];
105888
105888
  if (stackLayer?.route?.path) {
105889
- return `${path27}${stackLayer.route.path}`;
105889
+ return `${path28}${stackLayer.route.path}`;
105890
105890
  }
105891
105891
  if (stackLayer?.handle?.stack) {
105892
- return (0, exports2.getRouterPath)(path27, stackLayer);
105892
+ return (0, exports2.getRouterPath)(path28, stackLayer);
105893
105893
  }
105894
- return path27;
105894
+ return path28;
105895
105895
  };
105896
105896
  exports2.getRouterPath = getRouterPath;
105897
105897
  var getLayerMetadata = (route, layer, layerPath) => {
@@ -105973,7 +105973,7 @@ var require_utils34 = __commonJS({
105973
105973
  };
105974
105974
  function getConstructedRoute(req) {
105975
105975
  const layersStore = Array.isArray(req[internal_types_1._LAYERS_STORE_PROPERTY]) ? req[internal_types_1._LAYERS_STORE_PROPERTY] : [];
105976
- const meaningfulPaths = layersStore.filter((path27) => path27 !== "/" && path27 !== "/*");
105976
+ const meaningfulPaths = layersStore.filter((path28) => path28 !== "/" && path28 !== "/*");
105977
105977
  if (meaningfulPaths.length === 1 && meaningfulPaths[0] === "*") {
105978
105978
  return "*";
105979
105979
  }
@@ -105985,7 +105985,7 @@ var require_utils34 = __commonJS({
105985
105985
  if (layersStore.length === 0) {
105986
105986
  return void 0;
105987
105987
  }
105988
- if (layersStore.every((path27) => path27 === "/")) {
105988
+ if (layersStore.every((path28) => path28 === "/")) {
105989
105989
  return req.originalUrl === "/" ? "/" : void 0;
105990
105990
  }
105991
105991
  const constructedRoute = getConstructedRoute(req);
@@ -108857,23 +108857,23 @@ var require_utils35 = __commonJS({
108857
108857
  span.setAttribute(AttributeNames_1.AttributeNames.SOURCE, source);
108858
108858
  }
108859
108859
  exports2.addSpanSource = addSpanSource;
108860
- function createFieldIfNotExists(tracer, getConfig, contextValue, info, path27) {
108861
- let field = getField(contextValue, path27);
108860
+ function createFieldIfNotExists(tracer, getConfig, contextValue, info, path28) {
108861
+ let field = getField(contextValue, path28);
108862
108862
  if (field) {
108863
108863
  return { field, spanAdded: false };
108864
108864
  }
108865
108865
  const config3 = getConfig();
108866
- const parentSpan = config3.flatResolveSpans ? getRootSpan2(contextValue) : getParentFieldSpan(contextValue, path27);
108866
+ const parentSpan = config3.flatResolveSpans ? getRootSpan2(contextValue) : getParentFieldSpan(contextValue, path28);
108867
108867
  field = {
108868
- span: createResolverSpan(tracer, getConfig, contextValue, info, path27, parentSpan)
108868
+ span: createResolverSpan(tracer, getConfig, contextValue, info, path28, parentSpan)
108869
108869
  };
108870
- addField(contextValue, path27, field);
108870
+ addField(contextValue, path28, field);
108871
108871
  return { field, spanAdded: true };
108872
108872
  }
108873
- function createResolverSpan(tracer, getConfig, contextValue, info, path27, parentSpan) {
108873
+ function createResolverSpan(tracer, getConfig, contextValue, info, path28, parentSpan) {
108874
108874
  const attributes = {
108875
108875
  [AttributeNames_1.AttributeNames.FIELD_NAME]: info.fieldName,
108876
- [AttributeNames_1.AttributeNames.FIELD_PATH]: path27.join("."),
108876
+ [AttributeNames_1.AttributeNames.FIELD_PATH]: path28.join("."),
108877
108877
  [AttributeNames_1.AttributeNames.FIELD_TYPE]: info.returnType.toString()
108878
108878
  };
108879
108879
  const span = tracer.startSpan(`${enum_1.SpanNames.RESOLVE} ${attributes[AttributeNames_1.AttributeNames.FIELD_PATH]}`, {
@@ -108904,15 +108904,15 @@ var require_utils35 = __commonJS({
108904
108904
  }
108905
108905
  }
108906
108906
  exports2.getOperation = getOperation;
108907
- function addField(contextValue, path27, field) {
108908
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path27.join(".")] = field;
108907
+ function addField(contextValue, path28, field) {
108908
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path28.join(".")] = field;
108909
108909
  }
108910
- function getField(contextValue, path27) {
108911
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path27.join(".")];
108910
+ function getField(contextValue, path28) {
108911
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path28.join(".")];
108912
108912
  }
108913
- function getParentFieldSpan(contextValue, path27) {
108914
- for (let i2 = path27.length - 1; i2 > 0; i2--) {
108915
- const field = getField(contextValue, path27.slice(0, i2));
108913
+ function getParentFieldSpan(contextValue, path28) {
108914
+ for (let i2 = path28.length - 1; i2 > 0; i2--) {
108915
+ const field = getField(contextValue, path28.slice(0, i2));
108916
108916
  if (field) {
108917
108917
  return field.span;
108918
108918
  }
@@ -108922,9 +108922,9 @@ var require_utils35 = __commonJS({
108922
108922
  function getRootSpan2(contextValue) {
108923
108923
  return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].span;
108924
108924
  }
108925
- function pathToArray(mergeItems, path27) {
108925
+ function pathToArray(mergeItems, path28) {
108926
108926
  const flattened = [];
108927
- let curr = path27;
108927
+ let curr = path28;
108928
108928
  while (curr) {
108929
108929
  let key = curr.key;
108930
108930
  if (mergeItems && typeof key === "number") {
@@ -109077,14 +109077,14 @@ var require_utils35 = __commonJS({
109077
109077
  if (!contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL]) {
109078
109078
  return fieldResolver.call(this, source, args, contextValue, info);
109079
109079
  }
109080
- const path27 = pathToArray(config3.mergeItems, info && info.path);
109081
- const depth = path27.filter((item) => typeof item === "string").length;
109080
+ const path28 = pathToArray(config3.mergeItems, info && info.path);
109081
+ const depth = path28.filter((item) => typeof item === "string").length;
109082
109082
  let span;
109083
109083
  let shouldEndSpan = false;
109084
109084
  if (config3.depth >= 0 && config3.depth < depth) {
109085
- span = getParentFieldSpan(contextValue, path27);
109085
+ span = getParentFieldSpan(contextValue, path28);
109086
109086
  } else {
109087
- const { field, spanAdded } = createFieldIfNotExists(tracer, getConfig, contextValue, info, path27);
109087
+ const { field, spanAdded } = createFieldIfNotExists(tracer, getConfig, contextValue, info, path28);
109088
109088
  span = field.span;
109089
109089
  shouldEndSpan = spanAdded;
109090
109090
  }
@@ -114169,10 +114169,10 @@ var init_postgresjs = __esm({
114169
114169
  },
114170
114170
  (exports$1) => exports$1
114171
114171
  );
114172
- ["src", "cf/src", "cjs/src"].forEach((path27) => {
114172
+ ["src", "cf/src", "cjs/src"].forEach((path28) => {
114173
114173
  module2.files.push(
114174
114174
  new import_instrumentation8.InstrumentationNodeModuleFile(
114175
- `postgres/${path27}/query.js`,
114175
+ `postgres/${path28}/query.js`,
114176
114176
  SUPPORTED_VERSIONS2,
114177
114177
  this._patchQueryPrototype.bind(this),
114178
114178
  this._unpatchQueryPrototype.bind(this)
@@ -115631,7 +115631,7 @@ var require_RequireInTheMiddleSingleton4 = __commonJS({
115631
115631
  Object.defineProperty(exports2, "__esModule", { value: true });
115632
115632
  exports2.RequireInTheMiddleSingleton = void 0;
115633
115633
  var require_in_the_middle_1 = require_require_in_the_middle();
115634
- var path27 = require("path");
115634
+ var path28 = require("path");
115635
115635
  var ModuleNameTrie_1 = require_ModuleNameTrie4();
115636
115636
  var isMocha = [
115637
115637
  "afterEach",
@@ -115695,7 +115695,7 @@ var require_RequireInTheMiddleSingleton4 = __commonJS({
115695
115695
  };
115696
115696
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
115697
115697
  function normalizePathSeparators(moduleNameOrPath) {
115698
- return path27.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path27.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
115698
+ return path28.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path28.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
115699
115699
  }
115700
115700
  }
115701
115701
  });
@@ -115751,7 +115751,7 @@ var require_instrumentation19 = __commonJS({
115751
115751
  "use strict";
115752
115752
  Object.defineProperty(exports2, "__esModule", { value: true });
115753
115753
  exports2.InstrumentationBase = void 0;
115754
- var path27 = require("path");
115754
+ var path28 = require("path");
115755
115755
  var util_1 = require("util");
115756
115756
  var semver_1 = require_semver5();
115757
115757
  var shimmer_1 = require_shimmer4();
@@ -115849,7 +115849,7 @@ var require_instrumentation19 = __commonJS({
115849
115849
  }
115850
115850
  _extractPackageVersion(baseDir) {
115851
115851
  try {
115852
- const json = (0, fs_1.readFileSync)(path27.join(baseDir, "package.json"), {
115852
+ const json = (0, fs_1.readFileSync)(path28.join(baseDir, "package.json"), {
115853
115853
  encoding: "utf8"
115854
115854
  });
115855
115855
  const version2 = JSON.parse(json).version;
@@ -115891,7 +115891,7 @@ var require_instrumentation19 = __commonJS({
115891
115891
  return exports3;
115892
115892
  }
115893
115893
  const files = module3.files ?? [];
115894
- const normalizedName = path27.normalize(name);
115894
+ const normalizedName = path28.normalize(name);
115895
115895
  const supportedFileInstrumentations = files.filter((f2) => f2.name === normalizedName).filter((f2) => isSupported(f2.supportedVersions, version2, module3.includePrerelease));
115896
115896
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
115897
115897
  file.moduleExports = patchedExports;
@@ -115937,8 +115937,8 @@ var require_instrumentation19 = __commonJS({
115937
115937
  this._warnOnPreloadedModules();
115938
115938
  for (const module3 of this._modules) {
115939
115939
  const hookFn = (exports3, name, baseDir) => {
115940
- if (!baseDir && path27.isAbsolute(name)) {
115941
- const parsedPath = path27.parse(name);
115940
+ if (!baseDir && path28.isAbsolute(name)) {
115941
+ const parsedPath = path28.parse(name);
115942
115942
  name = parsedPath.name;
115943
115943
  baseDir = parsedPath.dir;
115944
115944
  }
@@ -115947,7 +115947,7 @@ var require_instrumentation19 = __commonJS({
115947
115947
  const onRequire = (exports3, name, baseDir) => {
115948
115948
  return this._onRequire(module3, exports3, name, baseDir);
115949
115949
  };
115950
- const hook = path27.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
115950
+ const hook = path28.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
115951
115951
  this._hooks.push(hook);
115952
115952
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: false }, hookFn);
115953
115953
  this._hooks.push(esmHook);
@@ -117100,13 +117100,13 @@ var init_instrumentation2 = __esm({
117100
117100
  return function(original) {
117101
117101
  return function wrappedHandler(...args) {
117102
117102
  if (typeof args[0] === "string") {
117103
- const path27 = args[0];
117103
+ const path28 = args[0];
117104
117104
  if (args.length === 1) {
117105
- return original.apply(this, [path27]);
117105
+ return original.apply(this, [path28]);
117106
117106
  }
117107
117107
  const handlers2 = args.slice(1);
117108
117108
  return original.apply(this, [
117109
- path27,
117109
+ path28,
117110
117110
  ...handlers2.map((handler) => instrumentation._wrapHandler(handler))
117111
117111
  ]);
117112
117112
  }
@@ -117140,13 +117140,13 @@ var init_instrumentation2 = __esm({
117140
117140
  return function(original) {
117141
117141
  return function wrappedHandler(...args) {
117142
117142
  if (typeof args[0] === "string") {
117143
- const path27 = args[0];
117143
+ const path28 = args[0];
117144
117144
  if (args.length === 1) {
117145
- return original.apply(this, [path27]);
117145
+ return original.apply(this, [path28]);
117146
117146
  }
117147
117147
  const handlers2 = args.slice(1);
117148
117148
  return original.apply(this, [
117149
- path27,
117149
+ path28,
117150
117150
  ...handlers2.map((handler) => instrumentation._wrapHandler(handler))
117151
117151
  ]);
117152
117152
  }
@@ -117166,8 +117166,8 @@ var init_instrumentation2 = __esm({
117166
117166
  if (!instrumentation.isEnabled()) {
117167
117167
  return handler.apply(this, [c2, next]);
117168
117168
  }
117169
- const path27 = c2.req.path;
117170
- const span = instrumentation.tracer.startSpan(path27);
117169
+ const path28 = c2.req.path;
117170
+ const span = instrumentation.tracer.startSpan(path28);
117171
117171
  return import_api20.context.with(import_api20.trace.setSpan(import_api20.context.active(), span), () => {
117172
117172
  return instrumentation._safeExecute(
117173
117173
  () => {
@@ -117177,7 +117177,7 @@ var init_instrumentation2 = __esm({
117177
117177
  const type = instrumentation._determineHandlerType(result2);
117178
117178
  span.setAttributes({
117179
117179
  [AttributeNames2.HONO_TYPE]: type,
117180
- [AttributeNames2.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path27 : handler.name || "anonymous"
117180
+ [AttributeNames2.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path28 : handler.name || "anonymous"
117181
117181
  });
117182
117182
  instrumentation.getConfig().responseHook?.(span);
117183
117183
  return result2;
@@ -117186,7 +117186,7 @@ var init_instrumentation2 = __esm({
117186
117186
  const type = instrumentation._determineHandlerType(result);
117187
117187
  span.setAttributes({
117188
117188
  [AttributeNames2.HONO_TYPE]: type,
117189
- [AttributeNames2.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path27 : handler.name || "anonymous"
117189
+ [AttributeNames2.HONO_NAME]: type === HonoTypes.REQUEST_HANDLER ? path28 : handler.name || "anonymous"
117190
117190
  });
117191
117191
  instrumentation.getConfig().responseHook?.(span);
117192
117192
  return result;
@@ -117451,11 +117451,11 @@ var require_instrumentation21 = __commonJS({
117451
117451
  const router = dispatchLayer.router;
117452
117452
  const routesStack = router?.stack ?? [];
117453
117453
  for (const pathLayer of routesStack) {
117454
- const path27 = pathLayer.path;
117454
+ const path28 = pathLayer.path;
117455
117455
  const pathStack = pathLayer.stack;
117456
117456
  for (let j2 = 0; j2 < pathStack.length; j2++) {
117457
117457
  const routedMiddleware = pathStack[j2];
117458
- pathStack[j2] = this._patchLayer(routedMiddleware, true, path27);
117458
+ pathStack[j2] = this._patchLayer(routedMiddleware, true, path28);
117459
117459
  }
117460
117460
  }
117461
117461
  return dispatchLayer;
@@ -120604,9 +120604,9 @@ var init_sentry = __esm({
120604
120604
  sentryEnabled = false;
120605
120605
  uncaughtExceptionMonitorInstalled = false;
120606
120606
  readBuildMetadata2 = () => {
120607
- const rawPackageVersion = "1.0.27";
120608
- const rawGitSha = "2821c00b17041bcfe2faee30dac86a5e71409763";
120609
- const rawSentryRelease = "boxes-dev-dvb@1.0.27+2821c00b17041bcfe2faee30dac86a5e71409763";
120607
+ const rawPackageVersion = "1.0.29";
120608
+ const rawGitSha = "7b0db18f364a482d8fd6f0d875d43bdf93e0154f";
120609
+ const rawSentryRelease = "boxes-dev-dvb@1.0.29+7b0db18f364a482d8fd6f0d875d43bdf93e0154f";
120610
120610
  const packageVersion = typeof rawPackageVersion === "string" ? rawPackageVersion : void 0;
120611
120611
  const gitSha = typeof rawGitSha === "string" ? rawGitSha : void 0;
120612
120612
  const sentryRelease = typeof rawSentryRelease === "string" ? rawSentryRelease : void 0;
@@ -120918,11 +120918,11 @@ var init_repo = __esm({
120918
120918
  try {
120919
120919
  const url = new URL(trimmed);
120920
120920
  const host = url.hostname.toLowerCase();
120921
- const path27 = stripGitSuffix(url.pathname);
120922
- if (!host || !path27) {
120921
+ const path28 = stripGitSuffix(url.pathname);
120922
+ if (!host || !path28) {
120923
120923
  throw new Error(`Unrecognized git URL: ${input}`);
120924
120924
  }
120925
- return `${host}/${path27}`;
120925
+ return `${host}/${path28}`;
120926
120926
  } catch {
120927
120927
  }
120928
120928
  if (trimmed.includes(":")) {
@@ -120950,11 +120950,11 @@ var init_sprites = __esm({
120950
120950
  method;
120951
120951
  path;
120952
120952
  body;
120953
- constructor(status, method, path27, body) {
120954
- super(`Sprites API error ${status} ${method} ${path27}: ${body}`);
120953
+ constructor(status, method, path28, body) {
120954
+ super(`Sprites API error ${status} ${method} ${path28}: ${body}`);
120955
120955
  this.status = status;
120956
120956
  this.method = method;
120957
- this.path = path27;
120957
+ this.path = path28;
120958
120958
  this.body = body;
120959
120959
  }
120960
120960
  };
@@ -120999,10 +120999,10 @@ var init_sprites = __esm({
120999
120999
  }
121000
121000
  return { message: String(event) };
121001
121001
  };
121002
- toWsUrl = (apiBaseUrl, path27) => {
121002
+ toWsUrl = (apiBaseUrl, path28) => {
121003
121003
  const base = new URL(apiBaseUrl);
121004
121004
  const protocol = base.protocol === "https:" ? "wss:" : "ws:";
121005
- return new URL(path27, `${protocol}//${base.host}`);
121005
+ return new URL(path28, `${protocol}//${base.host}`);
121006
121006
  };
121007
121007
  shellQuote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
121008
121008
  DEFAULT_SPRITES_HTTP_TIMEOUT_MS_IDEMPOTENT = 5e3;
@@ -121097,12 +121097,12 @@ var init_sprites = __esm({
121097
121097
  }
121098
121098
  throw new Error(`Sprites request failed: ${options.method} ${options.path}`);
121099
121099
  };
121100
- requestJson = async (apiBaseUrl, token, method, path27, body) => {
121100
+ requestJson = async (apiBaseUrl, token, method, path28, body) => {
121101
121101
  return await withSpritesRetry({
121102
121102
  method,
121103
- path: path27,
121103
+ path: path28,
121104
121104
  run: async (signal, requestId) => {
121105
- const url = new URL(path27, apiBaseUrl);
121105
+ const url = new URL(path28, apiBaseUrl);
121106
121106
  const headers = {
121107
121107
  authorization: `Bearer ${token}`,
121108
121108
  "x-request-id": requestId
@@ -121119,12 +121119,12 @@ var init_sprites = __esm({
121119
121119
  logger.info("sprites_response", {
121120
121120
  requestId,
121121
121121
  method,
121122
- path: path27,
121122
+ path: path28,
121123
121123
  status: response.status
121124
121124
  });
121125
121125
  if (!response.ok) {
121126
121126
  const snippet = text.trim().slice(0, 200);
121127
- throw new SpritesApiError(response.status, method, path27, snippet);
121127
+ throw new SpritesApiError(response.status, method, path28, snippet);
121128
121128
  }
121129
121129
  if (!text) return null;
121130
121130
  try {
@@ -121146,8 +121146,8 @@ var init_sprites = __esm({
121146
121146
  if (options?.prefix) {
121147
121147
  params.set("prefix", options.prefix);
121148
121148
  }
121149
- const path27 = `/v1/sprites${params.size ? `?${params.toString()}` : ""}`;
121150
- const payload = await requestJson(apiBaseUrl, token, "GET", path27);
121149
+ const path28 = `/v1/sprites${params.size ? `?${params.toString()}` : ""}`;
121150
+ const payload = await requestJson(apiBaseUrl, token, "GET", path28);
121151
121151
  const record = payload && typeof payload === "object" ? payload : null;
121152
121152
  const rawSprites = Array.isArray(record?.sprites) ? record?.sprites : Array.isArray(payload) ? payload : [];
121153
121153
  const sprites = rawSprites.filter(
@@ -121173,12 +121173,12 @@ var init_sprites = __esm({
121173
121173
  }
121174
121174
  return response;
121175
121175
  };
121176
- requestNdjson = async (apiBaseUrl, token, method, path27, body) => {
121176
+ requestNdjson = async (apiBaseUrl, token, method, path28, body) => {
121177
121177
  return await withSpritesRetry({
121178
121178
  method,
121179
- path: path27,
121179
+ path: path28,
121180
121180
  run: async (signal, requestId) => {
121181
- const url = new URL(path27, apiBaseUrl);
121181
+ const url = new URL(path28, apiBaseUrl);
121182
121182
  const headers = {
121183
121183
  authorization: `Bearer ${token}`,
121184
121184
  "x-request-id": requestId
@@ -121194,13 +121194,13 @@ var init_sprites = __esm({
121194
121194
  logger.info("sprites_response", {
121195
121195
  requestId,
121196
121196
  method,
121197
- path: path27,
121197
+ path: path28,
121198
121198
  status: response.status
121199
121199
  });
121200
121200
  const text = await response.text();
121201
121201
  if (!response.ok) {
121202
121202
  const snippet = text.trim().slice(0, 200);
121203
- throw new SpritesApiError(response.status, method, path27, snippet);
121203
+ throw new SpritesApiError(response.status, method, path28, snippet);
121204
121204
  }
121205
121205
  const lines = text.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0);
121206
121206
  const events = [];
@@ -121231,17 +121231,17 @@ var init_sprites = __esm({
121231
121231
  });
121232
121232
  };
121233
121233
  writeFile = async (apiBaseUrl, token, name, remotePath, data) => {
121234
- const path27 = `/v1/sprites/${name}/fs/write`;
121235
- const url = new URL(path27, apiBaseUrl);
121234
+ const path28 = `/v1/sprites/${name}/fs/write`;
121235
+ const url = new URL(path28, apiBaseUrl);
121236
121236
  url.searchParams.set("path", remotePath);
121237
121237
  url.searchParams.set("mkdir", "true");
121238
121238
  await withSpritesRetry({
121239
121239
  method: "PUT",
121240
- path: path27,
121240
+ path: path28,
121241
121241
  run: async (signal, requestId) => {
121242
121242
  logger.info("sprites_fs_write", {
121243
121243
  requestId,
121244
- path: path27,
121244
+ path: path28,
121245
121245
  name,
121246
121246
  remotePath,
121247
121247
  size: data.length
@@ -121258,12 +121258,12 @@ var init_sprites = __esm({
121258
121258
  });
121259
121259
  logger.info("sprites_fs_write_response", {
121260
121260
  requestId,
121261
- path: path27,
121261
+ path: path28,
121262
121262
  status: response.status
121263
121263
  });
121264
121264
  if (!response.ok) {
121265
121265
  const snippet = (await response.text()).trim().slice(0, 200);
121266
- throw new SpritesApiError(response.status, "PUT", path27, snippet);
121266
+ throw new SpritesApiError(response.status, "PUT", path28, snippet);
121267
121267
  }
121268
121268
  }
121269
121269
  });
@@ -121297,19 +121297,19 @@ var init_sprites = __esm({
121297
121297
  return service;
121298
121298
  };
121299
121299
  readFile2 = async (apiBaseUrl, token, name, options) => {
121300
- const path27 = `/v1/sprites/${name}/fs/read`;
121301
- const url = new URL(path27, apiBaseUrl);
121300
+ const path28 = `/v1/sprites/${name}/fs/read`;
121301
+ const url = new URL(path28, apiBaseUrl);
121302
121302
  url.searchParams.set("path", options.path);
121303
121303
  if (options.workingDir) {
121304
121304
  url.searchParams.set("workingDir", options.workingDir);
121305
121305
  }
121306
121306
  return await withSpritesRetry({
121307
121307
  method: "GET",
121308
- path: path27,
121308
+ path: path28,
121309
121309
  run: async (signal, requestId) => {
121310
121310
  logger.info("sprites_fs_read", {
121311
121311
  requestId,
121312
- path: path27,
121312
+ path: path28,
121313
121313
  name,
121314
121314
  remotePath: options.path,
121315
121315
  workingDir: options.workingDir
@@ -121324,12 +121324,12 @@ var init_sprites = __esm({
121324
121324
  });
121325
121325
  logger.info("sprites_fs_read_response", {
121326
121326
  requestId,
121327
- path: path27,
121327
+ path: path28,
121328
121328
  status: response.status
121329
121329
  });
121330
121330
  if (!response.ok) {
121331
121331
  const snippet = (await response.text()).trim().slice(0, 200);
121332
- throw new SpritesApiError(response.status, "GET", path27, snippet);
121332
+ throw new SpritesApiError(response.status, "GET", path28, snippet);
121333
121333
  }
121334
121334
  const buffer = await response.arrayBuffer();
121335
121335
  return new Uint8Array(buffer);
@@ -121574,8 +121574,8 @@ var init_sprites = __esm({
121574
121574
  return [];
121575
121575
  };
121576
121576
  execCommand = async (apiBaseUrl, token, name, cmd, requestId, options) => {
121577
- const path27 = `/v1/sprites/${name}/exec`;
121578
- const url = toWsUrl(apiBaseUrl, path27);
121577
+ const path28 = `/v1/sprites/${name}/exec`;
121578
+ const url = toWsUrl(apiBaseUrl, path28);
121579
121579
  cmd.forEach((part) => url.searchParams.append("cmd", part));
121580
121580
  url.searchParams.set("tty", "false");
121581
121581
  url.searchParams.set("stdin", "false");
@@ -121591,7 +121591,7 @@ var init_sprites = __esm({
121591
121591
  resolved = true;
121592
121592
  logger.warn("sprites_exec_timeout", {
121593
121593
  requestId,
121594
- path: path27,
121594
+ path: path28,
121595
121595
  timeoutMs
121596
121596
  });
121597
121597
  try {
@@ -121625,7 +121625,7 @@ var init_sprites = __esm({
121625
121625
  const status = response.statusCode ?? 0;
121626
121626
  logger.warn("sprites_exec_unexpected_response", {
121627
121627
  requestId,
121628
- path: path27,
121628
+ path: path28,
121629
121629
  status,
121630
121630
  headers: response.headers,
121631
121631
  bodySnippet: snippet ? snippet.slice(0, 800) : void 0
@@ -121646,7 +121646,7 @@ var init_sprites = __esm({
121646
121646
  if (resolved) return;
121647
121647
  resolved = true;
121648
121648
  if (timeoutHandle) clearTimeout(timeoutHandle);
121649
- logger.info("sprites_exec_response", { requestId, path: path27, status: code2 });
121649
+ logger.info("sprites_exec_response", { requestId, path: path28, status: code2 });
121650
121650
  resolve2({
121651
121651
  exitCode: code2,
121652
121652
  stdout: Buffer.concat(stdout).toString("utf8"),
@@ -121696,7 +121696,7 @@ var init_sprites = __esm({
121696
121696
  const errorMessage = errorInfo.details && errorInfo.details !== errorInfo.message ? `${errorInfo.message} (${errorInfo.details})` : errorInfo.message;
121697
121697
  logger.warn("sprites_exec_error", {
121698
121698
  requestId,
121699
- path: path27,
121699
+ path: path28,
121700
121700
  errorMessage,
121701
121701
  errorName: errorInfo.name,
121702
121702
  errorCode: errorInfo.code,
@@ -124012,12 +124012,12 @@ function createApi(pathParts = []) {
124012
124012
  `API path is expected to be of the form \`api.moduleName.functionName\`. Found: \`${found}\``
124013
124013
  );
124014
124014
  }
124015
- const path27 = pathParts.slice(0, -1).join("/");
124015
+ const path28 = pathParts.slice(0, -1).join("/");
124016
124016
  const exportName = pathParts[pathParts.length - 1];
124017
124017
  if (exportName === "default") {
124018
- return path27;
124018
+ return path28;
124019
124019
  } else {
124020
- return path27 + ":" + exportName;
124020
+ return path28 + ":" + exportName;
124021
124021
  }
124022
124022
  } else if (prop === Symbol.toStringTag) {
124023
124023
  return "FunctionReference";
@@ -127226,16 +127226,16 @@ var init_simple_client_node = __esm({
127226
127226
  });
127227
127227
  require_node_gyp_build = __commonJS2({
127228
127228
  "../common/temp/node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) {
127229
- var fs26 = __require("fs");
127230
- var path27 = __require("path");
127231
- var os15 = __require("os");
127229
+ var fs27 = __require("fs");
127230
+ var path28 = __require("path");
127231
+ var os16 = __require("os");
127232
127232
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
127233
127233
  var vars = process.config && process.config.variables || {};
127234
127234
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
127235
127235
  var abi = process.versions.modules;
127236
127236
  var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
127237
- var arch2 = process.env.npm_config_arch || os15.arch();
127238
- var platform2 = process.env.npm_config_platform || os15.platform();
127237
+ var arch2 = process.env.npm_config_arch || os16.arch();
127238
+ var platform2 = process.env.npm_config_platform || os16.platform();
127239
127239
  var libc = process.env.LIBC || (isAlpine(platform2) ? "musl" : "glibc");
127240
127240
  var armv = process.env.ARM_VERSION || (arch2 === "arm64" ? "8" : vars.arm_version) || "";
127241
127241
  var uv = (process.versions.uv || "").split(".")[0];
@@ -127244,21 +127244,21 @@ var init_simple_client_node = __esm({
127244
127244
  return runtimeRequire(load2.resolve(dir));
127245
127245
  }
127246
127246
  load2.resolve = load2.path = function(dir) {
127247
- dir = path27.resolve(dir || ".");
127247
+ dir = path28.resolve(dir || ".");
127248
127248
  try {
127249
- var name = runtimeRequire(path27.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
127249
+ var name = runtimeRequire(path28.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
127250
127250
  if (process.env[name + "_PREBUILD"]) dir = process.env[name + "_PREBUILD"];
127251
127251
  } catch (err) {
127252
127252
  }
127253
127253
  if (!prebuildsOnly) {
127254
- var release2 = getFirst(path27.join(dir, "build/Release"), matchBuild);
127254
+ var release2 = getFirst(path28.join(dir, "build/Release"), matchBuild);
127255
127255
  if (release2) return release2;
127256
- var debug2 = getFirst(path27.join(dir, "build/Debug"), matchBuild);
127256
+ var debug2 = getFirst(path28.join(dir, "build/Debug"), matchBuild);
127257
127257
  if (debug2) return debug2;
127258
127258
  }
127259
127259
  var prebuild = resolve2(dir);
127260
127260
  if (prebuild) return prebuild;
127261
- var nearby = resolve2(path27.dirname(process.execPath));
127261
+ var nearby = resolve2(path28.dirname(process.execPath));
127262
127262
  if (nearby) return nearby;
127263
127263
  var target = [
127264
127264
  "platform=" + platform2,
@@ -127275,26 +127275,26 @@ var init_simple_client_node = __esm({
127275
127275
  ].filter(Boolean).join(" ");
127276
127276
  throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
127277
127277
  function resolve2(dir2) {
127278
- var tuples = readdirSync(path27.join(dir2, "prebuilds")).map(parseTuple);
127278
+ var tuples = readdirSync(path28.join(dir2, "prebuilds")).map(parseTuple);
127279
127279
  var tuple = tuples.filter(matchTuple(platform2, arch2)).sort(compareTuples)[0];
127280
127280
  if (!tuple) return;
127281
- var prebuilds = path27.join(dir2, "prebuilds", tuple.name);
127281
+ var prebuilds = path28.join(dir2, "prebuilds", tuple.name);
127282
127282
  var parsed = readdirSync(prebuilds).map(parseTags);
127283
127283
  var candidates = parsed.filter(matchTags(runtime, abi));
127284
127284
  var winner = candidates.sort(compareTags(runtime))[0];
127285
- if (winner) return path27.join(prebuilds, winner.file);
127285
+ if (winner) return path28.join(prebuilds, winner.file);
127286
127286
  }
127287
127287
  };
127288
127288
  function readdirSync(dir) {
127289
127289
  try {
127290
- return fs26.readdirSync(dir);
127290
+ return fs27.readdirSync(dir);
127291
127291
  } catch (err) {
127292
127292
  return [];
127293
127293
  }
127294
127294
  }
127295
127295
  function getFirst(dir, filter2) {
127296
127296
  var files = readdirSync(dir).filter(filter2);
127297
- return files[0] && path27.join(dir, files[0]);
127297
+ return files[0] && path28.join(dir, files[0]);
127298
127298
  }
127299
127299
  function matchBuild(name) {
127300
127300
  return /\.node$/.test(name);
@@ -127381,7 +127381,7 @@ var init_simple_client_node = __esm({
127381
127381
  return typeof window !== "undefined" && window.process && window.process.type === "renderer";
127382
127382
  }
127383
127383
  function isAlpine(platform22) {
127384
- return platform22 === "linux" && fs26.existsSync("/etc/alpine-release");
127384
+ return platform22 === "linux" && fs27.existsSync("/etc/alpine-release");
127385
127385
  }
127386
127386
  load2.parseTags = parseTags;
127387
127387
  load2.matchTags = matchTags;
@@ -132630,16 +132630,16 @@ var init_src2 = __esm({
132630
132630
  portManager.start();
132631
132631
  const server = (0, import_node_http.createServer)((req, res) => {
132632
132632
  const requestId = req.headers["x-request-id"] ?? (0, import_node_crypto4.randomUUID)();
132633
- const path27 = readRequestPath(req);
132633
+ const path28 = readRequestPath(req);
132634
132634
  res.on("finish", () => {
132635
132635
  logger6.info("daemon_request", {
132636
132636
  requestId,
132637
132637
  method: req.method,
132638
- path: path27,
132638
+ path: path28,
132639
132639
  status: res.statusCode
132640
132640
  });
132641
132641
  });
132642
- if (path27 === "/health") {
132642
+ if (path28 === "/health") {
132643
132643
  writeJson(res, 200, {
132644
132644
  ok: true,
132645
132645
  pid: process.pid,
@@ -132648,7 +132648,7 @@ var init_src2 = __esm({
132648
132648
  });
132649
132649
  return;
132650
132650
  }
132651
- if (path27 === "/version") {
132651
+ if (path28 === "/version") {
132652
132652
  writeJson(res, 200, {
132653
132653
  name: "dvbd",
132654
132654
  version: daemonVersion,
@@ -132657,7 +132657,7 @@ var init_src2 = __esm({
132657
132657
  });
132658
132658
  return;
132659
132659
  }
132660
- if (path27 === "/boxes") {
132660
+ if (path28 === "/boxes") {
132661
132661
  void buildBoxSummaries().then((boxes) => {
132662
132662
  writeJson(res, 200, { boxes });
132663
132663
  }).catch((error2) => {
@@ -132665,7 +132665,7 @@ var init_src2 = __esm({
132665
132665
  });
132666
132666
  return;
132667
132667
  }
132668
- if (path27 === "/registry/project" && req.method === "GET") {
132668
+ if (path28 === "/registry/project" && req.method === "GET") {
132669
132669
  const url = new URL(req.url ?? "", "http://localhost");
132670
132670
  const fingerprint = url.searchParams.get("fingerprint") ?? "";
132671
132671
  void fetchRegistry().then((registry) => {
@@ -132676,7 +132676,7 @@ var init_src2 = __esm({
132676
132676
  });
132677
132677
  return;
132678
132678
  }
132679
- if (path27 === "/registry/alias" && req.method === "GET") {
132679
+ if (path28 === "/registry/alias" && req.method === "GET") {
132680
132680
  const url = new URL(req.url ?? "", "http://localhost");
132681
132681
  const alias = url.searchParams.get("alias") ?? "";
132682
132682
  void fetchRegistry().then((registry) => {
@@ -132687,7 +132687,7 @@ var init_src2 = __esm({
132687
132687
  });
132688
132688
  return;
132689
132689
  }
132690
- if (path27 === "/registry/upsert" && req.method === "POST") {
132690
+ if (path28 === "/registry/upsert" && req.method === "POST") {
132691
132691
  void readBody(req).then(async (payload) => {
132692
132692
  const project = payload?.project;
132693
132693
  const box = payload?.box;
@@ -132712,7 +132712,7 @@ var init_src2 = __esm({
132712
132712
  });
132713
132713
  return;
132714
132714
  }
132715
- if (path27 === "/registry/usage" && req.method === "POST") {
132715
+ if (path28 === "/registry/usage" && req.method === "POST") {
132716
132716
  void readBody(req).then(async (payload) => {
132717
132717
  const canonical = typeof payload?.canonical === "string" ? payload.canonical : "";
132718
132718
  if (!canonical) {
@@ -132727,7 +132727,7 @@ var init_src2 = __esm({
132727
132727
  });
132728
132728
  return;
132729
132729
  }
132730
- if (path27 === "/registry/remove" && req.method === "POST") {
132730
+ if (path28 === "/registry/remove" && req.method === "POST") {
132731
132731
  void readBody(req).then(async (payload) => {
132732
132732
  const canonical = typeof payload?.canonical === "string" ? payload.canonical : "";
132733
132733
  if (!canonical) {
@@ -132742,12 +132742,12 @@ var init_src2 = __esm({
132742
132742
  });
132743
132743
  return;
132744
132744
  }
132745
- if (path27 === "/ports" && req.method === "GET") {
132745
+ if (path28 === "/ports" && req.method === "GET") {
132746
132746
  const snapshot = portManager.listPorts();
132747
132747
  writeJson(res, 200, snapshot);
132748
132748
  return;
132749
132749
  }
132750
- if (path27 === "/ports/clear" && req.method === "POST") {
132750
+ if (path28 === "/ports/clear" && req.method === "POST") {
132751
132751
  void readBody(req).then((payload) => {
132752
132752
  const box = typeof payload?.box === "string" ? payload.box : void 0;
132753
132753
  if (!box) {
@@ -132761,7 +132761,7 @@ var init_src2 = __esm({
132761
132761
  });
132762
132762
  return;
132763
132763
  }
132764
- if (path27 === "/ports/reload" && req.method === "POST") {
132764
+ if (path28 === "/ports/reload" && req.method === "POST") {
132765
132765
  void readBody(req).then(async (payload) => {
132766
132766
  const box = typeof payload?.box === "string" ? payload.box : void 0;
132767
132767
  if (!box) {
@@ -132775,7 +132775,7 @@ var init_src2 = __esm({
132775
132775
  });
132776
132776
  return;
132777
132777
  }
132778
- if (path27 === "/ports/policy" && req.method === "POST") {
132778
+ if (path28 === "/ports/policy" && req.method === "POST") {
132779
132779
  void readBody(req).then((payload) => {
132780
132780
  const box = typeof payload?.box === "string" ? payload.box : void 0;
132781
132781
  const policy = payload?.policy === "auto" || payload?.policy === "disabled" ? payload.policy : null;
@@ -132792,7 +132792,7 @@ var init_src2 = __esm({
132792
132792
  });
132793
132793
  return;
132794
132794
  }
132795
- if (path27 === "/ports/forward" && req.method === "POST") {
132795
+ if (path28 === "/ports/forward" && req.method === "POST") {
132796
132796
  void readBody(req).then(async (payload) => {
132797
132797
  const box = typeof payload?.box === "string" ? payload.box : void 0;
132798
132798
  const port = typeof payload?.port === "number" ? payload.port : void 0;
@@ -132812,7 +132812,7 @@ var init_src2 = __esm({
132812
132812
  });
132813
132813
  return;
132814
132814
  }
132815
- if (path27 === "/ports/stop" && req.method === "POST") {
132815
+ if (path28 === "/ports/stop" && req.method === "POST") {
132816
132816
  void readBody(req).then((payload) => {
132817
132817
  const box = typeof payload?.box === "string" ? payload.box : void 0;
132818
132818
  const port = typeof payload?.port === "number" ? payload.port : void 0;
@@ -132827,7 +132827,7 @@ var init_src2 = __esm({
132827
132827
  });
132828
132828
  return;
132829
132829
  }
132830
- if (path27 === "/admin/sentry-test" && req.method === "POST") {
132830
+ if (path28 === "/admin/sentry-test" && req.method === "POST") {
132831
132831
  void readBody(req).then(async (payload) => {
132832
132832
  const email = await readControlPlaneEmail();
132833
132833
  if (!isTermsteadAdminEmail(email)) {
@@ -132843,7 +132843,7 @@ var init_src2 = __esm({
132843
132843
  });
132844
132844
  return;
132845
132845
  }
132846
- if (path27 === "/shutdown" && req.method === "POST" && allowShutdown()) {
132846
+ if (path28 === "/shutdown" && req.method === "POST" && allowShutdown()) {
132847
132847
  writeJson(res, 202, { ok: true });
132848
132848
  void close2();
132849
132849
  return;
@@ -132925,13 +132925,14 @@ var init_logger3 = __esm({
132925
132925
  });
132926
132926
 
132927
132927
  // src/devbox/controlPlane.ts
132928
- var import_node_http2, import_node_crypto5, import_node_child_process2, resolveControlPlaneUrl2, resolveConvexUrl2, openBrowser, requestJson2, startCallbackServer, getControlPlaneUrl, getConvexUrl, signInWithBrowser, spriteTokenGet, spriteTokenSet, spriteDaemonReleaseGet, spriteDaemonTokenIssue, spriteDaemonSessionSummariesList, spriteDaemonSessionsList, helloViewerGet, withConvexClient, fetchSpriteTokenStatus, fetchViewerIdentity, storeSpriteToken, fetchSpriteDaemonRelease, issueSpriteDaemonToken, listSpriteDaemonSessionSummaries, listSpriteDaemonSessions, signOutControlPlane, refreshControlPlaneSession;
132928
+ var import_node_http2, import_node_crypto5, import_node_child_process2, import_node_readline2, resolveControlPlaneUrl2, resolveConvexUrl2, openBrowser, waitForAnyKey, requestJson2, startCallbackServer, getControlPlaneUrl, getConvexUrl, signInWithBrowser, spriteTokenGet, spriteTokenSet, spriteDaemonReleaseGet, spriteDaemonTokenIssue, spriteDaemonSessionSummariesList, spriteDaemonSessionsList, helloViewerGet, withConvexClient, fetchSpriteTokenStatus, fetchViewerIdentity, storeSpriteToken, fetchSpriteDaemonRelease, issueSpriteDaemonToken, listSpriteDaemonSessionSummaries, listSpriteDaemonSessions, signOutControlPlane, refreshControlPlaneSession;
132929
132929
  var init_controlPlane = __esm({
132930
132930
  "src/devbox/controlPlane.ts"() {
132931
132931
  "use strict";
132932
132932
  import_node_http2 = __toESM(require("node:http"), 1);
132933
132933
  import_node_crypto5 = require("node:crypto");
132934
132934
  import_node_child_process2 = require("node:child_process");
132935
+ import_node_readline2 = __toESM(require("node:readline"), 1);
132935
132936
  init_index_node();
132936
132937
  init_server();
132937
132938
  init_logger3();
@@ -132978,9 +132979,45 @@ var init_controlPlane = __esm({
132978
132979
  console.log(url);
132979
132980
  }
132980
132981
  };
132981
- requestJson2 = async (baseUrl, method, path27, body, token) => {
132982
+ waitForAnyKey = async (message) => {
132983
+ const stdin = process.stdin;
132984
+ if (!stdin.isTTY) return;
132985
+ process.stdout.write(message);
132986
+ const wasRawModeEnabled = Boolean(stdin.isRaw);
132987
+ await new Promise((resolve2, reject) => {
132988
+ const cleanup = () => {
132989
+ stdin.off("keypress", onKeypress);
132990
+ if (!wasRawModeEnabled) {
132991
+ try {
132992
+ stdin.setRawMode(false);
132993
+ } catch {
132994
+ }
132995
+ }
132996
+ stdin.pause();
132997
+ process.stdout.write("\n");
132998
+ };
132999
+ const onKeypress = (_2, key) => {
133000
+ cleanup();
133001
+ if (key.ctrl && key.name === "c") {
133002
+ reject(new Error("Control plane sign-in cancelled."));
133003
+ return;
133004
+ }
133005
+ resolve2();
133006
+ };
133007
+ import_node_readline2.default.emitKeypressEvents(stdin);
133008
+ if (!wasRawModeEnabled) {
133009
+ try {
133010
+ stdin.setRawMode(true);
133011
+ } catch {
133012
+ }
133013
+ }
133014
+ stdin.resume();
133015
+ stdin.once("keypress", onKeypress);
133016
+ });
133017
+ };
133018
+ requestJson2 = async (baseUrl, method, path28, body, token) => {
132982
133019
  const requestId = (0, import_node_crypto5.randomUUID)();
132983
- const url = new URL(path27, baseUrl);
133020
+ const url = new URL(path28, baseUrl);
132984
133021
  const headers = {
132985
133022
  "x-request-id": requestId
132986
133023
  };
@@ -133102,6 +133139,9 @@ var init_controlPlane = __esm({
133102
133139
  if (!start.redirect || !start.verifier) {
133103
133140
  throw new Error("Control plane sign-in failed to start.");
133104
133141
  }
133142
+ await waitForAnyKey(
133143
+ "Login required. Press any key to open the browser and log in..."
133144
+ );
133105
133145
  openBrowser(start.redirect);
133106
133146
  const code2 = await callback.waitForCode();
133107
133147
  const finish = await requestJson2(
@@ -133135,7 +133175,7 @@ var init_controlPlane = __esm({
133135
133175
  "Convex URL is not embedded. Rebuild with CONVEX_CLOUD_URL set."
133136
133176
  );
133137
133177
  }
133138
- const client = new ConvexClient(convexUrl);
133178
+ const client = new ConvexClient(convexUrl, { logger: false });
133139
133179
  client.setAuth(async () => token);
133140
133180
  try {
133141
133181
  return await handler(client);
@@ -133657,7 +133697,7 @@ var init_daemonClient = __esm({
133657
133697
  });
133658
133698
 
133659
133699
  // src/devbox/auth.ts
133660
- var import_node_crypto7, import_promises7, promptForValue, computeSyncHash, TOKEN_REFRESH_BUFFER_MS2, decodeJwtPayload4, parseTokenExpiresAt2, shouldRefreshToken2, isUnauthorizedError2, clearControlPlaneSession2, updateControlPlaneSession, refreshControlPlaneToken, tokenInstructions, promptForSpritesToken, ensureControlPlaneToken, ensureSpritesToken;
133700
+ var import_node_crypto7, import_promises7, computeSyncHash, TOKEN_REFRESH_BUFFER_MS2, decodeJwtPayload4, parseTokenExpiresAt2, shouldRefreshToken2, isUnauthorizedError2, clearControlPlaneSession2, updateControlPlaneSession, refreshControlPlaneToken, tokenInstructions, promptForSpritesToken, ensureControlPlaneToken, ensureSpritesToken;
133661
133701
  var init_auth = __esm({
133662
133702
  "src/devbox/auth.ts"() {
133663
133703
  "use strict";
@@ -133666,18 +133706,6 @@ var init_auth = __esm({
133666
133706
  init_src();
133667
133707
  init_logger3();
133668
133708
  init_controlPlane();
133669
- promptForValue = async (label) => {
133670
- if (!process.stdin.isTTY) {
133671
- throw new Error(`Missing ${label} (non-interactive)`);
133672
- }
133673
- const rl = import_promises7.default.createInterface({
133674
- input: process.stdin,
133675
- output: process.stdout
133676
- });
133677
- const answer = await rl.question(`${label}: `);
133678
- rl.close();
133679
- return answer.trim();
133680
- };
133681
133709
  computeSyncHash = (token, controlPlaneToken) => {
133682
133710
  if (!controlPlaneToken) return null;
133683
133711
  return (0, import_node_crypto7.createHash)("sha256").update(`${controlPlaneToken}:${token}`).digest("hex");
@@ -133744,9 +133772,10 @@ var init_auth = __esm({
133744
133772
  return tokens.token;
133745
133773
  };
133746
133774
  tokenInstructions = () => [
133747
- "To get a Sprites API token:",
133748
- "1) Create an account: https://sprites.dev/",
133749
- "2) Create an API token: https://sprites.dev/account"
133775
+ "To use boxes.dev in alpha, we require a Sprites (fly.io) account. Please create one:",
133776
+ " 1) Create an account: https://sprites.dev/",
133777
+ " 2) Create an API token: https://sprites.dev/account",
133778
+ "Once you have an account, paste your Sprites API token:"
133750
133779
  ].join("\n");
133751
133780
  promptForSpritesToken = async () => {
133752
133781
  if (!process.stdin.isTTY) {
@@ -133756,9 +133785,15 @@ ${tokenInstructions()}`
133756
133785
  );
133757
133786
  }
133758
133787
  console.log(tokenInstructions());
133759
- return promptForValue("Paste your API token");
133788
+ const rl = import_promises7.default.createInterface({
133789
+ input: process.stdin,
133790
+ output: process.stdout
133791
+ });
133792
+ const answer = await rl.question("> ");
133793
+ rl.close();
133794
+ return answer.trim();
133760
133795
  };
133761
- ensureControlPlaneToken = async (store, stage) => {
133796
+ ensureControlPlaneToken = async (store, stage, hooks) => {
133762
133797
  const controlPlaneUrl = getControlPlaneUrl();
133763
133798
  const convexUrl = getConvexUrl();
133764
133799
  if (!controlPlaneUrl) {
@@ -133794,7 +133829,7 @@ ${tokenInstructions()}`
133794
133829
  if (!process.stdin.isTTY) {
133795
133830
  return null;
133796
133831
  }
133797
- stage?.("Opening browser to sign in");
133832
+ hooks?.beforeInteractivePrompt?.();
133798
133833
  const tokens = await signInWithBrowser();
133799
133834
  await updateControlPlaneSession(store, tokens.token, tokens.refreshToken);
133800
133835
  logger7.info("control_plane_signed_in");
@@ -133816,7 +133851,7 @@ ${tokenInstructions()}`
133816
133851
  let controlPlaneToken = await store.getControlPlaneToken();
133817
133852
  const requireControlPlaneToken2 = options?.requireControlPlaneToken !== false;
133818
133853
  if (!controlPlaneToken && requireControlPlaneToken2) {
133819
- controlPlaneToken = await ensureControlPlaneToken(store, stage);
133854
+ controlPlaneToken = await ensureControlPlaneToken(store, stage, options);
133820
133855
  }
133821
133856
  if (controlPlaneToken && requireControlPlaneToken2) {
133822
133857
  const expiresAt = await store.getControlPlaneTokenExpiresAt();
@@ -133835,7 +133870,11 @@ ${tokenInstructions()}`
133835
133870
  await store.setToken(options.tokenOverride);
133836
133871
  if (controlPlaneUrl && convexUrl) {
133837
133872
  if (!controlPlaneToken) {
133838
- controlPlaneToken = await ensureControlPlaneToken(store, stage);
133873
+ controlPlaneToken = await ensureControlPlaneToken(
133874
+ store,
133875
+ stage,
133876
+ options
133877
+ );
133839
133878
  }
133840
133879
  if (controlPlaneToken) {
133841
133880
  try {
@@ -133873,14 +133912,18 @@ ${tokenInstructions()}`
133873
133912
  return { token: existing, controlPlaneToken, source: "store" };
133874
133913
  }
133875
133914
  if (controlPlaneUrl && convexUrl && !controlPlaneToken && options?.forceSync) {
133876
- controlPlaneToken = await ensureControlPlaneToken(store, stage);
133915
+ controlPlaneToken = await ensureControlPlaneToken(store, stage, options);
133877
133916
  }
133878
133917
  const tokenHash = computeSyncHash(existing, controlPlaneToken);
133879
133918
  const needsSync = Boolean(tokenHash && syncedHash !== tokenHash);
133880
133919
  if (needsSync && controlPlaneUrl && convexUrl) {
133881
133920
  try {
133882
133921
  if (!controlPlaneToken) {
133883
- controlPlaneToken = await ensureControlPlaneToken(store, stage);
133922
+ controlPlaneToken = await ensureControlPlaneToken(
133923
+ store,
133924
+ stage,
133925
+ options
133926
+ );
133884
133927
  }
133885
133928
  if (controlPlaneToken) {
133886
133929
  await storeSpriteToken(controlPlaneToken, existing);
@@ -133905,7 +133948,7 @@ ${tokenInstructions()}`
133905
133948
  }
133906
133949
  if (controlPlaneUrl && convexUrl) {
133907
133950
  if (!controlPlaneToken) {
133908
- controlPlaneToken = await ensureControlPlaneToken(store, stage);
133951
+ controlPlaneToken = await ensureControlPlaneToken(store, stage, options);
133909
133952
  }
133910
133953
  if (controlPlaneToken) {
133911
133954
  stage?.("Checking account token status");
@@ -133930,8 +133973,8 @@ ${tokenInstructions()}`
133930
133973
  }
133931
133974
  }
133932
133975
  }
133933
- stage?.("Enter Sprites API token");
133934
- const token = await promptForSpritesToken();
133976
+ options?.beforeInteractivePrompt?.();
133977
+ const token = options?.promptForToken ? await options.promptForToken() : await promptForSpritesToken();
133935
133978
  await store.setToken(token);
133936
133979
  if (controlPlaneUrl && convexUrl && controlPlaneToken) {
133937
133980
  stage?.("Saving account token");
@@ -138735,6 +138778,10 @@ var init_completions = __esm({
138735
138778
  addStaticOption(whoami, "json", "Output JSON");
138736
138779
  const logout = root.command("logout", "Clear control-plane session locally");
138737
138780
  addStaticOption(logout, "json", "Output JSON");
138781
+ const uninstall = root.command("uninstall", "Remove local devbox state");
138782
+ addStaticOption(uninstall, "dry-run", "Preview cleanup actions");
138783
+ addStaticOption(uninstall, "yes", "Skip confirmation");
138784
+ addStaticOption(uninstall, "json", "Output JSON");
138738
138785
  const init3 = root.command("init", "Create a devbox and upload repo");
138739
138786
  addValueOption(init3, "alias", "Alias for the devbox");
138740
138787
  addValueOption(init3, "name", "Canonical devbox name");
@@ -139761,14 +139808,14 @@ var init_sessionUtils = __esm({
139761
139808
  });
139762
139809
 
139763
139810
  // src/devbox/commands/connect.ts
139764
- var import_node_child_process4, import_node_crypto8, import_node_path12, import_node_readline2, import_promises12, DEFAULT_TTY_COLS, DEFAULT_TTY_ROWS, TERMINAL_INPUT_MODE_RESET, resetTerminalInputModes, openBrowser2, warnSetupStatus, resolveTtyEnv, formatEnvExports, parseEnvSize, readStreamSize, resolveTtySize, resolveSessionEnv, parseReachabilityState, runCommand, checkReachability, watchReachabilityWithScutil, watchReachabilityWithNotifyutil, waitForNetworkOnline, parseConnectArgs, parseConnectTarget, buildLoggingCommand, CONNECT_SHELL, confirmNewSession, promptRenameSession, HEARTBEAT_INTERVAL_MS, HEARTBEAT_TIMEOUT_MS, INPUT_PROBE_TIMEOUT_MS, WS_OPEN_STATE, streamExecSession, runConnect;
139811
+ var import_node_child_process4, import_node_crypto8, import_node_path12, import_node_readline3, import_promises12, DEFAULT_TTY_COLS, DEFAULT_TTY_ROWS, TERMINAL_INPUT_MODE_RESET, resetTerminalInputModes, openBrowser2, warnSetupStatus, resolveTtyEnv, formatEnvExports, parseEnvSize, readStreamSize, resolveTtySize, resolveSessionEnv, parseReachabilityState, runCommand, checkReachability, watchReachabilityWithScutil, watchReachabilityWithNotifyutil, waitForNetworkOnline, parseConnectArgs, parseConnectTarget, buildLoggingCommand, CONNECT_SHELL, confirmNewSession, promptRenameSession, HEARTBEAT_INTERVAL_MS, HEARTBEAT_TIMEOUT_MS, INPUT_PROBE_TIMEOUT_MS, WS_OPEN_STATE, streamExecSession, runConnect;
139765
139812
  var init_connect2 = __esm({
139766
139813
  "src/devbox/commands/connect.ts"() {
139767
139814
  "use strict";
139768
139815
  import_node_child_process4 = require("node:child_process");
139769
139816
  import_node_crypto8 = require("node:crypto");
139770
139817
  import_node_path12 = require("node:path");
139771
- import_node_readline2 = require("node:readline");
139818
+ import_node_readline3 = require("node:readline");
139772
139819
  import_promises12 = __toESM(require("node:readline/promises"), 1);
139773
139820
  init_src();
139774
139821
  init_src();
@@ -139962,7 +140009,7 @@ var init_connect2 = __esm({
139962
140009
  return;
139963
140010
  }
139964
140011
  child.stdout.setEncoding("utf8");
139965
- rl = (0, import_node_readline2.createInterface)({ input: child.stdout });
140012
+ rl = (0, import_node_readline3.createInterface)({ input: child.stdout });
139966
140013
  rl.on("line", (line) => {
139967
140014
  const trimmed = line.trim();
139968
140015
  if (trimmed.startsWith("Reachable")) {
@@ -140036,7 +140083,7 @@ var init_connect2 = __esm({
140036
140083
  })();
140037
140084
  };
140038
140085
  child.stdout.setEncoding("utf8");
140039
- rl = (0, import_node_readline2.createInterface)({ input: child.stdout });
140086
+ rl = (0, import_node_readline3.createInterface)({ input: child.stdout });
140040
140087
  rl.on("line", () => {
140041
140088
  triggerCheck();
140042
140089
  });
@@ -141952,12 +141999,13 @@ function D(t3, e2, s2) {
141952
141999
  const i2 = t3 + e2, r2 = Math.max(s2.length - 1, 0), n2 = i2 < 0 ? r2 : i2 > r2 ? 0 : i2;
141953
142000
  return s2[n2].disabled ? D(n2, e2 < 0 ? -1 : 1, s2) : n2;
141954
142001
  }
141955
- var import_node_process8, k, import_node_readline3, import_sisteransi, import_node_tty2, at, lt, ht, O, y, M, P, L, ct, pt, X, ft, S, W, Z, Ft, j, Q, dt, tt, U, et, mt, st, it, gt, G, vt, Et, At, _, bt, z, rt, nt, x, kt, Mt, Wt, Tt;
142002
+ var import_picocolors, import_node_process8, k, import_node_readline4, import_sisteransi, import_node_tty2, at, lt, ht, O, y, M, P, L, ct, pt, X, ft, S, W, Z, Ft, j, Q, dt, tt, U, et, mt, st, it, gt, G, vt, Et, At, _, bt, z, rt, nt, x, kt, Mt, Wt, Tt, $t;
141956
142003
  var init_dist2 = __esm({
141957
142004
  "../../node_modules/@clack/core/dist/index.mjs"() {
142005
+ import_picocolors = __toESM(require_picocolors(), 1);
141958
142006
  import_node_process8 = require("node:process");
141959
142007
  k = __toESM(require("node:readline"), 1);
141960
- import_node_readline3 = __toESM(require("node:readline"), 1);
142008
+ import_node_readline4 = __toESM(require("node:readline"), 1);
141961
142009
  import_sisteransi = __toESM(require_src79(), 1);
141962
142010
  import_node_tty2 = require("node:tty");
141963
142011
  at = (t3) => t3 === 161 || t3 === 164 || t3 === 167 || t3 === 168 || t3 === 170 || t3 === 173 || t3 === 174 || t3 >= 176 && t3 <= 180 || t3 >= 182 && t3 <= 186 || t3 >= 188 && t3 <= 191 || t3 === 198 || t3 === 208 || t3 === 215 || t3 === 216 || t3 >= 222 && t3 <= 225 || t3 === 230 || t3 >= 232 && t3 <= 234 || t3 === 236 || t3 === 237 || t3 === 240 || t3 === 242 || t3 === 243 || t3 >= 247 && t3 <= 250 || t3 === 252 || t3 === 254 || t3 === 257 || t3 === 273 || t3 === 275 || t3 === 283 || t3 === 294 || t3 === 295 || t3 === 299 || t3 >= 305 && t3 <= 307 || t3 === 312 || t3 >= 319 && t3 <= 322 || t3 === 324 || t3 >= 328 && t3 <= 331 || t3 === 333 || t3 === 338 || t3 === 339 || t3 === 358 || t3 === 359 || t3 === 363 || t3 === 462 || t3 === 464 || t3 === 466 || t3 === 468 || t3 === 470 || t3 === 472 || t3 === 474 || t3 === 476 || t3 === 593 || t3 === 609 || t3 === 708 || t3 === 711 || t3 >= 713 && t3 <= 715 || t3 === 717 || t3 === 720 || t3 >= 728 && t3 <= 731 || t3 === 733 || t3 === 735 || t3 >= 768 && t3 <= 879 || t3 >= 913 && t3 <= 929 || t3 >= 931 && t3 <= 937 || t3 >= 945 && t3 <= 961 || t3 >= 963 && t3 <= 969 || t3 === 1025 || t3 >= 1040 && t3 <= 1103 || t3 === 1105 || t3 === 8208 || t3 >= 8211 && t3 <= 8214 || t3 === 8216 || t3 === 8217 || t3 === 8220 || t3 === 8221 || t3 >= 8224 && t3 <= 8226 || t3 >= 8228 && t3 <= 8231 || t3 === 8240 || t3 === 8242 || t3 === 8243 || t3 === 8245 || t3 === 8251 || t3 === 8254 || t3 === 8308 || t3 === 8319 || t3 >= 8321 && t3 <= 8324 || t3 === 8364 || t3 === 8451 || t3 === 8453 || t3 === 8457 || t3 === 8467 || t3 === 8470 || t3 === 8481 || t3 === 8482 || t3 === 8486 || t3 === 8491 || t3 === 8531 || t3 === 8532 || t3 >= 8539 && t3 <= 8542 || t3 >= 8544 && t3 <= 8555 || t3 >= 8560 && t3 <= 8569 || t3 === 8585 || t3 >= 8592 && t3 <= 8601 || t3 === 8632 || t3 === 8633 || t3 === 8658 || t3 === 8660 || t3 === 8679 || t3 === 8704 || t3 === 8706 || t3 === 8707 || t3 === 8711 || t3 === 8712 || t3 === 8715 || t3 === 8719 || t3 === 8721 || t3 === 8725 || t3 === 8730 || t3 >= 8733 && t3 <= 8736 || t3 === 8739 || t3 === 8741 || t3 >= 8743 && t3 <= 8748 || t3 === 8750 || t3 >= 8756 && t3 <= 8759 || t3 === 8764 || t3 === 8765 || t3 === 8776 || t3 === 8780 || t3 === 8786 || t3 === 8800 || t3 === 8801 || t3 >= 8804 && t3 <= 8807 || t3 === 8810 || t3 === 8811 || t3 === 8814 || t3 === 8815 || t3 === 8834 || t3 === 8835 || t3 === 8838 || t3 === 8839 || t3 === 8853 || t3 === 8857 || t3 === 8869 || t3 === 8895 || t3 === 8978 || t3 >= 9312 && t3 <= 9449 || t3 >= 9451 && t3 <= 9547 || t3 >= 9552 && t3 <= 9587 || t3 >= 9600 && t3 <= 9615 || t3 >= 9618 && t3 <= 9621 || t3 === 9632 || t3 === 9633 || t3 >= 9635 && t3 <= 9641 || t3 === 9650 || t3 === 9651 || t3 === 9654 || t3 === 9655 || t3 === 9660 || t3 === 9661 || t3 === 9664 || t3 === 9665 || t3 >= 9670 && t3 <= 9672 || t3 === 9675 || t3 >= 9678 && t3 <= 9681 || t3 >= 9698 && t3 <= 9701 || t3 === 9711 || t3 === 9733 || t3 === 9734 || t3 === 9737 || t3 === 9742 || t3 === 9743 || t3 === 9756 || t3 === 9758 || t3 === 9792 || t3 === 9794 || t3 === 9824 || t3 === 9825 || t3 >= 9827 && t3 <= 9829 || t3 >= 9831 && t3 <= 9834 || t3 === 9836 || t3 === 9837 || t3 === 9839 || t3 === 9886 || t3 === 9887 || t3 === 9919 || t3 >= 9926 && t3 <= 9933 || t3 >= 9935 && t3 <= 9939 || t3 >= 9941 && t3 <= 9953 || t3 === 9955 || t3 === 9960 || t3 === 9961 || t3 >= 9963 && t3 <= 9969 || t3 === 9972 || t3 >= 9974 && t3 <= 9977 || t3 === 9979 || t3 === 9980 || t3 === 9982 || t3 === 9983 || t3 === 10045 || t3 >= 10102 && t3 <= 10111 || t3 >= 11094 && t3 <= 11097 || t3 >= 12872 && t3 <= 12879 || t3 >= 57344 && t3 <= 63743 || t3 >= 65024 && t3 <= 65039 || t3 === 65533 || t3 >= 127232 && t3 <= 127242 || t3 >= 127248 && t3 <= 127277 || t3 >= 127280 && t3 <= 127337 || t3 >= 127344 && t3 <= 127373 || t3 === 127375 || t3 === 127376 || t3 >= 127387 && t3 <= 127404 || t3 >= 917760 && t3 <= 917999 || t3 >= 983040 && t3 <= 1048573 || t3 >= 1048576 && t3 <= 1114109;
@@ -142170,7 +142218,7 @@ var init_dist2 = __esm({
142170
142218
  this.state = "cancel", this.close();
142171
142219
  }, { once: true });
142172
142220
  }
142173
- this.rl = import_node_readline3.default.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), T(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
142221
+ this.rl = import_node_readline4.default.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: true }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, true), this.input.on("keypress", this.onKeypress), T(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
142174
142222
  this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e2(this.value);
142175
142223
  }), this.once("cancel", () => {
142176
142224
  this.output.write(import_sisteransi.cursor.show), this.output.off("resize", this.render), T(this.input, false), e2(z);
@@ -142352,6 +142400,25 @@ var init_dist2 = __esm({
142352
142400
  });
142353
142401
  }
142354
142402
  };
142403
+ $t = class extends x {
142404
+ get userInputWithCursor() {
142405
+ if (this.state === "submit") return this.userInput;
142406
+ const e2 = this.userInput;
142407
+ if (this.cursor >= e2.length) return `${this.userInput}\u2588`;
142408
+ const s2 = e2.slice(0, this.cursor), [i2, ...r2] = e2.slice(this.cursor);
142409
+ return `${s2}${import_picocolors.default.inverse(i2)}${r2.join("")}`;
142410
+ }
142411
+ get cursor() {
142412
+ return this._cursor;
142413
+ }
142414
+ constructor(e2) {
142415
+ super({ ...e2, initialUserInput: e2.initialUserInput ?? e2.initialValue }), this.on("userInput", (s2) => {
142416
+ this._setValue(s2);
142417
+ }), this.on("finalize", () => {
142418
+ this.value || (this.value = e2.defaultValue), this.value === void 0 && (this.value = "");
142419
+ });
142420
+ }
142421
+ };
142355
142422
  }
142356
142423
  });
142357
142424
 
@@ -142366,67 +142433,67 @@ function q2(e2, r2, s2) {
142366
142433
  `).map((i2) => St(i2, r2, s2)).join(`
142367
142434
  `);
142368
142435
  }
142369
- var import_picocolors, import_node_process9, import_sisteransi2, ee, ue, Te, w, Me, ce, de, k2, $e, h, x2, Re, Oe, Y, K2, te, G2, z2, Pe, se, he, Ne, me, pe, We, ge, fe, Fe, ye, N2, Ee, mt2, pt2, gt2, ve, re, ie, Ae, ne, ft2, Ft2, Le, yt2, M2, ae, je, Et2, Ce, Ve, vt2, ke, we, Ge, At2, He, Ue, Ct2, Se, wt, St, It2, J2, Mt2, R2, Pt, jt, Vt2, kt2, Ut, Ie, Ye, oe, qt, Jt, ze, Yt, zt;
142436
+ var import_picocolors2, import_node_process9, import_sisteransi2, ee, ue, Te, w2, Me, ce, de, k2, $e, h, x2, Re, Oe, Y, K2, te, G2, z2, Pe, se, he, Ne, me, pe, We, ge, fe, Fe, ye, N2, Ee, mt2, pt2, gt2, ve, re, ie, Ae, ne, ft2, Ft2, Le, yt2, M2, ae, je, Et2, Ce, Ve, vt2, ke, we, Ge, At2, He, Ue, Ct2, Se, wt, St, It2, J2, Mt2, R2, Pt, jt, Vt2, kt2, Ut, Ie, Ye, oe, qt, Jt, ze, Yt, zt, Qt;
142370
142437
  var init_dist3 = __esm({
142371
142438
  "../../node_modules/@clack/prompts/dist/index.mjs"() {
142372
142439
  init_dist2();
142373
142440
  init_dist2();
142374
- import_picocolors = __toESM(require_picocolors(), 1);
142441
+ import_picocolors2 = __toESM(require_picocolors(), 1);
142375
142442
  import_node_process9 = __toESM(require("node:process"), 1);
142376
142443
  import_sisteransi2 = __toESM(require_src79(), 1);
142377
142444
  ee = ht2();
142378
142445
  ue = () => process.env.CI === "true";
142379
142446
  Te = (e2) => e2.isTTY === true;
142380
- w = (e2, r2) => ee ? e2 : r2;
142381
- Me = w("\u25C6", "*");
142382
- ce = w("\u25A0", "x");
142383
- de = w("\u25B2", "x");
142384
- k2 = w("\u25C7", "o");
142385
- $e = w("\u250C", "T");
142386
- h = w("\u2502", "|");
142387
- x2 = w("\u2514", "\u2014");
142388
- Re = w("\u2510", "T");
142389
- Oe = w("\u2518", "\u2014");
142390
- Y = w("\u25CF", ">");
142391
- K2 = w("\u25CB", " ");
142392
- te = w("\u25FB", "[\u2022]");
142393
- G2 = w("\u25FC", "[+]");
142394
- z2 = w("\u25FB", "[ ]");
142395
- Pe = w("\u25AA", "\u2022");
142396
- se = w("\u2500", "-");
142397
- he = w("\u256E", "+");
142398
- Ne = w("\u251C", "+");
142399
- me = w("\u256F", "+");
142400
- pe = w("\u2570", "+");
142401
- We = w("\u256D", "+");
142402
- ge = w("\u25CF", "\u2022");
142403
- fe = w("\u25C6", "*");
142404
- Fe = w("\u25B2", "!");
142405
- ye = w("\u25A0", "x");
142447
+ w2 = (e2, r2) => ee ? e2 : r2;
142448
+ Me = w2("\u25C6", "*");
142449
+ ce = w2("\u25A0", "x");
142450
+ de = w2("\u25B2", "x");
142451
+ k2 = w2("\u25C7", "o");
142452
+ $e = w2("\u250C", "T");
142453
+ h = w2("\u2502", "|");
142454
+ x2 = w2("\u2514", "\u2014");
142455
+ Re = w2("\u2510", "T");
142456
+ Oe = w2("\u2518", "\u2014");
142457
+ Y = w2("\u25CF", ">");
142458
+ K2 = w2("\u25CB", " ");
142459
+ te = w2("\u25FB", "[\u2022]");
142460
+ G2 = w2("\u25FC", "[+]");
142461
+ z2 = w2("\u25FB", "[ ]");
142462
+ Pe = w2("\u25AA", "\u2022");
142463
+ se = w2("\u2500", "-");
142464
+ he = w2("\u256E", "+");
142465
+ Ne = w2("\u251C", "+");
142466
+ me = w2("\u256F", "+");
142467
+ pe = w2("\u2570", "+");
142468
+ We = w2("\u256D", "+");
142469
+ ge = w2("\u25CF", "\u2022");
142470
+ fe = w2("\u25C6", "*");
142471
+ Fe = w2("\u25B2", "!");
142472
+ ye = w2("\u25A0", "x");
142406
142473
  N2 = (e2) => {
142407
142474
  switch (e2) {
142408
142475
  case "initial":
142409
142476
  case "active":
142410
- return import_picocolors.default.cyan(Me);
142477
+ return import_picocolors2.default.cyan(Me);
142411
142478
  case "cancel":
142412
- return import_picocolors.default.red(ce);
142479
+ return import_picocolors2.default.red(ce);
142413
142480
  case "error":
142414
- return import_picocolors.default.yellow(de);
142481
+ return import_picocolors2.default.yellow(de);
142415
142482
  case "submit":
142416
- return import_picocolors.default.green(k2);
142483
+ return import_picocolors2.default.green(k2);
142417
142484
  }
142418
142485
  };
142419
142486
  Ee = (e2) => {
142420
142487
  switch (e2) {
142421
142488
  case "initial":
142422
142489
  case "active":
142423
- return import_picocolors.default.cyan(h);
142490
+ return import_picocolors2.default.cyan(h);
142424
142491
  case "cancel":
142425
- return import_picocolors.default.red(h);
142492
+ return import_picocolors2.default.red(h);
142426
142493
  case "error":
142427
- return import_picocolors.default.yellow(h);
142494
+ return import_picocolors2.default.yellow(h);
142428
142495
  case "submit":
142429
- return import_picocolors.default.green(h);
142496
+ return import_picocolors2.default.green(h);
142430
142497
  }
142431
142498
  };
142432
142499
  mt2 = (e2) => e2 === 161 || e2 === 164 || e2 === 167 || e2 === 168 || e2 === 170 || e2 === 173 || e2 === 174 || e2 >= 176 && e2 <= 180 || e2 >= 182 && e2 <= 186 || e2 >= 188 && e2 <= 191 || e2 === 198 || e2 === 208 || e2 === 215 || e2 === 216 || e2 >= 222 && e2 <= 225 || e2 === 230 || e2 >= 232 && e2 <= 234 || e2 === 236 || e2 === 237 || e2 === 240 || e2 === 242 || e2 === 243 || e2 >= 247 && e2 <= 250 || e2 === 252 || e2 === 254 || e2 === 257 || e2 === 273 || e2 === 275 || e2 === 283 || e2 === 294 || e2 === 295 || e2 === 299 || e2 >= 305 && e2 <= 307 || e2 === 312 || e2 >= 319 && e2 <= 322 || e2 === 324 || e2 >= 328 && e2 <= 331 || e2 === 333 || e2 === 338 || e2 === 339 || e2 === 358 || e2 === 359 || e2 === 363 || e2 === 462 || e2 === 464 || e2 === 466 || e2 === 468 || e2 === 470 || e2 === 472 || e2 === 474 || e2 === 476 || e2 === 593 || e2 === 609 || e2 === 708 || e2 === 711 || e2 >= 713 && e2 <= 715 || e2 === 717 || e2 === 720 || e2 >= 728 && e2 <= 731 || e2 === 733 || e2 === 735 || e2 >= 768 && e2 <= 879 || e2 >= 913 && e2 <= 929 || e2 >= 931 && e2 <= 937 || e2 >= 945 && e2 <= 961 || e2 >= 963 && e2 <= 969 || e2 === 1025 || e2 >= 1040 && e2 <= 1103 || e2 === 1105 || e2 === 8208 || e2 >= 8211 && e2 <= 8214 || e2 === 8216 || e2 === 8217 || e2 === 8220 || e2 === 8221 || e2 >= 8224 && e2 <= 8226 || e2 >= 8228 && e2 <= 8231 || e2 === 8240 || e2 === 8242 || e2 === 8243 || e2 === 8245 || e2 === 8251 || e2 === 8254 || e2 === 8308 || e2 === 8319 || e2 >= 8321 && e2 <= 8324 || e2 === 8364 || e2 === 8451 || e2 === 8453 || e2 === 8457 || e2 === 8467 || e2 === 8470 || e2 === 8481 || e2 === 8482 || e2 === 8486 || e2 === 8491 || e2 === 8531 || e2 === 8532 || e2 >= 8539 && e2 <= 8542 || e2 >= 8544 && e2 <= 8555 || e2 >= 8560 && e2 <= 8569 || e2 === 8585 || e2 >= 8592 && e2 <= 8601 || e2 === 8632 || e2 === 8633 || e2 === 8658 || e2 === 8660 || e2 === 8679 || e2 === 8704 || e2 === 8706 || e2 === 8707 || e2 === 8711 || e2 === 8712 || e2 === 8715 || e2 === 8719 || e2 === 8721 || e2 === 8725 || e2 === 8730 || e2 >= 8733 && e2 <= 8736 || e2 === 8739 || e2 === 8741 || e2 >= 8743 && e2 <= 8748 || e2 === 8750 || e2 >= 8756 && e2 <= 8759 || e2 === 8764 || e2 === 8765 || e2 === 8776 || e2 === 8780 || e2 === 8786 || e2 === 8800 || e2 === 8801 || e2 >= 8804 && e2 <= 8807 || e2 === 8810 || e2 === 8811 || e2 === 8814 || e2 === 8815 || e2 === 8834 || e2 === 8835 || e2 === 8838 || e2 === 8839 || e2 === 8853 || e2 === 8857 || e2 === 8869 || e2 === 8895 || e2 === 8978 || e2 >= 9312 && e2 <= 9449 || e2 >= 9451 && e2 <= 9547 || e2 >= 9552 && e2 <= 9587 || e2 >= 9600 && e2 <= 9615 || e2 >= 9618 && e2 <= 9621 || e2 === 9632 || e2 === 9633 || e2 >= 9635 && e2 <= 9641 || e2 === 9650 || e2 === 9651 || e2 === 9654 || e2 === 9655 || e2 === 9660 || e2 === 9661 || e2 === 9664 || e2 === 9665 || e2 >= 9670 && e2 <= 9672 || e2 === 9675 || e2 >= 9678 && e2 <= 9681 || e2 >= 9698 && e2 <= 9701 || e2 === 9711 || e2 === 9733 || e2 === 9734 || e2 === 9737 || e2 === 9742 || e2 === 9743 || e2 === 9756 || e2 === 9758 || e2 === 9792 || e2 === 9794 || e2 === 9824 || e2 === 9825 || e2 >= 9827 && e2 <= 9829 || e2 >= 9831 && e2 <= 9834 || e2 === 9836 || e2 === 9837 || e2 === 9839 || e2 === 9886 || e2 === 9887 || e2 === 9919 || e2 >= 9926 && e2 <= 9933 || e2 >= 9935 && e2 <= 9939 || e2 >= 9941 && e2 <= 9953 || e2 === 9955 || e2 === 9960 || e2 === 9961 || e2 >= 9963 && e2 <= 9969 || e2 === 9972 || e2 >= 9974 && e2 <= 9977 || e2 === 9979 || e2 === 9980 || e2 === 9982 || e2 === 9983 || e2 === 10045 || e2 >= 10102 && e2 <= 10111 || e2 >= 11094 && e2 <= 11097 || e2 >= 12872 && e2 <= 12879 || e2 >= 57344 && e2 <= 63743 || e2 >= 65024 && e2 <= 65039 || e2 === 65533 || e2 >= 127232 && e2 <= 127242 || e2 >= 127248 && e2 <= 127277 || e2 >= 127280 && e2 <= 127337 || e2 >= 127344 && e2 <= 127373 || e2 === 127375 || e2 === 127376 || e2 >= 127387 && e2 <= 127404 || e2 >= 917760 && e2 <= 917999 || e2 >= 983040 && e2 <= 1048573 || e2 >= 1048576 && e2 <= 1114109;
@@ -142597,7 +142664,7 @@ var init_dist3 = __esm({
142597
142664
  return { lineCount: o2, removals: u2 };
142598
142665
  };
142599
142666
  J2 = (e2) => {
142600
- const { cursor: r2, options: s2, style: i2 } = e2, n2 = e2.output ?? process.stdout, o2 = rt(n2), u2 = e2.columnPadding ?? 0, l2 = e2.rowPadding ?? 4, a2 = o2 - u2, d2 = nt(n2), g = import_picocolors.default.dim("..."), E = e2.maxItems ?? Number.POSITIVE_INFINITY, p = Math.max(d2 - l2, 0), y2 = Math.max(Math.min(E, p), 5);
142667
+ const { cursor: r2, options: s2, style: i2 } = e2, n2 = e2.output ?? process.stdout, o2 = rt(n2), u2 = e2.columnPadding ?? 0, l2 = e2.rowPadding ?? 4, a2 = o2 - u2, d2 = nt(n2), g = import_picocolors2.default.dim("..."), E = e2.maxItems ?? Number.POSITIVE_INFINITY, p = Math.max(d2 - l2, 0), y2 = Math.max(Math.min(E, p), 5);
142601
142668
  let $ = 0;
142602
142669
  r2 >= y2 - 3 && ($ = Math.max(Math.min(r2 - y2 + 3, s2.length - y2), 0));
142603
142670
  let c2 = y2 < s2.length && $ > 0, m = y2 < s2.length && $ + y2 < s2.length;
@@ -142623,23 +142690,23 @@ var init_dist3 = __esm({
142623
142690
  Mt2 = (e2) => {
142624
142691
  const r2 = e2.active ?? "Yes", s2 = e2.inactive ?? "No";
142625
142692
  return new kt({ active: r2, inactive: s2, signal: e2.signal, input: e2.input, output: e2.output, initialValue: e2.initialValue ?? true, render() {
142626
- const i2 = `${import_picocolors.default.gray(h)}
142693
+ const i2 = `${import_picocolors2.default.gray(h)}
142627
142694
  ${N2(this.state)} ${e2.message}
142628
142695
  `, n2 = this.value ? r2 : s2;
142629
142696
  switch (this.state) {
142630
142697
  case "submit":
142631
- return `${i2}${import_picocolors.default.gray(h)} ${import_picocolors.default.dim(n2)}`;
142698
+ return `${i2}${import_picocolors2.default.gray(h)} ${import_picocolors2.default.dim(n2)}`;
142632
142699
  case "cancel":
142633
- return `${i2}${import_picocolors.default.gray(h)} ${import_picocolors.default.strikethrough(import_picocolors.default.dim(n2))}
142634
- ${import_picocolors.default.gray(h)}`;
142700
+ return `${i2}${import_picocolors2.default.gray(h)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n2))}
142701
+ ${import_picocolors2.default.gray(h)}`;
142635
142702
  default:
142636
- return `${i2}${import_picocolors.default.cyan(h)} ${this.value ? `${import_picocolors.default.green(Y)} ${r2}` : `${import_picocolors.default.dim(K2)} ${import_picocolors.default.dim(r2)}`} ${import_picocolors.default.dim("/")} ${this.value ? `${import_picocolors.default.dim(K2)} ${import_picocolors.default.dim(s2)}` : `${import_picocolors.default.green(Y)} ${s2}`}
142637
- ${import_picocolors.default.cyan(x2)}
142703
+ return `${i2}${import_picocolors2.default.cyan(h)} ${this.value ? `${import_picocolors2.default.green(Y)} ${r2}` : `${import_picocolors2.default.dim(K2)} ${import_picocolors2.default.dim(r2)}`} ${import_picocolors2.default.dim("/")} ${this.value ? `${import_picocolors2.default.dim(K2)} ${import_picocolors2.default.dim(s2)}` : `${import_picocolors2.default.green(Y)} ${s2}`}
142704
+ ${import_picocolors2.default.cyan(x2)}
142638
142705
  `;
142639
142706
  }
142640
142707
  } }).prompt();
142641
142708
  };
142642
- R2 = { message: (e2 = [], { symbol: r2 = import_picocolors.default.gray(h), secondarySymbol: s2 = import_picocolors.default.gray(h), output: i2 = process.stdout, spacing: n2 = 1, withGuide: o2 } = {}) => {
142709
+ R2 = { message: (e2 = [], { symbol: r2 = import_picocolors2.default.gray(h), secondarySymbol: s2 = import_picocolors2.default.gray(h), output: i2 = process.stdout, spacing: n2 = 1, withGuide: o2 } = {}) => {
142643
142710
  const u2 = [], l2 = (o2 ?? _.withGuide) !== false, a2 = l2 ? s2 : "", d2 = l2 ? `${r2} ` : "", g = l2 ? `${s2} ` : "";
142644
142711
  for (let p = 0; p < n2; p++) u2.push(a2);
142645
142712
  const E = Array.isArray(e2) ? e2 : e2.split(`
@@ -142653,24 +142720,24 @@ ${import_picocolors.default.cyan(x2)}
142653
142720
  `)}
142654
142721
  `);
142655
142722
  }, info: (e2, r2) => {
142656
- R2.message(e2, { ...r2, symbol: import_picocolors.default.blue(ge) });
142723
+ R2.message(e2, { ...r2, symbol: import_picocolors2.default.blue(ge) });
142657
142724
  }, success: (e2, r2) => {
142658
- R2.message(e2, { ...r2, symbol: import_picocolors.default.green(fe) });
142725
+ R2.message(e2, { ...r2, symbol: import_picocolors2.default.green(fe) });
142659
142726
  }, step: (e2, r2) => {
142660
- R2.message(e2, { ...r2, symbol: import_picocolors.default.green(k2) });
142727
+ R2.message(e2, { ...r2, symbol: import_picocolors2.default.green(k2) });
142661
142728
  }, warn: (e2, r2) => {
142662
- R2.message(e2, { ...r2, symbol: import_picocolors.default.yellow(Fe) });
142729
+ R2.message(e2, { ...r2, symbol: import_picocolors2.default.yellow(Fe) });
142663
142730
  }, warning: (e2, r2) => {
142664
142731
  R2.warn(e2, r2);
142665
142732
  }, error: (e2, r2) => {
142666
- R2.message(e2, { ...r2, symbol: import_picocolors.default.red(ye) });
142733
+ R2.message(e2, { ...r2, symbol: import_picocolors2.default.red(ye) });
142667
142734
  } };
142668
142735
  Pt = (e2 = "", r2) => {
142669
- (r2?.output ?? process.stdout).write(`${import_picocolors.default.gray(x2)} ${import_picocolors.default.red(e2)}
142736
+ (r2?.output ?? process.stdout).write(`${import_picocolors2.default.gray(x2)} ${import_picocolors2.default.red(e2)}
142670
142737
 
142671
142738
  `);
142672
142739
  };
142673
- jt = (e2) => import_picocolors.default.dim(e2);
142740
+ jt = (e2) => import_picocolors2.default.dim(e2);
142674
142741
  Vt2 = (e2, r2, s2) => {
142675
142742
  const i2 = { hard: true, trim: false }, n2 = q2(e2, r2, i2).split(`
142676
142743
  `), o2 = n2.reduce((a2, d2) => Math.max(M2(d2), a2), 0), u2 = n2.map(s2).reduce((a2, d2) => Math.max(M2(d2), a2), 0), l2 = r2 - (u2 - o2);
@@ -142681,15 +142748,15 @@ ${import_picocolors.default.cyan(x2)}
142681
142748
  `).map(o2), ""], l2 = M2(r2), a2 = Math.max(u2.reduce((p, y2) => {
142682
142749
  const $ = M2(y2);
142683
142750
  return $ > p ? $ : p;
142684
- }, 0), l2) + 2, d2 = u2.map((p) => `${import_picocolors.default.gray(h)} ${p}${" ".repeat(a2 - M2(p))}${import_picocolors.default.gray(h)}`).join(`
142685
- `), g = n2 ? `${import_picocolors.default.gray(h)}
142751
+ }, 0), l2) + 2, d2 = u2.map((p) => `${import_picocolors2.default.gray(h)} ${p}${" ".repeat(a2 - M2(p))}${import_picocolors2.default.gray(h)}`).join(`
142752
+ `), g = n2 ? `${import_picocolors2.default.gray(h)}
142686
142753
  ` : "", E = n2 ? Ne : pe;
142687
- i2.write(`${g}${import_picocolors.default.green(k2)} ${import_picocolors.default.reset(r2)} ${import_picocolors.default.gray(se.repeat(Math.max(a2 - l2 - 1, 1)) + he)}
142754
+ i2.write(`${g}${import_picocolors2.default.green(k2)} ${import_picocolors2.default.reset(r2)} ${import_picocolors2.default.gray(se.repeat(Math.max(a2 - l2 - 1, 1)) + he)}
142688
142755
  ${d2}
142689
- ${import_picocolors.default.gray(E + se.repeat(a2 + 2) + me)}
142756
+ ${import_picocolors2.default.gray(E + se.repeat(a2 + 2) + me)}
142690
142757
  `);
142691
142758
  };
142692
- Ut = import_picocolors.default.magenta;
142759
+ Ut = import_picocolors2.default.magenta;
142693
142760
  Ie = ({ indicator: e2 = "dots", onCancel: r2, output: s2 = process.stdout, cancelMessage: i2, errorMessage: n2, frames: o2 = ee ? ["\u25D2", "\u25D0", "\u25D3", "\u25D1"] : ["\u2022", "o", "O", "0"], delay: u2 = ee ? 80 : 120, signal: l2, ...a2 } = {}) => {
142694
142761
  const d2 = ue();
142695
142762
  let g, E, p = false, y2 = false, $ = "", c2, m = performance.now();
@@ -142711,7 +142778,7 @@ ${import_picocolors.default.gray(E + se.repeat(a2 + 2) + me)}
142711
142778
  const O2 = (performance.now() - I2) / 1e3, L2 = Math.floor(O2 / 60), j2 = Math.floor(O2 % 60);
142712
142779
  return L2 > 0 ? `[${L2}m ${j2}s]` : `[${j2}s]`;
142713
142780
  }, T2 = (I2 = "") => {
142714
- p = true, g = xt({ output: s2 }), $ = _2(I2), m = performance.now(), s2.write(`${import_picocolors.default.gray(h)}
142781
+ p = true, g = xt({ output: s2 }), $ = _2(I2), m = performance.now(), s2.write(`${import_picocolors2.default.gray(h)}
142715
142782
  `);
142716
142783
  let O2 = 0, L2 = 0;
142717
142784
  b(), E = setInterval(() => {
@@ -142731,7 +142798,7 @@ ${import_picocolors.default.gray(E + se.repeat(a2 + 2) + me)}
142731
142798
  }, W2 = (I2 = "", O2 = 0, L2 = false) => {
142732
142799
  if (!p) return;
142733
142800
  p = false, clearInterval(E), C();
142734
- const j2 = O2 === 0 ? import_picocolors.default.green(k2) : O2 === 1 ? import_picocolors.default.red(ce) : import_picocolors.default.red(de);
142801
+ const j2 = O2 === 0 ? import_picocolors2.default.green(k2) : O2 === 1 ? import_picocolors2.default.red(ce) : import_picocolors2.default.red(de);
142735
142802
  $ = I2 ?? $, L2 || (e2 === "timer" ? s2.write(`${j2} ${$} ${D2(m)}
142736
142803
  `) : s2.write(`${j2} ${$}
142737
142804
  `)), A(), g();
@@ -142742,7 +142809,7 @@ ${import_picocolors.default.gray(E + se.repeat(a2 + 2) + me)}
142742
142809
  return y2;
142743
142810
  } };
142744
142811
  };
142745
- Ye = { light: w("\u2500", "-"), heavy: w("\u2501", "="), block: w("\u2588", "#") };
142812
+ Ye = { light: w2("\u2500", "-"), heavy: w2("\u2501", "="), block: w2("\u2588", "#") };
142746
142813
  oe = (e2, r2) => e2.includes(`
142747
142814
  `) ? e2.split(`
142748
142815
  `).map((s2) => r2(s2)).join(`
@@ -142752,37 +142819,37 @@ ${import_picocolors.default.gray(E + se.repeat(a2 + 2) + me)}
142752
142819
  const n2 = s2.label ?? String(s2.value);
142753
142820
  switch (i2) {
142754
142821
  case "disabled":
142755
- return `${import_picocolors.default.gray(K2)} ${oe(n2, import_picocolors.default.gray)}${s2.hint ? ` ${import_picocolors.default.dim(`(${s2.hint ?? "disabled"})`)}` : ""}`;
142822
+ return `${import_picocolors2.default.gray(K2)} ${oe(n2, import_picocolors2.default.gray)}${s2.hint ? ` ${import_picocolors2.default.dim(`(${s2.hint ?? "disabled"})`)}` : ""}`;
142756
142823
  case "selected":
142757
- return `${oe(n2, import_picocolors.default.dim)}`;
142824
+ return `${oe(n2, import_picocolors2.default.dim)}`;
142758
142825
  case "active":
142759
- return `${import_picocolors.default.green(Y)} ${n2}${s2.hint ? ` ${import_picocolors.default.dim(`(${s2.hint})`)}` : ""}`;
142826
+ return `${import_picocolors2.default.green(Y)} ${n2}${s2.hint ? ` ${import_picocolors2.default.dim(`(${s2.hint})`)}` : ""}`;
142760
142827
  case "cancelled":
142761
- return `${oe(n2, (o2) => import_picocolors.default.strikethrough(import_picocolors.default.dim(o2)))}`;
142828
+ return `${oe(n2, (o2) => import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o2)))}`;
142762
142829
  default:
142763
- return `${import_picocolors.default.dim(K2)} ${oe(n2, import_picocolors.default.dim)}`;
142830
+ return `${import_picocolors2.default.dim(K2)} ${oe(n2, import_picocolors2.default.dim)}`;
142764
142831
  }
142765
142832
  };
142766
142833
  return new Wt({ options: e2.options, signal: e2.signal, input: e2.input, output: e2.output, initialValue: e2.initialValue, render() {
142767
- const s2 = `${N2(this.state)} `, i2 = `${Ee(this.state)} `, n2 = Bt(e2.output, e2.message, i2, s2), o2 = `${import_picocolors.default.gray(h)}
142834
+ const s2 = `${N2(this.state)} `, i2 = `${Ee(this.state)} `, n2 = Bt(e2.output, e2.message, i2, s2), o2 = `${import_picocolors2.default.gray(h)}
142768
142835
  ${n2}
142769
142836
  `;
142770
142837
  switch (this.state) {
142771
142838
  case "submit": {
142772
- const u2 = `${import_picocolors.default.gray(h)} `, l2 = Bt(e2.output, r2(this.options[this.cursor], "selected"), u2);
142839
+ const u2 = `${import_picocolors2.default.gray(h)} `, l2 = Bt(e2.output, r2(this.options[this.cursor], "selected"), u2);
142773
142840
  return `${o2}${l2}`;
142774
142841
  }
142775
142842
  case "cancel": {
142776
- const u2 = `${import_picocolors.default.gray(h)} `, l2 = Bt(e2.output, r2(this.options[this.cursor], "cancelled"), u2);
142843
+ const u2 = `${import_picocolors2.default.gray(h)} `, l2 = Bt(e2.output, r2(this.options[this.cursor], "cancelled"), u2);
142777
142844
  return `${o2}${l2}
142778
- ${import_picocolors.default.gray(h)}`;
142845
+ ${import_picocolors2.default.gray(h)}`;
142779
142846
  }
142780
142847
  default: {
142781
- const u2 = `${import_picocolors.default.cyan(h)} `, l2 = o2.split(`
142848
+ const u2 = `${import_picocolors2.default.cyan(h)} `, l2 = o2.split(`
142782
142849
  `).length;
142783
142850
  return `${o2}${u2}${J2({ output: e2.output, cursor: this.cursor, options: this.options, maxItems: e2.maxItems, columnPadding: u2.length, rowPadding: l2 + 2, style: (a2, d2) => r2(a2, a2.disabled ? "disabled" : d2 ? "active" : "inactive") }).join(`
142784
142851
  ${u2}`)}
142785
- ${import_picocolors.default.cyan(x2)}
142852
+ ${import_picocolors2.default.cyan(x2)}
142786
142853
  `;
142787
142854
  }
142788
142855
  }
@@ -142791,38 +142858,38 @@ ${import_picocolors.default.cyan(x2)}
142791
142858
  Jt = (e2) => {
142792
142859
  const r2 = (s2, i2 = "inactive") => {
142793
142860
  const n2 = s2.label ?? String(s2.value);
142794
- return i2 === "selected" ? `${import_picocolors.default.dim(n2)}` : i2 === "cancelled" ? `${import_picocolors.default.strikethrough(import_picocolors.default.dim(n2))}` : i2 === "active" ? `${import_picocolors.default.bgCyan(import_picocolors.default.gray(` ${s2.value} `))} ${n2}${s2.hint ? ` ${import_picocolors.default.dim(`(${s2.hint})`)}` : ""}` : `${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(` ${s2.value} `)))} ${n2}${s2.hint ? ` ${import_picocolors.default.dim(`(${s2.hint})`)}` : ""}`;
142861
+ return i2 === "selected" ? `${import_picocolors2.default.dim(n2)}` : i2 === "cancelled" ? `${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(n2))}` : i2 === "active" ? `${import_picocolors2.default.bgCyan(import_picocolors2.default.gray(` ${s2.value} `))} ${n2}${s2.hint ? ` ${import_picocolors2.default.dim(`(${s2.hint})`)}` : ""}` : `${import_picocolors2.default.gray(import_picocolors2.default.bgWhite(import_picocolors2.default.inverse(` ${s2.value} `)))} ${n2}${s2.hint ? ` ${import_picocolors2.default.dim(`(${s2.hint})`)}` : ""}`;
142795
142862
  };
142796
142863
  return new Tt({ options: e2.options, signal: e2.signal, input: e2.input, output: e2.output, initialValue: e2.initialValue, caseSensitive: e2.caseSensitive, render() {
142797
- const s2 = `${import_picocolors.default.gray(h)}
142864
+ const s2 = `${import_picocolors2.default.gray(h)}
142798
142865
  ${N2(this.state)} ${e2.message}
142799
142866
  `;
142800
142867
  switch (this.state) {
142801
142868
  case "submit": {
142802
- const i2 = `${import_picocolors.default.gray(h)} `, n2 = this.options.find((u2) => u2.value === this.value) ?? e2.options[0], o2 = Bt(e2.output, r2(n2, "selected"), i2);
142869
+ const i2 = `${import_picocolors2.default.gray(h)} `, n2 = this.options.find((u2) => u2.value === this.value) ?? e2.options[0], o2 = Bt(e2.output, r2(n2, "selected"), i2);
142803
142870
  return `${s2}${o2}`;
142804
142871
  }
142805
142872
  case "cancel": {
142806
- const i2 = `${import_picocolors.default.gray(h)} `, n2 = Bt(e2.output, r2(this.options[0], "cancelled"), i2);
142873
+ const i2 = `${import_picocolors2.default.gray(h)} `, n2 = Bt(e2.output, r2(this.options[0], "cancelled"), i2);
142807
142874
  return `${s2}${n2}
142808
- ${import_picocolors.default.gray(h)}`;
142875
+ ${import_picocolors2.default.gray(h)}`;
142809
142876
  }
142810
142877
  default: {
142811
- const i2 = `${import_picocolors.default.cyan(h)} `, n2 = this.options.map((o2, u2) => Bt(e2.output, r2(o2, u2 === this.cursor ? "active" : "inactive"), i2)).join(`
142878
+ const i2 = `${import_picocolors2.default.cyan(h)} `, n2 = this.options.map((o2, u2) => Bt(e2.output, r2(o2, u2 === this.cursor ? "active" : "inactive"), i2)).join(`
142812
142879
  `);
142813
142880
  return `${s2}${n2}
142814
- ${import_picocolors.default.cyan(x2)}
142881
+ ${import_picocolors2.default.cyan(x2)}
142815
142882
  `;
142816
142883
  }
142817
142884
  }
142818
142885
  } }).prompt();
142819
142886
  };
142820
- ze = `${import_picocolors.default.gray(h)} `;
142887
+ ze = `${import_picocolors2.default.gray(h)} `;
142821
142888
  Yt = (e2) => e2.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g, "");
142822
142889
  zt = (e2) => {
142823
- const r2 = e2.output ?? process.stdout, s2 = rt(r2), i2 = import_picocolors.default.gray(h), n2 = e2.spacing ?? 1, o2 = 3, u2 = e2.retainLog === true, l2 = !ue() && Te(r2);
142890
+ const r2 = e2.output ?? process.stdout, s2 = rt(r2), i2 = import_picocolors2.default.gray(h), n2 = e2.spacing ?? 1, o2 = 3, u2 = e2.retainLog === true, l2 = !ue() && Te(r2);
142824
142891
  r2.write(`${i2}
142825
- `), r2.write(`${import_picocolors.default.green(k2)} ${e2.title}
142892
+ `), r2.write(`${import_picocolors2.default.green(k2)} ${e2.title}
142826
142893
  `);
142827
142894
  for (let m = 0; m < n2; m++) r2.write(`${i2}
142828
142895
  `);
@@ -142847,8 +142914,8 @@ ${F.header}`);
142847
142914
  const v2 = F ? `${m.full}
142848
142915
  ${m.value}` : m.value;
142849
142916
  m.header !== void 0 && m.header !== "" && R2.message(m.header.split(`
142850
- `).map(import_picocolors.default.bold), { output: r2, secondarySymbol: i2, symbol: i2, spacing: 0 }), R2.message(v2.split(`
142851
- `).map(import_picocolors.default.dim), { output: r2, secondarySymbol: i2, symbol: i2, spacing: f2 ?? n2 });
142917
+ `).map(import_picocolors2.default.bold), { output: r2, secondarySymbol: i2, symbol: i2, spacing: 0 }), R2.message(v2.split(`
142918
+ `).map(import_picocolors2.default.dim), { output: r2, secondarySymbol: i2, symbol: i2, spacing: f2 ?? n2 });
142852
142919
  }, p = () => {
142853
142920
  for (const m of a2) {
142854
142921
  const { header: f2, value: F, full: v2 } = m;
@@ -142891,6 +142958,35 @@ ${m.value}` : m.value;
142891
142958
  g(true), R2.success(m, { output: r2, secondarySymbol: i2, spacing: 1 }), f2?.showLog === true && p(), a2.splice(1, a2.length - 1), a2[0].value = "", a2[0].full = "";
142892
142959
  } };
142893
142960
  };
142961
+ Qt = (e2) => new $t({ validate: e2.validate, placeholder: e2.placeholder, defaultValue: e2.defaultValue, initialValue: e2.initialValue, output: e2.output, signal: e2.signal, input: e2.input, render() {
142962
+ const r2 = (e2?.withGuide ?? _.withGuide) !== false, s2 = `${`${r2 ? `${import_picocolors2.default.gray(h)}
142963
+ ` : ""}${N2(this.state)} `}${e2.message}
142964
+ `, i2 = e2.placeholder ? import_picocolors2.default.inverse(e2.placeholder[0]) + import_picocolors2.default.dim(e2.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), n2 = this.userInput ? this.userInputWithCursor : i2, o2 = this.value ?? "";
142965
+ switch (this.state) {
142966
+ case "error": {
142967
+ const u2 = this.error ? ` ${import_picocolors2.default.yellow(this.error)}` : "", l2 = r2 ? `${import_picocolors2.default.yellow(h)} ` : "", a2 = r2 ? import_picocolors2.default.yellow(x2) : "";
142968
+ return `${s2.trim()}
142969
+ ${l2}${n2}
142970
+ ${a2}${u2}
142971
+ `;
142972
+ }
142973
+ case "submit": {
142974
+ const u2 = o2 ? ` ${import_picocolors2.default.dim(o2)}` : "", l2 = r2 ? import_picocolors2.default.gray(h) : "";
142975
+ return `${s2}${l2}${u2}`;
142976
+ }
142977
+ case "cancel": {
142978
+ const u2 = o2 ? ` ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(o2))}` : "", l2 = r2 ? import_picocolors2.default.gray(h) : "";
142979
+ return `${s2}${l2}${u2}${o2.trim() ? `
142980
+ ${l2}` : ""}`;
142981
+ }
142982
+ default: {
142983
+ const u2 = r2 ? `${import_picocolors2.default.cyan(h)} ` : "", l2 = r2 ? import_picocolors2.default.cyan(x2) : "";
142984
+ return `${s2}${u2}${n2}
142985
+ ${l2}
142986
+ `;
142987
+ }
142988
+ }
142989
+ } }).prompt();
142894
142990
  }
142895
142991
  });
142896
142992
 
@@ -143417,21 +143513,21 @@ var init_remote = __esm({
143417
143513
  });
143418
143514
  return result;
143419
143515
  };
143420
- writeRemoteFile = async (client, canonical, path27, content, stage) => {
143516
+ writeRemoteFile = async (client, canonical, path28, content, stage) => {
143421
143517
  const requestId = (0, import_node_crypto10.randomUUID)();
143422
143518
  logger8.info("sprites_request", {
143423
143519
  requestId,
143424
143520
  method: "writeFile",
143425
- path: path27,
143521
+ path: path28,
143426
143522
  box: canonical,
143427
143523
  stage
143428
143524
  });
143429
143525
  const buffer = typeof content === "string" ? Buffer.from(content, "utf8") : content;
143430
- await client.writeFile(canonical, path27, buffer);
143526
+ await client.writeFile(canonical, path28, buffer);
143431
143527
  logger8.info("sprites_response", {
143432
143528
  requestId,
143433
143529
  method: "writeFile",
143434
- path: path27,
143530
+ path: path28,
143435
143531
  status: "ok",
143436
143532
  box: canonical,
143437
143533
  stage
@@ -144463,7 +144559,7 @@ var init_ssh = __esm({
144463
144559
  }
144464
144560
  return trimmed.replace(/^\/+/, "");
144465
144561
  };
144466
- buildSshUrl = (host, path27) => `git@${host}:${stripGitSuffix2(path27)}.git`;
144562
+ buildSshUrl = (host, path28) => `git@${host}:${stripGitSuffix2(path28)}.git`;
144467
144563
  buildSettingsUrl = (host) => {
144468
144564
  const lower = host.toLowerCase();
144469
144565
  if (lower.includes("gitlab")) {
@@ -144476,12 +144572,12 @@ var init_ssh = __esm({
144476
144572
  const withoutUser = trimmed.startsWith("git@") ? trimmed.slice("git@".length) : trimmed;
144477
144573
  const [host, pathPart] = withoutUser.split(":");
144478
144574
  if (!host || !pathPart) return null;
144479
- const path27 = stripGitSuffix2(pathPart);
144575
+ const path28 = stripGitSuffix2(pathPart);
144480
144576
  return {
144481
144577
  host: host.toLowerCase(),
144482
- path: path27,
144578
+ path: path28,
144483
144579
  protocol: "ssh",
144484
- sshUrl: buildSshUrl(host, path27),
144580
+ sshUrl: buildSshUrl(host, path28),
144485
144581
  settingsUrl: buildSettingsUrl(host)
144486
144582
  };
144487
144583
  };
@@ -144498,13 +144594,13 @@ var init_ssh = __esm({
144498
144594
  try {
144499
144595
  const url = new URL(trimmed);
144500
144596
  const host = url.hostname;
144501
- const path27 = stripGitSuffix2(url.pathname);
144502
- if (!host || !path27) return null;
144597
+ const path28 = stripGitSuffix2(url.pathname);
144598
+ if (!host || !path28) return null;
144503
144599
  return {
144504
144600
  host: host.toLowerCase(),
144505
- path: path27,
144601
+ path: path28,
144506
144602
  protocol: "ssh",
144507
- sshUrl: buildSshUrl(host, path27),
144603
+ sshUrl: buildSshUrl(host, path28),
144508
144604
  settingsUrl: buildSettingsUrl(host)
144509
144605
  };
144510
144606
  } catch {
@@ -144515,13 +144611,13 @@ var init_ssh = __esm({
144515
144611
  try {
144516
144612
  const url = new URL(trimmed);
144517
144613
  const host = url.hostname;
144518
- const path27 = stripGitSuffix2(url.pathname);
144519
- if (!host || !path27) return null;
144614
+ const path28 = stripGitSuffix2(url.pathname);
144615
+ if (!host || !path28) return null;
144520
144616
  return {
144521
144617
  host: host.toLowerCase(),
144522
- path: path27,
144618
+ path: path28,
144523
144619
  protocol: "https",
144524
- sshUrl: buildSshUrl(host, path27),
144620
+ sshUrl: buildSshUrl(host, path28),
144525
144621
  settingsUrl: buildSettingsUrl(host)
144526
144622
  };
144527
144623
  } catch {
@@ -151110,6 +151206,438 @@ var init_ports3 = __esm({
151110
151206
  }
151111
151207
  });
151112
151208
 
151209
+ // src/devbox/commands/uninstall.ts
151210
+ var import_promises30, import_node_os12, import_node_path27, import_promises31, WEZTERM_BLOCK_REGEX, parseUninstallArgs, escapeRegExp, resolveCliName2, rcMarkers2, resolveCompletionTargets, resolveWeztermConfigPaths, readTextFile2, removeFile, removeDir, removeDirIfEmpty, removeRcBlock2, shouldRemoveWeztermBlock, removeWeztermBlocks, shouldTryRemoveRuntimeDir, confirmUninstall, summarizeResults, runUninstall;
151211
+ var init_uninstall = __esm({
151212
+ "src/devbox/commands/uninstall.ts"() {
151213
+ "use strict";
151214
+ import_promises30 = __toESM(require("node:fs/promises"), 1);
151215
+ import_node_os12 = __toESM(require("node:os"), 1);
151216
+ import_node_path27 = __toESM(require("node:path"), 1);
151217
+ import_promises31 = __toESM(require("node:readline/promises"), 1);
151218
+ init_src();
151219
+ init_daemonClient();
151220
+ WEZTERM_BLOCK_REGEX = /-- devbox: wezterm domain begin \([^\n]*\)\r?\n[\s\S]*?-- devbox: wezterm domain end \([^\n]*\)\r?\n?/g;
151221
+ parseUninstallArgs = (args) => {
151222
+ const parsed = {
151223
+ dryRun: false,
151224
+ yes: false,
151225
+ json: false
151226
+ };
151227
+ for (const arg of args) {
151228
+ if (!arg) continue;
151229
+ if (arg === "--dry-run") {
151230
+ parsed.dryRun = true;
151231
+ continue;
151232
+ }
151233
+ if (arg === "--yes") {
151234
+ parsed.yes = true;
151235
+ continue;
151236
+ }
151237
+ if (arg === "--json") {
151238
+ parsed.json = true;
151239
+ continue;
151240
+ }
151241
+ if (arg === "--help" || arg === "-h") {
151242
+ throw new Error("help_requested");
151243
+ }
151244
+ if (arg.startsWith("-")) {
151245
+ throw new Error(`Unknown uninstall flag: ${arg}`);
151246
+ }
151247
+ throw new Error(`Unexpected argument: ${arg}`);
151248
+ }
151249
+ return parsed;
151250
+ };
151251
+ escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
151252
+ resolveCliName2 = () => {
151253
+ const raw = process.env.DEVBOX_CLI_NAME?.trim();
151254
+ if (!raw) return "dvb";
151255
+ const normalized = raw.replace(/[^A-Za-z0-9_-]+/g, "").slice(0, 32);
151256
+ return normalized.length > 0 ? normalized : "dvb";
151257
+ };
151258
+ rcMarkers2 = (cliName) => ({
151259
+ begin: `# >>> ${cliName} completions >>>`,
151260
+ end: `# <<< ${cliName} completions <<<`
151261
+ });
151262
+ resolveCompletionTargets = (homeDir, cliName) => {
151263
+ const zshCompletionsPath = import_node_path27.default.join(
151264
+ resolveDevboxDir(homeDir),
151265
+ "completions",
151266
+ `${cliName}.zsh`
151267
+ );
151268
+ const bashCompletionsPath = import_node_path27.default.join(
151269
+ resolveDevboxDir(homeDir),
151270
+ "completions",
151271
+ `${cliName}.bash`
151272
+ );
151273
+ const fishConfigHome = process.env.XDG_CONFIG_HOME ?? import_node_path27.default.join(homeDir, ".config");
151274
+ const fishCompletionsPath = import_node_path27.default.join(
151275
+ fishConfigHome,
151276
+ "fish",
151277
+ "completions",
151278
+ `${cliName}.fish`
151279
+ );
151280
+ return [
151281
+ {
151282
+ shell: "zsh",
151283
+ scriptPath: zshCompletionsPath,
151284
+ rcPath: import_node_path27.default.join(process.env.ZDOTDIR ?? homeDir, ".zshrc")
151285
+ },
151286
+ {
151287
+ shell: "bash",
151288
+ scriptPath: bashCompletionsPath,
151289
+ rcPath: import_node_path27.default.join(homeDir, ".bashrc")
151290
+ },
151291
+ {
151292
+ shell: "fish",
151293
+ scriptPath: fishCompletionsPath
151294
+ }
151295
+ ];
151296
+ };
151297
+ resolveWeztermConfigPaths = (homeDir) => [
151298
+ .../* @__PURE__ */ new Set([
151299
+ import_node_path27.default.join(homeDir, ".wezterm.lua"),
151300
+ import_node_path27.default.join(homeDir, ".config", "wezterm", "wezterm.lua")
151301
+ ])
151302
+ ];
151303
+ readTextFile2 = async (filePath) => {
151304
+ try {
151305
+ return await import_promises30.default.readFile(filePath, "utf8");
151306
+ } catch (error2) {
151307
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT") {
151308
+ return null;
151309
+ }
151310
+ throw error2;
151311
+ }
151312
+ };
151313
+ removeFile = async (filePath, dryRun) => {
151314
+ try {
151315
+ await import_promises30.default.access(filePath);
151316
+ } catch {
151317
+ return { kind: "file", target: filePath, status: "missing" };
151318
+ }
151319
+ if (dryRun) {
151320
+ return { kind: "file", target: filePath, status: "planned" };
151321
+ }
151322
+ try {
151323
+ await import_promises30.default.rm(filePath, { force: true });
151324
+ return { kind: "file", target: filePath, status: "removed" };
151325
+ } catch (error2) {
151326
+ return {
151327
+ kind: "file",
151328
+ target: filePath,
151329
+ status: "error",
151330
+ detail: error2 instanceof Error ? error2.message : String(error2)
151331
+ };
151332
+ }
151333
+ };
151334
+ removeDir = async (dirPath, dryRun) => {
151335
+ try {
151336
+ await import_promises30.default.access(dirPath);
151337
+ } catch {
151338
+ return { kind: "dir", target: dirPath, status: "missing" };
151339
+ }
151340
+ if (dryRun) {
151341
+ return { kind: "dir", target: dirPath, status: "planned" };
151342
+ }
151343
+ try {
151344
+ await import_promises30.default.rm(dirPath, { recursive: true, force: true });
151345
+ return { kind: "dir", target: dirPath, status: "removed" };
151346
+ } catch (error2) {
151347
+ return {
151348
+ kind: "dir",
151349
+ target: dirPath,
151350
+ status: "error",
151351
+ detail: error2 instanceof Error ? error2.message : String(error2)
151352
+ };
151353
+ }
151354
+ };
151355
+ removeDirIfEmpty = async (dirPath, dryRun) => {
151356
+ try {
151357
+ const entries = await import_promises30.default.readdir(dirPath);
151358
+ if (entries.length > 0) {
151359
+ return {
151360
+ kind: "dir",
151361
+ target: dirPath,
151362
+ status: "skipped",
151363
+ detail: "directory not empty"
151364
+ };
151365
+ }
151366
+ } catch (error2) {
151367
+ if (error2 instanceof Error && "code" in error2 && error2.code === "ENOENT") {
151368
+ return { kind: "dir", target: dirPath, status: "missing" };
151369
+ }
151370
+ return {
151371
+ kind: "dir",
151372
+ target: dirPath,
151373
+ status: "error",
151374
+ detail: error2 instanceof Error ? error2.message : String(error2)
151375
+ };
151376
+ }
151377
+ if (dryRun) {
151378
+ return { kind: "dir", target: dirPath, status: "planned" };
151379
+ }
151380
+ try {
151381
+ await import_promises30.default.rmdir(dirPath);
151382
+ return { kind: "dir", target: dirPath, status: "removed" };
151383
+ } catch (error2) {
151384
+ return {
151385
+ kind: "dir",
151386
+ target: dirPath,
151387
+ status: "error",
151388
+ detail: error2 instanceof Error ? error2.message : String(error2)
151389
+ };
151390
+ }
151391
+ };
151392
+ removeRcBlock2 = async (rcPath, cliName, dryRun) => {
151393
+ const existing = await readTextFile2(rcPath);
151394
+ if (existing === null) {
151395
+ return { kind: "config", target: rcPath, status: "missing" };
151396
+ }
151397
+ const markers = rcMarkers2(cliName);
151398
+ if (!existing.includes(markers.begin) || !existing.includes(markers.end)) {
151399
+ return {
151400
+ kind: "config",
151401
+ target: rcPath,
151402
+ status: "skipped",
151403
+ detail: "completion markers not present"
151404
+ };
151405
+ }
151406
+ if (dryRun) {
151407
+ return { kind: "config", target: rcPath, status: "planned" };
151408
+ }
151409
+ const updated = existing.replace(
151410
+ new RegExp(
151411
+ `\\n?${escapeRegExp(markers.begin)}[\\s\\S]*?${escapeRegExp(markers.end)}\\n?`,
151412
+ "m"
151413
+ ),
151414
+ "\n"
151415
+ );
151416
+ try {
151417
+ await import_promises30.default.writeFile(rcPath, `${updated.trimEnd()}
151418
+ `, "utf8");
151419
+ return { kind: "config", target: rcPath, status: "updated" };
151420
+ } catch (error2) {
151421
+ return {
151422
+ kind: "config",
151423
+ target: rcPath,
151424
+ status: "error",
151425
+ detail: error2 instanceof Error ? error2.message : String(error2)
151426
+ };
151427
+ }
151428
+ };
151429
+ shouldRemoveWeztermBlock = (block, profile) => {
151430
+ if (profile) {
151431
+ return block.includes(`DEVBOX_PROFILE=${profile}`);
151432
+ }
151433
+ return !block.includes("DEVBOX_PROFILE=");
151434
+ };
151435
+ removeWeztermBlocks = async (configPath, profile, dryRun) => {
151436
+ const existing = await readTextFile2(configPath);
151437
+ if (existing === null) {
151438
+ return { kind: "config", target: configPath, status: "missing" };
151439
+ }
151440
+ let removedBlocks = 0;
151441
+ const updated = existing.replace(WEZTERM_BLOCK_REGEX, (block) => {
151442
+ if (!shouldRemoveWeztermBlock(block, profile)) return block;
151443
+ removedBlocks += 1;
151444
+ return "";
151445
+ });
151446
+ if (removedBlocks === 0) {
151447
+ return {
151448
+ kind: "config",
151449
+ target: configPath,
151450
+ status: "skipped",
151451
+ detail: "no matching devbox WezTerm blocks"
151452
+ };
151453
+ }
151454
+ if (dryRun) {
151455
+ return {
151456
+ kind: "config",
151457
+ target: configPath,
151458
+ status: "planned",
151459
+ detail: `remove ${removedBlocks} block(s)`
151460
+ };
151461
+ }
151462
+ try {
151463
+ await import_promises30.default.writeFile(configPath, updated, "utf8");
151464
+ return {
151465
+ kind: "config",
151466
+ target: configPath,
151467
+ status: "updated",
151468
+ detail: `removed ${removedBlocks} block(s)`
151469
+ };
151470
+ } catch (error2) {
151471
+ return {
151472
+ kind: "config",
151473
+ target: configPath,
151474
+ status: "error",
151475
+ detail: error2 instanceof Error ? error2.message : String(error2)
151476
+ };
151477
+ }
151478
+ };
151479
+ shouldTryRemoveRuntimeDir = (socketInfo, profile) => {
151480
+ if (socketInfo.source === "tmp") return true;
151481
+ if (socketInfo.source === "xdg" && profile) return true;
151482
+ return false;
151483
+ };
151484
+ confirmUninstall = async () => {
151485
+ if (!process.stdin.isTTY) {
151486
+ throw new Error("Uninstall requires a TTY (or use --yes).");
151487
+ }
151488
+ const phrase = "uninstall";
151489
+ const rl = import_promises31.default.createInterface({
151490
+ input: process.stdin,
151491
+ output: process.stdout
151492
+ });
151493
+ const answer = await rl.question(`Type "${phrase}" to confirm uninstall: `);
151494
+ rl.close();
151495
+ return answer.trim() === phrase;
151496
+ };
151497
+ summarizeResults = (results) => {
151498
+ const counts = {
151499
+ planned: 0,
151500
+ removed: 0,
151501
+ updated: 0,
151502
+ missing: 0,
151503
+ skipped: 0,
151504
+ error: 0
151505
+ };
151506
+ for (const result of results) {
151507
+ counts[result.status] += 1;
151508
+ }
151509
+ return counts;
151510
+ };
151511
+ runUninstall = async (args) => {
151512
+ const parsed = parseUninstallArgs(args);
151513
+ const homeDir = process.env.HOME ?? import_node_os12.default.homedir();
151514
+ const profile = resolveDevboxProfile();
151515
+ const profileLabel = profile ?? "prod";
151516
+ const cliName = resolveCliName2();
151517
+ const socketInfo = resolveSocketInfo();
151518
+ const results = [];
151519
+ if (!parsed.dryRun && !parsed.yes) {
151520
+ const confirmed = await confirmUninstall();
151521
+ if (!confirmed) {
151522
+ throw new Error("Uninstall cancelled.");
151523
+ }
151524
+ }
151525
+ if (parsed.dryRun) {
151526
+ results.push({
151527
+ kind: "daemon",
151528
+ target: socketInfo.socketPath,
151529
+ status: "planned",
151530
+ detail: "stop current-profile daemon"
151531
+ });
151532
+ } else {
151533
+ try {
151534
+ const stopped = await stopDaemon(socketInfo.socketPath);
151535
+ results.push({
151536
+ kind: "daemon",
151537
+ target: socketInfo.socketPath,
151538
+ status: stopped ? "removed" : "missing",
151539
+ detail: stopped ? "daemon stopped" : "daemon not running"
151540
+ });
151541
+ } catch (error2) {
151542
+ results.push({
151543
+ kind: "daemon",
151544
+ target: socketInfo.socketPath,
151545
+ status: "error",
151546
+ detail: error2 instanceof Error ? error2.message : String(error2)
151547
+ });
151548
+ }
151549
+ }
151550
+ const completionTargets = resolveCompletionTargets(homeDir, cliName);
151551
+ for (const target of completionTargets) {
151552
+ const scriptResult = await removeFile(target.scriptPath, parsed.dryRun);
151553
+ if (scriptResult.status === "planned") {
151554
+ results.push({
151555
+ ...scriptResult,
151556
+ detail: `remove ${target.shell} completion script`
151557
+ });
151558
+ } else {
151559
+ results.push(scriptResult);
151560
+ }
151561
+ if (target.rcPath) {
151562
+ const rcResult = await removeRcBlock2(
151563
+ target.rcPath,
151564
+ cliName,
151565
+ parsed.dryRun
151566
+ );
151567
+ if (rcResult.status === "planned") {
151568
+ results.push({
151569
+ ...rcResult,
151570
+ detail: `remove ${target.shell} rc completion block`
151571
+ });
151572
+ } else {
151573
+ results.push(rcResult);
151574
+ }
151575
+ }
151576
+ }
151577
+ for (const weztermPath of resolveWeztermConfigPaths(homeDir)) {
151578
+ const weztermResult = await removeWeztermBlocks(
151579
+ weztermPath,
151580
+ profile,
151581
+ parsed.dryRun
151582
+ );
151583
+ results.push(weztermResult);
151584
+ }
151585
+ const runtimeLogPath = import_node_path27.default.join(socketInfo.runtimeDir, "dvbd.log");
151586
+ results.push(await removeFile(socketInfo.socketPath, parsed.dryRun));
151587
+ results.push(await removeFile(runtimeLogPath, parsed.dryRun));
151588
+ if (shouldTryRemoveRuntimeDir(socketInfo, profile)) {
151589
+ results.push(await removeDirIfEmpty(socketInfo.runtimeDir, parsed.dryRun));
151590
+ } else {
151591
+ results.push({
151592
+ kind: "dir",
151593
+ target: socketInfo.runtimeDir,
151594
+ status: "skipped",
151595
+ detail: "shared runtime directory not removed"
151596
+ });
151597
+ }
151598
+ const devboxDir = resolveDevboxDir(homeDir);
151599
+ results.push(await removeDir(devboxDir, parsed.dryRun));
151600
+ const summary = summarizeResults(results);
151601
+ const ok = summary.error === 0;
151602
+ if (parsed.json) {
151603
+ console.log(
151604
+ JSON.stringify(
151605
+ {
151606
+ ok,
151607
+ dryRun: parsed.dryRun,
151608
+ profile: profileLabel,
151609
+ cliName,
151610
+ results,
151611
+ summary
151612
+ },
151613
+ null,
151614
+ 2
151615
+ )
151616
+ );
151617
+ if (!ok) {
151618
+ process.exitCode = 1;
151619
+ }
151620
+ return;
151621
+ }
151622
+ if (parsed.dryRun) {
151623
+ console.log(`dvb uninstall dry-run (${profileLabel})`);
151624
+ } else {
151625
+ console.log(`dvb uninstall complete (${profileLabel})`);
151626
+ }
151627
+ console.log(`cli: ${cliName}`);
151628
+ console.log(
151629
+ `summary: removed=${summary.removed} updated=${summary.updated} missing=${summary.missing} skipped=${summary.skipped} planned=${summary.planned} errors=${summary.error}`
151630
+ );
151631
+ if (!ok) {
151632
+ console.log(
151633
+ "Some cleanup operations failed. Re-run with --json for details."
151634
+ );
151635
+ process.exitCode = 1;
151636
+ }
151637
+ };
151638
+ }
151639
+ });
151640
+
151113
151641
  // src/devbox/commands/sessions.ts
151114
151642
  var renameUsage, killUsage, listUsage, parseSessionsArgs, parseSessionTarget, parseKillTarget, runRename, runKill, runSessions;
151115
151643
  var init_sessions2 = __esm({
@@ -151843,11 +152371,11 @@ var init_services = __esm({
151843
152371
  };
151844
152372
  loadConfigFromSprite = async (client, canonical) => {
151845
152373
  const workdir = await resolveProjectWorkdir(client, canonical);
151846
- const path27 = workdir ? `${workdir.replace(/\/$/, "")}/devbox.toml` : null;
152374
+ const path28 = workdir ? `${workdir.replace(/\/$/, "")}/devbox.toml` : null;
151847
152375
  if (!workdir) {
151848
152376
  return {
151849
152377
  workdir: null,
151850
- path: path27,
152378
+ path: path28,
151851
152379
  content: null,
151852
152380
  services: {},
151853
152381
  missing: true,
@@ -151862,7 +152390,7 @@ var init_services = __esm({
151862
152390
  const content = Buffer.from(bytes).toString("utf8");
151863
152391
  return {
151864
152392
  workdir,
151865
- path: path27,
152393
+ path: path28,
151866
152394
  content,
151867
152395
  services: parseServicesToml(content),
151868
152396
  missing: false
@@ -151871,7 +152399,7 @@ var init_services = __esm({
151871
152399
  if (error2 instanceof SpritesApiError && error2.status === 404) {
151872
152400
  return {
151873
152401
  workdir,
151874
- path: path27,
152402
+ path: path28,
151875
152403
  content: null,
151876
152404
  services: {},
151877
152405
  missing: true
@@ -151879,7 +152407,7 @@ var init_services = __esm({
151879
152407
  }
151880
152408
  return {
151881
152409
  workdir,
151882
- path: path27,
152410
+ path: path28,
151883
152411
  content: null,
151884
152412
  services: {},
151885
152413
  missing: false,
@@ -153295,12 +153823,12 @@ var init_qr = __esm({
153295
153823
  });
153296
153824
 
153297
153825
  // src/devbox/commands/setup.ts
153298
- var import_node_crypto12, import_promises30, trim, normalizeSiteUrl, resolveSiteUrl, MOBILE_DOWNLOAD_LINK, parseSetupArgs, promptForValue2, splitQrLines, printMobileDownloadQr, listSprites2, runSetup;
153826
+ var import_node_crypto12, trim, normalizeSiteUrl, resolveSiteUrl, MOBILE_DOWNLOAD_LINK, parseSetupArgs, createSetupStatus, promptForValue, promptForToken, splitQrLines, printMobileDownloadQr, listSprites2, runSetup;
153299
153827
  var init_setup = __esm({
153300
153828
  "src/devbox/commands/setup.ts"() {
153301
153829
  "use strict";
153302
153830
  import_node_crypto12 = require("node:crypto");
153303
- import_promises30 = __toESM(require("node:readline/promises"), 1);
153831
+ init_dist3();
153304
153832
  init_src();
153305
153833
  init_src();
153306
153834
  init_auth();
@@ -153308,7 +153836,6 @@ var init_setup = __esm({
153308
153836
  init_logger3();
153309
153837
  init_colors();
153310
153838
  init_qr();
153311
- init_statusLine();
153312
153839
  init_completions();
153313
153840
  trim = (value) => value.trim().replace(/\r/g, "");
153314
153841
  normalizeSiteUrl = (raw) => {
@@ -153373,16 +153900,69 @@ var init_setup = __esm({
153373
153900
  }
153374
153901
  return parsed;
153375
153902
  };
153376
- promptForValue2 = async (label) => {
153903
+ createSetupStatus = (enabled) => {
153904
+ if (!enabled) {
153905
+ return {
153906
+ stage: () => {
153907
+ },
153908
+ stop: () => {
153909
+ },
153910
+ fail: () => {
153911
+ }
153912
+ };
153913
+ }
153914
+ const sp = Ie();
153915
+ let running = false;
153916
+ let finalized = false;
153917
+ const ensureRunning = (text) => {
153918
+ if (finalized) return;
153919
+ if (running) {
153920
+ sp.message(text);
153921
+ return;
153922
+ }
153923
+ sp.start(text);
153924
+ running = true;
153925
+ };
153926
+ return {
153927
+ stage: (text) => {
153928
+ ensureRunning(text);
153929
+ },
153930
+ stop: () => {
153931
+ if (finalized || !running) return;
153932
+ sp.clear();
153933
+ running = false;
153934
+ },
153935
+ fail: (text) => {
153936
+ if (finalized) return;
153937
+ ensureRunning(text);
153938
+ sp.error(text);
153939
+ running = false;
153940
+ finalized = true;
153941
+ }
153942
+ };
153943
+ };
153944
+ promptForValue = async (label) => {
153377
153945
  if (!process.stdin.isTTY) {
153378
153946
  throw new Error(`Missing ${label} (non-interactive)`);
153379
153947
  }
153380
- const rl = import_promises30.default.createInterface({
153381
- input: process.stdin,
153382
- output: process.stdout
153383
- });
153384
- const answer = await rl.question(`${label}: `);
153385
- rl.close();
153948
+ const answer = await Qt({ message: label });
153949
+ if (Ct(answer)) {
153950
+ throw new Error("Setup canceled.");
153951
+ }
153952
+ return answer.trim();
153953
+ };
153954
+ promptForToken = async () => {
153955
+ if (!process.stdin.isTTY) {
153956
+ throw new Error(
153957
+ `Missing Sprites API token (non-interactive).
153958
+ ${tokenInstructions()}`
153959
+ );
153960
+ }
153961
+ console.log(tokenInstructions());
153962
+ const answer = await Qt({ message: ">" });
153963
+ if (Ct(answer)) {
153964
+ throw new Error("Setup canceled.");
153965
+ }
153386
153966
  return answer.trim();
153387
153967
  };
153388
153968
  splitQrLines = (qr) => qr ? qr.trimEnd().split("\n") : [];
@@ -153428,8 +154008,8 @@ var init_setup = __esm({
153428
154008
  };
153429
154009
  runSetup = async (args) => {
153430
154010
  const parsed = parseSetupArgs(args);
153431
- const statusEnabled = process.stderr.isTTY && !parsed.json;
153432
- const status = createStatusLine({ enabled: statusEnabled });
154011
+ const statusEnabled = process.stdout.isTTY && !parsed.json;
154012
+ const status = createSetupStatus(statusEnabled);
153433
154013
  const run2 = async () => {
153434
154014
  status.stage("Loading devbox config");
153435
154015
  const homeDir = process.env.HOME;
@@ -153437,10 +154017,15 @@ var init_setup = __esm({
153437
154017
  const existingConfig = await loadConfig(configOptions);
153438
154018
  const storeOptions = homeDir ? { homeDir } : void 0;
153439
154019
  const store = await createSecretStore(void 0, storeOptions);
154020
+ const beforeInteractivePrompt = () => status.stop();
153440
154021
  const tokenResult = await ensureSpritesToken(
153441
154022
  store,
153442
154023
  (message) => status.stage(message),
153443
- parsed.token ? { tokenOverride: parsed.token } : { forceSync: true }
154024
+ parsed.token ? {
154025
+ tokenOverride: parsed.token,
154026
+ beforeInteractivePrompt,
154027
+ promptForToken
154028
+ } : { forceSync: true, beforeInteractivePrompt, promptForToken }
153444
154029
  );
153445
154030
  const token = tokenResult.token;
153446
154031
  const tokenSource = tokenResult.source;
@@ -153453,10 +154038,10 @@ var init_setup = __esm({
153453
154038
  org = orgs[0];
153454
154039
  } else if (!org && orgs.length > 1) {
153455
154040
  status.stop();
153456
- org = await promptForValue2("Sprites org slug");
154041
+ org = await promptForValue("Sprites org slug");
153457
154042
  } else if (!org && orgs.length === 0) {
153458
154043
  status.stop();
153459
- org = await promptForValue2("Sprites org slug (optional)");
154044
+ org = await promptForValue("Sprites org slug (optional)");
153460
154045
  if (org.length === 0) org = void 0;
153461
154046
  }
153462
154047
  }
@@ -153659,13 +154244,13 @@ var init_sentryTest = __esm({
153659
154244
  });
153660
154245
 
153661
154246
  // src/devbox/commands/version.ts
153662
- var import_node_module3, import_node_fs11, import_node_path27, parseVersionArgs, readPackageVersion2, tryReadDaemonInfo, runVersion;
154247
+ var import_node_module3, import_node_fs11, import_node_path28, parseVersionArgs, readPackageVersion2, tryReadDaemonInfo, runVersion;
153663
154248
  var init_version2 = __esm({
153664
154249
  "src/devbox/commands/version.ts"() {
153665
154250
  "use strict";
153666
154251
  import_node_module3 = require("node:module");
153667
154252
  import_node_fs11 = require("node:fs");
153668
- import_node_path27 = __toESM(require("node:path"), 1);
154253
+ import_node_path28 = __toESM(require("node:path"), 1);
153669
154254
  init_src();
153670
154255
  init_src();
153671
154256
  init_controlPlane();
@@ -153692,7 +154277,7 @@ var init_version2 = __esm({
153692
154277
  const base = (() => {
153693
154278
  if (typeof __filename === "string" && __filename) return __filename;
153694
154279
  const argv1 = typeof process.argv[1] === "string" ? process.argv[1] : "";
153695
- if (!argv1) return import_node_path27.default.join(process.cwd(), "dvb");
154280
+ if (!argv1) return import_node_path28.default.join(process.cwd(), "dvb");
153696
154281
  try {
153697
154282
  return (0, import_node_fs11.realpathSync)(argv1);
153698
154283
  } catch {
@@ -153940,16 +154525,16 @@ var init_whoami = __esm({
153940
154525
  });
153941
154526
 
153942
154527
  // src/devbox/commands/wezterm.ts
153943
- var import_node_crypto13, import_node_child_process12, import_promises31, import_node_os12, import_node_path28, import_promises32, logger10, WEZTERM_APP_PATH, WEZTERM_BIN_PATH, WEZTERM_BIN_DIR, WEZTERM_INSTALL_URL, WEZTERM_PATH_EXPORT, WEZTERM_HEALTH_POLL_INTERVAL_MS, WEZTERM_HEALTH_POLL_TIMEOUT_MS, WEZTERM_PROXY_BASE_ENV, WEZTERM_PROXY_LOG_NAME, WEZTERM_USAGE, parseWeztermArgs, resolveCanonical3, initWeztermClient, waitForWeztermMuxHealthy, ensureWeztermMuxReady, runWeztermProxy, runCommand6, promptYesNo2, fileExists, hasWeztermOnPath, resolveShellProfilePath, ensureWeztermOnPath, ensureWeztermInstalled, expandPath, resolveDefaultConfigPath, escapeRegExp, resolveCliName2, resolveDvbCommand, formatLuaArgs, resolveWeztermProxyEnv, buildProxyCommand, buildDomainBlock, canAppendToConfig, countReturns, applyReturnTableTransform, insertBlock, runWeztermSetup, startWeztermDomain, runWezterm;
154528
+ var import_node_crypto13, import_node_child_process12, import_promises32, import_node_os13, import_node_path29, import_promises33, logger10, WEZTERM_APP_PATH, WEZTERM_BIN_PATH, WEZTERM_BIN_DIR, WEZTERM_INSTALL_URL, WEZTERM_PATH_EXPORT, WEZTERM_HEALTH_POLL_INTERVAL_MS, WEZTERM_HEALTH_POLL_TIMEOUT_MS, WEZTERM_PROXY_BASE_ENV, WEZTERM_PROXY_LOG_NAME, WEZTERM_USAGE, parseWeztermArgs, resolveCanonical3, initWeztermClient, waitForWeztermMuxHealthy, ensureWeztermMuxReady, runWeztermProxy, runCommand6, promptYesNo2, fileExists, hasWeztermOnPath, resolveShellProfilePath, ensureWeztermOnPath, ensureWeztermInstalled, expandPath, resolveDefaultConfigPath, escapeRegExp2, resolveCliName3, resolveDvbCommand, formatLuaArgs, resolveWeztermProxyEnv, buildProxyCommand, buildDomainBlock, canAppendToConfig, countReturns, applyReturnTableTransform, insertBlock, runWeztermSetup, startWeztermDomain, runWezterm;
153944
154529
  var init_wezterm = __esm({
153945
154530
  "src/devbox/commands/wezterm.ts"() {
153946
154531
  "use strict";
153947
154532
  import_node_crypto13 = require("node:crypto");
153948
154533
  import_node_child_process12 = require("node:child_process");
153949
- import_promises31 = __toESM(require("node:fs/promises"), 1);
153950
- import_node_os12 = __toESM(require("node:os"), 1);
153951
- import_node_path28 = __toESM(require("node:path"), 1);
153952
- import_promises32 = __toESM(require("node:readline/promises"), 1);
154534
+ import_promises32 = __toESM(require("node:fs/promises"), 1);
154535
+ import_node_os13 = __toESM(require("node:os"), 1);
154536
+ import_node_path29 = __toESM(require("node:path"), 1);
154537
+ import_promises33 = __toESM(require("node:readline/promises"), 1);
153953
154538
  init_src();
153954
154539
  init_daemonClient();
153955
154540
  init_auth();
@@ -154140,15 +154725,15 @@ var init_wezterm = __esm({
154140
154725
  runWeztermProxy = async (box, port, options) => {
154141
154726
  const writeProxyLog = async (message) => {
154142
154727
  if (process.env.DEVBOX_WEZTERM_PROXY !== "1") return;
154143
- const homeDir = import_node_os12.default.homedir();
154728
+ const homeDir = import_node_os13.default.homedir();
154144
154729
  if (!homeDir) return;
154145
154730
  try {
154146
- const logDir = import_node_path28.default.join(resolveDevboxDir(homeDir), "wezterm");
154147
- await import_promises31.default.mkdir(logDir, { recursive: true });
154731
+ const logDir = import_node_path29.default.join(resolveDevboxDir(homeDir), "wezterm");
154732
+ await import_promises32.default.mkdir(logDir, { recursive: true });
154148
154733
  const line = `${(/* @__PURE__ */ new Date()).toISOString()} ${message}
154149
154734
  `;
154150
- await import_promises31.default.appendFile(
154151
- import_node_path28.default.join(logDir, WEZTERM_PROXY_LOG_NAME),
154735
+ await import_promises32.default.appendFile(
154736
+ import_node_path29.default.join(logDir, WEZTERM_PROXY_LOG_NAME),
154152
154737
  line,
154153
154738
  "utf8"
154154
154739
  );
@@ -154363,7 +154948,7 @@ var init_wezterm = __esm({
154363
154948
  if (!process.stdin.isTTY || !process.stdout.isTTY) {
154364
154949
  throw new Error("This command requires a TTY to confirm changes.");
154365
154950
  }
154366
- const rl = import_promises32.default.createInterface({
154951
+ const rl = import_promises33.default.createInterface({
154367
154952
  input: process.stdin,
154368
154953
  output: process.stdout
154369
154954
  });
@@ -154375,7 +154960,7 @@ var init_wezterm = __esm({
154375
154960
  };
154376
154961
  fileExists = async (value) => {
154377
154962
  try {
154378
- await import_promises31.default.access(value);
154963
+ await import_promises32.default.access(value);
154379
154964
  return true;
154380
154965
  } catch {
154381
154966
  return false;
@@ -154392,16 +154977,16 @@ var init_wezterm = __esm({
154392
154977
  }
154393
154978
  const shell = process.env.SHELL ?? "";
154394
154979
  if (shell.includes("zsh")) {
154395
- return import_node_path28.default.join(homeDir, ".zshrc");
154980
+ return import_node_path29.default.join(homeDir, ".zshrc");
154396
154981
  }
154397
154982
  if (shell.includes("bash")) {
154398
- const profile = import_node_path28.default.join(homeDir, ".bash_profile");
154983
+ const profile = import_node_path29.default.join(homeDir, ".bash_profile");
154399
154984
  if (await fileExists(profile)) {
154400
154985
  return profile;
154401
154986
  }
154402
- return import_node_path28.default.join(homeDir, ".bashrc");
154987
+ return import_node_path29.default.join(homeDir, ".bashrc");
154403
154988
  }
154404
- return import_node_path28.default.join(homeDir, ".profile");
154989
+ return import_node_path29.default.join(homeDir, ".profile");
154405
154990
  };
154406
154991
  ensureWeztermOnPath = async () => {
154407
154992
  if (await hasWeztermOnPath()) {
@@ -154421,7 +155006,7 @@ var init_wezterm = __esm({
154421
155006
  if (shouldUpdate) {
154422
155007
  let content = "";
154423
155008
  try {
154424
- content = await import_promises31.default.readFile(profilePath, "utf8");
155009
+ content = await import_promises32.default.readFile(profilePath, "utf8");
154425
155010
  } catch {
154426
155011
  content = "";
154427
155012
  }
@@ -154429,7 +155014,7 @@ var init_wezterm = __esm({
154429
155014
  const next = `${content.trimEnd()}
154430
155015
  ${content ? "\n" : ""}${WEZTERM_PATH_EXPORT}
154431
155016
  `;
154432
- await import_promises31.default.writeFile(profilePath, next, "utf8");
155017
+ await import_promises32.default.writeFile(profilePath, next, "utf8");
154433
155018
  updatedProfile = true;
154434
155019
  }
154435
155020
  const currentPath = process.env.PATH ?? "";
@@ -154458,7 +155043,7 @@ ${content ? "\n" : ""}${WEZTERM_PATH_EXPORT}
154458
155043
  expandPath = (value) => {
154459
155044
  if (value.startsWith("~/")) {
154460
155045
  const homeDir = process.env.HOME ?? "";
154461
- return homeDir ? import_node_path28.default.join(homeDir, value.slice(2)) : value;
155046
+ return homeDir ? import_node_path29.default.join(homeDir, value.slice(2)) : value;
154462
155047
  }
154463
155048
  return value;
154464
155049
  };
@@ -154468,20 +155053,20 @@ ${content ? "\n" : ""}${WEZTERM_PATH_EXPORT}
154468
155053
  throw new Error("HOME is not set; pass --path to wezterm setup.");
154469
155054
  }
154470
155055
  const candidates = [
154471
- import_node_path28.default.join(homeDir, ".wezterm.lua"),
154472
- import_node_path28.default.join(homeDir, ".config", "wezterm", "wezterm.lua")
155056
+ import_node_path29.default.join(homeDir, ".wezterm.lua"),
155057
+ import_node_path29.default.join(homeDir, ".config", "wezterm", "wezterm.lua")
154473
155058
  ];
154474
155059
  for (const candidate of candidates) {
154475
155060
  try {
154476
- await import_promises31.default.access(candidate);
155061
+ await import_promises32.default.access(candidate);
154477
155062
  return candidate;
154478
155063
  } catch {
154479
155064
  }
154480
155065
  }
154481
155066
  return candidates[0];
154482
155067
  };
154483
- escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
154484
- resolveCliName2 = () => {
155068
+ escapeRegExp2 = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
155069
+ resolveCliName3 = () => {
154485
155070
  const raw = process.env.DEVBOX_CLI_NAME?.trim();
154486
155071
  if (!raw) return "dvb";
154487
155072
  const normalized = raw.replace(/[^A-Za-z0-9_-]+/g, "").slice(0, 32);
@@ -154490,21 +155075,21 @@ ${content ? "\n" : ""}${WEZTERM_PATH_EXPORT}
154490
155075
  resolveDvbCommand = async () => {
154491
155076
  const scriptPath = process.argv[1];
154492
155077
  if (scriptPath) {
154493
- const candidate = import_node_path28.default.isAbsolute(scriptPath) ? scriptPath : import_node_path28.default.resolve(process.cwd(), scriptPath);
155078
+ const candidate = import_node_path29.default.isAbsolute(scriptPath) ? scriptPath : import_node_path29.default.resolve(process.cwd(), scriptPath);
154494
155079
  try {
154495
- await import_promises31.default.access(candidate);
155080
+ await import_promises32.default.access(candidate);
154496
155081
  return [process.execPath, candidate];
154497
155082
  } catch {
154498
155083
  }
154499
155084
  }
154500
- return [resolveCliName2()];
155085
+ return [resolveCliName3()];
154501
155086
  };
154502
155087
  formatLuaArgs = (args) => `{ ${args.map((arg) => JSON.stringify(arg)).join(", ")} }`;
154503
155088
  resolveWeztermProxyEnv = () => {
154504
155089
  const env2 = [...WEZTERM_PROXY_BASE_ENV];
154505
155090
  const profile = process.env.DEVBOX_PROFILE?.trim();
154506
155091
  if (profile) env2.push(`DEVBOX_PROFILE=${profile}`);
154507
- const cliName = resolveCliName2();
155092
+ const cliName = resolveCliName3();
154508
155093
  if (cliName !== "dvb") env2.push(`DEVBOX_CLI_NAME=${cliName}`);
154509
155094
  return env2;
154510
155095
  };
@@ -154593,7 +155178,7 @@ ${block}`;
154593
155178
  let existing = "";
154594
155179
  let hasExisting = false;
154595
155180
  try {
154596
- existing = await import_promises31.default.readFile(configPath, "utf8");
155181
+ existing = await import_promises32.default.readFile(configPath, "utf8");
154597
155182
  hasExisting = true;
154598
155183
  } catch {
154599
155184
  hasExisting = false;
@@ -154610,7 +155195,7 @@ ${block}`;
154610
155195
  `;
154611
155196
  } else {
154612
155197
  const marker = new RegExp(
154613
- `${escapeRegExp(start)}[\\s\\S]*?${escapeRegExp(end)}\\n?`
155198
+ `${escapeRegExp2(start)}[\\s\\S]*?${escapeRegExp2(end)}\\n?`
154614
155199
  );
154615
155200
  if (marker.test(existing)) {
154616
155201
  nextContent = existing.replace(marker, block);
@@ -154632,8 +155217,8 @@ ${block}`;
154632
155217
  }
154633
155218
  }
154634
155219
  if (updated) {
154635
- await import_promises31.default.mkdir(import_node_path28.default.dirname(configPath), { recursive: true });
154636
- await import_promises31.default.writeFile(configPath, nextContent, "utf8");
155220
+ await import_promises32.default.mkdir(import_node_path29.default.dirname(configPath), { recursive: true });
155221
+ await import_promises32.default.writeFile(configPath, nextContent, "utf8");
154637
155222
  console.log(`Updated WezTerm config: ${configPath}`);
154638
155223
  } else {
154639
155224
  console.log(`WezTerm config already up to date: ${configPath}`);
@@ -154731,6 +155316,7 @@ var init_cli = __esm({
154731
155316
  init_logout();
154732
155317
  init_mount();
154733
155318
  init_ports3();
155319
+ init_uninstall();
154734
155320
  init_sessions2();
154735
155321
  init_services();
154736
155322
  init_setup();
@@ -154746,6 +155332,7 @@ var init_cli = __esm({
154746
155332
  console.log(" [--api-base-url <url>] [--no-verify] [--json]");
154747
155333
  console.log(" dvb whoami [--json]");
154748
155334
  console.log(" dvb logout [--json]");
155335
+ console.log(" dvb uninstall [--dry-run] [--yes] [--json]");
154749
155336
  console.log(" dvb init [--alias <alias>] [--name <canonical>]");
154750
155337
  console.log(
154751
155338
  " [--force] [--resume] [--status] [--json] [--codex-setup-only]"
@@ -154849,6 +155436,18 @@ var init_cli = __esm({
154849
155436
  await runLogout(args.slice(1));
154850
155437
  return;
154851
155438
  }
155439
+ if (args[0] === "uninstall") {
155440
+ try {
155441
+ await runUninstall(args.slice(1));
155442
+ } catch (error2) {
155443
+ if (error2 instanceof Error && error2.message === "help_requested") {
155444
+ printUsage();
155445
+ return;
155446
+ }
155447
+ throw error2;
155448
+ }
155449
+ return;
155450
+ }
154852
155451
  if (args[0] === "connect") {
154853
155452
  await runConnect(args.slice(1));
154854
155453
  return;
@@ -154929,8 +155528,8 @@ var init_cli = __esm({
154929
155528
 
154930
155529
  // src/bin/dvb.ts
154931
155530
  var import_node_fs12 = __toESM(require("node:fs"), 1);
154932
- var import_node_os13 = __toESM(require("node:os"), 1);
154933
- var import_node_path29 = __toESM(require("node:path"), 1);
155531
+ var import_node_os14 = __toESM(require("node:os"), 1);
155532
+ var import_node_path30 = __toESM(require("node:path"), 1);
154934
155533
  init_src();
154935
155534
  var MIN_NODE_MAJOR = 24;
154936
155535
  var assertNodeVersion = () => {
@@ -155011,13 +155610,13 @@ run().catch(async (error2) => {
155011
155610
  await flushDevboxTelemetry();
155012
155611
  const message = formatErrorMessage(error2);
155013
155612
  if (process.env.DEVBOX_WEZTERM_PROXY === "1") {
155014
- const homeDir = import_node_os13.default.homedir();
155613
+ const homeDir = import_node_os14.default.homedir();
155015
155614
  if (homeDir) {
155016
155615
  try {
155017
- const logDir = import_node_path29.default.join(resolveDevboxDir(homeDir), "wezterm");
155616
+ const logDir = import_node_path30.default.join(resolveDevboxDir(homeDir), "wezterm");
155018
155617
  import_node_fs12.default.mkdirSync(logDir, { recursive: true });
155019
155618
  import_node_fs12.default.appendFileSync(
155020
- import_node_path29.default.join(logDir, "proxy.log"),
155619
+ import_node_path30.default.join(logDir, "proxy.log"),
155021
155620
  `${(/* @__PURE__ */ new Date()).toISOString()} ${message}
155022
155621
  `
155023
155622
  );
@@ -155111,4 +155710,4 @@ smol-toml/dist/index.js:
155111
155710
  */
155112
155711
  //# sourceMappingURL=dvb.cjs.map
155113
155712
 
155114
- //# debugId=715ed7b2-d59f-5125-ada3-3f07ca10b2ed
155713
+ //# debugId=711536f2-2991-528d-9542-1452d269ca68