wxt 0.18.9 → 0.18.11

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.
@@ -514,7 +514,7 @@ function isPlainObject(value) {
514
514
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
515
515
  }
516
516
 
517
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/file-url.js
517
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/file-url.js
518
518
  import { fileURLToPath } from "node:url";
519
519
  var safeNormalizeFileUrl = (file, name) => {
520
520
  const fileString = normalizeFileUrl(file);
@@ -525,7 +525,7 @@ var safeNormalizeFileUrl = (file, name) => {
525
525
  };
526
526
  var normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
527
527
 
528
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/parameters.js
528
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/parameters.js
529
529
  var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
530
530
  const filePath = safeNormalizeFileUrl(rawFile, "First argument");
531
531
  const [commandArguments, options] = isPlainObject(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];
@@ -546,10 +546,10 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
546
546
  return [filePath, normalizedArguments, options];
547
547
  };
548
548
 
549
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/template.js
549
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/template.js
550
550
  import { ChildProcess } from "node:child_process";
551
551
 
552
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/uint-array.js
552
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/uint-array.js
553
553
  import { StringDecoder } from "node:string_decoder";
554
554
  var { toString: objectToString } = Object.prototype;
555
555
  var isArrayBuffer = (value) => objectToString.call(value) === "[object ArrayBuffer]";
@@ -596,7 +596,7 @@ var getJoinLength = (uint8Arrays) => {
596
596
  return joinLength;
597
597
  };
598
598
 
599
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/template.js
599
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/template.js
600
600
  var isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
601
601
  var parseTemplates = (templates, expressions) => {
602
602
  let tokens = [];
@@ -693,114 +693,150 @@ var getSubprocessResult = ({ stdout }) => {
693
693
  throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
694
694
  };
695
695
 
696
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-sync.js
696
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-sync.js
697
697
  import { spawnSync } from "node:child_process";
698
698
 
699
- // ../../node_modules/.pnpm/yoctocolors@2.0.2/node_modules/yoctocolors/index.js
700
- import tty from "node:tty";
701
- var hasColors = tty.WriteStream.prototype.hasColors();
702
- var format = (open, close) => {
703
- if (!hasColors) {
704
- return (input) => input;
699
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/specific.js
700
+ import { debuglog } from "node:util";
701
+
702
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/standard-stream.js
703
+ import process2 from "node:process";
704
+ var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
705
+ var STANDARD_STREAMS = [process2.stdin, process2.stdout, process2.stderr];
706
+ var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
707
+ var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
708
+
709
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/specific.js
710
+ var normalizeFdSpecificOptions = (options) => {
711
+ const optionsCopy = { ...options };
712
+ for (const optionName of FD_SPECIFIC_OPTIONS) {
713
+ optionsCopy[optionName] = normalizeFdSpecificOption(options, optionName);
705
714
  }
706
- const openCode = `\x1B[${open}m`;
707
- const closeCode = `\x1B[${close}m`;
708
- return (input) => {
709
- const string = input + "";
710
- let index = string.indexOf(closeCode);
711
- if (index === -1) {
712
- return openCode + string + closeCode;
713
- }
714
- let result = openCode;
715
- let lastIndex = 0;
716
- while (index !== -1) {
717
- result += string.slice(lastIndex, index) + openCode;
718
- lastIndex = index + closeCode.length;
719
- index = string.indexOf(closeCode, lastIndex);
720
- }
721
- result += string.slice(lastIndex) + closeCode;
722
- return result;
723
- };
715
+ return optionsCopy;
724
716
  };
725
- var reset = format(0, 0);
726
- var bold = format(1, 22);
727
- var dim = format(2, 22);
728
- var italic = format(3, 23);
729
- var underline = format(4, 24);
730
- var overline = format(53, 55);
731
- var inverse = format(7, 27);
732
- var hidden = format(8, 28);
733
- var strikethrough = format(9, 29);
734
- var black = format(30, 39);
735
- var red = format(31, 39);
736
- var green = format(32, 39);
737
- var yellow = format(33, 39);
738
- var blue = format(34, 39);
739
- var magenta = format(35, 39);
740
- var cyan = format(36, 39);
741
- var white = format(37, 39);
742
- var gray = format(90, 39);
743
- var bgBlack = format(40, 49);
744
- var bgRed = format(41, 49);
745
- var bgGreen = format(42, 49);
746
- var bgYellow = format(43, 49);
747
- var bgBlue = format(44, 49);
748
- var bgMagenta = format(45, 49);
749
- var bgCyan = format(46, 49);
750
- var bgWhite = format(47, 49);
751
- var bgGray = format(100, 49);
752
- var redBright = format(91, 39);
753
- var greenBright = format(92, 39);
754
- var yellowBright = format(93, 39);
755
- var blueBright = format(94, 39);
756
- var magentaBright = format(95, 39);
757
- var cyanBright = format(96, 39);
758
- var whiteBright = format(97, 39);
759
- var bgRedBright = format(101, 49);
760
- var bgGreenBright = format(102, 49);
761
- var bgYellowBright = format(103, 49);
762
- var bgBlueBright = format(104, 49);
763
- var bgMagentaBright = format(105, 49);
764
- var bgCyanBright = format(106, 49);
765
- var bgWhiteBright = format(107, 49);
766
-
767
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/info.js
768
- import { debuglog } from "node:util";
769
- var verboseDefault = debuglog("execa").enabled ? "full" : "none";
770
- var getVerboseInfo = (verbose) => {
771
- const verboseId = isVerbose(verbose) ? VERBOSE_ID++ : void 0;
772
- validateVerbose(verbose);
773
- return { verbose, verboseId };
717
+ var normalizeFdSpecificOption = (options, optionName) => {
718
+ const optionBaseArray = Array.from({ length: getStdioLength(options) + 1 });
719
+ const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
720
+ return addDefaultValue(optionArray, optionName);
774
721
  };
775
- var VERBOSE_ID = 0n;
776
- var isVerbose = (verbose) => verbose.some((fdVerbose) => fdVerbose !== "none");
777
- var validateVerbose = (verbose) => {
778
- for (const verboseItem of verbose) {
779
- if (verboseItem === false) {
780
- throw new TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);
781
- }
782
- if (verboseItem === true) {
783
- throw new TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);
784
- }
785
- if (!VERBOSE_VALUES.has(verboseItem)) {
786
- const allowedValues = [...VERBOSE_VALUES].map((allowedValue) => `'${allowedValue}'`).join(", ");
787
- throw new TypeError(`The "verbose" option must not be ${verboseItem}. Allowed values are: ${allowedValues}.`);
722
+ var getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
723
+ var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);
724
+ var normalizeOptionObject = (optionValue, optionArray, optionName) => {
725
+ for (const fdName of Object.keys(optionValue).sort(compareFdName)) {
726
+ for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {
727
+ optionArray[fdNumber] = optionValue[fdName];
788
728
  }
789
729
  }
730
+ return optionArray;
731
+ };
732
+ var compareFdName = (fdNameA, fdNameB) => getFdNameOrder(fdNameA) < getFdNameOrder(fdNameB) ? 1 : -1;
733
+ var getFdNameOrder = (fdName) => {
734
+ if (fdName === "stdout" || fdName === "stderr") {
735
+ return 0;
736
+ }
737
+ return fdName === "all" ? 2 : 1;
790
738
  };
791
- var VERBOSE_VALUES = /* @__PURE__ */ new Set(["none", "short", "full"]);
739
+ var parseFdName = (fdName, optionName, optionArray) => {
740
+ if (fdName === "ipc") {
741
+ return [optionArray.length - 1];
742
+ }
743
+ const fdNumber = parseFd(fdName);
744
+ if (fdNumber === void 0 || fdNumber === 0) {
745
+ throw new TypeError(`"${optionName}.${fdName}" is invalid.
746
+ It must be "${optionName}.stdout", "${optionName}.stderr", "${optionName}.all", "${optionName}.ipc", or "${optionName}.fd3", "${optionName}.fd4" (and so on).`);
747
+ }
748
+ if (fdNumber >= optionArray.length) {
749
+ throw new TypeError(`"${optionName}.${fdName}" is invalid: that file descriptor does not exist.
750
+ Please set the "stdio" option to ensure that file descriptor exists.`);
751
+ }
752
+ return fdNumber === "all" ? [1, 2] : [fdNumber];
753
+ };
754
+ var parseFd = (fdName) => {
755
+ if (fdName === "all") {
756
+ return fdName;
757
+ }
758
+ if (STANDARD_STREAMS_ALIASES.includes(fdName)) {
759
+ return STANDARD_STREAMS_ALIASES.indexOf(fdName);
760
+ }
761
+ const regexpResult = FD_REGEXP.exec(fdName);
762
+ if (regexpResult !== null) {
763
+ return Number(regexpResult[1]);
764
+ }
765
+ };
766
+ var FD_REGEXP = /^fd(\d+)$/;
767
+ var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
768
+ var verboseDefault = debuglog("execa").enabled ? "full" : "none";
769
+ var DEFAULT_OPTIONS = {
770
+ lines: false,
771
+ buffer: true,
772
+ maxBuffer: 1e3 * 1e3 * 100,
773
+ verbose: verboseDefault,
774
+ stripFinalNewline: true
775
+ };
776
+ var FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
777
+ var getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
778
+
779
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/values.js
780
+ var isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
781
+ var isFullVerbose = ({ verbose }, fdNumber) => !["none", "short"].includes(getFdVerbose(verbose, fdNumber));
782
+ var getVerboseFunction = ({ verbose }, fdNumber) => {
783
+ const fdVerbose = getFdVerbose(verbose, fdNumber);
784
+ return isVerboseFunction(fdVerbose) ? fdVerbose : void 0;
785
+ };
786
+ var getFdVerbose = (verbose, fdNumber) => fdNumber === void 0 ? getFdGenericVerbose(verbose) : getFdSpecificValue(verbose, fdNumber);
787
+ var getFdGenericVerbose = (verbose) => verbose.find((fdVerbose) => isVerboseFunction(fdVerbose)) ?? VERBOSE_VALUES.findLast((fdVerbose) => verbose.includes(fdVerbose));
788
+ var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
789
+ var VERBOSE_VALUES = ["none", "short", "full"];
792
790
 
793
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/log.js
791
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/log.js
794
792
  import { writeFileSync } from "node:fs";
795
793
  import { inspect } from "node:util";
796
794
 
795
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/escape.js
796
+ import { platform } from "node:process";
797
+ import { stripVTControlCharacters } from "node:util";
798
+ var joinCommand = (filePath, rawArguments) => {
799
+ const fileAndArguments = [filePath, ...rawArguments];
800
+ const command = fileAndArguments.join(" ");
801
+ const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
802
+ return { command, escapedCommand };
803
+ };
804
+ var escapeLines = (lines) => stripVTControlCharacters(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
805
+ var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
806
+ var escapeControlCharacter = (character) => {
807
+ const commonEscape = COMMON_ESCAPES[character];
808
+ if (commonEscape !== void 0) {
809
+ return commonEscape;
810
+ }
811
+ const codepoint = character.codePointAt(0);
812
+ const codepointHex = codepoint.toString(16);
813
+ return codepoint <= ASTRAL_START ? `\\u${codepointHex.padStart(4, "0")}` : `\\U${codepointHex}`;
814
+ };
815
+ var SPECIAL_CHAR_REGEXP = /\p{Separator}|\p{Other}/gu;
816
+ var COMMON_ESCAPES = {
817
+ " ": " ",
818
+ "\b": "\\b",
819
+ "\f": "\\f",
820
+ "\n": "\\n",
821
+ "\r": "\\r",
822
+ " ": "\\t"
823
+ };
824
+ var ASTRAL_START = 65535;
825
+ var quoteString = (escapedArgument) => {
826
+ if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
827
+ return escapedArgument;
828
+ }
829
+ return platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
830
+ };
831
+ var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
832
+
797
833
  // ../../node_modules/.pnpm/is-unicode-supported@2.0.0/node_modules/is-unicode-supported/index.js
798
- import process2 from "node:process";
834
+ import process3 from "node:process";
799
835
  function isUnicodeSupported() {
800
- if (process2.platform !== "win32") {
801
- return process2.env.TERM !== "linux";
836
+ if (process3.platform !== "win32") {
837
+ return process3.env.TERM !== "linux";
802
838
  }
803
- return Boolean(process2.env.WT_SESSION) || Boolean(process2.env.TERMINUS_SUBLIME) || process2.env.ConEmuTask === "{cmd::Cmder}" || process2.env.TERM_PROGRAM === "Terminus-Sublime" || process2.env.TERM_PROGRAM === "vscode" || process2.env.TERM === "xterm-256color" || process2.env.TERM === "alacritty" || process2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
839
+ return Boolean(process3.env.WT_SESSION) || Boolean(process3.env.TERMINUS_SUBLIME) || process3.env.ConEmuTask === "{cmd::Cmder}" || process3.env.TERM_PROGRAM === "Terminus-Sublime" || process3.env.TERM_PROGRAM === "vscode" || process3.env.TERM === "xterm-256color" || process3.env.TERM === "alacritty" || process3.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
804
840
  }
805
841
 
806
842
  // ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
@@ -1079,175 +1115,215 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
1079
1115
  var figures_default = figures;
1080
1116
  var replacements = Object.entries(specialMainSymbols);
1081
1117
 
1082
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/escape.js
1083
- import { platform } from "node:process";
1084
- import { stripVTControlCharacters } from "node:util";
1085
- var joinCommand = (filePath, rawArguments) => {
1086
- const fileAndArguments = [filePath, ...rawArguments];
1087
- const command = fileAndArguments.join(" ");
1088
- const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
1089
- return { command, escapedCommand };
1090
- };
1091
- var escapeLines = (lines) => stripVTControlCharacters(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
1092
- var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
1093
- var escapeControlCharacter = (character) => {
1094
- const commonEscape = COMMON_ESCAPES[character];
1095
- if (commonEscape !== void 0) {
1096
- return commonEscape;
1118
+ // ../../node_modules/.pnpm/yoctocolors@2.0.2/node_modules/yoctocolors/index.js
1119
+ import tty from "node:tty";
1120
+ var hasColors = tty.WriteStream.prototype.hasColors();
1121
+ var format = (open, close) => {
1122
+ if (!hasColors) {
1123
+ return (input) => input;
1097
1124
  }
1098
- const codepoint = character.codePointAt(0);
1099
- const codepointHex = codepoint.toString(16);
1100
- return codepoint <= ASTRAL_START ? `\\u${codepointHex.padStart(4, "0")}` : `\\U${codepointHex}`;
1125
+ const openCode = `\x1B[${open}m`;
1126
+ const closeCode = `\x1B[${close}m`;
1127
+ return (input) => {
1128
+ const string = input + "";
1129
+ let index = string.indexOf(closeCode);
1130
+ if (index === -1) {
1131
+ return openCode + string + closeCode;
1132
+ }
1133
+ let result = openCode;
1134
+ let lastIndex = 0;
1135
+ while (index !== -1) {
1136
+ result += string.slice(lastIndex, index) + openCode;
1137
+ lastIndex = index + closeCode.length;
1138
+ index = string.indexOf(closeCode, lastIndex);
1139
+ }
1140
+ result += string.slice(lastIndex) + closeCode;
1141
+ return result;
1142
+ };
1101
1143
  };
1102
- var SPECIAL_CHAR_REGEXP = /\p{Separator}|\p{Other}/gu;
1103
- var COMMON_ESCAPES = {
1104
- " ": " ",
1105
- "\b": "\\b",
1106
- "\f": "\\f",
1107
- "\n": "\\n",
1108
- "\r": "\\r",
1109
- " ": "\\t"
1144
+ var reset = format(0, 0);
1145
+ var bold = format(1, 22);
1146
+ var dim = format(2, 22);
1147
+ var italic = format(3, 23);
1148
+ var underline = format(4, 24);
1149
+ var overline = format(53, 55);
1150
+ var inverse = format(7, 27);
1151
+ var hidden = format(8, 28);
1152
+ var strikethrough = format(9, 29);
1153
+ var black = format(30, 39);
1154
+ var red = format(31, 39);
1155
+ var green = format(32, 39);
1156
+ var yellow = format(33, 39);
1157
+ var blue = format(34, 39);
1158
+ var magenta = format(35, 39);
1159
+ var cyan = format(36, 39);
1160
+ var white = format(37, 39);
1161
+ var gray = format(90, 39);
1162
+ var bgBlack = format(40, 49);
1163
+ var bgRed = format(41, 49);
1164
+ var bgGreen = format(42, 49);
1165
+ var bgYellow = format(43, 49);
1166
+ var bgBlue = format(44, 49);
1167
+ var bgMagenta = format(45, 49);
1168
+ var bgCyan = format(46, 49);
1169
+ var bgWhite = format(47, 49);
1170
+ var bgGray = format(100, 49);
1171
+ var redBright = format(91, 39);
1172
+ var greenBright = format(92, 39);
1173
+ var yellowBright = format(93, 39);
1174
+ var blueBright = format(94, 39);
1175
+ var magentaBright = format(95, 39);
1176
+ var cyanBright = format(96, 39);
1177
+ var whiteBright = format(97, 39);
1178
+ var bgRedBright = format(101, 49);
1179
+ var bgGreenBright = format(102, 49);
1180
+ var bgYellowBright = format(103, 49);
1181
+ var bgBlueBright = format(104, 49);
1182
+ var bgMagentaBright = format(105, 49);
1183
+ var bgCyanBright = format(106, 49);
1184
+ var bgWhiteBright = format(107, 49);
1185
+
1186
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/default.js
1187
+ var defaultVerboseFunction = ({
1188
+ type,
1189
+ message,
1190
+ timestamp,
1191
+ piped,
1192
+ commandId,
1193
+ result: { failed = false } = {},
1194
+ options: { reject = true }
1195
+ }) => {
1196
+ const timestampString = serializeTimestamp(timestamp);
1197
+ const icon = ICONS[type]({ failed, reject, piped });
1198
+ const color = COLORS[type]({ reject });
1199
+ return `${gray(`[${timestampString}]`)} ${gray(`[${commandId}]`)} ${color(icon)} ${color(message)}`;
1110
1200
  };
1111
- var ASTRAL_START = 65535;
1112
- var quoteString = (escapedArgument) => {
1113
- if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
1114
- return escapedArgument;
1201
+ var serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
1202
+ var padField = (field, padding) => String(field).padStart(padding, "0");
1203
+ var getFinalIcon = ({ failed, reject }) => {
1204
+ if (!failed) {
1205
+ return figures_default.tick;
1115
1206
  }
1116
- return platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
1207
+ return reject ? figures_default.cross : figures_default.warning;
1117
1208
  };
1118
- var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
1119
-
1120
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/log.js
1121
- var verboseLog = (string, verboseId, icon, color) => {
1122
- const prefixedLines = addPrefix(string, verboseId, icon, color);
1123
- writeFileSync(STDERR_FD, `${prefixedLines}
1124
- `);
1209
+ var ICONS = {
1210
+ command: ({ piped }) => piped ? "|" : "$",
1211
+ output: () => " ",
1212
+ ipc: () => "*",
1213
+ error: getFinalIcon,
1214
+ duration: getFinalIcon
1125
1215
  };
1126
- var STDERR_FD = 2;
1127
- var addPrefix = (string, verboseId, icon, color) => string.includes("\n") ? string.split("\n").map((line) => addPrefixToLine(line, verboseId, icon, color)).join("\n") : addPrefixToLine(string, verboseId, icon, color);
1128
- var addPrefixToLine = (line, verboseId, icon, color = identity) => [
1129
- gray(`[${getTimestamp()}]`),
1130
- gray(`[${verboseId}]`),
1131
- color(ICONS[icon]),
1132
- color(line)
1133
- ].join(" ");
1134
1216
  var identity = (string) => string;
1135
- var getTimestamp = () => {
1136
- const date = /* @__PURE__ */ new Date();
1137
- return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
1217
+ var COLORS = {
1218
+ command: () => bold,
1219
+ output: () => identity,
1220
+ ipc: () => identity,
1221
+ error: ({ reject }) => reject ? redBright : yellowBright,
1222
+ duration: () => gray
1223
+ };
1224
+
1225
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/custom.js
1226
+ var applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
1227
+ const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
1228
+ return printedLines.map(({ verboseLine, verboseObject }) => applyVerboseFunction(verboseLine, verboseObject, verboseFunction)).filter((printedLine) => printedLine !== void 0).map((printedLine) => appendNewline(printedLine)).join("");
1229
+ };
1230
+ var applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
1231
+ if (verboseFunction === void 0) {
1232
+ return verboseLine;
1233
+ }
1234
+ const printedLine = verboseFunction(verboseLine, verboseObject);
1235
+ if (typeof printedLine === "string") {
1236
+ return printedLine;
1237
+ }
1238
+ };
1239
+ var appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}
1240
+ `;
1241
+
1242
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/log.js
1243
+ var verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
1244
+ const verboseObject = getVerboseObject({ type, result, verboseInfo });
1245
+ const printedLines = getPrintedLines(verboseMessage, verboseObject);
1246
+ const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
1247
+ writeFileSync(STDERR_FD, finalLines);
1248
+ };
1249
+ var getVerboseObject = ({
1250
+ type,
1251
+ result,
1252
+ verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } }
1253
+ }) => ({
1254
+ type,
1255
+ escapedCommand,
1256
+ commandId: `${commandId}`,
1257
+ timestamp: /* @__PURE__ */ new Date(),
1258
+ piped,
1259
+ result,
1260
+ options
1261
+ });
1262
+ var getPrintedLines = (verboseMessage, verboseObject) => verboseMessage.split("\n").map((message) => getPrintedLine({ ...verboseObject, message }));
1263
+ var getPrintedLine = (verboseObject) => {
1264
+ const verboseLine = defaultVerboseFunction(verboseObject);
1265
+ return { verboseLine, verboseObject };
1138
1266
  };
1139
- var padField = (field, padding) => String(field).padStart(padding, "0");
1140
- var ICONS = {
1141
- command: "$",
1142
- pipedCommand: "|",
1143
- output: " ",
1144
- ipc: "*",
1145
- error: figures_default.cross,
1146
- warning: figures_default.warning,
1147
- success: figures_default.tick
1148
- };
1149
- var serializeLogMessage = (message) => {
1267
+ var STDERR_FD = 2;
1268
+ var serializeVerboseMessage = (message) => {
1150
1269
  const messageString = typeof message === "string" ? message : inspect(message);
1151
1270
  const escapedMessage = escapeLines(messageString);
1152
1271
  return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
1153
1272
  };
1154
1273
  var TAB_SIZE = 2;
1155
1274
 
1156
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/start.js
1157
- var logCommand = (escapedCommand, { verbose, verboseId }, { piped = false }) => {
1158
- if (!isVerbose(verbose)) {
1275
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/start.js
1276
+ var logCommand = (escapedCommand, verboseInfo) => {
1277
+ if (!isVerbose(verboseInfo)) {
1159
1278
  return;
1160
1279
  }
1161
- const icon = piped ? "pipedCommand" : "command";
1162
- verboseLog(escapedCommand, verboseId, icon, bold);
1280
+ verboseLog({
1281
+ type: "command",
1282
+ verboseMessage: escapedCommand,
1283
+ verboseInfo
1284
+ });
1163
1285
  };
1164
1286
 
1165
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/duration.js
1166
- import { hrtime } from "node:process";
1167
- var getStartTime = () => hrtime.bigint();
1168
- var getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
1169
-
1170
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/standard-stream.js
1171
- import process3 from "node:process";
1172
- var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
1173
- var STANDARD_STREAMS = [process3.stdin, process3.stdout, process3.stderr];
1174
- var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
1175
- var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
1176
-
1177
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/specific.js
1178
- var normalizeFdSpecificOptions = (options) => {
1179
- const optionsCopy = { ...options };
1180
- for (const optionName of FD_SPECIFIC_OPTIONS) {
1181
- optionsCopy[optionName] = normalizeFdSpecificOption(options, optionName);
1182
- }
1183
- return optionsCopy;
1184
- };
1185
- var normalizeFdSpecificOption = (options, optionName) => {
1186
- const optionBaseArray = Array.from({ length: getStdioLength(options) + 1 });
1187
- const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
1188
- return addDefaultValue(optionArray, optionName);
1287
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/info.js
1288
+ var getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
1289
+ validateVerbose(verbose);
1290
+ const commandId = getCommandId(verbose);
1291
+ return {
1292
+ verbose,
1293
+ escapedCommand,
1294
+ commandId,
1295
+ rawOptions
1296
+ };
1189
1297
  };
1190
- var getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
1191
- var normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);
1192
- var normalizeOptionObject = (optionValue, optionArray, optionName) => {
1193
- for (const fdName of Object.keys(optionValue).sort(compareFdName)) {
1194
- for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {
1195
- optionArray[fdNumber] = optionValue[fdName];
1298
+ var getCommandId = (verbose) => isVerbose({ verbose }) ? COMMAND_ID++ : void 0;
1299
+ var COMMAND_ID = 0n;
1300
+ var validateVerbose = (verbose) => {
1301
+ for (const fdVerbose of verbose) {
1302
+ if (fdVerbose === false) {
1303
+ throw new TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);
1304
+ }
1305
+ if (fdVerbose === true) {
1306
+ throw new TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);
1307
+ }
1308
+ if (!VERBOSE_VALUES.includes(fdVerbose) && !isVerboseFunction(fdVerbose)) {
1309
+ const allowedValues = VERBOSE_VALUES.map((allowedValue) => `'${allowedValue}'`).join(", ");
1310
+ throw new TypeError(`The "verbose" option must not be ${fdVerbose}. Allowed values are: ${allowedValues} or a function.`);
1196
1311
  }
1197
1312
  }
1198
- return optionArray;
1199
- };
1200
- var compareFdName = (fdNameA, fdNameB) => getFdNameOrder(fdNameA) < getFdNameOrder(fdNameB) ? 1 : -1;
1201
- var getFdNameOrder = (fdName) => {
1202
- if (fdName === "stdout" || fdName === "stderr") {
1203
- return 0;
1204
- }
1205
- return fdName === "all" ? 2 : 1;
1206
- };
1207
- var parseFdName = (fdName, optionName, optionArray) => {
1208
- if (fdName === "ipc") {
1209
- return [optionArray.length - 1];
1210
- }
1211
- const fdNumber = parseFd(fdName);
1212
- if (fdNumber === void 0 || fdNumber === 0) {
1213
- throw new TypeError(`"${optionName}.${fdName}" is invalid.
1214
- It must be "${optionName}.stdout", "${optionName}.stderr", "${optionName}.all", "${optionName}.ipc", or "${optionName}.fd3", "${optionName}.fd4" (and so on).`);
1215
- }
1216
- if (fdNumber >= optionArray.length) {
1217
- throw new TypeError(`"${optionName}.${fdName}" is invalid: that file descriptor does not exist.
1218
- Please set the "stdio" option to ensure that file descriptor exists.`);
1219
- }
1220
- return fdNumber === "all" ? [1, 2] : [fdNumber];
1221
- };
1222
- var parseFd = (fdName) => {
1223
- if (fdName === "all") {
1224
- return fdName;
1225
- }
1226
- if (STANDARD_STREAMS_ALIASES.includes(fdName)) {
1227
- return STANDARD_STREAMS_ALIASES.indexOf(fdName);
1228
- }
1229
- const regexpResult = FD_REGEXP.exec(fdName);
1230
- if (regexpResult !== null) {
1231
- return Number(regexpResult[1]);
1232
- }
1233
- };
1234
- var FD_REGEXP = /^fd(\d+)$/;
1235
- var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
1236
- var DEFAULT_OPTIONS = {
1237
- lines: false,
1238
- buffer: true,
1239
- maxBuffer: 1e3 * 1e3 * 100,
1240
- verbose: verboseDefault,
1241
- stripFinalNewline: true
1242
1313
  };
1243
- var FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
1244
1314
 
1245
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/command.js
1315
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/duration.js
1316
+ import { hrtime } from "node:process";
1317
+ var getStartTime = () => hrtime.bigint();
1318
+ var getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
1319
+
1320
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/command.js
1246
1321
  var handleCommand = (filePath, rawArguments, rawOptions) => {
1247
1322
  const startTime = getStartTime();
1248
1323
  const { command, escapedCommand } = joinCommand(filePath, rawArguments);
1249
- const verboseInfo = getVerboseInfo(normalizeFdSpecificOption(rawOptions, "verbose"));
1250
- logCommand(escapedCommand, verboseInfo, rawOptions);
1324
+ const verbose = normalizeFdSpecificOption(rawOptions, "verbose");
1325
+ const verboseInfo = getVerboseInfo(verbose, escapedCommand, { ...rawOptions });
1326
+ logCommand(escapedCommand, verboseInfo);
1251
1327
  return {
1252
1328
  command,
1253
1329
  escapedCommand,
@@ -1256,7 +1332,7 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
1256
1332
  };
1257
1333
  };
1258
1334
 
1259
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/options.js
1335
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/options.js
1260
1336
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
1261
1337
  import { basename as basename2 } from "node:path";
1262
1338
  import process6 from "node:process";
@@ -1317,10 +1393,10 @@ var npmRunPathEnv = ({ env = process4.env, ...options } = {}) => {
1317
1393
  return env;
1318
1394
  };
1319
1395
 
1320
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/kill.js
1396
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/kill.js
1321
1397
  import { setTimeout } from "node:timers/promises";
1322
1398
 
1323
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js
1399
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/final-error.js
1324
1400
  var getFinalError = (originalError, message, isSync) => {
1325
1401
  const ErrorClass = isSync ? ExecaSyncError : ExecaError;
1326
1402
  const options = originalError instanceof DiscardedError ? {} : { cause: originalError };
@@ -1352,7 +1428,7 @@ var ExecaSyncError = class extends Error {
1352
1428
  };
1353
1429
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1354
1430
 
1355
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/signal.js
1431
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/signal.js
1356
1432
  import { constants as constants3 } from "node:os";
1357
1433
 
1358
1434
  // ../../node_modules/.pnpm/human-signals@7.0.0/node_modules/human-signals/build/src/main.js
@@ -1722,7 +1798,7 @@ var findSignalByNumber = (number, signals2) => {
1722
1798
  };
1723
1799
  var signalsByNumber = getSignalsByNumber();
1724
1800
 
1725
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/signal.js
1801
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/signal.js
1726
1802
  var normalizeKillSignal = (killSignal) => {
1727
1803
  const optionName = "option `killSignal`";
1728
1804
  if (killSignal === 0) {
@@ -1766,7 +1842,7 @@ var getAvailableSignalNames = () => Object.keys(constants3.signals).sort().map((
1766
1842
  var getAvailableSignalIntegers = () => [...new Set(Object.values(constants3.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
1767
1843
  var getSignalDescription = (signal) => signalsByName[signal].description;
1768
1844
 
1769
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/kill.js
1845
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/kill.js
1770
1846
  var normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
1771
1847
  if (forceKillAfterDelay === false) {
1772
1848
  return forceKillAfterDelay;
@@ -1833,7 +1909,7 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
1833
1909
  }
1834
1910
  };
1835
1911
 
1836
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/abort-signal.js
1912
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/abort-signal.js
1837
1913
  import { once } from "node:events";
1838
1914
  var onAbortedSignal = async (mainSignal, stopSignal) => {
1839
1915
  if (!mainSignal.aborted) {
@@ -1841,7 +1917,7 @@ var onAbortedSignal = async (mainSignal, stopSignal) => {
1841
1917
  }
1842
1918
  };
1843
1919
 
1844
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/cancel.js
1920
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cancel.js
1845
1921
  var validateCancelSignal = ({ cancelSignal }) => {
1846
1922
  if (cancelSignal !== void 0 && Object.prototype.toString.call(cancelSignal) !== "[object AbortSignal]") {
1847
1923
  throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(cancelSignal)}`);
@@ -1855,13 +1931,13 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
1855
1931
  throw cancelSignal.reason;
1856
1932
  };
1857
1933
 
1858
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/graceful.js
1934
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/graceful.js
1859
1935
  import { scheduler as scheduler2 } from "node:timers/promises";
1860
1936
 
1861
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/send.js
1937
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/send.js
1862
1938
  import { promisify } from "node:util";
1863
1939
 
1864
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/validation.js
1940
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/validation.js
1865
1941
  var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
1866
1942
  validateIpcOption(methodName, isSubprocess, ipc);
1867
1943
  validateConnection(methodName, isSubprocess, isConnected2);
@@ -1933,7 +2009,7 @@ var disconnect = (anyProcess) => {
1933
2009
  }
1934
2010
  };
1935
2011
 
1936
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/deferred.js
2012
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/deferred.js
1937
2013
  var createDeferred = () => {
1938
2014
  const methods = {};
1939
2015
  const promise = new Promise((resolve3, reject) => {
@@ -1942,7 +2018,7 @@ var createDeferred = () => {
1942
2018
  return Object.assign(promise, methods);
1943
2019
  };
1944
2020
 
1945
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/fd-options.js
2021
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/fd-options.js
1946
2022
  var getToStream = (destination, to = "stdin") => {
1947
2023
  const isWritable = true;
1948
2024
  const { options, fileDescriptors } = SUBPROCESS_OPTIONS.get(destination);
@@ -2022,10 +2098,10 @@ var serializeOptionValue = (value) => {
2022
2098
  return typeof value === "number" ? `${value}` : "Stream";
2023
2099
  };
2024
2100
 
2025
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/strict.js
2101
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/strict.js
2026
2102
  import { once as once3 } from "node:events";
2027
2103
 
2028
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/max-listeners.js
2104
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/max-listeners.js
2029
2105
  import { addAbortListener } from "node:events";
2030
2106
  var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
2031
2107
  const maxListeners = eventEmitter.getMaxListeners();
@@ -2038,14 +2114,14 @@ var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
2038
2114
  });
2039
2115
  };
2040
2116
 
2041
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/forward.js
2117
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/forward.js
2042
2118
  import { EventEmitter } from "node:events";
2043
2119
 
2044
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/incoming.js
2120
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/incoming.js
2045
2121
  import { once as once2 } from "node:events";
2046
2122
  import { scheduler } from "node:timers/promises";
2047
2123
 
2048
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/reference.js
2124
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/reference.js
2049
2125
  var addReference = (channel, reference) => {
2050
2126
  if (reference) {
2051
2127
  addReferenceCount(channel);
@@ -2075,7 +2151,7 @@ var redoAddedReferences = (channel, isSubprocess) => {
2075
2151
  }
2076
2152
  };
2077
2153
 
2078
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/incoming.js
2154
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/incoming.js
2079
2155
  var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
2080
2156
  if (handleStrictResponse(wrappedMessage) || handleAbort(wrappedMessage)) {
2081
2157
  return;
@@ -2116,7 +2192,7 @@ var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bound
2116
2192
  };
2117
2193
  var INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2118
2194
 
2119
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/forward.js
2195
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/forward.js
2120
2196
  var getIpcEmitter = (anyProcess, channel, isSubprocess) => {
2121
2197
  if (IPC_EMITTERS.has(anyProcess)) {
2122
2198
  return IPC_EMITTERS.get(anyProcess);
@@ -2155,7 +2231,7 @@ var isConnected = (anyProcess) => {
2155
2231
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2156
2232
  };
2157
2233
 
2158
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/strict.js
2234
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/strict.js
2159
2235
  var handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
2160
2236
  if (!strict) {
2161
2237
  return message;
@@ -2238,7 +2314,7 @@ var throwOnDisconnect = async (anyProcess, isSubprocess, { signal }) => {
2238
2314
  var REQUEST_TYPE = "execa:ipc:request";
2239
2315
  var RESPONSE_TYPE = "execa:ipc:response";
2240
2316
 
2241
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/outgoing.js
2317
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/outgoing.js
2242
2318
  var startSendMessage = (anyProcess, wrappedMessage, strict) => {
2243
2319
  if (!OUTGOING_MESSAGES.has(anyProcess)) {
2244
2320
  OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
@@ -2263,9 +2339,9 @@ var waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =>
2263
2339
  };
2264
2340
  var OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2265
2341
  var hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2266
- var getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !SUBPROCESS_OPTIONS.get(anyProcess).options.buffer.at(-1) ? 1 : 0;
2342
+ var getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2267
2343
 
2268
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/send.js
2344
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/send.js
2269
2345
  var sendMessage = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
2270
2346
  const methodName = "sendMessage";
2271
2347
  validateIpcMethod({
@@ -2335,7 +2411,7 @@ var getSendMethod = (anyProcess) => {
2335
2411
  };
2336
2412
  var PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2337
2413
 
2338
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/graceful.js
2414
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/graceful.js
2339
2415
  var sendAbort = (subprocess, message) => {
2340
2416
  const methodName = "cancelSignal";
2341
2417
  validateConnection(methodName, false, subprocess.connected);
@@ -2386,7 +2462,7 @@ var abortOnDisconnect = () => {
2386
2462
  };
2387
2463
  var cancelController = new AbortController();
2388
2464
 
2389
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/graceful.js
2465
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/graceful.js
2390
2466
  var validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
2391
2467
  if (!gracefulCancel) {
2392
2468
  return;
@@ -2442,7 +2518,7 @@ var getReason = ({ reason }) => {
2442
2518
  return error;
2443
2519
  };
2444
2520
 
2445
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/timeout.js
2521
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/timeout.js
2446
2522
  import { setTimeout as setTimeout2 } from "node:timers/promises";
2447
2523
  var validateTimeout = ({ timeout }) => {
2448
2524
  if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
@@ -2457,7 +2533,7 @@ var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2457
2533
  throw new DiscardedError();
2458
2534
  };
2459
2535
 
2460
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/node.js
2536
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/node.js
2461
2537
  import { execPath, execArgv } from "node:process";
2462
2538
  import { basename, resolve } from "node:path";
2463
2539
  var mapNode = ({ options }) => {
@@ -2498,7 +2574,7 @@ var handleNodeOption = (file, commandArguments, {
2498
2574
  ];
2499
2575
  };
2500
2576
 
2501
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/ipc-input.js
2577
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/ipc-input.js
2502
2578
  import { serialize } from "node:v8";
2503
2579
  var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
2504
2580
  if (ipcInput === void 0) {
@@ -2534,7 +2610,7 @@ var sendIpcInput = async (subprocess, ipcInput) => {
2534
2610
  await subprocess.sendMessage(ipcInput);
2535
2611
  };
2536
2612
 
2537
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/encoding-option.js
2613
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/encoding-option.js
2538
2614
  var validateEncoding = ({ encoding }) => {
2539
2615
  if (ENCODINGS.has(encoding)) {
2540
2616
  return;
@@ -2576,7 +2652,7 @@ var ENCODING_ALIASES = {
2576
2652
  };
2577
2653
  var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
2578
2654
 
2579
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/cwd.js
2655
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/cwd.js
2580
2656
  import { statSync } from "node:fs";
2581
2657
  import { resolve as resolve2 } from "node:path";
2582
2658
  import process5 from "node:process";
@@ -2612,7 +2688,7 @@ ${originalMessage}`;
2612
2688
  return originalMessage;
2613
2689
  };
2614
2690
 
2615
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/options.js
2691
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/options.js
2616
2692
  var normalizeOptions = (filePath, rawArguments, rawOptions) => {
2617
2693
  rawOptions.cwd = normalizeCwd(rawOptions.cwd);
2618
2694
  const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
@@ -2683,7 +2759,7 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
2683
2759
  return env;
2684
2760
  };
2685
2761
 
2686
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/message.js
2762
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/message.js
2687
2763
  import { inspect as inspect2 } from "node:util";
2688
2764
 
2689
2765
  // ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
@@ -3073,7 +3149,7 @@ var stringMethods = {
3073
3149
  // ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
3074
3150
  Object.assign(nodeImports, { on, finished });
3075
3151
 
3076
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/max-buffer.js
3152
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/max-buffer.js
3077
3153
  var handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
3078
3154
  if (!(error instanceof MaxBufferError)) {
3079
3155
  throw error;
@@ -3116,10 +3192,11 @@ var getMaxBufferInfo = (error, maxBuffer) => {
3116
3192
  }
3117
3193
  const { maxBufferInfo: { fdNumber, unit } } = error;
3118
3194
  delete error.maxBufferInfo;
3195
+ const threshold = getFdSpecificValue(maxBuffer, fdNumber);
3119
3196
  if (fdNumber === "ipc") {
3120
- return { streamName: "IPC output", threshold: maxBuffer.at(-1), unit: "messages" };
3197
+ return { streamName: "IPC output", threshold, unit: "messages" };
3121
3198
  }
3122
- return { streamName: getStreamName(fdNumber), threshold: maxBuffer[fdNumber], unit };
3199
+ return { streamName: getStreamName(fdNumber), threshold, unit };
3123
3200
  };
3124
3201
  var isMaxBufferSync = (resultError, output, maxBuffer) => resultError?.code === "ENOBUFS" && output !== null && output.some((result) => result !== null && result.length > getMaxBufferSync(maxBuffer));
3125
3202
  var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
@@ -3131,7 +3208,7 @@ var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
3131
3208
  };
3132
3209
  var getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
3133
3210
 
3134
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/message.js
3211
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/message.js
3135
3212
  var createMessages = ({
3136
3213
  stdio,
3137
3214
  all,
@@ -3249,7 +3326,7 @@ var serializeMessageItem = (messageItem) => {
3249
3326
  return "";
3250
3327
  };
3251
3328
 
3252
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js
3329
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/result.js
3253
3330
  var makeSuccessResult = ({
3254
3331
  command,
3255
3332
  escapedCommand,
@@ -3548,72 +3625,49 @@ function prettyMilliseconds(milliseconds, options) {
3548
3625
  return result.join(separator);
3549
3626
  }
3550
3627
 
3551
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/error.js
3552
- var logError = ({ message, failed, reject, verboseId, icon }) => {
3553
- if (!failed) {
3554
- return;
3628
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/error.js
3629
+ var logError = (result, verboseInfo) => {
3630
+ if (result.failed) {
3631
+ verboseLog({
3632
+ type: "error",
3633
+ verboseMessage: result.shortMessage,
3634
+ verboseInfo,
3635
+ result
3636
+ });
3555
3637
  }
3556
- const color = reject ? redBright : yellowBright;
3557
- verboseLog(message, verboseId, icon, color);
3558
3638
  };
3559
3639
 
3560
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/complete.js
3561
- var logFinalResult = ({ shortMessage, failed, durationMs }, reject, verboseInfo) => {
3562
- logResult({
3563
- message: shortMessage,
3564
- failed,
3565
- reject,
3566
- durationMs,
3567
- verboseInfo
3568
- });
3569
- };
3570
- var logEarlyResult = (error, startTime, verboseInfo) => {
3571
- logResult({
3572
- message: escapeLines(String(error)),
3573
- failed: true,
3574
- reject: true,
3575
- durationMs: getDurationMs(startTime),
3576
- verboseInfo
3577
- });
3578
- };
3579
- var logResult = ({ message, failed, reject, durationMs, verboseInfo: { verbose, verboseId } }) => {
3580
- if (!isVerbose(verbose)) {
3640
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/complete.js
3641
+ var logResult = (result, verboseInfo) => {
3642
+ if (!isVerbose(verboseInfo)) {
3581
3643
  return;
3582
3644
  }
3583
- const icon = getIcon(failed, reject);
3584
- logError({
3585
- message,
3586
- failed,
3587
- reject,
3588
- verboseId,
3589
- icon
3590
- });
3591
- logDuration(durationMs, verboseId, icon);
3592
- };
3593
- var logDuration = (durationMs, verboseId, icon) => {
3594
- const durationMessage = `(done in ${prettyMilliseconds(durationMs)})`;
3595
- verboseLog(durationMessage, verboseId, icon, gray);
3645
+ logError(result, verboseInfo);
3646
+ logDuration(result, verboseInfo);
3596
3647
  };
3597
- var getIcon = (failed, reject) => {
3598
- if (!failed) {
3599
- return "success";
3600
- }
3601
- return reject ? "error" : "warning";
3648
+ var logDuration = (result, verboseInfo) => {
3649
+ const verboseMessage = `(done in ${prettyMilliseconds(result.durationMs)})`;
3650
+ verboseLog({
3651
+ type: "duration",
3652
+ verboseMessage,
3653
+ verboseInfo,
3654
+ result
3655
+ });
3602
3656
  };
3603
3657
 
3604
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/reject.js
3658
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/reject.js
3605
3659
  var handleResult = (result, verboseInfo, { reject }) => {
3606
- logFinalResult(result, reject, verboseInfo);
3660
+ logResult(result, verboseInfo);
3607
3661
  if (result.failed && reject) {
3608
3662
  throw result;
3609
3663
  }
3610
3664
  return result;
3611
3665
  };
3612
3666
 
3613
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/handle-sync.js
3667
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-sync.js
3614
3668
  import { readFileSync as readFileSync2 } from "node:fs";
3615
3669
 
3616
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/type.js
3670
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/type.js
3617
3671
  var getStdioItemType = (value, optionName) => {
3618
3672
  if (isAsyncGenerator(value)) {
3619
3673
  return "asyncGenerator";
@@ -3738,7 +3792,7 @@ var TYPE_TO_MESSAGE = {
3738
3792
  uint8Array: "a Uint8Array"
3739
3793
  };
3740
3794
 
3741
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/object-mode.js
3795
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/object-mode.js
3742
3796
  var getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
3743
3797
  var getOutputObjectModes = (objectMode, index, newTransforms) => {
3744
3798
  const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
@@ -3758,7 +3812,7 @@ var getFdObjectMode = (stdioItems, direction) => {
3758
3812
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
3759
3813
  };
3760
3814
 
3761
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/normalize.js
3815
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/normalize.js
3762
3816
  var normalizeTransforms = (stdioItems, optionName, direction, options) => [
3763
3817
  ...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)),
3764
3818
  ...getTransforms(stdioItems, optionName, direction, options)
@@ -3852,7 +3906,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
3852
3906
  };
3853
3907
  var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
3854
3908
 
3855
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/direction.js
3909
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/direction.js
3856
3910
  import process7 from "node:process";
3857
3911
  var getStreamDirection = (stdioItems, fdNumber, optionName) => {
3858
3912
  const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
@@ -3902,13 +3956,13 @@ var getStandardStreamDirection = (value) => {
3902
3956
  };
3903
3957
  var DEFAULT_DIRECTION = "output";
3904
3958
 
3905
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/array.js
3959
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/array.js
3906
3960
  var normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
3907
3961
 
3908
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/stdio-option.js
3909
- var normalizeStdioOption = ({ stdio, ipc, buffer, verbose, ...options }, isSync) => {
3962
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/stdio-option.js
3963
+ var normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
3910
3964
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue2(stdioOption, fdNumber));
3911
- return isSync ? normalizeStdioSync(stdioArray, buffer, verbose) : normalizeIpcStdioArray(stdioArray, ipc);
3965
+ return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
3912
3966
  };
3913
3967
  var getStdioArray = (stdio, options) => {
3914
3968
  if (stdio === void 0) {
@@ -3936,10 +3990,10 @@ var addDefaultValue2 = (stdioOption, fdNumber) => {
3936
3990
  }
3937
3991
  return stdioOption;
3938
3992
  };
3939
- var normalizeStdioSync = (stdioArray, buffer, verbose) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && verbose[fdNumber] !== "full" && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3993
+ var normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3940
3994
  var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
3941
3995
 
3942
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/native.js
3996
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/native.js
3943
3997
  import { readFileSync } from "node:fs";
3944
3998
  import tty2 from "node:tty";
3945
3999
  var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
@@ -4008,7 +4062,7 @@ var getStandardStream = (fdNumber, value, optionName) => {
4008
4062
  return standardStream;
4009
4063
  };
4010
4064
 
4011
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/input-option.js
4065
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/input-option.js
4012
4066
  var handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [
4013
4067
  ...handleInputOption(input),
4014
4068
  ...handleInputFileOption(inputFile)
@@ -4044,7 +4098,7 @@ var getInputFileType = (inputFile) => {
4044
4098
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
4045
4099
  };
4046
4100
 
4047
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/duplicate.js
4101
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/duplicate.js
4048
4102
  var filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
4049
4103
  var getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync }) => {
4050
4104
  const otherStdioItems = getOtherStdioItems(fileDescriptors, type);
@@ -4119,9 +4173,9 @@ var throwOnDuplicateStream = (stdioItem, optionName, type) => {
4119
4173
  }
4120
4174
  };
4121
4175
 
4122
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/handle.js
4176
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle.js
4123
4177
  var handleStdio = (addProperties3, options, verboseInfo, isSync) => {
4124
- const stdio = normalizeStdioOption(options, isSync);
4178
+ const stdio = normalizeStdioOption(options, verboseInfo, isSync);
4125
4179
  const initialFileDescriptors = stdio.map((stdioOption, fdNumber) => getFileDescriptor({
4126
4180
  stdioOption,
4127
4181
  fdNumber,
@@ -4279,7 +4333,7 @@ var forwardStdio = (stdioItems) => {
4279
4333
  return type === "native" ? value : "pipe";
4280
4334
  };
4281
4335
 
4282
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/handle-sync.js
4336
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-sync.js
4283
4337
  var handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
4284
4338
  var forbiddenIfSync = ({ type, optionName }) => {
4285
4339
  throwInvalidSyncValue(optionName, TYPE_TO_MESSAGE[type]);
@@ -4325,14 +4379,14 @@ var addPropertiesSync = {
4325
4379
  }
4326
4380
  };
4327
4381
 
4328
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/strip-newline.js
4382
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/strip-newline.js
4329
4383
  var stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber) => getStripFinalNewline(stripFinalNewline2, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
4330
4384
  var getStripFinalNewline = (stripFinalNewline2, fdNumber) => fdNumber === "all" ? stripFinalNewline2[1] || stripFinalNewline2[2] : stripFinalNewline2[fdNumber];
4331
4385
 
4332
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/generator.js
4386
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/generator.js
4333
4387
  import { Transform, getDefaultHighWaterMark } from "node:stream";
4334
4388
 
4335
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/split.js
4389
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/split.js
4336
4390
  var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
4337
4391
  var splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
4338
4392
  var splitLinesItemSync = (chunk, preserveNewlines) => {
@@ -4412,7 +4466,7 @@ var linesUint8ArrayInfo = {
4412
4466
  concatBytes: concatUint8Array
4413
4467
  };
4414
4468
 
4415
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/validate.js
4469
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/validate.js
4416
4470
  import { Buffer as Buffer2 } from "node:buffer";
4417
4471
  var getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
4418
4472
  var validateStringTransformInput = function* (optionName, chunk) {
@@ -4441,7 +4495,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
4441
4495
  }
4442
4496
  };
4443
4497
 
4444
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/encoding-transform.js
4498
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/encoding-transform.js
4445
4499
  import { Buffer as Buffer3 } from "node:buffer";
4446
4500
  import { StringDecoder as StringDecoder2 } from "node:string_decoder";
4447
4501
  var getEncodingTransformGenerator = (binary, encoding, skipped) => {
@@ -4476,7 +4530,7 @@ var encodingStringFinal = function* (stringDecoder) {
4476
4530
  }
4477
4531
  };
4478
4532
 
4479
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/run-async.js
4533
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-async.js
4480
4534
  import { callbackify } from "node:util";
4481
4535
  var pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
4482
4536
  state.currentIterable = getChunks(...getChunksArguments);
@@ -4524,7 +4578,7 @@ var identityGenerator = function* (chunk) {
4524
4578
  yield chunk;
4525
4579
  };
4526
4580
 
4527
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/run-sync.js
4581
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-sync.js
4528
4582
  var pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
4529
4583
  try {
4530
4584
  for (const chunk of getChunksSync(...getChunksArguments)) {
@@ -4566,7 +4620,7 @@ var identityGenerator2 = function* (chunk) {
4566
4620
  yield chunk;
4567
4621
  };
4568
4622
 
4569
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/transform/generator.js
4623
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/generator.js
4570
4624
  var generatorToStream = ({
4571
4625
  value,
4572
4626
  value: { transform, final, writableObjectMode, readableObjectMode },
@@ -4620,7 +4674,7 @@ var addInternalGenerators = ({ transform, final, binary, writableObjectMode, rea
4620
4674
  ].filter(Boolean);
4621
4675
  };
4622
4676
 
4623
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/input-sync.js
4677
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/input-sync.js
4624
4678
  var addInputOptionsSync = (fileDescriptors, options) => {
4625
4679
  for (const fdNumber of getInputFdNumbers(fileDescriptors)) {
4626
4680
  addInputOptionSync(fileDescriptors, fdNumber, options);
@@ -4653,31 +4707,37 @@ var validateSerializable = (newContents) => {
4653
4707
  }
4654
4708
  };
4655
4709
 
4656
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/output-sync.js
4710
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-sync.js
4657
4711
  import { writeFileSync as writeFileSync2, appendFileSync } from "node:fs";
4658
4712
 
4659
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/output.js
4660
- var shouldLogOutput = ({ stdioItems, encoding, verboseInfo: { verbose }, fdNumber }) => fdNumber !== "all" && verbose[fdNumber] === "full" && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
4713
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/output.js
4714
+ var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
4661
4715
  var fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
4662
4716
  var PIPED_STDIO_VALUES = /* @__PURE__ */ new Set(["pipe", "overlapped"]);
4663
- var logLines = async (linesIterable, stream, verboseInfo) => {
4717
+ var logLines = async (linesIterable, stream, fdNumber, verboseInfo) => {
4664
4718
  for await (const line of linesIterable) {
4665
4719
  if (!isPipingStream(stream)) {
4666
- logLine(line, verboseInfo);
4720
+ logLine(line, fdNumber, verboseInfo);
4667
4721
  }
4668
4722
  }
4669
4723
  };
4670
- var logLinesSync = (linesArray, verboseInfo) => {
4724
+ var logLinesSync = (linesArray, fdNumber, verboseInfo) => {
4671
4725
  for (const line of linesArray) {
4672
- logLine(line, verboseInfo);
4726
+ logLine(line, fdNumber, verboseInfo);
4673
4727
  }
4674
4728
  };
4675
4729
  var isPipingStream = (stream) => stream._readableState.pipes.length > 0;
4676
- var logLine = (line, { verboseId }) => {
4677
- verboseLog(serializeLogMessage(line), verboseId, "output");
4730
+ var logLine = (line, fdNumber, verboseInfo) => {
4731
+ const verboseMessage = serializeVerboseMessage(line);
4732
+ verboseLog({
4733
+ type: "output",
4734
+ verboseMessage,
4735
+ fdNumber,
4736
+ verboseInfo
4737
+ });
4678
4738
  };
4679
4739
 
4680
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/output-sync.js
4740
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-sync.js
4681
4741
  var transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
4682
4742
  if (output === null) {
4683
4743
  return { output: Array.from({ length: 3 }) };
@@ -4711,15 +4771,15 @@ var transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, out
4711
4771
  stripFinalNewline: stripFinalNewline2,
4712
4772
  fdNumber
4713
4773
  });
4714
- if (shouldLogOutput({
4715
- stdioItems,
4716
- encoding,
4774
+ logOutputSync({
4775
+ serializedResult,
4776
+ fdNumber,
4777
+ state,
4717
4778
  verboseInfo,
4718
- fdNumber
4719
- })) {
4720
- const linesArray = splitLinesSync(serializedResult, false, objectMode);
4721
- logLinesSync(linesArray, verboseInfo);
4722
- }
4779
+ encoding,
4780
+ stdioItems,
4781
+ objectMode
4782
+ });
4723
4783
  const returnedResult = buffer[fdNumber] ? finalResult : void 0;
4724
4784
  try {
4725
4785
  if (state.error === void 0) {
@@ -4752,6 +4812,22 @@ var serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline:
4752
4812
  }
4753
4813
  return { serializedResult };
4754
4814
  };
4815
+ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding, stdioItems, objectMode }) => {
4816
+ if (!shouldLogOutput({
4817
+ stdioItems,
4818
+ encoding,
4819
+ verboseInfo,
4820
+ fdNumber
4821
+ })) {
4822
+ return;
4823
+ }
4824
+ const linesArray = splitLinesSync(serializedResult, false, objectMode);
4825
+ try {
4826
+ logLinesSync(linesArray, fdNumber, verboseInfo);
4827
+ } catch (error) {
4828
+ state.error ??= error;
4829
+ }
4830
+ };
4755
4831
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4756
4832
  for (const { path: path2 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4757
4833
  const pathString = typeof path2 === "string" ? path2 : path2.toString();
@@ -4764,7 +4840,7 @@ var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4764
4840
  }
4765
4841
  };
4766
4842
 
4767
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/all-sync.js
4843
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-sync.js
4768
4844
  var getAllSync = ([, stdout, stderr], options) => {
4769
4845
  if (!options.all) {
4770
4846
  return;
@@ -4787,7 +4863,7 @@ var getAllSync = ([, stdout, stderr], options) => {
4787
4863
  return `${stdout}${stderr}`;
4788
4864
  };
4789
4865
 
4790
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/exit-async.js
4866
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-async.js
4791
4867
  import { once as once4 } from "node:events";
4792
4868
  var waitForExit = async (subprocess, context) => {
4793
4869
  const [exitCode, signal] = await waitForExitOrError(subprocess);
@@ -4821,7 +4897,7 @@ var waitForSuccessfulExit = async (exitPromise) => {
4821
4897
  var isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
4822
4898
  var isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
4823
4899
 
4824
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/exit-sync.js
4900
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-sync.js
4825
4901
  var getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
4826
4902
  const resultError = getResultError(error, exitCode, signal);
4827
4903
  const timedOut = resultError?.code === "ETIMEDOUT";
@@ -4841,7 +4917,7 @@ var getResultError = (error, exitCode, signal) => {
4841
4917
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
4842
4918
  };
4843
4919
 
4844
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-sync.js
4920
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-sync.js
4845
4921
  var execaCoreSync = (rawFile, rawArguments, rawOptions) => {
4846
4922
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleSyncArguments(rawFile, rawArguments, rawOptions);
4847
4923
  const result = spawnSubprocessSync({
@@ -4858,25 +4934,20 @@ var execaCoreSync = (rawFile, rawArguments, rawOptions) => {
4858
4934
  };
4859
4935
  var handleSyncArguments = (rawFile, rawArguments, rawOptions) => {
4860
4936
  const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
4861
- try {
4862
- const syncOptions = normalizeSyncOptions(rawOptions);
4863
- const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, syncOptions);
4864
- validateSyncOptions(options);
4865
- const fileDescriptors = handleStdioSync(options, verboseInfo);
4866
- return {
4867
- file,
4868
- commandArguments,
4869
- command,
4870
- escapedCommand,
4871
- startTime,
4872
- verboseInfo,
4873
- options,
4874
- fileDescriptors
4875
- };
4876
- } catch (error) {
4877
- logEarlyResult(error, startTime, verboseInfo);
4878
- throw error;
4879
- }
4937
+ const syncOptions = normalizeSyncOptions(rawOptions);
4938
+ const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, syncOptions);
4939
+ validateSyncOptions(options);
4940
+ const fileDescriptors = handleStdioSync(options, verboseInfo);
4941
+ return {
4942
+ file,
4943
+ commandArguments,
4944
+ command,
4945
+ escapedCommand,
4946
+ startTime,
4947
+ verboseInfo,
4948
+ options,
4949
+ fileDescriptors
4950
+ };
4880
4951
  };
4881
4952
  var normalizeSyncOptions = (options) => options.node && !options.ipc ? { ...options, ipc: false } : options;
4882
4953
  var validateSyncOptions = ({ ipc, ipcInput, detached, cancelSignal }) => {
@@ -4978,14 +5049,14 @@ var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, al
4978
5049
  isSync: true
4979
5050
  });
4980
5051
 
4981
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js
5052
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-async.js
4982
5053
  import { setMaxListeners } from "node:events";
4983
5054
  import { spawn } from "node:child_process";
4984
5055
 
4985
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/methods.js
5056
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/methods.js
4986
5057
  import process8 from "node:process";
4987
5058
 
4988
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/get-one.js
5059
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-one.js
4989
5060
  import { once as once5, on as on2 } from "node:events";
4990
5061
  var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
4991
5062
  validateIpcMethod({
@@ -5040,7 +5111,7 @@ var throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
5040
5111
  throw getStrictResponseError(error, isSubprocess);
5041
5112
  };
5042
5113
 
5043
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/get-each.js
5114
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-each.js
5044
5115
  import { once as once6, on as on3 } from "node:events";
5045
5116
  var getEachMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
5046
5117
  anyProcess,
@@ -5119,7 +5190,7 @@ var throwIfStrictError = ({ error }) => {
5119
5190
  }
5120
5191
  };
5121
5192
 
5122
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/methods.js
5193
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/methods.js
5123
5194
  var addIpcMethods = (subprocess, { ipc }) => {
5124
5195
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
5125
5196
  };
@@ -5158,7 +5229,7 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
5158
5229
  })
5159
5230
  });
5160
5231
 
5161
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/early-error.js
5232
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/early-error.js
5162
5233
  import { ChildProcess as ChildProcess2 } from "node:child_process";
5163
5234
  import {
5164
5235
  PassThrough,
@@ -5212,7 +5283,7 @@ var duplex = () => new Duplex({ read() {
5212
5283
  } });
5213
5284
  var handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
5214
5285
 
5215
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/stdio/handle-async.js
5286
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-async.js
5216
5287
  import { createReadStream, createWriteStream } from "node:fs";
5217
5288
  import { Buffer as Buffer4 } from "node:buffer";
5218
5289
  import { Readable as Readable2, Writable as Writable2, Duplex as Duplex2 } from "node:stream";
@@ -5474,7 +5545,7 @@ var updateMaxListeners = (passThroughStream, increment2) => {
5474
5545
  var PASSTHROUGH_LISTENERS_COUNT = 2;
5475
5546
  var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
5476
5547
 
5477
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/pipeline.js
5548
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/pipeline.js
5478
5549
  import { finished as finished3 } from "node:stream/promises";
5479
5550
  var pipeStreams = (source, destination) => {
5480
5551
  source.pipe(destination);
@@ -5512,7 +5583,7 @@ var abortSourceStream = (source) => {
5512
5583
  }
5513
5584
  };
5514
5585
 
5515
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/output-async.js
5586
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-async.js
5516
5587
  var pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
5517
5588
  const pipeGroups = /* @__PURE__ */ new Map();
5518
5589
  for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
@@ -5564,7 +5635,7 @@ var setStandardStreamMaxListeners = (stream, { signal }) => {
5564
5635
  };
5565
5636
  var MAX_LISTENERS_INCREMENT = 2;
5566
5637
 
5567
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/cleanup.js
5638
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cleanup.js
5568
5639
  import { addAbortListener as addAbortListener2 } from "node:events";
5569
5640
 
5570
5641
  // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
@@ -5818,7 +5889,7 @@ var {
5818
5889
  unload
5819
5890
  } = signalExitWrap(processOk(process9) ? new SignalExit(process9) : new SignalExitFallback());
5820
5891
 
5821
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/terminate/cleanup.js
5892
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cleanup.js
5822
5893
  var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5823
5894
  if (!cleanup || detached) {
5824
5895
  return;
@@ -5831,7 +5902,7 @@ var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5831
5902
  });
5832
5903
  };
5833
5904
 
5834
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/pipe-arguments.js
5905
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/pipe-arguments.js
5835
5906
  var normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
5836
5907
  const startTime = getStartTime();
5837
5908
  const {
@@ -5904,7 +5975,7 @@ var getSourceStream = (source, from) => {
5904
5975
  }
5905
5976
  };
5906
5977
 
5907
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/throw.js
5978
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/throw.js
5908
5979
  var handlePipeArgumentsError = ({
5909
5980
  sourceStream,
5910
5981
  sourceError,
@@ -5953,7 +6024,7 @@ var createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTime
5953
6024
  });
5954
6025
  var PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
5955
6026
 
5956
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/sequence.js
6027
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/sequence.js
5957
6028
  var waitForBothSubprocesses = async (subprocessPromises) => {
5958
6029
  const [
5959
6030
  { status: sourceStatus, reason: sourceReason, value: sourceResult = sourceReason },
@@ -5971,7 +6042,7 @@ var waitForBothSubprocesses = async (subprocessPromises) => {
5971
6042
  return destinationResult;
5972
6043
  };
5973
6044
 
5974
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/streaming.js
6045
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/streaming.js
5975
6046
  import { finished as finished4 } from "node:stream/promises";
5976
6047
  var pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
5977
6048
  const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
@@ -6002,7 +6073,7 @@ var MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
6002
6073
  var SOURCE_LISTENERS_PER_PIPE = 2;
6003
6074
  var DESTINATION_LISTENERS_PER_PIPE = 1;
6004
6075
 
6005
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/abort.js
6076
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/abort.js
6006
6077
  import { aborted } from "node:util";
6007
6078
  var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
6008
6079
  var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
@@ -6017,7 +6088,7 @@ var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fil
6017
6088
  });
6018
6089
  };
6019
6090
 
6020
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/pipe/setup.js
6091
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/setup.js
6021
6092
  var pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
6022
6093
  if (isPlainObject(pipeArguments[0])) {
6023
6094
  return pipeToSubprocess.bind(void 0, {
@@ -6076,10 +6147,10 @@ var handlePipePromise = async ({
6076
6147
  };
6077
6148
  var getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
6078
6149
 
6079
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/contents.js
6150
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/contents.js
6080
6151
  import { setImmediate } from "node:timers/promises";
6081
6152
 
6082
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/iterate.js
6153
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/iterate.js
6083
6154
  import { on as on5 } from "node:events";
6084
6155
  import { getDefaultHighWaterMark as getDefaultHighWaterMark3 } from "node:stream";
6085
6156
  var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
@@ -6172,26 +6243,19 @@ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewl
6172
6243
  getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})
6173
6244
  ].filter(Boolean);
6174
6245
 
6175
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/io/contents.js
6176
- var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo: { fileDescriptors } }) => {
6177
- if (shouldLogOutput({
6178
- stdioItems: fileDescriptors[fdNumber]?.stdioItems,
6246
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/contents.js
6247
+ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {
6248
+ const logPromise = logOutputAsync({
6249
+ stream,
6250
+ onStreamEnd,
6251
+ fdNumber,
6179
6252
  encoding,
6253
+ allMixed,
6180
6254
  verboseInfo,
6181
- fdNumber
6182
- })) {
6183
- const linesIterable = iterateForResult({
6184
- stream,
6185
- onStreamEnd,
6186
- lines: true,
6187
- encoding,
6188
- stripFinalNewline: true,
6189
- allMixed
6190
- });
6191
- logLines(linesIterable, stream, verboseInfo);
6192
- }
6255
+ streamInfo
6256
+ });
6193
6257
  if (!buffer) {
6194
- await resumeStream(stream);
6258
+ await Promise.all([resumeStream(stream), logPromise]);
6195
6259
  return;
6196
6260
  }
6197
6261
  const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline2, fdNumber);
@@ -6203,14 +6267,37 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,
6203
6267
  stripFinalNewline: stripFinalNewlineValue,
6204
6268
  allMixed
6205
6269
  });
6206
- return getStreamContents2({
6270
+ const [output] = await Promise.all([
6271
+ getStreamContents2({
6272
+ stream,
6273
+ iterable,
6274
+ fdNumber,
6275
+ encoding,
6276
+ maxBuffer,
6277
+ lines
6278
+ }),
6279
+ logPromise
6280
+ ]);
6281
+ return output;
6282
+ };
6283
+ var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {
6284
+ if (!shouldLogOutput({
6285
+ stdioItems: fileDescriptors[fdNumber]?.stdioItems,
6286
+ encoding,
6287
+ verboseInfo,
6288
+ fdNumber
6289
+ })) {
6290
+ return;
6291
+ }
6292
+ const linesIterable = iterateForResult({
6207
6293
  stream,
6208
- iterable,
6209
- fdNumber,
6294
+ onStreamEnd,
6295
+ lines: true,
6210
6296
  encoding,
6211
- maxBuffer,
6212
- lines
6297
+ stripFinalNewline: true,
6298
+ allMixed
6213
6299
  });
6300
+ await logLines(linesIterable, stream, fdNumber, verboseInfo);
6214
6301
  };
6215
6302
  var resumeStream = async (stream) => {
6216
6303
  await setImmediate();
@@ -6247,7 +6334,7 @@ var getBufferedData = async (streamPromise) => {
6247
6334
  };
6248
6335
  var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
6249
6336
 
6250
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/wait-stream.js
6337
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-stream.js
6251
6338
  import { finished as finished5 } from "node:stream/promises";
6252
6339
  var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
6253
6340
  const state = handleStdinDestroy(stream, streamInfo);
@@ -6300,7 +6387,7 @@ var isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all
6300
6387
  var isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
6301
6388
  var isStreamEpipe = (error) => error?.code === "EPIPE";
6302
6389
 
6303
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/stdio.js
6390
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/stdio.js
6304
6391
  var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
6305
6392
  stream,
6306
6393
  fdNumber,
@@ -6341,7 +6428,7 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBu
6341
6428
  return output;
6342
6429
  };
6343
6430
 
6344
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/all-async.js
6431
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-async.js
6345
6432
  var makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
6346
6433
  var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({
6347
6434
  ...getAllStream(subprocess, buffer),
@@ -6369,16 +6456,22 @@ var getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =>
6369
6456
  };
6370
6457
  var getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
6371
6458
 
6372
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/wait-subprocess.js
6459
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-subprocess.js
6373
6460
  import { once as once8 } from "node:events";
6374
6461
 
6375
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/verbose/ipc.js
6376
- var shouldLogIpc = ({ verbose }) => verbose.at(-1) === "full";
6377
- var logIpcOutput = (message, { verboseId }) => {
6378
- verboseLog(serializeLogMessage(message), verboseId, "ipc");
6462
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/ipc.js
6463
+ var shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
6464
+ var logIpcOutput = (message, verboseInfo) => {
6465
+ const verboseMessage = serializeVerboseMessage(message);
6466
+ verboseLog({
6467
+ type: "ipc",
6468
+ verboseMessage,
6469
+ fdNumber: "ipc",
6470
+ verboseInfo
6471
+ });
6379
6472
  };
6380
6473
 
6381
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/ipc/buffer-messages.js
6474
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/buffer-messages.js
6382
6475
  var waitForIpcOutput = async ({
6383
6476
  subprocess,
6384
6477
  buffer: bufferArray,
@@ -6391,8 +6484,8 @@ var waitForIpcOutput = async ({
6391
6484
  return ipcOutput;
6392
6485
  }
6393
6486
  const isVerbose2 = shouldLogIpc(verboseInfo);
6394
- const buffer = bufferArray.at(-1);
6395
- const maxBuffer = maxBufferArray.at(-1);
6487
+ const buffer = getFdSpecificValue(bufferArray, "ipc");
6488
+ const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
6396
6489
  for await (const message of loopOnMessages({
6397
6490
  anyProcess: subprocess,
6398
6491
  channel: subprocess.channel,
@@ -6416,7 +6509,7 @@ var getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
6416
6509
  return ipcOutput;
6417
6510
  };
6418
6511
 
6419
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/resolve/wait-subprocess.js
6512
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-subprocess.js
6420
6513
  var waitForSubprocessResult = async ({
6421
6514
  subprocess,
6422
6515
  options: {
@@ -6532,7 +6625,7 @@ var throwOnSubprocessError = async (subprocess, { signal }) => {
6532
6625
  throw error;
6533
6626
  };
6534
6627
 
6535
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/concurrent.js
6628
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/concurrent.js
6536
6629
  var initializeConcurrentStreams = () => ({
6537
6630
  readableDestroy: /* @__PURE__ */ new WeakMap(),
6538
6631
  writableFinal: /* @__PURE__ */ new WeakMap(),
@@ -6558,11 +6651,11 @@ var waitForConcurrentStreams = async ({ resolve: resolve3, promises }, subproces
6558
6651
  return !isSubprocessExit;
6559
6652
  };
6560
6653
 
6561
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/readable.js
6654
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/readable.js
6562
6655
  import { Readable as Readable3 } from "node:stream";
6563
6656
  import { callbackify as callbackify2 } from "node:util";
6564
6657
 
6565
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/shared.js
6658
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/shared.js
6566
6659
  import { finished as finished6 } from "node:stream/promises";
6567
6660
  var safeWaitForSubprocessStdin = async (subprocessStdin) => {
6568
6661
  if (subprocessStdin === void 0) {
@@ -6602,7 +6695,7 @@ var destroyOtherStream = (stream, isOpen, error) => {
6602
6695
  }
6603
6696
  };
6604
6697
 
6605
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/readable.js
6698
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/readable.js
6606
6699
  var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
6607
6700
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
6608
6701
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
@@ -6687,7 +6780,7 @@ var destroyOtherReadable = (stream, error) => {
6687
6780
  destroyOtherStream(stream, stream.readable, error);
6688
6781
  };
6689
6782
 
6690
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/writable.js
6783
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/writable.js
6691
6784
  import { Writable as Writable3 } from "node:stream";
6692
6785
  import { callbackify as callbackify3 } from "node:util";
6693
6786
  var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
@@ -6753,7 +6846,7 @@ var destroyOtherWritable = (stream, error) => {
6753
6846
  destroyOtherStream(stream, stream.writable, error);
6754
6847
  };
6755
6848
 
6756
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/duplex.js
6849
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/duplex.js
6757
6850
  import { Duplex as Duplex3 } from "node:stream";
6758
6851
  import { callbackify as callbackify4 } from "node:util";
6759
6852
  var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -6807,7 +6900,7 @@ var onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, wa
6807
6900
  ]);
6808
6901
  };
6809
6902
 
6810
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/iterable.js
6903
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/iterable.js
6811
6904
  var createIterable = (subprocess, encoding, {
6812
6905
  from,
6813
6906
  binary: binaryOption = false,
@@ -6836,7 +6929,7 @@ var iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, subpr
6836
6929
  }
6837
6930
  };
6838
6931
 
6839
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/convert/add.js
6932
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/add.js
6840
6933
  var addConvertedStreams = (subprocess, { encoding }) => {
6841
6934
  const concurrentStreams = initializeConcurrentStreams();
6842
6935
  subprocess.readable = createReadable.bind(void 0, { subprocess, concurrentStreams, encoding });
@@ -6846,7 +6939,7 @@ var addConvertedStreams = (subprocess, { encoding }) => {
6846
6939
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
6847
6940
  };
6848
6941
 
6849
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/promise.js
6942
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/promise.js
6850
6943
  var mergePromise = (subprocess, promise) => {
6851
6944
  for (const [property, descriptor] of descriptors) {
6852
6945
  const value = descriptor.value.bind(promise);
@@ -6860,7 +6953,7 @@ var descriptors = ["then", "catch", "finally"].map((property) => [
6860
6953
  Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
6861
6954
  ]);
6862
6955
 
6863
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js
6956
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-async.js
6864
6957
  var execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
6865
6958
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleAsyncArguments(rawFile, rawArguments, rawOptions);
6866
6959
  const { subprocess, promise } = spawnSubprocessAsync({
@@ -6885,24 +6978,19 @@ var execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
6885
6978
  };
6886
6979
  var handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
6887
6980
  const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
6888
- try {
6889
- const { file, commandArguments, options: normalizedOptions } = normalizeOptions(rawFile, rawArguments, rawOptions);
6890
- const options = handleAsyncOptions(normalizedOptions);
6891
- const fileDescriptors = handleStdioAsync(options, verboseInfo);
6892
- return {
6893
- file,
6894
- commandArguments,
6895
- command,
6896
- escapedCommand,
6897
- startTime,
6898
- verboseInfo,
6899
- options,
6900
- fileDescriptors
6901
- };
6902
- } catch (error) {
6903
- logEarlyResult(error, startTime, verboseInfo);
6904
- throw error;
6905
- }
6981
+ const { file, commandArguments, options: normalizedOptions } = normalizeOptions(rawFile, rawArguments, rawOptions);
6982
+ const options = handleAsyncOptions(normalizedOptions);
6983
+ const fileDescriptors = handleStdioAsync(options, verboseInfo);
6984
+ return {
6985
+ file,
6986
+ commandArguments,
6987
+ command,
6988
+ escapedCommand,
6989
+ startTime,
6990
+ verboseInfo,
6991
+ options,
6992
+ fileDescriptors
6993
+ };
6906
6994
  };
6907
6995
  var handleAsyncOptions = ({ timeout, signal, ...options }) => {
6908
6996
  if (signal !== void 0) {
@@ -7020,7 +7108,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, cont
7020
7108
  startTime
7021
7109
  });
7022
7110
 
7023
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/bind.js
7111
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/bind.js
7024
7112
  var mergeOptions = (boundOptions, options) => {
7025
7113
  const newOptions = Object.fromEntries(
7026
7114
  Object.entries(options).map(([optionName, optionValue]) => [
@@ -7038,7 +7126,7 @@ var mergeOption = (optionName, boundOptionValue, optionValue) => {
7038
7126
  };
7039
7127
  var DEEP_OPTIONS = /* @__PURE__ */ new Set(["env", ...FD_SPECIFIC_OPTIONS]);
7040
7128
 
7041
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/create.js
7129
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/create.js
7042
7130
  var createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
7043
7131
  const createNested = (mapArguments2, boundOptions2, setBoundExeca2) => createExeca(mapArguments2, boundOptions2, deepOptions, setBoundExeca2);
7044
7132
  const boundExeca = (...execaArguments) => callBoundExeca({
@@ -7084,7 +7172,7 @@ var parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions,
7084
7172
  };
7085
7173
  };
7086
7174
 
7087
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/command.js
7175
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/command.js
7088
7176
  var mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
7089
7177
  var mapCommandSync = ({ file, commandArguments }) => ({ ...parseCommand(file, commandArguments), isSync: true });
7090
7178
  var parseCommand = (command, unusedArguments) => {
@@ -7115,7 +7203,7 @@ var parseCommandString = (command) => {
7115
7203
  };
7116
7204
  var SPACES_REGEXP = / +/g;
7117
7205
 
7118
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/script.js
7206
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/script.js
7119
7207
  var setScriptSync = (boundExeca, createNested, boundOptions) => {
7120
7208
  boundExeca.sync = createNested(mapScriptSync, boundOptions);
7121
7209
  boundExeca.s = boundExeca.sync;
@@ -7126,7 +7214,7 @@ var getScriptOptions = (options) => ({ options: { ...getScriptStdinOption(option
7126
7214
  var getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
7127
7215
  var deepScriptOptions = { preferLocal: true };
7128
7216
 
7129
- // ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/index.js
7217
+ // ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/index.js
7130
7218
  var execa = createExeca(() => ({}));
7131
7219
  var execaSync = createExeca(() => ({ isSync: true }));
7132
7220
  var execaCommand = createExeca(mapCommandAsync);