@usecontextlayer/ctxb 0.5.27 → 0.5.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="97545e72-9df8-5413-be4f-f694afe486e0")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3d9a9038-da39-5c09-a71e-36219d48dd38")}catch(e){}}();
4
4
  import { createRequire } from "node:module";
5
5
  import * as Sentry from "@sentry/node";
6
6
  import { mkdir, writeFile } from "node:fs/promises";
@@ -8,11 +8,11 @@ import path, { sep } from "node:path";
8
8
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
9
9
  import childProcess, { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
10
10
  import fs, { appendFileSync, closeSync, createReadStream, createWriteStream, existsSync, openSync, readFileSync, readSync, statSync, writeFileSync } from "node:fs";
11
- import g$1, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
11
+ import process$1, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
12
12
  import { aborted, callbackify, debuglog, formatWithOptions, inspect, promisify, stripVTControlCharacters, styleText } from "node:util";
13
13
  import * as tty$1 from "node:tty";
14
14
  import tty from "node:tty";
15
- import f from "node:readline";
15
+ import l__default from "node:readline";
16
16
  import { createServer } from "node:http";
17
17
  import { fileURLToPath } from "node:url";
18
18
  import { StringDecoder } from "node:string_decoder";
@@ -20,8 +20,8 @@ import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 }
20
20
  import { constants } from "node:os";
21
21
  import { serialize } from "node:v8";
22
22
  import { Buffer as Buffer$1 } from "node:buffer";
23
- import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
24
23
  import { finished } from "node:stream/promises";
24
+ import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
25
25
  import path$1 from "node:path/win32";
26
26
  import fs$1 from "fs";
27
27
  import os from "os";
@@ -53,11 +53,11 @@ var __copyProps = (to, from, except, desc) => {
53
53
  }
54
54
  return to;
55
55
  };
56
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
56
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
57
57
  value: mod,
58
58
  enumerable: true
59
59
  }) : target, mod));
60
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
60
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
61
61
 
62
62
  //#endregion
63
63
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
@@ -136,7 +136,6 @@ function cached(getter) {
136
136
  Object.defineProperty(this, "value", { value });
137
137
  return value;
138
138
  }
139
- throw new Error("cached value already set");
140
139
  } };
141
140
  }
142
141
  function nullish(input) {
@@ -182,7 +181,10 @@ function assignProp(target, prop, value) {
182
181
  }
183
182
  function mergeDefs(...defs) {
184
183
  const mergedDescriptors = {};
185
- for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
184
+ for (const def of defs) {
185
+ const descriptors = Object.getOwnPropertyDescriptors(def);
186
+ Object.assign(mergedDescriptors, descriptors);
187
+ }
186
188
  return Object.defineProperties({}, mergedDescriptors);
187
189
  }
188
190
  function esc(str) {
@@ -506,7 +508,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
506
508
  }, ctx);
507
509
  if (result instanceof Promise) throw new $ZodAsyncError();
508
510
  if (result.issues.length) {
509
- const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
511
+ const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
510
512
  captureStackTrace(e, _params?.callee);
511
513
  throw e;
512
514
  }
@@ -523,7 +525,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
523
525
  }, ctx);
524
526
  if (result instanceof Promise) result = await result;
525
527
  if (result.issues.length) {
526
- const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
528
+ const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
527
529
  captureStackTrace(e, params?.callee);
528
530
  throw e;
529
531
  }
@@ -693,8 +695,10 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
693
695
  inst._zod.onattach.push((inst) => {
694
696
  const bag = inst._zod.bag;
695
697
  const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
696
- if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
697
- else bag.exclusiveMaximum = def.value;
698
+ if (def.value < curr) {
699
+ if (def.inclusive) bag.maximum = def.value;
700
+ else bag.exclusiveMaximum = def.value;
701
+ }
698
702
  });
699
703
  inst._zod.check = (payload) => {
700
704
  if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
@@ -715,8 +719,10 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
715
719
  inst._zod.onattach.push((inst) => {
716
720
  const bag = inst._zod.bag;
717
721
  const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
718
- if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
719
- else bag.exclusiveMinimum = def.value;
722
+ if (def.value > curr) {
723
+ if (def.inclusive) bag.minimum = def.value;
724
+ else bag.exclusiveMinimum = def.value;
725
+ }
720
726
  });
721
727
  inst._zod.check = (payload) => {
722
728
  if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
@@ -1490,7 +1496,7 @@ const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
1490
1496
  const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
1491
1497
  $ZodType.init(inst, def);
1492
1498
  inst._zod.pattern = _null$2;
1493
- inst._zod.values = new Set([null]);
1499
+ inst._zod.values = /* @__PURE__ */ new Set([null]);
1494
1500
  inst._zod.parse = (payload, _ctx) => {
1495
1501
  const input = payload.value;
1496
1502
  if (input === null) return payload;
@@ -2177,7 +2183,7 @@ const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
2177
2183
  inst._zod.optin = "optional";
2178
2184
  inst._zod.optout = "optional";
2179
2185
  defineLazy(inst._zod, "values", () => {
2180
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
2186
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
2181
2187
  });
2182
2188
  defineLazy(inst._zod, "pattern", () => {
2183
2189
  const pattern = def.innerType._zod.pattern;
@@ -2211,7 +2217,7 @@ const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
2211
2217
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
2212
2218
  });
2213
2219
  defineLazy(inst._zod, "values", () => {
2214
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
2220
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
2215
2221
  });
2216
2222
  inst._zod.parse = (payload, ctx) => {
2217
2223
  if (payload.value === null) return payload;
@@ -2967,7 +2973,7 @@ function initializeContext(params) {
2967
2973
  external: params?.external ?? void 0
2968
2974
  };
2969
2975
  }
2970
- function process$2(schema, ctx, _params = {
2976
+ function process$3(schema, ctx, _params = {
2971
2977
  path: [],
2972
2978
  schemaPath: []
2973
2979
  }) {
@@ -3004,7 +3010,7 @@ function process$2(schema, ctx, _params = {
3004
3010
  const parent = schema._zod.parent;
3005
3011
  if (parent) {
3006
3012
  if (!result.ref) result.ref = parent;
3007
- process$2(parent, ctx, params);
3013
+ process$3(parent, ctx, params);
3008
3014
  ctx.seen.get(parent).isParent = true;
3009
3015
  }
3010
3016
  }
@@ -3164,8 +3170,10 @@ function finalize(ctx, schema) {
3164
3170
  defs[seen.defId] = seen.def;
3165
3171
  }
3166
3172
  }
3167
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
3168
- else result.definitions = defs;
3173
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) {
3174
+ if (ctx.target === "draft-2020-12") result.$defs = defs;
3175
+ else result.definitions = defs;
3176
+ }
3169
3177
  try {
3170
3178
  const finalized = JSON.parse(JSON.stringify(result));
3171
3179
  Object.defineProperty(finalized, "~standard", {
@@ -3224,7 +3232,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
3224
3232
  ...params,
3225
3233
  processors
3226
3234
  });
3227
- process$2(schema, ctx);
3235
+ process$3(schema, ctx);
3228
3236
  extractDefs(ctx, schema);
3229
3237
  return finalize(ctx, schema);
3230
3238
  };
@@ -3236,7 +3244,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
3236
3244
  io,
3237
3245
  processors
3238
3246
  });
3239
- process$2(schema, ctx);
3247
+ process$3(schema, ctx);
3240
3248
  extractDefs(ctx, schema);
3241
3249
  return finalize(ctx, schema);
3242
3250
  };
@@ -3279,16 +3287,18 @@ const numberProcessor = (schema, ctx, _json, _params) => {
3279
3287
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
3280
3288
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
3281
3289
  const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
3282
- if (exMin) if (legacy) {
3283
- json.minimum = exclusiveMinimum;
3284
- json.exclusiveMinimum = true;
3285
- } else json.exclusiveMinimum = exclusiveMinimum;
3286
- else if (typeof minimum === "number") json.minimum = minimum;
3287
- if (exMax) if (legacy) {
3288
- json.maximum = exclusiveMaximum;
3289
- json.exclusiveMaximum = true;
3290
- } else json.exclusiveMaximum = exclusiveMaximum;
3291
- else if (typeof maximum === "number") json.maximum = maximum;
3290
+ if (exMin) {
3291
+ if (legacy) {
3292
+ json.minimum = exclusiveMinimum;
3293
+ json.exclusiveMinimum = true;
3294
+ } else json.exclusiveMinimum = exclusiveMinimum;
3295
+ } else if (typeof minimum === "number") json.minimum = minimum;
3296
+ if (exMax) {
3297
+ if (legacy) {
3298
+ json.maximum = exclusiveMaximum;
3299
+ json.exclusiveMaximum = true;
3300
+ } else json.exclusiveMaximum = exclusiveMaximum;
3301
+ } else if (typeof maximum === "number") json.maximum = maximum;
3292
3302
  if (typeof multipleOf === "number") json.multipleOf = multipleOf;
3293
3303
  };
3294
3304
  const booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -3317,9 +3327,10 @@ const literalProcessor = (schema, ctx, json, _params) => {
3317
3327
  const vals = [];
3318
3328
  for (const val of def.values) if (val === void 0) {
3319
3329
  if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
3320
- } else if (typeof val === "bigint") if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
3321
- else vals.push(Number(val));
3322
- else vals.push(val);
3330
+ } else if (typeof val === "bigint") {
3331
+ if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
3332
+ else vals.push(Number(val));
3333
+ } else vals.push(val);
3323
3334
  if (vals.length === 0) {} else if (vals.length === 1) {
3324
3335
  const val = vals[0];
3325
3336
  json.type = val === null ? "null" : typeof val;
@@ -3346,7 +3357,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
3346
3357
  if (typeof minimum === "number") json.minItems = minimum;
3347
3358
  if (typeof maximum === "number") json.maxItems = maximum;
3348
3359
  json.type = "array";
3349
- json.items = process$2(def.element, ctx, {
3360
+ json.items = process$3(def.element, ctx, {
3350
3361
  ...params,
3351
3362
  path: [...params.path, "items"]
3352
3363
  });
@@ -3357,7 +3368,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
3357
3368
  json.type = "object";
3358
3369
  json.properties = {};
3359
3370
  const shape = def.shape;
3360
- for (const key in shape) json.properties[key] = process$2(shape[key], ctx, {
3371
+ for (const key in shape) json.properties[key] = process$3(shape[key], ctx, {
3361
3372
  ...params,
3362
3373
  path: [
3363
3374
  ...params.path,
@@ -3375,7 +3386,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
3375
3386
  if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
3376
3387
  else if (!def.catchall) {
3377
3388
  if (ctx.io === "output") json.additionalProperties = false;
3378
- } else if (def.catchall) json.additionalProperties = process$2(def.catchall, ctx, {
3389
+ } else if (def.catchall) json.additionalProperties = process$3(def.catchall, ctx, {
3379
3390
  ...params,
3380
3391
  path: [...params.path, "additionalProperties"]
3381
3392
  });
@@ -3383,7 +3394,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
3383
3394
  const unionProcessor = (schema, ctx, json, params) => {
3384
3395
  const def = schema._zod.def;
3385
3396
  const isExclusive = def.inclusive === false;
3386
- const options = def.options.map((x, i) => process$2(x, ctx, {
3397
+ const options = def.options.map((x, i) => process$3(x, ctx, {
3387
3398
  ...params,
3388
3399
  path: [
3389
3400
  ...params.path,
@@ -3396,7 +3407,7 @@ const unionProcessor = (schema, ctx, json, params) => {
3396
3407
  };
3397
3408
  const intersectionProcessor = (schema, ctx, json, params) => {
3398
3409
  const def = schema._zod.def;
3399
- const a = process$2(def.left, ctx, {
3410
+ const a = process$3(def.left, ctx, {
3400
3411
  ...params,
3401
3412
  path: [
3402
3413
  ...params.path,
@@ -3404,7 +3415,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
3404
3415
  0
3405
3416
  ]
3406
3417
  });
3407
- const b = process$2(def.right, ctx, {
3418
+ const b = process$3(def.right, ctx, {
3408
3419
  ...params,
3409
3420
  path: [
3410
3421
  ...params.path,
@@ -3422,7 +3433,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
3422
3433
  const keyType = def.keyType;
3423
3434
  const patterns = keyType._zod.bag?.patterns;
3424
3435
  if (def.mode === "loose" && patterns && patterns.size > 0) {
3425
- const valueSchema = process$2(def.valueType, ctx, {
3436
+ const valueSchema = process$3(def.valueType, ctx, {
3426
3437
  ...params,
3427
3438
  path: [
3428
3439
  ...params.path,
@@ -3433,11 +3444,11 @@ const recordProcessor = (schema, ctx, _json, params) => {
3433
3444
  json.patternProperties = {};
3434
3445
  for (const pattern of patterns) json.patternProperties[pattern.source] = valueSchema;
3435
3446
  } else {
3436
- if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$2(def.keyType, ctx, {
3447
+ if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process$3(def.keyType, ctx, {
3437
3448
  ...params,
3438
3449
  path: [...params.path, "propertyNames"]
3439
3450
  });
3440
- json.additionalProperties = process$2(def.valueType, ctx, {
3451
+ json.additionalProperties = process$3(def.valueType, ctx, {
3441
3452
  ...params,
3442
3453
  path: [...params.path, "additionalProperties"]
3443
3454
  });
@@ -3450,7 +3461,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
3450
3461
  };
3451
3462
  const nullableProcessor = (schema, ctx, json, params) => {
3452
3463
  const def = schema._zod.def;
3453
- const inner = process$2(def.innerType, ctx, params);
3464
+ const inner = process$3(def.innerType, ctx, params);
3454
3465
  const seen = ctx.seen.get(schema);
3455
3466
  if (ctx.target === "openapi-3.0") {
3456
3467
  seen.ref = def.innerType;
@@ -3459,27 +3470,27 @@ const nullableProcessor = (schema, ctx, json, params) => {
3459
3470
  };
3460
3471
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
3461
3472
  const def = schema._zod.def;
3462
- process$2(def.innerType, ctx, params);
3473
+ process$3(def.innerType, ctx, params);
3463
3474
  const seen = ctx.seen.get(schema);
3464
3475
  seen.ref = def.innerType;
3465
3476
  };
3466
3477
  const defaultProcessor = (schema, ctx, json, params) => {
3467
3478
  const def = schema._zod.def;
3468
- process$2(def.innerType, ctx, params);
3479
+ process$3(def.innerType, ctx, params);
3469
3480
  const seen = ctx.seen.get(schema);
3470
3481
  seen.ref = def.innerType;
3471
3482
  json.default = JSON.parse(JSON.stringify(def.defaultValue));
3472
3483
  };
3473
3484
  const prefaultProcessor = (schema, ctx, json, params) => {
3474
3485
  const def = schema._zod.def;
3475
- process$2(def.innerType, ctx, params);
3486
+ process$3(def.innerType, ctx, params);
3476
3487
  const seen = ctx.seen.get(schema);
3477
3488
  seen.ref = def.innerType;
3478
3489
  if (ctx.io === "input") json._prefault = JSON.parse(JSON.stringify(def.defaultValue));
3479
3490
  };
3480
3491
  const catchProcessor = (schema, ctx, json, params) => {
3481
3492
  const def = schema._zod.def;
3482
- process$2(def.innerType, ctx, params);
3493
+ process$3(def.innerType, ctx, params);
3483
3494
  const seen = ctx.seen.get(schema);
3484
3495
  seen.ref = def.innerType;
3485
3496
  let catchValue;
@@ -3494,20 +3505,20 @@ const pipeProcessor = (schema, ctx, _json, params) => {
3494
3505
  const def = schema._zod.def;
3495
3506
  const inIsTransform = def.in._zod.traits.has("$ZodTransform");
3496
3507
  const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
3497
- process$2(innerType, ctx, params);
3508
+ process$3(innerType, ctx, params);
3498
3509
  const seen = ctx.seen.get(schema);
3499
3510
  seen.ref = innerType;
3500
3511
  };
3501
3512
  const readonlyProcessor = (schema, ctx, json, params) => {
3502
3513
  const def = schema._zod.def;
3503
- process$2(def.innerType, ctx, params);
3514
+ process$3(def.innerType, ctx, params);
3504
3515
  const seen = ctx.seen.get(schema);
3505
3516
  seen.ref = def.innerType;
3506
3517
  json.readOnly = true;
3507
3518
  };
3508
3519
  const optionalProcessor = (schema, ctx, _json, params) => {
3509
3520
  const def = schema._zod.def;
3510
- process$2(def.innerType, ctx, params);
3521
+ process$3(def.innerType, ctx, params);
3511
3522
  const seen = ctx.seen.get(schema);
3512
3523
  seen.ref = def.innerType;
3513
3524
  };
@@ -4114,11 +4125,12 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
4114
4125
  });
4115
4126
  });
4116
4127
  function object$1(shape, params) {
4117
- return new ZodObject({
4128
+ const def = {
4118
4129
  type: "object",
4119
4130
  shape: shape ?? {},
4120
4131
  ...normalizeParams(params)
4121
- });
4132
+ };
4133
+ return new ZodObject(def);
4122
4134
  }
4123
4135
  function strictObject(shape, params) {
4124
4136
  return new ZodObject({
@@ -4217,9 +4229,10 @@ const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
4217
4229
  };
4218
4230
  });
4219
4231
  function _enum(values, params) {
4232
+ const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
4220
4233
  return new ZodEnum({
4221
4234
  type: "enum",
4222
- entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
4235
+ entries,
4223
4236
  ...normalizeParams(params)
4224
4237
  });
4225
4238
  }
@@ -4456,7 +4469,7 @@ function normalizedKey(event) {
4456
4469
 
4457
4470
  //#endregion
4458
4471
  //#region package.json
4459
- var version = "0.5.27";
4472
+ var version = "0.5.30";
4460
4473
 
4461
4474
  //#endregion
4462
4475
  //#region sentry.ts
@@ -4564,7 +4577,6 @@ var Argument = class {
4564
4577
  default:
4565
4578
  this.required = true;
4566
4579
  this._name = name;
4567
- break;
4568
4580
  }
4569
4581
  if (this._name.endsWith("...")) {
4570
4582
  this.variadic = true;
@@ -5531,13 +5543,13 @@ var Command = class Command extends EventEmitter {
5531
5543
  this._showSuggestionAfterError = true;
5532
5544
  this._savedState = null;
5533
5545
  this._outputConfiguration = {
5534
- writeOut: (str) => g$1.stdout.write(str),
5535
- writeErr: (str) => g$1.stderr.write(str),
5546
+ writeOut: (str) => process$1.stdout.write(str),
5547
+ writeErr: (str) => process$1.stderr.write(str),
5536
5548
  outputError: (str, write) => write(str),
5537
- getOutHelpWidth: () => g$1.stdout.isTTY ? g$1.stdout.columns : void 0,
5538
- getErrHelpWidth: () => g$1.stderr.isTTY ? g$1.stderr.columns : void 0,
5539
- getOutHasColors: () => useColor() ?? (g$1.stdout.isTTY && g$1.stdout.hasColors?.()),
5540
- getErrHasColors: () => useColor() ?? (g$1.stderr.isTTY && g$1.stderr.hasColors?.()),
5549
+ getOutHelpWidth: () => process$1.stdout.isTTY ? process$1.stdout.columns : void 0,
5550
+ getErrHelpWidth: () => process$1.stderr.isTTY ? process$1.stderr.columns : void 0,
5551
+ getOutHasColors: () => useColor() ?? (process$1.stdout.isTTY && process$1.stdout.hasColors?.()),
5552
+ getErrHasColors: () => useColor() ?? (process$1.stderr.isTTY && process$1.stderr.hasColors?.()),
5541
5553
  stripColor: (str) => stripVTControlCharacters(str)
5542
5554
  };
5543
5555
  this._hidden = false;
@@ -5906,7 +5918,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
5906
5918
  */
5907
5919
  _exit(exitCode, code, message) {
5908
5920
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
5909
- g$1.exit(exitCode);
5921
+ process$1.exit(exitCode);
5910
5922
  }
5911
5923
  /**
5912
5924
  * Register callback `fn` for the command.
@@ -6023,16 +6035,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
6023
6035
  const oldValue = this.getOptionValue(name);
6024
6036
  if (val !== null && option.parseArg) val = this._callParseArg(option, val, oldValue, invalidValueMessage);
6025
6037
  else if (val !== null && option.variadic) val = option._collectValue(val, oldValue);
6026
- if (val == null) if (option.negate) val = false;
6027
- else if (option.isBoolean() || option.optional) val = true;
6028
- else val = "";
6038
+ if (val == null) {
6039
+ if (option.negate) val = false;
6040
+ else if (option.isBoolean() || option.optional) val = true;
6041
+ else val = "";
6042
+ }
6029
6043
  this.setOptionValueWithSource(name, val, valueSource);
6030
6044
  };
6031
6045
  this.on("option:" + oname, (val) => {
6032
- handleOptionValue(val, `error: option '${option.flags}' argument '${val}' is invalid.`, "cli");
6046
+ const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
6047
+ handleOptionValue(val, invalidValueMessage, "cli");
6033
6048
  });
6034
6049
  if (option.envVar) this.on("optionEnv:" + oname, (val) => {
6035
- handleOptionValue(val, `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`, "env");
6050
+ const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
6051
+ handleOptionValue(val, invalidValueMessage, "env");
6036
6052
  });
6037
6053
  return this;
6038
6054
  }
@@ -6244,11 +6260,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
6244
6260
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
6245
6261
  parseOptions = parseOptions || {};
6246
6262
  if (argv === void 0 && parseOptions.from === void 0) {
6247
- if (g$1.versions?.electron) parseOptions.from = "electron";
6248
- const execArgv = g$1.execArgv ?? [];
6263
+ if (process$1.versions?.electron) parseOptions.from = "electron";
6264
+ const execArgv = process$1.execArgv ?? [];
6249
6265
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
6250
6266
  }
6251
- if (argv === void 0) argv = g$1.argv;
6267
+ if (argv === void 0) argv = process$1.argv;
6252
6268
  this.rawArgs = argv.slice();
6253
6269
  let userArgs;
6254
6270
  switch (parseOptions.from) {
@@ -6258,7 +6274,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
6258
6274
  userArgs = argv.slice(2);
6259
6275
  break;
6260
6276
  case "electron":
6261
- if (g$1.defaultApp) {
6277
+ if (process$1.defaultApp) {
6262
6278
  this._scriptPath = argv[1];
6263
6279
  userArgs = argv.slice(2);
6264
6280
  } else userArgs = argv.slice(1);
@@ -6427,16 +6443,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
6427
6443
  }
6428
6444
  const launchWithNode = sourceExt.includes(path.extname(executableFile));
6429
6445
  let proc;
6430
- if (g$1.platform !== "win32") if (launchWithNode) {
6431
- args.unshift(executableFile);
6432
- args = incrementNodeInspectorPort(g$1.execArgv).concat(args);
6433
- proc = childProcess.spawn(g$1.argv[0], args, { stdio: "inherit" });
6434
- } else proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
6435
- else {
6446
+ if (process$1.platform !== "win32") {
6447
+ if (launchWithNode) {
6448
+ args.unshift(executableFile);
6449
+ args = incrementNodeInspectorPort(process$1.execArgv).concat(args);
6450
+ proc = childProcess.spawn(process$1.argv[0], args, { stdio: "inherit" });
6451
+ } else proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
6452
+ } else {
6436
6453
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
6437
6454
  args.unshift(executableFile);
6438
- args = incrementNodeInspectorPort(g$1.execArgv).concat(args);
6439
- proc = childProcess.spawn(g$1.execPath, args, { stdio: "inherit" });
6455
+ args = incrementNodeInspectorPort(process$1.execArgv).concat(args);
6456
+ proc = childProcess.spawn(process$1.execPath, args, { stdio: "inherit" });
6440
6457
  }
6441
6458
  if (!proc.killed) [
6442
6459
  "SIGUSR1",
@@ -6445,20 +6462,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
6445
6462
  "SIGINT",
6446
6463
  "SIGHUP"
6447
6464
  ].forEach((signal) => {
6448
- g$1.on(signal, () => {
6465
+ process$1.on(signal, () => {
6449
6466
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
6450
6467
  });
6451
6468
  });
6452
6469
  const exitCallback = this._exitCallback;
6453
6470
  proc.on("close", (code) => {
6454
6471
  code = code ?? 1;
6455
- if (!exitCallback) g$1.exit(code);
6472
+ if (!exitCallback) process$1.exit(code);
6456
6473
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
6457
6474
  });
6458
6475
  proc.on("error", (err) => {
6459
6476
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
6460
6477
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
6461
- if (!exitCallback) g$1.exit(1);
6478
+ if (!exitCallback) process$1.exit(1);
6462
6479
  else {
6463
6480
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
6464
6481
  wrappedError.nestedError = err;
@@ -6870,14 +6887,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
6870
6887
  */
6871
6888
  _parseOptionsEnv() {
6872
6889
  this.options.forEach((option) => {
6873
- if (option.envVar && option.envVar in g$1.env) {
6890
+ if (option.envVar && option.envVar in process$1.env) {
6874
6891
  const optionKey = option.attributeName();
6875
6892
  if (this.getOptionValue(optionKey) === void 0 || [
6876
6893
  "default",
6877
6894
  "config",
6878
6895
  "env"
6879
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, g$1.env[option.envVar]);
6880
- else this.emit(`optionEnv:${option.name()}`);
6896
+ ].includes(this.getOptionValueSource(optionKey))) {
6897
+ if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$1.env[option.envVar]);
6898
+ else this.emit(`optionEnv:${option.name()}`);
6899
+ }
6881
6900
  }
6882
6901
  });
6883
6902
  }
@@ -7356,7 +7375,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
7356
7375
  */
7357
7376
  help(contextOptions) {
7358
7377
  this.outputHelp(contextOptions);
7359
- let exitCode = Number(g$1.exitCode ?? 0);
7378
+ let exitCode = Number(process$1.exitCode ?? 0);
7360
7379
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
7361
7380
  this._exit(exitCode, "commander.help", "(outputHelp)");
7362
7381
  }
@@ -7448,8 +7467,8 @@ function incrementNodeInspectorPort(args) {
7448
7467
  * @package
7449
7468
  */
7450
7469
  function useColor() {
7451
- if (g$1.env.NO_COLOR || g$1.env.FORCE_COLOR === "0" || g$1.env.FORCE_COLOR === "false") return false;
7452
- if (g$1.env.FORCE_COLOR || g$1.env.CLICOLOR_FORCE !== void 0) return true;
7470
+ if (process$1.env.NO_COLOR || process$1.env.FORCE_COLOR === "0" || process$1.env.FORCE_COLOR === "false") return false;
7471
+ if (process$1.env.FORCE_COLOR || process$1.env.CLICOLOR_FORCE !== void 0) return true;
7453
7472
  }
7454
7473
 
7455
7474
  //#endregion
@@ -7870,10 +7889,11 @@ ${indent}`);
7870
7889
  return causedPrefix + message + "\n" + stack + causedError;
7871
7890
  }
7872
7891
  formatArgs(args, opts) {
7873
- return formatWithOptions(opts, ...args.map((arg) => {
7892
+ const _args = args.map((arg) => {
7874
7893
  if (arg && typeof arg.stack === "string") return this.formatError(arg, opts);
7875
7894
  return arg;
7876
- }));
7895
+ });
7896
+ return formatWithOptions(opts, ..._args);
7877
7897
  }
7878
7898
  formatDate(date, opts) {
7879
7899
  return opts.date ? date.toLocaleTimeString() : "";
@@ -7910,8 +7930,8 @@ const isForced = "FORCE_COLOR" in env$1 || argv.includes("--color");
7910
7930
  const isWindows$2 = platform$1 === "win32";
7911
7931
  const isDumbTerminal = env$1.TERM === "dumb";
7912
7932
  const isCompatibleTerminal = tty$1 && tty$1.isatty && tty$1.isatty(1) && env$1.TERM && !isDumbTerminal;
7913
- const isCI$1 = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1 || "CIRCLECI" in env$1);
7914
- const isColorSupported = !isDisabled && (isForced || isWindows$2 && !isDumbTerminal || isCompatibleTerminal || isCI$1);
7933
+ const isCI = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1 || "CIRCLECI" in env$1);
7934
+ const isColorSupported = !isDisabled && (isForced || isWindows$2 && !isDumbTerminal || isCompatibleTerminal || isCI);
7915
7935
  function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
7916
7936
  return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
7917
7937
  }
@@ -8093,7 +8113,9 @@ function box(text, _opts = {}) {
8093
8113
 
8094
8114
  //#endregion
8095
8115
  //#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
8096
- const r = Object.create(null), i$2 = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis), o$1 = new Proxy(r, {
8116
+ const r = Object.create(null);
8117
+ const i$2 = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
8118
+ const o$1 = new Proxy(r, {
8097
8119
  get(e, s) {
8098
8120
  return i$2()[s] ?? r[s];
8099
8121
  },
@@ -8113,7 +8135,9 @@ const r = Object.create(null), i$2 = (e) => globalThis.process?.env || import.me
8113
8135
  const e = i$2(true);
8114
8136
  return Object.keys(e);
8115
8137
  }
8116
- }), t = typeof process < "u" && process.env && process.env.NODE_ENV || "", f$1 = [
8138
+ });
8139
+ const t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
8140
+ const f = [
8117
8141
  ["APPVEYOR"],
8118
8142
  [
8119
8143
  "AWS_AMPLIFY",
@@ -8205,7 +8229,7 @@ const r = Object.create(null), i$2 = (e) => globalThis.process?.env || import.me
8205
8229
  ]
8206
8230
  ];
8207
8231
  function b$1() {
8208
- if (globalThis.process?.env) for (const e of f$1) {
8232
+ if (globalThis.process?.env) for (const e of f) {
8209
8233
  const s = e[1] || e[0];
8210
8234
  if (globalThis.process?.env[s]) return {
8211
8235
  name: e[0].toLowerCase(),
@@ -8225,19 +8249,31 @@ l.name;
8225
8249
  function n$1(e) {
8226
8250
  return e ? e !== "false" : false;
8227
8251
  }
8228
- const I = globalThis.process?.platform || "", T = n$1(o$1.CI) || l.ci !== false, a$1 = n$1(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n$1(o$1.DEBUG), R$1 = t === "test" || n$1(o$1.TEST);
8252
+ const I = globalThis.process?.platform || "";
8253
+ const T = n$1(o$1.CI) || l.ci !== false;
8254
+ const a$1 = n$1(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
8255
+ const g = n$1(o$1.DEBUG);
8256
+ const R$1 = t === "test" || n$1(o$1.TEST);
8229
8257
  o$1.MINIMAL;
8230
8258
  const A = /^win/i.test(I);
8231
8259
  !n$1(o$1.NO_COLOR) && (n$1(o$1.FORCE_COLOR) || (a$1 || A) && o$1.TERM);
8232
8260
  const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
8233
8261
  Number(C?.split(".")[0]);
8234
- const y = globalThis.process || Object.create(null), _ = { versions: {} };
8262
+ const y = globalThis.process || Object.create(null);
8263
+ const _ = { versions: {} };
8235
8264
  new Proxy(y, { get(e, s) {
8236
8265
  if (s === "env") return o$1;
8237
8266
  if (s in e) return e[s];
8238
8267
  if (s in _) return _[s];
8239
8268
  } });
8240
- const c$1 = globalThis.process?.release?.name === "node", O = !!globalThis.Bun || !!globalThis.process?.versions?.bun, D = !!globalThis.Deno, L = !!globalThis.fastly, S = !!globalThis.Netlify, u$2 = !!globalThis.EdgeRuntime, N = globalThis.navigator?.userAgent === "Cloudflare-Workers", F = [
8269
+ const c$1 = globalThis.process?.release?.name === "node";
8270
+ const O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
8271
+ const D = !!globalThis.Deno;
8272
+ const L = !!globalThis.fastly;
8273
+ const S = !!globalThis.Netlify;
8274
+ const u$2 = !!globalThis.EdgeRuntime;
8275
+ const N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
8276
+ const F = [
8241
8277
  [S, "netlify"],
8242
8278
  [u$2, "edge-light"],
8243
8279
  [N, "workerd"],
@@ -8306,9 +8342,9 @@ function stringWidth$1(string, options = {}) {
8306
8342
  return width;
8307
8343
  }
8308
8344
  function isUnicodeSupported$2() {
8309
- const { env } = g$1;
8345
+ const { env } = process$1;
8310
8346
  const { TERM, TERM_PROGRAM } = env;
8311
- if (g$1.platform !== "win32") return TERM !== "linux";
8347
+ if (process$1.platform !== "win32") return TERM !== "linux";
8312
8348
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
8313
8349
  }
8314
8350
  const TYPE_COLOR_MAP = {
@@ -8395,7 +8431,7 @@ function createConsola(options = {}) {
8395
8431
  defaults: { level },
8396
8432
  stdout: process.stdout,
8397
8433
  stderr: process.stderr,
8398
- prompt: (...args) => import("./prompt-CHIvwqcZ.mjs").then((m) => m.prompt(...args)),
8434
+ prompt: (...args) => import("./prompt-BWUCluoW.mjs").then((m) => m.prompt(...args)),
8399
8435
  reporters: options.reporters || [options.fancy ?? !(T || R$1) ? new FancyReporter() : new BasicReporter()],
8400
8436
  ...options
8401
8437
  });
@@ -8754,7 +8790,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8754
8790
  //#region ../../node_modules/.pnpm/@clack+core@1.4.3/node_modules/@clack/core/dist/index.mjs
8755
8791
  var import_src = require_src();
8756
8792
  const settings = {
8757
- actions: new Set([
8793
+ actions: /* @__PURE__ */ new Set([
8758
8794
  "up",
8759
8795
  "down",
8760
8796
  "left",
@@ -8827,7 +8863,7 @@ function setRawMode(e, r) {
8827
8863
  const o = e;
8828
8864
  o.isTTY && o.setRawMode(r);
8829
8865
  }
8830
- const getColumns = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, getRows = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
8866
+ const getRows = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
8831
8867
  function runValidation(e, n) {
8832
8868
  if ("~standard" in e) {
8833
8869
  const a = e["~standard"].validate(n);
@@ -8906,7 +8942,7 @@ var V = class {
8906
8942
  this.state = "cancel", this.close();
8907
8943
  }, { once: true });
8908
8944
  }
8909
- this.rl = f.createInterface({
8945
+ this.rl = l__default.createInterface({
8910
8946
  input: this.input,
8911
8947
  tabSize: 2,
8912
8948
  prompt: "",
@@ -9038,10 +9074,37 @@ let u$1$1 = class u extends V {
9038
9074
  //#endregion
9039
9075
  //#region ../../node_modules/.pnpm/@clack+prompts@1.7.0/node_modules/@clack/prompts/dist/index.mjs
9040
9076
  function isUnicodeSupported$1() {
9041
- if (g$1.platform !== "win32") return g$1.env.TERM !== "linux";
9042
- return Boolean(g$1.env.CI) || Boolean(g$1.env.WT_SESSION) || Boolean(g$1.env.TERMINUS_SUBLIME) || g$1.env.ConEmuTask === "{cmd::Cmder}" || g$1.env.TERM_PROGRAM === "Terminus-Sublime" || g$1.env.TERM_PROGRAM === "vscode" || g$1.env.TERM === "xterm-256color" || g$1.env.TERM === "alacritty" || g$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
9043
- }
9044
- const unicode = isUnicodeSupported$1(), isCI = () => process.env.CI === "true", isTTY = (o) => o.isTTY === true, unicodeOr = (o, e) => unicode ? o : e, S_STEP_ACTIVE = unicodeOr("◆", "*"), S_STEP_CANCEL = unicodeOr("■", "x"), S_STEP_ERROR = unicodeOr("▲", "x"), S_STEP_SUBMIT = unicodeOr("◇", "o"), S_BAR_START = unicodeOr("┌", "T"), S_BAR = unicodeOr("│", "|"), S_BAR_END = unicodeOr("└", "—"), S_BAR_START_RIGHT = unicodeOr("┐", "T"), S_BAR_END_RIGHT = unicodeOr("┘", "—"), S_RADIO_ACTIVE = unicodeOr("●", ">"), S_RADIO_INACTIVE = unicodeOr("○", " "), S_CHECKBOX_ACTIVE = unicodeOr("◻", "[•]"), S_CHECKBOX_SELECTED = unicodeOr("◼", "[+]"), S_CHECKBOX_INACTIVE = unicodeOr("◻", "[ ]"), S_PASSWORD_MASK = unicodeOr("▪", "•"), S_BAR_H = unicodeOr("─", "-"), S_CORNER_TOP_RIGHT = unicodeOr("╮", "+"), S_CONNECT_LEFT = unicodeOr("├", "+"), S_CORNER_BOTTOM_RIGHT = unicodeOr("╯", "+"), S_CORNER_BOTTOM_LEFT = unicodeOr("╰", "+"), S_CORNER_TOP_LEFT = unicodeOr("╭", "+"), S_INFO = unicodeOr("●", "•"), S_SUCCESS = unicodeOr("◆", "*"), S_WARN = unicodeOr("▲", "!"), S_ERROR = unicodeOr("■", "x"), symbol = (o) => {
9077
+ if (process$1.platform !== "win32") return process$1.env.TERM !== "linux";
9078
+ return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
9079
+ }
9080
+ const unicode = isUnicodeSupported$1();
9081
+ const unicodeOr = (o, e) => unicode ? o : e;
9082
+ const S_STEP_ACTIVE = unicodeOr("◆", "*");
9083
+ const S_STEP_CANCEL = unicodeOr("■", "x");
9084
+ const S_STEP_ERROR = unicodeOr("▲", "x");
9085
+ const S_STEP_SUBMIT = unicodeOr("◇", "o");
9086
+ const S_BAR_START = unicodeOr("┌", "T");
9087
+ const S_BAR = unicodeOr("│", "|");
9088
+ const S_BAR_END = unicodeOr("└", "—");
9089
+ const S_BAR_START_RIGHT = unicodeOr("┐", "T");
9090
+ const S_BAR_END_RIGHT = unicodeOr("┘", "—");
9091
+ const S_RADIO_ACTIVE = unicodeOr("●", ">");
9092
+ const S_RADIO_INACTIVE = unicodeOr("○", " ");
9093
+ const S_CHECKBOX_ACTIVE = unicodeOr("◻", "[•]");
9094
+ const S_CHECKBOX_SELECTED = unicodeOr("◼", "[+]");
9095
+ const S_CHECKBOX_INACTIVE = unicodeOr("◻", "[ ]");
9096
+ const S_PASSWORD_MASK = unicodeOr("▪", "•");
9097
+ const S_BAR_H = unicodeOr("─", "-");
9098
+ const S_CORNER_TOP_RIGHT = unicodeOr("╮", "+");
9099
+ const S_CONNECT_LEFT = unicodeOr("├", "+");
9100
+ const S_CORNER_BOTTOM_RIGHT = unicodeOr("╯", "+");
9101
+ const S_CORNER_BOTTOM_LEFT = unicodeOr("╰", "+");
9102
+ const S_CORNER_TOP_LEFT = unicodeOr("╭", "+");
9103
+ const S_INFO = unicodeOr("●", "•");
9104
+ const S_SUCCESS = unicodeOr("◆", "*");
9105
+ const S_WARN = unicodeOr("▲", "!");
9106
+ const S_ERROR = unicodeOr("■", "x");
9107
+ const symbol = (o) => {
9045
9108
  switch (o) {
9046
9109
  case "initial":
9047
9110
  case "active": return styleText("cyan", S_STEP_ACTIVE);
@@ -9049,14 +9112,6 @@ const unicode = isUnicodeSupported$1(), isCI = () => process.env.CI === "true",
9049
9112
  case "error": return styleText("yellow", S_STEP_ERROR);
9050
9113
  case "submit": return styleText("green", S_STEP_SUBMIT);
9051
9114
  }
9052
- }, symbolBar = (o) => {
9053
- switch (o) {
9054
- case "initial":
9055
- case "active": return styleText("cyan", S_BAR);
9056
- case "cancel": return styleText("red", S_BAR);
9057
- case "error": return styleText("yellow", S_BAR);
9058
- case "submit": return styleText("green", S_BAR);
9059
- }
9060
9115
  };
9061
9116
  const MULTISELECT_INSTRUCTIONS = [
9062
9117
  `${styleText("dim", "↑/↓")} to navigate`,
@@ -9491,11 +9546,13 @@ else Headers$1 = class Headers {
9491
9546
  headers;
9492
9547
  constructor(init) {
9493
9548
  this.headers = /* @__PURE__ */ new Map();
9494
- if (init) if (init instanceof Headers) init.forEach((value, key) => this.append(key, value));
9495
- else if (Array.isArray(init)) for (const [key, value] of init) if (typeof key === "string" && typeof value === "string") this.append(key, value);
9496
- else throw new TypeError("Each header entry must be a [string, string] tuple");
9497
- else for (const [key, value] of Object.entries(init)) if (typeof value === "string") this.append(key, value);
9498
- else throw new TypeError("Header values must be strings");
9549
+ if (init) {
9550
+ if (init instanceof Headers) init.forEach((value, key) => this.append(key, value));
9551
+ else if (Array.isArray(init)) for (const [key, value] of init) if (typeof key === "string" && typeof value === "string") this.append(key, value);
9552
+ else throw new TypeError("Each header entry must be a [string, string] tuple");
9553
+ else for (const [key, value] of Object.entries(init)) if (typeof value === "string") this.append(key, value);
9554
+ else throw new TypeError("Header values must be strings");
9555
+ }
9499
9556
  }
9500
9557
  append(name, value) {
9501
9558
  const key = name.toLowerCase();
@@ -9683,7 +9740,7 @@ async function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
9683
9740
  } else break;
9684
9741
  return response;
9685
9742
  }
9686
- const SENSITIVE_HEADERS = new Set([
9743
+ const SENSITIVE_HEADERS = /* @__PURE__ */ new Set([
9687
9744
  "authorization",
9688
9745
  "www-authenticate",
9689
9746
  "x-api-key",
@@ -9707,7 +9764,7 @@ function redactHeaders(headers) {
9707
9764
  else filtered[key] = value;
9708
9765
  return filtered;
9709
9766
  }
9710
- const SENSITIVE_QUERY_PARAMS = new Set([
9767
+ const SENSITIVE_QUERY_PARAMS = /* @__PURE__ */ new Set([
9711
9768
  "api_key",
9712
9769
  "api-key",
9713
9770
  "apikey",
@@ -9968,7 +10025,8 @@ var HttpResponsePromise = class HttpResponsePromise extends Promise {
9968
10025
  * @returns An `HttpResponsePromise` instance.
9969
10026
  */
9970
10027
  static fromExecutor(executor) {
9971
- return new HttpResponsePromise(new Promise(executor));
10028
+ const promise = new Promise(executor);
10029
+ return new HttpResponsePromise(promise);
9972
10030
  }
9973
10031
  /**
9974
10032
  * Creates an `HttpResponsePromise` from a resolved result.
@@ -9977,7 +10035,8 @@ var HttpResponsePromise = class HttpResponsePromise extends Promise {
9977
10035
  * @returns An `HttpResponsePromise` instance.
9978
10036
  */
9979
10037
  static fromResult(result) {
9980
- return new HttpResponsePromise(Promise.resolve(result));
10038
+ const promise = Promise.resolve(result);
10039
+ return new HttpResponsePromise(promise);
9981
10040
  }
9982
10041
  unwrap() {
9983
10042
  if (!this.unwrappedPromise) this.unwrappedPromise = this.innerPromise.then(({ data }) => data);
@@ -10672,9 +10731,7 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
10672
10731
  });
10673
10732
  break;
10674
10733
  case "strip": break;
10675
- case "passthrough":
10676
- transformed[preTransformedKey] = preTransformedItemValue;
10677
- break;
10734
+ case "passthrough": transformed[preTransformedKey] = preTransformedItemValue;
10678
10735
  }
10679
10736
  }
10680
10737
  if (missingRequiredCount > 0) {
@@ -11044,20 +11101,22 @@ function transformAndValidateUnion({ value, discriminant, transformedDiscriminan
11044
11101
  errors: transformedDiscriminantValue.errors
11045
11102
  };
11046
11103
  const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
11047
- if (additionalPropertiesSchema == null) if (allowUnrecognizedUnionMembers) return {
11048
- ok: true,
11049
- value: {
11050
- [transformedDiscriminant]: transformedDiscriminantValue.value,
11051
- ...additionalProperties
11052
- }
11053
- };
11054
- else return {
11055
- ok: false,
11056
- errors: [{
11057
- path: [...breadcrumbsPrefix, discriminant],
11058
- message: "Unexpected discriminant value"
11059
- }]
11060
- };
11104
+ if (additionalPropertiesSchema == null) {
11105
+ if (allowUnrecognizedUnionMembers) return {
11106
+ ok: true,
11107
+ value: {
11108
+ [transformedDiscriminant]: transformedDiscriminantValue.value,
11109
+ ...additionalProperties
11110
+ }
11111
+ };
11112
+ else return {
11113
+ ok: false,
11114
+ errors: [{
11115
+ path: [...breadcrumbsPrefix, discriminant],
11116
+ message: "Unexpected discriminant value"
11117
+ }]
11118
+ };
11119
+ }
11061
11120
  const transformedAdditionalProperties = transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
11062
11121
  if (!transformedAdditionalProperties.ok) return transformedAdditionalProperties;
11063
11122
  return {
@@ -11075,9 +11134,7 @@ function encodePathParam(param) {
11075
11134
  case "string":
11076
11135
  case "number":
11077
11136
  case "boolean": break;
11078
- default:
11079
- param = String(param);
11080
- break;
11137
+ default: param = String(param);
11081
11138
  }
11082
11139
  return encodeURIComponent(param);
11083
11140
  }
@@ -12548,7 +12605,7 @@ const providerTokenLeaseSchema = object$1({
12548
12605
  //#endregion
12549
12606
  //#region bindings/new.ts
12550
12607
  const CALLBACK_PATH = "/callback";
12551
- const CALLBACK_TIMEOUT_MS = 300 * 1e3;
12608
+ const CALLBACK_TIMEOUT_MS = 3e5;
12552
12609
  const pluginIdSchema = string$1().trim().min(1, "plugin_id cannot be empty.");
12553
12610
  const requiredAuthValueSchema = string$1().trim().min(1);
12554
12611
  async function promptSecret(message) {
@@ -12702,7 +12759,7 @@ function isPlainObject(value) {
12702
12759
  }
12703
12760
 
12704
12761
  //#endregion
12705
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/file-url.js
12762
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/file-url.js
12706
12763
  const safeNormalizeFileUrl = (file, name) => {
12707
12764
  const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
12708
12765
  if (typeof fileString !== "string") throw new TypeError(`${name} must be a string or a file URL: ${fileString}.`);
@@ -12713,7 +12770,7 @@ const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getP
12713
12770
  const normalizeFileUrl = (file) => file instanceof URL ? fileURLToPath(file) : file;
12714
12771
 
12715
12772
  //#endregion
12716
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/parameters.js
12773
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/parameters.js
12717
12774
  const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
12718
12775
  const filePath = safeNormalizeFileUrl(rawFile, "First argument");
12719
12776
  const [commandArguments, options] = isPlainObject(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];
@@ -12734,7 +12791,7 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
12734
12791
  };
12735
12792
 
12736
12793
  //#endregion
12737
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/utils/uint-array.js
12794
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/utils/uint-array.js
12738
12795
  const { toString: objectToString$1 } = Object.prototype;
12739
12796
  const isArrayBuffer = (value) => objectToString$1.call(value) === "[object ArrayBuffer]";
12740
12797
  const isUint8Array = (value) => objectToString$1.call(value) === "[object Uint8Array]";
@@ -12774,7 +12831,7 @@ const getJoinLength = (uint8Arrays) => {
12774
12831
  };
12775
12832
 
12776
12833
  //#endregion
12777
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/template.js
12834
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/template.js
12778
12835
  const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
12779
12836
  const parseTemplates = (templates, expressions) => {
12780
12837
  let tokens = [];
@@ -12799,7 +12856,8 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
12799
12856
  const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
12800
12857
  if (index === expressions.length) return newTokens;
12801
12858
  const expression = expressions[index];
12802
- return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
12859
+ const expressionTokens = Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)];
12860
+ return concatTokens(newTokens, expressionTokens, trailingWhitespaces);
12803
12861
  };
12804
12862
  const splitByWhitespaces = (template, rawTemplate) => {
12805
12863
  if (rawTemplate.length === 0) return {
@@ -12832,7 +12890,7 @@ const splitByWhitespaces = (template, rawTemplate) => {
12832
12890
  trailingWhitespaces: isTrailingWhitespaces
12833
12891
  };
12834
12892
  };
12835
- const DELIMITERS = new Set([
12893
+ const DELIMITERS = /* @__PURE__ */ new Set([
12836
12894
  " ",
12837
12895
  " ",
12838
12896
  "\r",
@@ -12863,12 +12921,12 @@ const getSubprocessResult = ({ stdout }) => {
12863
12921
  };
12864
12922
 
12865
12923
  //#endregion
12866
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/utils/standard-stream.js
12924
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/utils/standard-stream.js
12867
12925
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
12868
12926
  const STANDARD_STREAMS = [
12869
- g$1.stdin,
12870
- g$1.stdout,
12871
- g$1.stderr
12927
+ process$1.stdin,
12928
+ process$1.stdout,
12929
+ process$1.stderr
12872
12930
  ];
12873
12931
  const STANDARD_STREAMS_ALIASES = [
12874
12932
  "stdin",
@@ -12878,7 +12936,7 @@ const STANDARD_STREAMS_ALIASES = [
12878
12936
  const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
12879
12937
 
12880
12938
  //#endregion
12881
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/specific.js
12939
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/specific.js
12882
12940
  const normalizeFdSpecificOptions = (options) => {
12883
12941
  const optionsCopy = { ...options };
12884
12942
  for (const optionName of FD_SPECIFIC_OPTIONS) optionsCopy[optionName] = normalizeFdSpecificOption(options, optionName);
@@ -12887,7 +12945,8 @@ const normalizeFdSpecificOptions = (options) => {
12887
12945
  const normalizeFdSpecificOption = (options, optionName) => {
12888
12946
  const stdioLength = getStdioLength(options);
12889
12947
  const optionBaseArray = Array.from({ length: stdioLength + 1 });
12890
- return addDefaultValue$1(normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName, stdioLength), optionName);
12948
+ const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName, stdioLength);
12949
+ return addDefaultValue$1(optionArray, optionName);
12891
12950
  };
12892
12951
  const getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
12893
12952
  const normalizeFdSpecificValue = (optionValue, optionArray, optionName, stdioLength) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName, stdioLength) : optionArray.fill(optionValue);
@@ -12920,7 +12979,7 @@ const addDefaultValue$1 = (optionArray, optionName) => optionArray.map((optionVa
12920
12979
  const DEFAULT_OPTIONS = {
12921
12980
  lines: false,
12922
12981
  buffer: true,
12923
- maxBuffer: 1e3 * 1e3 * 100,
12982
+ maxBuffer: 1e8,
12924
12983
  verbose: debuglog("execa").enabled ? "full" : "none",
12925
12984
  stripFinalNewline: true
12926
12985
  };
@@ -12934,7 +12993,7 @@ const FD_SPECIFIC_OPTIONS = [
12934
12993
  const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
12935
12994
 
12936
12995
  //#endregion
12937
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/values.js
12996
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/values.js
12938
12997
  const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
12939
12998
  const isFullVerbose = ({ verbose }, fdNumber) => !["none", "short"].includes(getFdVerbose(verbose, fdNumber));
12940
12999
  const getVerboseFunction = ({ verbose }, fdNumber) => {
@@ -12951,7 +13010,7 @@ const VERBOSE_VALUES = [
12951
13010
  ];
12952
13011
 
12953
13012
  //#endregion
12954
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/escape.js
13013
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/escape.js
12955
13014
  const joinCommand = (filePath, rawArguments) => {
12956
13015
  const fileAndArguments = [filePath, ...rawArguments];
12957
13016
  return {
@@ -12994,9 +13053,9 @@ const NO_ESCAPE_REGEXP = /^[\w\-./]+$/;
12994
13053
  //#endregion
12995
13054
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
12996
13055
  function isUnicodeSupported() {
12997
- const { env } = g$1;
13056
+ const { env } = process$1;
12998
13057
  const { TERM, TERM_PROGRAM } = env;
12999
- if (g$1.platform !== "win32") return TERM !== "linux";
13058
+ if (process$1.platform !== "win32") return TERM !== "linux";
13000
13059
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
13001
13060
  }
13002
13061
 
@@ -13348,7 +13407,7 @@ const bgCyanBright = format(106, 49);
13348
13407
  const bgWhiteBright = format(107, 49);
13349
13408
 
13350
13409
  //#endregion
13351
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/default.js
13410
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/default.js
13352
13411
  const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
13353
13412
  const timestampString = serializeTimestamp(timestamp);
13354
13413
  const icon = ICONS[type]({
@@ -13382,7 +13441,7 @@ const COLORS = {
13382
13441
  };
13383
13442
 
13384
13443
  //#endregion
13385
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/custom.js
13444
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/custom.js
13386
13445
  const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
13387
13446
  const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
13388
13447
  return printedLines.map(({ verboseLine, verboseObject }) => applyVerboseFunction(verboseLine, verboseObject, verboseFunction)).filter((printedLine) => printedLine !== void 0).map((printedLine) => appendNewline(printedLine)).join("");
@@ -13395,13 +13454,15 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
13395
13454
  const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
13396
13455
 
13397
13456
  //#endregion
13398
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/log.js
13457
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/log.js
13399
13458
  const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
13400
- const finalLines = applyVerboseOnLines(getPrintedLines(verboseMessage, getVerboseObject({
13459
+ const verboseObject = getVerboseObject({
13401
13460
  type,
13402
13461
  result,
13403
13462
  verboseInfo
13404
- })), verboseInfo, fdNumber);
13463
+ });
13464
+ const printedLines = getPrintedLines(verboseMessage, verboseObject);
13465
+ const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
13405
13466
  if (finalLines !== "") console.warn(finalLines.slice(0, -1));
13406
13467
  };
13407
13468
  const getVerboseObject = ({ type, result, verboseInfo }) => {
@@ -13428,12 +13489,13 @@ const getPrintedLine = (verboseObject) => {
13428
13489
  };
13429
13490
  };
13430
13491
  const serializeVerboseMessage = (message) => {
13431
- return escapeLines(typeof message === "string" ? message : inspect(message)).replaceAll(" ", () => " ".repeat(TAB_SIZE));
13492
+ const messageString = typeof message === "string" ? message : inspect(message);
13493
+ return escapeLines(messageString).replaceAll(" ", () => " ".repeat(TAB_SIZE));
13432
13494
  };
13433
13495
  const TAB_SIZE = 2;
13434
13496
 
13435
13497
  //#endregion
13436
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/start.js
13498
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/start.js
13437
13499
  const logCommand = (escapedCommand, verboseInfo) => {
13438
13500
  if (!isVerbose(verboseInfo)) return;
13439
13501
  verboseLog({
@@ -13444,7 +13506,7 @@ const logCommand = (escapedCommand, verboseInfo) => {
13444
13506
  };
13445
13507
 
13446
13508
  //#endregion
13447
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/info.js
13509
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/info.js
13448
13510
  const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
13449
13511
  validateVerbose(verbose);
13450
13512
  return {
@@ -13468,16 +13530,17 @@ const validateVerbose = (verbose) => {
13468
13530
  };
13469
13531
 
13470
13532
  //#endregion
13471
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/duration.js
13533
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/duration.js
13472
13534
  const getStartTime = () => hrtime.bigint();
13473
13535
  const getDurationMs = (startTime) => Number(hrtime.bigint() - startTime) / 1e6;
13474
13536
 
13475
13537
  //#endregion
13476
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/command.js
13538
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/command.js
13477
13539
  const handleCommand = (filePath, rawArguments, rawOptions) => {
13478
13540
  const startTime = getStartTime();
13479
13541
  const { command, escapedCommand } = joinCommand(filePath, rawArguments);
13480
- const verboseInfo = getVerboseInfo(normalizeFdSpecificOption(rawOptions, "verbose"), escapedCommand, { ...rawOptions });
13542
+ const verbose = normalizeFdSpecificOption(rawOptions, "verbose");
13543
+ const verboseInfo = getVerboseInfo(verbose, escapedCommand, { ...rawOptions });
13481
13544
  logCommand(escapedCommand, verboseInfo);
13482
13545
  return {
13483
13546
  command,
@@ -13515,7 +13578,7 @@ function traversePathUp(startPath) {
13515
13578
 
13516
13579
  //#endregion
13517
13580
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
13518
- const npmRunPath = ({ cwd = g$1.cwd(), path: pathOption = g$1.env[pathKey()], preferLocal = true, execPath = g$1.execPath, addExecPath = true } = {}) => {
13581
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
13519
13582
  const cwdPath = path.resolve(toPath(cwd));
13520
13583
  const result = [];
13521
13584
  const pathParts = pathOption.split(path.delimiter);
@@ -13533,7 +13596,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
13533
13596
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
13534
13597
  if (!pathParts.includes(pathPart)) result.push(pathPart);
13535
13598
  };
13536
- const npmRunPathEnv = ({ env = g$1.env, ...options } = {}) => {
13599
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
13537
13600
  env = { ...env };
13538
13601
  const pathName = pathKey({ env });
13539
13602
  options.path = env[pathName];
@@ -13542,7 +13605,7 @@ const npmRunPathEnv = ({ env = g$1.env, ...options } = {}) => {
13542
13605
  };
13543
13606
 
13544
13607
  //#endregion
13545
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/final-error.js
13608
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/final-error.js
13546
13609
  const getFinalError = (originalError, message, isSync) => {
13547
13610
  return new (isSync ? ExecaSyncError : ExecaError)(message, originalError instanceof DiscardedError ? {} : { cause: originalError });
13548
13611
  };
@@ -13925,7 +13988,7 @@ const findSignalByNumber = (number, signals) => {
13925
13988
  const signalsByNumber = getSignalsByNumber();
13926
13989
 
13927
13990
  //#endregion
13928
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/signal.js
13991
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/signal.js
13929
13992
  const normalizeKillSignal = (killSignal) => {
13930
13993
  const optionName = "option `killSignal`";
13931
13994
  if (killSignal === 0) throw new TypeError(`Invalid ${optionName}: 0 cannot be used.`);
@@ -13955,14 +14018,14 @@ const getAvailableSignalIntegers = () => [...new Set(Object.values(constants.sig
13955
14018
  const getSignalDescription = (signal) => signalsByName[signal].description;
13956
14019
 
13957
14020
  //#endregion
13958
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/kill.js
14021
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/kill.js
13959
14022
  const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
13960
14023
  if (forceKillAfterDelay === false) return forceKillAfterDelay;
13961
14024
  if (forceKillAfterDelay === true) return DEFAULT_FORCE_KILL_TIMEOUT;
13962
14025
  if (!Number.isFinite(forceKillAfterDelay) || forceKillAfterDelay < 0) throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${forceKillAfterDelay}\` (${typeof forceKillAfterDelay})`);
13963
14026
  return forceKillAfterDelay;
13964
14027
  };
13965
- const DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
14028
+ const DEFAULT_FORCE_KILL_TIMEOUT = 5e3;
13966
14029
  const subprocessKill = ({ kill, options: { forceKillAfterDelay, killSignal }, onInternalError, context, controller }, signalOrError, errorArgument) => {
13967
14030
  const { signal, error } = parseKillArguments(signalOrError, errorArgument, killSignal);
13968
14031
  emitKillError(error, onInternalError);
@@ -14007,13 +14070,13 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
14007
14070
  };
14008
14071
 
14009
14072
  //#endregion
14010
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/utils/abort-signal.js
14073
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/utils/abort-signal.js
14011
14074
  const onAbortedSignal = async (mainSignal, stopSignal) => {
14012
14075
  if (!mainSignal.aborted) await once(mainSignal, "abort", { signal: stopSignal });
14013
14076
  };
14014
14077
 
14015
14078
  //#endregion
14016
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/cancel.js
14079
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/cancel.js
14017
14080
  const validateCancelSignal = ({ cancelSignal }) => {
14018
14081
  if (cancelSignal !== void 0 && Object.prototype.toString.call(cancelSignal) !== "[object AbortSignal]") throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(cancelSignal)}`);
14019
14082
  };
@@ -14026,7 +14089,7 @@ const terminateOnCancel = async (kill, cancelSignal, context, { signal }) => {
14026
14089
  };
14027
14090
 
14028
14091
  //#endregion
14029
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/validation.js
14092
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/validation.js
14030
14093
  const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
14031
14094
  validateIpcOption(methodName, isSubprocess, ipc);
14032
14095
  validateConnection(methodName, isSubprocess, isConnected);
@@ -14067,7 +14130,7 @@ const handleSerializationError = ({ error, methodName, isSubprocess, message })
14067
14130
  if (isSerializationError(error)) throw new Error(`${getMethodName(methodName, isSubprocess)}'s argument type is invalid: the message cannot be serialized: ${String(message)}.`, { cause: error });
14068
14131
  };
14069
14132
  const isSerializationError = ({ code, message }) => SERIALIZATION_ERROR_CODES.has(code) || SERIALIZATION_ERROR_MESSAGES.some((serializationErrorMessage) => message.includes(serializationErrorMessage));
14070
- const SERIALIZATION_ERROR_CODES = new Set(["ERR_MISSING_ARGS", "ERR_INVALID_ARG_TYPE"]);
14133
+ const SERIALIZATION_ERROR_CODES = /* @__PURE__ */ new Set(["ERR_MISSING_ARGS", "ERR_INVALID_ARG_TYPE"]);
14071
14134
  const SERIALIZATION_ERROR_MESSAGES = [
14072
14135
  "could not be cloned",
14073
14136
  "circular structure",
@@ -14081,7 +14144,7 @@ const disconnect = (anyProcess) => {
14081
14144
  };
14082
14145
 
14083
14146
  //#endregion
14084
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/utils/deferred.js
14147
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/utils/deferred.js
14085
14148
  const createDeferred = () => {
14086
14149
  const methods = {};
14087
14150
  const promise = new Promise((resolve, reject) => {
@@ -14094,7 +14157,7 @@ const createDeferred = () => {
14094
14157
  };
14095
14158
 
14096
14159
  //#endregion
14097
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/utils/max-listeners.js
14160
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/utils/max-listeners.js
14098
14161
  const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
14099
14162
  const maxListeners = eventEmitter.getMaxListeners();
14100
14163
  if (maxListeners === 0 || maxListeners === Infinity) return;
@@ -14105,7 +14168,7 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
14105
14168
  };
14106
14169
 
14107
14170
  //#endregion
14108
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/reference.js
14171
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/reference.js
14109
14172
  const addReference = (channel, reference) => {
14110
14173
  if (reference) addReferenceCount(channel);
14111
14174
  };
@@ -14130,7 +14193,7 @@ const redoAddedReferences = (channel, isSubprocess) => {
14130
14193
  };
14131
14194
 
14132
14195
  //#endregion
14133
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/incoming.js
14196
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/incoming.js
14134
14197
  const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
14135
14198
  if (handleStrictResponse(wrappedMessage) || handleAbort(wrappedMessage)) return;
14136
14199
  if (!INCOMING_MESSAGES.has(anyProcess)) INCOMING_MESSAGES.set(anyProcess, []);
@@ -14164,7 +14227,7 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
14164
14227
  const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
14165
14228
 
14166
14229
  //#endregion
14167
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/forward.js
14230
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/forward.js
14168
14231
  const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
14169
14232
  if (IPC_EMITTERS.has(anyProcess)) return IPC_EMITTERS.get(anyProcess);
14170
14233
  const ipcEmitter = new EventEmitter();
@@ -14202,10 +14265,11 @@ const isConnected = (anyProcess) => {
14202
14265
  };
14203
14266
 
14204
14267
  //#endregion
14205
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/strict.js
14268
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/strict.js
14206
14269
  const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
14207
14270
  if (!strict) return message;
14208
- const hasListeners = hasMessageListeners(anyProcess, getIpcEmitter(anyProcess, channel, isSubprocess));
14271
+ const ipcEmitter = getIpcEmitter(anyProcess, channel, isSubprocess);
14272
+ const hasListeners = hasMessageListeners(anyProcess, ipcEmitter);
14209
14273
  return {
14210
14274
  id: count++,
14211
14275
  type: REQUEST_TYPE,
@@ -14274,7 +14338,7 @@ const REQUEST_TYPE = "execa:ipc:request";
14274
14338
  const RESPONSE_TYPE = "execa:ipc:response";
14275
14339
 
14276
14340
  //#endregion
14277
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/outgoing.js
14341
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/outgoing.js
14278
14342
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
14279
14343
  if (!OUTGOING_MESSAGES.has(anyProcess)) OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
14280
14344
  const outgoingMessages = OUTGOING_MESSAGES.get(anyProcess);
@@ -14309,7 +14373,7 @@ const getMinListenerCount = (anyProcess) => getOptions(anyProcess) !== void 0 &&
14309
14373
  const getOptions = (anyProcess) => IPC_SUBPROCESS_OPTIONS.get(anyProcess);
14310
14374
 
14311
14375
  //#endregion
14312
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/send.js
14376
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/send.js
14313
14377
  const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
14314
14378
  const methodName = "sendMessage";
14315
14379
  validateIpcMethod({
@@ -14379,7 +14443,7 @@ const getSendMethod = (anyProcess) => {
14379
14443
  const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
14380
14444
 
14381
14445
  //#endregion
14382
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/graceful.js
14446
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/graceful.js
14383
14447
  const sendAbort = (subprocess, message) => {
14384
14448
  const methodName = "cancelSignal";
14385
14449
  validateConnection(methodName, false, subprocess.connected);
@@ -14430,7 +14494,7 @@ const abortOnDisconnect = () => {
14430
14494
  const cancelController = new AbortController();
14431
14495
 
14432
14496
  //#endregion
14433
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/graceful.js
14497
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/graceful.js
14434
14498
  const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
14435
14499
  if (!gracefulCancel) return;
14436
14500
  if (cancelSignal === void 0) throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");
@@ -14447,7 +14511,8 @@ const throwOnGracefulCancel = ({ subprocess, kill, cancelSignal, gracefulCancel,
14447
14511
  })] : [];
14448
14512
  const sendOnAbort = async ({ subprocess, kill, cancelSignal, forceKillAfterDelay, context, controller: { signal } }) => {
14449
14513
  await onAbortedSignal(cancelSignal, signal);
14450
- await sendAbort(subprocess, getReason(cancelSignal));
14514
+ const reason = getReason(cancelSignal);
14515
+ await sendAbort(subprocess, reason);
14451
14516
  killOnTimeout({
14452
14517
  kill,
14453
14518
  forceKillAfterDelay,
@@ -14470,7 +14535,7 @@ const getReason = ({ reason }) => {
14470
14535
  };
14471
14536
 
14472
14537
  //#endregion
14473
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/timeout.js
14538
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/timeout.js
14474
14539
  const validateTimeout = ({ timeout }) => {
14475
14540
  if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
14476
14541
  };
@@ -14483,7 +14548,7 @@ const killAfterTimeout = async (kill, timeout, context, { signal }) => {
14483
14548
  };
14484
14549
 
14485
14550
  //#endregion
14486
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/node.js
14551
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/node.js
14487
14552
  const mapNode = ({ options }) => {
14488
14553
  if (options.node === false) throw new TypeError("The \"node\" option cannot be false with `execaNode()`.");
14489
14554
  return { options: {
@@ -14526,7 +14591,7 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
14526
14591
  };
14527
14592
 
14528
14593
  //#endregion
14529
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/ipc-input.js
14594
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/ipc-input.js
14530
14595
  const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
14531
14596
  if (ipcInput === void 0) return;
14532
14597
  if (!ipc) throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");
@@ -14561,7 +14626,7 @@ const sendIpcInput = async (subprocess, ipcInput, ipc) => {
14561
14626
  };
14562
14627
 
14563
14628
  //#endregion
14564
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/encoding-option.js
14629
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/encoding-option.js
14565
14630
  const validateEncoding = ({ encoding }) => {
14566
14631
  if (ENCODINGS.has(encoding)) return;
14567
14632
  const correctEncoding = getCorrectEncoding(encoding);
@@ -14571,8 +14636,8 @@ Please rename it to ${serializeEncoding(correctEncoding)}.`);
14571
14636
  throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
14572
14637
  Please rename it to one of: ${correctEncodings}.`);
14573
14638
  };
14574
- const TEXT_ENCODINGS = new Set(["utf8", "utf16le"]);
14575
- const BINARY_ENCODINGS = new Set([
14639
+ const TEXT_ENCODINGS = /* @__PURE__ */ new Set(["utf8", "utf16le"]);
14640
+ const BINARY_ENCODINGS = /* @__PURE__ */ new Set([
14576
14641
  "buffer",
14577
14642
  "hex",
14578
14643
  "base64",
@@ -14599,12 +14664,12 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
14599
14664
 
14600
14665
  //#endregion
14601
14666
  //#region ../../node_modules/.pnpm/which-command@0.1.0/node_modules/which-command/index.js
14602
- const isWindows$1 = g$1.platform === "win32";
14667
+ const isWindows$1 = process$1.platform === "win32";
14603
14668
  const separatorPattern = isWindows$1 ? /[\/\\]/v : /\//v;
14604
14669
  const defaultPathExt = ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC";
14605
14670
  function resolveOptions(command, options) {
14606
14671
  if (typeof command !== "string" || command.length === 0) throw new TypeError("Expected a non-empty string.");
14607
- const { cwd = g$1.cwd(), path: searchPath = g$1.env.PATH ?? (isWindows$1 ? g$1.env.Path : void 0) ?? "", pathExt = g$1.env.PATHEXT || defaultPathExt } = options;
14672
+ const { cwd = process$1.cwd(), path: searchPath = process$1.env.PATH ?? (isWindows$1 ? process$1.env.Path : void 0) ?? "", pathExt = process$1.env.PATHEXT || defaultPathExt } = options;
14608
14673
  return {
14609
14674
  cwd,
14610
14675
  searchPath,
@@ -14654,27 +14719,31 @@ function whichCommandSync(command, options = {}) {
14654
14719
  }
14655
14720
 
14656
14721
  //#endregion
14657
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/command-file.js
14722
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/command-file.js
14658
14723
  const parseCommandFile = (file, commandArguments, options) => {
14659
14724
  const parsed = {
14660
14725
  file,
14661
14726
  commandArguments: [...commandArguments],
14662
14727
  options
14663
14728
  };
14664
- if (options.shell || g$1.platform !== "win32") return parsed;
14729
+ if (options.shell || process$1.platform !== "win32") return parsed;
14665
14730
  return escapeWindowsCommand(parsed);
14666
14731
  };
14667
14732
  const directlyExecutableRegExp = /\.(?:com|exe)$/i;
14668
14733
  const batchFileRegExp = /\.(?:bat|cmd)$/i;
14669
14734
  const escapeWindowsCommand = (parsed) => {
14670
14735
  const resolvedFile = resolveWithShebang(parsed);
14671
- if (resolvedFile !== void 0 && directlyExecutableRegExp.test(resolvedFile)) return parsed;
14736
+ if (resolvedFile !== void 0 && directlyExecutableRegExp.test(resolvedFile)) {
14737
+ if (parsed.options.argv0 === void 0) parsed.options.argv0 = parsed.file;
14738
+ parsed.file = resolvedFile;
14739
+ return parsed;
14740
+ }
14672
14741
  for (const value of [parsed.file, ...parsed.commandArguments]) assertNoLineBreak(value);
14673
14742
  const isDoubleEscape = resolvedFile !== void 0 && batchFileRegExp.test(resolvedFile);
14674
- const commandLine = `"${[escapeMetaChars(path.normalize(parsed.file)), ...parsed.commandArguments.map((argument) => escapeArgument(argument, isDoubleEscape))].join(" ")}"`;
14743
+ const commandLine = `"${[escapeMetaChars(path.normalize(resolvedFile ?? parsed.file)), ...parsed.commandArguments.map((argument) => escapeArgument(argument, isDoubleEscape))].join(" ")}"`;
14675
14744
  parsed.options.windowsVerbatimArguments = true;
14676
14745
  return {
14677
- file: g$1.env.comspec || "cmd.exe",
14746
+ file: process$1.env.comspec || "cmd.exe",
14678
14747
  commandArguments: [
14679
14748
  "/d",
14680
14749
  "/s",
@@ -14693,11 +14762,38 @@ const resolveWithShebang = (parsed) => {
14693
14762
  return resolvePath(parsed);
14694
14763
  };
14695
14764
  const resolvePath = (parsed) => {
14696
- const environment = parsed.options.env || g$1.env;
14697
- return whichCommandSync(parsed.file, {
14698
- cwd: parsed.options.cwd,
14699
- path: environment[pathKey({ env: environment })]
14765
+ const environment = parsed.options.env || process$1.env;
14766
+ const cwd = parsed.options.cwd ?? process$1.cwd();
14767
+ const environmentPathExt = getWindowsEnvironmentValue(environment, "PATHEXT");
14768
+ const commandExtension = path.extname(parsed.file);
14769
+ const pathExt = commandExtension === "" ? environmentPathExt : `${commandExtension}${path.delimiter}${environmentPathExt ?? ""}`;
14770
+ if (hasWindowsPathSeparator(parsed.file)) return whichCommandSync(path.resolve(cwd, parsed.file), {
14771
+ cwd,
14772
+ pathExt
14700
14773
  });
14774
+ const resolveOptions = {
14775
+ cwd,
14776
+ path: getWindowsEnvironmentValue(environment, "PATH") ?? getWindowsEnvironmentValue(process$1.env, "PATH") ?? "",
14777
+ pathExt
14778
+ };
14779
+ return shouldSearchCurrentDirectory(environment) ? whichCommandSync(parsed.file, resolveOptions) : resolvePathDirectories(parsed.file, resolveOptions);
14780
+ };
14781
+ const hasWindowsPathSeparator = (file) => file.includes("/") || file.includes("\\") || file.includes(":");
14782
+ const shouldSearchCurrentDirectory = (environment) => getWindowsEnvironmentValue(process$1.env, "NODEFAULTCURRENTDIRECTORYINEXEPATH") === void 0 && getWindowsEnvironmentValue(environment, "NODEFAULTCURRENTDIRECTORYINEXEPATH") === void 0;
14783
+ const resolvePathDirectories = (file, { cwd, path: searchPath, pathExt }) => {
14784
+ for (const directory of searchPath.split(path.delimiter)) {
14785
+ const unquotedDirectory = directory.length > 1 && directory.startsWith("\"") && directory.endsWith("\"") ? directory.slice(1, -1) : directory;
14786
+ if (unquotedDirectory === "") continue;
14787
+ const resolvedFile = whichCommandSync(path.resolve(cwd, unquotedDirectory, file), {
14788
+ cwd,
14789
+ pathExt
14790
+ });
14791
+ if (resolvedFile !== void 0) return resolvedFile;
14792
+ }
14793
+ };
14794
+ const getWindowsEnvironmentValue = (environment, name) => {
14795
+ const environmentKey = Object.keys(environment).sort().find((key) => key.toUpperCase() === name);
14796
+ return environmentKey === void 0 ? void 0 : environment[environmentKey];
14701
14797
  };
14702
14798
  const SHEBANG_BYTE_LENGTH = 150;
14703
14799
  const readShebang = (file) => {
@@ -14731,22 +14827,23 @@ const metaCharsRegExp = /[()\][%!^"`<>&|;, *?]/g;
14731
14827
  const escapeMetaChars = (value) => value.replaceAll(metaCharsRegExp, "^$&");
14732
14828
  const backslashRunRegExp = /\\+/g;
14733
14829
  const escapeArgument = (rawArgument, doubleEscape) => {
14734
- const escapedArgument = escapeMetaChars(`"${`${rawArgument}`.replaceAll(backslashRunRegExp, (backslashes, offset, string) => {
14830
+ const argument = `${rawArgument}`.replaceAll(backslashRunRegExp, (backslashes, offset, string) => {
14735
14831
  const nextCharacter = string[offset + backslashes.length];
14736
14832
  return nextCharacter === "\"" || nextCharacter === void 0 ? backslashes.repeat(2) : backslashes;
14737
- }).replaceAll("\"", "\\\"")}"`);
14833
+ }).replaceAll("\"", "\\\"");
14834
+ const escapedArgument = escapeMetaChars(`"${argument}"`);
14738
14835
  return doubleEscape ? escapeMetaChars(escapedArgument) : escapedArgument;
14739
14836
  };
14740
14837
 
14741
14838
  //#endregion
14742
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/cwd.js
14839
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/cwd.js
14743
14840
  const normalizeCwd = (cwd = getDefaultCwd()) => {
14744
14841
  const cwdString = safeNormalizeFileUrl(cwd, "The \"cwd\" option");
14745
14842
  return path.resolve(cwdString);
14746
14843
  };
14747
14844
  const getDefaultCwd = () => {
14748
14845
  try {
14749
- return g$1.cwd();
14846
+ return process$1.cwd();
14750
14847
  } catch (error) {
14751
14848
  error.message = `The current directory does not exist.\n${error.message}`;
14752
14849
  throw error;
@@ -14765,7 +14862,8 @@ const fixCwdError = (originalMessage, cwd) => {
14765
14862
  };
14766
14863
 
14767
14864
  //#endregion
14768
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/options.js
14865
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/options.js
14866
+ const cmdExeRegExp = /^cmd(?:\.exe)?$/i;
14769
14867
  const normalizeOptions = (filePath, rawArguments, rawOptions) => {
14770
14868
  const sanitizedOptions = {
14771
14869
  __proto__: null,
@@ -14773,19 +14871,20 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
14773
14871
  };
14774
14872
  sanitizedOptions.cwd = normalizeCwd(sanitizedOptions.cwd);
14775
14873
  const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, sanitizedOptions);
14776
- const { file, commandArguments, options: initialOptions } = parseCommandFile(processedFile, processedArguments, processedOptions);
14777
- const options = addDefaultOptions(normalizeFdSpecificOptions(initialOptions));
14874
+ const fdOptions = normalizeFdSpecificOptions(processedOptions);
14875
+ const options = addDefaultOptions(fdOptions);
14876
+ options.env = getEnv(options);
14877
+ const { file, commandArguments } = parseCommandFile(processedFile, processedArguments, options);
14778
14878
  validateTimeout(options);
14779
14879
  validateEncoding(options);
14780
14880
  validateIpcInputOption(options);
14781
14881
  validateCancelSignal(options);
14782
14882
  validateGracefulCancel(options);
14783
14883
  options.shell = normalizeFileUrl(options.shell);
14784
- options.env = getEnv(options);
14785
14884
  options.killSignal = normalizeKillSignal(options.killSignal);
14786
14885
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
14787
14886
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
14788
- if (g$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
14887
+ if (process$1.platform === "win32" && cmdExeRegExp.test(path.basename(file))) commandArguments.unshift("/q");
14789
14888
  return {
14790
14889
  file,
14791
14890
  commandArguments,
@@ -14814,7 +14913,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
14814
14913
  });
14815
14914
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
14816
14915
  const env = extendEnv ? {
14817
- ...g$1.env,
14916
+ ...process$1.env,
14818
14917
  ...envOption
14819
14918
  } : envOption;
14820
14919
  if (preferLocal || node) return npmRunPathEnv({
@@ -14828,7 +14927,7 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
14828
14927
  };
14829
14928
 
14830
14929
  //#endregion
14831
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/shell.js
14930
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/shell.js
14832
14931
  const concatenateShell = (file, commandArguments, options) => options.shell && commandArguments.length > 0 ? [
14833
14932
  [file, ...commandArguments].join(" "),
14834
14933
  [],
@@ -14945,7 +15044,7 @@ const u = Object.create(a, {
14945
15044
  }
14946
15045
  });
14947
15046
  function h({ preventCancel: r = !1 } = {}) {
14948
- const t = new c(this.getReader(), r), s = Object.create(u);
15047
+ const e = this.getReader(), t = new c(e, r), s = Object.create(u);
14949
15048
  return s[n] = t, s;
14950
15049
  }
14951
15050
 
@@ -14994,14 +15093,17 @@ const getStreamContents$1 = async (stream, { init, convertChunk, getSize, trunca
14994
15093
  const state = init();
14995
15094
  state.length = 0;
14996
15095
  try {
14997
- for await (const chunk of asyncIterable) appendChunk({
14998
- convertedChunk: convertChunk[getChunkType(chunk)](chunk, state),
14999
- state,
15000
- getSize,
15001
- truncateChunk,
15002
- addChunk,
15003
- maxBuffer
15004
- });
15096
+ for await (const chunk of asyncIterable) {
15097
+ const convertedChunk = convertChunk[getChunkType(chunk)](chunk, state);
15098
+ appendChunk({
15099
+ convertedChunk,
15100
+ state,
15101
+ getSize,
15102
+ truncateChunk,
15103
+ addChunk,
15104
+ maxBuffer
15105
+ });
15106
+ }
15005
15107
  appendFinalChunk({
15006
15108
  state,
15007
15109
  convertChunk,
@@ -15187,7 +15289,7 @@ const stringMethods = {
15187
15289
  };
15188
15290
 
15189
15291
  //#endregion
15190
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/max-buffer.js
15292
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/max-buffer.js
15191
15293
  const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
15192
15294
  if (!(error instanceof MaxBufferError)) throw error;
15193
15295
  if (fdNumber === "all") return error;
@@ -15243,7 +15345,7 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
15243
15345
  const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
15244
15346
 
15245
15347
  //#endregion
15246
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/message.js
15348
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/message.js
15247
15349
  const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
15248
15350
  const errorCode = originalError?.code;
15249
15351
  const prefix = getErrorPrefix({
@@ -15293,7 +15395,8 @@ const getErrorPrefix = ({ originalError, timedOut, timeout, isMaxBuffer, maxBuff
15293
15395
  const getForcefulSuffix = (isForcefullyTerminated, forceKillAfterDelay) => isForcefullyTerminated ? ` and was forcefully terminated after ${forceKillAfterDelay} milliseconds` : "";
15294
15396
  const getOriginalMessage = (originalError, cwd) => {
15295
15397
  if (originalError instanceof DiscardedError) return;
15296
- const escapedOriginalMessage = escapeLines(fixCwdError(isExecaError(originalError) ? originalError.originalMessage : String(originalError?.message ?? originalError), cwd));
15398
+ const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(originalError?.message ?? originalError);
15399
+ const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
15297
15400
  return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
15298
15401
  };
15299
15402
  const serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : inspect(ipcMessage);
@@ -15305,7 +15408,7 @@ const serializeMessageItem = (messageItem) => {
15305
15408
  };
15306
15409
 
15307
15410
  //#endregion
15308
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/result.js
15411
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/result.js
15309
15412
  const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
15310
15413
  command,
15311
15414
  escapedCommand,
@@ -15507,26 +15610,28 @@ function prettyMilliseconds(milliseconds, options) {
15507
15610
  add(Number(parsed.hours), "hour", "h");
15508
15611
  }
15509
15612
  add(Number(parsed.minutes), "minute", "m");
15510
- if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
15511
- const seconds = Number(parsed.seconds);
15512
- const milliseconds = Number(parsed.milliseconds);
15513
- const microseconds = Number(parsed.microseconds);
15514
- const nanoseconds = Number(parsed.nanoseconds);
15515
- add(seconds, "second", "s");
15516
- if (options.formatSubMilliseconds) {
15517
- add(milliseconds, "millisecond", "ms");
15518
- add(microseconds, "microsecond", "µs");
15519
- add(nanoseconds, "nanosecond", "ns");
15613
+ if (!options.hideSeconds) {
15614
+ if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
15615
+ const seconds = Number(parsed.seconds);
15616
+ const milliseconds = Number(parsed.milliseconds);
15617
+ const microseconds = Number(parsed.microseconds);
15618
+ const nanoseconds = Number(parsed.nanoseconds);
15619
+ add(seconds, "second", "s");
15620
+ if (options.formatSubMilliseconds) {
15621
+ add(milliseconds, "millisecond", "ms");
15622
+ add(microseconds, "microsecond", "µs");
15623
+ add(nanoseconds, "nanosecond", "ns");
15624
+ } else {
15625
+ const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
15626
+ const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
15627
+ const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
15628
+ add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
15629
+ }
15520
15630
  } else {
15521
- const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
15522
- const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
15523
- const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
15524
- add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
15631
+ const secondsFixed = floorDecimals((isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1e3 % 60, typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1);
15632
+ const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
15633
+ add(Number.parseFloat(secondsString), "second", "s", secondsString);
15525
15634
  }
15526
- } else {
15527
- const secondsFixed = floorDecimals((isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds) / 1e3 % 60, typeof options.secondsDecimalDigits === "number" ? options.secondsDecimalDigits : 1);
15528
- const secondsString = options.keepDecimalsOnWholeSeconds ? secondsFixed : secondsFixed.replace(/\.0+$/, "");
15529
- add(Number.parseFloat(secondsString), "second", "s", secondsString);
15530
15635
  }
15531
15636
  if (result.length === 0) return sign + "0" + (options.verbose ? " milliseconds" : "ms");
15532
15637
  const separator = options.colonNotation ? ":" : " ";
@@ -15535,7 +15640,7 @@ function prettyMilliseconds(milliseconds, options) {
15535
15640
  }
15536
15641
 
15537
15642
  //#endregion
15538
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/error.js
15643
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/error.js
15539
15644
  const logError = (result, verboseInfo) => {
15540
15645
  if (result.failed) verboseLog({
15541
15646
  type: "error",
@@ -15546,23 +15651,24 @@ const logError = (result, verboseInfo) => {
15546
15651
  };
15547
15652
 
15548
15653
  //#endregion
15549
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/complete.js
15654
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/complete.js
15550
15655
  const logResult = (result, verboseInfo) => {
15551
15656
  if (!isVerbose(verboseInfo)) return;
15552
15657
  logError(result, verboseInfo);
15553
15658
  logDuration(result, verboseInfo);
15554
15659
  };
15555
15660
  const logDuration = (result, verboseInfo) => {
15661
+ const verboseMessage = `(done in ${prettyMilliseconds(result.durationMs)})`;
15556
15662
  verboseLog({
15557
15663
  type: "duration",
15558
- verboseMessage: `(done in ${prettyMilliseconds(result.durationMs)})`,
15664
+ verboseMessage,
15559
15665
  verboseInfo,
15560
15666
  result
15561
15667
  });
15562
15668
  };
15563
15669
 
15564
15670
  //#endregion
15565
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/reject.js
15671
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/reject.js
15566
15672
  const handleResult = (result, verboseInfo, { reject }) => {
15567
15673
  logResult(result, verboseInfo);
15568
15674
  if (result.failed && reject) throw result;
@@ -15570,7 +15676,7 @@ const handleResult = (result, verboseInfo, { reject }) => {
15570
15676
  };
15571
15677
 
15572
15678
  //#endregion
15573
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/type.js
15679
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/type.js
15574
15680
  const getStdioItemType = (value, optionName) => {
15575
15681
  if (isAsyncGenerator(value)) return "asyncGenerator";
15576
15682
  if (isSyncGenerator(value)) return "generator";
@@ -15625,12 +15731,12 @@ const isTransformOptions = (value) => isPlainObject(value) && (value.transform !
15625
15731
  const isUrl = (value) => Object.prototype.toString.call(value) === "[object URL]";
15626
15732
  const isRegularUrl = (value) => isUrl(value) && value.protocol !== "file:";
15627
15733
  const isFilePathObject = (value) => isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value).every((key) => FILE_PATH_KEYS.has(key)) && isFilePathString(value.file);
15628
- const FILE_PATH_KEYS = new Set(["file", "append"]);
15734
+ const FILE_PATH_KEYS = /* @__PURE__ */ new Set(["file", "append"]);
15629
15735
  const isFilePathString = (file) => typeof file === "string";
15630
15736
  const isStdioValueObject = (value) => isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value).every((key) => STDIO_VALUE_KEYS.has(key)) && "value" in value;
15631
- const STDIO_VALUE_KEYS = new Set(["value", "input"]);
15737
+ const STDIO_VALUE_KEYS = /* @__PURE__ */ new Set(["value", "input"]);
15632
15738
  const isUnknownStdioString = (type, value) => type === "native" && typeof value === "string" && !KNOWN_STDIO_STRINGS.has(value);
15633
- const KNOWN_STDIO_STRINGS = new Set([
15739
+ const KNOWN_STDIO_STRINGS = /* @__PURE__ */ new Set([
15634
15740
  "ipc",
15635
15741
  "ignore",
15636
15742
  "inherit",
@@ -15644,24 +15750,24 @@ const isTransformStream = (value) => isReadableStream(value?.readable) && isWrit
15644
15750
  const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
15645
15751
  const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
15646
15752
  const isObject = (value) => typeof value === "object" && value !== null;
15647
- const TRANSFORM_TYPES = new Set([
15753
+ const TRANSFORM_TYPES = /* @__PURE__ */ new Set([
15648
15754
  "generator",
15649
15755
  "asyncGenerator",
15650
15756
  "duplex",
15651
15757
  "webTransform"
15652
15758
  ]);
15653
- const FILE_TYPES = new Set([
15759
+ const FILE_TYPES = /* @__PURE__ */ new Set([
15654
15760
  "fileUrl",
15655
15761
  "filePath",
15656
15762
  "fileNumber"
15657
15763
  ]);
15658
- const SPECIAL_DUPLICATE_TYPES_SYNC = new Set(["fileUrl", "filePath"]);
15659
- const SPECIAL_DUPLICATE_TYPES = new Set([
15764
+ const SPECIAL_DUPLICATE_TYPES_SYNC = /* @__PURE__ */ new Set(["fileUrl", "filePath"]);
15765
+ const SPECIAL_DUPLICATE_TYPES = /* @__PURE__ */ new Set([
15660
15766
  ...SPECIAL_DUPLICATE_TYPES_SYNC,
15661
15767
  "webStream",
15662
15768
  "nodeStream"
15663
15769
  ]);
15664
- const FORBID_DUPLICATE_TYPES = new Set(["webTransform", "duplex"]);
15770
+ const FORBID_DUPLICATE_TYPES = /* @__PURE__ */ new Set(["webTransform", "duplex"]);
15665
15771
  const TYPE_TO_MESSAGE = {
15666
15772
  generator: "a generator",
15667
15773
  asyncGenerator: "an async generator",
@@ -15680,7 +15786,7 @@ const TYPE_TO_MESSAGE = {
15680
15786
  };
15681
15787
 
15682
15788
  //#endregion
15683
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/object-mode.js
15789
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/object-mode.js
15684
15790
  const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
15685
15791
  const getOutputObjectModes = (objectMode, index, newTransforms) => {
15686
15792
  const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
@@ -15703,7 +15809,7 @@ const getFdObjectMode = (stdioItems, direction) => {
15703
15809
  };
15704
15810
 
15705
15811
  //#endregion
15706
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/normalize.js
15812
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/normalize.js
15707
15813
  const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
15708
15814
  const getTransforms = (stdioItems, optionName, direction, { encoding }) => {
15709
15815
  const transforms = stdioItems.filter(({ type }) => TRANSFORM_TYPES.has(type));
@@ -15784,7 +15890,7 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
15784
15890
  const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
15785
15891
 
15786
15892
  //#endregion
15787
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/direction.js
15893
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/direction.js
15788
15894
  const getStreamDirection = (stdioItems, fdNumber, optionName) => {
15789
15895
  const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
15790
15896
  if (directions.includes("input") && directions.includes("output")) throw new TypeError(`The \`${optionName}\` option must not be an array of both readable and writable values.`);
@@ -15825,22 +15931,22 @@ const guessStreamDirection = {
15825
15931
  }
15826
15932
  };
15827
15933
  const getStandardStreamDirection = (value) => {
15828
- if ([0, g$1.stdin].includes(value)) return "input";
15934
+ if ([0, process$1.stdin].includes(value)) return "input";
15829
15935
  if ([
15830
15936
  1,
15831
15937
  2,
15832
- g$1.stdout,
15833
- g$1.stderr
15938
+ process$1.stdout,
15939
+ process$1.stderr
15834
15940
  ].includes(value)) return "output";
15835
15941
  };
15836
15942
  const DEFAULT_DIRECTION = "output";
15837
15943
 
15838
15944
  //#endregion
15839
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/array.js
15945
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/array.js
15840
15946
  const normalizeIpcStdioArray = (stdioArray, ipc) => ipc ? [...stdioArray, "ipc"] : stdioArray;
15841
15947
 
15842
15948
  //#endregion
15843
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/stdio-option.js
15949
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/stdio-option.js
15844
15950
  const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
15845
15951
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
15846
15952
  validateIpcStdioOption(stdioArray);
@@ -15882,7 +15988,7 @@ const isOutputPipeObject = (stdioOption, fdNumber) => isStdioValueObject(stdioOp
15882
15988
  const isFixedOutputPipe = (fdNumber, input) => input === true && (fdNumber === 1 || fdNumber === 2);
15883
15989
 
15884
15990
  //#endregion
15885
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/arguments/fd-options.js
15991
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/arguments/fd-options.js
15886
15992
  const getToStream = (destination, to = "stdin") => {
15887
15993
  const isWritable = true;
15888
15994
  const { options, fileDescriptors } = SUBPROCESS_OPTIONS.get(destination);
@@ -15960,7 +16066,7 @@ const serializeOptionValue = (value) => {
15960
16066
  };
15961
16067
 
15962
16068
  //#endregion
15963
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/native.js
16069
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/native.js
15964
16070
  const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
15965
16071
  if (!isStdioArray || type !== "native") return stdioItem;
15966
16072
  return isSync ? handleNativeStreamSync({
@@ -16029,7 +16135,7 @@ const getStandardStream = (fdNumber, value, optionName) => {
16029
16135
  };
16030
16136
 
16031
16137
  //#endregion
16032
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/input-option.js
16138
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/input-option.js
16033
16139
  const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
16034
16140
  const handleInputOption = (input) => input === void 0 ? [] : [{
16035
16141
  type: getInputType(input),
@@ -16059,7 +16165,7 @@ const getInputFileType = (inputFile) => {
16059
16165
  };
16060
16166
 
16061
16167
  //#endregion
16062
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/duplicate.js
16168
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/duplicate.js
16063
16169
  const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => !hasSameValueAndDirection(stdioItemOne, stdioItemTwo) || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
16064
16170
  const hasSameValueAndDirection = (stdioItemOne, stdioItemTwo) => stdioItemOne.value === stdioItemTwo.value && stdioItemOne.direction === stdioItemTwo.direction;
16065
16171
  const getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync }) => {
@@ -16105,7 +16211,8 @@ const validateDuplicateStreamSync = ({ otherStdioItems, type, value, optionName,
16105
16211
  const getDuplicateStreamInstance = ({ otherStdioItems, type, value, optionName, direction }) => {
16106
16212
  const duplicateStdioItems = otherStdioItems.filter((stdioItem) => hasSameValue(stdioItem, value));
16107
16213
  if (duplicateStdioItems.length === 0) return;
16108
- throwOnDuplicateStream(duplicateStdioItems.find((stdioItem) => stdioItem.direction !== direction), optionName, type);
16214
+ const differentStdioItem = duplicateStdioItems.find((stdioItem) => stdioItem.direction !== direction);
16215
+ throwOnDuplicateStream(differentStdioItem, optionName, type);
16109
16216
  return direction === "output" ? duplicateStdioItems[0].stream : void 0;
16110
16217
  };
16111
16218
  const hasSameValue = ({ type, value }, secondValue) => {
@@ -16114,22 +16221,24 @@ const hasSameValue = ({ type, value }, secondValue) => {
16114
16221
  return value === secondValue;
16115
16222
  };
16116
16223
  const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }) => {
16117
- throwOnDuplicateStream(otherStdioItems.find(({ value: { transform } }) => transform === value.transform), optionName, type);
16224
+ const duplicateStdioItem = otherStdioItems.find(({ value: { transform } }) => transform === value.transform);
16225
+ throwOnDuplicateStream(duplicateStdioItem, optionName, type);
16118
16226
  };
16119
16227
  const throwOnDuplicateStream = (stdioItem, optionName, type) => {
16120
16228
  if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
16121
16229
  };
16122
16230
 
16123
16231
  //#endregion
16124
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/handle.js
16232
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/handle.js
16125
16233
  const handleStdio = (addProperties, options, verboseInfo, isSync) => {
16234
+ const initialFileDescriptors = normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
16235
+ stdioOption,
16236
+ fdNumber,
16237
+ options,
16238
+ isSync
16239
+ }));
16126
16240
  const fileDescriptors = getFinalFileDescriptors({
16127
- initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
16128
- stdioOption,
16129
- fdNumber,
16130
- options,
16131
- isSync
16132
- })),
16241
+ initialFileDescriptors,
16133
16242
  addProperties,
16134
16243
  options,
16135
16244
  isSync
@@ -16146,13 +16255,14 @@ const getFileDescriptor = ({ stdioOption, fdNumber, options, isSync }) => {
16146
16255
  optionName
16147
16256
  });
16148
16257
  const direction = getStreamDirection(initialStdioItems, fdNumber, optionName);
16149
- const normalizedStdioItems = normalizeTransforms(initialStdioItems.map((stdioItem) => handleNativeStream({
16258
+ const stdioItems = initialStdioItems.map((stdioItem) => handleNativeStream({
16150
16259
  stdioItem,
16151
16260
  isStdioArray,
16152
16261
  fdNumber,
16153
16262
  direction,
16154
16263
  isSync
16155
- })), optionName, direction, options);
16264
+ }));
16265
+ const normalizedStdioItems = normalizeTransforms(stdioItems, optionName, direction, options);
16156
16266
  const objectMode = getFdObjectMode(normalizedStdioItems, direction);
16157
16267
  validateFileObjectMode(normalizedStdioItems, objectMode);
16158
16268
  return {
@@ -16164,7 +16274,8 @@ const getFileDescriptor = ({ stdioOption, fdNumber, options, isSync }) => {
16164
16274
  const initializeStdioItems = ({ stdioOption, fdNumber, options, optionName }) => {
16165
16275
  const values = Array.isArray(stdioOption) ? stdioOption : [stdioOption];
16166
16276
  const inputStdioItems = handleInputOptions(options, fdNumber);
16167
- const stdioItems = filterDuplicates([...omitInheritedStdin(values.map((value) => initializeStdioItem(value, optionName)), inputStdioItems), ...inputStdioItems]);
16277
+ const initialStdioItems = [...omitInheritedStdin(values.map((value) => initializeStdioItem(value, optionName)), inputStdioItems), ...inputStdioItems];
16278
+ const stdioItems = filterDuplicates(initialStdioItems);
16168
16279
  const isStdioArray = stdioItems.length > 1;
16169
16280
  validateStdioArray(stdioItems, isStdioArray, optionName);
16170
16281
  validateStreams(stdioItems);
@@ -16197,7 +16308,7 @@ const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
16197
16308
  if (!isStdioArray) return;
16198
16309
  for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
16199
16310
  };
16200
- const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore"]);
16311
+ const INVALID_STDIO_ARRAY_OPTIONS = /* @__PURE__ */ new Set(["ignore"]);
16201
16312
  const validateStreams = (stdioItems) => {
16202
16313
  for (const stdioItem of stdioItems) validateFileStdio(stdioItem);
16203
16314
  };
@@ -16267,7 +16378,7 @@ const forwardStdio = (stdioItems) => {
16267
16378
  };
16268
16379
 
16269
16380
  //#endregion
16270
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/handle-sync.js
16381
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/handle-sync.js
16271
16382
  const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
16272
16383
  const forbiddenIfSync = ({ type, optionName }) => {
16273
16384
  throwInvalidSyncValue(optionName, TYPE_TO_MESSAGE[type]);
@@ -16320,12 +16431,12 @@ const addPropertiesSync = {
16320
16431
  };
16321
16432
 
16322
16433
  //#endregion
16323
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/strip-newline.js
16434
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/strip-newline.js
16324
16435
  const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
16325
16436
  const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
16326
16437
 
16327
16438
  //#endregion
16328
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/split.js
16439
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/split.js
16329
16440
  const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
16330
16441
  const splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
16331
16442
  const splitLinesItemSync = (chunk, preserveNewlines) => {
@@ -16398,7 +16509,7 @@ const linesUint8ArrayInfo = {
16398
16509
  };
16399
16510
 
16400
16511
  //#endregion
16401
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/validate.js
16512
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/validate.js
16402
16513
  const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
16403
16514
  const validateStringTransformInput = function* (optionName, chunk) {
16404
16515
  if (typeof chunk !== "string" && !isUint8Array(chunk) && !Buffer$1.isBuffer(chunk)) throw new TypeError(`The \`${optionName}\` option's transform must use "objectMode: true" to receive as input: ${typeof chunk}.`);
@@ -16421,7 +16532,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
16421
16532
  };
16422
16533
 
16423
16534
  //#endregion
16424
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/encoding-transform.js
16535
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/encoding-transform.js
16425
16536
  const getEncodingTransformGenerator = (binary, encoding, skipped) => {
16426
16537
  if (skipped) return;
16427
16538
  if (binary) return { transform: encodingUint8ArrayGenerator.bind(void 0, new TextEncoder()) };
@@ -16445,7 +16556,7 @@ const encodingStringFinal = function* (stringDecoder) {
16445
16556
  };
16446
16557
 
16447
16558
  //#endregion
16448
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/run-async.js
16559
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/run-async.js
16449
16560
  const pushChunks = callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
16450
16561
  state.currentIterable = getChunks(...getChunksArguments);
16451
16562
  try {
@@ -16481,7 +16592,7 @@ const identityGenerator$1 = function* (chunk) {
16481
16592
  };
16482
16593
 
16483
16594
  //#endregion
16484
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/run-sync.js
16595
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/run-sync.js
16485
16596
  const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
16486
16597
  try {
16487
16598
  for (const chunk of getChunksSync(...getChunksArguments)) transformStream.push(chunk);
@@ -16511,7 +16622,7 @@ const identityGenerator = function* (chunk) {
16511
16622
  };
16512
16623
 
16513
16624
  //#endregion
16514
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/transform/generator.js
16625
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/transform/generator.js
16515
16626
  const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
16516
16627
  const state = {};
16517
16628
  const generators = addInternalGenerators(value, encoding, optionName);
@@ -16541,7 +16652,10 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
16541
16652
  const runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
16542
16653
  const generators = stdioItems.filter(({ type }) => type === "generator");
16543
16654
  const reversedGenerators = isInput ? generators.reverse() : generators;
16544
- for (const { value, optionName } of reversedGenerators) chunks = runTransformSync(addInternalGenerators(value, encoding, optionName), chunks);
16655
+ for (const { value, optionName } of reversedGenerators) {
16656
+ const generators = addInternalGenerators(value, encoding, optionName);
16657
+ chunks = runTransformSync(generators, chunks);
16658
+ }
16545
16659
  return chunks;
16546
16660
  };
16547
16661
  const addInternalGenerators = ({ transform, final, binary, writableObjectMode, readableObjectMode, preserveNewlines }, encoding, optionName) => {
@@ -16565,7 +16679,7 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
16565
16679
  };
16566
16680
 
16567
16681
  //#endregion
16568
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/input-sync.js
16682
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/input-sync.js
16569
16683
  const addInputOptionsSync = (fileDescriptors, options) => {
16570
16684
  for (const fdNumber of getInputFdNumbers(fileDescriptors)) addInputOptionSync(fileDescriptors, fdNumber, options);
16571
16685
  };
@@ -16578,7 +16692,8 @@ const addInputOptionSync = (fileDescriptors, fdNumber, options) => {
16578
16692
  const [{ type, optionName }] = allStdioItems;
16579
16693
  throw new TypeError(`Only the \`stdin\` option, not \`${optionName}\`, can be ${TYPE_TO_MESSAGE[type]} with synchronous methods.`);
16580
16694
  }
16581
- options.input = joinToUint8Array(allStdioItems.map(({ contents }) => contents).map((contents) => applySingleInputGeneratorsSync(contents, stdioItems)));
16695
+ const transformedContents = allStdioItems.map(({ contents }) => contents).map((contents) => applySingleInputGeneratorsSync(contents, stdioItems));
16696
+ options.input = joinToUint8Array(transformedContents);
16582
16697
  };
16583
16698
  const applySingleInputGeneratorsSync = (contents, stdioItems) => {
16584
16699
  const newContents = runGeneratorsSync(contents, stdioItems, "utf8", true);
@@ -16591,10 +16706,10 @@ const validateSerializable = (newContents) => {
16591
16706
  };
16592
16707
 
16593
16708
  //#endregion
16594
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/output.js
16709
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/output.js
16595
16710
  const shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && isFdVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
16596
16711
  const isFdVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
16597
- const PIPED_STDIO_VALUES = new Set(["pipe", "overlapped"]);
16712
+ const PIPED_STDIO_VALUES = /* @__PURE__ */ new Set(["pipe", "overlapped"]);
16598
16713
  const logLines = async (linesIterable, stream, fdNumber, verboseInfo) => {
16599
16714
  for await (const line of linesIterable) if (!isPipingStream(stream)) logLine(line, fdNumber, verboseInfo);
16600
16715
  };
@@ -16603,16 +16718,17 @@ const logLinesSync = (linesArray, fdNumber, verboseInfo) => {
16603
16718
  };
16604
16719
  const isPipingStream = (stream) => stream._readableState.pipes.length > 0;
16605
16720
  const logLine = (line, fdNumber, verboseInfo) => {
16721
+ const verboseMessage = serializeVerboseMessage(line);
16606
16722
  verboseLog({
16607
16723
  type: "output",
16608
- verboseMessage: serializeVerboseMessage(line),
16724
+ verboseMessage,
16609
16725
  fdNumber,
16610
16726
  verboseInfo
16611
16727
  });
16612
16728
  };
16613
16729
 
16614
16730
  //#endregion
16615
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/output-sync.js
16731
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/output-sync.js
16616
16732
  const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
16617
16733
  if (output === null) return { output: Array.from({ length: 3 }) };
16618
16734
  const state = {};
@@ -16632,10 +16748,12 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
16632
16748
  };
16633
16749
  const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
16634
16750
  if (result === null) return;
16635
- const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
16751
+ const truncatedResult = truncateMaxBufferSync(result, isMaxBuffer, maxBuffer);
16752
+ const uint8ArrayResult = bufferToUint8Array(truncatedResult);
16636
16753
  const { stdioItems, objectMode } = fileDescriptors[fdNumber];
16754
+ const chunks = runOutputGeneratorsSync([uint8ArrayResult], stdioItems, encoding, state);
16637
16755
  const { serializedResult, finalResult = serializedResult } = serializeChunks({
16638
- chunks: runOutputGeneratorsSync([uint8ArrayResult], stdioItems, encoding, state),
16756
+ chunks,
16639
16757
  objectMode,
16640
16758
  encoding,
16641
16759
  lines,
@@ -16705,7 +16823,7 @@ const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
16705
16823
  };
16706
16824
 
16707
16825
  //#endregion
16708
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/all-sync.js
16826
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/all-sync.js
16709
16827
  const getAllSync = ([, stdout, stderr], options) => {
16710
16828
  if (!options.all) return;
16711
16829
  if (stdout === void 0) return stderr;
@@ -16717,7 +16835,7 @@ const getAllSync = ([, stdout, stderr], options) => {
16717
16835
  };
16718
16836
 
16719
16837
  //#endregion
16720
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/exit-async.js
16838
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/exit-async.js
16721
16839
  const waitForExit = async (subprocess, context) => {
16722
16840
  const [exitCode, signal] = await waitForExitOrError(subprocess);
16723
16841
  context.isForcefullyTerminated ??= false;
@@ -16744,7 +16862,7 @@ const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signa
16744
16862
  const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
16745
16863
 
16746
16864
  //#endregion
16747
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/exit-sync.js
16865
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/exit-sync.js
16748
16866
  const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
16749
16867
  const resultError = getResultError(error, exitCode, signal);
16750
16868
  return {
@@ -16761,10 +16879,10 @@ const getResultError = (error, exitCode, signal) => {
16761
16879
  };
16762
16880
 
16763
16881
  //#endregion
16764
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/main-sync.js
16882
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/main-sync.js
16765
16883
  const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
16766
16884
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleSyncArguments(rawFile, rawArguments, rawOptions);
16767
- return handleResult(spawnSubprocessSync({
16885
+ const result = spawnSubprocessSync({
16768
16886
  file,
16769
16887
  commandArguments,
16770
16888
  options,
@@ -16773,11 +16891,13 @@ const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
16773
16891
  verboseInfo,
16774
16892
  fileDescriptors,
16775
16893
  startTime
16776
- }), verboseInfo, options);
16894
+ });
16895
+ return handleResult(result, verboseInfo, options);
16777
16896
  };
16778
16897
  const handleSyncArguments = (rawFile, rawArguments, rawOptions) => {
16779
16898
  const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
16780
- const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, normalizeSyncOptions(rawOptions));
16899
+ const syncOptions = normalizeSyncOptions(rawOptions);
16900
+ const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, syncOptions);
16781
16901
  validateSyncOptions(options);
16782
16902
  return {
16783
16903
  file,
@@ -16823,14 +16943,16 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
16823
16943
  isMaxBuffer,
16824
16944
  verboseInfo
16825
16945
  });
16946
+ const stdio = output.map((stdioOutput, fdNumber) => stripNewline(stdioOutput, options, fdNumber));
16947
+ const all = stripNewline(getAllSync(output, options), options, "all");
16826
16948
  return getSyncResult({
16827
16949
  error,
16828
16950
  exitCode,
16829
16951
  signal,
16830
16952
  timedOut,
16831
16953
  isMaxBuffer,
16832
- stdio: output.map((stdioOutput, fdNumber) => stripNewline(stdioOutput, options, fdNumber)),
16833
- all: stripNewline(getAllSync(output, options), options, "all"),
16954
+ stdio,
16955
+ all,
16834
16956
  options,
16835
16957
  command,
16836
16958
  escapedCommand,
@@ -16840,7 +16962,8 @@ const spawnSubprocessSync = ({ file, commandArguments, options, command, escaped
16840
16962
  const runSubprocessSync = ({ file, commandArguments, options, command, escapedCommand, fileDescriptors, startTime }) => {
16841
16963
  try {
16842
16964
  addInputOptionsSync(fileDescriptors, options);
16843
- return spawnSync(...concatenateShell(file, commandArguments, normalizeSpawnSyncOptions(options)));
16965
+ const normalizedOptions = normalizeSpawnSyncOptions(options);
16966
+ return spawnSync(...concatenateShell(file, commandArguments, normalizedOptions));
16844
16967
  } catch (error) {
16845
16968
  return makeEarlyError({
16846
16969
  error,
@@ -16886,7 +17009,7 @@ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio,
16886
17009
  });
16887
17010
 
16888
17011
  //#endregion
16889
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/get-one.js
17012
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/get-one.js
16890
17013
  const internalGetOneMessageOptions = Symbol("internalGetOneMessageOptions");
16891
17014
  const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, options = {}) => {
16892
17015
  const { reference = true, filter } = options;
@@ -16955,7 +17078,7 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
16955
17078
  };
16956
17079
 
16957
17080
  //#endregion
16958
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/get-each.js
17081
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/get-each.js
16959
17082
  const internalGetEachMessageOptions = Symbol("internalGetEachMessageOptions");
16960
17083
  const getEachMessage$1 = (subprocessInfo, options = {}) => {
16961
17084
  const { reference = true } = options;
@@ -17044,14 +17167,14 @@ const throwIfStrictError = ({ error }) => {
17044
17167
  };
17045
17168
 
17046
17169
  //#endregion
17047
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/methods.js
17170
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/methods.js
17048
17171
  const addIpcMethods = (target, subprocess, { ipc }) => {
17049
17172
  Object.assign(target, getIpcMethods(subprocess, false, ipc, target));
17050
17173
  };
17051
17174
  const getIpcExport = () => {
17052
- const anyProcess = g$1;
17175
+ const anyProcess = process$1;
17053
17176
  const isSubprocess = true;
17054
- const isIpc = g$1.channel !== void 0;
17177
+ const isIpc = process$1.channel !== void 0;
17055
17178
  return {
17056
17179
  ...getIpcMethods(anyProcess, isSubprocess, isIpc),
17057
17180
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -17085,22 +17208,23 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc, waitProcess = anyProcess)
17085
17208
  });
17086
17209
 
17087
17210
  //#endregion
17088
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/return/early-error.js
17211
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/return/early-error.js
17089
17212
  const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
17090
17213
  cleanupCustomStreams(fileDescriptors);
17091
17214
  const subprocess = new ChildProcess();
17092
17215
  const all = createDummyStreams(subprocess, fileDescriptors);
17216
+ const earlyError = makeEarlyError({
17217
+ error,
17218
+ command,
17219
+ escapedCommand,
17220
+ fileDescriptors,
17221
+ options,
17222
+ startTime,
17223
+ isSync: false
17224
+ });
17093
17225
  return {
17094
17226
  subprocess,
17095
- promise: handleDummyPromise(makeEarlyError({
17096
- error,
17097
- command,
17098
- escapedCommand,
17099
- fileDescriptors,
17100
- options,
17101
- startTime,
17102
- isSync: false
17103
- }), verboseInfo, options),
17227
+ promise: handleDummyPromise(earlyError, verboseInfo, options),
17104
17228
  all: options.all ? all : void 0,
17105
17229
  convertedStreams: {
17106
17230
  readable,
@@ -17152,7 +17276,7 @@ const iterable = async function* () {};
17152
17276
  const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
17153
17277
 
17154
17278
  //#endregion
17155
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/stdio/handle-async.js
17279
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/stdio/handle-async.js
17156
17280
  const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
17157
17281
  const forbiddenIfAsync = ({ type, optionName }) => {
17158
17282
  throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);
@@ -17301,8 +17425,10 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
17301
17425
  controller.abort();
17302
17426
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
17303
17427
  }
17304
- if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
17305
- else endStream(passThroughStream);
17428
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) {
17429
+ if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
17430
+ else endStream(passThroughStream);
17431
+ }
17306
17432
  };
17307
17433
  const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
17308
17434
  try {
@@ -17360,7 +17486,7 @@ const PASSTHROUGH_LISTENERS_COUNT = 2;
17360
17486
  const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
17361
17487
 
17362
17488
  //#endregion
17363
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/pipeline.js
17489
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/pipeline.js
17364
17490
  const pipeStreams = (source, destination) => {
17365
17491
  source.pipe(destination);
17366
17492
  onSourceFinish(source, destination);
@@ -17396,7 +17522,7 @@ const abortSourceStream = (source) => {
17396
17522
  };
17397
17523
 
17398
17524
  //#endregion
17399
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/output-async.js
17525
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/output-async.js
17400
17526
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
17401
17527
  const pipeGroups = /* @__PURE__ */ new Map();
17402
17528
  for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
@@ -17412,7 +17538,10 @@ const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
17412
17538
  controller
17413
17539
  });
17414
17540
  }
17415
- for (const [outputStream, inputStreams] of pipeGroups) pipeStreams(inputStreams.length === 1 ? inputStreams[0] : mergeStreams(inputStreams), outputStream);
17541
+ for (const [outputStream, inputStreams] of pipeGroups) {
17542
+ const inputStream = inputStreams.length === 1 ? inputStreams[0] : mergeStreams(inputStreams);
17543
+ pipeStreams(inputStream, outputStream);
17544
+ }
17416
17545
  };
17417
17546
  const pipeTransform = (subprocess, stream, direction, fdNumber) => {
17418
17547
  if (direction === "output") pipeStreams(subprocess.stdio[fdNumber], stream);
@@ -17439,8 +17568,8 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
17439
17568
  const MAX_LISTENERS_INCREMENT = 2;
17440
17569
 
17441
17570
  //#endregion
17442
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/kill-descendants.js
17443
- const isWindows = g$1.platform === "win32";
17571
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/kill-descendants.js
17572
+ const isWindows = process$1.platform === "win32";
17444
17573
  const getSpawnOptions = (options) => options.killDescendants && !isWindows ? {
17445
17574
  ...options,
17446
17575
  detached: true
@@ -17452,7 +17581,7 @@ const getKillFunction = (subprocess, { killDescendants }) => {
17452
17581
  const killDescendantsUnix = (subprocess, signal) => {
17453
17582
  if (subprocess.pid === void 0) return false;
17454
17583
  try {
17455
- return g$1.kill(-subprocess.pid, signal);
17584
+ return process$1.kill(-subprocess.pid, signal);
17456
17585
  } catch {
17457
17586
  return subprocess.kill(signal);
17458
17587
  }
@@ -17472,7 +17601,7 @@ const killDescendantsWindows = (subprocess, signal) => {
17472
17601
  return true;
17473
17602
  };
17474
17603
  const getTaskkillFile = () => {
17475
- const windowsDirectory = [g$1.env.SystemRoot, g$1.env.windir].find((directory) => directory && isWindowsDriveAbsolutePath(directory));
17604
+ const windowsDirectory = [process$1.env.SystemRoot, process$1.env.windir].find((directory) => directory && isWindowsDriveAbsolutePath(directory));
17476
17605
  return windowsDirectory === void 0 ? void 0 : path$1.join(windowsDirectory, "System32", "taskkill.exe");
17477
17606
  };
17478
17607
  const isWindowsDriveAbsolutePath = (directory) => {
@@ -17583,7 +17712,7 @@ var SignalExitFallback = class extends SignalExitBase {
17583
17712
  };
17584
17713
  var SignalExit = class extends SignalExitBase {
17585
17714
  /* c8 ignore start */
17586
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
17715
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
17587
17716
  /* c8 ignore stop */
17588
17717
  #emitter = new Emitter();
17589
17718
  #process;
@@ -17678,11 +17807,11 @@ var SignalExit = class extends SignalExitBase {
17678
17807
  } else return og.call(this.#process, ev, ...args);
17679
17808
  }
17680
17809
  };
17681
- const process$1 = globalThis.process;
17682
- const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
17810
+ const process$2 = globalThis.process;
17811
+ const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
17683
17812
 
17684
17813
  //#endregion
17685
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/terminate/cleanup.js
17814
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/terminate/cleanup.js
17686
17815
  const cleanupOnExit = (kill, { cleanup, detached }, { signal }) => {
17687
17816
  if (!cleanup || detached) return;
17688
17817
  const removeExitHandler = onExit(() => {
@@ -17694,7 +17823,7 @@ const cleanupOnExit = (kill, { cleanup, detached }, { signal }) => {
17694
17823
  };
17695
17824
 
17696
17825
  //#endregion
17697
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/concurrent.js
17826
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/concurrent.js
17698
17827
  const initializeConcurrentStreams = () => ({
17699
17828
  readableDestroy: /* @__PURE__ */ new WeakMap(),
17700
17829
  writableFinal: /* @__PURE__ */ new WeakMap(),
@@ -17718,7 +17847,7 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
17718
17847
  };
17719
17848
 
17720
17849
  //#endregion
17721
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/iterate.js
17850
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/iterate.js
17722
17851
  const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
17723
17852
  const controller = new AbortController();
17724
17853
  stopReadingOnExit(subprocess, controller);
@@ -17763,12 +17892,13 @@ const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
17763
17892
  }
17764
17893
  };
17765
17894
  const iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
17895
+ const onStdoutChunk = on(stream, "data", {
17896
+ signal: controller.signal,
17897
+ highWaterMark: HIGH_WATER_MARK,
17898
+ highWatermark: HIGH_WATER_MARK
17899
+ });
17766
17900
  return iterateOnData({
17767
- onStdoutChunk: on(stream, "data", {
17768
- signal: controller.signal,
17769
- highWaterMark: HIGH_WATER_MARK,
17770
- highWatermark: HIGH_WATER_MARK
17771
- }),
17901
+ onStdoutChunk,
17772
17902
  controller,
17773
17903
  binary,
17774
17904
  shouldEncode,
@@ -17798,18 +17928,19 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
17798
17928
  const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
17799
17929
 
17800
17930
  //#endregion
17801
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/iterable.js
17931
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/iterable.js
17802
17932
  const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
17803
17933
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
17804
17934
  const subprocessStdout = getFromStream(subprocess, from);
17805
- return iterateOnStdoutData(iterateOnSubprocessStream({
17935
+ const onStdoutData = iterateOnSubprocessStream({
17806
17936
  subprocessStdout,
17807
17937
  subprocess,
17808
17938
  binary,
17809
17939
  shouldEncode: true,
17810
17940
  encoding,
17811
17941
  preserveNewlines
17812
- }), subprocessStdout, subprocess);
17942
+ });
17943
+ return iterateOnStdoutData(onStdoutData, subprocessStdout, subprocess);
17813
17944
  };
17814
17945
  const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, subprocess) {
17815
17946
  try {
@@ -17821,7 +17952,7 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
17821
17952
  };
17822
17953
 
17823
17954
  //#endregion
17824
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/wait-stream.js
17955
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/wait-stream.js
17825
17956
  const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
17826
17957
  const state = handleStdinDestroy(stream, streamInfo);
17827
17958
  const abortController = new AbortController();
@@ -17865,7 +17996,7 @@ const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
17865
17996
  const isStreamEpipe = (error) => error?.code === "EPIPE";
17866
17997
 
17867
17998
  //#endregion
17868
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/shared.js
17999
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/shared.js
17869
18000
  const safeWaitForSubprocessStdin = async (subprocessStdin) => {
17870
18001
  if (subprocessStdin === void 0) return;
17871
18002
  try {
@@ -17902,7 +18033,7 @@ const destroyOtherStream = (stream, isOpen, error) => {
17902
18033
  };
17903
18034
 
17904
18035
  //#endregion
17905
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/readable.js
18036
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/readable.js
17906
18037
  const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
17907
18038
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
17908
18039
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
@@ -18004,13 +18135,13 @@ const destroyOtherReadable = (stream, error) => {
18004
18135
  };
18005
18136
 
18006
18137
  //#endregion
18007
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/web.js
18138
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/web.js
18008
18139
  const createReadableStream = (subprocess, readableOptions) => Readable.toWeb(subprocess.readable(readableOptions));
18009
18140
  const createWritableStream = (subprocess, writableOptions) => Writable.toWeb(subprocess.writable(writableOptions));
18010
18141
  const createTransformStream = (subprocess, duplexOptions) => Duplex.toWeb(subprocess.duplex(duplexOptions));
18011
18142
 
18012
18143
  //#endregion
18013
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/pipe-arguments.js
18144
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/pipe-arguments.js
18014
18145
  const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
18015
18146
  const startTime = getStartTime();
18016
18147
  const { destination, destinationStream, destinationError, from, unpipeSignal } = getDestinationStream(boundOptions, createNested, pipeArguments);
@@ -18078,7 +18209,7 @@ const getSourceStream = (source, from) => {
18078
18209
  };
18079
18210
 
18080
18211
  //#endregion
18081
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/throw.js
18212
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/throw.js
18082
18213
  const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
18083
18214
  const error = getPipeArgumentsError({
18084
18215
  sourceStream,
@@ -18116,7 +18247,7 @@ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTim
18116
18247
  const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
18117
18248
 
18118
18249
  //#endregion
18119
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/sequence.js
18250
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/sequence.js
18120
18251
  const waitForBothSubprocesses = async (subprocessPromises) => {
18121
18252
  const [{ status: sourceStatus, reason: sourceReason, value: sourceResult = sourceReason }, { status: destinationStatus, reason: destinationReason, value: destinationResult = destinationReason }] = await subprocessPromises;
18122
18253
  if (!destinationResult.pipedFrom.includes(sourceResult)) destinationResult.pipedFrom.push(sourceResult);
@@ -18126,7 +18257,7 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
18126
18257
  };
18127
18258
 
18128
18259
  //#endregion
18129
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/streaming.js
18260
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/streaming.js
18130
18261
  const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
18131
18262
  const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
18132
18263
  incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
@@ -18160,7 +18291,7 @@ const SOURCE_LISTENERS_PER_PIPE = 2;
18160
18291
  const DESTINATION_LISTENERS_PER_PIPE = 1;
18161
18292
 
18162
18293
  //#endregion
18163
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/abort.js
18294
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/abort.js
18164
18295
  const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
18165
18296
  const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
18166
18297
  await aborted(unpipeSignal, sourceStream);
@@ -18174,7 +18305,7 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
18174
18305
  };
18175
18306
 
18176
18307
  //#endregion
18177
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/pipe/setup.js
18308
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/pipe/setup.js
18178
18309
  const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
18179
18310
  if (isPlainObject(pipeArguments[0])) return pipeToSubprocess.bind(void 0, {
18180
18311
  ...sourceInfo,
@@ -18264,7 +18395,8 @@ const forwardIpcMethods = (promise, destination, pipeFailureSignal) => {
18264
18395
  };
18265
18396
  const getOnePipeMessage = (destination, pipeFailureSignal, ...arguments_) => {
18266
18397
  const controller = new AbortController();
18267
- return waitForOnePipeMessage(pipeFailureSignal, destination.getOneMessage(...addPipeOptions(arguments_, controller.signal, internalGetOneMessageOptions)), controller);
18398
+ const messagePromise = destination.getOneMessage(...addPipeOptions(arguments_, controller.signal, internalGetOneMessageOptions));
18399
+ return waitForOnePipeMessage(pipeFailureSignal, messagePromise, controller);
18268
18400
  };
18269
18401
  const waitForOnePipeMessage = async (pipeFailureSignal, messagePromise, controller) => {
18270
18402
  try {
@@ -18353,7 +18485,7 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
18353
18485
  const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
18354
18486
 
18355
18487
  //#endregion
18356
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/io/contents.js
18488
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/io/contents.js
18357
18489
  const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
18358
18490
  const logPromise = logOutputAsync({
18359
18491
  stream,
@@ -18368,12 +18500,13 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
18368
18500
  await Promise.all([resumeStream(stream), logPromise]);
18369
18501
  return;
18370
18502
  }
18503
+ const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline, fdNumber);
18371
18504
  const iterable = iterateForResult({
18372
18505
  stream,
18373
18506
  onStreamEnd,
18374
18507
  lines,
18375
18508
  encoding,
18376
- stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
18509
+ stripFinalNewline: stripFinalNewlineValue,
18377
18510
  allMixed
18378
18511
  });
18379
18512
  const [output] = await Promise.all([getStreamContents({
@@ -18393,14 +18526,15 @@ const logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixe
18393
18526
  verboseInfo,
18394
18527
  fdNumber
18395
18528
  })) return;
18396
- await logLines(iterateForResult({
18529
+ const linesIterable = iterateForResult({
18397
18530
  stream,
18398
18531
  onStreamEnd,
18399
18532
  lines: true,
18400
18533
  encoding,
18401
18534
  stripFinalNewline: true,
18402
18535
  allMixed
18403
- }), stream, fdNumber, verboseInfo);
18536
+ });
18537
+ await logLines(linesIterable, stream, fdNumber, verboseInfo);
18404
18538
  };
18405
18539
  const resumeStream = async (stream) => {
18406
18540
  await setImmediate$1();
@@ -18432,7 +18566,7 @@ const getBufferedData = async (streamPromise) => {
18432
18566
  const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
18433
18567
 
18434
18568
  //#endregion
18435
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/stdio.js
18569
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/stdio.js
18436
18570
  const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
18437
18571
  stream,
18438
18572
  fdNumber,
@@ -18469,7 +18603,7 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
18469
18603
  };
18470
18604
 
18471
18605
  //#endregion
18472
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/all-async.js
18606
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/all-async.js
18473
18607
  const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
18474
18608
  const waitForAllStream = ({ subprocess, all, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
18475
18609
  ...getAllStream(subprocess, all, buffer),
@@ -18504,19 +18638,20 @@ const getAllStream = ({ stdout, stderr }, all, [, bufferStdout, bufferStderr]) =
18504
18638
  const getAllMixed = ({ stdout, stderr }, all) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
18505
18639
 
18506
18640
  //#endregion
18507
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/verbose/ipc.js
18641
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/verbose/ipc.js
18508
18642
  const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
18509
18643
  const logIpcOutput = (message, verboseInfo) => {
18644
+ const verboseMessage = serializeVerboseMessage(message);
18510
18645
  verboseLog({
18511
18646
  type: "ipc",
18512
- verboseMessage: serializeVerboseMessage(message),
18647
+ verboseMessage,
18513
18648
  fdNumber: "ipc",
18514
18649
  verboseInfo
18515
18650
  });
18516
18651
  };
18517
18652
 
18518
18653
  //#endregion
18519
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/ipc/buffer-messages.js
18654
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/ipc/buffer-messages.js
18520
18655
  const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
18521
18656
  if (!ipc) return ipcOutput;
18522
18657
  const isVerbose = shouldLogIpc(verboseInfo);
@@ -18544,7 +18679,7 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
18544
18679
  };
18545
18680
 
18546
18681
  //#endregion
18547
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/resolve/wait-subprocess.js
18682
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/resolve/wait-subprocess.js
18548
18683
  const waitForSubprocessResult = async ({ subprocess, kill, all, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
18549
18684
  const exitPromise = waitForExit(subprocess, context);
18550
18685
  const streamInfo = {
@@ -18642,7 +18777,7 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
18642
18777
  };
18643
18778
 
18644
18779
  //#endregion
18645
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/writable.js
18780
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/writable.js
18646
18781
  const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
18647
18782
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
18648
18783
  const writable = new Writable({
@@ -18712,7 +18847,7 @@ const destroyOtherWritable = (stream, error) => {
18712
18847
  };
18713
18848
 
18714
18849
  //#endregion
18715
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/duplex.js
18850
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/duplex.js
18716
18851
  const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
18717
18852
  const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
18718
18853
  const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
@@ -18766,7 +18901,7 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
18766
18901
  };
18767
18902
 
18768
18903
  //#endregion
18769
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/convert/add.js
18904
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/convert/add.js
18770
18905
  const addConvertedStreams = (subprocess, { encoding }) => {
18771
18906
  const concurrentStreams = initializeConcurrentStreams();
18772
18907
  subprocess.readable = createReadable.bind(void 0, {
@@ -18791,11 +18926,11 @@ const addConvertedStreams = (subprocess, { encoding }) => {
18791
18926
  };
18792
18927
 
18793
18928
  //#endregion
18794
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/promise.js
18929
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/promise.js
18795
18930
  const mergePromise = (promise, properties) => Object.assign(promise, properties);
18796
18931
 
18797
18932
  //#endregion
18798
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/main-async.js
18933
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/main-async.js
18799
18934
  const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
18800
18935
  const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleAsyncArguments(rawFile, rawArguments, rawOptions);
18801
18936
  const { subprocess: nodeChildProcess, promise, kill, all, convertedStreams } = spawnSubprocessAsync({
@@ -18936,19 +19071,22 @@ const handlePromise = async ({ subprocess, kill, all: allStream, options, startT
18936
19071
  });
18937
19072
  controller.abort();
18938
19073
  onInternalError.resolve();
18939
- return handleResult(getAsyncResult({
19074
+ const stdio = stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber));
19075
+ const all = stripNewline(allResult, options, "all");
19076
+ const result = getAsyncResult({
18940
19077
  errorInfo,
18941
19078
  exitCode,
18942
19079
  signal,
18943
- stdio: stdioResults.map((stdioResult, fdNumber) => stripNewline(stdioResult, options, fdNumber)),
18944
- all: stripNewline(allResult, options, "all"),
19080
+ stdio,
19081
+ all,
18945
19082
  ipcOutput,
18946
19083
  context,
18947
19084
  options,
18948
19085
  command,
18949
19086
  escapedCommand,
18950
19087
  startTime
18951
- }), verboseInfo, options);
19088
+ });
19089
+ return handleResult(result, verboseInfo, options);
18952
19090
  };
18953
19091
  const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, context, options, command, escapedCommand, startTime }) => "error" in errorInfo ? makeError({
18954
19092
  error: errorInfo.error,
@@ -18978,7 +19116,7 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
18978
19116
  });
18979
19117
 
18980
19118
  //#endregion
18981
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/bind.js
19119
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/bind.js
18982
19120
  const mergeOptions = (boundOptions, options) => {
18983
19121
  const safeBoundOptions = {
18984
19122
  __proto__: null,
@@ -18997,10 +19135,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
18997
19135
  };
18998
19136
  return optionValue;
18999
19137
  };
19000
- const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
19138
+ const DEEP_OPTIONS = /* @__PURE__ */ new Set(["env", ...FD_SPECIFIC_OPTIONS]);
19001
19139
 
19002
19140
  //#endregion
19003
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/create.js
19141
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/create.js
19004
19142
  const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
19005
19143
  const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
19006
19144
  const boundExeca = (...execaArguments) => callBoundExeca({
@@ -19025,7 +19163,8 @@ const callBoundExeca = ({ mapArguments, deepOptions = {}, boundOptions = {}, set
19025
19163
  return isSync ? execaCoreSync(file, commandArguments, options) : execaCoreAsync(file, commandArguments, options, createNested);
19026
19164
  };
19027
19165
  const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions, boundOptions }) => {
19028
- const [initialFile, initialArguments, initialOptions] = normalizeParameters(...isTemplateString(firstArgument) ? parseTemplates(firstArgument, nextArguments) : [firstArgument, ...nextArguments]);
19166
+ const callArguments = isTemplateString(firstArgument) ? parseTemplates(firstArgument, nextArguments) : [firstArgument, ...nextArguments];
19167
+ const [initialFile, initialArguments, initialOptions] = normalizeParameters(...callArguments);
19029
19168
  const mergedOptions = mergeOptions(mergeOptions(deepOptions, boundOptions), initialOptions);
19030
19169
  const { options = mergedOptions, isSync = false } = mapArguments({ options: mergedOptions });
19031
19170
  return {
@@ -19037,7 +19176,7 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
19037
19176
  };
19038
19177
 
19039
19178
  //#endregion
19040
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/lib/methods/script.js
19179
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/lib/methods/script.js
19041
19180
  const setScriptSync = (boundExeca, createNested, boundOptions) => {
19042
19181
  boundExeca.sync = createNested(mapScriptSync, boundOptions);
19043
19182
  boundExeca.s = boundExeca.sync;
@@ -19055,7 +19194,7 @@ const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 &
19055
19194
  const deepScriptOptions = { preferLocal: true };
19056
19195
 
19057
19196
  //#endregion
19058
- //#region ../../node_modules/.pnpm/execa@10.0.0/node_modules/execa/index.js
19197
+ //#region ../../node_modules/.pnpm/execa@10.0.1/node_modules/execa/index.js
19059
19198
  const execa = createExeca(() => ({}));
19060
19199
  const execaSync = createExeca(() => ({ isSync: true }));
19061
19200
  const execaNode = createExeca(mapNode);
@@ -19126,8 +19265,6 @@ var require_pg_connection_string = /* @__PURE__ */ __commonJSMin(((exports, modu
19126
19265
  case "verify-ca":
19127
19266
  if (!config.ssl.ca) throw new Error("SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security.");
19128
19267
  config.ssl.checkServerIdentity = function() {};
19129
- break;
19130
- case "verify-full": break;
19131
19268
  }
19132
19269
  else switch (config.sslmode) {
19133
19270
  case "disable":
@@ -19139,9 +19276,7 @@ var require_pg_connection_string = /* @__PURE__ */ __commonJSMin(((exports, modu
19139
19276
  case "verify-full":
19140
19277
  if (config.sslmode !== "verify-full") deprecatedSslModeWarning(config.sslmode);
19141
19278
  break;
19142
- case "no-verify":
19143
- config.ssl.rejectUnauthorized = false;
19144
- break;
19279
+ case "no-verify": config.ssl.rejectUnauthorized = false;
19145
19280
  }
19146
19281
  return config;
19147
19282
  }
@@ -19157,13 +19292,15 @@ var require_pg_connection_string = /* @__PURE__ */ __commonJSMin(((exports, modu
19157
19292
  const sslConfig = value;
19158
19293
  if (typeof sslConfig === "boolean") c[key] = sslConfig;
19159
19294
  if (typeof sslConfig === "object") c[key] = toConnectionOptions(sslConfig);
19160
- } else if (value !== void 0 && value !== null) if (key === "port") {
19161
- if (value !== "") {
19162
- const v = parseInt(value, 10);
19163
- if (isNaN(v)) throw new Error(`Invalid ${key}: ${value}`);
19164
- c[key] = v;
19165
- }
19166
- } else c[key] = value;
19295
+ } else if (value !== void 0 && value !== null) {
19296
+ if (key === "port") {
19297
+ if (value !== "") {
19298
+ const v = parseInt(value, 10);
19299
+ if (isNaN(v)) throw new Error(`Invalid ${key}: ${value}`);
19300
+ c[key] = v;
19301
+ }
19302
+ } else c[key] = value;
19303
+ }
19167
19304
  return c;
19168
19305
  }, Object.create(null));
19169
19306
  }
@@ -19234,7 +19371,8 @@ async function resolveBaseDsn(env, deps = {}) {
19234
19371
  throw new Error("Unable to resolve the base DSN. Set CTX_PLATFORM_URL and CTXB_BASE_ID to fetch it from base-platform, or set CTXB_DATABASE_URL to a postgres:// URL.");
19235
19372
  }
19236
19373
  async function resolveBaseDsnObj(env, deps = {}) {
19237
- const parsedConnectionOptions = parse$1(await resolveBaseDsn(env, deps));
19374
+ const resolvedDatabaseUrl = await resolveBaseDsn(env, deps);
19375
+ const parsedConnectionOptions = parse$1(resolvedDatabaseUrl);
19238
19376
  return resolvedDatabaseUrlConnectionOptionsSchema.parse({
19239
19377
  database: normalizeStringWithDefault(parsedConnectionOptions.database, "postgres"),
19240
19378
  host: normalizeStringWithDefault(parsedConnectionOptions.host, "localhost"),
@@ -19278,7 +19416,7 @@ const DAGSTER_DEFAULT_LOAD_ARGS = [
19278
19416
  "-a",
19279
19417
  "defs"
19280
19418
  ];
19281
- const DAGSTER_BASE_LOCATION_FLAGS = new Set([
19419
+ const DAGSTER_BASE_LOCATION_FLAGS = /* @__PURE__ */ new Set([
19282
19420
  "-m",
19283
19421
  "-f",
19284
19422
  "-w",
@@ -19286,13 +19424,13 @@ const DAGSTER_BASE_LOCATION_FLAGS = new Set([
19286
19424
  "--grpc-port",
19287
19425
  "--grpc-socket"
19288
19426
  ]);
19289
- const DAGSTER_GRAPHQL_LOCATION_FLAGS = new Set([...DAGSTER_BASE_LOCATION_FLAGS, "--remote"]);
19427
+ const DAGSTER_GRAPHQL_LOCATION_FLAGS = /* @__PURE__ */ new Set([...DAGSTER_BASE_LOCATION_FLAGS, "--remote"]);
19290
19428
  const DG_TARGET_PATH_FLAG = "--target-path";
19291
19429
  const CORE_PACKAGE_FALLBACK_REF = `contextbase-core==${version}`;
19292
19430
  const REPO_ROOT_TO_CORE_PROJECT_RELATIVE_PATH = path.join("projects", "core");
19293
19431
  const DG_PYTHON_PURELIB_SNIPPET = "import sysconfig; print(sysconfig.get_path('purelib'))";
19294
19432
  const CONTEXTBASE_CORE_PYTHON_VERSION = "3.12";
19295
- const DAGSTER_TOOLS_WITHOUT_DATABASE_URL = new Set([
19433
+ const DAGSTER_TOOLS_WITHOUT_DATABASE_URL = /* @__PURE__ */ new Set([
19296
19434
  "dagster",
19297
19435
  "dagster-graphql",
19298
19436
  "dagster-webserver"
@@ -19500,7 +19638,9 @@ async function runDagsterCommand(tool, passthroughArgsInput, paths) {
19500
19638
 
19501
19639
  //#endregion
19502
19640
  //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/query.js
19503
- const originCache = /* @__PURE__ */ new Map(), originStackCache = /* @__PURE__ */ new Map(), originError = Symbol("OriginError");
19641
+ const originCache = /* @__PURE__ */ new Map();
19642
+ const originStackCache = /* @__PURE__ */ new Map();
19643
+ const originError = Symbol("OriginError");
19504
19644
  const CLOSE = {};
19505
19645
  var Query = class extends Promise {
19506
19646
  constructor(strings, args, handler, canceller, options = {}) {
@@ -19896,14 +20036,15 @@ function arrayParserLoop(s, x, parser, typarray) {
19896
20036
  const delimiter = typarray === 1020 ? ";" : ",";
19897
20037
  for (; s.i < x.length; s.i++) {
19898
20038
  s.char = x[s.i];
19899
- if (s.quoted) if (s.char === "\\") s.str += x[++s.i];
19900
- else if (s.char === "\"") {
19901
- xs.push(parser ? parser(s.str) : s.str);
19902
- s.str = "";
19903
- s.quoted = x[s.i + 1] === "\"";
19904
- s.last = s.i + 2;
19905
- } else s.str += s.char;
19906
- else if (s.char === "\"") s.quoted = true;
20039
+ if (s.quoted) {
20040
+ if (s.char === "\\") s.str += x[++s.i];
20041
+ else if (s.char === "\"") {
20042
+ xs.push(parser ? parser(s.str) : s.str);
20043
+ s.str = "";
20044
+ s.quoted = x[s.i + 1] === "\"";
20045
+ s.last = s.i + 2;
20046
+ } else s.str += s.char;
20047
+ } else if (s.char === "\"") s.quoted = true;
19907
20048
  else if (s.char === "{") {
19908
20049
  s.last = ++s.i;
19909
20050
  xs.push(arrayParserLoop(s, x, parser, typarray));
@@ -20092,8 +20233,13 @@ function reset() {
20092
20233
  //#region ../../node_modules/.pnpm/postgres@3.4.9/node_modules/postgres/src/connection.js
20093
20234
  var connection_default = Connection;
20094
20235
  let uid = 1;
20095
- const Sync = b().S().end(), Flush = b().H().end(), SSLRequest = b().i32(8).i32(80877103).end(8), ExecuteUnnamed = Buffer.concat([b().E().str(b.N).i32(0).end(), Sync]), DescribeUnnamed = b().D().str("S").str(b.N).end(), noop$1 = () => {};
20096
- const retryRoutines = new Set([
20236
+ const Sync = b().S().end();
20237
+ const Flush = b().H().end();
20238
+ const SSLRequest = b().i32(8).i32(80877103).end(8);
20239
+ const ExecuteUnnamed = Buffer.concat([b().E().str(b.N).i32(0).end(), Sync]);
20240
+ const DescribeUnnamed = b().D().str("S").str(b.N).end();
20241
+ const noop$1 = () => {};
20242
+ const retryRoutines = /* @__PURE__ */ new Set([
20097
20243
  "FetchPreparedStatement",
20098
20244
  "RevalidateCachedQuery",
20099
20245
  "transformAssignedExpr"
@@ -20383,7 +20529,7 @@ function Connection(options, queues = {}, { onopen = noop$1, onend = noop$1, onc
20383
20529
  function handle(xs, x = xs[0]) {
20384
20530
  (x === 68 ? DataRow : x === 100 ? CopyData : x === 65 ? NotificationResponse : x === 83 ? ParameterStatus : x === 90 ? ReadyForQuery : x === 67 ? CommandComplete : x === 50 ? BindComplete : x === 49 ? ParseComplete : x === 116 ? ParameterDescription : x === 84 ? RowDescription : x === 82 ? Authentication : x === 110 ? NoData : x === 75 ? BackendKeyData : x === 69 ? ErrorResponse : x === 115 ? PortalSuspended : x === 51 ? CloseComplete : x === 71 ? CopyInResponse : x === 78 ? NoticeResponse : x === 72 ? CopyOutResponse : x === 99 ? CopyDone : x === 73 ? EmptyQueryResponse : x === 86 ? FunctionCallResponse : x === 118 ? NegotiateProtocolVersion : x === 87 ? CopyBothResponse :
20385
20531
  /* c8 ignore next */
20386
- UnknownMessage)(xs);
20532
+ UnknownMessage)(xs);
20387
20533
  }
20388
20534
  function DataRow(x) {
20389
20535
  let index = 7;
@@ -20409,9 +20555,10 @@ UnknownMessage)(xs);
20409
20555
  }
20410
20556
  }
20411
20557
  function ReadyForQuery(x) {
20412
- if (query) if (errorResponse) query.retried ? errored(query.retried) : query.prepared && retryRoutines.has(errorResponse.routine) ? retry(query, errorResponse) : errored(errorResponse);
20413
- else query.resolve(results || result);
20414
- else if (errorResponse) errored(errorResponse);
20558
+ if (query) {
20559
+ if (errorResponse) query.retried ? errored(query.retried) : query.prepared && retryRoutines.has(errorResponse.routine) ? retry(query, errorResponse) : errored(errorResponse);
20560
+ else query.resolve(results || result);
20561
+ } else if (errorResponse) errored(errorResponse);
20415
20562
  query = results = errorResponse = null;
20416
20563
  result = new Result();
20417
20564
  connectTimer.cancel();
@@ -20807,7 +20954,7 @@ function Subscribe(postgres, options) {
20807
20954
  fn,
20808
20955
  onsubscribe
20809
20956
  };
20810
- const fns = subscribers.has(event) ? subscribers.get(event).add(subscriber) : subscribers.set(event, new Set([subscriber])).get(event);
20957
+ const fns = subscribers.has(event) ? subscribers.get(event).add(subscriber) : subscribers.set(event, /* @__PURE__ */ new Set([subscriber])).get(event);
20811
20958
  const unsubscribe = () => {
20812
20959
  fns.delete(subscriber);
20813
20960
  fns.size === 0 && subscribers.delete(event);
@@ -20997,7 +21144,7 @@ function largeObject(sql, oid, mode = 393216) {
20997
21144
  };
20998
21145
  resolve(lo);
20999
21146
  return new Promise(async (r) => finish = r);
21000
- async function readable({ highWaterMark = 2048 * 8, start = 0, end = Infinity } = {}) {
21147
+ async function readable({ highWaterMark = 16384, start = 0, end = Infinity } = {}) {
21001
21148
  let max = end - start;
21002
21149
  start && await lo.seek(start);
21003
21150
  return new Stream.Readable({
@@ -21011,7 +21158,7 @@ function largeObject(sql, oid, mode = 393216) {
21011
21158
  }
21012
21159
  });
21013
21160
  }
21014
- async function writable({ highWaterMark = 2048 * 8, start = 0 } = {}) {
21161
+ async function writable({ highWaterMark = 16384, start = 0 } = {}) {
21015
21162
  start && await lo.seek(start);
21016
21163
  return new Stream.Writable({
21017
21164
  highWaterMark,
@@ -21450,7 +21597,8 @@ const CONSTRAINT_TYPE_LABELS = {
21450
21597
  x: "EXCLUSION"
21451
21598
  };
21452
21599
  async function fetchSchemaInfo(schemaName) {
21453
- const sql = src_default(await resolveBaseDsn(env));
21600
+ const databaseUrl = await resolveBaseDsn(env);
21601
+ const sql = src_default(databaseUrl);
21454
21602
  try {
21455
21603
  return await sql.begin("read only", async (tx) => {
21456
21604
  const tables = await tx`
@@ -21626,7 +21774,7 @@ async function runEncodeUriCommand(value) {
21626
21774
  }
21627
21775
 
21628
21776
  //#endregion
21629
- //#region ../../node_modules/.pnpm/smol-toml@1.7.0/node_modules/smol-toml/dist/stringify.js
21777
+ //#region ../../node_modules/.pnpm/smol-toml@1.8.0/node_modules/smol-toml/dist/stringify.js
21630
21778
  /*!
21631
21779
  * Copyright (c) Squirrel Chat et al., All rights reserved.
21632
21780
  * SPDX-License-Identifier: BSD-3-Clause
@@ -21659,7 +21807,8 @@ function extendedTypeOf(obj) {
21659
21807
  let type = typeof obj;
21660
21808
  if (type === "object") {
21661
21809
  if (Array.isArray(obj)) return "array";
21662
- if (obj instanceof Date) return "date";
21810
+ if (typeof obj?.getUTCDate === "function" && obj instanceof Date) return "date";
21811
+ if (globalThis.Temporal && typeof obj?.since === "function" && (obj instanceof Temporal.Instant || obj instanceof Temporal.PlainDate || obj instanceof Temporal.PlainDateTime || obj instanceof Temporal.PlainTime || obj instanceof Temporal.ZonedDateTime)) return "temporal";
21663
21812
  }
21664
21813
  return type;
21665
21814
  }
@@ -21670,23 +21819,30 @@ function isArrayOfTables(obj) {
21670
21819
  function formatString(s) {
21671
21820
  return JSON.stringify(s).replace(/\x7f/g, "\\u007f");
21672
21821
  }
21822
+ function stringifyTemporal(temporal) {
21823
+ return temporal.toString({
21824
+ calendarName: "never",
21825
+ timeZoneName: "never"
21826
+ });
21827
+ }
21673
21828
  function stringifyValue(val, type, depth, numberAsFloat) {
21674
21829
  if (depth === 0) throw new Error("Could not stringify the object: maximum object depth exceeded");
21675
- if (type === "number") {
21676
- if (isNaN(val)) return "nan";
21677
- if (val === Infinity) return "inf";
21678
- if (val === -Infinity) return "-inf";
21679
- if (Number.isInteger(val) && (numberAsFloat || !Number.isSafeInteger(val))) return val.toFixed(1);
21680
- return val.toString();
21681
- }
21682
- if (type === "bigint" || type === "boolean") return val.toString();
21683
- if (type === "string") return formatString(val);
21684
- if (type === "date") {
21685
- if (isNaN(val.getTime())) throw new TypeError("cannot serialize invalid date");
21686
- return val.toISOString();
21687
- }
21688
- if (type === "object") return stringifyInlineTable(val, depth, numberAsFloat);
21689
- if (type === "array") return stringifyArray(val, depth, numberAsFloat);
21830
+ switch (type) {
21831
+ case "number":
21832
+ if (isNaN(val)) return "nan";
21833
+ if (val === Infinity) return "inf";
21834
+ if (val === -Infinity) return "-inf";
21835
+ if (Number.isInteger(val) && (numberAsFloat || !Number.isSafeInteger(val))) return val.toFixed(1);
21836
+ case "bigint":
21837
+ case "boolean": return val.toString();
21838
+ case "string": return formatString(val);
21839
+ case "date":
21840
+ if (isNaN(val.getTime())) throw new TypeError("cannot serialize invalid date");
21841
+ return val.toISOString();
21842
+ case "object": return stringifyInlineTable(val, depth, numberAsFloat);
21843
+ case "array": return stringifyArray(val, depth, numberAsFloat);
21844
+ case "temporal": return stringifyTemporal(val);
21845
+ }
21690
21846
  }
21691
21847
  function stringifyInlineTable(obj, depth, numberAsFloat) {
21692
21848
  let keys = Object.keys(obj);
@@ -22008,9 +22164,10 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
22008
22164
  function replaceNode(key, path, node) {
22009
22165
  const parent = path[path.length - 1];
22010
22166
  if (identity.isCollection(parent)) parent.items[key] = node;
22011
- else if (identity.isPair(parent)) if (key === "key") parent.key = node;
22012
- else parent.value = node;
22013
- else if (identity.isDocument(parent)) parent.contents = node;
22167
+ else if (identity.isPair(parent)) {
22168
+ if (key === "key") parent.key = node;
22169
+ else parent.value = node;
22170
+ } else if (identity.isDocument(parent)) parent.contents = node;
22014
22171
  else {
22015
22172
  const pt = identity.isAlias(parent) ? "alias" : "scalar";
22016
22173
  throw new Error(`Cannot replace node with ${pt} parent`);
@@ -22068,7 +22225,6 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
22068
22225
  version: "1.2"
22069
22226
  };
22070
22227
  this.tags = Object.assign({}, Directives.defaultTags);
22071
- break;
22072
22228
  }
22073
22229
  return res;
22074
22230
  }
@@ -22265,30 +22421,32 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
22265
22421
  * Includes extensions for handling Map and Set objects.
22266
22422
  */
22267
22423
  function applyReviver(reviver, obj, key, val) {
22268
- if (val && typeof val === "object") if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
22269
- const v0 = val[i];
22270
- const v1 = applyReviver(reviver, val, String(i), v0);
22271
- if (v1 === void 0) delete val[i];
22272
- else if (v1 !== v0) val[i] = v1;
22273
- }
22274
- else if (val instanceof Map) for (const k of Array.from(val.keys())) {
22275
- const v0 = val.get(k);
22276
- const v1 = applyReviver(reviver, val, k, v0);
22277
- if (v1 === void 0) val.delete(k);
22278
- else if (v1 !== v0) val.set(k, v1);
22279
- }
22280
- else if (val instanceof Set) for (const v0 of Array.from(val)) {
22281
- const v1 = applyReviver(reviver, val, v0, v0);
22282
- if (v1 === void 0) val.delete(v0);
22283
- else if (v1 !== v0) {
22284
- val.delete(v0);
22285
- val.add(v1);
22424
+ if (val && typeof val === "object") {
22425
+ if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
22426
+ const v0 = val[i];
22427
+ const v1 = applyReviver(reviver, val, String(i), v0);
22428
+ if (v1 === void 0) delete val[i];
22429
+ else if (v1 !== v0) val[i] = v1;
22430
+ }
22431
+ else if (val instanceof Map) for (const k of Array.from(val.keys())) {
22432
+ const v0 = val.get(k);
22433
+ const v1 = applyReviver(reviver, val, k, v0);
22434
+ if (v1 === void 0) val.delete(k);
22435
+ else if (v1 !== v0) val.set(k, v1);
22436
+ }
22437
+ else if (val instanceof Set) for (const v0 of Array.from(val)) {
22438
+ const v1 = applyReviver(reviver, val, v0, v0);
22439
+ if (v1 === void 0) val.delete(v0);
22440
+ else if (v1 !== v0) {
22441
+ val.delete(v0);
22442
+ val.add(v1);
22443
+ }
22444
+ }
22445
+ else for (const [k, v0] of Object.entries(val)) {
22446
+ const v1 = applyReviver(reviver, val, k, v0);
22447
+ if (v1 === void 0) delete val[k];
22448
+ else if (v1 !== v0) val[k] = v1;
22286
22449
  }
22287
- }
22288
- else for (const [k, v0] of Object.entries(val)) {
22289
- const v1 = applyReviver(reviver, val, k, v0);
22290
- if (v1 === void 0) delete val[k];
22291
- else if (v1 !== v0) val[k] = v1;
22292
22450
  }
22293
22451
  return reviver.call(obj, key, val);
22294
22452
  }
@@ -22569,7 +22727,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
22569
22727
  const a = [];
22570
22728
  a[k] = v;
22571
22729
  v = a;
22572
- } else v = new Map([[k, v]]);
22730
+ } else v = /* @__PURE__ */ new Map([[k, v]]);
22573
22731
  }
22574
22732
  return createNode.createNode(v, void 0, {
22575
22733
  aliasDuplicateObjects: false,
@@ -22717,8 +22875,10 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
22717
22875
  const folds = [];
22718
22876
  const escapedFolds = {};
22719
22877
  let end = lineWidth - indent.length;
22720
- if (typeof indentAtStart === "number") if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
22721
- else end = lineWidth - indentAtStart;
22878
+ if (typeof indentAtStart === "number") {
22879
+ if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
22880
+ else end = lineWidth - indentAtStart;
22881
+ }
22722
22882
  let split = void 0;
22723
22883
  let prev = void 0;
22724
22884
  let overflow = false;
@@ -22755,23 +22915,25 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
22755
22915
  const next = text[i + 1];
22756
22916
  if (next && next !== " " && next !== "\n" && next !== " ") split = i;
22757
22917
  }
22758
- if (i >= end) if (split) {
22759
- folds.push(split);
22760
- end = split + endStep;
22761
- split = void 0;
22762
- } else if (mode === FOLD_QUOTED) {
22763
- while (prev === " " || prev === " ") {
22764
- prev = ch;
22765
- ch = text[i += 1];
22766
- overflow = true;
22767
- }
22768
- const j = i > escEnd + 1 ? i - 2 : escStart - 1;
22769
- if (escapedFolds[j]) return text;
22770
- folds.push(j);
22771
- escapedFolds[j] = true;
22772
- end = j + endStep;
22773
- split = void 0;
22774
- } else overflow = true;
22918
+ if (i >= end) {
22919
+ if (split) {
22920
+ folds.push(split);
22921
+ end = split + endStep;
22922
+ split = void 0;
22923
+ } else if (mode === FOLD_QUOTED) {
22924
+ while (prev === " " || prev === " ") {
22925
+ prev = ch;
22926
+ ch = text[i += 1];
22927
+ overflow = true;
22928
+ }
22929
+ const j = i > escEnd + 1 ? i - 2 : escStart - 1;
22930
+ if (escapedFolds[j]) return text;
22931
+ folds.push(j);
22932
+ escapedFolds[j] = true;
22933
+ end = j + endStep;
22934
+ split = void 0;
22935
+ } else overflow = true;
22936
+ }
22775
22937
  }
22776
22938
  prev = ch;
22777
22939
  }
@@ -23132,7 +23294,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
23132
23294
  if (ctx.resolvedAliases?.has(item)) throw new TypeError(`Cannot stringify circular structure without alias nodes`);
23133
23295
  else {
23134
23296
  if (ctx.resolvedAliases) ctx.resolvedAliases.add(item);
23135
- else ctx.resolvedAliases = new Set([item]);
23297
+ else ctx.resolvedAliases = /* @__PURE__ */ new Set([item]);
23136
23298
  item = item.resolve(ctx.doc);
23137
23299
  }
23138
23300
  }
@@ -23255,8 +23417,10 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
23255
23417
  if (logLevel === "debug") console.log(...messages);
23256
23418
  }
23257
23419
  function warn(logLevel, warning) {
23258
- if (logLevel === "debug" || logLevel === "warn") if (typeof node_process$2.emitWarning === "function") node_process$2.emitWarning(warning);
23259
- else console.warn(warning);
23420
+ if (logLevel === "debug" || logLevel === "warn") {
23421
+ if (typeof node_process$2.emitWarning === "function") node_process$2.emitWarning(warning);
23422
+ else console.warn(warning);
23423
+ }
23260
23424
  }
23261
23425
  exports.debug = debug;
23262
23426
  exports.warn = warn;
@@ -23366,7 +23530,9 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
23366
23530
  var addPairToJSMap = require_addPairToJSMap();
23367
23531
  var identity = require_identity();
23368
23532
  function createPair(key, value, ctx) {
23369
- return new Pair(createNode.createNode(key, void 0, ctx), createNode.createNode(value, void 0, ctx));
23533
+ const k = createNode.createNode(key, void 0, ctx);
23534
+ const v = createNode.createNode(value, void 0, ctx);
23535
+ return new Pair(k, v);
23370
23536
  }
23371
23537
  var Pair = class Pair {
23372
23538
  constructor(key, value = null) {
@@ -24108,11 +24274,12 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
24108
24274
  if (iterable && Symbol.iterator in Object(iterable)) for (let it of iterable) {
24109
24275
  if (typeof replacer === "function") it = replacer.call(iterable, String(i++), it);
24110
24276
  let key, value;
24111
- if (Array.isArray(it)) if (it.length === 2) {
24112
- key = it[0];
24113
- value = it[1];
24114
- } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
24115
- else if (it && it instanceof Object) {
24277
+ if (Array.isArray(it)) {
24278
+ if (it.length === 2) {
24279
+ key = it[0];
24280
+ value = it[1];
24281
+ } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
24282
+ } else if (it && it instanceof Object) {
24116
24283
  const keys = Object.keys(it);
24117
24284
  if (keys.length === 1) {
24118
24285
  key = keys[0];
@@ -24189,8 +24356,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
24189
24356
  resolve(seq, onError) {
24190
24357
  const pairs$1 = pairs.resolvePairs(seq, onError);
24191
24358
  const seenKeys = [];
24192
- for (const { key } of pairs$1.items) if (identity.isScalar(key)) if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
24193
- else seenKeys.push(key.value);
24359
+ for (const { key } of pairs$1.items) if (identity.isScalar(key)) {
24360
+ if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
24361
+ else seenKeys.push(key.value);
24362
+ }
24194
24363
  return Object.assign(new YAMLOMap(), pairs$1);
24195
24364
  },
24196
24365
  createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
@@ -24290,9 +24459,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
24290
24459
  case 8:
24291
24460
  str = `0o${str}`;
24292
24461
  break;
24293
- case 16:
24294
- str = `0x${str}`;
24295
- break;
24462
+ case 16: str = `0x${str}`;
24296
24463
  }
24297
24464
  const n = BigInt(str);
24298
24465
  return sign === "-" ? BigInt(-1) * n : n;
@@ -24408,9 +24575,10 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
24408
24575
  tag: "tag:yaml.org,2002:set",
24409
24576
  createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
24410
24577
  resolve(map, onError) {
24411
- if (identity.isMap(map)) if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
24412
- else onError("Set items must all have null values");
24413
- else onError("Expected a mapping for this tag");
24578
+ if (identity.isMap(map)) {
24579
+ if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
24580
+ else onError("Set items must all have null values");
24581
+ } else onError("Expected a mapping for this tag");
24414
24582
  return map;
24415
24583
  }
24416
24584
  };
@@ -24563,7 +24731,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
24563
24731
  var schema$2 = require_schema();
24564
24732
  var set = require_set();
24565
24733
  var timestamp = require_timestamp();
24566
- const schemas = new Map([
24734
+ const schemas = /* @__PURE__ */ new Map([
24567
24735
  ["core", schema.schema],
24568
24736
  ["failsafe", [
24569
24737
  map.map,
@@ -24606,10 +24774,12 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
24606
24774
  const schemaTags = schemas.get(schemaName);
24607
24775
  if (schemaTags && !customTags) return addMergeTag && !schemaTags.includes(merge.merge) ? schemaTags.concat(merge.merge) : schemaTags.slice();
24608
24776
  let tags = schemaTags;
24609
- if (!tags) if (Array.isArray(customTags)) tags = [];
24610
- else {
24611
- const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
24612
- throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
24777
+ if (!tags) {
24778
+ if (Array.isArray(customTags)) tags = [];
24779
+ else {
24780
+ const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
24781
+ throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
24782
+ }
24613
24783
  }
24614
24784
  if (Array.isArray(customTags)) for (const tag of customTags) tags = tags.concat(tag);
24615
24785
  else if (typeof customTags === "function") tags = customTags(tags.slice());
@@ -24701,14 +24871,15 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
24701
24871
  if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
24702
24872
  else lines.push(body);
24703
24873
  } else lines.push(stringify.stringify(doc.contents, ctx));
24704
- if (doc.directives?.docEnd) if (doc.comment) {
24705
- const cs = commentString(doc.comment);
24706
- if (cs.includes("\n")) {
24707
- lines.push("...");
24708
- lines.push(stringifyComment.indentComment(cs, ""));
24709
- } else lines.push(`... ${cs}`);
24710
- } else lines.push("...");
24711
- else {
24874
+ if (doc.directives?.docEnd) {
24875
+ if (doc.comment) {
24876
+ const cs = commentString(doc.comment);
24877
+ if (cs.includes("\n")) {
24878
+ lines.push("...");
24879
+ lines.push(stringifyComment.indentComment(cs, ""));
24880
+ } else lines.push(`... ${cs}`);
24881
+ } else lines.push("...");
24882
+ } else {
24712
24883
  let dc = doc.comment;
24713
24884
  if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
24714
24885
  if (dc) {
@@ -25232,7 +25403,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
25232
25403
  var utilMapIncludes = require_util_map_includes();
25233
25404
  const startColMsg = "All mapping items must start at the same column";
25234
25405
  function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {
25235
- const map = new (tag?.nodeClass ?? YAMLMap.YAMLMap)(ctx.schema);
25406
+ const map = new ((tag?.nodeClass) ?? YAMLMap.YAMLMap)(ctx.schema);
25236
25407
  if (ctx.atRoot) ctx.atRoot = false;
25237
25408
  let offset = bm.offset;
25238
25409
  let commentEnd = null;
@@ -25254,8 +25425,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
25254
25425
  }
25255
25426
  if (!keyProps.anchor && !keyProps.tag && !sep) {
25256
25427
  commentEnd = keyProps.end;
25257
- if (keyProps.comment) if (map.comment) map.comment += "\n" + keyProps.comment;
25258
- else map.comment = keyProps.comment;
25428
+ if (keyProps.comment) {
25429
+ if (map.comment) map.comment += "\n" + keyProps.comment;
25430
+ else map.comment = keyProps.comment;
25431
+ }
25259
25432
  continue;
25260
25433
  }
25261
25434
  if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
@@ -25288,8 +25461,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
25288
25461
  map.items.push(pair);
25289
25462
  } else {
25290
25463
  if (implicitKey) onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values");
25291
- if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
25292
- else keyNode.comment = valueProps.comment;
25464
+ if (valueProps.comment) {
25465
+ if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
25466
+ else keyNode.comment = valueProps.comment;
25467
+ }
25293
25468
  const pair = new Pair.Pair(keyNode);
25294
25469
  if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
25295
25470
  map.items.push(pair);
@@ -25313,7 +25488,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
25313
25488
  var resolveProps = require_resolve_props();
25314
25489
  var utilFlowIndentCheck = require_util_flow_indent_check();
25315
25490
  function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
25316
- const seq = new (tag?.nodeClass ?? YAMLSeq.YAMLSeq)(ctx.schema);
25491
+ const seq = new ((tag?.nodeClass) ?? YAMLSeq.YAMLSeq)(ctx.schema);
25317
25492
  if (ctx.atRoot) ctx.atRoot = false;
25318
25493
  if (ctx.atKey) ctx.atKey = false;
25319
25494
  let offset = bs.offset;
@@ -25327,12 +25502,15 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
25327
25502
  parentIndent: bs.indent,
25328
25503
  startOnNewline: true
25329
25504
  });
25330
- if (!props.found) if (props.anchor || props.tag || value) if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
25331
- else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
25332
- else {
25333
- commentEnd = props.end;
25334
- if (props.comment) seq.comment = props.comment;
25335
- continue;
25505
+ if (!props.found) {
25506
+ if (props.anchor || props.tag || value) {
25507
+ if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
25508
+ else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
25509
+ } else {
25510
+ commentEnd = props.end;
25511
+ if (props.comment) seq.comment = props.comment;
25512
+ continue;
25513
+ }
25336
25514
  }
25337
25515
  const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
25338
25516
  if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
@@ -25404,7 +25582,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
25404
25582
  function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
25405
25583
  const isMap = fc.start.source === "{";
25406
25584
  const fcName = isMap ? "flow map" : "flow sequence";
25407
- const coll = new (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
25585
+ const coll = new ((tag?.nodeClass) ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
25408
25586
  coll.flow = true;
25409
25587
  const atRoot = ctx.atRoot;
25410
25588
  if (atRoot) ctx.atRoot = false;
@@ -25426,8 +25604,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
25426
25604
  if (!props.anchor && !props.tag && !sep && !value) {
25427
25605
  if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
25428
25606
  else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
25429
- if (props.comment) if (coll.comment) coll.comment += "\n" + props.comment;
25430
- else coll.comment = props.comment;
25607
+ if (props.comment) {
25608
+ if (coll.comment) coll.comment += "\n" + props.comment;
25609
+ else coll.comment = props.comment;
25610
+ }
25431
25611
  offset = props.end;
25432
25612
  continue;
25433
25613
  }
@@ -25487,13 +25667,17 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
25487
25667
  }
25488
25668
  if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
25489
25669
  }
25490
- } else if (value) if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
25491
- else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
25670
+ } else if (value) {
25671
+ if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
25672
+ else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
25673
+ }
25492
25674
  const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
25493
25675
  if (valueNode) {
25494
25676
  if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
25495
- } else if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
25496
- else keyNode.comment = valueProps.comment;
25677
+ } else if (valueProps.comment) {
25678
+ if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
25679
+ else keyNode.comment = valueProps.comment;
25680
+ }
25497
25681
  const pair = new Pair.Pair(keyNode, valueNode);
25498
25682
  if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
25499
25683
  if (isMap) {
@@ -25527,8 +25711,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
25527
25711
  }
25528
25712
  if (ee.length > 0) {
25529
25713
  const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
25530
- if (end.comment) if (coll.comment) coll.comment += "\n" + end.comment;
25531
- else coll.comment = end.comment;
25714
+ if (end.comment) {
25715
+ if (coll.comment) coll.comment += "\n" + end.comment;
25716
+ else coll.comment = end.comment;
25717
+ }
25532
25718
  coll.range = [
25533
25719
  fc.offset,
25534
25720
  cePos,
@@ -25678,9 +25864,10 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
25678
25864
  value += sep + indent.slice(trimIndent) + content;
25679
25865
  sep = "\n";
25680
25866
  prevMoreIndented = true;
25681
- } else if (content === "") if (sep === "\n") value += "\n";
25682
- else sep = "\n";
25683
- else {
25867
+ } else if (content === "") {
25868
+ if (sep === "\n") value += "\n";
25869
+ else sep = "\n";
25870
+ } else {
25684
25871
  value += sep + content;
25685
25872
  sep = " ";
25686
25873
  prevMoreIndented = false;
@@ -25842,9 +26029,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
25842
26029
  badChar = `block scalar indicator ${source[0]}`;
25843
26030
  break;
25844
26031
  case "@":
25845
- case "`":
25846
- badChar = `reserved character ${source[0]}`;
25847
- break;
26032
+ case "`": badChar = `reserved character ${source[0]}`;
25848
26033
  }
25849
26034
  if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
25850
26035
  return foldLines(source);
@@ -25876,9 +26061,10 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
25876
26061
  let pos = first.lastIndex;
25877
26062
  line.lastIndex = pos;
25878
26063
  while (match = line.exec(source)) {
25879
- if (match[1] === "") if (sep === "\n") res += sep;
25880
- else sep = "\n";
25881
- else {
26064
+ if (match[1] === "") {
26065
+ if (sep === "\n") res += sep;
26066
+ else sep = "\n";
26067
+ } else {
25882
26068
  res += sep + match[1];
25883
26069
  sep = " ";
25884
26070
  }
@@ -26015,8 +26201,10 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
26015
26201
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
26016
26202
  if (tagName === "!") return schema[identity.SCALAR];
26017
26203
  const matchWithTest = [];
26018
- for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) if (tag.default && tag.test) matchWithTest.push(tag);
26019
- else return tag;
26204
+ for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) {
26205
+ if (tag.default && tag.test) matchWithTest.push(tag);
26206
+ else return tag;
26207
+ }
26020
26208
  for (const tag of matchWithTest) if (tag.test?.test(value)) return tag;
26021
26209
  const kt = schema.knownTags[tagName];
26022
26210
  if (kt && !kt.collection) {
@@ -26116,8 +26304,10 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
26116
26304
  if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
26117
26305
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings");
26118
26306
  if (spaceBefore) node.spaceBefore = true;
26119
- if (comment) if (token.type === "scalar" && token.source === "") node.comment = comment;
26120
- else node.commentBefore = comment;
26307
+ if (comment) {
26308
+ if (token.type === "scalar" && token.source === "") node.comment = comment;
26309
+ else node.commentBefore = comment;
26310
+ }
26121
26311
  if (ctx.options.keepSourceTokens && isSrcToken) node.srcToken = token;
26122
26312
  return node;
26123
26313
  }
@@ -27313,11 +27503,13 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
27313
27503
  end = i;
27314
27504
  } else if (isEmpty(ch)) {
27315
27505
  let next = this.buffer[i + 1];
27316
- if (ch === "\r") if (next === "\n") {
27317
- i += 1;
27318
- ch = "\n";
27319
- next = this.buffer[i + 1];
27320
- } else end = i;
27506
+ if (ch === "\r") {
27507
+ if (next === "\n") {
27508
+ i += 1;
27509
+ ch = "\n";
27510
+ next = this.buffer[i + 1];
27511
+ } else end = i;
27512
+ }
27321
27513
  if (next === "#" || inFlow && flowIndicatorChars.has(next)) break;
27322
27514
  if (ch === "\n") {
27323
27515
  const cs = this.continueScalar(i + 1);
@@ -27536,9 +27728,10 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
27536
27728
  for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
27537
27729
  if (it.key) it.value = it.key;
27538
27730
  delete it.key;
27539
- if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
27540
- else it.value.end = it.sep;
27541
- else arrayPushArray(it.start, it.sep);
27731
+ if (isFlowToken(it.value)) {
27732
+ if (it.value.end) arrayPushArray(it.value.end, it.sep);
27733
+ else it.value.end = it.sep;
27734
+ } else arrayPushArray(it.start, it.sep);
27542
27735
  delete it.sep;
27543
27736
  }
27544
27737
  }
@@ -27973,58 +28166,60 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
27973
28166
  this.onKeyLine = true;
27974
28167
  return;
27975
28168
  case "map-value-ind":
27976
- if (it.explicitKey) if (!it.sep) if (includesToken(it.start, "newline")) Object.assign(it, {
27977
- key: null,
27978
- sep: [this.sourceToken]
27979
- });
27980
- else {
27981
- const start = getFirstKeyStartProps(it.start);
27982
- this.stack.push({
27983
- type: "block-map",
27984
- offset: this.offset,
27985
- indent: this.indent,
27986
- items: [{
27987
- start,
28169
+ if (it.explicitKey) {
28170
+ if (!it.sep) {
28171
+ if (includesToken(it.start, "newline")) Object.assign(it, {
27988
28172
  key: null,
27989
28173
  sep: [this.sourceToken]
27990
- }]
27991
- });
27992
- }
27993
- else if (it.value) map.items.push({
27994
- start: [],
27995
- key: null,
27996
- sep: [this.sourceToken]
27997
- });
27998
- else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
27999
- type: "block-map",
28000
- offset: this.offset,
28001
- indent: this.indent,
28002
- items: [{
28003
- start,
28174
+ });
28175
+ else {
28176
+ const start = getFirstKeyStartProps(it.start);
28177
+ this.stack.push({
28178
+ type: "block-map",
28179
+ offset: this.offset,
28180
+ indent: this.indent,
28181
+ items: [{
28182
+ start,
28183
+ key: null,
28184
+ sep: [this.sourceToken]
28185
+ }]
28186
+ });
28187
+ }
28188
+ } else if (it.value) map.items.push({
28189
+ start: [],
28004
28190
  key: null,
28005
28191
  sep: [this.sourceToken]
28006
- }]
28007
- });
28008
- else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
28009
- const start = getFirstKeyStartProps(it.start);
28010
- const key = it.key;
28011
- const sep = it.sep;
28012
- sep.push(this.sourceToken);
28013
- delete it.key;
28014
- delete it.sep;
28015
- this.stack.push({
28192
+ });
28193
+ else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
28016
28194
  type: "block-map",
28017
28195
  offset: this.offset,
28018
28196
  indent: this.indent,
28019
28197
  items: [{
28020
28198
  start,
28021
- key,
28022
- sep
28199
+ key: null,
28200
+ sep: [this.sourceToken]
28023
28201
  }]
28024
28202
  });
28025
- } else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
28026
- else it.sep.push(this.sourceToken);
28027
- else if (!it.sep) Object.assign(it, {
28203
+ else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
28204
+ const start = getFirstKeyStartProps(it.start);
28205
+ const key = it.key;
28206
+ const sep = it.sep;
28207
+ sep.push(this.sourceToken);
28208
+ delete it.key;
28209
+ delete it.sep;
28210
+ this.stack.push({
28211
+ type: "block-map",
28212
+ offset: this.offset,
28213
+ indent: this.indent,
28214
+ items: [{
28215
+ start,
28216
+ key,
28217
+ sep
28218
+ }]
28219
+ });
28220
+ } else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
28221
+ else it.sep.push(this.sourceToken);
28222
+ } else if (!it.sep) Object.assign(it, {
28028
28223
  key: null,
28029
28224
  sep: [this.sourceToken]
28030
28225
  });
@@ -28398,8 +28593,10 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
28398
28593
  const doc = parseDocument(src, options);
28399
28594
  if (!doc) return null;
28400
28595
  doc.warnings.forEach((warning) => log.warn(doc.options.logLevel, warning));
28401
- if (doc.errors.length > 0) if (doc.options.logLevel !== "silent") throw doc.errors[0];
28402
- else doc.errors = [];
28596
+ if (doc.errors.length > 0) {
28597
+ if (doc.options.logLevel !== "silent") throw doc.errors[0];
28598
+ else doc.errors = [];
28599
+ }
28403
28600
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
28404
28601
  }
28405
28602
  function stringify(value, replacer, options) {
@@ -28513,8 +28710,9 @@ async function writeDagsterArtifacts(dagsterArtifacts, paths) {
28513
28710
  //#region gen/command.ts
28514
28711
  async function planGeneratedArtifacts() {
28515
28712
  const dltSecretsToml = generateSecretsToml(await resolveBaseDsnObj(env));
28713
+ const manifests = await listPluginManifests();
28516
28714
  return {
28517
- dagsterYaml: generateDagsterYaml(await listPluginManifests()),
28715
+ dagsterYaml: generateDagsterYaml(manifests),
28518
28716
  dltConfigToml: generateConfigToml(),
28519
28717
  dltSecretsToml
28520
28718
  };
@@ -28538,7 +28736,8 @@ async function runGen(paths) {
28538
28736
  //#endregion
28539
28737
  //#region query/runtime.ts
28540
28738
  async function executeQuery(queryText) {
28541
- const sql = src_default(await resolveBaseDsn(env));
28739
+ const databaseUrl = await resolveBaseDsn(env);
28740
+ const sql = src_default(databaseUrl);
28542
28741
  try {
28543
28742
  return await sql.begin("read only", async (transactionSql) => {
28544
28743
  const result = await transactionSql.unsafe(queryText).values();
@@ -28581,11 +28780,13 @@ async function runQueryCommand(sql) {
28581
28780
  //#endregion
28582
28781
  //#region cli.ts
28583
28782
  async function resolveRuntimePaths(command) {
28584
- const paths = deriveContextBasePaths(resolveContextBaseRootDir({
28585
- cliRootDir: command.optsWithGlobals().rootDir,
28783
+ const options = command.optsWithGlobals();
28784
+ const rootDir = resolveContextBaseRootDir({
28785
+ cliRootDir: options.rootDir,
28586
28786
  cwd: process.cwd(),
28587
28787
  envRootDir: env.CTXB_ROOT_DIR
28588
- }));
28788
+ });
28789
+ const paths = deriveContextBasePaths(rootDir);
28589
28790
  await ensureCtxbDir(paths.ctxbDir);
28590
28791
  return paths;
28591
28792
  }
@@ -28653,4 +28854,4 @@ runCli().catch((error) => {
28653
28854
  //#endregion
28654
28855
  export { createProgram, runCli };
28655
28856
  //# sourceMappingURL=cli.mjs.map
28656
- //# debugId=97545e72-9df8-5413-be4f-f694afe486e0
28857
+ //# debugId=3d9a9038-da39-5c09-a71e-36219d48dd38