@google/gemini-cli 0.47.0-preview.0 → 0.48.0-nightly.20260612.g4e10a34be

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/{chunk-3QB7USWX.js → chunk-25ZW2ZOF.js} +1 -1
  2. package/bundle/{chunk-KQUKJ25H.js → chunk-3BHPNRR5.js} +1 -1
  3. package/bundle/{chunk-KABNLJTC.js → chunk-3P56CQDW.js} +7 -7
  4. package/bundle/{chunk-HVY4BTIS.js → chunk-47O5POZQ.js} +131 -122
  5. package/bundle/{chunk-FYSIP5RY.js → chunk-4FWMMTHD.js} +1 -1
  6. package/bundle/{chunk-BM2S44RN.js → chunk-57QJRHS6.js} +1 -1
  7. package/bundle/{chunk-X4ES3RYL.js → chunk-5OGSMQN5.js} +8 -5
  8. package/bundle/{chunk-HKYJF453.js → chunk-5TAF74A7.js} +67 -54
  9. package/bundle/{chunk-TL7FT4N6.js → chunk-BG23KJOF.js} +1 -1
  10. package/bundle/{chunk-X4CTUGDH.js → chunk-DR6M2CVX.js} +2 -2
  11. package/bundle/{chunk-OFDHSTZY.js → chunk-DV5H7HVO.js} +1 -1
  12. package/bundle/{chunk-TNF7XO3J.js → chunk-ERRTQLZ3.js} +1 -1
  13. package/bundle/{chunk-6SPQYYTY.js → chunk-FFKNXGOH.js} +7 -7
  14. package/bundle/{chunk-KD6CU4QC.js → chunk-FSFSH7N4.js} +2 -2
  15. package/bundle/{chunk-67CFYGDY.js → chunk-GSKH763B.js} +136 -124
  16. package/bundle/{chunk-7YWQ3SVG.js → chunk-GUFPYIHD.js} +1 -1
  17. package/bundle/{chunk-6SIICAIT.js → chunk-GWB6WHVI.js} +7679 -14212
  18. package/bundle/{chunk-3UUFOO26.js → chunk-HEBKVYVW.js} +1 -1
  19. package/bundle/{chunk-FJK747UW.js → chunk-I4UV4KA4.js} +2 -2
  20. package/bundle/chunk-JNJOXQYJ.js +1571 -0
  21. package/bundle/{chunk-7XI2YCOG.js → chunk-JQBYCLEO.js} +3 -3
  22. package/bundle/{chunk-EEM2SQ5I.js → chunk-M54YU4D6.js} +3 -3
  23. package/bundle/{chunk-DE7SC5BD.js → chunk-NWC2JNOB.js} +9 -8
  24. package/bundle/chunk-OZYTM77K.js +81736 -0
  25. package/bundle/chunk-PD2ER6QH.js +394678 -0
  26. package/bundle/{chunk-TZ4WATK3.js → chunk-RJVA7TEL.js} +1 -1
  27. package/bundle/{chunk-LICUB7D5.js → chunk-RWG2IKXK.js} +3 -3
  28. package/bundle/chunk-TMB2KDVR.js +154 -0
  29. package/bundle/chunk-TRKBNK3S.js +118 -0
  30. package/bundle/chunk-WEPCSQ47.js +17320 -0
  31. package/bundle/chunk-ZACXIEK6.js +512 -0
  32. package/bundle/chunk-ZT5PXPGC.js +398 -0
  33. package/bundle/{cleanup-3EC3MZGP.js → cleanup-EMSFFQXH.js} +2 -2
  34. package/bundle/{cleanup-KIJ65UF3.js → cleanup-JUEQXYLN.js} +2 -2
  35. package/bundle/{cleanup-N4ZABZAB.js → cleanup-OQN4S6N7.js} +2 -2
  36. package/bundle/cleanup-VI4MGW6W.js +32 -0
  37. package/bundle/{core-GC6OVM6C.js → core-SBDR7NMV.js} +3 -1
  38. package/bundle/{devtoolsService-F2IZGJZM.js → devtoolsService-4K4TUJGT.js} +2 -2
  39. package/bundle/{devtoolsService-6SFXG7FP.js → devtoolsService-6XIZFA3V.js} +4 -3
  40. package/bundle/devtoolsService-P7V47Y6U.js +856 -0
  41. package/bundle/{devtoolsService-TKXNBBN5.js → devtoolsService-Q6RR5ONV.js} +2 -2
  42. package/bundle/{dist-UMJIST56.js → dist-C77MM5UI.js} +3 -1
  43. package/bundle/{core-BQT7VCTF.js → dist-IZL4IUFR.js} +3 -1
  44. package/bundle/dist-PNS3BBFZ.js +2150 -0
  45. package/bundle/{gemini-S2Z7KQKB.js → gemini-22IJYAAK.js} +14 -14
  46. package/bundle/{gemini-63Q5IT6P.js → gemini-BU4XIO7C.js} +212 -196
  47. package/bundle/{gemini-K6W6EAMV.js → gemini-EXF7WM5I.js} +14 -14
  48. package/bundle/gemini-GA3BOQUA.js +16409 -0
  49. package/bundle/gemini.js +7 -7
  50. package/bundle/{interactiveCli-T5XGOQLO.js → interactiveCli-3XP7ZWTR.js} +8 -8
  51. package/bundle/{interactiveCli-BRHY6JS4.js → interactiveCli-AYRCP2YE.js} +314 -295
  52. package/bundle/interactiveCli-IK5ZIGXI.js +34766 -0
  53. package/bundle/{interactiveCli-QT2IE57X.js → interactiveCli-WP4PF4B4.js} +8 -8
  54. package/bundle/{liteRtServerManager-IPO45QQA.js → liteRtServerManager-BKMP23GM.js} +4 -4
  55. package/bundle/{liteRtServerManager-EMP57U7P.js → liteRtServerManager-BRKTTSTY.js} +4 -4
  56. package/bundle/{liteRtServerManager-W3IV755V.js → liteRtServerManager-EXA5HOJY.js} +4 -4
  57. package/bundle/liteRtServerManager-NPAIRQRP.js +65 -0
  58. package/bundle/{oauth2-provider-4K62EY2P.js → oauth2-provider-AOLL6E73.js} +1 -1
  59. package/bundle/{oauth2-provider-PXSU4K3R.js → oauth2-provider-J7GSQ3D3.js} +38 -72
  60. package/bundle/oauth2-provider-O3JJBAIN.js +235 -0
  61. package/bundle/{oauth2-provider-IVDLR4FX.js → oauth2-provider-R3XNUJCY.js} +1 -1
  62. package/bundle/policies/sandbox-default.toml +7 -0
  63. package/bundle/{start-FOEHIGOX.js → start-FAIQQIZB.js} +6 -6
  64. package/bundle/{start-NIPOXJSU.js → start-T37M4GQC.js} +6 -6
  65. package/bundle/{start-BQ4PN4SK.js → start-UEM457EB.js} +6 -6
  66. package/bundle/start-VUNII4BV.js +18 -0
  67. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-KQUKJ25H.js";
9
+ } from "./chunk-BG23KJOF.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,20 +58,22 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-FYSIP5RY.js";
61
+ } from "./chunk-WEPCSQ47.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-FJK747UW.js";
64
+ } from "./chunk-I4UV4KA4.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-3QB7USWX.js";
68
+ } from "./chunk-NWC2JNOB.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
72
72
  AsyncFzf,
73
+ AuthType,
73
74
  Config,
74
75
  CoreEvent,
76
+ CoreToolCallStatus,
75
77
  DiscoveredMCPTool,
76
78
  ExtensionDisableEvent,
77
79
  ExtensionEnableEvent,
@@ -82,20 +84,31 @@ import {
82
84
  ExtensionUpdateEvent,
83
85
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
84
86
  GEMINI_DIR,
87
+ HookType,
88
+ IDEConnectionStatus,
85
89
  INITIAL_HISTORY_LENGTH,
86
90
  IdeClient,
87
91
  IdeConnectionEvent,
92
+ IdeConnectionType,
93
+ IntegrityDataStatus,
88
94
  KeychainTokenStorage,
95
+ LlmRole,
96
+ MCPDiscoveryState,
89
97
  MCPOAuthTokenStorage,
98
+ MCPServerStatus,
90
99
  ModelSlashCommandEvent,
100
+ PolicyDecision,
91
101
  ProjectIdRequiredError,
92
102
  REFERENCE_CONTENT_END,
93
103
  REFERENCE_CONTENT_START,
94
104
  ReadManyFilesTool,
95
105
  RewindEvent,
106
+ SessionEndReason,
107
+ SessionStartSource,
96
108
  ShellExecutionService,
97
109
  StartSessionEvent,
98
110
  Storage,
111
+ TrustLevel,
99
112
  UPGRADE_URL_PAGE,
100
113
  UserAccountManager,
101
114
  ValidationRequiredError,
@@ -230,7 +243,7 @@ import {
230
243
  tokenLimit,
231
244
  uiTelemetryService,
232
245
  unescapePath
233
- } from "./chunk-6SIICAIT.js";
246
+ } from "./chunk-PD2ER6QH.js";
234
247
  import {
235
248
  require_src
236
249
  } from "./chunk-TUDYL3X4.js";
@@ -39447,7 +39460,7 @@ var import_react34 = __toESM(require_react(), 1);
39447
39460
  function useIdeTrustListener() {
39448
39461
  const settings = useSettings();
39449
39462
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39450
- "disconnected" /* Disconnected */
39463
+ IDEConnectionStatus.Disconnected
39451
39464
  );
39452
39465
  const previousTrust = (0, import_react34.useRef)(void 0);
39453
39466
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39477,7 +39490,7 @@ function useIdeTrustListener() {
39477
39490
  };
39478
39491
  }, []);
39479
39492
  const getSnapshot = () => {
39480
- if (connectionStatus !== "connected" /* Connected */) {
39493
+ if (connectionStatus !== IDEConnectionStatus.Connected) {
39481
39494
  return void 0;
39482
39495
  }
39483
39496
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -40182,7 +40195,7 @@ async function initializeApp(config, settings) {
40182
40195
  await ideClient.connect();
40183
40196
  logIdeConnection(
40184
40197
  config,
40185
- new IdeConnectionEvent("start" /* START */)
40198
+ new IdeConnectionEvent(IdeConnectionType.START)
40186
40199
  );
40187
40200
  }).catch((e) => {
40188
40201
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -40200,17 +40213,17 @@ async function initializeApp(config, settings) {
40200
40213
  // packages/cli/src/config/auth.ts
40201
40214
  async function validateAuthMethod(authMethod) {
40202
40215
  loadEnvironment(loadSettings().merged, process.cwd());
40203
- if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
40216
+ if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
40204
40217
  return null;
40205
40218
  }
40206
- if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
40219
+ if (authMethod === AuthType.USE_GEMINI) {
40207
40220
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
40208
40221
  if (!key) {
40209
40222
  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)!";
40210
40223
  }
40211
40224
  return null;
40212
40225
  }
40213
- if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
40226
+ if (authMethod === AuthType.USE_VERTEX_AI) {
40214
40227
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
40215
40228
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
40216
40229
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44637,7 +44650,7 @@ var ExtensionManager = class extends ExtensionLoader {
44637
44650
  const trustedFolders = loadTrustedFolders();
44638
44651
  await trustedFolders.setValue(
44639
44652
  this.workspaceDir,
44640
- "TRUST_FOLDER" /* TRUST_FOLDER */
44653
+ TrustLevel.TRUST_FOLDER
44641
44654
  );
44642
44655
  } else {
44643
44656
  throw new Error(
@@ -44823,7 +44836,7 @@ Would you like to attempt to install via "git clone" instead?`
44823
44836
  newExtensionConfig.version,
44824
44837
  previousExtensionConfig.version,
44825
44838
  installMetadata.type,
44826
- "success" /* Success */
44839
+ CoreToolCallStatus.Success
44827
44840
  )
44828
44841
  );
44829
44842
  if (newExtensionName !== previousName) {
@@ -44846,7 +44859,7 @@ Would you like to attempt to install via "git clone" instead?`
44846
44859
  getExtensionId(newExtensionConfig, installMetadata),
44847
44860
  newExtensionConfig.version,
44848
44861
  installMetadata.type,
44849
- "success" /* Success */
44862
+ CoreToolCallStatus.Success
44850
44863
  )
44851
44864
  );
44852
44865
  await this.enableExtension(
@@ -44879,7 +44892,7 @@ Would you like to attempt to install via "git clone" instead?`
44879
44892
  newExtensionConfig?.version ?? "",
44880
44893
  previousExtensionConfig.version,
44881
44894
  installMetadata.type,
44882
- "error" /* Error */
44895
+ CoreToolCallStatus.Error
44883
44896
  )
44884
44897
  );
44885
44898
  } else {
@@ -44891,7 +44904,7 @@ Would you like to attempt to install via "git clone" instead?`
44891
44904
  extensionId ?? "",
44892
44905
  newExtensionConfig?.version ?? "",
44893
44906
  installMetadata.type,
44894
- "error" /* Error */
44907
+ CoreToolCallStatus.Error
44895
44908
  )
44896
44909
  );
44897
44910
  }
@@ -44922,7 +44935,7 @@ Would you like to attempt to install via "git clone" instead?`
44922
44935
  extension.name,
44923
44936
  hashValue(extension.name),
44924
44937
  extension.id,
44925
- "success" /* Success */
44938
+ CoreToolCallStatus.Success
44926
44939
  )
44927
44940
  );
44928
44941
  }
@@ -45192,7 +45205,7 @@ Would you like to attempt to install via "git clone" instead?`
45192
45205
  if (eventHooks) {
45193
45206
  for (const definition of eventHooks) {
45194
45207
  for (const hook of definition.hooks) {
45195
- if (hook.type === "command" /* Command */) {
45208
+ if (hook.type === HookType.Command) {
45196
45209
  hook.env = { ...hook.env, ...hookEnv };
45197
45210
  }
45198
45211
  }
@@ -46223,7 +46236,7 @@ async function readMcpResources(resourceParts, config, signal) {
46223
46236
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46224
46237
  name: `resources/read (${resource.serverName})`,
46225
46238
  description: resource.uri,
46226
- status: "success" /* Success */,
46239
+ status: CoreToolCallStatus.Success,
46227
46240
  isClientInitiated: true,
46228
46241
  resultDisplay: `Successfully read resource ${resource.uri}`,
46229
46242
  confirmationDetails: void 0
@@ -46238,7 +46251,7 @@ async function readMcpResources(resourceParts, config, signal) {
46238
46251
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46239
46252
  name: `resources/read (${resource.serverName})`,
46240
46253
  description: resource.uri,
46241
- status: "error" /* Error */,
46254
+ status: CoreToolCallStatus.Error,
46242
46255
  isClientInitiated: true,
46243
46256
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46244
46257
  confirmationDetails: void 0
@@ -46263,7 +46276,7 @@ Content from @${result.uri}:
46263
46276
  }
46264
46277
  if (hasError) {
46265
46278
  const firstError = displays.find(
46266
- (d) => d.status === "error" /* Error */
46279
+ (d) => d.status === CoreToolCallStatus.Error
46267
46280
  );
46268
46281
  return {
46269
46282
  parts: [],
@@ -46304,7 +46317,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46304
46317
  callId: `client-read-${userMessageTimestamp}`,
46305
46318
  name: readManyFilesTool.displayName,
46306
46319
  description: invocation.getDescription(),
46307
- status: "success" /* Success */,
46320
+ status: CoreToolCallStatus.Success,
46308
46321
  isClientInitiated: true,
46309
46322
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46310
46323
  confirmationDetails: void 0
@@ -46351,7 +46364,7 @@ Content from @${displayPath}:
46351
46364
  callId: `client-read-${userMessageTimestamp}`,
46352
46365
  name: readManyFilesTool.displayName,
46353
46366
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46354
- status: "error" /* Error */,
46367
+ status: CoreToolCallStatus.Error,
46355
46368
  isClientInitiated: true,
46356
46369
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46357
46370
  confirmationDetails: void 0
@@ -49618,7 +49631,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49618
49631
  if (wasRaw) {
49619
49632
  setRawMode?.(true);
49620
49633
  }
49621
- coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49634
+ coreEvents.emit(CoreEvent.ExternalEditorClosed);
49622
49635
  }
49623
49636
  }
49624
49637
 
@@ -52313,7 +52326,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52313
52326
  extension.name,
52314
52327
  installMetadata
52315
52328
  );
52316
- if (status === "invalid" /* INVALID */) {
52329
+ if (status === IntegrityDataStatus.INVALID) {
52317
52330
  throw new Error("Extension integrity cannot be verified");
52318
52331
  }
52319
52332
  } catch (e) {
@@ -53731,11 +53744,11 @@ var ShellProcessor = class {
53731
53744
  },
53732
53745
  void 0
53733
53746
  );
53734
- if (decision === "deny" /* DENY */) {
53747
+ if (decision === PolicyDecision.DENY) {
53735
53748
  throw new Error(
53736
53749
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
53737
53750
  );
53738
- } else if (decision === "ask_user" /* ASK_USER */) {
53751
+ } else if (decision === PolicyDecision.ASK_USER) {
53739
53752
  commandsToConfirm.add(command);
53740
53753
  }
53741
53754
  }
@@ -54853,7 +54866,7 @@ var MultiFolderTrustDialog = ({
54853
54866
  if (choice === 1 /* YES_AND_REMEMBER */) {
54854
54867
  await trustedFolders.setValue(
54855
54868
  expandedPath,
54856
- "TRUST_FOLDER" /* TRUST_FOLDER */
54869
+ TrustLevel.TRUST_FOLDER
54857
54870
  );
54858
54871
  }
54859
54872
  workspaceContext.addDirectory(expandedPath);
@@ -56531,7 +56544,7 @@ var authCommand = {
56531
56544
  import process29 from "node:process";
56532
56545
 
56533
56546
  // packages/cli/src/generated/git-commit.ts
56534
- var GIT_COMMIT_INFO = "3a13b8eeb";
56547
+ var GIT_COMMIT_INFO = "4e10a34be";
56535
56548
 
56536
56549
  // packages/cli/src/ui/utils/historyExportUtils.ts
56537
56550
  import * as fsPromises from "node:fs/promises";
@@ -57177,7 +57190,7 @@ var clearCommand = {
57177
57190
  const config = context.services.agentContext?.config;
57178
57191
  const hookSystem = config?.getHookSystem();
57179
57192
  if (hookSystem) {
57180
- await hookSystem.fireSessionEndEvent("clear" /* Clear */);
57193
+ await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
57181
57194
  }
57182
57195
  config?.injectionService.clear();
57183
57196
  let newSessionId;
@@ -57194,7 +57207,7 @@ var clearCommand = {
57194
57207
  }
57195
57208
  let result;
57196
57209
  if (hookSystem) {
57197
- result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
57210
+ result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
57198
57211
  }
57199
57212
  await new Promise((resolve9) => setImmediate(resolve9));
57200
57213
  if (config) {
@@ -60193,7 +60206,7 @@ var Footer = () => {
60193
60206
  case "auth": {
60194
60207
  if (!settings.merged.ui.showUserIdentity) break;
60195
60208
  if (!authType) break;
60196
- const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
60209
+ const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
60197
60210
  addCol(
60198
60211
  id,
60199
60212
  header,
@@ -61961,12 +61974,12 @@ import path29 from "node:path";
61961
61974
  function getIdeStatusMessage(ideClient) {
61962
61975
  const connection = ideClient.getConnectionStatus();
61963
61976
  switch (connection.status) {
61964
- case "connected" /* Connected */:
61977
+ case IDEConnectionStatus.Connected:
61965
61978
  return {
61966
61979
  messageType: "info",
61967
61980
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
61968
61981
  };
61969
- case "connecting" /* Connecting */:
61982
+ case IDEConnectionStatus.Connecting:
61970
61983
  return {
61971
61984
  messageType: "info",
61972
61985
  content: `\u{1F7E1} Connecting...`
@@ -62007,7 +62020,7 @@ ${infoMessage}`;
62007
62020
  async function getIdeStatusMessageWithFiles(ideClient) {
62008
62021
  const connection = ideClient.getConnectionStatus();
62009
62022
  switch (connection.status) {
62010
- case "connected" /* Connected */: {
62023
+ case IDEConnectionStatus.Connected: {
62011
62024
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
62012
62025
  const context = ideContextStore.get();
62013
62026
  const openFiles = context?.workspaceState?.openFiles;
@@ -62019,7 +62032,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
62019
62032
  content
62020
62033
  };
62021
62034
  }
62022
- case "connecting" /* Connecting */:
62035
+ case IDEConnectionStatus.Connecting:
62023
62036
  return {
62024
62037
  messageType: "info",
62025
62038
  content: `\u{1F7E1} Connecting...`
@@ -62041,7 +62054,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
62041
62054
  const ideClient = await IdeClient.getInstance();
62042
62055
  if (value) {
62043
62056
  await ideClient.connect(options);
62044
- logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
62057
+ logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
62045
62058
  } else {
62046
62059
  await ideClient.disconnect();
62047
62060
  }
@@ -62129,7 +62142,7 @@ var ideCommand = async () => {
62129
62142
  logToConsole: false
62130
62143
  }
62131
62144
  );
62132
- if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
62145
+ if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
62133
62146
  break;
62134
62147
  }
62135
62148
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -62206,7 +62219,7 @@ var ideCommand = async () => {
62206
62219
  }
62207
62220
  };
62208
62221
  const { status } = ideClient.getConnectionStatus();
62209
- const isConnected = status === "connected" /* Connected */;
62222
+ const isConnected = status === IDEConnectionStatus.Connected;
62210
62223
  if (isConnected) {
62211
62224
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
62212
62225
  } else {
@@ -62306,13 +62319,13 @@ Use /mcp auth <server-name> to authenticate.`
62306
62319
  const displayListener = (message) => {
62307
62320
  context.ui.addItem({ type: "info", text: message });
62308
62321
  };
62309
- coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62322
+ coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
62310
62323
  try {
62311
62324
  context.ui.addItem({
62312
62325
  type: "info",
62313
62326
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62314
62327
  });
62315
- const { MCPOAuthProvider } = await import("./core-GC6OVM6C.js");
62328
+ const { MCPOAuthProvider } = await import("./dist-IZL4IUFR.js");
62316
62329
  let oauthConfig = server.oauth;
62317
62330
  if (!oauthConfig) {
62318
62331
  oauthConfig = { enabled: false };
@@ -62349,7 +62362,7 @@ Use /mcp auth <server-name> to authenticate.`
62349
62362
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
62350
62363
  };
62351
62364
  } finally {
62352
- coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62365
+ coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
62353
62366
  }
62354
62367
  },
62355
62368
  completion: async (context, partialArg) => {
@@ -62395,10 +62408,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
62395
62408
  }
62396
62409
  const serverNames = Object.keys(mcpServers);
62397
62410
  const connectingServers = serverNames.filter(
62398
- (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
62411
+ (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
62399
62412
  );
62400
62413
  const discoveryState = getMCPDiscoveryState();
62401
- const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
62414
+ const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
62402
62415
  const allTools = toolRegistry.getAllTools();
62403
62416
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
62404
62417
  const promptRegistry = config.getPromptRegistry();
@@ -78156,7 +78169,7 @@ Return a JSON object with:
78156
78169
  },
78157
78170
  abortSignal: new AbortController().signal,
78158
78171
  promptId: "triage-duplicates",
78159
- role: "utility_tool" /* UTILITY_TOOL */
78172
+ role: LlmRole.UTILITY_TOOL
78160
78173
  });
78161
78174
  const rec = response;
78162
78175
  let canonical;
@@ -78990,7 +79003,7 @@ Return a JSON object with:
78990
79003
  },
78991
79004
  abortSignal: abortControllerRef.current.signal,
78992
79005
  promptId: "triage-issues",
78993
- role: "utility_tool" /* UTILITY_TOOL */
79006
+ role: LlmRole.UTILITY_TOOL
78994
79007
  });
78995
79008
  return response;
78996
79009
  },
@@ -79564,8 +79577,8 @@ var planCommand = {
79564
79577
  return;
79565
79578
  }
79566
79579
  const previousApprovalMode = config.getApprovalMode();
79567
- config.setApprovalMode("plan" /* PLAN */);
79568
- if (previousApprovalMode !== "plan" /* PLAN */) {
79580
+ config.setApprovalMode(ApprovalMode.PLAN);
79581
+ if (previousApprovalMode !== ApprovalMode.PLAN) {
79569
79582
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
79570
79583
  }
79571
79584
  if (context.invocation?.args) {
@@ -79624,10 +79637,10 @@ var categorizeRulesByMode = (rules) => {
79624
79637
  rules.forEach((rule) => {
79625
79638
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
79626
79639
  const modeSet = new Set(modes);
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);
79640
+ if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
79641
+ if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
79642
+ if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
79643
+ if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
79631
79644
  });
79632
79645
  return result;
79633
79646
  };
@@ -80979,7 +80992,7 @@ var upgradeCommand = {
80979
80992
  action: async (context) => {
80980
80993
  const config = context.services.agentContext?.config;
80981
80994
  const authType = config?.getContentGeneratorConfig()?.authType;
80982
- if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
80995
+ if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
80983
80996
  return {
80984
80997
  type: "message",
80985
80998
  messageType: "error",
@@ -81208,7 +81221,7 @@ var BuiltinCommandLoader = class {
81208
81221
  setupGithubCommand,
81209
81222
  terminalSetupCommand,
81210
81223
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
81211
- ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
81224
+ ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
81212
81225
  ];
81213
81226
  handle?.end();
81214
81227
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -1,7 +1,7 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-3UUFOO26.js";
4
+ } from "./chunk-HEBKVYVW.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -1,13 +1,13 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-3UUFOO26.js";
4
+ } from "./chunk-DV5H7HVO.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-HVY4BTIS.js";
10
+ } from "./chunk-47O5POZQ.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-67CFYGDY.js";
8
+ } from "./chunk-47O5POZQ.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-OFDHSTZY.js";
4
+ } from "./chunk-TMB2KDVR.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-TNF7XO3J.js";
9
+ } from "./chunk-ERRTQLZ3.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-X4ES3RYL.js";
61
+ } from "./chunk-4FWMMTHD.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-KD6CU4QC.js";
64
+ } from "./chunk-FSFSH7N4.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-DE7SC5BD.js";
68
+ } from "./chunk-25ZW2ZOF.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -230,7 +230,7 @@ import {
230
230
  tokenLimit,
231
231
  uiTelemetryService,
232
232
  unescapePath
233
- } from "./chunk-67CFYGDY.js";
233
+ } from "./chunk-GSKH763B.js";
234
234
  import {
235
235
  require_src
236
236
  } from "./chunk-TUDYL3X4.js";
@@ -56531,7 +56531,7 @@ var authCommand = {
56531
56531
  import process29 from "node:process";
56532
56532
 
56533
56533
  // packages/cli/src/generated/git-commit.ts
56534
- var GIT_COMMIT_INFO = "3a13b8eeb";
56534
+ var GIT_COMMIT_INFO = "4e10a34be";
56535
56535
 
56536
56536
  // packages/cli/src/ui/utils/historyExportUtils.ts
56537
56537
  import * as fsPromises from "node:fs/promises";
@@ -62312,7 +62312,7 @@ Use /mcp auth <server-name> to authenticate.`
62312
62312
  type: "info",
62313
62313
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62314
62314
  });
62315
- const { MCPOAuthProvider } = await import("./core-BQT7VCTF.js");
62315
+ const { MCPOAuthProvider } = await import("./core-SBDR7NMV.js");
62316
62316
  let oauthConfig = server.oauth;
62317
62317
  if (!oauthConfig) {
62318
62318
  oauthConfig = { enabled: false };
@@ -1,13 +1,13 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-OFDHSTZY.js";
4
+ } from "./chunk-TMB2KDVR.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-67CFYGDY.js";
10
+ } from "./chunk-GSKH763B.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";