@lobehub/cli 0.0.190 → 0.0.192

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/index.js CHANGED
@@ -15,7 +15,7 @@ import { Buffer as Buffer$1 } from "node:buffer";
15
15
  import * as net$1 from "node:net";
16
16
  import net, { BlockList, connect, createServer, isIP } from "node:net";
17
17
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
18
- import process$1, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
18
+ import _w, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
19
19
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
20
20
  import { finished, pipeline } from "node:stream/promises";
21
21
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark, pipeline as pipeline$1 } from "node:stream";
@@ -19260,6 +19260,392 @@ const INTEREST_AREA_KEYS = [
19260
19260
  ];
19261
19261
  const interestAreaKeySet = new Set(INTEREST_AREA_KEYS);
19262
19262
 
19263
+ //#endregion
19264
+ //#region ../../packages/const/src/officialMcp.ts
19265
+ const favicon = (domain) => `https://icons.duckduckgo.com/ip3/${domain}.ico`;
19266
+ const OFFICIAL_MCP_SERVERS = [
19267
+ {
19268
+ auth: "oauth",
19269
+ author: "Sentry",
19270
+ category: "developer",
19271
+ description: "Look up issues, errors and releases in your Sentry projects",
19272
+ icon: favicon("sentry.io"),
19273
+ identifier: "sentry",
19274
+ label: "Sentry",
19275
+ url: "https://mcp.sentry.dev/mcp"
19276
+ },
19277
+ {
19278
+ auth: "oauth",
19279
+ author: "Cloudflare",
19280
+ category: "developer",
19281
+ description: "Manage Workers, KV, R2 and D1 in your Cloudflare account",
19282
+ icon: favicon("cloudflare.com"),
19283
+ identifier: "cloudflare",
19284
+ label: "Cloudflare",
19285
+ url: "https://bindings.mcp.cloudflare.com/mcp"
19286
+ },
19287
+ {
19288
+ auth: "oauth",
19289
+ author: "Stripe",
19290
+ category: "developer",
19291
+ description: "Work with customers, payments, invoices and subscriptions in Stripe",
19292
+ icon: favicon("stripe.com"),
19293
+ identifier: "stripe",
19294
+ label: "Stripe",
19295
+ url: "https://mcp.stripe.com"
19296
+ },
19297
+ {
19298
+ auth: "oauth",
19299
+ author: "GitLab",
19300
+ category: "developer",
19301
+ description: "Search projects, issues and merge requests on GitLab",
19302
+ icon: favicon("gitlab.com"),
19303
+ identifier: "gitlab",
19304
+ label: "GitLab",
19305
+ url: "https://gitlab.com/api/v4/mcp"
19306
+ },
19307
+ {
19308
+ auth: "oauth",
19309
+ author: "Neon",
19310
+ category: "developer",
19311
+ description: "Manage Neon Postgres projects, branches and queries",
19312
+ icon: favicon("neon.tech"),
19313
+ identifier: "neon",
19314
+ label: "Neon",
19315
+ url: "https://mcp.neon.tech/mcp"
19316
+ },
19317
+ {
19318
+ auth: "oauth",
19319
+ author: "Netlify",
19320
+ category: "developer",
19321
+ description: "Create, deploy and manage Netlify sites",
19322
+ icon: favicon("netlify.com"),
19323
+ identifier: "netlify",
19324
+ label: "Netlify",
19325
+ url: "https://netlify-mcp.netlify.app/mcp"
19326
+ },
19327
+ {
19328
+ auth: "oauth",
19329
+ author: "Railway",
19330
+ category: "developer",
19331
+ description: "Deploy and manage services and environments on Railway",
19332
+ icon: favicon("railway.com"),
19333
+ identifier: "railway",
19334
+ label: "Railway",
19335
+ url: "https://mcp.railway.com"
19336
+ },
19337
+ {
19338
+ auth: "oauth",
19339
+ author: "Datadog",
19340
+ category: "developer",
19341
+ description: "Query logs, metrics, monitors and incidents in Datadog",
19342
+ icon: favicon("datadoghq.com"),
19343
+ identifier: "datadog",
19344
+ label: "Datadog",
19345
+ url: "https://mcp.datadoghq.com/api/unstable/mcp-server/mcp"
19346
+ },
19347
+ {
19348
+ auth: "oauth",
19349
+ author: "Grafana Labs",
19350
+ category: "developer",
19351
+ description: "Search dashboards, query data sources and inspect alerts in Grafana Cloud",
19352
+ icon: favicon("grafana.com"),
19353
+ identifier: "grafana",
19354
+ label: "Grafana",
19355
+ url: "https://mcp.grafana.com/mcp"
19356
+ },
19357
+ {
19358
+ auth: "oauth",
19359
+ author: "Postman",
19360
+ category: "developer",
19361
+ description: "Work with Postman workspaces, collections and APIs",
19362
+ icon: favicon("postman.com"),
19363
+ identifier: "postman",
19364
+ label: "Postman",
19365
+ url: "https://mcp.postman.com/mcp"
19366
+ },
19367
+ {
19368
+ auth: "oauth",
19369
+ author: "Prisma",
19370
+ category: "developer",
19371
+ description: "Manage Prisma Postgres databases and migrations",
19372
+ icon: favicon("prisma.io"),
19373
+ identifier: "prisma",
19374
+ label: "Prisma",
19375
+ url: "https://mcp.prisma.io/mcp"
19376
+ },
19377
+ {
19378
+ auth: "oauth",
19379
+ author: "ClickHouse",
19380
+ category: "developer",
19381
+ description: "Explore and query ClickHouse Cloud services",
19382
+ icon: favicon("clickhouse.com"),
19383
+ identifier: "clickhouse",
19384
+ label: "ClickHouse",
19385
+ url: "https://mcp.clickhouse.cloud/mcp"
19386
+ },
19387
+ {
19388
+ auth: "oauth",
19389
+ author: "incident.io",
19390
+ category: "developer",
19391
+ description: "Review and manage incidents, alerts and on-call in incident.io",
19392
+ icon: favicon("incident.io"),
19393
+ identifier: "incident-io",
19394
+ label: "incident.io",
19395
+ url: "https://mcp.incident.io/mcp"
19396
+ },
19397
+ {
19398
+ auth: "oauth",
19399
+ author: "Atlassian",
19400
+ category: "projects",
19401
+ description: "Search and update Jira issues and Confluence pages with the official Atlassian server",
19402
+ icon: favicon("atlassian.com"),
19403
+ identifier: "atlassian",
19404
+ label: "Atlassian",
19405
+ url: "https://mcp.atlassian.com/v1/mcp"
19406
+ },
19407
+ {
19408
+ auth: "oauth",
19409
+ author: "monday.com",
19410
+ category: "projects",
19411
+ description: "Manage boards, items and updates in monday.com",
19412
+ icon: favicon("monday.com"),
19413
+ identifier: "monday",
19414
+ label: "monday.com",
19415
+ url: "https://mcp.monday.com/mcp"
19416
+ },
19417
+ {
19418
+ auth: "oauth",
19419
+ author: "Doist",
19420
+ category: "productivity",
19421
+ description: "Add, organize and complete tasks in Todoist",
19422
+ icon: favicon("todoist.com"),
19423
+ identifier: "todoist",
19424
+ label: "Todoist",
19425
+ url: "https://ai.todoist.net/mcp"
19426
+ },
19427
+ {
19428
+ auth: "oauth",
19429
+ author: "Miro",
19430
+ category: "projects",
19431
+ description: "Read and create content on Miro boards",
19432
+ icon: favicon("miro.com"),
19433
+ identifier: "miro",
19434
+ label: "Miro",
19435
+ url: "https://mcp.miro.com/"
19436
+ },
19437
+ {
19438
+ auth: "oauth",
19439
+ author: "Canva",
19440
+ category: "productivity",
19441
+ description: "Search, create and edit designs in Canva",
19442
+ icon: favicon("canva.com"),
19443
+ identifier: "canva",
19444
+ label: "Canva",
19445
+ url: "https://mcp.canva.com/mcp"
19446
+ },
19447
+ {
19448
+ auth: "oauth",
19449
+ author: "Calendly",
19450
+ category: "productivity",
19451
+ description: "Check availability and manage scheduled events in Calendly",
19452
+ icon: favicon("calendly.com"),
19453
+ identifier: "calendly",
19454
+ label: "Calendly",
19455
+ url: "https://mcp.calendly.com"
19456
+ },
19457
+ {
19458
+ auth: "oauth",
19459
+ author: "Intercom",
19460
+ category: "chat",
19461
+ description: "Search conversations, contacts and help articles in Intercom",
19462
+ icon: favicon("intercom.com"),
19463
+ identifier: "intercom",
19464
+ label: "Intercom",
19465
+ url: "https://mcp.intercom.com/mcp"
19466
+ },
19467
+ {
19468
+ auth: "oauth",
19469
+ author: "Webflow",
19470
+ category: "documents",
19471
+ description: "Manage Webflow sites, pages and CMS collections",
19472
+ icon: favicon("webflow.com"),
19473
+ identifier: "webflow",
19474
+ label: "Webflow",
19475
+ url: "https://mcp.webflow.com/mcp"
19476
+ },
19477
+ {
19478
+ auth: "oauth",
19479
+ author: "Automattic",
19480
+ category: "documents",
19481
+ description: "Read and publish posts on your WordPress.com sites",
19482
+ icon: favicon("wordpress.com"),
19483
+ identifier: "wordpress",
19484
+ label: "WordPress.com",
19485
+ url: "https://public-api.wordpress.com/wpcom/v2/mcp/v1"
19486
+ },
19487
+ {
19488
+ auth: "oauth",
19489
+ author: "Coda",
19490
+ category: "documents",
19491
+ description: "Read and update Coda docs and tables",
19492
+ icon: favicon("coda.io"),
19493
+ identifier: "coda",
19494
+ label: "Coda",
19495
+ url: "https://coda.io/apis/mcp"
19496
+ },
19497
+ {
19498
+ auth: "oauth",
19499
+ author: "GitBook",
19500
+ category: "documents",
19501
+ description: "Search and read your GitBook documentation spaces",
19502
+ icon: favicon("gitbook.com"),
19503
+ identifier: "gitbook",
19504
+ label: "GitBook",
19505
+ url: "https://mcp.gitbook.com/mcp"
19506
+ },
19507
+ {
19508
+ auth: "oauth",
19509
+ author: "Granola",
19510
+ category: "productivity",
19511
+ description: "Search your Granola meeting notes and transcripts",
19512
+ icon: favicon("granola.ai"),
19513
+ identifier: "granola",
19514
+ label: "Granola",
19515
+ url: "https://mcp.granola.ai/mcp"
19516
+ },
19517
+ {
19518
+ auth: "oauth",
19519
+ author: "Fireflies.ai",
19520
+ category: "productivity",
19521
+ description: "Search meeting transcripts and summaries in Fireflies",
19522
+ icon: favicon("fireflies.ai"),
19523
+ identifier: "fireflies",
19524
+ label: "Fireflies",
19525
+ url: "https://api.fireflies.ai/mcp"
19526
+ },
19527
+ {
19528
+ auth: "oauth",
19529
+ author: "Amplitude",
19530
+ category: "developer",
19531
+ description: "Query charts, events and user analytics in Amplitude",
19532
+ icon: favicon("amplitude.com"),
19533
+ identifier: "amplitude",
19534
+ label: "Amplitude",
19535
+ url: "https://mcp.amplitude.com/mcp"
19536
+ },
19537
+ {
19538
+ auth: "oauth",
19539
+ author: "Mixpanel",
19540
+ category: "developer",
19541
+ description: "Query events, funnels and retention in Mixpanel",
19542
+ icon: favicon("mixpanel.com"),
19543
+ identifier: "mixpanel",
19544
+ label: "Mixpanel",
19545
+ url: "https://mcp.mixpanel.com/mcp"
19546
+ },
19547
+ {
19548
+ auth: "oauth",
19549
+ author: "Hex",
19550
+ category: "developer",
19551
+ description: "Search and run Hex projects and data analyses",
19552
+ icon: favicon("hex.tech"),
19553
+ identifier: "hex",
19554
+ label: "Hex",
19555
+ url: "https://app.hex.tech/mcp"
19556
+ },
19557
+ {
19558
+ auth: "oauth",
19559
+ author: "Ahrefs",
19560
+ category: "productivity",
19561
+ description: "Pull SEO metrics, backlinks and keyword data from Ahrefs",
19562
+ icon: favicon("ahrefs.com"),
19563
+ identifier: "ahrefs",
19564
+ label: "Ahrefs",
19565
+ url: "https://api.ahrefs.com/mcp/mcp"
19566
+ },
19567
+ {
19568
+ auth: "oauth",
19569
+ author: "Semrush",
19570
+ category: "productivity",
19571
+ description: "Pull keyword, domain and traffic data from Semrush",
19572
+ icon: favicon("semrush.com"),
19573
+ identifier: "semrush",
19574
+ label: "Semrush",
19575
+ url: "https://mcp.semrush.com/v1/mcp"
19576
+ },
19577
+ {
19578
+ auth: "oauth",
19579
+ author: "PayPal",
19580
+ category: "developer",
19581
+ description: "Manage invoices, orders and transactions in PayPal",
19582
+ icon: favicon("paypal.com"),
19583
+ identifier: "paypal",
19584
+ label: "PayPal",
19585
+ url: "https://mcp.paypal.com/mcp"
19586
+ },
19587
+ {
19588
+ auth: "oauth",
19589
+ author: "Zapier",
19590
+ category: "productivity",
19591
+ description: "Run actions across thousands of apps through your Zapier account",
19592
+ icon: favicon("zapier.com"),
19593
+ identifier: "zapier",
19594
+ label: "Zapier",
19595
+ url: "https://mcp.zapier.com/api/mcp/mcp"
19596
+ },
19597
+ {
19598
+ auth: "oauth",
19599
+ author: "Make",
19600
+ category: "productivity",
19601
+ description: "Run your Make scenarios as tools",
19602
+ icon: favicon("make.com"),
19603
+ identifier: "make",
19604
+ label: "Make",
19605
+ url: "https://mcp.make.com"
19606
+ },
19607
+ {
19608
+ auth: "none",
19609
+ author: "Upstash",
19610
+ category: "developer",
19611
+ description: "Fetch up-to-date library documentation and code examples",
19612
+ icon: favicon("context7.com"),
19613
+ identifier: "context7",
19614
+ label: "Context7",
19615
+ url: "https://mcp.context7.com/mcp"
19616
+ },
19617
+ {
19618
+ auth: "none",
19619
+ author: "Cognition",
19620
+ category: "developer",
19621
+ description: "Ask questions about public GitHub repositories",
19622
+ icon: favicon("deepwiki.com"),
19623
+ identifier: "deepwiki",
19624
+ label: "DeepWiki",
19625
+ url: "https://mcp.deepwiki.com/mcp"
19626
+ },
19627
+ {
19628
+ auth: "none",
19629
+ author: "Exa",
19630
+ category: "productivity",
19631
+ description: "Search the web and fetch page content with Exa",
19632
+ icon: favicon("exa.ai"),
19633
+ identifier: "exa",
19634
+ label: "Exa",
19635
+ url: "https://mcp.exa.ai/mcp"
19636
+ },
19637
+ {
19638
+ auth: "none",
19639
+ author: "Cloudflare",
19640
+ category: "developer",
19641
+ description: "Search the Cloudflare developer documentation",
19642
+ icon: favicon("developers.cloudflare.com"),
19643
+ identifier: "cloudflare-docs",
19644
+ label: "Cloudflare Docs",
19645
+ url: "https://docs.mcp.cloudflare.com/mcp"
19646
+ }
19647
+ ];
19648
+
19263
19649
  //#endregion
19264
19650
  //#region ../../packages/const/src/plugin.ts
19265
19651
  const PLUGIN_SCHEMA_SEPARATOR = "____";
@@ -22220,7 +22606,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22220
22606
  const childProcess$2 = __require("node:child_process");
22221
22607
  const path$16 = __require("node:path");
22222
22608
  const fs$17 = __require("node:fs");
22223
- const process$3 = __require("node:process");
22609
+ const process$2 = __require("node:process");
22224
22610
  const { Argument, humanReadableArgName } = require_argument();
22225
22611
  const { CommanderError } = require_error$1();
22226
22612
  const { Help, stripColor } = require_help();
@@ -22272,13 +22658,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22272
22658
  this._showSuggestionAfterError = true;
22273
22659
  this._savedState = null;
22274
22660
  this._outputConfiguration = {
22275
- writeOut: (str) => process$3.stdout.write(str),
22276
- writeErr: (str) => process$3.stderr.write(str),
22661
+ writeOut: (str) => process$2.stdout.write(str),
22662
+ writeErr: (str) => process$2.stderr.write(str),
22277
22663
  outputError: (str, write) => write(str),
22278
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22279
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22280
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22281
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
22664
+ getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
22665
+ getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
22666
+ getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
22667
+ getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
22282
22668
  stripColor: (str) => stripColor(str)
22283
22669
  };
22284
22670
  this._hidden = false;
@@ -22636,7 +23022,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22636
23022
  */
22637
23023
  _exit(exitCode, code, message) {
22638
23024
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22639
- process$3.exit(exitCode);
23025
+ process$2.exit(exitCode);
22640
23026
  }
22641
23027
  /**
22642
23028
  * Register callback `fn` for the command.
@@ -22975,11 +23361,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22975
23361
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22976
23362
  parseOptions = parseOptions || {};
22977
23363
  if (argv === void 0 && parseOptions.from === void 0) {
22978
- if (process$3.versions?.electron) parseOptions.from = "electron";
22979
- const execArgv = process$3.execArgv ?? [];
23364
+ if (process$2.versions?.electron) parseOptions.from = "electron";
23365
+ const execArgv = process$2.execArgv ?? [];
22980
23366
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22981
23367
  }
22982
- if (argv === void 0) argv = process$3.argv;
23368
+ if (argv === void 0) argv = process$2.argv;
22983
23369
  this.rawArgs = argv.slice();
22984
23370
  let userArgs;
22985
23371
  switch (parseOptions.from) {
@@ -22989,7 +23375,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22989
23375
  userArgs = argv.slice(2);
22990
23376
  break;
22991
23377
  case "electron":
22992
- if (process$3.defaultApp) {
23378
+ if (process$2.defaultApp) {
22993
23379
  this._scriptPath = argv[1];
22994
23380
  userArgs = argv.slice(2);
22995
23381
  } else userArgs = argv.slice(1);
@@ -23154,16 +23540,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
23154
23540
  }
23155
23541
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
23156
23542
  let proc;
23157
- if (process$3.platform !== "win32") if (launchWithNode) {
23543
+ if (process$2.platform !== "win32") if (launchWithNode) {
23158
23544
  args.unshift(executableFile);
23159
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23160
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
23545
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23546
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
23161
23547
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
23162
23548
  else {
23163
23549
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23164
23550
  args.unshift(executableFile);
23165
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23166
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
23551
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23552
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
23167
23553
  }
23168
23554
  if (!proc.killed) [
23169
23555
  "SIGUSR1",
@@ -23172,20 +23558,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
23172
23558
  "SIGINT",
23173
23559
  "SIGHUP"
23174
23560
  ].forEach((signal) => {
23175
- process$3.on(signal, () => {
23561
+ process$2.on(signal, () => {
23176
23562
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
23177
23563
  });
23178
23564
  });
23179
23565
  const exitCallback = this._exitCallback;
23180
23566
  proc.on("close", (code) => {
23181
23567
  code = code ?? 1;
23182
- if (!exitCallback) process$3.exit(code);
23568
+ if (!exitCallback) process$2.exit(code);
23183
23569
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
23184
23570
  });
23185
23571
  proc.on("error", (err) => {
23186
23572
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23187
23573
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
23188
- if (!exitCallback) process$3.exit(1);
23574
+ if (!exitCallback) process$2.exit(1);
23189
23575
  else {
23190
23576
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
23191
23577
  wrappedError.nestedError = err;
@@ -23594,13 +23980,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23594
23980
  */
23595
23981
  _parseOptionsEnv() {
23596
23982
  this.options.forEach((option) => {
23597
- if (option.envVar && option.envVar in process$3.env) {
23983
+ if (option.envVar && option.envVar in process$2.env) {
23598
23984
  const optionKey = option.attributeName();
23599
23985
  if (this.getOptionValue(optionKey) === void 0 || [
23600
23986
  "default",
23601
23987
  "config",
23602
23988
  "env"
23603
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23989
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23604
23990
  else this.emit(`optionEnv:${option.name()}`);
23605
23991
  }
23606
23992
  });
@@ -24017,7 +24403,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24017
24403
  */
24018
24404
  help(contextOptions) {
24019
24405
  this.outputHelp(contextOptions);
24020
- let exitCode = Number(process$3.exitCode ?? 0);
24406
+ let exitCode = Number(process$2.exitCode ?? 0);
24021
24407
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
24022
24408
  this._exit(exitCode, "commander.help", "(outputHelp)");
24023
24409
  }
@@ -24107,8 +24493,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
24107
24493
  * @package
24108
24494
  */
24109
24495
  function useColor() {
24110
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
24111
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
24496
+ if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
24497
+ if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
24112
24498
  }
24113
24499
  exports.Command = Command;
24114
24500
  exports.useColor = useColor;
@@ -335318,7 +335704,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
335318
335704
  function getDefaultEnvironment() {
335319
335705
  const env = {};
335320
335706
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
335321
- const value = process$1.env[key];
335707
+ const value = _w.env[key];
335322
335708
  if (value === void 0) continue;
335323
335709
  if (value.startsWith("()")) continue;
335324
335710
  env[key] = value;
@@ -335329,7 +335715,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
335329
335715
  var init_stdio = __esmMin((() => {
335330
335716
  init_src_CeKsbNLO();
335331
335717
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
335332
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
335718
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
335333
335719
  "APPDATA",
335334
335720
  "COMSPEC",
335335
335721
  "HOMEDRIVE",
@@ -335386,7 +335772,7 @@ var init_stdio = __esmMin((() => {
335386
335772
  this._serverParams.stderr ?? "inherit"
335387
335773
  ],
335388
335774
  shell: false,
335389
- windowsHide: process$1.platform === "win32",
335775
+ windowsHide: _w.platform === "win32",
335390
335776
  cwd: this._serverParams.cwd
335391
335777
  });
335392
335778
  this._process.on("error", (error) => {
@@ -338420,9 +338806,9 @@ const getSubprocessResult = ({ stdout }) => {
338420
338806
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
338421
338807
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
338422
338808
  const STANDARD_STREAMS = [
338423
- process$1.stdin,
338424
- process$1.stdout,
338425
- process$1.stderr
338809
+ _w.stdin,
338810
+ _w.stdout,
338811
+ _w.stderr
338426
338812
  ];
338427
338813
  const STANDARD_STREAMS_ALIASES = [
338428
338814
  "stdin",
@@ -338547,9 +338933,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
338547
338933
  //#endregion
338548
338934
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
338549
338935
  function isUnicodeSupported() {
338550
- const { env } = process$1;
338936
+ const { env } = _w;
338551
338937
  const { TERM, TERM_PROGRAM } = env;
338552
- if (process$1.platform !== "win32") return TERM !== "linux";
338938
+ if (_w.platform !== "win32") return TERM !== "linux";
338553
338939
  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";
338554
338940
  }
338555
338941
 
@@ -339084,7 +339470,7 @@ function traversePathUp(startPath) {
339084
339470
 
339085
339471
  //#endregion
339086
339472
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
339087
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
339473
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
339088
339474
  const cwdPath = path.resolve(toPath(cwd));
339089
339475
  const result = [];
339090
339476
  const pathParts = pathOption.split(path.delimiter);
@@ -339102,7 +339488,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
339102
339488
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
339103
339489
  if (!pathParts.includes(pathPart)) result.push(pathPart);
339104
339490
  };
339105
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
339491
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
339106
339492
  env = { ...env };
339107
339493
  const pathName = pathKey({ env });
339108
339494
  options.path = env[pathName];
@@ -340237,7 +340623,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
340237
340623
  };
340238
340624
  const getDefaultCwd = () => {
340239
340625
  try {
340240
- return process$1.cwd();
340626
+ return _w.cwd();
340241
340627
  } catch (error) {
340242
340628
  error.message = `The current directory does not exist.\n${error.message}`;
340243
340629
  throw error;
@@ -340273,7 +340659,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
340273
340659
  options.killSignal = normalizeKillSignal(options.killSignal);
340274
340660
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
340275
340661
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
340276
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340662
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340277
340663
  return {
340278
340664
  file,
340279
340665
  commandArguments,
@@ -340300,7 +340686,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
340300
340686
  });
340301
340687
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
340302
340688
  const env = extendEnv ? {
340303
- ...process$1.env,
340689
+ ..._w.env,
340304
340690
  ...envOption
340305
340691
  } : envOption;
340306
340692
  if (preferLocal || node) return npmRunPathEnv({
@@ -341302,12 +341688,12 @@ const guessStreamDirection = {
341302
341688
  }
341303
341689
  };
341304
341690
  const getStandardStreamDirection = (value) => {
341305
- if ([0, process$1.stdin].includes(value)) return "input";
341691
+ if ([0, _w.stdin].includes(value)) return "input";
341306
341692
  if ([
341307
341693
  1,
341308
341694
  2,
341309
- process$1.stdout,
341310
- process$1.stderr
341695
+ _w.stdout,
341696
+ _w.stderr
341311
341697
  ].includes(value)) return "output";
341312
341698
  };
341313
341699
  const DEFAULT_DIRECTION = "output";
@@ -342371,9 +342757,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
342371
342757
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
342372
342758
  };
342373
342759
  const getIpcExport = () => {
342374
- const anyProcess = process$1;
342760
+ const anyProcess = _w;
342375
342761
  const isSubprocess = true;
342376
- const ipc = process$1.channel !== void 0;
342762
+ const ipc = _w.channel !== void 0;
342377
342763
  return {
342378
342764
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
342379
342765
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -342850,7 +343236,7 @@ var SignalExitFallback = class extends SignalExitBase {
342850
343236
  };
342851
343237
  var SignalExit = class extends SignalExitBase {
342852
343238
  /* c8 ignore start */
342853
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
343239
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
342854
343240
  /* c8 ignore stop */
342855
343241
  #emitter = new Emitter();
342856
343242
  #process;
@@ -342945,8 +343331,8 @@ var SignalExit = class extends SignalExitBase {
342945
343331
  } else return og.call(this.#process, ev, ...args);
342946
343332
  }
342947
343333
  };
342948
- const process$2 = globalThis.process;
342949
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
343334
+ const process$1 = globalThis.process;
343335
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
342950
343336
 
342951
343337
  //#endregion
342952
343338
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js