@google/gemini-cli 0.40.0-preview.5 → 0.40.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-FVKIOUK2.js → chunk-3F3SMPJP.js} +6 -6
  2. package/bundle/{chunk-PSFOLETP.js → chunk-3OSQ5US4.js} +4 -4
  3. package/bundle/{chunk-RZLEHIPO.js → chunk-BSQN7W2F.js} +1 -1
  4. package/bundle/{chunk-LZ3EBZC7.js → chunk-DYY5TRG5.js} +1 -1
  5. package/bundle/{chunk-2ZVZANM2.js → chunk-EITHKKXC.js} +2 -2
  6. package/bundle/{chunk-4QJ7BLYU.js → chunk-FRSESBS3.js} +11904 -6382
  7. package/bundle/{chunk-JMNFQX6P.js → chunk-G6ODSHKI.js} +1 -1
  8. package/bundle/{chunk-OFQ5ZK6W.js → chunk-HMR2JSPA.js} +1 -1
  9. package/bundle/{chunk-UOPSSTRT.js → chunk-J76QO4KN.js} +6 -6
  10. package/bundle/{chunk-M67MTWAA.js → chunk-MBLCGSJW.js} +1 -1
  11. package/bundle/{chunk-BXEIZYPT.js → chunk-ML7VG4QG.js} +2 -2
  12. package/bundle/{chunk-HGZ3O2PQ.js → chunk-O7SPQTAS.js} +2 -2
  13. package/bundle/{chunk-PPI7V737.js → chunk-OE2ZUR66.js} +12 -14
  14. package/bundle/{chunk-S2RMF5OF.js → chunk-OEIRJHU4.js} +53 -66
  15. package/bundle/{chunk-PUYH6WLU.js → chunk-P7LA6IIC.js} +1 -1
  16. package/bundle/{chunk-WKLZQYVS.js → chunk-RUHTTGS7.js} +3 -3
  17. package/bundle/{chunk-JEEOZX7K.js → chunk-SZYCJREE.js} +4 -4
  18. package/bundle/{chunk-KH7Y2E2B.js → chunk-URTDU3HF.js} +1 -1
  19. package/bundle/{cleanup-LU6VH5LF.js → cleanup-6MKBWA6V.js} +2 -2
  20. package/bundle/{cleanup-7NMCYTRU.js → cleanup-AJ7G3WEE.js} +2 -2
  21. package/bundle/{cleanup-CC4DZYSL.js → cleanup-SOJQVOTG.js} +3 -3
  22. package/bundle/{core-J5EG27YJ.js → core-KELRGMHQ.js} +1 -1
  23. package/bundle/{dist-BDCT3HTY.js → core-O5TD6NYP.js} +2 -2
  24. package/bundle/{devtoolsService-L4UM23JP.js → devtoolsService-AR5HWQA7.js} +2 -2
  25. package/bundle/{devtoolsService-DVFBLZLE.js → devtoolsService-CCXHJEUM.js} +2 -2
  26. package/bundle/{devtoolsService-F5VVJOGU.js → devtoolsService-GQF7V6FB.js} +4 -5
  27. package/bundle/{dist-3PE52RNR.js → dist-LZ5ASNAL.js} +1 -1
  28. package/bundle/{gemini-43M45BZJ.js → gemini-LSLMD4HG.js} +12 -12
  29. package/bundle/{gemini-A2RKH6S6.js → gemini-TKPXJBGX.js} +175 -191
  30. package/bundle/{gemini-TUKIRRHO.js → gemini-YJTI2WQP.js} +12 -12
  31. package/bundle/gemini.js +3 -3
  32. package/bundle/{interactiveCli-UEQVG6ZN.js → interactiveCli-5YSP2IQI.js} +6 -6
  33. package/bundle/{interactiveCli-5KEHC4M6.js → interactiveCli-I56L63GE.js} +272 -290
  34. package/bundle/{interactiveCli-3ZFYCJ5T.js → interactiveCli-O3UYJUNT.js} +6 -6
  35. package/bundle/{liteRtServerManager-G54ML27L.js → liteRtServerManager-6INPACOA.js} +3 -3
  36. package/bundle/{liteRtServerManager-YKGSBN3S.js → liteRtServerManager-CIC7DD4U.js} +3 -3
  37. package/bundle/{liteRtServerManager-OMCP3UEP.js → liteRtServerManager-XI56E5P3.js} +4 -4
  38. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  39. package/bundle/{oauth2-provider-R3XULSB6.js → oauth2-provider-HDKVDC2Q.js} +1 -1
  40. package/bundle/{oauth2-provider-2Q7SY72N.js → oauth2-provider-HUMYTY6K.js} +1 -1
  41. package/bundle/{oauth2-provider-LO4KVOIV.js → oauth2-provider-VGGNG5XI.js} +73 -39
  42. package/bundle/{start-M46TTTBT.js → start-25VD33TV.js} +5 -5
  43. package/bundle/{start-G4HKE6RC.js → start-U4YQCY2A.js} +6 -6
  44. package/bundle/{start-O5R43BH5.js → start-VHURPYN7.js} +5 -5
  45. package/package.json +1 -1
  46. package/bundle/chunk-CTIVBV4R.js +0 -17505
  47. package/bundle/chunk-JTHK45BC.js +0 -118
  48. package/bundle/chunk-KAUTKFXF.js +0 -80012
  49. package/bundle/chunk-O5W5VNIB.js +0 -156
  50. package/bundle/chunk-WZUAJ737.js +0 -1571
  51. package/bundle/chunk-YQJLBMKU.js +0 -351149
  52. package/bundle/cleanup-QDR2CCLD.js +0 -33
  53. package/bundle/devtoolsService-LAXMLGUQ.js +0 -852
  54. package/bundle/dist-SXIB7Y3D.js +0 -2046
  55. package/bundle/gemini-5JHX3PCD.js +0 -16087
  56. package/bundle/interactiveCli-SQE667CT.js +0 -34448
  57. package/bundle/liteRtServerManager-ROQMRMW3.js +0 -65
  58. package/bundle/oauth2-provider-PTW7EGZX.js +0 -237
  59. package/bundle/start-VMKLEM5K.js +0 -18
@@ -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-BXEIZYPT.js";
4
+ } from "./chunk-URTDU3HF.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -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-KH7Y2E2B.js";
4
+ } from "./chunk-ML7VG4QG.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-PUYH6WLU.js";
9
+ } from "./chunk-P7LA6IIC.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,10 +59,10 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-LZ3EBZC7.js";
62
+ } from "./chunk-OE2ZUR66.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-RZLEHIPO.js";
65
+ } from "./chunk-BSQN7W2F.js";
66
66
  import {
67
67
  AsyncFzf,
68
68
  Config,
@@ -196,7 +196,7 @@ import {
196
196
  stripAnsi,
197
197
  tokenLimit,
198
198
  uiTelemetryService
199
- } from "./chunk-PSFOLETP.js";
199
+ } from "./chunk-FRSESBS3.js";
200
200
  import {
201
201
  ApprovalMode,
202
202
  CoreEvent,
@@ -54991,7 +54991,7 @@ var authCommand = {
54991
54991
  import process29 from "node:process";
54992
54992
 
54993
54993
  // packages/cli/src/generated/git-commit.ts
54994
- var GIT_COMMIT_INFO = "7fd336f5f";
54994
+ var GIT_COMMIT_INFO = "cefbd08f7";
54995
54995
 
54996
54996
  // packages/cli/src/ui/utils/historyExportUtils.ts
54997
54997
  import * as fsPromises from "node:fs/promises";
@@ -60476,7 +60476,7 @@ Use /mcp auth <server-name> to authenticate.`
60476
60476
  type: "info",
60477
60477
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60478
60478
  });
60479
- const { MCPOAuthProvider } = await import("./core-J5EG27YJ.js");
60479
+ const { MCPOAuthProvider } = await import("./core-KELRGMHQ.js");
60480
60480
  let oauthConfig = server.oauth;
60481
60481
  if (!oauthConfig) {
60482
60482
  oauthConfig = { enabled: false };
@@ -21,7 +21,7 @@ import {
21
21
  require_strip_json_comments,
22
22
  sanitizeFilenamePart,
23
23
  stripAnsi
24
- } from "./chunk-4QJ7BLYU.js";
24
+ } from "./chunk-SZYCJREE.js";
25
25
  import {
26
26
  CoreEvent,
27
27
  FatalConfigError,
@@ -4,10 +4,10 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-4QJ7BLYU.js";
7
+ } from "./chunk-3OSQ5US4.js";
8
8
  import {
9
9
  Storage
10
- } from "./chunk-F73F75XM.js";
10
+ } from "./chunk-UHHRGNIO.js";
11
11
 
12
12
  // packages/cli/src/utils/cleanup.ts
13
13
  import { promises as fs } from "node:fs";
@@ -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-WZUAJ737.js";
5
+ } from "./chunk-G6ODSHKI.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-PPI7V737.js";
17
+ } from "./chunk-MBLCGSJW.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-F73F75XM.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-YQJLBMKU.js";
23
+ } from "./chunk-FRSESBS3.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-F73F75XM.js";
33
+ } from "./chunk-UHHRGNIO.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);
@@ -10663,7 +10661,7 @@ function convertSessionToHistoryFormats(messages) {
10663
10661
  args: tool.args,
10664
10662
  description: tool.description || "",
10665
10663
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10666
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10664
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10667
10665
  resultDisplay: tool.resultDisplay,
10668
10666
  confirmationDetails: void 0
10669
10667
  }))
@@ -16533,8 +16531,8 @@ var LoadedSettings = class {
16533
16531
  // React will pass a listener fn into this subscribe fn
16534
16532
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16535
16533
  subscribe(listener) {
16536
- coreEvents.on(CoreEvent.SettingsChanged, listener);
16537
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16534
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16535
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16538
16536
  }
16539
16537
  getSnapshot() {
16540
16538
  return this._snapshot;
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-JMNFQX6P.js";
9
+ } from "./chunk-HMR2JSPA.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-M67MTWAA.js";
62
+ } from "./chunk-DYY5TRG5.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-BXEIZYPT.js";
65
+ } from "./chunk-ML7VG4QG.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-4QJ7BLYU.js";
199
+ } from "./chunk-3OSQ5US4.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-F73F75XM.js";
225
+ } from "./chunk-UHHRGNIO.js";
239
226
  import {
240
227
  require_src
241
228
  } from "./chunk-RJTRUG2J.js";
@@ -39438,7 +39425,7 @@ var import_react34 = __toESM(require_react(), 1);
39438
39425
  function useIdeTrustListener() {
39439
39426
  const settings = useSettings();
39440
39427
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39441
- IDEConnectionStatus.Disconnected
39428
+ "disconnected" /* Disconnected */
39442
39429
  );
39443
39430
  const previousTrust = (0, import_react34.useRef)(void 0);
39444
39431
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39468,7 +39455,7 @@ function useIdeTrustListener() {
39468
39455
  };
39469
39456
  }, []);
39470
39457
  const getSnapshot = () => {
39471
- if (connectionStatus !== IDEConnectionStatus.Connected) {
39458
+ if (connectionStatus !== "connected" /* Connected */) {
39472
39459
  return void 0;
39473
39460
  }
39474
39461
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -39854,7 +39841,7 @@ async function initializeApp(config, settings) {
39854
39841
  await ideClient.connect();
39855
39842
  logIdeConnection(
39856
39843
  config,
39857
- new IdeConnectionEvent(IdeConnectionType.START)
39844
+ new IdeConnectionEvent("start" /* START */)
39858
39845
  );
39859
39846
  }).catch((e) => {
39860
39847
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -39872,16 +39859,16 @@ async function initializeApp(config, settings) {
39872
39859
  // packages/cli/src/config/auth.ts
39873
39860
  function validateAuthMethod(authMethod) {
39874
39861
  loadEnvironment(loadSettings().merged, process.cwd());
39875
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
39862
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
39876
39863
  return null;
39877
39864
  }
39878
- if (authMethod === AuthType.USE_GEMINI) {
39865
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
39879
39866
  if (!process.env["GEMINI_API_KEY"]) {
39880
39867
  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)!";
39881
39868
  }
39882
39869
  return null;
39883
39870
  }
39884
- if (authMethod === AuthType.USE_VERTEX_AI) {
39871
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
39885
39872
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
39886
39873
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
39887
39874
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44612,7 +44599,7 @@ var ExtensionManager = class extends ExtensionLoader {
44612
44599
  const trustedFolders = loadTrustedFolders();
44613
44600
  await trustedFolders.setValue(
44614
44601
  this.workspaceDir,
44615
- TrustLevel.TRUST_FOLDER
44602
+ "TRUST_FOLDER" /* TRUST_FOLDER */
44616
44603
  );
44617
44604
  } else {
44618
44605
  throw new Error(
@@ -44798,7 +44785,7 @@ Would you like to attempt to install via "git clone" instead?`
44798
44785
  newExtensionConfig.version,
44799
44786
  previousExtensionConfig.version,
44800
44787
  installMetadata.type,
44801
- CoreToolCallStatus.Success
44788
+ "success" /* Success */
44802
44789
  )
44803
44790
  );
44804
44791
  if (newExtensionName !== previousName) {
@@ -44821,7 +44808,7 @@ Would you like to attempt to install via "git clone" instead?`
44821
44808
  getExtensionId(newExtensionConfig, installMetadata),
44822
44809
  newExtensionConfig.version,
44823
44810
  installMetadata.type,
44824
- CoreToolCallStatus.Success
44811
+ "success" /* Success */
44825
44812
  )
44826
44813
  );
44827
44814
  await this.enableExtension(
@@ -44854,7 +44841,7 @@ Would you like to attempt to install via "git clone" instead?`
44854
44841
  newExtensionConfig?.version ?? "",
44855
44842
  previousExtensionConfig.version,
44856
44843
  installMetadata.type,
44857
- CoreToolCallStatus.Error
44844
+ "error" /* Error */
44858
44845
  )
44859
44846
  );
44860
44847
  } else {
@@ -44866,7 +44853,7 @@ Would you like to attempt to install via "git clone" instead?`
44866
44853
  extensionId ?? "",
44867
44854
  newExtensionConfig?.version ?? "",
44868
44855
  installMetadata.type,
44869
- CoreToolCallStatus.Error
44856
+ "error" /* Error */
44870
44857
  )
44871
44858
  );
44872
44859
  }
@@ -44897,7 +44884,7 @@ Would you like to attempt to install via "git clone" instead?`
44897
44884
  extension.name,
44898
44885
  hashValue(extension.name),
44899
44886
  extension.id,
44900
- CoreToolCallStatus.Success
44887
+ "success" /* Success */
44901
44888
  )
44902
44889
  );
44903
44890
  }
@@ -45167,7 +45154,7 @@ Would you like to attempt to install via "git clone" instead?`
45167
45154
  if (eventHooks) {
45168
45155
  for (const definition of eventHooks) {
45169
45156
  for (const hook of definition.hooks) {
45170
- if (hook.type === HookType.Command) {
45157
+ if (hook.type === "command" /* Command */) {
45171
45158
  hook.env = { ...hook.env, ...hookEnv };
45172
45159
  }
45173
45160
  }
@@ -46199,7 +46186,7 @@ async function readMcpResources(resourceParts, config, signal) {
46199
46186
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46200
46187
  name: `resources/read (${resource.serverName})`,
46201
46188
  description: resource.uri,
46202
- status: CoreToolCallStatus.Success,
46189
+ status: "success" /* Success */,
46203
46190
  isClientInitiated: true,
46204
46191
  resultDisplay: `Successfully read resource ${resource.uri}`,
46205
46192
  confirmationDetails: void 0
@@ -46214,7 +46201,7 @@ async function readMcpResources(resourceParts, config, signal) {
46214
46201
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46215
46202
  name: `resources/read (${resource.serverName})`,
46216
46203
  description: resource.uri,
46217
- status: CoreToolCallStatus.Error,
46204
+ status: "error" /* Error */,
46218
46205
  isClientInitiated: true,
46219
46206
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46220
46207
  confirmationDetails: void 0
@@ -46239,7 +46226,7 @@ Content from @${result.uri}:
46239
46226
  }
46240
46227
  if (hasError) {
46241
46228
  const firstError = displays.find(
46242
- (d) => d.status === CoreToolCallStatus.Error
46229
+ (d) => d.status === "error" /* Error */
46243
46230
  );
46244
46231
  return {
46245
46232
  parts: [],
@@ -46275,7 +46262,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46275
46262
  callId: `client-read-${userMessageTimestamp}`,
46276
46263
  name: readManyFilesTool.displayName,
46277
46264
  description: invocation.getDescription(),
46278
- status: CoreToolCallStatus.Success,
46265
+ status: "success" /* Success */,
46279
46266
  isClientInitiated: true,
46280
46267
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46281
46268
  confirmationDetails: void 0
@@ -46322,7 +46309,7 @@ Content from @${displayPath}:
46322
46309
  callId: `client-read-${userMessageTimestamp}`,
46323
46310
  name: readManyFilesTool.displayName,
46324
46311
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46325
- status: CoreToolCallStatus.Error,
46312
+ status: "error" /* Error */,
46326
46313
  isClientInitiated: true,
46327
46314
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46328
46315
  confirmationDetails: void 0
@@ -49551,7 +49538,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49551
49538
  if (wasRaw) {
49552
49539
  setRawMode?.(true);
49553
49540
  }
49554
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
49541
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49555
49542
  }
49556
49543
  }
49557
49544
 
@@ -52231,7 +52218,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52231
52218
  extension.name,
52232
52219
  installMetadata
52233
52220
  );
52234
- if (status === IntegrityDataStatus.INVALID) {
52221
+ if (status === "invalid" /* INVALID */) {
52235
52222
  throw new Error("Extension integrity cannot be verified");
52236
52223
  }
52237
52224
  } catch (e) {
@@ -54225,7 +54212,7 @@ var MultiFolderTrustDialog = ({
54225
54212
  if (choice === 1 /* YES_AND_REMEMBER */) {
54226
54213
  await trustedFolders.setValue(
54227
54214
  expandedPath,
54228
- TrustLevel.TRUST_FOLDER
54215
+ "TRUST_FOLDER" /* TRUST_FOLDER */
54229
54216
  );
54230
54217
  }
54231
54218
  workspaceContext.addDirectory(expandedPath);
@@ -55518,7 +55505,7 @@ var clearCommand = {
55518
55505
  const config = context.services.agentContext?.config;
55519
55506
  const hookSystem = config?.getHookSystem();
55520
55507
  if (hookSystem) {
55521
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
55508
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
55522
55509
  }
55523
55510
  config?.injectionService.clear();
55524
55511
  let newSessionId;
@@ -55535,7 +55522,7 @@ var clearCommand = {
55535
55522
  }
55536
55523
  let result;
55537
55524
  if (hookSystem) {
55538
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
55525
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
55539
55526
  }
55540
55527
  await new Promise((resolve8) => setImmediate(resolve8));
55541
55528
  if (config) {
@@ -58391,7 +58378,7 @@ var Footer = () => {
58391
58378
  case "auth": {
58392
58379
  if (!settings.merged.ui.showUserIdentity) break;
58393
58380
  if (!authType) break;
58394
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
58381
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
58395
58382
  addCol(
58396
58383
  id,
58397
58384
  header,
@@ -60138,12 +60125,12 @@ import path27 from "node:path";
60138
60125
  function getIdeStatusMessage(ideClient) {
60139
60126
  const connection = ideClient.getConnectionStatus();
60140
60127
  switch (connection.status) {
60141
- case IDEConnectionStatus.Connected:
60128
+ case "connected" /* Connected */:
60142
60129
  return {
60143
60130
  messageType: "info",
60144
60131
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
60145
60132
  };
60146
- case IDEConnectionStatus.Connecting:
60133
+ case "connecting" /* Connecting */:
60147
60134
  return {
60148
60135
  messageType: "info",
60149
60136
  content: `\u{1F7E1} Connecting...`
@@ -60184,7 +60171,7 @@ ${infoMessage}`;
60184
60171
  async function getIdeStatusMessageWithFiles(ideClient) {
60185
60172
  const connection = ideClient.getConnectionStatus();
60186
60173
  switch (connection.status) {
60187
- case IDEConnectionStatus.Connected: {
60174
+ case "connected" /* Connected */: {
60188
60175
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
60189
60176
  const context = ideContextStore.get();
60190
60177
  const openFiles = context?.workspaceState?.openFiles;
@@ -60196,7 +60183,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
60196
60183
  content
60197
60184
  };
60198
60185
  }
60199
- case IDEConnectionStatus.Connecting:
60186
+ case "connecting" /* Connecting */:
60200
60187
  return {
60201
60188
  messageType: "info",
60202
60189
  content: `\u{1F7E1} Connecting...`
@@ -60218,7 +60205,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
60218
60205
  const ideClient = await IdeClient.getInstance();
60219
60206
  if (value) {
60220
60207
  await ideClient.connect(options);
60221
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
60208
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
60222
60209
  } else {
60223
60210
  await ideClient.disconnect();
60224
60211
  }
@@ -60306,7 +60293,7 @@ var ideCommand = async () => {
60306
60293
  logToConsole: false
60307
60294
  }
60308
60295
  );
60309
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
60296
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
60310
60297
  break;
60311
60298
  }
60312
60299
  await new Promise((resolve8) => setTimeout(resolve8, 500));
@@ -60383,7 +60370,7 @@ var ideCommand = async () => {
60383
60370
  }
60384
60371
  };
60385
60372
  const { status } = ideClient.getConnectionStatus();
60386
- const isConnected = status === IDEConnectionStatus.Connected;
60373
+ const isConnected = status === "connected" /* Connected */;
60387
60374
  if (isConnected) {
60388
60375
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
60389
60376
  } else {
@@ -60483,13 +60470,13 @@ Use /mcp auth <server-name> to authenticate.`
60483
60470
  const displayListener = (message) => {
60484
60471
  context.ui.addItem({ type: "info", text: message });
60485
60472
  };
60486
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
60473
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
60487
60474
  try {
60488
60475
  context.ui.addItem({
60489
60476
  type: "info",
60490
60477
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60491
60478
  });
60492
- const { MCPOAuthProvider } = await import("./dist-SXIB7Y3D.js");
60479
+ const { MCPOAuthProvider } = await import("./core-O5TD6NYP.js");
60493
60480
  let oauthConfig = server.oauth;
60494
60481
  if (!oauthConfig) {
60495
60482
  oauthConfig = { enabled: false };
@@ -60526,7 +60513,7 @@ Use /mcp auth <server-name> to authenticate.`
60526
60513
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
60527
60514
  };
60528
60515
  } finally {
60529
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
60516
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
60530
60517
  }
60531
60518
  },
60532
60519
  completion: async (context, partialArg) => {
@@ -60572,10 +60559,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
60572
60559
  }
60573
60560
  const serverNames = Object.keys(mcpServers);
60574
60561
  const connectingServers = serverNames.filter(
60575
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
60562
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
60576
60563
  );
60577
60564
  const discoveryState = getMCPDiscoveryState();
60578
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
60565
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
60579
60566
  const allTools = toolRegistry.getAllTools();
60580
60567
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
60581
60568
  const promptRegistry = config.getPromptRegistry();
@@ -75979,7 +75966,7 @@ Return a JSON object with:
75979
75966
  },
75980
75967
  abortSignal: new AbortController().signal,
75981
75968
  promptId: "triage-duplicates",
75982
- role: LlmRole.UTILITY_TOOL
75969
+ role: "utility_tool" /* UTILITY_TOOL */
75983
75970
  });
75984
75971
  const rec = response;
75985
75972
  let canonical;
@@ -76813,7 +76800,7 @@ Return a JSON object with:
76813
76800
  },
76814
76801
  abortSignal: abortControllerRef.current.signal,
76815
76802
  promptId: "triage-issues",
76816
- role: LlmRole.UTILITY_TOOL
76803
+ role: "utility_tool" /* UTILITY_TOOL */
76817
76804
  });
76818
76805
  return response;
76819
76806
  },
@@ -77387,8 +77374,8 @@ var planCommand = {
77387
77374
  return;
77388
77375
  }
77389
77376
  const previousApprovalMode = config.getApprovalMode();
77390
- config.setApprovalMode(ApprovalMode.PLAN);
77391
- if (previousApprovalMode !== ApprovalMode.PLAN) {
77377
+ config.setApprovalMode("plan" /* PLAN */);
77378
+ if (previousApprovalMode !== "plan" /* PLAN */) {
77392
77379
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
77393
77380
  }
77394
77381
  if (context.invocation?.args) {
@@ -77447,10 +77434,10 @@ var categorizeRulesByMode = (rules) => {
77447
77434
  rules.forEach((rule) => {
77448
77435
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
77449
77436
  const modeSet = new Set(modes);
77450
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
77451
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
77452
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
77453
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
77437
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
77438
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
77439
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
77440
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
77454
77441
  });
77455
77442
  return result;
77456
77443
  };
@@ -78799,7 +78786,7 @@ var upgradeCommand = {
78799
78786
  action: async (context) => {
78800
78787
  const config = context.services.agentContext?.config;
78801
78788
  const authType = config?.getContentGeneratorConfig()?.authType;
78802
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
78789
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
78803
78790
  return {
78804
78791
  type: "message",
78805
78792
  messageType: "error",
@@ -79001,7 +78988,7 @@ var BuiltinCommandLoader = class {
79001
78988
  vimCommand,
79002
78989
  setupGithubCommand,
79003
78990
  terminalSetupCommand,
79004
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
78991
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
79005
78992
  ];
79006
78993
  handle?.end();
79007
78994
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -79144,11 +79131,11 @@ var ShellProcessor = class {
79144
79131
  },
79145
79132
  void 0
79146
79133
  );
79147
- if (decision === PolicyDecision.DENY) {
79134
+ if (decision === "deny" /* DENY */) {
79148
79135
  throw new Error(
79149
79136
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
79150
79137
  );
79151
- } else if (decision === PolicyDecision.ASK_USER) {
79138
+ } else if (decision === "ask_user" /* ASK_USER */) {
79152
79139
  commandsToConfirm.add(command);
79153
79140
  }
79154
79141
  }
@@ -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-RZLEHIPO.js";
4
+ } from "./chunk-BSQN7W2F.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -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-JMNFQX6P.js";
5
+ } from "./chunk-HMR2JSPA.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-M67MTWAA.js";
17
+ } from "./chunk-DYY5TRG5.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-F73F75XM.js";
20
+ } from "./chunk-UHHRGNIO.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";