@google/gemini-cli 0.49.0-nightly.20260625.gd845bc5d4 → 0.49.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 (66) hide show
  1. package/bundle/{chunk-DQARXBEA.js → chunk-2KPOY3PT.js} +1 -1
  2. package/bundle/{chunk-GP3HT3XA.js → chunk-5D76V46E.js} +1 -1
  3. package/bundle/{chunk-W4CY6ZAV.js → chunk-6SAPFKW2.js} +7 -7
  4. package/bundle/{chunk-KZTYIR7T.js → chunk-DG2DMXNL.js} +4 -4
  5. package/bundle/{chunk-M3LLLH4Q.js → chunk-DUXXYDOU.js} +14099 -7557
  6. package/bundle/{chunk-VFEUUHDP.js → chunk-GD7RCEFJ.js} +1 -1
  7. package/bundle/{chunk-Z7VJ5D2F.js → chunk-HHBELWTD.js} +1 -1
  8. package/bundle/{chunk-2H7H7LHE.js → chunk-KUPS66EC.js} +1 -1
  9. package/bundle/{chunk-ZUVD4OMS.js → chunk-KVKWITLW.js} +1 -1
  10. package/bundle/{chunk-CZXPXLF4.js → chunk-LJT2N46V.js} +2 -2
  11. package/bundle/{chunk-KEKQ7HNE.js → chunk-MT2PHBHF.js} +54 -67
  12. package/bundle/{chunk-6WLO7RJO.js → chunk-O3DZHA75.js} +3 -3
  13. package/bundle/{chunk-N6JHSW2E.js → chunk-QJ52LUEZ.js} +1 -1
  14. package/bundle/{chunk-PGI5U4RD.js → chunk-RWFC7SH2.js} +8 -9
  15. package/bundle/{chunk-LZSQIPID.js → chunk-SWRFLYQS.js} +3 -3
  16. package/bundle/{chunk-D7ASGNGV.js → chunk-THSPF7UM.js} +7 -7
  17. package/bundle/{chunk-JNWGPSWO.js → chunk-UTCNY4YR.js} +1 -1
  18. package/bundle/{chunk-4ZKDF6RJ.js → chunk-UXLDTYS5.js} +1 -1
  19. package/bundle/{chunk-LHQTFC5V.js → chunk-V33X6KEX.js} +2 -2
  20. package/bundle/{chunk-IH4N7SHL.js → chunk-VLV2BYPM.js} +4 -4
  21. package/bundle/{chunk-5VDCISGZ.js → chunk-VSVATFSS.js} +2 -2
  22. package/bundle/{chunk-NSCBFJB5.js → chunk-WDIGNHW2.js} +5 -8
  23. package/bundle/{chunk-DVXL5G45.js → chunk-YAWAHLTJ.js} +1 -1
  24. package/bundle/{chunk-SM66ZQJE.js → chunk-YP5PXUYC.js} +3 -3
  25. package/bundle/{cleanup-7ZAS2HJC.js → cleanup-J3QILUCY.js} +2 -2
  26. package/bundle/{cleanup-OWDILGDO.js → cleanup-UIXA2GEB.js} +2 -2
  27. package/bundle/{cleanup-UAXXCVMU.js → cleanup-YMPS4FUE.js} +2 -2
  28. package/bundle/{core-U7XFRGTW.js → core-64JIIVRX.js} +1 -1
  29. package/bundle/{dist-5MIUEMAQ.js → core-ELQDFBG3.js} +1 -1
  30. package/bundle/{devtoolsService-5OSGJYDS.js → devtoolsService-HCHZ2F6P.js} +2 -2
  31. package/bundle/{devtoolsService-6LH5MZBL.js → devtoolsService-HSYIYY4G.js} +3 -4
  32. package/bundle/{devtoolsService-6HAVTQZ5.js → devtoolsService-YX6EFIXG.js} +2 -2
  33. package/bundle/{dist-B6J3QDWI.js → dist-CLCQE7YY.js} +1 -1
  34. package/bundle/{gemini-H6TAAPCA.js → gemini-APNDCIQH.js} +196 -212
  35. package/bundle/{gemini-6SJTD2W4.js → gemini-FSMCKCVD.js} +14 -14
  36. package/bundle/{gemini-3BRU2HQK.js → gemini-MHDYPMBW.js} +13 -13
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-B6MSN4C4.js → interactiveCli-4GI574PD.js} +8 -8
  39. package/bundle/{interactiveCli-KOS354WR.js → interactiveCli-PM57R35K.js} +295 -314
  40. package/bundle/{interactiveCli-BS2D2SBI.js → interactiveCli-PR7HIXJT.js} +8 -8
  41. package/bundle/{liteRtServerManager-FWHYC4A3.js → liteRtServerManager-IXIJTRUX.js} +4 -4
  42. package/bundle/{liteRtServerManager-HIIW3S66.js → liteRtServerManager-SRAMJKDM.js} +4 -4
  43. package/bundle/{liteRtServerManager-M7B3AIIU.js → liteRtServerManager-TYKWESZG.js} +4 -4
  44. package/bundle/{oauth2-provider-RILC6FBL.js → oauth2-provider-4UAT62TZ.js} +1 -1
  45. package/bundle/{oauth2-provider-G7I2PMHS.js → oauth2-provider-I7ZHNJPU.js} +72 -38
  46. package/bundle/{oauth2-provider-EA2VTAQO.js → oauth2-provider-UU4JM5RG.js} +1 -1
  47. package/bundle/{start-AVLVGFFA.js → start-C5MXXCE7.js} +6 -6
  48. package/bundle/{start-CCQWWAKJ.js → start-RIHKQGGY.js} +6 -6
  49. package/bundle/{start-FI6MCT26.js → start-W4HQTHNO.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-6VICSAQD.js +0 -154
  52. package/bundle/chunk-EB5KWRK7.js +0 -512
  53. package/bundle/chunk-IP2NI6CQ.js +0 -398
  54. package/bundle/chunk-M43EUC7R.js +0 -1571
  55. package/bundle/chunk-P3C2ZDOD.js +0 -102505
  56. package/bundle/chunk-SSMJN6LA.js +0 -387674
  57. package/bundle/chunk-TNS2COLB.js +0 -17332
  58. package/bundle/chunk-YNU56L7B.js +0 -118
  59. package/bundle/cleanup-VF75F443.js +0 -32
  60. package/bundle/devtoolsService-OV63XS6S.js +0 -4359
  61. package/bundle/dist-GPCVSENP.js +0 -2150
  62. package/bundle/gemini-R6VOKNQ4.js +0 -29270
  63. package/bundle/interactiveCli-HSHPW4IB.js +0 -34767
  64. package/bundle/liteRtServerManager-ZMLRN3HQ.js +0 -65
  65. package/bundle/oauth2-provider-KED65L5Q.js +0 -235
  66. package/bundle/start-OOI6CRQA.js +0 -18
@@ -28,7 +28,7 @@ import {
28
28
  partListUnionToString,
29
29
  require_strip_json_comments,
30
30
  sanitizeFilenamePart
31
- } from "./chunk-KZTYIR7T.js";
31
+ } from "./chunk-DUXXYDOU.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-IH4N7SHL.js";
8
+ } from "./chunk-DG2DMXNL.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-N6JHSW2E.js";
4
+ } from "./chunk-KVKWITLW.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-KZTYIR7T.js";
8
+ } from "./chunk-VLV2BYPM.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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-6VICSAQD.js";
4
+ } from "./chunk-QJ52LUEZ.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-M3LLLH4Q.js";
10
+ } from "./chunk-DUXXYDOU.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-M43EUC7R.js";
9
+ } from "./chunk-UXLDTYS5.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,22 +59,20 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-NSCBFJB5.js";
62
+ } from "./chunk-GD7RCEFJ.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-CZXPXLF4.js";
65
+ } from "./chunk-LJT2N46V.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-DQARXBEA.js";
69
+ } from "./chunk-5D76V46E.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
73
73
  AsyncFzf,
74
- AuthType,
75
74
  Config,
76
75
  CoreEvent,
77
- CoreToolCallStatus,
78
76
  DiscoveredMCPTool,
79
77
  ExtensionDisableEvent,
80
78
  ExtensionEnableEvent,
@@ -85,31 +83,20 @@ import {
85
83
  ExtensionUpdateEvent,
86
84
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
87
85
  GEMINI_DIR,
88
- HookType,
89
- IDEConnectionStatus,
90
86
  INITIAL_HISTORY_LENGTH,
91
87
  IdeClient,
92
88
  IdeConnectionEvent,
93
- IdeConnectionType,
94
- IntegrityDataStatus,
95
89
  KeychainTokenStorage,
96
- LlmRole,
97
- MCPDiscoveryState,
98
90
  MCPOAuthTokenStorage,
99
- MCPServerStatus,
100
91
  ModelSlashCommandEvent,
101
- PolicyDecision,
102
92
  ProjectIdRequiredError,
103
93
  REFERENCE_CONTENT_END,
104
94
  REFERENCE_CONTENT_START,
105
95
  ReadManyFilesTool,
106
96
  RewindEvent,
107
- SessionEndReason,
108
- SessionStartSource,
109
97
  ShellExecutionService,
110
98
  StartSessionEvent,
111
99
  Storage,
112
- TrustLevel,
113
100
  UPGRADE_URL_PAGE,
114
101
  UserAccountManager,
115
102
  ValidationRequiredError,
@@ -243,7 +230,7 @@ import {
243
230
  tokenLimit,
244
231
  uiTelemetryService,
245
232
  unescapePath
246
- } from "./chunk-M3LLLH4Q.js";
233
+ } from "./chunk-DUXXYDOU.js";
247
234
  import {
248
235
  require_src
249
236
  } from "./chunk-TUDYL3X4.js";
@@ -60089,7 +60076,7 @@ var import_react34 = __toESM(require_react(), 1);
60089
60076
  function useIdeTrustListener() {
60090
60077
  const settings = useSettings();
60091
60078
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
60092
- IDEConnectionStatus.Disconnected
60079
+ "disconnected" /* Disconnected */
60093
60080
  );
60094
60081
  const previousTrust = (0, import_react34.useRef)(void 0);
60095
60082
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -60119,7 +60106,7 @@ function useIdeTrustListener() {
60119
60106
  };
60120
60107
  }, []);
60121
60108
  const getSnapshot = () => {
60122
- if (connectionStatus !== IDEConnectionStatus.Connected) {
60109
+ if (connectionStatus !== "connected" /* Connected */) {
60123
60110
  return void 0;
60124
60111
  }
60125
60112
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -60824,7 +60811,7 @@ async function initializeApp(config, settings) {
60824
60811
  await ideClient.connect();
60825
60812
  logIdeConnection(
60826
60813
  config,
60827
- new IdeConnectionEvent(IdeConnectionType.START)
60814
+ new IdeConnectionEvent("start" /* START */)
60828
60815
  );
60829
60816
  }).catch((e) => {
60830
60817
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -60842,17 +60829,17 @@ async function initializeApp(config, settings) {
60842
60829
  // packages/cli/src/config/auth.ts
60843
60830
  async function validateAuthMethod(authMethod) {
60844
60831
  loadEnvironment(loadSettings().merged, process.cwd());
60845
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
60832
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
60846
60833
  return null;
60847
60834
  }
60848
- if (authMethod === AuthType.USE_GEMINI) {
60835
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
60849
60836
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
60850
60837
  if (!key) {
60851
60838
  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)!";
60852
60839
  }
60853
60840
  return null;
60854
60841
  }
60855
- if (authMethod === AuthType.USE_VERTEX_AI) {
60842
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
60856
60843
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
60857
60844
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
60858
60845
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -65279,7 +65266,7 @@ var ExtensionManager = class extends ExtensionLoader {
65279
65266
  const trustedFolders = loadTrustedFolders();
65280
65267
  await trustedFolders.setValue(
65281
65268
  this.workspaceDir,
65282
- TrustLevel.TRUST_FOLDER
65269
+ "TRUST_FOLDER" /* TRUST_FOLDER */
65283
65270
  );
65284
65271
  } else {
65285
65272
  throw new Error(
@@ -65465,7 +65452,7 @@ Would you like to attempt to install via "git clone" instead?`
65465
65452
  newExtensionConfig.version,
65466
65453
  previousExtensionConfig.version,
65467
65454
  installMetadata.type,
65468
- CoreToolCallStatus.Success
65455
+ "success" /* Success */
65469
65456
  )
65470
65457
  );
65471
65458
  if (newExtensionName !== previousName) {
@@ -65488,7 +65475,7 @@ Would you like to attempt to install via "git clone" instead?`
65488
65475
  getExtensionId(newExtensionConfig, installMetadata),
65489
65476
  newExtensionConfig.version,
65490
65477
  installMetadata.type,
65491
- CoreToolCallStatus.Success
65478
+ "success" /* Success */
65492
65479
  )
65493
65480
  );
65494
65481
  await this.enableExtension(
@@ -65521,7 +65508,7 @@ Would you like to attempt to install via "git clone" instead?`
65521
65508
  newExtensionConfig?.version ?? "",
65522
65509
  previousExtensionConfig.version,
65523
65510
  installMetadata.type,
65524
- CoreToolCallStatus.Error
65511
+ "error" /* Error */
65525
65512
  )
65526
65513
  );
65527
65514
  } else {
@@ -65533,7 +65520,7 @@ Would you like to attempt to install via "git clone" instead?`
65533
65520
  extensionId ?? "",
65534
65521
  newExtensionConfig?.version ?? "",
65535
65522
  installMetadata.type,
65536
- CoreToolCallStatus.Error
65523
+ "error" /* Error */
65537
65524
  )
65538
65525
  );
65539
65526
  }
@@ -65564,7 +65551,7 @@ Would you like to attempt to install via "git clone" instead?`
65564
65551
  extension.name,
65565
65552
  hashValue(extension.name),
65566
65553
  extension.id,
65567
- CoreToolCallStatus.Success
65554
+ "success" /* Success */
65568
65555
  )
65569
65556
  );
65570
65557
  }
@@ -65834,7 +65821,7 @@ Would you like to attempt to install via "git clone" instead?`
65834
65821
  if (eventHooks) {
65835
65822
  for (const definition of eventHooks) {
65836
65823
  for (const hook of definition.hooks) {
65837
- if (hook.type === HookType.Command) {
65824
+ if (hook.type === "command" /* Command */) {
65838
65825
  hook.env = { ...hook.env, ...hookEnv };
65839
65826
  }
65840
65827
  }
@@ -66865,7 +66852,7 @@ async function readMcpResources(resourceParts, config, signal) {
66865
66852
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
66866
66853
  name: `resources/read (${resource.serverName})`,
66867
66854
  description: resource.uri,
66868
- status: CoreToolCallStatus.Success,
66855
+ status: "success" /* Success */,
66869
66856
  isClientInitiated: true,
66870
66857
  resultDisplay: `Successfully read resource ${resource.uri}`,
66871
66858
  confirmationDetails: void 0
@@ -66880,7 +66867,7 @@ async function readMcpResources(resourceParts, config, signal) {
66880
66867
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
66881
66868
  name: `resources/read (${resource.serverName})`,
66882
66869
  description: resource.uri,
66883
- status: CoreToolCallStatus.Error,
66870
+ status: "error" /* Error */,
66884
66871
  isClientInitiated: true,
66885
66872
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
66886
66873
  confirmationDetails: void 0
@@ -66905,7 +66892,7 @@ Content from @${result.uri}:
66905
66892
  }
66906
66893
  if (hasError) {
66907
66894
  const firstError = displays.find(
66908
- (d) => d.status === CoreToolCallStatus.Error
66895
+ (d) => d.status === "error" /* Error */
66909
66896
  );
66910
66897
  return {
66911
66898
  parts: [],
@@ -66946,7 +66933,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
66946
66933
  callId: `client-read-${userMessageTimestamp}`,
66947
66934
  name: readManyFilesTool.displayName,
66948
66935
  description: invocation.getDescription(),
66949
- status: CoreToolCallStatus.Success,
66936
+ status: "success" /* Success */,
66950
66937
  isClientInitiated: true,
66951
66938
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
66952
66939
  confirmationDetails: void 0
@@ -66993,7 +66980,7 @@ Content from @${displayPath}:
66993
66980
  callId: `client-read-${userMessageTimestamp}`,
66994
66981
  name: readManyFilesTool.displayName,
66995
66982
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
66996
- status: CoreToolCallStatus.Error,
66983
+ status: "error" /* Error */,
66997
66984
  isClientInitiated: true,
66998
66985
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
66999
66986
  confirmationDetails: void 0
@@ -70260,7 +70247,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
70260
70247
  if (wasRaw) {
70261
70248
  setRawMode?.(true);
70262
70249
  }
70263
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
70250
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
70264
70251
  }
70265
70252
  }
70266
70253
 
@@ -72955,7 +72942,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
72955
72942
  extension.name,
72956
72943
  installMetadata
72957
72944
  );
72958
- if (status === IntegrityDataStatus.INVALID) {
72945
+ if (status === "invalid" /* INVALID */) {
72959
72946
  throw new Error("Extension integrity cannot be verified");
72960
72947
  }
72961
72948
  } catch (e) {
@@ -74376,11 +74363,11 @@ var ShellProcessor = class {
74376
74363
  },
74377
74364
  void 0
74378
74365
  );
74379
- if (decision === PolicyDecision.DENY) {
74366
+ if (decision === "deny" /* DENY */) {
74380
74367
  throw new Error(
74381
74368
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
74382
74369
  );
74383
- } else if (decision === PolicyDecision.ASK_USER) {
74370
+ } else if (decision === "ask_user" /* ASK_USER */) {
74384
74371
  commandsToConfirm.add(command);
74385
74372
  }
74386
74373
  }
@@ -75498,7 +75485,7 @@ var MultiFolderTrustDialog = ({
75498
75485
  if (choice === 1 /* YES_AND_REMEMBER */) {
75499
75486
  await trustedFolders.setValue(
75500
75487
  expandedPath,
75501
- TrustLevel.TRUST_FOLDER
75488
+ "TRUST_FOLDER" /* TRUST_FOLDER */
75502
75489
  );
75503
75490
  }
75504
75491
  workspaceContext.addDirectory(expandedPath);
@@ -77176,7 +77163,7 @@ var authCommand = {
77176
77163
  import process29 from "node:process";
77177
77164
 
77178
77165
  // packages/cli/src/generated/git-commit.ts
77179
- var GIT_COMMIT_INFO = "d845bc5d4";
77166
+ var GIT_COMMIT_INFO = "6e0bd68e4";
77180
77167
 
77181
77168
  // packages/cli/src/ui/utils/historyExportUtils.ts
77182
77169
  import * as fsPromises from "node:fs/promises";
@@ -77822,7 +77809,7 @@ var clearCommand = {
77822
77809
  const config = context.services.agentContext?.config;
77823
77810
  const hookSystem = config?.getHookSystem();
77824
77811
  if (hookSystem) {
77825
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
77812
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
77826
77813
  }
77827
77814
  config?.injectionService.clear();
77828
77815
  let newSessionId;
@@ -77839,7 +77826,7 @@ var clearCommand = {
77839
77826
  }
77840
77827
  let result;
77841
77828
  if (hookSystem) {
77842
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
77829
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
77843
77830
  }
77844
77831
  await new Promise((resolve9) => setImmediate(resolve9));
77845
77832
  if (config) {
@@ -80838,7 +80825,7 @@ var Footer = () => {
80838
80825
  case "auth": {
80839
80826
  if (!settings.merged.ui.showUserIdentity) break;
80840
80827
  if (!authType) break;
80841
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
80828
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
80842
80829
  addCol(
80843
80830
  id,
80844
80831
  header,
@@ -82606,12 +82593,12 @@ import path29 from "node:path";
82606
82593
  function getIdeStatusMessage(ideClient) {
82607
82594
  const connection = ideClient.getConnectionStatus();
82608
82595
  switch (connection.status) {
82609
- case IDEConnectionStatus.Connected:
82596
+ case "connected" /* Connected */:
82610
82597
  return {
82611
82598
  messageType: "info",
82612
82599
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
82613
82600
  };
82614
- case IDEConnectionStatus.Connecting:
82601
+ case "connecting" /* Connecting */:
82615
82602
  return {
82616
82603
  messageType: "info",
82617
82604
  content: `\u{1F7E1} Connecting...`
@@ -82652,7 +82639,7 @@ ${infoMessage}`;
82652
82639
  async function getIdeStatusMessageWithFiles(ideClient) {
82653
82640
  const connection = ideClient.getConnectionStatus();
82654
82641
  switch (connection.status) {
82655
- case IDEConnectionStatus.Connected: {
82642
+ case "connected" /* Connected */: {
82656
82643
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
82657
82644
  const context = ideContextStore.get();
82658
82645
  const openFiles = context?.workspaceState?.openFiles;
@@ -82664,7 +82651,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
82664
82651
  content
82665
82652
  };
82666
82653
  }
82667
- case IDEConnectionStatus.Connecting:
82654
+ case "connecting" /* Connecting */:
82668
82655
  return {
82669
82656
  messageType: "info",
82670
82657
  content: `\u{1F7E1} Connecting...`
@@ -82686,7 +82673,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
82686
82673
  const ideClient = await IdeClient.getInstance();
82687
82674
  if (value) {
82688
82675
  await ideClient.connect(options);
82689
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
82676
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
82690
82677
  } else {
82691
82678
  await ideClient.disconnect();
82692
82679
  }
@@ -82774,7 +82761,7 @@ var ideCommand = async () => {
82774
82761
  logToConsole: false
82775
82762
  }
82776
82763
  );
82777
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
82764
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
82778
82765
  break;
82779
82766
  }
82780
82767
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -82851,7 +82838,7 @@ var ideCommand = async () => {
82851
82838
  }
82852
82839
  };
82853
82840
  const { status } = ideClient.getConnectionStatus();
82854
- const isConnected = status === IDEConnectionStatus.Connected;
82841
+ const isConnected = status === "connected" /* Connected */;
82855
82842
  if (isConnected) {
82856
82843
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
82857
82844
  } else {
@@ -82951,13 +82938,13 @@ Use /mcp auth <server-name> to authenticate.`
82951
82938
  const displayListener = (message) => {
82952
82939
  context.ui.addItem({ type: "info", text: message });
82953
82940
  };
82954
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
82941
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82955
82942
  try {
82956
82943
  context.ui.addItem({
82957
82944
  type: "info",
82958
82945
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82959
82946
  });
82960
- const { MCPOAuthProvider } = await import("./dist-5MIUEMAQ.js");
82947
+ const { MCPOAuthProvider } = await import("./core-ELQDFBG3.js");
82961
82948
  let oauthConfig = server.oauth;
82962
82949
  if (!oauthConfig) {
82963
82950
  oauthConfig = { enabled: false };
@@ -82994,7 +82981,7 @@ Use /mcp auth <server-name> to authenticate.`
82994
82981
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
82995
82982
  };
82996
82983
  } finally {
82997
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
82984
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82998
82985
  }
82999
82986
  },
83000
82987
  completion: async (context, partialArg) => {
@@ -83040,10 +83027,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
83040
83027
  }
83041
83028
  const serverNames = Object.keys(mcpServers);
83042
83029
  const connectingServers = serverNames.filter(
83043
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
83030
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
83044
83031
  );
83045
83032
  const discoveryState = getMCPDiscoveryState();
83046
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
83033
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
83047
83034
  const allTools = toolRegistry.getAllTools();
83048
83035
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
83049
83036
  const promptRegistry = config.getPromptRegistry();
@@ -98802,7 +98789,7 @@ Return a JSON object with:
98802
98789
  },
98803
98790
  abortSignal: new AbortController().signal,
98804
98791
  promptId: "triage-duplicates",
98805
- role: LlmRole.UTILITY_TOOL
98792
+ role: "utility_tool" /* UTILITY_TOOL */
98806
98793
  });
98807
98794
  const rec = response;
98808
98795
  let canonical;
@@ -99636,7 +99623,7 @@ Return a JSON object with:
99636
99623
  },
99637
99624
  abortSignal: abortControllerRef.current.signal,
99638
99625
  promptId: "triage-issues",
99639
- role: LlmRole.UTILITY_TOOL
99626
+ role: "utility_tool" /* UTILITY_TOOL */
99640
99627
  });
99641
99628
  return response;
99642
99629
  },
@@ -100210,8 +100197,8 @@ var planCommand = {
100210
100197
  return;
100211
100198
  }
100212
100199
  const previousApprovalMode = config.getApprovalMode();
100213
- config.setApprovalMode(ApprovalMode.PLAN);
100214
- if (previousApprovalMode !== ApprovalMode.PLAN) {
100200
+ config.setApprovalMode("plan" /* PLAN */);
100201
+ if (previousApprovalMode !== "plan" /* PLAN */) {
100215
100202
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
100216
100203
  }
100217
100204
  if (context.invocation?.args) {
@@ -100270,10 +100257,10 @@ var categorizeRulesByMode = (rules) => {
100270
100257
  rules.forEach((rule) => {
100271
100258
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
100272
100259
  const modeSet = new Set(modes);
100273
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
100274
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
100275
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
100276
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
100260
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
100261
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
100262
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
100263
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
100277
100264
  });
100278
100265
  return result;
100279
100266
  };
@@ -101654,7 +101641,7 @@ var upgradeCommand = {
101654
101641
  action: async (context) => {
101655
101642
  const config = context.services.agentContext?.config;
101656
101643
  const authType = config?.getContentGeneratorConfig()?.authType;
101657
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
101644
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
101658
101645
  return {
101659
101646
  type: "message",
101660
101647
  messageType: "error",
@@ -101883,7 +101870,7 @@ var BuiltinCommandLoader = class {
101883
101870
  setupGithubCommand,
101884
101871
  terminalSetupCommand,
101885
101872
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
101886
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
101873
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
101887
101874
  ];
101888
101875
  handle?.end();
101889
101876
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -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-2H7H7LHE.js";
5
+ } from "./chunk-KUPS66EC.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-JNWGPSWO.js";
17
+ } from "./chunk-UTCNY4YR.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-SSMJN6LA.js";
20
+ } from "./chunk-VLV2BYPM.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-SSMJN6LA.js";
8
+ } from "./chunk-DUXXYDOU.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,8 +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
- CoreToolCallStatus,
4
3
  checkExhaustive
5
- } from "./chunk-SSMJN6LA.js";
4
+ } from "./chunk-DG2DMXNL.js";
6
5
  import {
7
6
  __commonJS,
8
7
  __toESM
@@ -465,19 +464,19 @@ var require_react = __commonJS({
465
464
  var import_react = __toESM(require_react(), 1);
466
465
  function mapCoreStatusToDisplayStatus(coreStatus) {
467
466
  switch (coreStatus) {
468
- case CoreToolCallStatus.Validating:
467
+ case "validating" /* Validating */:
469
468
  return "Pending" /* Pending */;
470
- case CoreToolCallStatus.AwaitingApproval:
469
+ case "awaiting_approval" /* AwaitingApproval */:
471
470
  return "Confirming" /* Confirming */;
472
- case CoreToolCallStatus.Executing:
471
+ case "executing" /* Executing */:
473
472
  return "Executing" /* Executing */;
474
- case CoreToolCallStatus.Success:
473
+ case "success" /* Success */:
475
474
  return "Success" /* Success */;
476
- case CoreToolCallStatus.Cancelled:
475
+ case "cancelled" /* Cancelled */:
477
476
  return "Canceled" /* Canceled */;
478
- case CoreToolCallStatus.Error:
477
+ case "error" /* Error */:
479
478
  return "Error" /* Error */;
480
- case CoreToolCallStatus.Scheduled:
479
+ case "scheduled" /* Scheduled */:
481
480
  return "Pending" /* Pending */;
482
481
  default:
483
482
  return checkExhaustive(coreStatus);
@@ -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-M43EUC7R.js";
5
+ } from "./chunk-UXLDTYS5.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-NSCBFJB5.js";
17
+ } from "./chunk-GD7RCEFJ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-M3LLLH4Q.js";
20
+ } from "./chunk-DUXXYDOU.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-4ZKDF6RJ.js";
9
+ } from "./chunk-KUPS66EC.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,14 +59,14 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-TNS2COLB.js";
62
+ } from "./chunk-UTCNY4YR.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-IP2NI6CQ.js";
65
+ } from "./chunk-V33X6KEX.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-EB5KWRK7.js";
69
+ } from "./chunk-2KPOY3PT.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-IH4N7SHL.js";
246
+ } from "./chunk-VLV2BYPM.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -77176,7 +77176,7 @@ var authCommand = {
77176
77176
  import process29 from "node:process";
77177
77177
 
77178
77178
  // packages/cli/src/generated/git-commit.ts
77179
- var GIT_COMMIT_INFO = "d845bc5d4";
77179
+ var GIT_COMMIT_INFO = "5d402f89f";
77180
77180
 
77181
77181
  // packages/cli/src/ui/utils/historyExportUtils.ts
77182
77182
  import * as fsPromises from "node:fs/promises";
@@ -82957,7 +82957,7 @@ Use /mcp auth <server-name> to authenticate.`
82957
82957
  type: "info",
82958
82958
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82959
82959
  });
82960
- const { MCPOAuthProvider } = await import("./dist-GPCVSENP.js");
82960
+ const { MCPOAuthProvider } = await import("./dist-CLCQE7YY.js");
82961
82961
  let oauthConfig = server.oauth;
82962
82962
  if (!oauthConfig) {
82963
82963
  oauthConfig = { enabled: false };
@@ -31,7 +31,7 @@ import {
31
31
  partListUnionToString,
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart
34
- } from "./chunk-SSMJN6LA.js";
34
+ } from "./chunk-VLV2BYPM.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __require,