@portalcrew/morty 0.4.416 → 0.4.419

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.
@@ -14,17 +14,17 @@ import {
14
14
  runDaemon,
15
15
  serveCurrentPairing,
16
16
  stopDaemon
17
- } from "./chunk-K7GG3AXX.js";
17
+ } from "./chunk-JWU4QM23.js";
18
18
  import {
19
19
  package_default
20
- } from "./chunk-KMYKXPCU.js";
20
+ } from "./chunk-DF6F5SEF.js";
21
21
  import {
22
22
  isNodeError,
23
23
  readStateDirectory
24
24
  } from "./chunk-BZRK5UKB.js";
25
25
  import "./chunk-ISUDV42J.js";
26
26
 
27
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
27
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/error.js
28
28
  var CommanderError = class extends Error {
29
29
  /**
30
30
  * Constructs the CommanderError class
@@ -53,7 +53,7 @@ var InvalidArgumentError = class extends CommanderError {
53
53
  }
54
54
  };
55
55
 
56
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js
56
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/argument.js
57
57
  var Argument = class {
58
58
  /**
59
59
  * Initialize a new command argument with the given name and description.
@@ -174,7 +174,7 @@ function humanReadableArgName(arg) {
174
174
  return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
175
175
  }
176
176
 
177
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
177
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/command.js
178
178
  import { EventEmitter } from "node:events";
179
179
  import childProcess from "node:child_process";
180
180
  import path from "node:path";
@@ -182,7 +182,7 @@ import fs from "node:fs";
182
182
  import process2 from "node:process";
183
183
  import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
184
184
 
185
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js
185
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/help.js
186
186
  import { stripVTControlCharacters } from "node:util";
187
187
  var Help = class {
188
188
  constructor() {
@@ -251,11 +251,11 @@ var Help = class {
251
251
  visibleOptions.push(helpOption);
252
252
  } else if (helpOption.long && !removeLong) {
253
253
  visibleOptions.push(
254
- cmd.createOption(helpOption.long, helpOption.description)
254
+ cmd.createOption(helpOption.long, helpOption.description).helpGroup(helpOption.helpGroupHeading)
255
255
  );
256
256
  } else if (helpOption.short && !removeShort) {
257
257
  visibleOptions.push(
258
- cmd.createOption(helpOption.short, helpOption.description)
258
+ cmd.createOption(helpOption.short, helpOption.description).helpGroup(helpOption.helpGroupHeading)
259
259
  );
260
260
  }
261
261
  }
@@ -774,7 +774,7 @@ ${itemIndentStr}`);
774
774
  }
775
775
  };
776
776
 
777
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js
777
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/option.js
778
778
  var Option = class {
779
779
  /**
780
780
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -787,7 +787,7 @@ var Option = class {
787
787
  this.description = description || "";
788
788
  this.required = flags.includes("<");
789
789
  this.optional = flags.includes("[");
790
- this.variadic = /\w\.\.\.[>\]]$/.test(flags);
790
+ this.variadic = new RegExp("\\p{ID_Continue}\\.\\.\\.[>\\]]$", "u").test(flags);
791
791
  this.mandatory = false;
792
792
  const optionFlags = splitOptionFlags(flags);
793
793
  this.short = optionFlags.shortFlag;
@@ -1080,7 +1080,7 @@ function splitOptionFlags(flags) {
1080
1080
  return { shortFlag, longFlag };
1081
1081
  }
1082
1082
 
1083
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js
1083
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/suggestSimilar.js
1084
1084
  var maxDistance = 3;
1085
1085
  function editDistance(a, b) {
1086
1086
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -1155,7 +1155,7 @@ function suggestSimilar(word, candidates) {
1155
1155
  return "";
1156
1156
  }
1157
1157
 
1158
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
1158
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/command.js
1159
1159
  var Command = class _Command extends EventEmitter {
1160
1160
  /**
1161
1161
  * Initialize a new `Command`.
@@ -1970,7 +1970,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1970
1970
  getOptionValueSourceWithGlobals(key) {
1971
1971
  let source;
1972
1972
  this._getCommandAndAncestors().forEach((cmd) => {
1973
- if (cmd.getOptionValueSource(key) !== void 0) {
1973
+ if (Object.hasOwn(cmd._optionValueSources, key)) {
1974
1974
  source = cmd.getOptionValueSource(key);
1975
1975
  }
1976
1976
  });
@@ -2613,7 +2613,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2613
2613
  return arg.length > 1 && arg[0] === "-";
2614
2614
  }
2615
2615
  const negativeNumberArg = (arg) => {
2616
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
2616
+ if (!/^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(arg)) return false;
2617
2617
  return !this._getCommandAndAncestors().some(
2618
2618
  (cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
2619
2619
  );
@@ -3061,7 +3061,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3061
3061
  * (This does not override a group set directly on the subcommand using .helpGroup().)
3062
3062
  *
3063
3063
  * @example
3064
- * program.commandsGroup('Development Commands:);
3064
+ * program.commandsGroup('Development Commands:');
3065
3065
  * program.command('watch')...
3066
3066
  * program.command('lint')...
3067
3067
  * ...
@@ -3232,7 +3232,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3232
3232
  * Pass in false to disable the built-in help option.
3233
3233
  *
3234
3234
  * @example
3235
- * program.helpOption('-?, --help' 'show help'); // customise
3235
+ * program.helpOption('-?, --help', 'show help'); // customise
3236
3236
  * program.helpOption(false); // disable
3237
3237
  *
3238
3238
  * @param {(string | boolean)} flags
@@ -3361,16 +3361,20 @@ function incrementNodeInspectorPort(args) {
3361
3361
  let debugHost = "127.0.0.1";
3362
3362
  let debugPort = "9229";
3363
3363
  let match;
3364
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
3364
+ if ((match = arg.match(/^(--inspect(-brk|-wait)?)$/)) !== null) {
3365
3365
  debugOption = match[1];
3366
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
3366
+ } else if ((match = arg.match(
3367
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/
3368
+ )) !== null) {
3367
3369
  debugOption = match[1];
3368
3370
  if (/^\d+$/.test(match[3])) {
3369
3371
  debugPort = match[3];
3370
3372
  } else {
3371
3373
  debugHost = match[3];
3372
3374
  }
3373
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
3375
+ } else if ((match = arg.match(
3376
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/
3377
+ )) !== null) {
3374
3378
  debugOption = match[1];
3375
3379
  debugHost = match[3];
3376
3380
  debugPort = match[4];
@@ -3389,7 +3393,7 @@ function useColor() {
3389
3393
  return void 0;
3390
3394
  }
3391
3395
 
3392
- // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3396
+ // ../../node_modules/.pnpm/commander@15.1.0/node_modules/commander/index.js
3393
3397
  var program = new Command();
3394
3398
 
3395
3399
  // src/cli/handler/agents/logic/agent-diagnostics.ts
@@ -3749,7 +3753,7 @@ function valueOption(flags, description) {
3749
3753
  function registerSetupHandlers(program2, context) {
3750
3754
  const run = async (args) => {
3751
3755
  const { runSetup } = await import("./setup-NTQAE4FX.js");
3752
- const { localSetupRuntime } = await import("./local-runtime-QBOARL6W.js");
3756
+ const { localSetupRuntime } = await import("./local-runtime-AO4GMJKY.js");
3753
3757
  process.exitCode = await runSetup(args, {
3754
3758
  state: process.env["MORTY_STATE_DIRECTORY"] ?? "",
3755
3759
  runtime: localSetupRuntime(context.entry),
@@ -3856,4 +3860,4 @@ async function runCLI(entry) {
3856
3860
  export {
3857
3861
  runCLI
3858
3862
  };
3859
- //# sourceMappingURL=cli-77APILY7.js.map
3863
+ //# sourceMappingURL=cli-NBSP7XJV.js.map