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