@google/gemini-cli 0.39.0-preview.2 → 0.39.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 (39) hide show
  1. package/bundle/{chunk-TKGFTY3B.js → chunk-3YUTTNJ7.js} +4 -4
  2. package/bundle/{chunk-3R2FLB3Z.js → chunk-5GTZHSZV.js} +4 -4
  3. package/bundle/{chunk-N3GUGFOL.js → chunk-6NW5RNNH.js} +60 -72
  4. package/bundle/{chunk-AZ7QQWNX.js → chunk-BL3XXS2L.js} +1 -1
  5. package/bundle/{chunk-QC6EGBZW.js → chunk-LUWQB4AS.js} +1 -1
  6. package/bundle/{chunk-GX4YOB7T.js → chunk-NWD4JYMB.js} +4 -4
  7. package/bundle/{chunk-4UUOHXDW.js → chunk-RTKRL6Y5.js} +11669 -6238
  8. package/bundle/{chunk-OXCH4FS3.js → chunk-UQGLVPZQ.js} +4 -4
  9. package/bundle/{chunk-45GIY5RT.js → chunk-YYY7NKKR.js} +2 -2
  10. package/bundle/{cleanup-6N6E742H.js → cleanup-3LELZME2.js} +2 -2
  11. package/bundle/{cleanup-3EICKDDN.js → cleanup-JJEXOHOA.js} +2 -2
  12. package/bundle/{cleanup-4SLYOL44.js → cleanup-TTGHQXQN.js} +3 -3
  13. package/bundle/{core-KLYK3V6Z.js → core-LKKLDF4Z.js} +1 -1
  14. package/bundle/{dist-P4XAO4SC.js → core-Z2SYVMM5.js} +2 -2
  15. package/bundle/{devtoolsService-X4577PYZ.js → devtoolsService-H64VB4IA.js} +2 -2
  16. package/bundle/{devtoolsService-FS7WXGBF.js → devtoolsService-L5LFSMIR.js} +2 -2
  17. package/bundle/{devtoolsService-K4DENTYF.js → devtoolsService-UQCUIXV5.js} +4 -5
  18. package/bundle/{dist-5ET5G5PC.js → dist-FWHS5IHN.js} +1 -1
  19. package/bundle/{gemini-6GWCDHXK.js → gemini-BI2PCDUT.js} +8 -8
  20. package/bundle/{gemini-NBKLSVA3.js → gemini-CMXEUOSI.js} +169 -184
  21. package/bundle/{gemini-FLGPH5GJ.js → gemini-YNLABPKW.js} +8 -8
  22. package/bundle/gemini.js +3 -3
  23. package/bundle/{interactiveCli-AGSLCKNH.js → interactiveCli-C46TDPVW.js} +4 -4
  24. package/bundle/{interactiveCli-NAPN3E2K.js → interactiveCli-LXXBYVNU.js} +258 -275
  25. package/bundle/{interactiveCli-H3NLGP7Z.js → interactiveCli-P35Q3KZ2.js} +4 -4
  26. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  27. package/bundle/{oauth2-provider-CWUR5RGE.js → oauth2-provider-7ZDLUOSM.js} +1 -1
  28. package/bundle/{oauth2-provider-YKYTKUWD.js → oauth2-provider-CRWFOXYR.js} +1 -1
  29. package/bundle/{oauth2-provider-EA452S4C.js → oauth2-provider-FEM5AIRT.js} +73 -39
  30. package/package.json +1 -1
  31. package/bundle/chunk-5J5LWISO.js +0 -360288
  32. package/bundle/chunk-RTX4LTWK.js +0 -101702
  33. package/bundle/chunk-SS4CWRZ5.js +0 -156
  34. package/bundle/cleanup-OG2MXKZ7.js +0 -33
  35. package/bundle/devtoolsService-RLXZWLDT.js +0 -871
  36. package/bundle/dist-DQVXGLSO.js +0 -2010
  37. package/bundle/gemini-YOFQ5KF4.js +0 -15321
  38. package/bundle/interactiveCli-TCZBSTKU.js +0 -34493
  39. package/bundle/oauth2-provider-LV6VPYTU.js +0 -237
@@ -251823,8 +251823,8 @@ import { createHash } from "node:crypto";
251823
251823
  import * as os12 from "node:os";
251824
251824
 
251825
251825
  // packages/core/src/generated/git-commit.ts
251826
- var GIT_COMMIT_INFO = "23f55e0d1";
251827
- var CLI_VERSION = "0.39.0-preview.1";
251826
+ var GIT_COMMIT_INFO = "a70149e15";
251827
+ var CLI_VERSION = "0.39.0-preview.2";
251828
251828
 
251829
251829
  // packages/core/src/ide/detect-ide.ts
251830
251830
  var IDE_DEFINITIONS = {
@@ -278794,7 +278794,7 @@ function getVersion() {
278794
278794
  }
278795
278795
  versionPromise = (async () => {
278796
278796
  const pkgJson = await getPackageJson(__dirname4);
278797
- return "0.39.0-preview.1";
278797
+ return "0.39.0-preview.2";
278798
278798
  })();
278799
278799
  return versionPromise;
278800
278800
  }
@@ -320790,7 +320790,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
320790
320790
  return provider;
320791
320791
  }
320792
320792
  case "oauth2": {
320793
- const { OAuth2AuthProvider } = await import("./oauth2-provider-YKYTKUWD.js");
320793
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-CRWFOXYR.js");
320794
320794
  const provider = new OAuth2AuthProvider(
320795
320795
  authConfig,
320796
320796
  options.agentName ?? "unknown",
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-5PS3AYFU.js";
6
6
  import {
7
7
  runExitCleanup
8
- } from "./chunk-QC6EGBZW.js";
8
+ } from "./chunk-YYY7NKKR.js";
9
9
  import {
10
10
  AsyncFzf,
11
11
  AuthProviderType,
@@ -167,7 +167,7 @@ import {
167
167
  tokenLimit,
168
168
  uiTelemetryService,
169
169
  yellowBright
170
- } from "./chunk-TKGFTY3B.js";
170
+ } from "./chunk-3YUTTNJ7.js";
171
171
  import {
172
172
  ApprovalMode,
173
173
  CoreEvent,
@@ -76642,7 +76642,7 @@ var authCommand = {
76642
76642
  import process35 from "node:process";
76643
76643
 
76644
76644
  // packages/cli/src/generated/git-commit.ts
76645
- var GIT_COMMIT_INFO = "23f55e0d1";
76645
+ var GIT_COMMIT_INFO = "a70149e15";
76646
76646
 
76647
76647
  // packages/cli/src/ui/utils/historyExportUtils.ts
76648
76648
  import * as fsPromises2 from "node:fs/promises";
@@ -82126,7 +82126,7 @@ Use /mcp auth <server-name> to authenticate.`
82126
82126
  type: "info",
82127
82127
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82128
82128
  });
82129
- const { MCPOAuthProvider } = await import("./core-KLYK3V6Z.js");
82129
+ const { MCPOAuthProvider } = await import("./core-LKKLDF4Z.js");
82130
82130
  let oauthConfig = server.oauth;
82131
82131
  if (!oauthConfig) {
82132
82132
  oauthConfig = { enabled: false };
@@ -5,13 +5,11 @@ import {
5
5
  } from "./chunk-5PS3AYFU.js";
6
6
  import {
7
7
  runExitCleanup
8
- } from "./chunk-SS4CWRZ5.js";
8
+ } from "./chunk-LUWQB4AS.js";
9
9
  import {
10
10
  AsyncFzf,
11
11
  AuthProviderType,
12
- AuthType,
13
12
  Config,
14
- CoreToolCallStatus,
15
13
  DEFAULT_MODEL_CONFIGS,
16
14
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
17
15
  ExtensionDisableEvent,
@@ -22,26 +20,17 @@ import {
22
20
  ExtensionUninstallEvent,
23
21
  ExtensionUpdateEvent,
24
22
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
25
- HookType,
26
- IDEConnectionStatus,
27
23
  INITIAL_HISTORY_LENGTH,
28
24
  IdeClient,
29
25
  IdeConnectionEvent,
30
- IdeConnectionType,
31
- IntegrityDataStatus,
32
26
  KeychainTokenStorage,
33
- LlmRole,
34
- MCPDiscoveryState,
35
27
  MCPOAuthTokenStorage,
36
- MCPServerStatus,
37
28
  MaxBufferError,
38
29
  ModelSlashCommandEvent,
39
30
  ProjectIdRequiredError,
40
31
  ReadManyFilesTool,
41
32
  RewindEvent,
42
33
  SESSION_FILE_PREFIX,
43
- SessionEndReason,
44
- SessionStartSource,
45
34
  ShellExecutionService,
46
35
  StartSessionEvent,
47
36
  TOOL_OUTPUTS_DIR,
@@ -178,14 +167,13 @@ import {
178
167
  tokenLimit,
179
168
  uiTelemetryService,
180
169
  yellowBright
181
- } from "./chunk-5J5LWISO.js";
170
+ } from "./chunk-RTKRL6Y5.js";
182
171
  import {
183
172
  ApprovalMode,
184
173
  CoreEvent,
185
174
  DiscoveredMCPTool,
186
175
  FatalConfigError,
187
176
  GEMINI_DIR,
188
- PolicyDecision,
189
177
  REFERENCE_CONTENT_END,
190
178
  REFERENCE_CONTENT_START,
191
179
  Storage,
@@ -207,7 +195,7 @@ import {
207
195
  shortenPath,
208
196
  tildeifyPath,
209
197
  unescapePath
210
- } from "./chunk-67TFD6HC.js";
198
+ } from "./chunk-QM5IP3NK.js";
211
199
  import {
212
200
  __commonJS,
213
201
  __export,
@@ -31898,19 +31886,19 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), trustConfig,
31898
31886
  var import_react = __toESM(require_react(), 1);
31899
31887
  function mapCoreStatusToDisplayStatus(coreStatus) {
31900
31888
  switch (coreStatus) {
31901
- case CoreToolCallStatus.Validating:
31889
+ case "validating" /* Validating */:
31902
31890
  return "Pending" /* Pending */;
31903
- case CoreToolCallStatus.AwaitingApproval:
31891
+ case "awaiting_approval" /* AwaitingApproval */:
31904
31892
  return "Confirming" /* Confirming */;
31905
- case CoreToolCallStatus.Executing:
31893
+ case "executing" /* Executing */:
31906
31894
  return "Executing" /* Executing */;
31907
- case CoreToolCallStatus.Success:
31895
+ case "success" /* Success */:
31908
31896
  return "Success" /* Success */;
31909
- case CoreToolCallStatus.Cancelled:
31897
+ case "cancelled" /* Cancelled */:
31910
31898
  return "Canceled" /* Canceled */;
31911
- case CoreToolCallStatus.Error:
31899
+ case "error" /* Error */:
31912
31900
  return "Error" /* Error */;
31913
- case CoreToolCallStatus.Scheduled:
31901
+ case "scheduled" /* Scheduled */:
31914
31902
  return "Pending" /* Pending */;
31915
31903
  default:
31916
31904
  return checkExhaustive(coreStatus);
@@ -32495,7 +32483,7 @@ function convertSessionToHistoryFormats(messages) {
32495
32483
  args: tool.args,
32496
32484
  description: tool.description || "",
32497
32485
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
32498
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
32486
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
32499
32487
  resultDisplay: tool.resultDisplay,
32500
32488
  confirmationDetails: void 0
32501
32489
  }))
@@ -38244,8 +38232,8 @@ var LoadedSettings = class {
38244
38232
  // React will pass a listener fn into this subscribe fn
38245
38233
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
38246
38234
  subscribe(listener) {
38247
- coreEvents.on(CoreEvent.SettingsChanged, listener);
38248
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
38235
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
38236
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
38249
38237
  }
38250
38238
  getSnapshot() {
38251
38239
  return this._snapshot;
@@ -56392,7 +56380,7 @@ var import_react35 = __toESM(require_react(), 1);
56392
56380
  function useIdeTrustListener() {
56393
56381
  const settings = useSettings();
56394
56382
  const [connectionStatus, setConnectionStatus] = (0, import_react35.useState)(
56395
- IDEConnectionStatus.Disconnected
56383
+ "disconnected" /* Disconnected */
56396
56384
  );
56397
56385
  const previousTrust = (0, import_react35.useRef)(void 0);
56398
56386
  const [restartReason, setRestartReason] = (0, import_react35.useState)("NONE");
@@ -56422,7 +56410,7 @@ function useIdeTrustListener() {
56422
56410
  };
56423
56411
  }, []);
56424
56412
  const getSnapshot = () => {
56425
- if (connectionStatus !== IDEConnectionStatus.Connected) {
56413
+ if (connectionStatus !== "connected" /* Connected */) {
56426
56414
  return void 0;
56427
56415
  }
56428
56416
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -56808,7 +56796,7 @@ async function initializeApp(config, settings) {
56808
56796
  await ideClient.connect();
56809
56797
  logIdeConnection(
56810
56798
  config,
56811
- new IdeConnectionEvent(IdeConnectionType.START)
56799
+ new IdeConnectionEvent("start" /* START */)
56812
56800
  );
56813
56801
  }).catch((e) => {
56814
56802
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -56826,16 +56814,16 @@ async function initializeApp(config, settings) {
56826
56814
  // packages/cli/src/config/auth.ts
56827
56815
  function validateAuthMethod(authMethod) {
56828
56816
  loadEnvironment(loadSettings().merged, process.cwd());
56829
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
56817
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
56830
56818
  return null;
56831
56819
  }
56832
- if (authMethod === AuthType.USE_GEMINI) {
56820
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
56833
56821
  if (!process.env["GEMINI_API_KEY"]) {
56834
56822
  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)!";
56835
56823
  }
56836
56824
  return null;
56837
56825
  }
56838
- if (authMethod === AuthType.USE_VERTEX_AI) {
56826
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
56839
56827
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
56840
56828
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
56841
56829
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -66735,7 +66723,7 @@ Would you like to attempt to install via "git clone" instead?`
66735
66723
  newExtensionConfig.version,
66736
66724
  previousExtensionConfig.version,
66737
66725
  installMetadata.type,
66738
- CoreToolCallStatus.Success
66726
+ "success" /* Success */
66739
66727
  )
66740
66728
  );
66741
66729
  if (newExtensionName !== previousName) {
@@ -66758,7 +66746,7 @@ Would you like to attempt to install via "git clone" instead?`
66758
66746
  getExtensionId(newExtensionConfig, installMetadata),
66759
66747
  newExtensionConfig.version,
66760
66748
  installMetadata.type,
66761
- CoreToolCallStatus.Success
66749
+ "success" /* Success */
66762
66750
  )
66763
66751
  );
66764
66752
  await this.enableExtension(
@@ -66791,7 +66779,7 @@ Would you like to attempt to install via "git clone" instead?`
66791
66779
  newExtensionConfig?.version ?? "",
66792
66780
  previousExtensionConfig.version,
66793
66781
  installMetadata.type,
66794
- CoreToolCallStatus.Error
66782
+ "error" /* Error */
66795
66783
  )
66796
66784
  );
66797
66785
  } else {
@@ -66803,7 +66791,7 @@ Would you like to attempt to install via "git clone" instead?`
66803
66791
  extensionId ?? "",
66804
66792
  newExtensionConfig?.version ?? "",
66805
66793
  installMetadata.type,
66806
- CoreToolCallStatus.Error
66794
+ "error" /* Error */
66807
66795
  )
66808
66796
  );
66809
66797
  }
@@ -66834,7 +66822,7 @@ Would you like to attempt to install via "git clone" instead?`
66834
66822
  extension.name,
66835
66823
  hashValue(extension.name),
66836
66824
  extension.id,
66837
- CoreToolCallStatus.Success
66825
+ "success" /* Success */
66838
66826
  )
66839
66827
  );
66840
66828
  }
@@ -67104,7 +67092,7 @@ Would you like to attempt to install via "git clone" instead?`
67104
67092
  if (eventHooks) {
67105
67093
  for (const definition of eventHooks) {
67106
67094
  for (const hook of definition.hooks) {
67107
- if (hook.type === HookType.Command) {
67095
+ if (hook.type === "command" /* Command */) {
67108
67096
  hook.env = { ...hook.env, ...hookEnv };
67109
67097
  }
67110
67098
  }
@@ -67977,7 +67965,7 @@ async function readMcpResources(resourceParts, config, signal) {
67977
67965
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67978
67966
  name: `resources/read (${resource.serverName})`,
67979
67967
  description: resource.uri,
67980
- status: CoreToolCallStatus.Success,
67968
+ status: "success" /* Success */,
67981
67969
  isClientInitiated: true,
67982
67970
  resultDisplay: `Successfully read resource ${resource.uri}`,
67983
67971
  confirmationDetails: void 0
@@ -67992,7 +67980,7 @@ async function readMcpResources(resourceParts, config, signal) {
67992
67980
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67993
67981
  name: `resources/read (${resource.serverName})`,
67994
67982
  description: resource.uri,
67995
- status: CoreToolCallStatus.Error,
67983
+ status: "error" /* Error */,
67996
67984
  isClientInitiated: true,
67997
67985
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
67998
67986
  confirmationDetails: void 0
@@ -68017,7 +68005,7 @@ Content from @${result.uri}:
68017
68005
  }
68018
68006
  if (hasError) {
68019
68007
  const firstError = displays.find(
68020
- (d) => d.status === CoreToolCallStatus.Error
68008
+ (d) => d.status === "error" /* Error */
68021
68009
  );
68022
68010
  return {
68023
68011
  parts: [],
@@ -68053,7 +68041,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
68053
68041
  callId: `client-read-${userMessageTimestamp}`,
68054
68042
  name: readManyFilesTool.displayName,
68055
68043
  description: invocation.getDescription(),
68056
- status: CoreToolCallStatus.Success,
68044
+ status: "success" /* Success */,
68057
68045
  isClientInitiated: true,
68058
68046
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
68059
68047
  confirmationDetails: void 0
@@ -68100,7 +68088,7 @@ Content from @${displayPath}:
68100
68088
  callId: `client-read-${userMessageTimestamp}`,
68101
68089
  name: readManyFilesTool.displayName,
68102
68090
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
68103
- status: CoreToolCallStatus.Error,
68091
+ status: "error" /* Error */,
68104
68092
  isClientInitiated: true,
68105
68093
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
68106
68094
  confirmationDetails: void 0
@@ -71329,7 +71317,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
71329
71317
  if (wasRaw) {
71330
71318
  setRawMode?.(true);
71331
71319
  }
71332
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
71320
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
71333
71321
  }
71334
71322
  }
71335
71323
 
@@ -74009,7 +73997,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
74009
73997
  extension.name,
74010
73998
  installMetadata
74011
73999
  );
74012
- if (status === IntegrityDataStatus.INVALID) {
74000
+ if (status === "invalid" /* INVALID */) {
74013
74001
  throw new Error("Extension integrity cannot be verified");
74014
74002
  }
74015
74003
  } catch (e) {
@@ -76654,7 +76642,7 @@ var authCommand = {
76654
76642
  import process35 from "node:process";
76655
76643
 
76656
76644
  // packages/cli/src/generated/git-commit.ts
76657
- var GIT_COMMIT_INFO = "23f55e0d1";
76645
+ var GIT_COMMIT_INFO = "a70149e15";
76658
76646
 
76659
76647
  // packages/cli/src/ui/utils/historyExportUtils.ts
76660
76648
  import * as fsPromises2 from "node:fs/promises";
@@ -77167,7 +77155,7 @@ var clearCommand = {
77167
77155
  const config = context.services.agentContext?.config;
77168
77156
  const hookSystem = config?.getHookSystem();
77169
77157
  if (hookSystem) {
77170
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
77158
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
77171
77159
  }
77172
77160
  config?.injectionService.clear();
77173
77161
  let newSessionId;
@@ -77184,7 +77172,7 @@ var clearCommand = {
77184
77172
  }
77185
77173
  let result;
77186
77174
  if (hookSystem) {
77187
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
77175
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
77188
77176
  }
77189
77177
  await new Promise((resolve9) => setImmediate(resolve9));
77190
77178
  if (config) {
@@ -80040,7 +80028,7 @@ var Footer = () => {
80040
80028
  case "auth": {
80041
80029
  if (!settings.merged.ui.showUserIdentity) break;
80042
80030
  if (!authType) break;
80043
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
80031
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
80044
80032
  addCol(
80045
80033
  id,
80046
80034
  header,
@@ -81787,12 +81775,12 @@ import path34 from "node:path";
81787
81775
  function getIdeStatusMessage(ideClient) {
81788
81776
  const connection = ideClient.getConnectionStatus();
81789
81777
  switch (connection.status) {
81790
- case IDEConnectionStatus.Connected:
81778
+ case "connected" /* Connected */:
81791
81779
  return {
81792
81780
  messageType: "info",
81793
81781
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
81794
81782
  };
81795
- case IDEConnectionStatus.Connecting:
81783
+ case "connecting" /* Connecting */:
81796
81784
  return {
81797
81785
  messageType: "info",
81798
81786
  content: `\u{1F7E1} Connecting...`
@@ -81833,7 +81821,7 @@ ${infoMessage}`;
81833
81821
  async function getIdeStatusMessageWithFiles(ideClient) {
81834
81822
  const connection = ideClient.getConnectionStatus();
81835
81823
  switch (connection.status) {
81836
- case IDEConnectionStatus.Connected: {
81824
+ case "connected" /* Connected */: {
81837
81825
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
81838
81826
  const context = ideContextStore.get();
81839
81827
  const openFiles = context?.workspaceState?.openFiles;
@@ -81845,7 +81833,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
81845
81833
  content
81846
81834
  };
81847
81835
  }
81848
- case IDEConnectionStatus.Connecting:
81836
+ case "connecting" /* Connecting */:
81849
81837
  return {
81850
81838
  messageType: "info",
81851
81839
  content: `\u{1F7E1} Connecting...`
@@ -81867,7 +81855,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
81867
81855
  const ideClient = await IdeClient.getInstance();
81868
81856
  if (value) {
81869
81857
  await ideClient.connect(options);
81870
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
81858
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
81871
81859
  } else {
81872
81860
  await ideClient.disconnect();
81873
81861
  }
@@ -81955,7 +81943,7 @@ var ideCommand = async () => {
81955
81943
  logToConsole: false
81956
81944
  }
81957
81945
  );
81958
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
81946
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
81959
81947
  break;
81960
81948
  }
81961
81949
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -82032,7 +82020,7 @@ var ideCommand = async () => {
82032
82020
  }
82033
82021
  };
82034
82022
  const { status } = ideClient.getConnectionStatus();
82035
- const isConnected2 = status === IDEConnectionStatus.Connected;
82023
+ const isConnected2 = status === "connected" /* Connected */;
82036
82024
  if (isConnected2) {
82037
82025
  ideSlashCommand.subCommands = [statusCommand, disableCommand5];
82038
82026
  } else {
@@ -82132,13 +82120,13 @@ Use /mcp auth <server-name> to authenticate.`
82132
82120
  const displayListener = (message) => {
82133
82121
  context.ui.addItem({ type: "info", text: message });
82134
82122
  };
82135
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
82123
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82136
82124
  try {
82137
82125
  context.ui.addItem({
82138
82126
  type: "info",
82139
82127
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82140
82128
  });
82141
- const { MCPOAuthProvider } = await import("./dist-DQVXGLSO.js");
82129
+ const { MCPOAuthProvider } = await import("./core-Z2SYVMM5.js");
82142
82130
  let oauthConfig = server.oauth;
82143
82131
  if (!oauthConfig) {
82144
82132
  oauthConfig = { enabled: false };
@@ -82175,7 +82163,7 @@ Use /mcp auth <server-name> to authenticate.`
82175
82163
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
82176
82164
  };
82177
82165
  } finally {
82178
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
82166
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82179
82167
  }
82180
82168
  },
82181
82169
  completion: async (context, partialArg) => {
@@ -82221,10 +82209,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
82221
82209
  }
82222
82210
  const serverNames = Object.keys(mcpServers);
82223
82211
  const connectingServers = serverNames.filter(
82224
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
82212
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
82225
82213
  );
82226
82214
  const discoveryState = getMCPDiscoveryState();
82227
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
82215
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
82228
82216
  const allTools = toolRegistry.getAllTools();
82229
82217
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
82230
82218
  const promptRegistry = config.getPromptRegistry();
@@ -97628,7 +97616,7 @@ Return a JSON object with:
97628
97616
  },
97629
97617
  abortSignal: new AbortController().signal,
97630
97618
  promptId: "triage-duplicates",
97631
- role: LlmRole.UTILITY_TOOL
97619
+ role: "utility_tool" /* UTILITY_TOOL */
97632
97620
  });
97633
97621
  const rec = response;
97634
97622
  let canonical;
@@ -98462,7 +98450,7 @@ Return a JSON object with:
98462
98450
  },
98463
98451
  abortSignal: abortControllerRef.current.signal,
98464
98452
  promptId: "triage-issues",
98465
- role: LlmRole.UTILITY_TOOL
98453
+ role: "utility_tool" /* UTILITY_TOOL */
98466
98454
  });
98467
98455
  return response;
98468
98456
  },
@@ -99036,8 +99024,8 @@ var planCommand = {
99036
99024
  return;
99037
99025
  }
99038
99026
  const previousApprovalMode = config.getApprovalMode();
99039
- config.setApprovalMode(ApprovalMode.PLAN);
99040
- if (previousApprovalMode !== ApprovalMode.PLAN) {
99027
+ config.setApprovalMode("plan" /* PLAN */);
99028
+ if (previousApprovalMode !== "plan" /* PLAN */) {
99041
99029
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
99042
99030
  }
99043
99031
  if (context.invocation?.args) {
@@ -99096,10 +99084,10 @@ var categorizeRulesByMode = (rules) => {
99096
99084
  rules.forEach((rule) => {
99097
99085
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
99098
99086
  const modeSet = new Set(modes);
99099
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
99100
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
99101
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
99102
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
99087
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
99088
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
99089
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
99090
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
99103
99091
  });
99104
99092
  return result;
99105
99093
  };
@@ -100448,7 +100436,7 @@ var upgradeCommand = {
100448
100436
  action: async (context) => {
100449
100437
  const config = context.services.agentContext?.config;
100450
100438
  const authType = config?.getContentGeneratorConfig()?.authType;
100451
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
100439
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
100452
100440
  return {
100453
100441
  type: "message",
100454
100442
  messageType: "error",
@@ -100618,7 +100606,7 @@ var BuiltinCommandLoader = class {
100618
100606
  vimCommand,
100619
100607
  setupGithubCommand,
100620
100608
  terminalSetupCommand,
100621
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
100609
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
100622
100610
  ];
100623
100611
  handle?.end();
100624
100612
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -100761,11 +100749,11 @@ var ShellProcessor = class {
100761
100749
  },
100762
100750
  void 0
100763
100751
  );
100764
- if (decision === PolicyDecision.DENY) {
100752
+ if (decision === "deny" /* DENY */) {
100765
100753
  throw new Error(
100766
100754
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
100767
100755
  );
100768
- } else if (decision === PolicyDecision.ASK_USER) {
100756
+ } else if (decision === "ask_user" /* ASK_USER */) {
100769
100757
  commandsToConfirm.add(command);
100770
100758
  }
100771
100759
  }
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-4UUOHXDW.js";
7
+ } from "./chunk-UQGLVPZQ.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-67TFD6HC.js";
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-TKGFTY3B.js";
7
+ } from "./chunk-RTKRL6Y5.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-QM5IP3NK.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-5PS3AYFU.js";
6
6
  import {
7
7
  runExitCleanup
8
- } from "./chunk-45GIY5RT.js";
8
+ } from "./chunk-BL3XXS2L.js";
9
9
  import {
10
10
  AsyncFzf,
11
11
  AuthProviderType,
@@ -178,7 +178,7 @@ import {
178
178
  tokenLimit,
179
179
  uiTelemetryService,
180
180
  yellowBright
181
- } from "./chunk-OXCH4FS3.js";
181
+ } from "./chunk-UQGLVPZQ.js";
182
182
  import {
183
183
  ApprovalMode,
184
184
  CoreEvent,
@@ -76654,7 +76654,7 @@ var authCommand = {
76654
76654
  import process35 from "node:process";
76655
76655
 
76656
76656
  // packages/cli/src/generated/git-commit.ts
76657
- var GIT_COMMIT_INFO = "a70149e15";
76657
+ var GIT_COMMIT_INFO = "398f78dca";
76658
76658
 
76659
76659
  // packages/cli/src/ui/utils/historyExportUtils.ts
76660
76660
  import * as fsPromises2 from "node:fs/promises";
@@ -82138,7 +82138,7 @@ Use /mcp auth <server-name> to authenticate.`
82138
82138
  type: "info",
82139
82139
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82140
82140
  });
82141
- const { MCPOAuthProvider } = await import("./dist-5ET5G5PC.js");
82141
+ const { MCPOAuthProvider } = await import("./dist-FWHS5IHN.js");
82142
82142
  let oauthConfig = server.oauth;
82143
82143
  if (!oauthConfig) {
82144
82144
  oauthConfig = { enabled: false };