@google/gemini-cli 0.46.0-preview.2 → 0.46.0

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 (67) hide show
  1. package/bundle/builtin/antigravity-support/SKILL.md +58 -0
  2. package/bundle/{chunk-PIZZXDDG.js → chunk-46UNR4SE.js} +1 -1
  3. package/bundle/{chunk-E5QEVDYZ.js → chunk-6ZHP2EJW.js} +77 -12
  4. package/bundle/{chunk-PE7HOVW5.js → chunk-7EBO46BD.js} +2 -2
  5. package/bundle/{chunk-2K6L5FOH.js → chunk-BM5TFZWV.js} +1 -1
  6. package/bundle/{chunk-R4U5N4EA.js → chunk-CSKXYL76.js} +2 -2
  7. package/bundle/{chunk-RS7XVABE.js → chunk-EMVR5JTF.js} +8 -9
  8. package/bundle/{chunk-27JE2WT6.js → chunk-FC67CGD5.js} +1 -1
  9. package/bundle/{chunk-O6PTG534.js → chunk-G33JEOEV.js} +14132 -7532
  10. package/bundle/{chunk-J5LPI3LE.js → chunk-GPDO3T5B.js} +3 -3
  11. package/bundle/{chunk-7JQYEHGG.js → chunk-I4F637TN.js} +1 -1
  12. package/bundle/{chunk-LEOT5EUQ.js → chunk-IZGZZO6A.js} +1 -1
  13. package/bundle/{chunk-CRQJBWDY.js → chunk-IZZGJPR3.js} +1 -1
  14. package/bundle/{chunk-PRRK6JDC.js → chunk-JOFGDFVN.js} +3 -3
  15. package/bundle/{chunk-B5F4VQB4.js → chunk-MKQJU6N7.js} +1 -1
  16. package/bundle/{chunk-CWVF4ZTK.js → chunk-O3ZM34A3.js} +1 -1
  17. package/bundle/{chunk-EI75YPWJ.js → chunk-RCJSF5RP.js} +64 -8
  18. package/bundle/{chunk-SIKHBFAN.js → chunk-S5WKKTEF.js} +3 -3
  19. package/bundle/{chunk-QB7YVNGV.js → chunk-SCXTH56Q.js} +165 -114
  20. package/bundle/{chunk-5IDNG2OG.js → chunk-T55FPMGN.js} +212 -174
  21. package/bundle/{chunk-QW5AOX4N.js → chunk-V2OCZBTI.js} +5 -8
  22. package/bundle/{chunk-WUZJ6YCQ.js → chunk-VFPQ45DS.js} +2 -2
  23. package/bundle/{chunk-22XWYJCL.js → chunk-XWSJWBAL.js} +165 -114
  24. package/bundle/{chunk-RHCHEKOW.js → chunk-YIJWUMMP.js} +1 -1
  25. package/bundle/{chunk-7PDJUYG7.js → chunk-YIKH5LDT.js} +1 -1
  26. package/bundle/{cleanup-I5FUY2UQ.js → cleanup-HCSVNXSL.js} +2 -2
  27. package/bundle/{cleanup-OIBS4TJ5.js → cleanup-KA5YYXS3.js} +2 -2
  28. package/bundle/{cleanup-RODT76X7.js → cleanup-SBGWM3G7.js} +2 -2
  29. package/bundle/{dist-XLM4ONR2.js → core-K77SYAQL.js} +3 -1
  30. package/bundle/{core-DU2UPBEJ.js → core-LVRAYGT3.js} +3 -1
  31. package/bundle/{devtoolsService-C64GR2SQ.js → devtoolsService-ADGLR4UM.js} +2 -2
  32. package/bundle/{devtoolsService-U7Z6S7CA.js → devtoolsService-ORERBA72.js} +3 -4
  33. package/bundle/{devtoolsService-EJVCNXD4.js → devtoolsService-WRHZUKOW.js} +2 -2
  34. package/bundle/{dist-CEGGZCD6.js → dist-6R4J6OFH.js} +3 -1
  35. package/bundle/{gemini-EEFZ4W4N.js → gemini-LOO67E54.js} +196 -212
  36. package/bundle/{gemini-D5Y26G7I.js → gemini-STIONCRJ.js} +14 -14
  37. package/bundle/{gemini-3AA27X7W.js → gemini-YXO2QQ66.js} +14 -14
  38. package/bundle/gemini.js +7 -7
  39. package/bundle/{interactiveCli-B5QE2YQH.js → interactiveCli-F337IDVS.js} +30 -20
  40. package/bundle/{interactiveCli-5L4XUO4D.js → interactiveCli-NKTBHB7O.js} +30 -20
  41. package/bundle/{interactiveCli-S4W3W3HM.js → interactiveCli-OYDA765S.js} +317 -326
  42. package/bundle/{liteRtServerManager-2IHVDPV4.js → liteRtServerManager-6CQ3NBHQ.js} +4 -4
  43. package/bundle/{liteRtServerManager-7CA6UZB6.js → liteRtServerManager-N7CBKKD6.js} +4 -4
  44. package/bundle/{liteRtServerManager-P4UUE4PT.js → liteRtServerManager-YBJANX3B.js} +4 -4
  45. package/bundle/{oauth2-provider-WD62E6UF.js → oauth2-provider-AAJFAFW6.js} +1 -1
  46. package/bundle/{oauth2-provider-5IAYEVTS.js → oauth2-provider-CYIU4X4W.js} +1 -1
  47. package/bundle/{oauth2-provider-NQK2KDLL.js → oauth2-provider-YNWUFCNW.js} +72 -38
  48. package/bundle/{start-AAWVXW3L.js → start-CNBBYSNI.js} +6 -6
  49. package/bundle/{start-EHQUCJL4.js → start-DEWQ46DT.js} +6 -6
  50. package/bundle/{start-EJWSTD4L.js → start-H7TCWGQL.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-3RBWPCUC.js +0 -154
  53. package/bundle/chunk-IPUQ7EE3.js +0 -81685
  54. package/bundle/chunk-NV6UIB5A.js +0 -1571
  55. package/bundle/chunk-R4UEOSDC.js +0 -398
  56. package/bundle/chunk-UEE43LJM.js +0 -118
  57. package/bundle/chunk-UHZJ6CQN.js +0 -17320
  58. package/bundle/chunk-USOBCNPR.js +0 -394545
  59. package/bundle/chunk-ZXFPRK6W.js +0 -512
  60. package/bundle/cleanup-WY7MMPH7.js +0 -32
  61. package/bundle/devtoolsService-LQXWZBCZ.js +0 -856
  62. package/bundle/dist-F4ZLD67R.js +0 -2140
  63. package/bundle/gemini-TPWWVYVB.js +0 -16409
  64. package/bundle/interactiveCli-CFKGEXFE.js +0 -34742
  65. package/bundle/liteRtServerManager-YN3VGMDA.js +0 -65
  66. package/bundle/oauth2-provider-WGTNZKF7.js +0 -235
  67. package/bundle/start-LAOVDDQF.js +0 -18
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-CRQJBWDY.js";
9
+ } from "./chunk-I4F637TN.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,22 +58,20 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-7PDJUYG7.js";
61
+ } from "./chunk-MKQJU6N7.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-R4U5N4EA.js";
64
+ } from "./chunk-VFPQ45DS.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-ZXFPRK6W.js";
68
+ } from "./chunk-EMVR5JTF.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
72
72
  AsyncFzf,
73
- AuthType,
74
73
  Config,
75
74
  CoreEvent,
76
- CoreToolCallStatus,
77
75
  DiscoveredMCPTool,
78
76
  ExtensionDisableEvent,
79
77
  ExtensionEnableEvent,
@@ -84,31 +82,20 @@ import {
84
82
  ExtensionUpdateEvent,
85
83
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
86
84
  GEMINI_DIR,
87
- HookType,
88
- IDEConnectionStatus,
89
85
  INITIAL_HISTORY_LENGTH,
90
86
  IdeClient,
91
87
  IdeConnectionEvent,
92
- IdeConnectionType,
93
- IntegrityDataStatus,
94
88
  KeychainTokenStorage,
95
- LlmRole,
96
- MCPDiscoveryState,
97
89
  MCPOAuthTokenStorage,
98
- MCPServerStatus,
99
90
  ModelSlashCommandEvent,
100
- PolicyDecision,
101
91
  ProjectIdRequiredError,
102
92
  REFERENCE_CONTENT_END,
103
93
  REFERENCE_CONTENT_START,
104
94
  ReadManyFilesTool,
105
95
  RewindEvent,
106
- SessionEndReason,
107
- SessionStartSource,
108
96
  ShellExecutionService,
109
97
  StartSessionEvent,
110
98
  Storage,
111
- TrustLevel,
112
99
  UPGRADE_URL_PAGE,
113
100
  UserAccountManager,
114
101
  ValidationRequiredError,
@@ -243,7 +230,7 @@ import {
243
230
  tokenLimit,
244
231
  uiTelemetryService,
245
232
  unescapePath
246
- } from "./chunk-USOBCNPR.js";
233
+ } from "./chunk-G33JEOEV.js";
247
234
  import {
248
235
  require_src
249
236
  } from "./chunk-TUDYL3X4.js";
@@ -294,11 +281,11 @@ var require_signals = __commonJS({
294
281
  // node_modules/ink/node_modules/signal-exit/index.js
295
282
  var require_signal_exit = __commonJS({
296
283
  "node_modules/ink/node_modules/signal-exit/index.js"(exports, module) {
297
- var process35 = global.process;
298
- var processOk = function(process36) {
299
- return process36 && typeof process36 === "object" && typeof process36.removeListener === "function" && typeof process36.emit === "function" && typeof process36.reallyExit === "function" && typeof process36.listeners === "function" && typeof process36.kill === "function" && typeof process36.pid === "number" && typeof process36.on === "function";
284
+ var process36 = global.process;
285
+ var processOk = function(process37) {
286
+ return process37 && typeof process37 === "object" && typeof process37.removeListener === "function" && typeof process37.emit === "function" && typeof process37.reallyExit === "function" && typeof process37.listeners === "function" && typeof process37.kill === "function" && typeof process37.pid === "number" && typeof process37.on === "function";
300
287
  };
301
- if (!processOk(process35)) {
288
+ if (!processOk(process36)) {
302
289
  module.exports = function() {
303
290
  return function() {
304
291
  };
@@ -306,15 +293,15 @@ var require_signal_exit = __commonJS({
306
293
  } else {
307
294
  assert = __require("assert");
308
295
  signals = require_signals();
309
- isWin = /^win/i.test(process35.platform);
296
+ isWin = /^win/i.test(process36.platform);
310
297
  EE = __require("events");
311
298
  if (typeof EE !== "function") {
312
299
  EE = EE.EventEmitter;
313
300
  }
314
- if (process35.__signal_exit_emitter__) {
315
- emitter = process35.__signal_exit_emitter__;
301
+ if (process36.__signal_exit_emitter__) {
302
+ emitter = process36.__signal_exit_emitter__;
316
303
  } else {
317
- emitter = process35.__signal_exit_emitter__ = new EE();
304
+ emitter = process36.__signal_exit_emitter__ = new EE();
318
305
  emitter.count = 0;
319
306
  emitter.emitted = {};
320
307
  }
@@ -351,12 +338,12 @@ var require_signal_exit = __commonJS({
351
338
  loaded = false;
352
339
  signals.forEach(function(sig) {
353
340
  try {
354
- process35.removeListener(sig, sigListeners[sig]);
341
+ process36.removeListener(sig, sigListeners[sig]);
355
342
  } catch (er2) {
356
343
  }
357
344
  });
358
- process35.emit = originalProcessEmit;
359
- process35.reallyExit = originalProcessReallyExit;
345
+ process36.emit = originalProcessEmit;
346
+ process36.reallyExit = originalProcessReallyExit;
360
347
  emitter.count -= 1;
361
348
  };
362
349
  module.exports.unload = unload;
@@ -373,7 +360,7 @@ var require_signal_exit = __commonJS({
373
360
  if (!processOk(global.process)) {
374
361
  return;
375
362
  }
376
- var listeners = process35.listeners(sig);
363
+ var listeners = process36.listeners(sig);
377
364
  if (listeners.length === emitter.count) {
378
365
  unload();
379
366
  emit("exit", null, sig);
@@ -381,7 +368,7 @@ var require_signal_exit = __commonJS({
381
368
  if (isWin && sig === "SIGHUP") {
382
369
  sig = "SIGINT";
383
370
  }
384
- process35.kill(process35.pid, sig);
371
+ process36.kill(process36.pid, sig);
385
372
  }
386
373
  };
387
374
  });
@@ -397,36 +384,36 @@ var require_signal_exit = __commonJS({
397
384
  emitter.count += 1;
398
385
  signals = signals.filter(function(sig) {
399
386
  try {
400
- process35.on(sig, sigListeners[sig]);
387
+ process36.on(sig, sigListeners[sig]);
401
388
  return true;
402
389
  } catch (er2) {
403
390
  return false;
404
391
  }
405
392
  });
406
- process35.emit = processEmit;
407
- process35.reallyExit = processReallyExit;
393
+ process36.emit = processEmit;
394
+ process36.reallyExit = processReallyExit;
408
395
  };
409
396
  module.exports.load = load;
410
- originalProcessReallyExit = process35.reallyExit;
397
+ originalProcessReallyExit = process36.reallyExit;
411
398
  processReallyExit = function processReallyExit2(code) {
412
399
  if (!processOk(global.process)) {
413
400
  return;
414
401
  }
415
- process35.exitCode = code || /* istanbul ignore next */
402
+ process36.exitCode = code || /* istanbul ignore next */
416
403
  0;
417
- emit("exit", process35.exitCode, null);
418
- emit("afterexit", process35.exitCode, null);
419
- originalProcessReallyExit.call(process35, process35.exitCode);
404
+ emit("exit", process36.exitCode, null);
405
+ emit("afterexit", process36.exitCode, null);
406
+ originalProcessReallyExit.call(process36, process36.exitCode);
420
407
  };
421
- originalProcessEmit = process35.emit;
408
+ originalProcessEmit = process36.emit;
422
409
  processEmit = function processEmit2(ev, arg) {
423
410
  if (ev === "exit" && processOk(global.process)) {
424
411
  if (arg !== void 0) {
425
- process35.exitCode = arg;
412
+ process36.exitCode = arg;
426
413
  }
427
414
  var ret = originalProcessEmit.apply(this, arguments);
428
- emit("exit", process35.exitCode, null);
429
- emit("afterexit", process35.exitCode, null);
415
+ emit("exit", process36.exitCode, null);
416
+ emit("afterexit", process36.exitCode, null);
430
417
  return ret;
431
418
  } else {
432
419
  return originalProcessEmit.apply(this, arguments);
@@ -8807,11 +8794,11 @@ var require_signals2 = __commonJS({
8807
8794
  // node_modules/restore-cursor/node_modules/signal-exit/index.js
8808
8795
  var require_signal_exit2 = __commonJS({
8809
8796
  "node_modules/restore-cursor/node_modules/signal-exit/index.js"(exports, module) {
8810
- var process35 = global.process;
8811
- var processOk = function(process36) {
8812
- return process36 && typeof process36 === "object" && typeof process36.removeListener === "function" && typeof process36.emit === "function" && typeof process36.reallyExit === "function" && typeof process36.listeners === "function" && typeof process36.kill === "function" && typeof process36.pid === "number" && typeof process36.on === "function";
8797
+ var process36 = global.process;
8798
+ var processOk = function(process37) {
8799
+ return process37 && typeof process37 === "object" && typeof process37.removeListener === "function" && typeof process37.emit === "function" && typeof process37.reallyExit === "function" && typeof process37.listeners === "function" && typeof process37.kill === "function" && typeof process37.pid === "number" && typeof process37.on === "function";
8813
8800
  };
8814
- if (!processOk(process35)) {
8801
+ if (!processOk(process36)) {
8815
8802
  module.exports = function() {
8816
8803
  return function() {
8817
8804
  };
@@ -8819,15 +8806,15 @@ var require_signal_exit2 = __commonJS({
8819
8806
  } else {
8820
8807
  assert = __require("assert");
8821
8808
  signals = require_signals2();
8822
- isWin = /^win/i.test(process35.platform);
8809
+ isWin = /^win/i.test(process36.platform);
8823
8810
  EE = __require("events");
8824
8811
  if (typeof EE !== "function") {
8825
8812
  EE = EE.EventEmitter;
8826
8813
  }
8827
- if (process35.__signal_exit_emitter__) {
8828
- emitter = process35.__signal_exit_emitter__;
8814
+ if (process36.__signal_exit_emitter__) {
8815
+ emitter = process36.__signal_exit_emitter__;
8829
8816
  } else {
8830
- emitter = process35.__signal_exit_emitter__ = new EE();
8817
+ emitter = process36.__signal_exit_emitter__ = new EE();
8831
8818
  emitter.count = 0;
8832
8819
  emitter.emitted = {};
8833
8820
  }
@@ -8864,12 +8851,12 @@ var require_signal_exit2 = __commonJS({
8864
8851
  loaded = false;
8865
8852
  signals.forEach(function(sig) {
8866
8853
  try {
8867
- process35.removeListener(sig, sigListeners[sig]);
8854
+ process36.removeListener(sig, sigListeners[sig]);
8868
8855
  } catch (er2) {
8869
8856
  }
8870
8857
  });
8871
- process35.emit = originalProcessEmit;
8872
- process35.reallyExit = originalProcessReallyExit;
8858
+ process36.emit = originalProcessEmit;
8859
+ process36.reallyExit = originalProcessReallyExit;
8873
8860
  emitter.count -= 1;
8874
8861
  };
8875
8862
  module.exports.unload = unload;
@@ -8886,7 +8873,7 @@ var require_signal_exit2 = __commonJS({
8886
8873
  if (!processOk(global.process)) {
8887
8874
  return;
8888
8875
  }
8889
- var listeners = process35.listeners(sig);
8876
+ var listeners = process36.listeners(sig);
8890
8877
  if (listeners.length === emitter.count) {
8891
8878
  unload();
8892
8879
  emit("exit", null, sig);
@@ -8894,7 +8881,7 @@ var require_signal_exit2 = __commonJS({
8894
8881
  if (isWin && sig === "SIGHUP") {
8895
8882
  sig = "SIGINT";
8896
8883
  }
8897
- process35.kill(process35.pid, sig);
8884
+ process36.kill(process36.pid, sig);
8898
8885
  }
8899
8886
  };
8900
8887
  });
@@ -8910,36 +8897,36 @@ var require_signal_exit2 = __commonJS({
8910
8897
  emitter.count += 1;
8911
8898
  signals = signals.filter(function(sig) {
8912
8899
  try {
8913
- process35.on(sig, sigListeners[sig]);
8900
+ process36.on(sig, sigListeners[sig]);
8914
8901
  return true;
8915
8902
  } catch (er2) {
8916
8903
  return false;
8917
8904
  }
8918
8905
  });
8919
- process35.emit = processEmit;
8920
- process35.reallyExit = processReallyExit;
8906
+ process36.emit = processEmit;
8907
+ process36.reallyExit = processReallyExit;
8921
8908
  };
8922
8909
  module.exports.load = load;
8923
- originalProcessReallyExit = process35.reallyExit;
8910
+ originalProcessReallyExit = process36.reallyExit;
8924
8911
  processReallyExit = function processReallyExit2(code) {
8925
8912
  if (!processOk(global.process)) {
8926
8913
  return;
8927
8914
  }
8928
- process35.exitCode = code || /* istanbul ignore next */
8915
+ process36.exitCode = code || /* istanbul ignore next */
8929
8916
  0;
8930
- emit("exit", process35.exitCode, null);
8931
- emit("afterexit", process35.exitCode, null);
8932
- originalProcessReallyExit.call(process35, process35.exitCode);
8917
+ emit("exit", process36.exitCode, null);
8918
+ emit("afterexit", process36.exitCode, null);
8919
+ originalProcessReallyExit.call(process36, process36.exitCode);
8933
8920
  };
8934
- originalProcessEmit = process35.emit;
8921
+ originalProcessEmit = process36.emit;
8935
8922
  processEmit = function processEmit2(ev, arg) {
8936
8923
  if (ev === "exit" && processOk(global.process)) {
8937
8924
  if (arg !== void 0) {
8938
- process35.exitCode = arg;
8925
+ process36.exitCode = arg;
8939
8926
  }
8940
8927
  var ret = originalProcessEmit.apply(this, arguments);
8941
- emit("exit", process35.exitCode, null);
8942
- emit("afterexit", process35.exitCode, null);
8928
+ emit("exit", process36.exitCode, null);
8929
+ emit("afterexit", process36.exitCode, null);
8943
8930
  return ret;
8944
8931
  } else {
8945
8932
  return originalProcessEmit.apply(this, arguments);
@@ -17651,11 +17638,11 @@ var require_signals4 = __commonJS({
17651
17638
  // node_modules/run-jxa/node_modules/signal-exit/index.js
17652
17639
  var require_signal_exit3 = __commonJS({
17653
17640
  "node_modules/run-jxa/node_modules/signal-exit/index.js"(exports, module) {
17654
- var process35 = global.process;
17655
- var processOk = function(process36) {
17656
- return process36 && typeof process36 === "object" && typeof process36.removeListener === "function" && typeof process36.emit === "function" && typeof process36.reallyExit === "function" && typeof process36.listeners === "function" && typeof process36.kill === "function" && typeof process36.pid === "number" && typeof process36.on === "function";
17641
+ var process36 = global.process;
17642
+ var processOk = function(process37) {
17643
+ return process37 && typeof process37 === "object" && typeof process37.removeListener === "function" && typeof process37.emit === "function" && typeof process37.reallyExit === "function" && typeof process37.listeners === "function" && typeof process37.kill === "function" && typeof process37.pid === "number" && typeof process37.on === "function";
17657
17644
  };
17658
- if (!processOk(process35)) {
17645
+ if (!processOk(process36)) {
17659
17646
  module.exports = function() {
17660
17647
  return function() {
17661
17648
  };
@@ -17663,15 +17650,15 @@ var require_signal_exit3 = __commonJS({
17663
17650
  } else {
17664
17651
  assert = __require("assert");
17665
17652
  signals = require_signals4();
17666
- isWin = /^win/i.test(process35.platform);
17653
+ isWin = /^win/i.test(process36.platform);
17667
17654
  EE = __require("events");
17668
17655
  if (typeof EE !== "function") {
17669
17656
  EE = EE.EventEmitter;
17670
17657
  }
17671
- if (process35.__signal_exit_emitter__) {
17672
- emitter = process35.__signal_exit_emitter__;
17658
+ if (process36.__signal_exit_emitter__) {
17659
+ emitter = process36.__signal_exit_emitter__;
17673
17660
  } else {
17674
- emitter = process35.__signal_exit_emitter__ = new EE();
17661
+ emitter = process36.__signal_exit_emitter__ = new EE();
17675
17662
  emitter.count = 0;
17676
17663
  emitter.emitted = {};
17677
17664
  }
@@ -17708,12 +17695,12 @@ var require_signal_exit3 = __commonJS({
17708
17695
  loaded = false;
17709
17696
  signals.forEach(function(sig) {
17710
17697
  try {
17711
- process35.removeListener(sig, sigListeners[sig]);
17698
+ process36.removeListener(sig, sigListeners[sig]);
17712
17699
  } catch (er2) {
17713
17700
  }
17714
17701
  });
17715
- process35.emit = originalProcessEmit;
17716
- process35.reallyExit = originalProcessReallyExit;
17702
+ process36.emit = originalProcessEmit;
17703
+ process36.reallyExit = originalProcessReallyExit;
17717
17704
  emitter.count -= 1;
17718
17705
  };
17719
17706
  module.exports.unload = unload;
@@ -17730,7 +17717,7 @@ var require_signal_exit3 = __commonJS({
17730
17717
  if (!processOk(global.process)) {
17731
17718
  return;
17732
17719
  }
17733
- var listeners = process35.listeners(sig);
17720
+ var listeners = process36.listeners(sig);
17734
17721
  if (listeners.length === emitter.count) {
17735
17722
  unload();
17736
17723
  emit("exit", null, sig);
@@ -17738,7 +17725,7 @@ var require_signal_exit3 = __commonJS({
17738
17725
  if (isWin && sig === "SIGHUP") {
17739
17726
  sig = "SIGINT";
17740
17727
  }
17741
- process35.kill(process35.pid, sig);
17728
+ process36.kill(process36.pid, sig);
17742
17729
  }
17743
17730
  };
17744
17731
  });
@@ -17754,36 +17741,36 @@ var require_signal_exit3 = __commonJS({
17754
17741
  emitter.count += 1;
17755
17742
  signals = signals.filter(function(sig) {
17756
17743
  try {
17757
- process35.on(sig, sigListeners[sig]);
17744
+ process36.on(sig, sigListeners[sig]);
17758
17745
  return true;
17759
17746
  } catch (er2) {
17760
17747
  return false;
17761
17748
  }
17762
17749
  });
17763
- process35.emit = processEmit;
17764
- process35.reallyExit = processReallyExit;
17750
+ process36.emit = processEmit;
17751
+ process36.reallyExit = processReallyExit;
17765
17752
  };
17766
17753
  module.exports.load = load;
17767
- originalProcessReallyExit = process35.reallyExit;
17754
+ originalProcessReallyExit = process36.reallyExit;
17768
17755
  processReallyExit = function processReallyExit2(code) {
17769
17756
  if (!processOk(global.process)) {
17770
17757
  return;
17771
17758
  }
17772
- process35.exitCode = code || /* istanbul ignore next */
17759
+ process36.exitCode = code || /* istanbul ignore next */
17773
17760
  0;
17774
- emit("exit", process35.exitCode, null);
17775
- emit("afterexit", process35.exitCode, null);
17776
- originalProcessReallyExit.call(process35, process35.exitCode);
17761
+ emit("exit", process36.exitCode, null);
17762
+ emit("afterexit", process36.exitCode, null);
17763
+ originalProcessReallyExit.call(process36, process36.exitCode);
17777
17764
  };
17778
- originalProcessEmit = process35.emit;
17765
+ originalProcessEmit = process36.emit;
17779
17766
  processEmit = function processEmit2(ev, arg) {
17780
17767
  if (ev === "exit" && processOk(global.process)) {
17781
17768
  if (arg !== void 0) {
17782
- process35.exitCode = arg;
17769
+ process36.exitCode = arg;
17783
17770
  }
17784
17771
  var ret = originalProcessEmit.apply(this, arguments);
17785
- emit("exit", process35.exitCode, null);
17786
- emit("afterexit", process35.exitCode, null);
17772
+ emit("exit", process36.exitCode, null);
17773
+ emit("afterexit", process36.exitCode, null);
17787
17774
  return ret;
17788
17775
  } else {
17789
17776
  return originalProcessEmit.apply(this, arguments);
@@ -39460,7 +39447,7 @@ var import_react34 = __toESM(require_react(), 1);
39460
39447
  function useIdeTrustListener() {
39461
39448
  const settings = useSettings();
39462
39449
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39463
- IDEConnectionStatus.Disconnected
39450
+ "disconnected" /* Disconnected */
39464
39451
  );
39465
39452
  const previousTrust = (0, import_react34.useRef)(void 0);
39466
39453
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39490,7 +39477,7 @@ function useIdeTrustListener() {
39490
39477
  };
39491
39478
  }, []);
39492
39479
  const getSnapshot = () => {
39493
- if (connectionStatus !== IDEConnectionStatus.Connected) {
39480
+ if (connectionStatus !== "connected" /* Connected */) {
39494
39481
  return void 0;
39495
39482
  }
39496
39483
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -40195,7 +40182,7 @@ async function initializeApp(config, settings) {
40195
40182
  await ideClient.connect();
40196
40183
  logIdeConnection(
40197
40184
  config,
40198
- new IdeConnectionEvent(IdeConnectionType.START)
40185
+ new IdeConnectionEvent("start" /* START */)
40199
40186
  );
40200
40187
  }).catch((e) => {
40201
40188
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -40213,17 +40200,17 @@ async function initializeApp(config, settings) {
40213
40200
  // packages/cli/src/config/auth.ts
40214
40201
  async function validateAuthMethod(authMethod) {
40215
40202
  loadEnvironment(loadSettings().merged, process.cwd());
40216
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
40203
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
40217
40204
  return null;
40218
40205
  }
40219
- if (authMethod === AuthType.USE_GEMINI) {
40206
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
40220
40207
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
40221
40208
  if (!key) {
40222
40209
  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)!";
40223
40210
  }
40224
40211
  return null;
40225
40212
  }
40226
- if (authMethod === AuthType.USE_VERTEX_AI) {
40213
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
40227
40214
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
40228
40215
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
40229
40216
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44650,7 +44637,7 @@ var ExtensionManager = class extends ExtensionLoader {
44650
44637
  const trustedFolders = loadTrustedFolders();
44651
44638
  await trustedFolders.setValue(
44652
44639
  this.workspaceDir,
44653
- TrustLevel.TRUST_FOLDER
44640
+ "TRUST_FOLDER" /* TRUST_FOLDER */
44654
44641
  );
44655
44642
  } else {
44656
44643
  throw new Error(
@@ -44836,7 +44823,7 @@ Would you like to attempt to install via "git clone" instead?`
44836
44823
  newExtensionConfig.version,
44837
44824
  previousExtensionConfig.version,
44838
44825
  installMetadata.type,
44839
- CoreToolCallStatus.Success
44826
+ "success" /* Success */
44840
44827
  )
44841
44828
  );
44842
44829
  if (newExtensionName !== previousName) {
@@ -44859,7 +44846,7 @@ Would you like to attempt to install via "git clone" instead?`
44859
44846
  getExtensionId(newExtensionConfig, installMetadata),
44860
44847
  newExtensionConfig.version,
44861
44848
  installMetadata.type,
44862
- CoreToolCallStatus.Success
44849
+ "success" /* Success */
44863
44850
  )
44864
44851
  );
44865
44852
  await this.enableExtension(
@@ -44892,7 +44879,7 @@ Would you like to attempt to install via "git clone" instead?`
44892
44879
  newExtensionConfig?.version ?? "",
44893
44880
  previousExtensionConfig.version,
44894
44881
  installMetadata.type,
44895
- CoreToolCallStatus.Error
44882
+ "error" /* Error */
44896
44883
  )
44897
44884
  );
44898
44885
  } else {
@@ -44904,7 +44891,7 @@ Would you like to attempt to install via "git clone" instead?`
44904
44891
  extensionId ?? "",
44905
44892
  newExtensionConfig?.version ?? "",
44906
44893
  installMetadata.type,
44907
- CoreToolCallStatus.Error
44894
+ "error" /* Error */
44908
44895
  )
44909
44896
  );
44910
44897
  }
@@ -44935,7 +44922,7 @@ Would you like to attempt to install via "git clone" instead?`
44935
44922
  extension.name,
44936
44923
  hashValue(extension.name),
44937
44924
  extension.id,
44938
- CoreToolCallStatus.Success
44925
+ "success" /* Success */
44939
44926
  )
44940
44927
  );
44941
44928
  }
@@ -45205,7 +45192,7 @@ Would you like to attempt to install via "git clone" instead?`
45205
45192
  if (eventHooks) {
45206
45193
  for (const definition of eventHooks) {
45207
45194
  for (const hook of definition.hooks) {
45208
- if (hook.type === HookType.Command) {
45195
+ if (hook.type === "command" /* Command */) {
45209
45196
  hook.env = { ...hook.env, ...hookEnv };
45210
45197
  }
45211
45198
  }
@@ -46236,7 +46223,7 @@ async function readMcpResources(resourceParts, config, signal) {
46236
46223
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46237
46224
  name: `resources/read (${resource.serverName})`,
46238
46225
  description: resource.uri,
46239
- status: CoreToolCallStatus.Success,
46226
+ status: "success" /* Success */,
46240
46227
  isClientInitiated: true,
46241
46228
  resultDisplay: `Successfully read resource ${resource.uri}`,
46242
46229
  confirmationDetails: void 0
@@ -46251,7 +46238,7 @@ async function readMcpResources(resourceParts, config, signal) {
46251
46238
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46252
46239
  name: `resources/read (${resource.serverName})`,
46253
46240
  description: resource.uri,
46254
- status: CoreToolCallStatus.Error,
46241
+ status: "error" /* Error */,
46255
46242
  isClientInitiated: true,
46256
46243
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46257
46244
  confirmationDetails: void 0
@@ -46276,7 +46263,7 @@ Content from @${result.uri}:
46276
46263
  }
46277
46264
  if (hasError) {
46278
46265
  const firstError = displays.find(
46279
- (d) => d.status === CoreToolCallStatus.Error
46266
+ (d) => d.status === "error" /* Error */
46280
46267
  );
46281
46268
  return {
46282
46269
  parts: [],
@@ -46317,7 +46304,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46317
46304
  callId: `client-read-${userMessageTimestamp}`,
46318
46305
  name: readManyFilesTool.displayName,
46319
46306
  description: invocation.getDescription(),
46320
- status: CoreToolCallStatus.Success,
46307
+ status: "success" /* Success */,
46321
46308
  isClientInitiated: true,
46322
46309
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46323
46310
  confirmationDetails: void 0
@@ -46364,7 +46351,7 @@ Content from @${displayPath}:
46364
46351
  callId: `client-read-${userMessageTimestamp}`,
46365
46352
  name: readManyFilesTool.displayName,
46366
46353
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46367
- status: CoreToolCallStatus.Error,
46354
+ status: "error" /* Error */,
46368
46355
  isClientInitiated: true,
46369
46356
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46370
46357
  confirmationDetails: void 0
@@ -49631,7 +49618,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49631
49618
  if (wasRaw) {
49632
49619
  setRawMode?.(true);
49633
49620
  }
49634
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
49621
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49635
49622
  }
49636
49623
  }
49637
49624
 
@@ -52326,7 +52313,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52326
52313
  extension.name,
52327
52314
  installMetadata
52328
52315
  );
52329
- if (status === IntegrityDataStatus.INVALID) {
52316
+ if (status === "invalid" /* INVALID */) {
52330
52317
  throw new Error("Extension integrity cannot be verified");
52331
52318
  }
52332
52319
  } catch (e) {
@@ -53744,11 +53731,11 @@ var ShellProcessor = class {
53744
53731
  },
53745
53732
  void 0
53746
53733
  );
53747
- if (decision === PolicyDecision.DENY) {
53734
+ if (decision === "deny" /* DENY */) {
53748
53735
  throw new Error(
53749
53736
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
53750
53737
  );
53751
- } else if (decision === PolicyDecision.ASK_USER) {
53738
+ } else if (decision === "ask_user" /* ASK_USER */) {
53752
53739
  commandsToConfirm.add(command);
53753
53740
  }
53754
53741
  }
@@ -54866,7 +54853,7 @@ var MultiFolderTrustDialog = ({
54866
54853
  if (choice === 1 /* YES_AND_REMEMBER */) {
54867
54854
  await trustedFolders.setValue(
54868
54855
  expandedPath,
54869
- TrustLevel.TRUST_FOLDER
54856
+ "TRUST_FOLDER" /* TRUST_FOLDER */
54870
54857
  );
54871
54858
  }
54872
54859
  workspaceContext.addDirectory(expandedPath);
@@ -54911,6 +54898,36 @@ var MultiFolderTrustDialog = ({
54911
54898
  ] });
54912
54899
  };
54913
54900
 
54901
+ // packages/cli/src/ui/utils/antigravityUtils.ts
54902
+ import process26 from "node:process";
54903
+ var ANTIGRAVITY_SH_INSTALL = "curl -fsSL https://antigravity.google/cli/install.sh | bash";
54904
+ function getAntigravityInstallInfo() {
54905
+ if (process26.platform === "win32") {
54906
+ if (process26.env["PSModulePath"]) {
54907
+ return {
54908
+ platformName: "Windows (PowerShell)",
54909
+ installCmd: "irm https://antigravity.google/cli/install.ps1 | iex"
54910
+ };
54911
+ } else {
54912
+ return {
54913
+ platformName: "Windows (Command Prompt)",
54914
+ installCmd: "curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd"
54915
+ };
54916
+ }
54917
+ } else if (process26.platform === "darwin") {
54918
+ return {
54919
+ platformName: "macOS",
54920
+ installCmd: ANTIGRAVITY_SH_INSTALL
54921
+ };
54922
+ } else if (process26.platform === "linux") {
54923
+ return {
54924
+ platformName: "Linux",
54925
+ installCmd: ANTIGRAVITY_SH_INSTALL
54926
+ };
54927
+ }
54928
+ return null;
54929
+ }
54930
+
54914
54931
  // node_modules/ink-spinner/build/index.js
54915
54932
  var import_react52 = __toESM(require_react(), 1);
54916
54933
  var import_cli_spinners = __toESM(require_cli_spinners(), 1);
@@ -55032,7 +55049,7 @@ var _ExpandableText = ({
55032
55049
  var ExpandableText = import_react54.default.memo(_ExpandableText);
55033
55050
 
55034
55051
  // packages/cli/src/ui/key/keybindingUtils.ts
55035
- import process26 from "node:process";
55052
+ import process27 from "node:process";
55036
55053
  var KEY_NAME_MAP = {
55037
55054
  enter: "Enter",
55038
55055
  escape: "Esc",
@@ -55076,7 +55093,7 @@ var MODIFIER_MAPS = {
55076
55093
  }
55077
55094
  };
55078
55095
  function formatKeyBinding(binding, platform5) {
55079
- const activePlatform = platform5 ?? (process26.env["FORCE_GENERIC_KEYBINDING_HINTS"] ? "default" : process26.platform);
55096
+ const activePlatform = platform5 ?? (process27.env["FORCE_GENERIC_KEYBINDING_HINTS"] ? "default" : process27.platform);
55080
55097
  const modMap = MODIFIER_MAPS[activePlatform] || MODIFIER_MAPS["default"];
55081
55098
  const parts = [];
55082
55099
  if (binding.ctrl) parts.push(modMap.ctrl);
@@ -55945,7 +55962,7 @@ var useAlternateBuffer = () => {
55945
55962
  };
55946
55963
 
55947
55964
  // packages/cli/src/ui/commands/aboutCommand.ts
55948
- import process27 from "node:process";
55965
+ import process28 from "node:process";
55949
55966
  var aboutCommand = {
55950
55967
  name: "about",
55951
55968
  description: "Show version info",
@@ -55953,17 +55970,17 @@ var aboutCommand = {
55953
55970
  autoExecute: true,
55954
55971
  isSafeConcurrent: true,
55955
55972
  action: async (context) => {
55956
- const osVersion = process27.platform;
55973
+ const osVersion = process28.platform;
55957
55974
  let sandboxEnv = "no sandbox";
55958
- if (process27.env["SANDBOX"] && process27.env["SANDBOX"] !== "sandbox-exec") {
55959
- sandboxEnv = process27.env["SANDBOX"];
55960
- } else if (process27.env["SANDBOX"] === "sandbox-exec") {
55961
- sandboxEnv = `sandbox-exec (${process27.env["SEATBELT_PROFILE"] || "unknown"})`;
55975
+ if (process28.env["SANDBOX"] && process28.env["SANDBOX"] !== "sandbox-exec") {
55976
+ sandboxEnv = process28.env["SANDBOX"];
55977
+ } else if (process28.env["SANDBOX"] === "sandbox-exec") {
55978
+ sandboxEnv = `sandbox-exec (${process28.env["SEATBELT_PROFILE"] || "unknown"})`;
55962
55979
  }
55963
55980
  const modelVersion = context.services.agentContext?.config.getModel() || "Unknown";
55964
55981
  const cliVersion = await getVersion();
55965
55982
  const selectedAuthType = context.services.settings.merged.security.auth.selectedType || "";
55966
- const gcpProject = process27.env["GOOGLE_CLOUD_PROJECT"] || "";
55983
+ const gcpProject = process28.env["GOOGLE_CLOUD_PROJECT"] || "";
55967
55984
  const ideClient = await getIdeClientName(context);
55968
55985
  const userAccountManager = new UserAccountManager();
55969
55986
  const cachedAccount = userAccountManager.getCachedGoogleAccount();
@@ -56511,10 +56528,10 @@ var authCommand = {
56511
56528
  };
56512
56529
 
56513
56530
  // packages/cli/src/ui/commands/bugCommand.ts
56514
- import process28 from "node:process";
56531
+ import process29 from "node:process";
56515
56532
 
56516
56533
  // packages/cli/src/generated/git-commit.ts
56517
- var GIT_COMMIT_INFO = "981076f9c";
56534
+ var GIT_COMMIT_INFO = "cf709c0e0";
56518
56535
 
56519
56536
  // packages/cli/src/ui/utils/historyExportUtils.ts
56520
56537
  import * as fsPromises from "node:fs/promises";
@@ -56585,16 +56602,16 @@ var bugCommand = {
56585
56602
  const bugDescription = (args || "").trim();
56586
56603
  const agentContext = context.services.agentContext;
56587
56604
  const config = agentContext?.config;
56588
- const osVersion = `${process28.platform} ${process28.version}`;
56605
+ const osVersion = `${process29.platform} ${process29.version}`;
56589
56606
  let sandboxEnv = "no sandbox";
56590
- if (process28.env["SANDBOX"] && process28.env["SANDBOX"] !== "sandbox-exec") {
56591
- sandboxEnv = process28.env["SANDBOX"].replace(/^gemini-(?:code-)?/, "");
56592
- } else if (process28.env["SANDBOX"] === "sandbox-exec") {
56593
- sandboxEnv = `sandbox-exec (${process28.env["SEATBELT_PROFILE"] || "unknown"})`;
56607
+ if (process29.env["SANDBOX"] && process29.env["SANDBOX"] !== "sandbox-exec") {
56608
+ sandboxEnv = process29.env["SANDBOX"].replace(/^gemini-(?:code-)?/, "");
56609
+ } else if (process29.env["SANDBOX"] === "sandbox-exec") {
56610
+ sandboxEnv = `sandbox-exec (${process29.env["SEATBELT_PROFILE"] || "unknown"})`;
56594
56611
  }
56595
56612
  const modelVersion = config?.getModel() || "Unknown";
56596
56613
  const cliVersion = await getVersion();
56597
- const memoryUsage = formatBytes(process28.memoryUsage().rss);
56614
+ const memoryUsage = formatBytes(process29.memoryUsage().rss);
56598
56615
  const ideClient = await getIdeClientName2(context);
56599
56616
  const terminalName = terminalCapabilityManager.getTerminalName() || "Unknown";
56600
56617
  const terminalBgColor = terminalCapabilityManager.getTerminalBackgroundColor() || "Unknown";
@@ -56676,7 +56693,7 @@ ${bugReportUrl}${historyFileMessage}`
56676
56693
  Date.now()
56677
56694
  );
56678
56695
  }
56679
- const rss = process28.memoryUsage().rss;
56696
+ const rss = process29.memoryUsage().rss;
56680
56697
  const tempDir = config?.storage?.getProjectTempDir();
56681
56698
  if (rss >= MEMORY_SNAPSHOT_AUTO_THRESHOLD_BYTES && tempDir) {
56682
56699
  const snapshotPath = path24.join(
@@ -56738,7 +56755,7 @@ async function getIdeClientName2(context) {
56738
56755
  // packages/cli/src/ui/commands/bugMemoryCommand.ts
56739
56756
  import { stat as stat4 } from "node:fs/promises";
56740
56757
  import path25 from "node:path";
56741
- import process29 from "node:process";
56758
+ import process30 from "node:process";
56742
56759
  var bugMemoryCommand = {
56743
56760
  name: "bug-memory",
56744
56761
  description: "Capture a V8 heap snapshot to disk to attach to a bug report",
@@ -56760,7 +56777,7 @@ var bugMemoryCommand = {
56760
56777
  tempDir,
56761
56778
  `bug-memory-${Date.now()}.heapsnapshot`
56762
56779
  );
56763
- const rss = process29.memoryUsage().rss;
56780
+ const rss = process30.memoryUsage().rss;
56764
56781
  context.ui.addItem(
56765
56782
  {
56766
56783
  type: "info" /* INFO */,
@@ -57160,7 +57177,7 @@ var clearCommand = {
57160
57177
  const config = context.services.agentContext?.config;
57161
57178
  const hookSystem = config?.getHookSystem();
57162
57179
  if (hookSystem) {
57163
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
57180
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
57164
57181
  }
57165
57182
  config?.injectionService.clear();
57166
57183
  let newSessionId;
@@ -57177,7 +57194,7 @@ var clearCommand = {
57177
57194
  }
57178
57195
  let result;
57179
57196
  if (hookSystem) {
57180
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
57197
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
57181
57198
  }
57182
57199
  await new Promise((resolve9) => setImmediate(resolve9));
57183
57200
  if (config) {
@@ -57423,7 +57440,7 @@ var corgiCommand = {
57423
57440
  };
57424
57441
 
57425
57442
  // packages/cli/src/ui/commands/docsCommand.ts
57426
- import process30 from "node:process";
57443
+ import process31 from "node:process";
57427
57444
  var docsCommand = {
57428
57445
  name: "docs",
57429
57446
  description: "Open full Gemini CLI documentation in your browser",
@@ -57431,7 +57448,7 @@ var docsCommand = {
57431
57448
  autoExecute: true,
57432
57449
  action: async (context) => {
57433
57450
  const docsUrl = "https://goo.gle/gemini-cli-docs";
57434
- if (process30.env["SANDBOX"] && process30.env["SANDBOX"] !== "sandbox-exec") {
57451
+ if (process31.env["SANDBOX"] && process31.env["SANDBOX"] !== "sandbox-exec") {
57435
57452
  context.ui.addItem(
57436
57453
  {
57437
57454
  type: "info" /* INFO */,
@@ -57773,7 +57790,7 @@ var editorCommand = {
57773
57790
  };
57774
57791
 
57775
57792
  // packages/cli/src/ui/commands/extensionsCommand.ts
57776
- import process31 from "node:process";
57793
+ import process32 from "node:process";
57777
57794
  import { stat as stat6 } from "node:fs/promises";
57778
57795
 
57779
57796
  // packages/cli/src/ui/components/ConfigExtensionDialog.tsx
@@ -59109,12 +59126,12 @@ async function exploreAction(context) {
59109
59126
  }
59110
59127
  }
59111
59128
  const extensionsUrl = "https://geminicli.com/extensions/";
59112
- if (process31.env["NODE_ENV"] === "test") {
59129
+ if (process32.env["NODE_ENV"] === "test") {
59113
59130
  context.ui.addItem({
59114
59131
  type: "info" /* INFO */,
59115
59132
  text: `Would open extensions page in your browser: ${extensionsUrl} (skipped in test environment)`
59116
59133
  });
59117
- } else if (process31.env["SANDBOX"] && process31.env["SANDBOX"] !== "sandbox-exec") {
59134
+ } else if (process32.env["SANDBOX"] && process32.env["SANDBOX"] !== "sandbox-exec") {
59118
59135
  context.ui.addItem({
59119
59136
  type: "info" /* INFO */,
59120
59137
  text: `View available extensions at ${extensionsUrl}`
@@ -59637,12 +59654,12 @@ var ConsoleSummaryDisplay = ({
59637
59654
  };
59638
59655
 
59639
59656
  // packages/cli/src/ui/components/Footer.tsx
59640
- import process33 from "node:process";
59657
+ import process34 from "node:process";
59641
59658
  import os7 from "node:os";
59642
59659
 
59643
59660
  // packages/cli/src/ui/components/MemoryUsageDisplay.tsx
59644
59661
  var import_react69 = __toESM(require_react(), 1);
59645
- import process32 from "node:process";
59662
+ import process33 from "node:process";
59646
59663
  var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
59647
59664
  var MemoryUsageDisplay = ({ color = theme.text.primary, isActive = true }) => {
59648
59665
  const [memoryUsage, setMemoryUsage] = (0, import_react69.useState)("");
@@ -59652,7 +59669,7 @@ var MemoryUsageDisplay = ({ color = theme.text.primary, isActive = true }) => {
59652
59669
  return;
59653
59670
  }
59654
59671
  const updateMemory = () => {
59655
- const usage = process32.memoryUsage().rss;
59672
+ const usage = process33.memoryUsage().rss;
59656
59673
  setMemoryUsage(formatBytes(usage));
59657
59674
  setMemoryUsageColor(
59658
59675
  usage >= 2 * 1024 * 1024 * 1024 ? theme.status.error : color
@@ -59912,7 +59929,7 @@ var SandboxIndicator = ({
59912
59929
  if (isTrustedFolder === false) {
59913
59930
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { color: theme.status.warning, children: "untrusted" });
59914
59931
  }
59915
- const sandbox = process33.env["SANDBOX"];
59932
+ const sandbox = process34.env["SANDBOX"];
59916
59933
  if (sandbox) {
59917
59934
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { color: theme.status.warning, children: "current process" });
59918
59935
  }
@@ -60087,7 +60104,7 @@ var Footer = () => {
60087
60104
  }
60088
60105
  case "sandbox": {
60089
60106
  let str = "no sandbox";
60090
- const sandbox = process33.env["SANDBOX"];
60107
+ const sandbox = process34.env["SANDBOX"];
60091
60108
  if (isTrustedFolder === false) str = "untrusted";
60092
60109
  else if (sandbox) str = "current process";
60093
60110
  else if (config.getSandboxEnabled()) str = "all tools";
@@ -60176,7 +60193,7 @@ var Footer = () => {
60176
60193
  case "auth": {
60177
60194
  if (!settings.merged.ui.showUserIdentity) break;
60178
60195
  if (!authType) break;
60179
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
60196
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
60180
60197
  addCol(
60181
60198
  id,
60182
60199
  header,
@@ -60592,7 +60609,27 @@ var helpCommand = {
60592
60609
  kind: "built-in" /* BUILT_IN */,
60593
60610
  description: "For help on gemini-cli",
60594
60611
  autoExecute: true,
60595
- action: async (context) => {
60612
+ action: async (context, args) => {
60613
+ const lowerArgs = args?.toLowerCase() || "";
60614
+ const hasAntigravity = lowerArgs.includes("antigravity");
60615
+ const hasInstallOrMigrate = lowerArgs.includes("install") || lowerArgs.includes("migrate");
60616
+ if (hasAntigravity && hasInstallOrMigrate) {
60617
+ const info = getAntigravityInstallInfo();
60618
+ if (info) {
60619
+ context.ui.addItem({
60620
+ type: "info" /* INFO */,
60621
+ text: `To install the Antigravity CLI on ${info.platformName}, run the following command:
60622
+
60623
+ '${info.installCmd}'`
60624
+ });
60625
+ } else {
60626
+ context.ui.addItem({
60627
+ type: "info" /* INFO */,
60628
+ text: `Learn more about Antigravity CLI at https://antigravity.google/docs/cli-getting-started`
60629
+ });
60630
+ }
60631
+ return;
60632
+ }
60596
60633
  const helpItem = {
60597
60634
  type: "help" /* HELP */,
60598
60635
  timestamp: /* @__PURE__ */ new Date()
@@ -61924,12 +61961,12 @@ import path29 from "node:path";
61924
61961
  function getIdeStatusMessage(ideClient) {
61925
61962
  const connection = ideClient.getConnectionStatus();
61926
61963
  switch (connection.status) {
61927
- case IDEConnectionStatus.Connected:
61964
+ case "connected" /* Connected */:
61928
61965
  return {
61929
61966
  messageType: "info",
61930
61967
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
61931
61968
  };
61932
- case IDEConnectionStatus.Connecting:
61969
+ case "connecting" /* Connecting */:
61933
61970
  return {
61934
61971
  messageType: "info",
61935
61972
  content: `\u{1F7E1} Connecting...`
@@ -61970,7 +62007,7 @@ ${infoMessage}`;
61970
62007
  async function getIdeStatusMessageWithFiles(ideClient) {
61971
62008
  const connection = ideClient.getConnectionStatus();
61972
62009
  switch (connection.status) {
61973
- case IDEConnectionStatus.Connected: {
62010
+ case "connected" /* Connected */: {
61974
62011
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
61975
62012
  const context = ideContextStore.get();
61976
62013
  const openFiles = context?.workspaceState?.openFiles;
@@ -61982,7 +62019,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
61982
62019
  content
61983
62020
  };
61984
62021
  }
61985
- case IDEConnectionStatus.Connecting:
62022
+ case "connecting" /* Connecting */:
61986
62023
  return {
61987
62024
  messageType: "info",
61988
62025
  content: `\u{1F7E1} Connecting...`
@@ -62004,7 +62041,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
62004
62041
  const ideClient = await IdeClient.getInstance();
62005
62042
  if (value) {
62006
62043
  await ideClient.connect(options);
62007
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
62044
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
62008
62045
  } else {
62009
62046
  await ideClient.disconnect();
62010
62047
  }
@@ -62092,7 +62129,7 @@ var ideCommand = async () => {
62092
62129
  logToConsole: false
62093
62130
  }
62094
62131
  );
62095
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
62132
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
62096
62133
  break;
62097
62134
  }
62098
62135
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -62169,7 +62206,7 @@ var ideCommand = async () => {
62169
62206
  }
62170
62207
  };
62171
62208
  const { status } = ideClient.getConnectionStatus();
62172
- const isConnected = status === IDEConnectionStatus.Connected;
62209
+ const isConnected = status === "connected" /* Connected */;
62173
62210
  if (isConnected) {
62174
62211
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
62175
62212
  } else {
@@ -62269,13 +62306,13 @@ Use /mcp auth <server-name> to authenticate.`
62269
62306
  const displayListener = (message) => {
62270
62307
  context.ui.addItem({ type: "info", text: message });
62271
62308
  };
62272
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
62309
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62273
62310
  try {
62274
62311
  context.ui.addItem({
62275
62312
  type: "info",
62276
62313
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62277
62314
  });
62278
- const { MCPOAuthProvider } = await import("./dist-XLM4ONR2.js");
62315
+ const { MCPOAuthProvider } = await import("./core-K77SYAQL.js");
62279
62316
  let oauthConfig = server.oauth;
62280
62317
  if (!oauthConfig) {
62281
62318
  oauthConfig = { enabled: false };
@@ -62312,7 +62349,7 @@ Use /mcp auth <server-name> to authenticate.`
62312
62349
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
62313
62350
  };
62314
62351
  } finally {
62315
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
62352
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62316
62353
  }
62317
62354
  },
62318
62355
  completion: async (context, partialArg) => {
@@ -62358,10 +62395,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
62358
62395
  }
62359
62396
  const serverNames = Object.keys(mcpServers);
62360
62397
  const connectingServers = serverNames.filter(
62361
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
62398
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
62362
62399
  );
62363
62400
  const discoveryState = getMCPDiscoveryState();
62364
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
62401
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
62365
62402
  const allTools = toolRegistry.getAllTools();
62366
62403
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
62367
62404
  const promptRegistry = config.getPromptRegistry();
@@ -78119,7 +78156,7 @@ Return a JSON object with:
78119
78156
  },
78120
78157
  abortSignal: new AbortController().signal,
78121
78158
  promptId: "triage-duplicates",
78122
- role: LlmRole.UTILITY_TOOL
78159
+ role: "utility_tool" /* UTILITY_TOOL */
78123
78160
  });
78124
78161
  const rec = response;
78125
78162
  let canonical;
@@ -78953,7 +78990,7 @@ Return a JSON object with:
78953
78990
  },
78954
78991
  abortSignal: abortControllerRef.current.signal,
78955
78992
  promptId: "triage-issues",
78956
- role: LlmRole.UTILITY_TOOL
78993
+ role: "utility_tool" /* UTILITY_TOOL */
78957
78994
  });
78958
78995
  return response;
78959
78996
  },
@@ -79425,7 +79462,7 @@ var oncallCommand = {
79425
79462
  };
79426
79463
 
79427
79464
  // packages/cli/src/ui/commands/permissionsCommand.ts
79428
- import * as process34 from "node:process";
79465
+ import * as process35 from "node:process";
79429
79466
  import * as path33 from "node:path";
79430
79467
  import * as fs34 from "node:fs";
79431
79468
  var permissionsCommand = {
@@ -79443,7 +79480,7 @@ var permissionsCommand = {
79443
79480
  const dirPath = input.trim();
79444
79481
  let targetDirectory;
79445
79482
  if (!dirPath) {
79446
- targetDirectory = process34.cwd();
79483
+ targetDirectory = process35.cwd();
79447
79484
  } else {
79448
79485
  targetDirectory = path33.resolve(expandHomeDir(dirPath));
79449
79486
  }
@@ -79527,8 +79564,8 @@ var planCommand = {
79527
79564
  return;
79528
79565
  }
79529
79566
  const previousApprovalMode = config.getApprovalMode();
79530
- config.setApprovalMode(ApprovalMode.PLAN);
79531
- if (previousApprovalMode !== ApprovalMode.PLAN) {
79567
+ config.setApprovalMode("plan" /* PLAN */);
79568
+ if (previousApprovalMode !== "plan" /* PLAN */) {
79532
79569
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
79533
79570
  }
79534
79571
  if (context.invocation?.args) {
@@ -79587,10 +79624,10 @@ var categorizeRulesByMode = (rules) => {
79587
79624
  rules.forEach((rule) => {
79588
79625
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
79589
79626
  const modeSet = new Set(modes);
79590
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
79591
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
79592
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
79593
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
79627
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
79628
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
79629
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
79630
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
79594
79631
  });
79595
79632
  return result;
79596
79633
  };
@@ -80942,7 +80979,7 @@ var upgradeCommand = {
80942
80979
  action: async (context) => {
80943
80980
  const config = context.services.agentContext?.config;
80944
80981
  const authType = config?.getContentGeneratorConfig()?.authType;
80945
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
80982
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
80946
80983
  return {
80947
80984
  type: "message",
80948
80985
  messageType: "error",
@@ -81171,7 +81208,7 @@ var BuiltinCommandLoader = class {
81171
81208
  setupGithubCommand,
81172
81209
  terminalSetupCommand,
81173
81210
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
81174
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
81211
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
81175
81212
  ];
81176
81213
  handle?.end();
81177
81214
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -81559,6 +81596,7 @@ export {
81559
81596
  InputContext,
81560
81597
  useInputState,
81561
81598
  Footer,
81599
+ getAntigravityInstallInfo,
81562
81600
  build_default,
81563
81601
  CliSpinner,
81564
81602
  MAX_WIDTH,