@google/gemini-cli 0.41.0-preview.2 → 0.41.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 (59) hide show
  1. package/bundle/{chunk-LBPROGQS.js → chunk-4CB5QYON.js} +1 -1
  2. package/bundle/{chunk-4GYMEM7F.js → chunk-5ECQHX5C.js} +2 -2
  3. package/bundle/{chunk-ODPEYGXR.js → chunk-5ZVQP4WN.js} +1 -1
  4. package/bundle/{chunk-FQGCL5I2.js → chunk-7LNZOOC7.js} +6 -6
  5. package/bundle/{chunk-ANBD6P4M.js → chunk-B2LNN6KY.js} +4 -4
  6. package/bundle/{chunk-BDZNOCWJ.js → chunk-CSDNDSTO.js} +4 -4
  7. package/bundle/{chunk-BYSXGJG3.js → chunk-CWJ5KY34.js} +1 -1
  8. package/bundle/{chunk-OR5JBPQX.js → chunk-CZW4D4RQ.js} +1 -1
  9. package/bundle/{chunk-ZHHJJC4N.js → chunk-F6MNV4SZ.js} +6 -6
  10. package/bundle/{chunk-2YV27CKR.js → chunk-G2G5UOIR.js} +2 -2
  11. package/bundle/{chunk-L35AXZHM.js → chunk-GLO32GZ3.js} +12456 -6676
  12. package/bundle/{chunk-2E4E2OEF.js → chunk-J7E7PI4S.js} +2 -2
  13. package/bundle/{chunk-V2QQW5SA.js → chunk-KHDD5ZQT.js} +1 -1
  14. package/bundle/{chunk-7CD6GCRT.js → chunk-KMY2ICHB.js} +1 -1
  15. package/bundle/{chunk-3GHJ5HPF.js → chunk-KYES7RJ6.js} +54 -67
  16. package/bundle/{chunk-RYFTYJ75.js → chunk-RVECIZP6.js} +1 -1
  17. package/bundle/{chunk-HOQYVHXU.js → chunk-TOU7GDCS.js} +3 -3
  18. package/bundle/{chunk-S4SLTOZU.js → chunk-V7GQYOIO.js} +12 -14
  19. package/bundle/{cleanup-HRWHMMWM.js → cleanup-KMEBTV6K.js} +2 -2
  20. package/bundle/{cleanup-2BMR4MMJ.js → cleanup-OJM7LXCH.js} +2 -2
  21. package/bundle/{cleanup-FHOD65Y6.js → cleanup-PMJYRELA.js} +3 -3
  22. package/bundle/{core-TKDA7N4G.js → core-4PBU56P6.js} +1 -1
  23. package/bundle/{dist-PGH3GHGN.js → core-MMHOAGLI.js} +2 -2
  24. package/bundle/{devtoolsService-V2NU6TJG.js → devtoolsService-ARI22QWG.js} +2 -2
  25. package/bundle/{devtoolsService-7LCCYOTU.js → devtoolsService-BDOWEGHR.js} +4 -5
  26. package/bundle/{devtoolsService-6EOO2BQ7.js → devtoolsService-YPN2GRY7.js} +2 -2
  27. package/bundle/{dist-KFV2ASJV.js → dist-V6XXY2AS.js} +1 -1
  28. package/bundle/{gemini-YG4MES4L.js → gemini-GSCVWK7Y.js} +175 -191
  29. package/bundle/{gemini-FLUMXCL4.js → gemini-LDARUG77.js} +12 -12
  30. package/bundle/{gemini-GNABGJLN.js → gemini-RGSMPB6F.js} +12 -12
  31. package/bundle/gemini.js +3 -3
  32. package/bundle/{interactiveCli-JNHY7R4J.js → interactiveCli-5JCJD3F5.js} +7 -7
  33. package/bundle/{interactiveCli-VP7SGM2Z.js → interactiveCli-KSSJ4M5C.js} +7 -7
  34. package/bundle/{interactiveCli-ZWNNSDPF.js → interactiveCli-ZNAMZNEE.js} +273 -291
  35. package/bundle/{liteRtServerManager-D3KQXYD2.js → liteRtServerManager-I6PXKOCJ.js} +3 -3
  36. package/bundle/{liteRtServerManager-OYB4D65F.js → liteRtServerManager-PG57YSDR.js} +3 -3
  37. package/bundle/{liteRtServerManager-4OYQKJDU.js → liteRtServerManager-QZCLWSIV.js} +4 -4
  38. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  39. package/bundle/{oauth2-provider-BT67SZ33.js → oauth2-provider-356MTA5N.js} +1 -1
  40. package/bundle/{oauth2-provider-LDPCE34C.js → oauth2-provider-MV6Q65XJ.js} +1 -1
  41. package/bundle/{oauth2-provider-KNDXPBH3.js → oauth2-provider-SWABWSBH.js} +73 -39
  42. package/bundle/{start-3OOWLPJZ.js → start-FWXRAXKY.js} +5 -5
  43. package/bundle/{start-U3FP4KVT.js → start-MWJKRZPA.js} +6 -6
  44. package/bundle/{start-6T3XMMID.js → start-S2GPZKGW.js} +5 -5
  45. package/package.json +1 -1
  46. package/bundle/chunk-3Q7BP33C.js +0 -80034
  47. package/bundle/chunk-6P6WKPYI.js +0 -156
  48. package/bundle/chunk-FZXNSS2J.js +0 -118
  49. package/bundle/chunk-SR4PMLVP.js +0 -354496
  50. package/bundle/chunk-VHJM22NK.js +0 -1571
  51. package/bundle/chunk-XBNSSOYA.js +0 -17656
  52. package/bundle/cleanup-TCNEYDWT.js +0 -33
  53. package/bundle/devtoolsService-EFVBXKEX.js +0 -857
  54. package/bundle/dist-VXU5NT6O.js +0 -2068
  55. package/bundle/gemini-V7YPSW3T.js +0 -15988
  56. package/bundle/interactiveCli-MD3WNLOS.js +0 -35052
  57. package/bundle/liteRtServerManager-ONE7YJHO.js +0 -65
  58. package/bundle/oauth2-provider-RGOB2KSE.js +0 -237
  59. package/bundle/start-LNWEO65C.js +0 -18
@@ -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-ODPEYGXR.js";
5
+ } from "./chunk-5ZVQP4WN.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,7 +14,7 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-XBNSSOYA.js";
17
+ } from "./chunk-KMY2ICHB.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-SAJ72M2G.js";
@@ -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-6P6WKPYI.js";
4
+ } from "./chunk-G2G5UOIR.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -21,7 +21,7 @@ import {
21
21
  require_strip_json_comments,
22
22
  sanitizeFilenamePart,
23
23
  stripAnsi
24
- } from "./chunk-L35AXZHM.js";
24
+ } from "./chunk-CSDNDSTO.js";
25
25
  import {
26
26
  CoreEvent,
27
27
  FatalConfigError,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-VHJM22NK.js";
9
+ } from "./chunk-KHDD5ZQT.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,15 +59,13 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-7CD6GCRT.js";
62
+ } from "./chunk-V7GQYOIO.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-2YV27CKR.js";
65
+ } from "./chunk-G2G5UOIR.js";
66
66
  import {
67
67
  AsyncFzf,
68
- AuthType,
69
68
  Config,
70
- CoreToolCallStatus,
71
69
  ExtensionDisableEvent,
72
70
  ExtensionEnableEvent,
73
71
  ExtensionInstallEvent,
@@ -76,27 +74,17 @@ import {
76
74
  ExtensionUninstallEvent,
77
75
  ExtensionUpdateEvent,
78
76
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
79
- HookType,
80
- IDEConnectionStatus,
81
77
  INITIAL_HISTORY_LENGTH,
82
78
  IdeClient,
83
79
  IdeConnectionEvent,
84
- IdeConnectionType,
85
- IntegrityDataStatus,
86
80
  KeychainTokenStorage,
87
- LlmRole,
88
- MCPDiscoveryState,
89
81
  MCPOAuthTokenStorage,
90
- MCPServerStatus,
91
82
  ModelSlashCommandEvent,
92
83
  ProjectIdRequiredError,
93
84
  ReadManyFilesTool,
94
85
  RewindEvent,
95
- SessionEndReason,
96
- SessionStartSource,
97
86
  ShellExecutionService,
98
87
  StartSessionEvent,
99
- TrustLevel,
100
88
  UPGRADE_URL_PAGE,
101
89
  UserAccountManager,
102
90
  ValidationRequiredError,
@@ -208,13 +196,12 @@ import {
208
196
  stripAnsi,
209
197
  tokenLimit,
210
198
  uiTelemetryService
211
- } from "./chunk-L35AXZHM.js";
199
+ } from "./chunk-GLO32GZ3.js";
212
200
  import {
213
201
  ApprovalMode,
214
202
  CoreEvent,
215
203
  DiscoveredMCPTool,
216
204
  GEMINI_DIR,
217
- PolicyDecision,
218
205
  REFERENCE_CONTENT_END,
219
206
  REFERENCE_CONTENT_START,
220
207
  Storage,
@@ -235,7 +222,7 @@ import {
235
222
  shortenPath,
236
223
  tildeifyPath,
237
224
  unescapePath
238
- } from "./chunk-SAJ72M2G.js";
225
+ } from "./chunk-XRLFHCHC.js";
239
226
  import {
240
227
  require_src
241
228
  } from "./chunk-RJTRUG2J.js";
@@ -39440,7 +39427,7 @@ var import_react34 = __toESM(require_react(), 1);
39440
39427
  function useIdeTrustListener() {
39441
39428
  const settings = useSettings();
39442
39429
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39443
- IDEConnectionStatus.Disconnected
39430
+ "disconnected" /* Disconnected */
39444
39431
  );
39445
39432
  const previousTrust = (0, import_react34.useRef)(void 0);
39446
39433
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39470,7 +39457,7 @@ function useIdeTrustListener() {
39470
39457
  };
39471
39458
  }, []);
39472
39459
  const getSnapshot = () => {
39473
- if (connectionStatus !== IDEConnectionStatus.Connected) {
39460
+ if (connectionStatus !== "connected" /* Connected */) {
39474
39461
  return void 0;
39475
39462
  }
39476
39463
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -39856,7 +39843,7 @@ async function initializeApp(config, settings) {
39856
39843
  await ideClient.connect();
39857
39844
  logIdeConnection(
39858
39845
  config,
39859
- new IdeConnectionEvent(IdeConnectionType.START)
39846
+ new IdeConnectionEvent("start" /* START */)
39860
39847
  );
39861
39848
  }).catch((e) => {
39862
39849
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -39874,16 +39861,16 @@ async function initializeApp(config, settings) {
39874
39861
  // packages/cli/src/config/auth.ts
39875
39862
  function validateAuthMethod(authMethod) {
39876
39863
  loadEnvironment(loadSettings().merged, process.cwd());
39877
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
39864
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
39878
39865
  return null;
39879
39866
  }
39880
- if (authMethod === AuthType.USE_GEMINI) {
39867
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
39881
39868
  if (!process.env["GEMINI_API_KEY"]) {
39882
39869
  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)!";
39883
39870
  }
39884
39871
  return null;
39885
39872
  }
39886
- if (authMethod === AuthType.USE_VERTEX_AI) {
39873
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
39887
39874
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
39888
39875
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
39889
39876
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44600,7 +44587,7 @@ var ExtensionManager = class extends ExtensionLoader {
44600
44587
  const trustedFolders = loadTrustedFolders();
44601
44588
  await trustedFolders.setValue(
44602
44589
  this.workspaceDir,
44603
- TrustLevel.TRUST_FOLDER
44590
+ "TRUST_FOLDER" /* TRUST_FOLDER */
44604
44591
  );
44605
44592
  } else {
44606
44593
  throw new Error(
@@ -44786,7 +44773,7 @@ Would you like to attempt to install via "git clone" instead?`
44786
44773
  newExtensionConfig.version,
44787
44774
  previousExtensionConfig.version,
44788
44775
  installMetadata.type,
44789
- CoreToolCallStatus.Success
44776
+ "success" /* Success */
44790
44777
  )
44791
44778
  );
44792
44779
  if (newExtensionName !== previousName) {
@@ -44809,7 +44796,7 @@ Would you like to attempt to install via "git clone" instead?`
44809
44796
  getExtensionId(newExtensionConfig, installMetadata),
44810
44797
  newExtensionConfig.version,
44811
44798
  installMetadata.type,
44812
- CoreToolCallStatus.Success
44799
+ "success" /* Success */
44813
44800
  )
44814
44801
  );
44815
44802
  await this.enableExtension(
@@ -44842,7 +44829,7 @@ Would you like to attempt to install via "git clone" instead?`
44842
44829
  newExtensionConfig?.version ?? "",
44843
44830
  previousExtensionConfig.version,
44844
44831
  installMetadata.type,
44845
- CoreToolCallStatus.Error
44832
+ "error" /* Error */
44846
44833
  )
44847
44834
  );
44848
44835
  } else {
@@ -44854,7 +44841,7 @@ Would you like to attempt to install via "git clone" instead?`
44854
44841
  extensionId ?? "",
44855
44842
  newExtensionConfig?.version ?? "",
44856
44843
  installMetadata.type,
44857
- CoreToolCallStatus.Error
44844
+ "error" /* Error */
44858
44845
  )
44859
44846
  );
44860
44847
  }
@@ -44885,7 +44872,7 @@ Would you like to attempt to install via "git clone" instead?`
44885
44872
  extension.name,
44886
44873
  hashValue(extension.name),
44887
44874
  extension.id,
44888
- CoreToolCallStatus.Success
44875
+ "success" /* Success */
44889
44876
  )
44890
44877
  );
44891
44878
  }
@@ -45155,7 +45142,7 @@ Would you like to attempt to install via "git clone" instead?`
45155
45142
  if (eventHooks) {
45156
45143
  for (const definition of eventHooks) {
45157
45144
  for (const hook of definition.hooks) {
45158
- if (hook.type === HookType.Command) {
45145
+ if (hook.type === "command" /* Command */) {
45159
45146
  hook.env = { ...hook.env, ...hookEnv };
45160
45147
  }
45161
45148
  }
@@ -46187,7 +46174,7 @@ async function readMcpResources(resourceParts, config, signal) {
46187
46174
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46188
46175
  name: `resources/read (${resource.serverName})`,
46189
46176
  description: resource.uri,
46190
- status: CoreToolCallStatus.Success,
46177
+ status: "success" /* Success */,
46191
46178
  isClientInitiated: true,
46192
46179
  resultDisplay: `Successfully read resource ${resource.uri}`,
46193
46180
  confirmationDetails: void 0
@@ -46202,7 +46189,7 @@ async function readMcpResources(resourceParts, config, signal) {
46202
46189
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46203
46190
  name: `resources/read (${resource.serverName})`,
46204
46191
  description: resource.uri,
46205
- status: CoreToolCallStatus.Error,
46192
+ status: "error" /* Error */,
46206
46193
  isClientInitiated: true,
46207
46194
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46208
46195
  confirmationDetails: void 0
@@ -46227,7 +46214,7 @@ Content from @${result.uri}:
46227
46214
  }
46228
46215
  if (hasError) {
46229
46216
  const firstError = displays.find(
46230
- (d) => d.status === CoreToolCallStatus.Error
46217
+ (d) => d.status === "error" /* Error */
46231
46218
  );
46232
46219
  return {
46233
46220
  parts: [],
@@ -46263,7 +46250,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46263
46250
  callId: `client-read-${userMessageTimestamp}`,
46264
46251
  name: readManyFilesTool.displayName,
46265
46252
  description: invocation.getDescription(),
46266
- status: CoreToolCallStatus.Success,
46253
+ status: "success" /* Success */,
46267
46254
  isClientInitiated: true,
46268
46255
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46269
46256
  confirmationDetails: void 0
@@ -46310,7 +46297,7 @@ Content from @${displayPath}:
46310
46297
  callId: `client-read-${userMessageTimestamp}`,
46311
46298
  name: readManyFilesTool.displayName,
46312
46299
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46313
- status: CoreToolCallStatus.Error,
46300
+ status: "error" /* Error */,
46314
46301
  isClientInitiated: true,
46315
46302
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46316
46303
  confirmationDetails: void 0
@@ -49539,7 +49526,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49539
49526
  if (wasRaw) {
49540
49527
  setRawMode?.(true);
49541
49528
  }
49542
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
49529
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49543
49530
  }
49544
49531
  }
49545
49532
 
@@ -52219,7 +52206,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52219
52206
  extension.name,
52220
52207
  installMetadata
52221
52208
  );
52222
- if (status === IntegrityDataStatus.INVALID) {
52209
+ if (status === "invalid" /* INVALID */) {
52223
52210
  throw new Error("Extension integrity cannot be verified");
52224
52211
  }
52225
52212
  } catch (e) {
@@ -54224,7 +54211,7 @@ var MultiFolderTrustDialog = ({
54224
54211
  if (choice === 1 /* YES_AND_REMEMBER */) {
54225
54212
  await trustedFolders.setValue(
54226
54213
  expandedPath,
54227
- TrustLevel.TRUST_FOLDER
54214
+ "TRUST_FOLDER" /* TRUST_FOLDER */
54228
54215
  );
54229
54216
  }
54230
54217
  workspaceContext.addDirectory(expandedPath);
@@ -55003,7 +54990,7 @@ var authCommand = {
55003
54990
  import process29 from "node:process";
55004
54991
 
55005
54992
  // packages/cli/src/generated/git-commit.ts
55006
- var GIT_COMMIT_INFO = "c6a695d1b";
54993
+ var GIT_COMMIT_INFO = "6339fd95f";
55007
54994
 
55008
54995
  // packages/cli/src/ui/utils/historyExportUtils.ts
55009
54996
  import * as fsPromises from "node:fs/promises";
@@ -55517,7 +55504,7 @@ var clearCommand = {
55517
55504
  const config = context.services.agentContext?.config;
55518
55505
  const hookSystem = config?.getHookSystem();
55519
55506
  if (hookSystem) {
55520
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
55507
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
55521
55508
  }
55522
55509
  config?.injectionService.clear();
55523
55510
  let newSessionId;
@@ -55534,7 +55521,7 @@ var clearCommand = {
55534
55521
  }
55535
55522
  let result;
55536
55523
  if (hookSystem) {
55537
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
55524
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
55538
55525
  }
55539
55526
  await new Promise((resolve8) => setImmediate(resolve8));
55540
55527
  if (config) {
@@ -58390,7 +58377,7 @@ var Footer = () => {
58390
58377
  case "auth": {
58391
58378
  if (!settings.merged.ui.showUserIdentity) break;
58392
58379
  if (!authType) break;
58393
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
58380
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
58394
58381
  addCol(
58395
58382
  id,
58396
58383
  header,
@@ -60137,12 +60124,12 @@ import path27 from "node:path";
60137
60124
  function getIdeStatusMessage(ideClient) {
60138
60125
  const connection = ideClient.getConnectionStatus();
60139
60126
  switch (connection.status) {
60140
- case IDEConnectionStatus.Connected:
60127
+ case "connected" /* Connected */:
60141
60128
  return {
60142
60129
  messageType: "info",
60143
60130
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
60144
60131
  };
60145
- case IDEConnectionStatus.Connecting:
60132
+ case "connecting" /* Connecting */:
60146
60133
  return {
60147
60134
  messageType: "info",
60148
60135
  content: `\u{1F7E1} Connecting...`
@@ -60183,7 +60170,7 @@ ${infoMessage}`;
60183
60170
  async function getIdeStatusMessageWithFiles(ideClient) {
60184
60171
  const connection = ideClient.getConnectionStatus();
60185
60172
  switch (connection.status) {
60186
- case IDEConnectionStatus.Connected: {
60173
+ case "connected" /* Connected */: {
60187
60174
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
60188
60175
  const context = ideContextStore.get();
60189
60176
  const openFiles = context?.workspaceState?.openFiles;
@@ -60195,7 +60182,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
60195
60182
  content
60196
60183
  };
60197
60184
  }
60198
- case IDEConnectionStatus.Connecting:
60185
+ case "connecting" /* Connecting */:
60199
60186
  return {
60200
60187
  messageType: "info",
60201
60188
  content: `\u{1F7E1} Connecting...`
@@ -60217,7 +60204,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
60217
60204
  const ideClient = await IdeClient.getInstance();
60218
60205
  if (value) {
60219
60206
  await ideClient.connect(options);
60220
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
60207
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
60221
60208
  } else {
60222
60209
  await ideClient.disconnect();
60223
60210
  }
@@ -60305,7 +60292,7 @@ var ideCommand = async () => {
60305
60292
  logToConsole: false
60306
60293
  }
60307
60294
  );
60308
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
60295
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
60309
60296
  break;
60310
60297
  }
60311
60298
  await new Promise((resolve8) => setTimeout(resolve8, 500));
@@ -60382,7 +60369,7 @@ var ideCommand = async () => {
60382
60369
  }
60383
60370
  };
60384
60371
  const { status } = ideClient.getConnectionStatus();
60385
- const isConnected = status === IDEConnectionStatus.Connected;
60372
+ const isConnected = status === "connected" /* Connected */;
60386
60373
  if (isConnected) {
60387
60374
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
60388
60375
  } else {
@@ -60482,13 +60469,13 @@ Use /mcp auth <server-name> to authenticate.`
60482
60469
  const displayListener = (message) => {
60483
60470
  context.ui.addItem({ type: "info", text: message });
60484
60471
  };
60485
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
60472
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
60486
60473
  try {
60487
60474
  context.ui.addItem({
60488
60475
  type: "info",
60489
60476
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60490
60477
  });
60491
- const { MCPOAuthProvider } = await import("./dist-VXU5NT6O.js");
60478
+ const { MCPOAuthProvider } = await import("./core-4PBU56P6.js");
60492
60479
  let oauthConfig = server.oauth;
60493
60480
  if (!oauthConfig) {
60494
60481
  oauthConfig = { enabled: false };
@@ -60525,7 +60512,7 @@ Use /mcp auth <server-name> to authenticate.`
60525
60512
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
60526
60513
  };
60527
60514
  } finally {
60528
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
60515
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
60529
60516
  }
60530
60517
  },
60531
60518
  completion: async (context, partialArg) => {
@@ -60571,10 +60558,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
60571
60558
  }
60572
60559
  const serverNames = Object.keys(mcpServers);
60573
60560
  const connectingServers = serverNames.filter(
60574
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
60561
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
60575
60562
  );
60576
60563
  const discoveryState = getMCPDiscoveryState();
60577
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
60564
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
60578
60565
  const allTools = toolRegistry.getAllTools();
60579
60566
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
60580
60567
  const promptRegistry = config.getPromptRegistry();
@@ -75978,7 +75965,7 @@ Return a JSON object with:
75978
75965
  },
75979
75966
  abortSignal: new AbortController().signal,
75980
75967
  promptId: "triage-duplicates",
75981
- role: LlmRole.UTILITY_TOOL
75968
+ role: "utility_tool" /* UTILITY_TOOL */
75982
75969
  });
75983
75970
  const rec = response;
75984
75971
  let canonical;
@@ -76812,7 +76799,7 @@ Return a JSON object with:
76812
76799
  },
76813
76800
  abortSignal: abortControllerRef.current.signal,
76814
76801
  promptId: "triage-issues",
76815
- role: LlmRole.UTILITY_TOOL
76802
+ role: "utility_tool" /* UTILITY_TOOL */
76816
76803
  });
76817
76804
  return response;
76818
76805
  },
@@ -77386,8 +77373,8 @@ var planCommand = {
77386
77373
  return;
77387
77374
  }
77388
77375
  const previousApprovalMode = config.getApprovalMode();
77389
- config.setApprovalMode(ApprovalMode.PLAN);
77390
- if (previousApprovalMode !== ApprovalMode.PLAN) {
77376
+ config.setApprovalMode("plan" /* PLAN */);
77377
+ if (previousApprovalMode !== "plan" /* PLAN */) {
77391
77378
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
77392
77379
  }
77393
77380
  if (context.invocation?.args) {
@@ -77446,10 +77433,10 @@ var categorizeRulesByMode = (rules) => {
77446
77433
  rules.forEach((rule) => {
77447
77434
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
77448
77435
  const modeSet = new Set(modes);
77449
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
77450
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
77451
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
77452
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
77436
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
77437
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
77438
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
77439
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
77453
77440
  });
77454
77441
  return result;
77455
77442
  };
@@ -78798,7 +78785,7 @@ var upgradeCommand = {
78798
78785
  action: async (context) => {
78799
78786
  const config = context.services.agentContext?.config;
78800
78787
  const authType = config?.getContentGeneratorConfig()?.authType;
78801
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
78788
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
78802
78789
  return {
78803
78790
  type: "message",
78804
78791
  messageType: "error",
@@ -79025,7 +79012,7 @@ var BuiltinCommandLoader = class {
79025
79012
  setupGithubCommand,
79026
79013
  terminalSetupCommand,
79027
79014
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
79028
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
79015
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
79029
79016
  ];
79030
79017
  handle?.end();
79031
79018
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -79168,11 +79155,11 @@ var ShellProcessor = class {
79168
79155
  },
79169
79156
  void 0
79170
79157
  );
79171
- if (decision === PolicyDecision.DENY) {
79158
+ if (decision === "deny" /* DENY */) {
79172
79159
  throw new Error(
79173
79160
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
79174
79161
  );
79175
- } else if (decision === PolicyDecision.ASK_USER) {
79162
+ } else if (decision === "ask_user" /* ASK_USER */) {
79176
79163
  commandsToConfirm.add(command);
79177
79164
  }
79178
79165
  }
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-ANBD6P4M.js";
23
+ } from "./chunk-B2LNN6KY.js";
24
24
  import {
25
25
  FatalConfigError,
26
26
  GEMINI_DIR,
@@ -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-V2QQW5SA.js";
5
+ } from "./chunk-CZW4D4RQ.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-S4SLTOZU.js";
17
+ } from "./chunk-RVECIZP6.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-SAJ72M2G.js";
20
+ } from "./chunk-XRLFHCHC.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -1,7 +1,6 @@
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
  AuthProviderType,
4
- CoreToolCallStatus,
5
4
  DEFAULT_MODEL_CONFIGS,
6
5
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
7
6
  SESSION_FILE_PREFIX,
@@ -21,9 +20,8 @@ import {
21
20
  require_strip_json_comments,
22
21
  sanitizeFilenamePart,
23
22
  stripAnsi
24
- } from "./chunk-BDZNOCWJ.js";
23
+ } from "./chunk-GLO32GZ3.js";
25
24
  import {
26
- CoreEvent,
27
25
  FatalConfigError,
28
26
  GEMINI_DIR,
29
27
  Storage,
@@ -32,7 +30,7 @@ import {
32
30
  external_exports,
33
31
  getErrorMessage,
34
32
  homedir
35
- } from "./chunk-SAJ72M2G.js";
33
+ } from "./chunk-XRLFHCHC.js";
36
34
  import {
37
35
  __commonJS,
38
36
  __require,
@@ -10066,19 +10064,19 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), headlessOpti
10066
10064
  var import_react = __toESM(require_react(), 1);
10067
10065
  function mapCoreStatusToDisplayStatus(coreStatus) {
10068
10066
  switch (coreStatus) {
10069
- case CoreToolCallStatus.Validating:
10067
+ case "validating" /* Validating */:
10070
10068
  return "Pending" /* Pending */;
10071
- case CoreToolCallStatus.AwaitingApproval:
10069
+ case "awaiting_approval" /* AwaitingApproval */:
10072
10070
  return "Confirming" /* Confirming */;
10073
- case CoreToolCallStatus.Executing:
10071
+ case "executing" /* Executing */:
10074
10072
  return "Executing" /* Executing */;
10075
- case CoreToolCallStatus.Success:
10073
+ case "success" /* Success */:
10076
10074
  return "Success" /* Success */;
10077
- case CoreToolCallStatus.Cancelled:
10075
+ case "cancelled" /* Cancelled */:
10078
10076
  return "Canceled" /* Canceled */;
10079
- case CoreToolCallStatus.Error:
10077
+ case "error" /* Error */:
10080
10078
  return "Error" /* Error */;
10081
- case CoreToolCallStatus.Scheduled:
10079
+ case "scheduled" /* Scheduled */:
10082
10080
  return "Pending" /* Pending */;
10083
10081
  default:
10084
10082
  return checkExhaustive(coreStatus);
@@ -10685,7 +10683,7 @@ function convertSessionToHistoryFormats(messages) {
10685
10683
  args: tool.args,
10686
10684
  description: tool.description || "",
10687
10685
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10688
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10686
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10689
10687
  resultDisplay: tool.resultDisplay,
10690
10688
  confirmationDetails: void 0
10691
10689
  }))
@@ -16666,8 +16664,8 @@ var LoadedSettings = class {
16666
16664
  // React will pass a listener fn into this subscribe fn
16667
16665
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16668
16666
  subscribe(listener) {
16669
- coreEvents.on(CoreEvent.SettingsChanged, listener);
16670
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16667
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16668
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16671
16669
  }
16672
16670
  getSnapshot() {
16673
16671
  return this._snapshot;
@@ -11,8 +11,8 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-BYSXGJG3.js";
15
- import "./chunk-ANBD6P4M.js";
14
+ } from "./chunk-G2G5UOIR.js";
15
+ import "./chunk-GLO32GZ3.js";
16
16
  import "./chunk-XRLFHCHC.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
@@ -11,8 +11,8 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-6P6WKPYI.js";
15
- import "./chunk-BDZNOCWJ.js";
14
+ } from "./chunk-4CB5QYON.js";
15
+ import "./chunk-CSDNDSTO.js";
16
16
  import "./chunk-SAJ72M2G.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
@@ -11,9 +11,9 @@ import {
11
11
  runSyncCleanup,
12
12
  setupSignalHandlers,
13
13
  setupTtyCheck
14
- } from "./chunk-2YV27CKR.js";
15
- import "./chunk-L35AXZHM.js";
16
- import "./chunk-SAJ72M2G.js";
14
+ } from "./chunk-CWJ5KY34.js";
15
+ import "./chunk-B2LNN6KY.js";
16
+ import "./chunk-XRLFHCHC.js";
17
17
  import "./chunk-664ZODQF.js";
18
18
  import "./chunk-RJTRUG2J.js";
19
19
  import "./chunk-IUUIT4SU.js";
@@ -773,7 +773,7 @@ import {
773
773
  wrapInAccountChooser,
774
774
  writeToStderr,
775
775
  writeToStdout
776
- } from "./chunk-ANBD6P4M.js";
776
+ } from "./chunk-GLO32GZ3.js";
777
777
  import {
778
778
  ACTIVATE_SKILL_TOOL_NAME,
779
779
  AGENT_TOOL_NAME,
@@ -773,7 +773,7 @@ import {
773
773
  wrapInAccountChooser,
774
774
  writeToStderr,
775
775
  writeToStdout
776
- } from "./chunk-BDZNOCWJ.js";
776
+ } from "./chunk-B2LNN6KY.js";
777
777
  import {
778
778
  ACTIVATE_SKILL_TOOL_NAME,
779
779
  AGENT_TOOL_NAME,
@@ -1028,7 +1028,7 @@ import {
1028
1028
  toFriendlyError,
1029
1029
  toPathKey,
1030
1030
  unescapePath
1031
- } from "./chunk-SAJ72M2G.js";
1031
+ } from "./chunk-XRLFHCHC.js";
1032
1032
  import "./chunk-664ZODQF.js";
1033
1033
  import "./chunk-RJTRUG2J.js";
1034
1034
  import {