@google/gemini-cli 0.65.0-preview.0 → 0.66.0-nightly.20261017.ged96faedf

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.
Files changed (75) hide show
  1. package/README.md +21 -56
  2. package/bundle/{chunk-NL7ZHGCH.js → chunk-464WBVYM.js} +1 -1
  3. package/bundle/{chunk-QJK54DSE.js → chunk-5VQUE3OF.js} +1 -1
  4. package/bundle/{chunk-VF5WQSOE.js → chunk-7ARQMEMX.js} +1 -1
  5. package/bundle/{chunk-2WVLIJA5.js → chunk-BUG4N6U5.js} +145 -77
  6. package/bundle/{chunk-F6AJM4WN.js → chunk-DPV3ZEOC.js} +3 -3
  7. package/bundle/{chunk-GSQEBEGC.js → chunk-ERBSM2HU.js} +3 -3
  8. package/bundle/{chunk-WTRK3NVX.js → chunk-GEUFOF2X.js} +106 -1500
  9. package/bundle/{chunk-V2R74WAG.js → chunk-H4U2CWBQ.js} +151 -81
  10. package/bundle/chunk-HDP6V6JI.js +1956 -0
  11. package/bundle/{chunk-RPHDSDL6.js → chunk-IDCWFZU3.js} +1 -1
  12. package/bundle/{chunk-SN7QZKXC.js → chunk-IGOTAEJY.js} +170 -1551
  13. package/bundle/chunk-J5QPCO3J.js +101859 -0
  14. package/bundle/{chunk-H2CZXS7F.js → chunk-JY3DYBJT.js} +1 -1
  15. package/bundle/{chunk-HLOOE7YN.js → chunk-LDGJJCVW.js} +9 -8
  16. package/bundle/chunk-MH4KAY5W.js +512 -0
  17. package/bundle/{chunk-LLE5Z636.js → chunk-NAPT3FAL.js} +106 -1500
  18. package/bundle/chunk-NOSWGXRT.js +1956 -0
  19. package/bundle/{chunk-43EXRO7A.js → chunk-NU74STQ5.js} +145 -77
  20. package/bundle/{chunk-K7NOVQ6G.js → chunk-QCWGLPCO.js} +376 -231
  21. package/bundle/{chunk-WGL5FJOS.js → chunk-QF3ALSJN.js} +3 -3
  22. package/bundle/{chunk-K4G5D5ZZ.js → chunk-R4KPURFC.js} +1 -1
  23. package/bundle/chunk-R6XDLHLP.js +1956 -0
  24. package/bundle/chunk-R7UPATQC.js +1956 -0
  25. package/bundle/chunk-RACMC24X.js +118 -0
  26. package/bundle/{chunk-4JGVVJGK.js → chunk-RE4V6I3G.js} +1 -1
  27. package/bundle/{chunk-S7BCRBI4.js → chunk-UTTFPWGQ.js} +1 -1
  28. package/bundle/chunk-VXYA6LA4.js +1571 -0
  29. package/bundle/chunk-XY2QSBID.js +17603 -0
  30. package/bundle/{chunk-K7AA35SP.js → chunk-YOI4DS3V.js} +365 -230
  31. package/bundle/chunk-YP27UYI4.js +154 -0
  32. package/bundle/{chunk-TP236FKO.js → chunk-YPLMNSM4.js} +8243 -15166
  33. package/bundle/chunk-ZFQ347ZN.js +402181 -0
  34. package/bundle/{cleanup-HPADDONA.js → cleanup-6FAZDCL3.js} +2 -2
  35. package/bundle/{cleanup-JOMSXKMP.js → cleanup-GNZLZG55.js} +2 -2
  36. package/bundle/{cleanup-LYRJHMMO.js → cleanup-RX3AC5ET.js} +2 -2
  37. package/bundle/cleanup-WAU2KYGS.js +32 -0
  38. package/bundle/{core-NCJTYARO.js → core-AGGXDQOT.js} +13 -1
  39. package/bundle/{devtoolsService-WP2OPVPB.js → devtoolsService-6XOCGTLC.js} +2 -2
  40. package/bundle/{devtoolsService-JFJBTZ4B.js → devtoolsService-FBTSVQ57.js} +4 -3
  41. package/bundle/{devtoolsService-HIZA3JGR.js → devtoolsService-UO6ZB72B.js} +2 -2
  42. package/bundle/devtoolsService-W5QGZ3SW.js +4359 -0
  43. package/bundle/{dist-GQKLLBDW.js → dist-2ELAEESC.js} +13 -1
  44. package/bundle/{core-IVQAI4S6.js → dist-2R7C2WHA.js} +13 -1
  45. package/bundle/dist-PALH7PJS.js +2280 -0
  46. package/bundle/docs/changelogs/index.md +22 -0
  47. package/bundle/docs/changelogs/latest.md +64 -54
  48. package/bundle/docs/changelogs/preview.md +91 -55
  49. package/bundle/docs/reference/configuration.md +8 -3
  50. package/bundle/docs/reference/keyboard-shortcuts.md +18 -4
  51. package/bundle/{gemini-5TUKZVGS.js → gemini-6MH55Y7F.js} +37 -18
  52. package/bundle/{gemini-7CHJYSHM.js → gemini-DOXUDJDY.js} +37 -18
  53. package/bundle/{gemini-546WMAHG.js → gemini-OHYXI52N.js} +237 -202
  54. package/bundle/gemini-OUEDCH4P.js +17970 -0
  55. package/bundle/gemini.js +14 -15
  56. package/bundle/{interactiveCli-E3PUPYMZ.js → interactiveCli-7LIKGDTJ.js} +1061 -989
  57. package/bundle/{interactiveCli-5XIAIY74.js → interactiveCli-EGQYN3KR.js} +1371 -1280
  58. package/bundle/{interactiveCli-L4PK7YY3.js → interactiveCli-TG7PGV4V.js} +1061 -989
  59. package/bundle/interactiveCli-YEXCUIFZ.js +35601 -0
  60. package/bundle/{liteRtServerManager-JCTYJBV5.js → liteRtServerManager-KAPXZ3EU.js} +4 -4
  61. package/bundle/{liteRtServerManager-JERG6KYC.js → liteRtServerManager-MSJIWMWP.js} +4 -4
  62. package/bundle/{liteRtServerManager-22ISMNN2.js → liteRtServerManager-PD2N3GLD.js} +4 -4
  63. package/bundle/liteRtServerManager-X5SCFYXM.js +65 -0
  64. package/bundle/{oauth2-provider-XRUER2XR.js → oauth2-provider-IUN6Z4IO.js} +1 -1
  65. package/bundle/{oauth2-provider-477UJQX6.js → oauth2-provider-MKJIQNWP.js} +41 -79
  66. package/bundle/{oauth2-provider-MKWWBW4K.js → oauth2-provider-RMF7U2UN.js} +1 -1
  67. package/bundle/oauth2-provider-ZM5GWCNX.js +273 -0
  68. package/bundle/{start-MVIPJNQ5.js → start-5GIUIER3.js} +6 -6
  69. package/bundle/{start-RZWSVT55.js → start-APIVGXZ3.js} +6 -6
  70. package/bundle/{start-AGMBPY3O.js → start-GJ4TH4KZ.js} +6 -6
  71. package/bundle/start-WDS52ZNE.js +18 -0
  72. package/package.json +1 -1
  73. package/bundle/chunk-4DCA4L53.js +0 -425
  74. package/bundle/chunk-BFIV7GTA.js +0 -425
  75. package/bundle/chunk-V72FRESD.js +0 -425
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-K4G5D5ZZ.js";
5
+ } from "./chunk-R4KPURFC.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,21 +63,24 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-V2R74WAG.js";
66
+ } from "./chunk-H4U2CWBQ.js";
67
67
  import {
68
- isDevelopment
69
- } from "./chunk-BFIV7GTA.js";
68
+ isDevelopment,
69
+ require_semver
70
+ } from "./chunk-R6XDLHLP.js";
70
71
  import {
71
72
  emptyIcon,
72
73
  mapCoreStatusToDisplayStatus,
73
74
  require_react
74
- } from "./chunk-QJK54DSE.js";
75
+ } from "./chunk-MH4KAY5W.js";
75
76
  import {
76
77
  ALL_EDITORS,
77
78
  ApprovalMode,
78
79
  AsyncFzf,
80
+ AuthType,
79
81
  Config,
80
82
  CoreEvent,
83
+ CoreToolCallStatus,
81
84
  DiscoveredMCPTool,
82
85
  ExtensionDisableEvent,
83
86
  ExtensionEnableEvent,
@@ -88,21 +91,32 @@ import {
88
91
  ExtensionUpdateEvent,
89
92
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
90
93
  GEMINI_DIR,
94
+ HookType,
95
+ IDEConnectionStatus,
91
96
  INITIAL_HISTORY_LENGTH,
92
97
  IdeClient,
93
98
  IdeConnectionEvent,
99
+ IdeConnectionType,
100
+ IntegrityDataStatus,
94
101
  KeychainTokenStorage,
102
+ LlmRole,
103
+ MCPDiscoveryState,
95
104
  MCPOAuthTokenStorage,
105
+ MCPServerStatus,
96
106
  ModelSlashCommandEvent,
107
+ PolicyDecision,
97
108
  ProjectIdRequiredError,
98
109
  REFERENCE_CONTENT_END,
99
110
  REFERENCE_CONTENT_START,
100
111
  ReadManyFilesTool,
101
112
  RewindEvent,
102
113
  SHELL_TOOL_NAME,
114
+ SessionEndReason,
115
+ SessionStartSource,
103
116
  ShellExecutionService,
104
117
  StartSessionEvent,
105
118
  Storage,
119
+ TrustLevel,
106
120
  UPGRADE_URL_PAGE,
107
121
  UserAccountManager,
108
122
  ValidationRequiredError,
@@ -177,6 +191,7 @@ import {
177
191
  isProjectSkillPatchTarget,
178
192
  isSubpath,
179
193
  isTerminalEditor,
194
+ isTmux,
180
195
  isValidEditorType,
181
196
  is_wsl_default,
182
197
  listExtensions,
@@ -209,20 +224,11 @@ import {
209
224
  readFileWithEncoding,
210
225
  readPathFromWorkspace,
211
226
  refreshMemory,
212
- require_clean,
213
- require_constants,
214
227
  require_cross_spawn,
215
- require_debug,
216
- require_identifiers,
217
228
  require_is_stream,
218
- require_parse,
219
- require_parse_options,
220
229
  require_path_key,
221
230
  require_pump,
222
- require_re,
223
- require_semver,
224
231
  require_toml,
225
- require_valid,
226
232
  resetBrowserSession,
227
233
  resolveAtCommandPath,
228
234
  resolveEditorTypeFromCommand,
@@ -241,7 +247,7 @@ import {
241
247
  uiTelemetryService,
242
248
  unescapePath,
243
249
  validateUrlDestination
244
- } from "./chunk-K7NOVQ6G.js";
250
+ } from "./chunk-YPLMNSM4.js";
245
251
  import {
246
252
  require_src
247
253
  } from "./chunk-L6PII3GR.js";
@@ -463,7 +469,7 @@ var require_react_reconciler_constants_production = __commonJS({
463
469
  });
464
470
 
465
471
  // node_modules/react-reconciler/constants.js
466
- var require_constants2 = __commonJS({
472
+ var require_constants = __commonJS({
467
473
  "node_modules/react-reconciler/constants.js"(exports, module) {
468
474
  "use strict";
469
475
  if (true) {
@@ -7841,14 +7847,14 @@ var require_react_reconciler_production = __commonJS({
7841
7847
  }
7842
7848
  var exports2 = {};
7843
7849
  "use strict";
7844
- var React22 = require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
7850
+ var React23 = require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
7845
7851
  Symbol.for("react.scope");
7846
7852
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
7847
7853
  Symbol.for("react.legacy_hidden");
7848
7854
  Symbol.for("react.tracing_marker");
7849
7855
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
7850
7856
  Symbol.for("react.view_transition");
7851
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React22.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
7857
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React23.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
7852
7858
  $$$config.cloneMutableInstance;
7853
7859
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
7854
7860
  $$$config.cloneMutableTextInstance;
@@ -15604,1434 +15610,6 @@ var require_extract_zip = __commonJS({
15604
15610
  }
15605
15611
  });
15606
15612
 
15607
- // node_modules/semver/functions/inc.js
15608
- var require_inc = __commonJS({
15609
- "node_modules/semver/functions/inc.js"(exports, module) {
15610
- "use strict";
15611
- var SemVer = require_semver();
15612
- var inc = (version2, release, options, identifier2, identifierBase) => {
15613
- if (typeof options === "string") {
15614
- identifierBase = identifier2;
15615
- identifier2 = options;
15616
- options = void 0;
15617
- }
15618
- try {
15619
- return new SemVer(
15620
- version2 instanceof SemVer ? version2.version : version2,
15621
- options
15622
- ).inc(release, identifier2, identifierBase).version;
15623
- } catch (er2) {
15624
- return null;
15625
- }
15626
- };
15627
- module.exports = inc;
15628
- }
15629
- });
15630
-
15631
- // node_modules/semver/functions/diff.js
15632
- var require_diff = __commonJS({
15633
- "node_modules/semver/functions/diff.js"(exports, module) {
15634
- "use strict";
15635
- var parse2 = require_parse();
15636
- var diff3 = (version1, version2) => {
15637
- const v1 = parse2(version1, null, true);
15638
- const v2 = parse2(version2, null, true);
15639
- const comparison = v1.compare(v2);
15640
- if (comparison === 0) {
15641
- return null;
15642
- }
15643
- const v1Higher = comparison > 0;
15644
- const highVersion = v1Higher ? v1 : v2;
15645
- const lowVersion = v1Higher ? v2 : v1;
15646
- const highHasPre = !!highVersion.prerelease.length;
15647
- const lowHasPre = !!lowVersion.prerelease.length;
15648
- if (lowHasPre && !highHasPre) {
15649
- if (!lowVersion.patch && !lowVersion.minor) {
15650
- return "major";
15651
- }
15652
- if (lowVersion.compareMain(highVersion) === 0) {
15653
- if (lowVersion.minor && !lowVersion.patch) {
15654
- return "minor";
15655
- }
15656
- return "patch";
15657
- }
15658
- }
15659
- const prefix = highHasPre ? "pre" : "";
15660
- if (v1.major !== v2.major) {
15661
- return prefix + "major";
15662
- }
15663
- if (v1.minor !== v2.minor) {
15664
- return prefix + "minor";
15665
- }
15666
- if (v1.patch !== v2.patch) {
15667
- return prefix + "patch";
15668
- }
15669
- return "prerelease";
15670
- };
15671
- module.exports = diff3;
15672
- }
15673
- });
15674
-
15675
- // node_modules/semver/functions/major.js
15676
- var require_major = __commonJS({
15677
- "node_modules/semver/functions/major.js"(exports, module) {
15678
- "use strict";
15679
- var SemVer = require_semver();
15680
- var major = (a, loose) => new SemVer(a, loose).major;
15681
- module.exports = major;
15682
- }
15683
- });
15684
-
15685
- // node_modules/semver/functions/minor.js
15686
- var require_minor = __commonJS({
15687
- "node_modules/semver/functions/minor.js"(exports, module) {
15688
- "use strict";
15689
- var SemVer = require_semver();
15690
- var minor = (a, loose) => new SemVer(a, loose).minor;
15691
- module.exports = minor;
15692
- }
15693
- });
15694
-
15695
- // node_modules/semver/functions/patch.js
15696
- var require_patch = __commonJS({
15697
- "node_modules/semver/functions/patch.js"(exports, module) {
15698
- "use strict";
15699
- var SemVer = require_semver();
15700
- var patch = (a, loose) => new SemVer(a, loose).patch;
15701
- module.exports = patch;
15702
- }
15703
- });
15704
-
15705
- // node_modules/semver/functions/prerelease.js
15706
- var require_prerelease = __commonJS({
15707
- "node_modules/semver/functions/prerelease.js"(exports, module) {
15708
- "use strict";
15709
- var parse2 = require_parse();
15710
- var prerelease = (version2, options) => {
15711
- const parsed = parse2(version2, options);
15712
- return parsed && parsed.prerelease.length ? parsed.prerelease : null;
15713
- };
15714
- module.exports = prerelease;
15715
- }
15716
- });
15717
-
15718
- // node_modules/semver/functions/compare.js
15719
- var require_compare = __commonJS({
15720
- "node_modules/semver/functions/compare.js"(exports, module) {
15721
- "use strict";
15722
- var SemVer = require_semver();
15723
- var compare = (a, b2, loose) => new SemVer(a, loose).compare(new SemVer(b2, loose));
15724
- module.exports = compare;
15725
- }
15726
- });
15727
-
15728
- // node_modules/semver/functions/rcompare.js
15729
- var require_rcompare = __commonJS({
15730
- "node_modules/semver/functions/rcompare.js"(exports, module) {
15731
- "use strict";
15732
- var compare = require_compare();
15733
- var rcompare = (a, b2, loose) => compare(b2, a, loose);
15734
- module.exports = rcompare;
15735
- }
15736
- });
15737
-
15738
- // node_modules/semver/functions/compare-loose.js
15739
- var require_compare_loose = __commonJS({
15740
- "node_modules/semver/functions/compare-loose.js"(exports, module) {
15741
- "use strict";
15742
- var compare = require_compare();
15743
- var compareLoose = (a, b2) => compare(a, b2, true);
15744
- module.exports = compareLoose;
15745
- }
15746
- });
15747
-
15748
- // node_modules/semver/functions/compare-build.js
15749
- var require_compare_build = __commonJS({
15750
- "node_modules/semver/functions/compare-build.js"(exports, module) {
15751
- "use strict";
15752
- var SemVer = require_semver();
15753
- var compareBuild = (a, b2, loose) => {
15754
- const versionA = new SemVer(a, loose);
15755
- const versionB = new SemVer(b2, loose);
15756
- return versionA.compare(versionB) || versionA.compareBuild(versionB);
15757
- };
15758
- module.exports = compareBuild;
15759
- }
15760
- });
15761
-
15762
- // node_modules/semver/functions/sort.js
15763
- var require_sort = __commonJS({
15764
- "node_modules/semver/functions/sort.js"(exports, module) {
15765
- "use strict";
15766
- var compareBuild = require_compare_build();
15767
- var sort = (list, loose) => list.sort((a, b2) => compareBuild(a, b2, loose));
15768
- module.exports = sort;
15769
- }
15770
- });
15771
-
15772
- // node_modules/semver/functions/rsort.js
15773
- var require_rsort = __commonJS({
15774
- "node_modules/semver/functions/rsort.js"(exports, module) {
15775
- "use strict";
15776
- var compareBuild = require_compare_build();
15777
- var rsort = (list, loose) => list.sort((a, b2) => compareBuild(b2, a, loose));
15778
- module.exports = rsort;
15779
- }
15780
- });
15781
-
15782
- // node_modules/semver/functions/gt.js
15783
- var require_gt = __commonJS({
15784
- "node_modules/semver/functions/gt.js"(exports, module) {
15785
- "use strict";
15786
- var compare = require_compare();
15787
- var gt2 = (a, b2, loose) => compare(a, b2, loose) > 0;
15788
- module.exports = gt2;
15789
- }
15790
- });
15791
-
15792
- // node_modules/semver/functions/lt.js
15793
- var require_lt = __commonJS({
15794
- "node_modules/semver/functions/lt.js"(exports, module) {
15795
- "use strict";
15796
- var compare = require_compare();
15797
- var lt2 = (a, b2, loose) => compare(a, b2, loose) < 0;
15798
- module.exports = lt2;
15799
- }
15800
- });
15801
-
15802
- // node_modules/semver/functions/eq.js
15803
- var require_eq = __commonJS({
15804
- "node_modules/semver/functions/eq.js"(exports, module) {
15805
- "use strict";
15806
- var compare = require_compare();
15807
- var eq = (a, b2, loose) => compare(a, b2, loose) === 0;
15808
- module.exports = eq;
15809
- }
15810
- });
15811
-
15812
- // node_modules/semver/functions/neq.js
15813
- var require_neq = __commonJS({
15814
- "node_modules/semver/functions/neq.js"(exports, module) {
15815
- "use strict";
15816
- var compare = require_compare();
15817
- var neq = (a, b2, loose) => compare(a, b2, loose) !== 0;
15818
- module.exports = neq;
15819
- }
15820
- });
15821
-
15822
- // node_modules/semver/functions/gte.js
15823
- var require_gte = __commonJS({
15824
- "node_modules/semver/functions/gte.js"(exports, module) {
15825
- "use strict";
15826
- var compare = require_compare();
15827
- var gte = (a, b2, loose) => compare(a, b2, loose) >= 0;
15828
- module.exports = gte;
15829
- }
15830
- });
15831
-
15832
- // node_modules/semver/functions/lte.js
15833
- var require_lte = __commonJS({
15834
- "node_modules/semver/functions/lte.js"(exports, module) {
15835
- "use strict";
15836
- var compare = require_compare();
15837
- var lte = (a, b2, loose) => compare(a, b2, loose) <= 0;
15838
- module.exports = lte;
15839
- }
15840
- });
15841
-
15842
- // node_modules/semver/functions/cmp.js
15843
- var require_cmp = __commonJS({
15844
- "node_modules/semver/functions/cmp.js"(exports, module) {
15845
- "use strict";
15846
- var eq = require_eq();
15847
- var neq = require_neq();
15848
- var gt2 = require_gt();
15849
- var gte = require_gte();
15850
- var lt2 = require_lt();
15851
- var lte = require_lte();
15852
- var cmp = (a, op, b2, loose) => {
15853
- switch (op) {
15854
- case "===":
15855
- if (typeof a === "object") {
15856
- a = a.version;
15857
- }
15858
- if (typeof b2 === "object") {
15859
- b2 = b2.version;
15860
- }
15861
- return a === b2;
15862
- case "!==":
15863
- if (typeof a === "object") {
15864
- a = a.version;
15865
- }
15866
- if (typeof b2 === "object") {
15867
- b2 = b2.version;
15868
- }
15869
- return a !== b2;
15870
- case "":
15871
- case "=":
15872
- case "==":
15873
- return eq(a, b2, loose);
15874
- case "!=":
15875
- return neq(a, b2, loose);
15876
- case ">":
15877
- return gt2(a, b2, loose);
15878
- case ">=":
15879
- return gte(a, b2, loose);
15880
- case "<":
15881
- return lt2(a, b2, loose);
15882
- case "<=":
15883
- return lte(a, b2, loose);
15884
- default:
15885
- throw new TypeError(`Invalid operator: ${op}`);
15886
- }
15887
- };
15888
- module.exports = cmp;
15889
- }
15890
- });
15891
-
15892
- // node_modules/semver/functions/coerce.js
15893
- var require_coerce = __commonJS({
15894
- "node_modules/semver/functions/coerce.js"(exports, module) {
15895
- "use strict";
15896
- var SemVer = require_semver();
15897
- var parse2 = require_parse();
15898
- var { safeRe: re2, t } = require_re();
15899
- var coerce = (version2, options) => {
15900
- if (version2 instanceof SemVer) {
15901
- return version2;
15902
- }
15903
- if (typeof version2 === "number") {
15904
- version2 = String(version2);
15905
- }
15906
- if (typeof version2 !== "string") {
15907
- return null;
15908
- }
15909
- options = options || {};
15910
- let match = null;
15911
- if (!options.rtl) {
15912
- match = version2.match(options.includePrerelease ? re2[t.COERCEFULL] : re2[t.COERCE]);
15913
- } else {
15914
- const coerceRtlRegex = options.includePrerelease ? re2[t.COERCERTLFULL] : re2[t.COERCERTL];
15915
- let next;
15916
- while ((next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length)) {
15917
- if (!match || next.index + next[0].length !== match.index + match[0].length) {
15918
- match = next;
15919
- }
15920
- coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
15921
- }
15922
- coerceRtlRegex.lastIndex = -1;
15923
- }
15924
- if (match === null) {
15925
- return null;
15926
- }
15927
- const major = match[2];
15928
- const minor = match[3] || "0";
15929
- const patch = match[4] || "0";
15930
- const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
15931
- const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
15932
- return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
15933
- };
15934
- module.exports = coerce;
15935
- }
15936
- });
15937
-
15938
- // node_modules/semver/internal/lrucache.js
15939
- var require_lrucache = __commonJS({
15940
- "node_modules/semver/internal/lrucache.js"(exports, module) {
15941
- "use strict";
15942
- var LRUCache = class {
15943
- constructor() {
15944
- this.max = 1e3;
15945
- this.map = /* @__PURE__ */ new Map();
15946
- }
15947
- get(key) {
15948
- const value = this.map.get(key);
15949
- if (value === void 0) {
15950
- return void 0;
15951
- } else {
15952
- this.map.delete(key);
15953
- this.map.set(key, value);
15954
- return value;
15955
- }
15956
- }
15957
- delete(key) {
15958
- return this.map.delete(key);
15959
- }
15960
- set(key, value) {
15961
- const deleted = this.delete(key);
15962
- if (!deleted && value !== void 0) {
15963
- if (this.map.size >= this.max) {
15964
- const firstKey = this.map.keys().next().value;
15965
- this.delete(firstKey);
15966
- }
15967
- this.map.set(key, value);
15968
- }
15969
- return this;
15970
- }
15971
- };
15972
- module.exports = LRUCache;
15973
- }
15974
- });
15975
-
15976
- // node_modules/semver/classes/range.js
15977
- var require_range = __commonJS({
15978
- "node_modules/semver/classes/range.js"(exports, module) {
15979
- "use strict";
15980
- var SPACE_CHARACTERS = /\s+/g;
15981
- var Range2 = class _Range {
15982
- constructor(range, options) {
15983
- options = parseOptions(options);
15984
- if (range instanceof _Range) {
15985
- if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
15986
- return range;
15987
- } else {
15988
- return new _Range(range.raw, options);
15989
- }
15990
- }
15991
- if (range instanceof Comparator) {
15992
- this.raw = range.value;
15993
- this.set = [[range]];
15994
- this.formatted = void 0;
15995
- return this;
15996
- }
15997
- this.options = options;
15998
- this.loose = !!options.loose;
15999
- this.includePrerelease = !!options.includePrerelease;
16000
- this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
16001
- this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c2) => c2.length);
16002
- if (!this.set.length) {
16003
- throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
16004
- }
16005
- if (this.set.length > 1) {
16006
- const first = this.set[0];
16007
- this.set = this.set.filter((c2) => !isNullSet(c2[0]));
16008
- if (this.set.length === 0) {
16009
- this.set = [first];
16010
- } else if (this.set.length > 1) {
16011
- for (const c2 of this.set) {
16012
- if (c2.length === 1 && isAny(c2[0])) {
16013
- this.set = [c2];
16014
- break;
16015
- }
16016
- }
16017
- }
16018
- }
16019
- this.formatted = void 0;
16020
- }
16021
- get range() {
16022
- if (this.formatted === void 0) {
16023
- this.formatted = "";
16024
- for (let i = 0; i < this.set.length; i++) {
16025
- if (i > 0) {
16026
- this.formatted += "||";
16027
- }
16028
- const comps = this.set[i];
16029
- for (let k2 = 0; k2 < comps.length; k2++) {
16030
- if (k2 > 0) {
16031
- this.formatted += " ";
16032
- }
16033
- this.formatted += comps[k2].toString().trim();
16034
- }
16035
- }
16036
- }
16037
- return this.formatted;
16038
- }
16039
- format() {
16040
- return this.range;
16041
- }
16042
- toString() {
16043
- return this.range;
16044
- }
16045
- parseRange(range) {
16046
- const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
16047
- const memoKey = memoOpts + ":" + range;
16048
- const cached = cache.get(memoKey);
16049
- if (cached) {
16050
- return cached;
16051
- }
16052
- const loose = this.options.loose;
16053
- const hr2 = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
16054
- range = range.replace(hr2, hyphenReplace(this.options.includePrerelease));
16055
- debug("hyphen replace", range);
16056
- range = range.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
16057
- debug("comparator trim", range);
16058
- range = range.replace(re2[t.TILDETRIM], tildeTrimReplace);
16059
- debug("tilde trim", range);
16060
- range = range.replace(re2[t.CARETTRIM], caretTrimReplace);
16061
- debug("caret trim", range);
16062
- let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
16063
- if (loose) {
16064
- rangeList = rangeList.filter((comp) => {
16065
- debug("loose invalid filter", comp, this.options);
16066
- return !!comp.match(re2[t.COMPARATORLOOSE]);
16067
- });
16068
- }
16069
- debug("range list", rangeList);
16070
- const rangeMap = /* @__PURE__ */ new Map();
16071
- const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
16072
- for (const comp of comparators) {
16073
- if (isNullSet(comp)) {
16074
- return [comp];
16075
- }
16076
- rangeMap.set(comp.value, comp);
16077
- }
16078
- if (rangeMap.size > 1 && rangeMap.has("")) {
16079
- rangeMap.delete("");
16080
- }
16081
- const result = [...rangeMap.values()];
16082
- cache.set(memoKey, result);
16083
- return result;
16084
- }
16085
- intersects(range, options) {
16086
- if (!(range instanceof _Range)) {
16087
- throw new TypeError("a Range is required");
16088
- }
16089
- return this.set.some((thisComparators) => {
16090
- return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
16091
- return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
16092
- return rangeComparators.every((rangeComparator) => {
16093
- return thisComparator.intersects(rangeComparator, options);
16094
- });
16095
- });
16096
- });
16097
- });
16098
- }
16099
- // if ANY of the sets match ALL of its comparators, then pass
16100
- test(version2) {
16101
- if (!version2) {
16102
- return false;
16103
- }
16104
- if (typeof version2 === "string") {
16105
- try {
16106
- version2 = new SemVer(version2, this.options);
16107
- } catch (er2) {
16108
- return false;
16109
- }
16110
- }
16111
- for (let i = 0; i < this.set.length; i++) {
16112
- if (testSet(this.set[i], version2, this.options)) {
16113
- return true;
16114
- }
16115
- }
16116
- return false;
16117
- }
16118
- };
16119
- module.exports = Range2;
16120
- var LRU = require_lrucache();
16121
- var cache = new LRU();
16122
- var parseOptions = require_parse_options();
16123
- var Comparator = require_comparator();
16124
- var debug = require_debug();
16125
- var SemVer = require_semver();
16126
- var {
16127
- safeRe: re2,
16128
- t,
16129
- comparatorTrimReplace,
16130
- tildeTrimReplace,
16131
- caretTrimReplace
16132
- } = require_re();
16133
- var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
16134
- var isNullSet = (c2) => c2.value === "<0.0.0-0";
16135
- var isAny = (c2) => c2.value === "";
16136
- var isSatisfiable = (comparators, options) => {
16137
- let result = true;
16138
- const remainingComparators = comparators.slice();
16139
- let testComparator = remainingComparators.pop();
16140
- while (result && remainingComparators.length) {
16141
- result = remainingComparators.every((otherComparator) => {
16142
- return testComparator.intersects(otherComparator, options);
16143
- });
16144
- testComparator = remainingComparators.pop();
16145
- }
16146
- return result;
16147
- };
16148
- var parseComparator = (comp, options) => {
16149
- debug("comp", comp, options);
16150
- comp = replaceCarets(comp, options);
16151
- debug("caret", comp);
16152
- comp = replaceTildes(comp, options);
16153
- debug("tildes", comp);
16154
- comp = replaceXRanges(comp, options);
16155
- debug("xrange", comp);
16156
- comp = replaceStars(comp, options);
16157
- debug("stars", comp);
16158
- return comp;
16159
- };
16160
- var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
16161
- var replaceTildes = (comp, options) => {
16162
- return comp.trim().split(/\s+/).map((c2) => replaceTilde(c2, options)).join(" ");
16163
- };
16164
- var replaceTilde = (comp, options) => {
16165
- const r2 = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
16166
- return comp.replace(r2, (_2, M2, m2, p2, pr2) => {
16167
- debug("tilde", comp, _2, M2, m2, p2, pr2);
16168
- let ret;
16169
- if (isX(M2)) {
16170
- ret = "";
16171
- } else if (isX(m2)) {
16172
- ret = `>=${M2}.0.0 <${+M2 + 1}.0.0-0`;
16173
- } else if (isX(p2)) {
16174
- ret = `>=${M2}.${m2}.0 <${M2}.${+m2 + 1}.0-0`;
16175
- } else if (pr2) {
16176
- debug("replaceTilde pr", pr2);
16177
- ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${+m2 + 1}.0-0`;
16178
- } else {
16179
- ret = `>=${M2}.${m2}.${p2} <${M2}.${+m2 + 1}.0-0`;
16180
- }
16181
- debug("tilde return", ret);
16182
- return ret;
16183
- });
16184
- };
16185
- var replaceCarets = (comp, options) => {
16186
- return comp.trim().split(/\s+/).map((c2) => replaceCaret(c2, options)).join(" ");
16187
- };
16188
- var replaceCaret = (comp, options) => {
16189
- debug("caret", comp, options);
16190
- const r2 = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
16191
- const z2 = options.includePrerelease ? "-0" : "";
16192
- return comp.replace(r2, (_2, M2, m2, p2, pr2) => {
16193
- debug("caret", comp, _2, M2, m2, p2, pr2);
16194
- let ret;
16195
- if (isX(M2)) {
16196
- ret = "";
16197
- } else if (isX(m2)) {
16198
- ret = `>=${M2}.0.0${z2} <${+M2 + 1}.0.0-0`;
16199
- } else if (isX(p2)) {
16200
- if (M2 === "0") {
16201
- ret = `>=${M2}.${m2}.0${z2} <${M2}.${+m2 + 1}.0-0`;
16202
- } else {
16203
- ret = `>=${M2}.${m2}.0${z2} <${+M2 + 1}.0.0-0`;
16204
- }
16205
- } else if (pr2) {
16206
- debug("replaceCaret pr", pr2);
16207
- if (M2 === "0") {
16208
- if (m2 === "0") {
16209
- ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${m2}.${+p2 + 1}-0`;
16210
- } else {
16211
- ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${+m2 + 1}.0-0`;
16212
- }
16213
- } else {
16214
- ret = `>=${M2}.${m2}.${p2}-${pr2} <${+M2 + 1}.0.0-0`;
16215
- }
16216
- } else {
16217
- debug("no pr");
16218
- if (M2 === "0") {
16219
- if (m2 === "0") {
16220
- ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${m2}.${+p2 + 1}-0`;
16221
- } else {
16222
- ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${+m2 + 1}.0-0`;
16223
- }
16224
- } else {
16225
- ret = `>=${M2}.${m2}.${p2} <${+M2 + 1}.0.0-0`;
16226
- }
16227
- }
16228
- debug("caret return", ret);
16229
- return ret;
16230
- });
16231
- };
16232
- var replaceXRanges = (comp, options) => {
16233
- debug("replaceXRanges", comp, options);
16234
- return comp.split(/\s+/).map((c2) => replaceXRange(c2, options)).join(" ");
16235
- };
16236
- var replaceXRange = (comp, options) => {
16237
- comp = comp.trim();
16238
- const r2 = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
16239
- return comp.replace(r2, (ret, gtlt, M2, m2, p2, pr2) => {
16240
- debug("xRange", comp, ret, gtlt, M2, m2, p2, pr2);
16241
- const xM = isX(M2);
16242
- const xm = xM || isX(m2);
16243
- const xp = xm || isX(p2);
16244
- const anyX = xp;
16245
- if (gtlt === "=" && anyX) {
16246
- gtlt = "";
16247
- }
16248
- pr2 = options.includePrerelease ? "-0" : "";
16249
- if (xM) {
16250
- if (gtlt === ">" || gtlt === "<") {
16251
- ret = "<0.0.0-0";
16252
- } else {
16253
- ret = "*";
16254
- }
16255
- } else if (gtlt && anyX) {
16256
- if (xm) {
16257
- m2 = 0;
16258
- }
16259
- p2 = 0;
16260
- if (gtlt === ">") {
16261
- gtlt = ">=";
16262
- if (xm) {
16263
- M2 = +M2 + 1;
16264
- m2 = 0;
16265
- p2 = 0;
16266
- } else {
16267
- m2 = +m2 + 1;
16268
- p2 = 0;
16269
- }
16270
- } else if (gtlt === "<=") {
16271
- gtlt = "<";
16272
- if (xm) {
16273
- M2 = +M2 + 1;
16274
- } else {
16275
- m2 = +m2 + 1;
16276
- }
16277
- }
16278
- if (gtlt === "<") {
16279
- pr2 = "-0";
16280
- }
16281
- ret = `${gtlt + M2}.${m2}.${p2}${pr2}`;
16282
- } else if (xm) {
16283
- ret = `>=${M2}.0.0${pr2} <${+M2 + 1}.0.0-0`;
16284
- } else if (xp) {
16285
- ret = `>=${M2}.${m2}.0${pr2} <${M2}.${+m2 + 1}.0-0`;
16286
- }
16287
- debug("xRange return", ret);
16288
- return ret;
16289
- });
16290
- };
16291
- var replaceStars = (comp, options) => {
16292
- debug("replaceStars", comp, options);
16293
- return comp.trim().replace(re2[t.STAR], "");
16294
- };
16295
- var replaceGTE0 = (comp, options) => {
16296
- debug("replaceGTE0", comp, options);
16297
- return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
16298
- };
16299
- var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to2, tM, tm, tp, tpr) => {
16300
- if (isX(fM)) {
16301
- from = "";
16302
- } else if (isX(fm)) {
16303
- from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
16304
- } else if (isX(fp)) {
16305
- from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
16306
- } else if (fpr) {
16307
- from = `>=${from}`;
16308
- } else {
16309
- from = `>=${from}${incPr ? "-0" : ""}`;
16310
- }
16311
- if (isX(tM)) {
16312
- to2 = "";
16313
- } else if (isX(tm)) {
16314
- to2 = `<${+tM + 1}.0.0-0`;
16315
- } else if (isX(tp)) {
16316
- to2 = `<${tM}.${+tm + 1}.0-0`;
16317
- } else if (tpr) {
16318
- to2 = `<=${tM}.${tm}.${tp}-${tpr}`;
16319
- } else if (incPr) {
16320
- to2 = `<${tM}.${tm}.${+tp + 1}-0`;
16321
- } else {
16322
- to2 = `<=${to2}`;
16323
- }
16324
- return `${from} ${to2}`.trim();
16325
- };
16326
- var testSet = (set, version2, options) => {
16327
- for (let i = 0; i < set.length; i++) {
16328
- if (!set[i].test(version2)) {
16329
- return false;
16330
- }
16331
- }
16332
- if (version2.prerelease.length && !options.includePrerelease) {
16333
- for (let i = 0; i < set.length; i++) {
16334
- debug(set[i].semver);
16335
- if (set[i].semver === Comparator.ANY) {
16336
- continue;
16337
- }
16338
- if (set[i].semver.prerelease.length > 0) {
16339
- const allowed = set[i].semver;
16340
- if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
16341
- return true;
16342
- }
16343
- }
16344
- }
16345
- return false;
16346
- }
16347
- return true;
16348
- };
16349
- }
16350
- });
16351
-
16352
- // node_modules/semver/classes/comparator.js
16353
- var require_comparator = __commonJS({
16354
- "node_modules/semver/classes/comparator.js"(exports, module) {
16355
- "use strict";
16356
- var ANY = Symbol("SemVer ANY");
16357
- var Comparator = class _Comparator {
16358
- static get ANY() {
16359
- return ANY;
16360
- }
16361
- constructor(comp, options) {
16362
- options = parseOptions(options);
16363
- if (comp instanceof _Comparator) {
16364
- if (comp.loose === !!options.loose) {
16365
- return comp;
16366
- } else {
16367
- comp = comp.value;
16368
- }
16369
- }
16370
- comp = comp.trim().split(/\s+/).join(" ");
16371
- debug("comparator", comp, options);
16372
- this.options = options;
16373
- this.loose = !!options.loose;
16374
- this.parse(comp);
16375
- if (this.semver === ANY) {
16376
- this.value = "";
16377
- } else {
16378
- this.value = this.operator + this.semver.version;
16379
- }
16380
- debug("comp", this);
16381
- }
16382
- parse(comp) {
16383
- const r2 = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
16384
- const m2 = comp.match(r2);
16385
- if (!m2) {
16386
- throw new TypeError(`Invalid comparator: ${comp}`);
16387
- }
16388
- this.operator = m2[1] !== void 0 ? m2[1] : "";
16389
- if (this.operator === "=") {
16390
- this.operator = "";
16391
- }
16392
- if (!m2[2]) {
16393
- this.semver = ANY;
16394
- } else {
16395
- this.semver = new SemVer(m2[2], this.options.loose);
16396
- }
16397
- }
16398
- toString() {
16399
- return this.value;
16400
- }
16401
- test(version2) {
16402
- debug("Comparator.test", version2, this.options.loose);
16403
- if (this.semver === ANY || version2 === ANY) {
16404
- return true;
16405
- }
16406
- if (typeof version2 === "string") {
16407
- try {
16408
- version2 = new SemVer(version2, this.options);
16409
- } catch (er2) {
16410
- return false;
16411
- }
16412
- }
16413
- return cmp(version2, this.operator, this.semver, this.options);
16414
- }
16415
- intersects(comp, options) {
16416
- if (!(comp instanceof _Comparator)) {
16417
- throw new TypeError("a Comparator is required");
16418
- }
16419
- if (this.operator === "") {
16420
- if (this.value === "") {
16421
- return true;
16422
- }
16423
- return new Range2(comp.value, options).test(this.value);
16424
- } else if (comp.operator === "") {
16425
- if (comp.value === "") {
16426
- return true;
16427
- }
16428
- return new Range2(this.value, options).test(comp.semver);
16429
- }
16430
- options = parseOptions(options);
16431
- if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
16432
- return false;
16433
- }
16434
- if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
16435
- return false;
16436
- }
16437
- if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
16438
- return true;
16439
- }
16440
- if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
16441
- return true;
16442
- }
16443
- if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
16444
- return true;
16445
- }
16446
- if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
16447
- return true;
16448
- }
16449
- if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
16450
- return true;
16451
- }
16452
- return false;
16453
- }
16454
- };
16455
- module.exports = Comparator;
16456
- var parseOptions = require_parse_options();
16457
- var { safeRe: re2, t } = require_re();
16458
- var cmp = require_cmp();
16459
- var debug = require_debug();
16460
- var SemVer = require_semver();
16461
- var Range2 = require_range();
16462
- }
16463
- });
16464
-
16465
- // node_modules/semver/functions/satisfies.js
16466
- var require_satisfies = __commonJS({
16467
- "node_modules/semver/functions/satisfies.js"(exports, module) {
16468
- "use strict";
16469
- var Range2 = require_range();
16470
- var satisfies = (version2, range, options) => {
16471
- try {
16472
- range = new Range2(range, options);
16473
- } catch (er2) {
16474
- return false;
16475
- }
16476
- return range.test(version2);
16477
- };
16478
- module.exports = satisfies;
16479
- }
16480
- });
16481
-
16482
- // node_modules/semver/ranges/to-comparators.js
16483
- var require_to_comparators = __commonJS({
16484
- "node_modules/semver/ranges/to-comparators.js"(exports, module) {
16485
- "use strict";
16486
- var Range2 = require_range();
16487
- var toComparators = (range, options) => new Range2(range, options).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" "));
16488
- module.exports = toComparators;
16489
- }
16490
- });
16491
-
16492
- // node_modules/semver/ranges/max-satisfying.js
16493
- var require_max_satisfying = __commonJS({
16494
- "node_modules/semver/ranges/max-satisfying.js"(exports, module) {
16495
- "use strict";
16496
- var SemVer = require_semver();
16497
- var Range2 = require_range();
16498
- var maxSatisfying = (versions, range, options) => {
16499
- let max = null;
16500
- let maxSV = null;
16501
- let rangeObj = null;
16502
- try {
16503
- rangeObj = new Range2(range, options);
16504
- } catch (er2) {
16505
- return null;
16506
- }
16507
- versions.forEach((v2) => {
16508
- if (rangeObj.test(v2)) {
16509
- if (!max || maxSV.compare(v2) === -1) {
16510
- max = v2;
16511
- maxSV = new SemVer(max, options);
16512
- }
16513
- }
16514
- });
16515
- return max;
16516
- };
16517
- module.exports = maxSatisfying;
16518
- }
16519
- });
16520
-
16521
- // node_modules/semver/ranges/min-satisfying.js
16522
- var require_min_satisfying = __commonJS({
16523
- "node_modules/semver/ranges/min-satisfying.js"(exports, module) {
16524
- "use strict";
16525
- var SemVer = require_semver();
16526
- var Range2 = require_range();
16527
- var minSatisfying = (versions, range, options) => {
16528
- let min = null;
16529
- let minSV = null;
16530
- let rangeObj = null;
16531
- try {
16532
- rangeObj = new Range2(range, options);
16533
- } catch (er2) {
16534
- return null;
16535
- }
16536
- versions.forEach((v2) => {
16537
- if (rangeObj.test(v2)) {
16538
- if (!min || minSV.compare(v2) === 1) {
16539
- min = v2;
16540
- minSV = new SemVer(min, options);
16541
- }
16542
- }
16543
- });
16544
- return min;
16545
- };
16546
- module.exports = minSatisfying;
16547
- }
16548
- });
16549
-
16550
- // node_modules/semver/ranges/min-version.js
16551
- var require_min_version = __commonJS({
16552
- "node_modules/semver/ranges/min-version.js"(exports, module) {
16553
- "use strict";
16554
- var SemVer = require_semver();
16555
- var Range2 = require_range();
16556
- var gt2 = require_gt();
16557
- var minVersion = (range, loose) => {
16558
- range = new Range2(range, loose);
16559
- let minver = new SemVer("0.0.0");
16560
- if (range.test(minver)) {
16561
- return minver;
16562
- }
16563
- minver = new SemVer("0.0.0-0");
16564
- if (range.test(minver)) {
16565
- return minver;
16566
- }
16567
- minver = null;
16568
- for (let i = 0; i < range.set.length; ++i) {
16569
- const comparators = range.set[i];
16570
- let setMin = null;
16571
- comparators.forEach((comparator) => {
16572
- const compver = new SemVer(comparator.semver.version);
16573
- switch (comparator.operator) {
16574
- case ">":
16575
- if (compver.prerelease.length === 0) {
16576
- compver.patch++;
16577
- } else {
16578
- compver.prerelease.push(0);
16579
- }
16580
- compver.raw = compver.format();
16581
- /* fallthrough */
16582
- case "":
16583
- case ">=":
16584
- if (!setMin || gt2(compver, setMin)) {
16585
- setMin = compver;
16586
- }
16587
- break;
16588
- case "<":
16589
- case "<=":
16590
- break;
16591
- /* istanbul ignore next */
16592
- default:
16593
- throw new Error(`Unexpected operation: ${comparator.operator}`);
16594
- }
16595
- });
16596
- if (setMin && (!minver || gt2(minver, setMin))) {
16597
- minver = setMin;
16598
- }
16599
- }
16600
- if (minver && range.test(minver)) {
16601
- return minver;
16602
- }
16603
- return null;
16604
- };
16605
- module.exports = minVersion;
16606
- }
16607
- });
16608
-
16609
- // node_modules/semver/ranges/valid.js
16610
- var require_valid2 = __commonJS({
16611
- "node_modules/semver/ranges/valid.js"(exports, module) {
16612
- "use strict";
16613
- var Range2 = require_range();
16614
- var validRange = (range, options) => {
16615
- try {
16616
- return new Range2(range, options).range || "*";
16617
- } catch (er2) {
16618
- return null;
16619
- }
16620
- };
16621
- module.exports = validRange;
16622
- }
16623
- });
16624
-
16625
- // node_modules/semver/ranges/outside.js
16626
- var require_outside = __commonJS({
16627
- "node_modules/semver/ranges/outside.js"(exports, module) {
16628
- "use strict";
16629
- var SemVer = require_semver();
16630
- var Comparator = require_comparator();
16631
- var { ANY } = Comparator;
16632
- var Range2 = require_range();
16633
- var satisfies = require_satisfies();
16634
- var gt2 = require_gt();
16635
- var lt2 = require_lt();
16636
- var lte = require_lte();
16637
- var gte = require_gte();
16638
- var outside = (version2, range, hilo, options) => {
16639
- version2 = new SemVer(version2, options);
16640
- range = new Range2(range, options);
16641
- let gtfn, ltefn, ltfn, comp, ecomp;
16642
- switch (hilo) {
16643
- case ">":
16644
- gtfn = gt2;
16645
- ltefn = lte;
16646
- ltfn = lt2;
16647
- comp = ">";
16648
- ecomp = ">=";
16649
- break;
16650
- case "<":
16651
- gtfn = lt2;
16652
- ltefn = gte;
16653
- ltfn = gt2;
16654
- comp = "<";
16655
- ecomp = "<=";
16656
- break;
16657
- default:
16658
- throw new TypeError('Must provide a hilo val of "<" or ">"');
16659
- }
16660
- if (satisfies(version2, range, options)) {
16661
- return false;
16662
- }
16663
- for (let i = 0; i < range.set.length; ++i) {
16664
- const comparators = range.set[i];
16665
- let high = null;
16666
- let low = null;
16667
- comparators.forEach((comparator) => {
16668
- if (comparator.semver === ANY) {
16669
- comparator = new Comparator(">=0.0.0");
16670
- }
16671
- high = high || comparator;
16672
- low = low || comparator;
16673
- if (gtfn(comparator.semver, high.semver, options)) {
16674
- high = comparator;
16675
- } else if (ltfn(comparator.semver, low.semver, options)) {
16676
- low = comparator;
16677
- }
16678
- });
16679
- if (high.operator === comp || high.operator === ecomp) {
16680
- return false;
16681
- }
16682
- if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
16683
- return false;
16684
- } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
16685
- return false;
16686
- }
16687
- }
16688
- return true;
16689
- };
16690
- module.exports = outside;
16691
- }
16692
- });
16693
-
16694
- // node_modules/semver/ranges/gtr.js
16695
- var require_gtr = __commonJS({
16696
- "node_modules/semver/ranges/gtr.js"(exports, module) {
16697
- "use strict";
16698
- var outside = require_outside();
16699
- var gtr = (version2, range, options) => outside(version2, range, ">", options);
16700
- module.exports = gtr;
16701
- }
16702
- });
16703
-
16704
- // node_modules/semver/ranges/ltr.js
16705
- var require_ltr = __commonJS({
16706
- "node_modules/semver/ranges/ltr.js"(exports, module) {
16707
- "use strict";
16708
- var outside = require_outside();
16709
- var ltr = (version2, range, options) => outside(version2, range, "<", options);
16710
- module.exports = ltr;
16711
- }
16712
- });
16713
-
16714
- // node_modules/semver/ranges/intersects.js
16715
- var require_intersects = __commonJS({
16716
- "node_modules/semver/ranges/intersects.js"(exports, module) {
16717
- "use strict";
16718
- var Range2 = require_range();
16719
- var intersects = (r1, r2, options) => {
16720
- r1 = new Range2(r1, options);
16721
- r2 = new Range2(r2, options);
16722
- return r1.intersects(r2, options);
16723
- };
16724
- module.exports = intersects;
16725
- }
16726
- });
16727
-
16728
- // node_modules/semver/ranges/simplify.js
16729
- var require_simplify = __commonJS({
16730
- "node_modules/semver/ranges/simplify.js"(exports, module) {
16731
- "use strict";
16732
- var satisfies = require_satisfies();
16733
- var compare = require_compare();
16734
- module.exports = (versions, range, options) => {
16735
- const set = [];
16736
- let first = null;
16737
- let prev = null;
16738
- const v2 = versions.sort((a, b2) => compare(a, b2, options));
16739
- for (const version2 of v2) {
16740
- const included = satisfies(version2, range, options);
16741
- if (included) {
16742
- prev = version2;
16743
- if (!first) {
16744
- first = version2;
16745
- }
16746
- } else {
16747
- if (prev) {
16748
- set.push([first, prev]);
16749
- }
16750
- prev = null;
16751
- first = null;
16752
- }
16753
- }
16754
- if (first) {
16755
- set.push([first, null]);
16756
- }
16757
- const ranges = [];
16758
- for (const [min, max] of set) {
16759
- if (min === max) {
16760
- ranges.push(min);
16761
- } else if (!max && min === v2[0]) {
16762
- ranges.push("*");
16763
- } else if (!max) {
16764
- ranges.push(`>=${min}`);
16765
- } else if (min === v2[0]) {
16766
- ranges.push(`<=${max}`);
16767
- } else {
16768
- ranges.push(`${min} - ${max}`);
16769
- }
16770
- }
16771
- const simplified = ranges.join(" || ");
16772
- const original = typeof range.raw === "string" ? range.raw : String(range);
16773
- return simplified.length < original.length ? simplified : range;
16774
- };
16775
- }
16776
- });
16777
-
16778
- // node_modules/semver/ranges/subset.js
16779
- var require_subset = __commonJS({
16780
- "node_modules/semver/ranges/subset.js"(exports, module) {
16781
- "use strict";
16782
- var Range2 = require_range();
16783
- var Comparator = require_comparator();
16784
- var { ANY } = Comparator;
16785
- var satisfies = require_satisfies();
16786
- var compare = require_compare();
16787
- var subset = (sub, dom, options = {}) => {
16788
- if (sub === dom) {
16789
- return true;
16790
- }
16791
- sub = new Range2(sub, options);
16792
- dom = new Range2(dom, options);
16793
- let sawNonNull = false;
16794
- OUTER: for (const simpleSub of sub.set) {
16795
- for (const simpleDom of dom.set) {
16796
- const isSub = simpleSubset(simpleSub, simpleDom, options);
16797
- sawNonNull = sawNonNull || isSub !== null;
16798
- if (isSub) {
16799
- continue OUTER;
16800
- }
16801
- }
16802
- if (sawNonNull) {
16803
- return false;
16804
- }
16805
- }
16806
- return true;
16807
- };
16808
- var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
16809
- var minimumVersion = [new Comparator(">=0.0.0")];
16810
- var simpleSubset = (sub, dom, options) => {
16811
- if (sub === dom) {
16812
- return true;
16813
- }
16814
- if (sub.length === 1 && sub[0].semver === ANY) {
16815
- if (dom.length === 1 && dom[0].semver === ANY) {
16816
- return true;
16817
- } else if (options.includePrerelease) {
16818
- sub = minimumVersionWithPreRelease;
16819
- } else {
16820
- sub = minimumVersion;
16821
- }
16822
- }
16823
- if (dom.length === 1 && dom[0].semver === ANY) {
16824
- if (options.includePrerelease) {
16825
- return true;
16826
- } else {
16827
- dom = minimumVersion;
16828
- }
16829
- }
16830
- const eqSet = /* @__PURE__ */ new Set();
16831
- let gt2, lt2;
16832
- for (const c2 of sub) {
16833
- if (c2.operator === ">" || c2.operator === ">=") {
16834
- gt2 = higherGT(gt2, c2, options);
16835
- } else if (c2.operator === "<" || c2.operator === "<=") {
16836
- lt2 = lowerLT(lt2, c2, options);
16837
- } else {
16838
- eqSet.add(c2.semver);
16839
- }
16840
- }
16841
- if (eqSet.size > 1) {
16842
- return null;
16843
- }
16844
- let gtltComp;
16845
- if (gt2 && lt2) {
16846
- gtltComp = compare(gt2.semver, lt2.semver, options);
16847
- if (gtltComp > 0) {
16848
- return null;
16849
- } else if (gtltComp === 0 && (gt2.operator !== ">=" || lt2.operator !== "<=")) {
16850
- return null;
16851
- }
16852
- }
16853
- for (const eq of eqSet) {
16854
- if (gt2 && !satisfies(eq, String(gt2), options)) {
16855
- return null;
16856
- }
16857
- if (lt2 && !satisfies(eq, String(lt2), options)) {
16858
- return null;
16859
- }
16860
- for (const c2 of dom) {
16861
- if (!satisfies(eq, String(c2), options)) {
16862
- return false;
16863
- }
16864
- }
16865
- return true;
16866
- }
16867
- let higher, lower;
16868
- let hasDomLT, hasDomGT;
16869
- let needDomLTPre = lt2 && !options.includePrerelease && lt2.semver.prerelease.length ? lt2.semver : false;
16870
- let needDomGTPre = gt2 && !options.includePrerelease && gt2.semver.prerelease.length ? gt2.semver : false;
16871
- if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt2.operator === "<" && needDomLTPre.prerelease[0] === 0) {
16872
- needDomLTPre = false;
16873
- }
16874
- for (const c2 of dom) {
16875
- hasDomGT = hasDomGT || c2.operator === ">" || c2.operator === ">=";
16876
- hasDomLT = hasDomLT || c2.operator === "<" || c2.operator === "<=";
16877
- if (gt2) {
16878
- if (needDomGTPre) {
16879
- if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomGTPre.major && c2.semver.minor === needDomGTPre.minor && c2.semver.patch === needDomGTPre.patch) {
16880
- needDomGTPre = false;
16881
- }
16882
- }
16883
- if (c2.operator === ">" || c2.operator === ">=") {
16884
- higher = higherGT(gt2, c2, options);
16885
- if (higher === c2 && higher !== gt2) {
16886
- return false;
16887
- }
16888
- } else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c2), options)) {
16889
- return false;
16890
- }
16891
- }
16892
- if (lt2) {
16893
- if (needDomLTPre) {
16894
- if (c2.semver.prerelease && c2.semver.prerelease.length && c2.semver.major === needDomLTPre.major && c2.semver.minor === needDomLTPre.minor && c2.semver.patch === needDomLTPre.patch) {
16895
- needDomLTPre = false;
16896
- }
16897
- }
16898
- if (c2.operator === "<" || c2.operator === "<=") {
16899
- lower = lowerLT(lt2, c2, options);
16900
- if (lower === c2 && lower !== lt2) {
16901
- return false;
16902
- }
16903
- } else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c2), options)) {
16904
- return false;
16905
- }
16906
- }
16907
- if (!c2.operator && (lt2 || gt2) && gtltComp !== 0) {
16908
- return false;
16909
- }
16910
- }
16911
- if (gt2 && hasDomLT && !lt2 && gtltComp !== 0) {
16912
- return false;
16913
- }
16914
- if (lt2 && hasDomGT && !gt2 && gtltComp !== 0) {
16915
- return false;
16916
- }
16917
- if (needDomGTPre || needDomLTPre) {
16918
- return false;
16919
- }
16920
- return true;
16921
- };
16922
- var higherGT = (a, b2, options) => {
16923
- if (!a) {
16924
- return b2;
16925
- }
16926
- const comp = compare(a.semver, b2.semver, options);
16927
- return comp > 0 ? a : comp < 0 ? b2 : b2.operator === ">" && a.operator === ">=" ? b2 : a;
16928
- };
16929
- var lowerLT = (a, b2, options) => {
16930
- if (!a) {
16931
- return b2;
16932
- }
16933
- const comp = compare(a.semver, b2.semver, options);
16934
- return comp < 0 ? a : comp > 0 ? b2 : b2.operator === "<" && a.operator === "<=" ? b2 : a;
16935
- };
16936
- module.exports = subset;
16937
- }
16938
- });
16939
-
16940
- // node_modules/semver/index.js
16941
- var require_semver2 = __commonJS({
16942
- "node_modules/semver/index.js"(exports, module) {
16943
- "use strict";
16944
- var internalRe = require_re();
16945
- var constants2 = require_constants();
16946
- var SemVer = require_semver();
16947
- var identifiers = require_identifiers();
16948
- var parse2 = require_parse();
16949
- var valid = require_valid();
16950
- var clean2 = require_clean();
16951
- var inc = require_inc();
16952
- var diff3 = require_diff();
16953
- var major = require_major();
16954
- var minor = require_minor();
16955
- var patch = require_patch();
16956
- var prerelease = require_prerelease();
16957
- var compare = require_compare();
16958
- var rcompare = require_rcompare();
16959
- var compareLoose = require_compare_loose();
16960
- var compareBuild = require_compare_build();
16961
- var sort = require_sort();
16962
- var rsort = require_rsort();
16963
- var gt2 = require_gt();
16964
- var lt2 = require_lt();
16965
- var eq = require_eq();
16966
- var neq = require_neq();
16967
- var gte = require_gte();
16968
- var lte = require_lte();
16969
- var cmp = require_cmp();
16970
- var coerce = require_coerce();
16971
- var Comparator = require_comparator();
16972
- var Range2 = require_range();
16973
- var satisfies = require_satisfies();
16974
- var toComparators = require_to_comparators();
16975
- var maxSatisfying = require_max_satisfying();
16976
- var minSatisfying = require_min_satisfying();
16977
- var minVersion = require_min_version();
16978
- var validRange = require_valid2();
16979
- var outside = require_outside();
16980
- var gtr = require_gtr();
16981
- var ltr = require_ltr();
16982
- var intersects = require_intersects();
16983
- var simplifyRange = require_simplify();
16984
- var subset = require_subset();
16985
- module.exports = {
16986
- parse: parse2,
16987
- valid,
16988
- clean: clean2,
16989
- inc,
16990
- diff: diff3,
16991
- major,
16992
- minor,
16993
- patch,
16994
- prerelease,
16995
- compare,
16996
- rcompare,
16997
- compareLoose,
16998
- compareBuild,
16999
- sort,
17000
- rsort,
17001
- gt: gt2,
17002
- lt: lt2,
17003
- eq,
17004
- neq,
17005
- gte,
17006
- lte,
17007
- cmp,
17008
- coerce,
17009
- Comparator,
17010
- Range: Range2,
17011
- satisfies,
17012
- toComparators,
17013
- maxSatisfying,
17014
- minSatisfying,
17015
- minVersion,
17016
- validRange,
17017
- outside,
17018
- gtr,
17019
- ltr,
17020
- intersects,
17021
- simplifyRange,
17022
- subset,
17023
- SemVer,
17024
- re: internalRe.re,
17025
- src: internalRe.src,
17026
- tokens: internalRe.t,
17027
- SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
17028
- RELEASE_TYPES: constants2.RELEASE_TYPES,
17029
- compareIdentifiers: identifiers.compareIdentifiers,
17030
- rcompareIdentifiers: identifiers.rcompareIdentifiers
17031
- };
17032
- }
17033
- });
17034
-
17035
15613
  // node_modules/run-jxa/node_modules/strip-final-newline/index.js
17036
15614
  var require_strip_final_newline = __commonJS({
17037
15615
  "node_modules/run-jxa/node_modules/strip-final-newline/index.js"(exports, module) {
@@ -22139,7 +20717,7 @@ var require_errors = __commonJS({
22139
20717
  });
22140
20718
 
22141
20719
  // packages/cli/node_modules/undici/lib/core/constants.js
22142
- var require_constants3 = __commonJS({
20720
+ var require_constants2 = __commonJS({
22143
20721
  "packages/cli/node_modules/undici/lib/core/constants.js"(exports, module) {
22144
20722
  "use strict";
22145
20723
  var wellknownHeaderNames = (
@@ -22273,7 +20851,7 @@ var require_tree = __commonJS({
22273
20851
  var {
22274
20852
  wellknownHeaderNames,
22275
20853
  headerNameLowerCasedRecord
22276
- } = require_constants3();
20854
+ } = require_constants2();
22277
20855
  var TstNode = class _TstNode {
22278
20856
  /** @type {any} */
22279
20857
  value = null;
@@ -22423,7 +21001,7 @@ var require_util3 = __commonJS({
22423
21001
  var { EventEmitter: EE } = __require("node:events");
22424
21002
  var timers = require_timers();
22425
21003
  var { InvalidArgumentError, ConnectTimeoutError } = require_errors();
22426
- var { headerNameLowerCasedRecord } = require_constants3();
21004
+ var { headerNameLowerCasedRecord } = require_constants2();
22427
21005
  var { tree } = require_tree();
22428
21006
  var [nodeMajor, nodeMinor] = process.versions.node.split(".", 2).map((v2) => Number(v2));
22429
21007
  var BodyAsyncIterable = class {
@@ -23232,7 +21810,7 @@ var require_request = __commonJS({
23232
21810
  normalizedMethodRecords
23233
21811
  } = require_util3();
23234
21812
  var { channels } = require_diagnostics();
23235
- var { headerNameLowerCasedRecord } = require_constants3();
21813
+ var { headerNameLowerCasedRecord } = require_constants2();
23236
21814
  var invalidPathRegex = /[^\u0021-\u00ff]/;
23237
21815
  var kHandler = Symbol("handler");
23238
21816
  var Request = class {
@@ -24021,7 +22599,7 @@ var require_utils = __commonJS({
24021
22599
  });
24022
22600
 
24023
22601
  // packages/cli/node_modules/undici/lib/llhttp/constants.js
24024
- var require_constants4 = __commonJS({
22602
+ var require_constants3 = __commonJS({
24025
22603
  "packages/cli/node_modules/undici/lib/llhttp/constants.js"(exports) {
24026
22604
  "use strict";
24027
22605
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24640,7 +23218,7 @@ var require_llhttp_simd_wasm = __commonJS({
24640
23218
  });
24641
23219
 
24642
23220
  // packages/cli/node_modules/undici/lib/web/fetch/constants.js
24643
- var require_constants5 = __commonJS({
23221
+ var require_constants4 = __commonJS({
24644
23222
  "packages/cli/node_modules/undici/lib/web/fetch/constants.js"(exports, module) {
24645
23223
  "use strict";
24646
23224
  var corsSafeListedMethods = (
@@ -25722,7 +24300,7 @@ var require_util4 = __commonJS({
25722
24300
  "use strict";
25723
24301
  var { Transform: Transform2 } = __require("node:stream");
25724
24302
  var zlib = __require("node:zlib");
25725
- var { redirectStatusSet, referrerPolicyTokens, badPortsSet } = require_constants5();
24303
+ var { redirectStatusSet, referrerPolicyTokens, badPortsSet } = require_constants4();
25726
24304
  var { getGlobalOrigin } = require_global();
25727
24305
  var { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = require_data_url();
25728
24306
  var { performance: performance2 } = __require("node:perf_hooks");
@@ -27414,7 +25992,7 @@ var require_client_h1 = __commonJS({
27414
25992
  kHTTPContext,
27415
25993
  kClosed
27416
25994
  } = require_symbols();
27417
- var constants2 = require_constants4();
25995
+ var constants2 = require_constants3();
27418
25996
  var EMPTY_BUF = Buffer.alloc(0);
27419
25997
  var FastBuffer = Buffer[Symbol.species];
27420
25998
  var removeAllListeners = util2.removeAllListeners;
@@ -36087,7 +34665,7 @@ var require_response = __commonJS({
36087
34665
  var {
36088
34666
  redirectStatusSet,
36089
34667
  nullBodyStatus
36090
- } = require_constants5();
34668
+ } = require_constants4();
36091
34669
  var { webidl } = require_webidl();
36092
34670
  var { URLSerializer } = require_data_url();
36093
34671
  var { kConstruct } = require_symbols();
@@ -36552,7 +35130,7 @@ var require_request2 = __commonJS({
36552
35130
  requestCredentials,
36553
35131
  requestCache,
36554
35132
  requestDuplex
36555
- } = require_constants5();
35133
+ } = require_constants4();
36556
35134
  var { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util2;
36557
35135
  var { webidl } = require_webidl();
36558
35136
  var { URLSerializer } = require_data_url();
@@ -37335,7 +35913,7 @@ var require_fetch = __commonJS({
37335
35913
  safeMethodsSet,
37336
35914
  requestBodyHeader,
37337
35915
  subresourceSet
37338
- } = require_constants5();
35916
+ } = require_constants4();
37339
35917
  var EE = __require("node:events");
37340
35918
  var { Readable, pipeline: pipeline2, finished, isErrored, isReadable } = __require("node:stream");
37341
35919
  var { addAbortListener, bufferToLowerCasedHeaderName } = require_util3();
@@ -39029,7 +37607,7 @@ var require_cachestorage = __commonJS({
39029
37607
  });
39030
37608
 
39031
37609
  // packages/cli/node_modules/undici/lib/web/cookies/constants.js
39032
- var require_constants6 = __commonJS({
37610
+ var require_constants5 = __commonJS({
39033
37611
  "packages/cli/node_modules/undici/lib/web/cookies/constants.js"(exports, module) {
39034
37612
  "use strict";
39035
37613
  var maxAttributeValueSize = 1024;
@@ -39212,10 +37790,10 @@ var require_util6 = __commonJS({
39212
37790
  });
39213
37791
 
39214
37792
  // packages/cli/node_modules/undici/lib/web/cookies/parse.js
39215
- var require_parse2 = __commonJS({
37793
+ var require_parse = __commonJS({
39216
37794
  "packages/cli/node_modules/undici/lib/web/cookies/parse.js"(exports, module) {
39217
37795
  "use strict";
39218
- var { maxNameValuePairSize, maxAttributeValueSize } = require_constants6();
37796
+ var { maxNameValuePairSize, maxAttributeValueSize } = require_constants5();
39219
37797
  var { isCTLExcludingHtab } = require_util6();
39220
37798
  var { collectASequenceOfCodePointsFast } = require_data_url();
39221
37799
  var assert = __require("node:assert");
@@ -39356,7 +37934,7 @@ var require_parse2 = __commonJS({
39356
37934
  var require_cookies = __commonJS({
39357
37935
  "packages/cli/node_modules/undici/lib/web/cookies/index.js"(exports, module) {
39358
37936
  "use strict";
39359
- var { parseSetCookie } = require_parse2();
37937
+ var { parseSetCookie } = require_parse();
39360
37938
  var { stringify } = require_util6();
39361
37939
  var { webidl } = require_webidl();
39362
37940
  var { Headers } = require_headers();
@@ -39756,7 +38334,7 @@ var require_events = __commonJS({
39756
38334
  });
39757
38335
 
39758
38336
  // packages/cli/node_modules/undici/lib/web/websocket/constants.js
39759
- var require_constants7 = __commonJS({
38337
+ var require_constants6 = __commonJS({
39760
38338
  "packages/cli/node_modules/undici/lib/web/websocket/constants.js"(exports, module) {
39761
38339
  "use strict";
39762
38340
  var uid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
@@ -39815,7 +38393,7 @@ var require_constants7 = __commonJS({
39815
38393
  var require_util7 = __commonJS({
39816
38394
  "packages/cli/node_modules/undici/lib/web/websocket/util.js"(exports, module) {
39817
38395
  "use strict";
39818
- var { states, opcodes } = require_constants7();
38396
+ var { states, opcodes } = require_constants6();
39819
38397
  var { isUtf8 } = __require("node:buffer");
39820
38398
  var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
39821
38399
  function isConnecting(readyState) {
@@ -39987,7 +38565,7 @@ var require_util7 = __commonJS({
39987
38565
  var require_frame = __commonJS({
39988
38566
  "packages/cli/node_modules/undici/lib/web/websocket/frame.js"(exports, module) {
39989
38567
  "use strict";
39990
- var { maxUnsigned16Bit, opcodes } = require_constants7();
38568
+ var { maxUnsigned16Bit, opcodes } = require_constants6();
39991
38569
  var BUFFER_SIZE = 8 * 1024;
39992
38570
  var crypto3;
39993
38571
  var buffer = null;
@@ -40097,7 +38675,7 @@ var require_frame = __commonJS({
40097
38675
  var require_connection = __commonJS({
40098
38676
  "packages/cli/node_modules/undici/lib/web/websocket/connection.js"(exports, module) {
40099
38677
  "use strict";
40100
- var { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = require_constants7();
38678
+ var { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = require_constants6();
40101
38679
  var { parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util7();
40102
38680
  var { channels } = require_diagnostics();
40103
38681
  var { makeRequest } = require_request2();
@@ -40311,7 +38889,7 @@ var require_receiver = __commonJS({
40311
38889
  "use strict";
40312
38890
  var { Writable: Writable2 } = __require("node:stream");
40313
38891
  var assert = __require("node:assert");
40314
- var { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require_constants7();
38892
+ var { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require_constants6();
40315
38893
  var { channels } = require_diagnostics();
40316
38894
  var {
40317
38895
  isValidStatusCode,
@@ -40631,7 +39209,7 @@ var require_sender = __commonJS({
40631
39209
  "packages/cli/node_modules/undici/lib/web/websocket/sender.js"(exports, module) {
40632
39210
  "use strict";
40633
39211
  var { WebsocketFrameSend } = require_frame();
40634
- var { opcodes, sendHints } = require_constants7();
39212
+ var { opcodes, sendHints } = require_constants6();
40635
39213
  var FixedQueue = require_fixed_queue();
40636
39214
  var SendQueue = class {
40637
39215
  /**
@@ -40720,7 +39298,7 @@ var require_websocket = __commonJS({
40720
39298
  var { webidl } = require_webidl();
40721
39299
  var { URLSerializer } = require_data_url();
40722
39300
  var { environmentSettingsObject } = require_util4();
40723
- var { staticPropertyDescriptors, states, sentCloseFrameState, sendHints, opcodes } = require_constants7();
39301
+ var { staticPropertyDescriptors, states, sentCloseFrameState, sendHints, opcodes } = require_constants6();
40724
39302
  var {
40725
39303
  isConnecting,
40726
39304
  isEstablished,
@@ -41212,7 +39790,7 @@ var require_websocketstream = __commonJS({
41212
39790
  "packages/cli/node_modules/undici/lib/web/websocket/stream/websocketstream.js"(exports, module) {
41213
39791
  "use strict";
41214
39792
  var { createDeferredPromise, environmentSettingsObject } = require_util4();
41215
- var { states, opcodes, sentCloseFrameState } = require_constants7();
39793
+ var { states, opcodes, sentCloseFrameState } = require_constants6();
41216
39794
  var { webidl } = require_webidl();
41217
39795
  var { getURLRecord, isValidSubprotocol, isEstablished, utf8Decode } = require_util7();
41218
39796
  var { establishWebSocketConnection, failWebsocketConnection, closeWebSocketConnection } = require_connection();
@@ -42653,7 +41231,7 @@ var patchConsole = (callback) => {
42653
41231
  var dist_default = patchConsole;
42654
41232
 
42655
41233
  // node_modules/ink/build/ink.js
42656
- var import_constants2 = __toESM(require_constants2(), 1);
41234
+ var import_constants2 = __toESM(require_constants(), 1);
42657
41235
 
42658
41236
  // node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
42659
41237
  var loadYoga = (() => {
@@ -44595,7 +43173,7 @@ function wrapAnsi(string, columns, options) {
44595
43173
 
44596
43174
  // node_modules/ink/build/reconciler.js
44597
43175
  var import_react_reconciler = __toESM(require_react_reconciler(), 1);
44598
- var import_constants = __toESM(require_constants2(), 1);
43176
+ var import_constants = __toESM(require_constants(), 1);
44599
43177
  import process3 from "node:process";
44600
43178
  var import_react = __toESM(require_react(), 1);
44601
43179
 
@@ -56371,12 +54949,24 @@ var keybindingsSchema = external_exports.array(
56371
54949
  negate
56372
54950
  };
56373
54951
  }),
56374
- key: external_exports.string()
56375
- }).transform((val) => ({
56376
- commandEntry: val.command,
56377
- key: val.key
56378
- }))
56379
- );
54952
+ key: external_exports.string().optional(),
54953
+ keys: external_exports.array(external_exports.string()).min(1).optional()
54954
+ }).refine(
54955
+ (data) => data.key !== void 0 || data.keys !== void 0 && data.keys.length > 0,
54956
+ {
54957
+ message: 'Must specify either "key" or a non-empty "keys" array.'
54958
+ }
54959
+ ).transform((data) => {
54960
+ const keys = [
54961
+ ...data.key !== void 0 ? [data.key] : [],
54962
+ ...data.keys ?? []
54963
+ ].reverse();
54964
+ return keys.map((key) => ({
54965
+ commandEntry: data.command,
54966
+ key
54967
+ }));
54968
+ })
54969
+ ).transform((entries) => entries.flat());
56380
54970
  async function loadCustomKeybindings() {
56381
54971
  const errors = [];
56382
54972
  let config = defaultKeyBindingConfig;
@@ -60109,7 +58699,7 @@ var import_react34 = __toESM(require_react(), 1);
60109
58699
  function useIdeTrustListener() {
60110
58700
  const settings = useSettings();
60111
58701
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
60112
- "disconnected" /* Disconnected */
58702
+ IDEConnectionStatus.Disconnected
60113
58703
  );
60114
58704
  const previousTrust = (0, import_react34.useRef)(void 0);
60115
58705
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -60139,7 +58729,7 @@ function useIdeTrustListener() {
60139
58729
  };
60140
58730
  }, []);
60141
58731
  const getSnapshot = () => {
60142
- if (connectionStatus !== "connected" /* Connected */) {
58732
+ if (connectionStatus !== IDEConnectionStatus.Connected) {
60143
58733
  return void 0;
60144
58734
  }
60145
58735
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -60844,7 +59434,7 @@ async function initializeApp(config, settings) {
60844
59434
  await ideClient.connect();
60845
59435
  logIdeConnection(
60846
59436
  config,
60847
- new IdeConnectionEvent("start" /* START */)
59437
+ new IdeConnectionEvent(IdeConnectionType.START)
60848
59438
  );
60849
59439
  }).catch((e) => {
60850
59440
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -60862,17 +59452,17 @@ async function initializeApp(config, settings) {
60862
59452
  // packages/cli/src/config/auth.ts
60863
59453
  async function validateAuthMethod(authMethod) {
60864
59454
  loadEnvironment(loadSettings().merged, process.cwd());
60865
- if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
59455
+ if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
60866
59456
  return null;
60867
59457
  }
60868
- if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
59458
+ if (authMethod === AuthType.USE_GEMINI) {
60869
59459
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
60870
59460
  if (!key) {
60871
59461
  return "When using Gemini API, you must specify the GEMINI_API_KEY environment variable.\nUpdate your environment and try again (no reload needed if using .env)!";
60872
59462
  }
60873
59463
  return null;
60874
59464
  }
60875
- if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
59465
+ if (authMethod === AuthType.USE_VERTEX_AI) {
60876
59466
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
60877
59467
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
60878
59468
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -65553,7 +64143,7 @@ var ExtensionManager = class extends ExtensionLoader {
65553
64143
  const trustedFolders = loadTrustedFolders();
65554
64144
  await trustedFolders.setValue(
65555
64145
  this.workspaceDir,
65556
- "TRUST_FOLDER" /* TRUST_FOLDER */
64146
+ TrustLevel.TRUST_FOLDER
65557
64147
  );
65558
64148
  } else {
65559
64149
  throw new Error(
@@ -65739,7 +64329,7 @@ Would you like to attempt to install via "git clone" instead?`
65739
64329
  newExtensionConfig.version,
65740
64330
  previousExtensionConfig.version,
65741
64331
  installMetadata.type,
65742
- "success" /* Success */
64332
+ CoreToolCallStatus.Success
65743
64333
  )
65744
64334
  );
65745
64335
  if (newExtensionName !== previousName) {
@@ -65762,7 +64352,7 @@ Would you like to attempt to install via "git clone" instead?`
65762
64352
  getExtensionId(newExtensionConfig, installMetadata),
65763
64353
  newExtensionConfig.version,
65764
64354
  installMetadata.type,
65765
- "success" /* Success */
64355
+ CoreToolCallStatus.Success
65766
64356
  )
65767
64357
  );
65768
64358
  await this.enableExtension(
@@ -65801,7 +64391,7 @@ Would you like to attempt to install via "git clone" instead?`
65801
64391
  newExtensionConfig?.version ?? "",
65802
64392
  previousExtensionConfig.version,
65803
64393
  installMetadata.type,
65804
- "error" /* Error */
64394
+ CoreToolCallStatus.Error
65805
64395
  )
65806
64396
  );
65807
64397
  } else {
@@ -65813,7 +64403,7 @@ Would you like to attempt to install via "git clone" instead?`
65813
64403
  extensionId ?? "",
65814
64404
  newExtensionConfig?.version ?? "",
65815
64405
  installMetadata.type,
65816
- "error" /* Error */
64406
+ CoreToolCallStatus.Error
65817
64407
  )
65818
64408
  );
65819
64409
  }
@@ -65841,7 +64431,7 @@ Would you like to attempt to install via "git clone" instead?`
65841
64431
  extension.name,
65842
64432
  hashValue(extension.name),
65843
64433
  extension.id,
65844
- "success" /* Success */
64434
+ CoreToolCallStatus.Success
65845
64435
  )
65846
64436
  );
65847
64437
  }
@@ -66104,7 +64694,7 @@ Would you like to attempt to install via "git clone" instead?`
66104
64694
  if (eventHooks) {
66105
64695
  for (const definition of eventHooks) {
66106
64696
  for (const hook of definition.hooks) {
66107
- if (hook.type === "command" /* Command */) {
64697
+ if (hook.type === HookType.Command) {
66108
64698
  hook.env = { ...hook.env, ...hookEnv };
66109
64699
  }
66110
64700
  }
@@ -67241,7 +65831,7 @@ async function readMcpResources(resourceParts, config, signal) {
67241
65831
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67242
65832
  name: `resources/read (${resource.serverName})`,
67243
65833
  description: resource.uri,
67244
- status: "success" /* Success */,
65834
+ status: CoreToolCallStatus.Success,
67245
65835
  isClientInitiated: true,
67246
65836
  resultDisplay: `Successfully read resource ${resource.uri}`,
67247
65837
  confirmationDetails: void 0
@@ -67256,7 +65846,7 @@ async function readMcpResources(resourceParts, config, signal) {
67256
65846
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67257
65847
  name: `resources/read (${resource.serverName})`,
67258
65848
  description: resource.uri,
67259
- status: "error" /* Error */,
65849
+ status: CoreToolCallStatus.Error,
67260
65850
  isClientInitiated: true,
67261
65851
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
67262
65852
  confirmationDetails: void 0
@@ -67281,7 +65871,7 @@ Content from @${result.uri}:
67281
65871
  }
67282
65872
  if (hasError) {
67283
65873
  const firstError = displays.find(
67284
- (d) => d.status === "error" /* Error */
65874
+ (d) => d.status === CoreToolCallStatus.Error
67285
65875
  );
67286
65876
  return {
67287
65877
  parts: [],
@@ -67320,7 +65910,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
67320
65910
  callId: `client-read-${userMessageTimestamp}`,
67321
65911
  name: readManyFilesTool.displayName,
67322
65912
  description: invocation.getDescription(),
67323
- status: "success" /* Success */,
65913
+ status: CoreToolCallStatus.Success,
67324
65914
  isClientInitiated: true,
67325
65915
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
67326
65916
  confirmationDetails: void 0
@@ -67367,7 +65957,7 @@ Content from @${displayPath}:
67367
65957
  callId: `client-read-${userMessageTimestamp}`,
67368
65958
  name: readManyFilesTool.displayName,
67369
65959
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
67370
- status: "error" /* Error */,
65960
+ status: CoreToolCallStatus.Error,
67371
65961
  isClientInitiated: true,
67372
65962
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
67373
65963
  confirmationDetails: void 0
@@ -67761,7 +66351,7 @@ var Subsume = class _Subsume {
67761
66351
  };
67762
66352
 
67763
66353
  // node_modules/macos-version/index.js
67764
- var import_semver = __toESM(require_semver2(), 1);
66354
+ var import_semver = __toESM(require_semver(), 1);
67765
66355
  import process21 from "node:process";
67766
66356
  import fs19 from "node:fs";
67767
66357
  var isMacOS = process21.platform === "darwin";
@@ -70634,7 +69224,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
70634
69224
  if (wasRaw) {
70635
69225
  setRawMode?.(true);
70636
69226
  }
70637
- coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
69227
+ coreEvents.emit(CoreEvent.ExternalEditorClosed);
70638
69228
  }
70639
69229
  }
70640
69230
 
@@ -73328,7 +71918,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
73328
71918
  extension.name,
73329
71919
  installMetadata
73330
71920
  );
73331
- if (status === "invalid" /* INVALID */) {
71921
+ if (status === IntegrityDataStatus.INVALID) {
73332
71922
  throw new Error("Extension integrity cannot be verified");
73333
71923
  }
73334
71924
  } catch (e) {
@@ -74520,7 +73110,7 @@ var CommandService = class _CommandService {
74520
73110
  static async create(loaders, signal) {
74521
73111
  const allCommands = await this.loadAllCommands(loaders, signal);
74522
73112
  const { finalCommands, conflicts } = SlashCommandResolver.resolve(allCommands);
74523
- if (conflicts.length > 0) {
73113
+ if (!signal.aborted) {
74524
73114
  this.emitConflictEvents(conflicts);
74525
73115
  }
74526
73116
  return new _CommandService(
@@ -74600,13 +73190,14 @@ var formatDuration = (milliseconds) => {
74600
73190
  if (milliseconds <= 0) {
74601
73191
  return "0s";
74602
73192
  }
74603
- if (milliseconds < 1e3) {
74604
- return `${Math.round(milliseconds)}ms`;
73193
+ const roundedMs = Math.round(milliseconds);
73194
+ if (roundedMs < 1e3) {
73195
+ return `${roundedMs}ms`;
74605
73196
  }
74606
- const totalSeconds = milliseconds / 1e3;
74607
- if (totalSeconds < 60) {
74608
- return `${totalSeconds.toFixed(1)}s`;
73197
+ if (milliseconds < 59950) {
73198
+ return `${(milliseconds / 1e3).toFixed(1)}s`;
74609
73199
  }
73200
+ const totalSeconds = Math.round(milliseconds / 1e3);
74610
73201
  const hours = Math.floor(totalSeconds / 3600);
74611
73202
  const minutes = Math.floor(totalSeconds % 3600 / 60);
74612
73203
  const seconds = Math.floor(totalSeconds % 60);
@@ -74823,11 +73414,11 @@ var ShellProcessor = class {
74823
73414
  },
74824
73415
  void 0
74825
73416
  );
74826
- if (decision === "deny" /* DENY */) {
73417
+ if (decision === PolicyDecision.DENY) {
74827
73418
  throw new Error(
74828
73419
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
74829
73420
  );
74830
- } else if (decision === "ask_user" /* ASK_USER */) {
73421
+ } else if (decision === PolicyDecision.ASK_USER) {
74831
73422
  commandsToConfirm.add(command);
74832
73423
  }
74833
73424
  }
@@ -75957,7 +74548,7 @@ var MultiFolderTrustDialog = ({
75957
74548
  if (choice === 1 /* YES_AND_REMEMBER */) {
75958
74549
  await trustedFolders.setValue(
75959
74550
  expandedPath,
75960
- "TRUST_FOLDER" /* TRUST_FOLDER */
74551
+ TrustLevel.TRUST_FOLDER
75961
74552
  );
75962
74553
  }
75963
74554
  workspaceContext.addDirectory(expandedPath);
@@ -76054,25 +74645,53 @@ function Spinner({ type = "dots" }) {
76054
74645
  var build_default = Spinner;
76055
74646
 
76056
74647
  // packages/cli/src/ui/components/CliSpinner.tsx
74648
+ var import_cli_spinners2 = __toESM(require_cli_spinners(), 1);
76057
74649
  var import_react53 = __toESM(require_react(), 1);
76058
74650
  var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
76059
- var CliSpinner = (props) => {
76060
- const settings = useSettings();
76061
- const shouldShow = settings.merged.ui?.showSpinner !== false;
76062
- (0, import_react53.useEffect)(() => {
76063
- if (shouldShow) {
76064
- debugState.debugNumAnimatedComponents++;
74651
+ var TMUX_SPINNER_INTERVAL_MS = 120;
74652
+ var TmuxSpinner = import_react53.default.memo(
74653
+ ({ type = "dots" }) => {
74654
+ const [frame, setFrame] = (0, import_react53.useState)(0);
74655
+ const spinner = import_cli_spinners2.default[type] ?? import_cli_spinners2.default.dots;
74656
+ const intervalMs = Math.max(spinner.interval, TMUX_SPINNER_INTERVAL_MS);
74657
+ (0, import_react53.useEffect)(() => {
74658
+ const timer = setInterval(() => {
74659
+ setFrame(
74660
+ (previousFrame) => previousFrame >= spinner.frames.length - 1 ? 0 : previousFrame + 1
74661
+ );
74662
+ }, intervalMs);
76065
74663
  return () => {
76066
- debugState.debugNumAnimatedComponents--;
74664
+ clearInterval(timer);
76067
74665
  };
74666
+ }, [spinner, intervalMs]);
74667
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { children: spinner.frames[frame % spinner.frames.length] });
74668
+ }
74669
+ );
74670
+ TmuxSpinner.displayName = "TmuxSpinner";
74671
+ var CliSpinner = import_react53.default.memo(
74672
+ (props) => {
74673
+ const settings = useSettings();
74674
+ const shouldShow = settings.merged.ui?.showSpinner !== false;
74675
+ const inTmux2 = isTmux();
74676
+ (0, import_react53.useEffect)(() => {
74677
+ if (shouldShow) {
74678
+ debugState.debugNumAnimatedComponents++;
74679
+ return () => {
74680
+ debugState.debugNumAnimatedComponents--;
74681
+ };
74682
+ }
74683
+ return void 0;
74684
+ }, [shouldShow]);
74685
+ if (!shouldShow) {
74686
+ return null;
76068
74687
  }
76069
- return void 0;
76070
- }, [shouldShow]);
76071
- if (!shouldShow) {
76072
- return null;
74688
+ if (inTmux2) {
74689
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TmuxSpinner, { type: props.type });
74690
+ }
74691
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(build_default, { ...props });
76073
74692
  }
76074
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(build_default, { ...props });
76075
- };
74693
+ );
74694
+ CliSpinner.displayName = "CliSpinner";
76076
74695
 
76077
74696
  // packages/cli/src/ui/components/shared/ExpandableText.tsx
76078
74697
  var import_react54 = __toESM(require_react(), 1);
@@ -76243,10 +74862,10 @@ function isShellTool(name) {
76243
74862
  return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
76244
74863
  }
76245
74864
  function isThisShellFocusable(name, status, config) {
76246
- return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
74865
+ return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && config?.getEnableInteractiveShell());
76247
74866
  }
76248
74867
  function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
76249
- return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
74868
+ return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && ptyId === activeShellPtyId && embeddedShellFocused);
76250
74869
  }
76251
74870
  function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
76252
74871
  const [userHasFocused, setUserHasFocused] = (0, import_react56.useState)(false);
@@ -76406,14 +75025,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
76406
75025
  if (isTrackedToolCall(t)) {
76407
75026
  return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
76408
75027
  } else {
76409
- return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
75028
+ return t.status !== CoreToolCallStatus.Success && t.status !== CoreToolCallStatus.Error && t.status !== CoreToolCallStatus.Cancelled;
76410
75029
  }
76411
75030
  });
76412
75031
  const isEmbeddedShellFocused = toolsToInspect.some((t) => {
76413
75032
  if (isTrackedToolCall(t)) {
76414
75033
  return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
76415
75034
  } else {
76416
- return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
75035
+ return isShellTool(t.name) && t.status === CoreToolCallStatus.Executing && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
76417
75036
  }
76418
75037
  });
76419
75038
  const isShellCommand = toolsToInspect.some((t) => {
@@ -77851,7 +76470,7 @@ var authCommand = {
77851
76470
  import process29 from "node:process";
77852
76471
 
77853
76472
  // packages/cli/src/generated/git-commit.ts
77854
- var GIT_COMMIT_INFO = "204db94ae";
76473
+ var GIT_COMMIT_INFO = "ed96faedf";
77855
76474
 
77856
76475
  // packages/cli/src/ui/utils/historyExportUtils.ts
77857
76476
  import * as fsPromises from "node:fs/promises";
@@ -78497,7 +77116,7 @@ var clearCommand = {
78497
77116
  const config = context.services.agentContext?.config;
78498
77117
  const hookSystem = config?.getHookSystem();
78499
77118
  if (hookSystem) {
78500
- await hookSystem.fireSessionEndEvent("clear" /* Clear */);
77119
+ await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
78501
77120
  }
78502
77121
  config?.injectionService.clear();
78503
77122
  let newSessionId;
@@ -78514,7 +77133,7 @@ var clearCommand = {
78514
77133
  }
78515
77134
  let result;
78516
77135
  if (hookSystem) {
78517
- result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
77136
+ result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
78518
77137
  }
78519
77138
  await new Promise((resolve9) => setImmediate(resolve9));
78520
77139
  if (config) {
@@ -81523,7 +80142,7 @@ var Footer = () => {
81523
80142
  case "auth": {
81524
80143
  if (!settings.merged.ui.showUserIdentity) break;
81525
80144
  if (!authType) break;
81526
- const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
80145
+ const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
81527
80146
  addCol(
81528
80147
  id,
81529
80148
  header,
@@ -83307,12 +81926,12 @@ import path29 from "node:path";
83307
81926
  function getIdeStatusMessage(ideClient) {
83308
81927
  const connection = ideClient.getConnectionStatus();
83309
81928
  switch (connection.status) {
83310
- case "connected" /* Connected */:
81929
+ case IDEConnectionStatus.Connected:
83311
81930
  return {
83312
81931
  messageType: "info",
83313
81932
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
83314
81933
  };
83315
- case "connecting" /* Connecting */:
81934
+ case IDEConnectionStatus.Connecting:
83316
81935
  return {
83317
81936
  messageType: "info",
83318
81937
  content: `\u{1F7E1} Connecting...`
@@ -83353,7 +81972,7 @@ ${infoMessage}`;
83353
81972
  async function getIdeStatusMessageWithFiles(ideClient) {
83354
81973
  const connection = ideClient.getConnectionStatus();
83355
81974
  switch (connection.status) {
83356
- case "connected" /* Connected */: {
81975
+ case IDEConnectionStatus.Connected: {
83357
81976
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
83358
81977
  const context = ideContextStore.get();
83359
81978
  const openFiles = context?.workspaceState?.openFiles;
@@ -83365,7 +81984,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
83365
81984
  content
83366
81985
  };
83367
81986
  }
83368
- case "connecting" /* Connecting */:
81987
+ case IDEConnectionStatus.Connecting:
83369
81988
  return {
83370
81989
  messageType: "info",
83371
81990
  content: `\u{1F7E1} Connecting...`
@@ -83387,7 +82006,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
83387
82006
  const ideClient = await IdeClient.getInstance();
83388
82007
  if (value) {
83389
82008
  await ideClient.connect(options);
83390
- logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
82009
+ logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
83391
82010
  } else {
83392
82011
  await ideClient.disconnect();
83393
82012
  }
@@ -83475,7 +82094,7 @@ var ideCommand = async () => {
83475
82094
  logToConsole: false
83476
82095
  }
83477
82096
  );
83478
- if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
82097
+ if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
83479
82098
  break;
83480
82099
  }
83481
82100
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -83552,7 +82171,7 @@ var ideCommand = async () => {
83552
82171
  }
83553
82172
  };
83554
82173
  const { status } = ideClient.getConnectionStatus();
83555
- const isConnected = status === "connected" /* Connected */;
82174
+ const isConnected = status === IDEConnectionStatus.Connected;
83556
82175
  if (isConnected) {
83557
82176
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
83558
82177
  } else {
@@ -83652,13 +82271,13 @@ Use /mcp auth <server-name> to authenticate.`
83652
82271
  const displayListener = (message) => {
83653
82272
  context.ui.addItem({ type: "info", text: message });
83654
82273
  };
83655
- coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82274
+ coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
83656
82275
  try {
83657
82276
  context.ui.addItem({
83658
82277
  type: "info",
83659
82278
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83660
82279
  });
83661
- const { MCPOAuthProvider } = await import("./core-IVQAI4S6.js");
82280
+ const { MCPOAuthProvider } = await import("./dist-PALH7PJS.js");
83662
82281
  let oauthConfig = server.oauth;
83663
82282
  if (!oauthConfig) {
83664
82283
  oauthConfig = { enabled: false };
@@ -83695,7 +82314,7 @@ Use /mcp auth <server-name> to authenticate.`
83695
82314
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
83696
82315
  };
83697
82316
  } finally {
83698
- coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82317
+ coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
83699
82318
  }
83700
82319
  },
83701
82320
  completion: async (context, partialArg) => {
@@ -83741,10 +82360,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
83741
82360
  }
83742
82361
  const serverNames = Object.keys(mcpServers);
83743
82362
  const connectingServers = serverNames.filter(
83744
- (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
82363
+ (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
83745
82364
  );
83746
82365
  const discoveryState = getMCPDiscoveryState();
83747
- const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
82366
+ const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
83748
82367
  const allTools = toolRegistry.getAllTools();
83749
82368
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
83750
82369
  const promptRegistry = config.getPromptRegistry();
@@ -99522,7 +98141,7 @@ Return a JSON object with:
99522
98141
  },
99523
98142
  abortSignal: new AbortController().signal,
99524
98143
  promptId: "triage-duplicates",
99525
- role: "utility_tool" /* UTILITY_TOOL */
98144
+ role: LlmRole.UTILITY_TOOL
99526
98145
  });
99527
98146
  const rec = response;
99528
98147
  let canonical;
@@ -100356,7 +98975,7 @@ Return a JSON object with:
100356
98975
  },
100357
98976
  abortSignal: abortControllerRef.current.signal,
100358
98977
  promptId: "triage-issues",
100359
- role: "utility_tool" /* UTILITY_TOOL */
98978
+ role: LlmRole.UTILITY_TOOL
100360
98979
  });
100361
98980
  return response;
100362
98981
  },
@@ -100930,8 +99549,8 @@ var planCommand = {
100930
99549
  return;
100931
99550
  }
100932
99551
  const previousApprovalMode = config.getApprovalMode();
100933
- config.setApprovalMode("plan" /* PLAN */);
100934
- if (previousApprovalMode !== "plan" /* PLAN */) {
99552
+ config.setApprovalMode(ApprovalMode.PLAN);
99553
+ if (previousApprovalMode !== ApprovalMode.PLAN) {
100935
99554
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
100936
99555
  }
100937
99556
  if (context.invocation?.args) {
@@ -100990,10 +99609,10 @@ var categorizeRulesByMode = (rules) => {
100990
99609
  rules.forEach((rule) => {
100991
99610
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
100992
99611
  const modeSet = new Set(modes);
100993
- if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
100994
- if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
100995
- if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
100996
- if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
99612
+ if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
99613
+ if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
99614
+ if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
99615
+ if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
100997
99616
  });
100998
99617
  return result;
100999
99618
  };
@@ -102374,7 +100993,7 @@ var upgradeCommand = {
102374
100993
  action: async (context) => {
102375
100994
  const config = context.services.agentContext?.config;
102376
100995
  const authType = config?.getContentGeneratorConfig()?.authType;
102377
- if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
100996
+ if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
102378
100997
  return {
102379
100998
  type: "message",
102380
100999
  messageType: "error",
@@ -102603,7 +101222,7 @@ var BuiltinCommandLoader = class {
102603
101222
  setupGithubCommand,
102604
101223
  terminalSetupCommand,
102605
101224
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
102606
- ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
101225
+ ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
102607
101226
  ];
102608
101227
  handle?.end();
102609
101228
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -102869,7 +101488,6 @@ export {
102869
101488
  updateExtension,
102870
101489
  updateAllUpdatableExtensions,
102871
101490
  checkForAllExtensionUpdates,
102872
- require_semver2 as require_semver,
102873
101491
  enableSkill,
102874
101492
  disableSkill,
102875
101493
  renderSkillActionFeedback,
@@ -102993,6 +101611,7 @@ export {
102993
101611
  Footer,
102994
101612
  getAntigravityInstallInfo,
102995
101613
  build_default,
101614
+ TMUX_SPINNER_INTERVAL_MS,
102996
101615
  CliSpinner,
102997
101616
  MAX_WIDTH,
102998
101617
  ExpandableText,