@google/gemini-cli 0.37.0-preview.1 → 0.37.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 (29) hide show
  1. package/bundle/{chunk-43UUP7VO.js → chunk-2LDNSLWJ.js} +4 -4
  2. package/bundle/{chunk-WZB27TDF.js → chunk-4FL34AF3.js} +5 -5
  3. package/bundle/{chunk-ZB4UQCX5.js → chunk-HPS5HLVY.js} +11023 -5867
  4. package/bundle/{chunk-VSXV53B7.js → chunk-JCJR4TJP.js} +4 -4
  5. package/bundle/{chunk-33B2YA3V.js → chunk-LP2WYGS4.js} +5 -5
  6. package/bundle/{chunk-TSSVZ7RZ.js → chunk-ZYD45INQ.js} +61 -73
  7. package/bundle/{core-RMRIZ3E5.js → core-7MVFLCVM.js} +1 -1
  8. package/bundle/{dist-TCCEQJDV.js → core-IAVFIQIJ.js} +2 -2
  9. package/bundle/{devtoolsService-2ULAA43E.js → devtoolsService-QN6DTOQ4.js} +2 -2
  10. package/bundle/{devtoolsService-SZYXXACN.js → devtoolsService-QPXA3DYV.js} +2 -2
  11. package/bundle/{devtoolsService-AWVCG2N2.js → devtoolsService-QQAGVUAL.js} +4 -5
  12. package/bundle/{dist-4FKFY6XB.js → dist-OPAGMUAE.js} +1 -1
  13. package/bundle/docs/cli/settings.md +33 -33
  14. package/bundle/docs/reference/configuration.md +2 -2
  15. package/bundle/gemini.js +6 -6
  16. package/bundle/{interactiveCli-D2MTTARB.js → interactiveCli-3PZKICTV.js} +3 -3
  17. package/bundle/{interactiveCli-24VGI5NV.js → interactiveCli-QUKUV3RI.js} +3 -3
  18. package/bundle/{interactiveCli-DX76MWWT.js → interactiveCli-UE3SKHMT.js} +247 -264
  19. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  20. package/bundle/{oauth2-provider-FZUTS3SV.js → oauth2-provider-4KPORHHZ.js} +1 -1
  21. package/bundle/{oauth2-provider-N73M7SQI.js → oauth2-provider-5PPDZYRY.js} +73 -39
  22. package/bundle/{oauth2-provider-K25DXIWC.js → oauth2-provider-NGPDVZHB.js} +1 -1
  23. package/package.json +1 -1
  24. package/bundle/chunk-BLL44IGV.js +0 -98376
  25. package/bundle/chunk-PPWUMHZT.js +0 -356418
  26. package/bundle/devtoolsService-IWSTJYRB.js +0 -871
  27. package/bundle/dist-PRDBNGX2.js +0 -1942
  28. package/bundle/interactiveCli-VNDJAKWG.js +0 -50355
  29. package/bundle/oauth2-provider-RMDEEXSP.js +0 -237
@@ -250894,8 +250894,8 @@ var Float64Vector = import_vector.default.Float64Vector;
250894
250894
  var PointerVector = import_vector.default.PointerVector;
250895
250895
 
250896
250896
  // packages/core/dist/src/generated/git-commit.js
250897
- var GIT_COMMIT_INFO = "24810f97e";
250898
- var CLI_VERSION = "0.37.0-preview.0";
250897
+ var GIT_COMMIT_INFO = "ae9d4e16a";
250898
+ var CLI_VERSION = "0.37.0";
250899
250899
 
250900
250900
  // packages/core/dist/src/ide/detect-ide.js
250901
250901
  var IDE_DEFINITIONS = {
@@ -276676,7 +276676,7 @@ function getVersion() {
276676
276676
  }
276677
276677
  versionPromise = (async () => {
276678
276678
  const pkgJson = await getPackageJson(__dirname4);
276679
- return "0.37.0-preview.0";
276679
+ return "0.37.0";
276680
276680
  })();
276681
276681
  return versionPromise;
276682
276682
  }
@@ -328861,7 +328861,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
328861
328861
  return provider;
328862
328862
  }
328863
328863
  case "oauth2": {
328864
- const { OAuth2AuthProvider } = await import("./oauth2-provider-RMDEEXSP.js");
328864
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-NGPDVZHB.js");
328865
328865
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
328866
328866
  await provider.initialize();
328867
328867
  return provider;
@@ -167,7 +167,7 @@ import {
167
167
  tokenLimit,
168
168
  uiTelemetryService,
169
169
  yellowBright
170
- } from "./chunk-PPWUMHZT.js";
170
+ } from "./chunk-JCJR4TJP.js";
171
171
  import {
172
172
  ApprovalMode,
173
173
  CoreEvent,
@@ -59633,8 +59633,8 @@ var SETTINGS_SCHEMA = {
59633
59633
  label: "Loading Phrases",
59634
59634
  category: "UI",
59635
59635
  requiresRestart: false,
59636
- default: "tips",
59637
- description: "What to show while the model is working: tips, witty comments, both, or nothing.",
59636
+ default: "off",
59637
+ description: "What to show while the model is working: tips, witty comments, all, or off.",
59638
59638
  showInDialog: true,
59639
59639
  options: [
59640
59640
  { value: "tips", label: "Tips" },
@@ -88067,7 +88067,7 @@ var authCommand = {
88067
88067
  import process34 from "node:process";
88068
88068
 
88069
88069
  // packages/cli/src/generated/git-commit.ts
88070
- var GIT_COMMIT_INFO = "24810f97e";
88070
+ var GIT_COMMIT_INFO = "352bbe149";
88071
88071
 
88072
88072
  // packages/cli/src/ui/utils/historyExportUtils.ts
88073
88073
  import * as fsPromises2 from "node:fs/promises";
@@ -93566,7 +93566,7 @@ Use /mcp auth <server-name> to authenticate.`
93566
93566
  type: "info",
93567
93567
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
93568
93568
  });
93569
- const { MCPOAuthProvider } = await import("./dist-PRDBNGX2.js");
93569
+ const { MCPOAuthProvider } = await import("./dist-OPAGMUAE.js");
93570
93570
  let oauthConfig = server.oauth;
93571
93571
  if (!oauthConfig) {
93572
93572
  oauthConfig = { enabled: false };
@@ -2,9 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  AsyncFzf,
4
4
  AuthProviderType,
5
- AuthType,
6
5
  Config,
7
- CoreToolCallStatus,
8
6
  DEFAULT_MODEL_CONFIGS,
9
7
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
10
8
  ExitCodes,
@@ -16,26 +14,17 @@ import {
16
14
  ExtensionUninstallEvent,
17
15
  ExtensionUpdateEvent,
18
16
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
19
- HookType,
20
- IDEConnectionStatus,
21
17
  INITIAL_HISTORY_LENGTH,
22
18
  IdeClient,
23
19
  IdeConnectionEvent,
24
- IdeConnectionType,
25
- IntegrityDataStatus,
26
20
  KeychainTokenStorage,
27
- LlmRole,
28
- MCPDiscoveryState,
29
21
  MCPOAuthTokenStorage,
30
- MCPServerStatus,
31
22
  MaxBufferError,
32
23
  ModelSlashCommandEvent,
33
24
  ProjectIdRequiredError,
34
25
  ReadManyFilesTool,
35
26
  RewindEvent,
36
27
  SESSION_FILE_PREFIX,
37
- SessionEndReason,
38
- SessionStartSource,
39
28
  ShellExecutionService,
40
29
  StartSessionEvent,
41
30
  TOOL_OUTPUTS_DIR,
@@ -167,14 +156,13 @@ import {
167
156
  tokenLimit,
168
157
  uiTelemetryService,
169
158
  yellowBright
170
- } from "./chunk-ZB4UQCX5.js";
159
+ } from "./chunk-2LDNSLWJ.js";
171
160
  import {
172
161
  ApprovalMode,
173
162
  CoreEvent,
174
163
  DiscoveredMCPTool,
175
164
  FatalConfigError,
176
165
  GEMINI_DIR,
177
- PolicyDecision,
178
166
  REFERENCE_CONTENT_END,
179
167
  REFERENCE_CONTENT_START,
180
168
  Storage,
@@ -196,7 +184,7 @@ import {
196
184
  shortenPath,
197
185
  tildeifyPath,
198
186
  unescapePath
199
- } from "./chunk-JS5WSGB2.js";
187
+ } from "./chunk-5OOT636U.js";
200
188
  import {
201
189
  AppEvent,
202
190
  appEvents
@@ -43473,19 +43461,19 @@ var require_cli_spinners = __commonJS({
43473
43461
  var import_react = __toESM(require_react(), 1);
43474
43462
  function mapCoreStatusToDisplayStatus(coreStatus) {
43475
43463
  switch (coreStatus) {
43476
- case CoreToolCallStatus.Validating:
43464
+ case "validating" /* Validating */:
43477
43465
  return "Pending" /* Pending */;
43478
- case CoreToolCallStatus.AwaitingApproval:
43466
+ case "awaiting_approval" /* AwaitingApproval */:
43479
43467
  return "Confirming" /* Confirming */;
43480
- case CoreToolCallStatus.Executing:
43468
+ case "executing" /* Executing */:
43481
43469
  return "Executing" /* Executing */;
43482
- case CoreToolCallStatus.Success:
43470
+ case "success" /* Success */:
43483
43471
  return "Success" /* Success */;
43484
- case CoreToolCallStatus.Cancelled:
43472
+ case "cancelled" /* Cancelled */:
43485
43473
  return "Canceled" /* Canceled */;
43486
- case CoreToolCallStatus.Error:
43474
+ case "error" /* Error */:
43487
43475
  return "Error" /* Error */;
43488
- case CoreToolCallStatus.Scheduled:
43476
+ case "scheduled" /* Scheduled */:
43489
43477
  return "Pending" /* Pending */;
43490
43478
  default:
43491
43479
  return checkExhaustive(coreStatus);
@@ -58625,7 +58613,7 @@ function convertSessionToHistoryFormats(messages) {
58625
58613
  name: tool.displayName || tool.name,
58626
58614
  description: tool.description || "",
58627
58615
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
58628
- status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
58616
+ status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
58629
58617
  resultDisplay: tool.resultDisplay,
58630
58618
  confirmationDetails: void 0
58631
58619
  }))
@@ -59633,8 +59621,8 @@ var SETTINGS_SCHEMA = {
59633
59621
  label: "Loading Phrases",
59634
59622
  category: "UI",
59635
59623
  requiresRestart: false,
59636
- default: "tips",
59637
- description: "What to show while the model is working: tips, witty comments, both, or nothing.",
59624
+ default: "off",
59625
+ description: "What to show while the model is working: tips, witty comments, all, or off.",
59638
59626
  showInDialog: true,
59639
59627
  options: [
59640
59628
  { value: "tips", label: "Tips" },
@@ -62582,8 +62570,8 @@ var LoadedSettings = class {
62582
62570
  // React will pass a listener fn into this subscribe fn
62583
62571
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
62584
62572
  subscribe(listener) {
62585
- coreEvents.on(CoreEvent.SettingsChanged, listener);
62586
- return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
62573
+ coreEvents.on("settings-changed" /* SettingsChanged */, listener);
62574
+ return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
62587
62575
  }
62588
62576
  getSnapshot() {
62589
62577
  return this._snapshot;
@@ -68046,7 +68034,7 @@ var import_react34 = __toESM(require_react(), 1);
68046
68034
  function useIdeTrustListener() {
68047
68035
  const settings = useSettings();
68048
68036
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
68049
- IDEConnectionStatus.Disconnected
68037
+ "disconnected" /* Disconnected */
68050
68038
  );
68051
68039
  const previousTrust = (0, import_react34.useRef)(void 0);
68052
68040
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -68076,7 +68064,7 @@ function useIdeTrustListener() {
68076
68064
  };
68077
68065
  }, []);
68078
68066
  const getSnapshot = () => {
68079
- if (connectionStatus !== IDEConnectionStatus.Connected) {
68067
+ if (connectionStatus !== "connected" /* Connected */) {
68080
68068
  return void 0;
68081
68069
  }
68082
68070
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -73222,7 +73210,7 @@ Would you like to attempt to install via "git clone" instead?`
73222
73210
  newExtensionConfig.version,
73223
73211
  previousExtensionConfig.version,
73224
73212
  installMetadata.type,
73225
- CoreToolCallStatus.Success
73213
+ "success" /* Success */
73226
73214
  )
73227
73215
  );
73228
73216
  if (newExtensionName !== previousName) {
@@ -73245,7 +73233,7 @@ Would you like to attempt to install via "git clone" instead?`
73245
73233
  getExtensionId(newExtensionConfig, installMetadata),
73246
73234
  newExtensionConfig.version,
73247
73235
  installMetadata.type,
73248
- CoreToolCallStatus.Success
73236
+ "success" /* Success */
73249
73237
  )
73250
73238
  );
73251
73239
  await this.enableExtension(
@@ -73278,7 +73266,7 @@ Would you like to attempt to install via "git clone" instead?`
73278
73266
  newExtensionConfig?.version ?? "",
73279
73267
  previousExtensionConfig.version,
73280
73268
  installMetadata.type,
73281
- CoreToolCallStatus.Error
73269
+ "error" /* Error */
73282
73270
  )
73283
73271
  );
73284
73272
  } else {
@@ -73290,7 +73278,7 @@ Would you like to attempt to install via "git clone" instead?`
73290
73278
  extensionId ?? "",
73291
73279
  newExtensionConfig?.version ?? "",
73292
73280
  installMetadata.type,
73293
- CoreToolCallStatus.Error
73281
+ "error" /* Error */
73294
73282
  )
73295
73283
  );
73296
73284
  }
@@ -73321,7 +73309,7 @@ Would you like to attempt to install via "git clone" instead?`
73321
73309
  extension.name,
73322
73310
  hashValue(extension.name),
73323
73311
  extension.id,
73324
- CoreToolCallStatus.Success
73312
+ "success" /* Success */
73325
73313
  )
73326
73314
  );
73327
73315
  }
@@ -73591,7 +73579,7 @@ Would you like to attempt to install via "git clone" instead?`
73591
73579
  if (eventHooks) {
73592
73580
  for (const definition of eventHooks) {
73593
73581
  for (const hook of definition.hooks) {
73594
- if (hook.type === HookType.Command) {
73582
+ if (hook.type === "command" /* Command */) {
73595
73583
  hook.env = { ...hook.env, ...hookEnv };
73596
73584
  }
73597
73585
  }
@@ -74218,7 +74206,7 @@ async function readMcpResources(resourceParts, config, signal) {
74218
74206
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
74219
74207
  name: `resources/read (${resource.serverName})`,
74220
74208
  description: resource.uri,
74221
- status: CoreToolCallStatus.Success,
74209
+ status: "success" /* Success */,
74222
74210
  isClientInitiated: true,
74223
74211
  resultDisplay: `Successfully read resource ${resource.uri}`,
74224
74212
  confirmationDetails: void 0
@@ -74233,7 +74221,7 @@ async function readMcpResources(resourceParts, config, signal) {
74233
74221
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
74234
74222
  name: `resources/read (${resource.serverName})`,
74235
74223
  description: resource.uri,
74236
- status: CoreToolCallStatus.Error,
74224
+ status: "error" /* Error */,
74237
74225
  isClientInitiated: true,
74238
74226
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
74239
74227
  confirmationDetails: void 0
@@ -74258,7 +74246,7 @@ Content from @${result.uri}:
74258
74246
  }
74259
74247
  if (hasError) {
74260
74248
  const firstError = displays.find(
74261
- (d) => d.status === CoreToolCallStatus.Error
74249
+ (d) => d.status === "error" /* Error */
74262
74250
  );
74263
74251
  return {
74264
74252
  parts: [],
@@ -74294,7 +74282,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
74294
74282
  callId: `client-read-${userMessageTimestamp}`,
74295
74283
  name: readManyFilesTool.displayName,
74296
74284
  description: invocation.getDescription(),
74297
- status: CoreToolCallStatus.Success,
74285
+ status: "success" /* Success */,
74298
74286
  isClientInitiated: true,
74299
74287
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
74300
74288
  confirmationDetails: void 0
@@ -74341,7 +74329,7 @@ Content from @${displayPath}:
74341
74329
  callId: `client-read-${userMessageTimestamp}`,
74342
74330
  name: readManyFilesTool.displayName,
74343
74331
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
74344
- status: CoreToolCallStatus.Error,
74332
+ status: "error" /* Error */,
74345
74333
  isClientInitiated: true,
74346
74334
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
74347
74335
  confirmationDetails: void 0
@@ -82553,7 +82541,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
82553
82541
  if (wasRaw) {
82554
82542
  setRawMode?.(true);
82555
82543
  }
82556
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
82544
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
82557
82545
  }
82558
82546
  }
82559
82547
 
@@ -85232,7 +85220,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
85232
85220
  extension.name,
85233
85221
  installMetadata
85234
85222
  );
85235
- if (status === IntegrityDataStatus.INVALID) {
85223
+ if (status === "invalid" /* INVALID */) {
85236
85224
  throw new Error("Extension integrity cannot be verified");
85237
85225
  }
85238
85226
  } catch (e) {
@@ -86069,7 +86057,7 @@ async function initializeApp(config, settings) {
86069
86057
  await ideClient.connect();
86070
86058
  logIdeConnection(
86071
86059
  config,
86072
- new IdeConnectionEvent(IdeConnectionType.START)
86060
+ new IdeConnectionEvent("start" /* START */)
86073
86061
  );
86074
86062
  }).catch((e) => {
86075
86063
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -86087,16 +86075,16 @@ async function initializeApp(config, settings) {
86087
86075
  // packages/cli/src/config/auth.ts
86088
86076
  function validateAuthMethod(authMethod) {
86089
86077
  loadEnvironment(loadSettings().merged, process.cwd());
86090
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
86078
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
86091
86079
  return null;
86092
86080
  }
86093
- if (authMethod === AuthType.USE_GEMINI) {
86081
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
86094
86082
  if (!process.env["GEMINI_API_KEY"]) {
86095
86083
  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)!";
86096
86084
  }
86097
86085
  return null;
86098
86086
  }
86099
- if (authMethod === AuthType.USE_VERTEX_AI) {
86087
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
86100
86088
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
86101
86089
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
86102
86090
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -88067,7 +88055,7 @@ var authCommand = {
88067
88055
  import process34 from "node:process";
88068
88056
 
88069
88057
  // packages/cli/src/generated/git-commit.ts
88070
- var GIT_COMMIT_INFO = "7cd6dde12";
88058
+ var GIT_COMMIT_INFO = "ae9d4e16a";
88071
88059
 
88072
88060
  // packages/cli/src/ui/utils/historyExportUtils.ts
88073
88061
  import * as fsPromises2 from "node:fs/promises";
@@ -88580,7 +88568,7 @@ var clearCommand = {
88580
88568
  const config = context.services.agentContext?.config;
88581
88569
  const hookSystem = config?.getHookSystem();
88582
88570
  if (hookSystem) {
88583
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
88571
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
88584
88572
  }
88585
88573
  config?.injectionService.clear();
88586
88574
  let newSessionId;
@@ -88597,7 +88585,7 @@ var clearCommand = {
88597
88585
  }
88598
88586
  let result;
88599
88587
  if (hookSystem) {
88600
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
88588
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
88601
88589
  }
88602
88590
  await new Promise((resolve9) => setImmediate(resolve9));
88603
88591
  if (config) {
@@ -91463,7 +91451,7 @@ var Footer = ({
91463
91451
  case "auth": {
91464
91452
  if (!settings.merged.ui.showUserIdentity) break;
91465
91453
  if (!authType) break;
91466
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
91454
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
91467
91455
  addCol(
91468
91456
  id,
91469
91457
  header,
@@ -93215,12 +93203,12 @@ import path34 from "node:path";
93215
93203
  function getIdeStatusMessage(ideClient) {
93216
93204
  const connection = ideClient.getConnectionStatus();
93217
93205
  switch (connection.status) {
93218
- case IDEConnectionStatus.Connected:
93206
+ case "connected" /* Connected */:
93219
93207
  return {
93220
93208
  messageType: "info",
93221
93209
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
93222
93210
  };
93223
- case IDEConnectionStatus.Connecting:
93211
+ case "connecting" /* Connecting */:
93224
93212
  return {
93225
93213
  messageType: "info",
93226
93214
  content: `\u{1F7E1} Connecting...`
@@ -93261,7 +93249,7 @@ ${infoMessage}`;
93261
93249
  async function getIdeStatusMessageWithFiles(ideClient) {
93262
93250
  const connection = ideClient.getConnectionStatus();
93263
93251
  switch (connection.status) {
93264
- case IDEConnectionStatus.Connected: {
93252
+ case "connected" /* Connected */: {
93265
93253
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
93266
93254
  const context = ideContextStore.get();
93267
93255
  const openFiles = context?.workspaceState?.openFiles;
@@ -93273,7 +93261,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
93273
93261
  content
93274
93262
  };
93275
93263
  }
93276
- case IDEConnectionStatus.Connecting:
93264
+ case "connecting" /* Connecting */:
93277
93265
  return {
93278
93266
  messageType: "info",
93279
93267
  content: `\u{1F7E1} Connecting...`
@@ -93295,7 +93283,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
93295
93283
  const ideClient = await IdeClient.getInstance();
93296
93284
  if (value) {
93297
93285
  await ideClient.connect(options);
93298
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
93286
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
93299
93287
  } else {
93300
93288
  await ideClient.disconnect();
93301
93289
  }
@@ -93383,7 +93371,7 @@ var ideCommand = async () => {
93383
93371
  logToConsole: false
93384
93372
  }
93385
93373
  );
93386
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
93374
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
93387
93375
  break;
93388
93376
  }
93389
93377
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -93460,7 +93448,7 @@ var ideCommand = async () => {
93460
93448
  }
93461
93449
  };
93462
93450
  const { status } = ideClient.getConnectionStatus();
93463
- const isConnected2 = status === IDEConnectionStatus.Connected;
93451
+ const isConnected2 = status === "connected" /* Connected */;
93464
93452
  if (isConnected2) {
93465
93453
  ideSlashCommand.subCommands = [statusCommand, disableCommand5];
93466
93454
  } else {
@@ -93560,13 +93548,13 @@ Use /mcp auth <server-name> to authenticate.`
93560
93548
  const displayListener = (message) => {
93561
93549
  context.ui.addItem({ type: "info", text: message });
93562
93550
  };
93563
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
93551
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
93564
93552
  try {
93565
93553
  context.ui.addItem({
93566
93554
  type: "info",
93567
93555
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
93568
93556
  });
93569
- const { MCPOAuthProvider } = await import("./dist-TCCEQJDV.js");
93557
+ const { MCPOAuthProvider } = await import("./core-7MVFLCVM.js");
93570
93558
  let oauthConfig = server.oauth;
93571
93559
  if (!oauthConfig) {
93572
93560
  oauthConfig = { enabled: false };
@@ -93603,7 +93591,7 @@ Use /mcp auth <server-name> to authenticate.`
93603
93591
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
93604
93592
  };
93605
93593
  } finally {
93606
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
93594
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
93607
93595
  }
93608
93596
  },
93609
93597
  completion: async (context, partialArg) => {
@@ -93649,10 +93637,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
93649
93637
  }
93650
93638
  const serverNames = Object.keys(mcpServers);
93651
93639
  const connectingServers = serverNames.filter(
93652
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
93640
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
93653
93641
  );
93654
93642
  const discoveryState = getMCPDiscoveryState();
93655
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
93643
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
93656
93644
  const allTools = toolRegistry.getAllTools();
93657
93645
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
93658
93646
  const promptRegistry = config.getPromptRegistry();
@@ -94257,7 +94245,7 @@ Return a JSON object with:
94257
94245
  },
94258
94246
  abortSignal: new AbortController().signal,
94259
94247
  promptId: "triage-duplicates",
94260
- role: LlmRole.UTILITY_TOOL
94248
+ role: "utility_tool" /* UTILITY_TOOL */
94261
94249
  });
94262
94250
  const rec = response;
94263
94251
  let canonical;
@@ -95091,7 +95079,7 @@ Return a JSON object with:
95091
95079
  },
95092
95080
  abortSignal: abortControllerRef.current.signal,
95093
95081
  promptId: "triage-issues",
95094
- role: LlmRole.UTILITY_TOOL
95082
+ role: "utility_tool" /* UTILITY_TOOL */
95095
95083
  });
95096
95084
  return response;
95097
95085
  },
@@ -95665,8 +95653,8 @@ var planCommand = {
95665
95653
  return;
95666
95654
  }
95667
95655
  const previousApprovalMode = config.getApprovalMode();
95668
- config.setApprovalMode(ApprovalMode.PLAN);
95669
- if (previousApprovalMode !== ApprovalMode.PLAN) {
95656
+ config.setApprovalMode("plan" /* PLAN */);
95657
+ if (previousApprovalMode !== "plan" /* PLAN */) {
95670
95658
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
95671
95659
  }
95672
95660
  if (context.invocation?.args) {
@@ -95725,10 +95713,10 @@ var categorizeRulesByMode = (rules) => {
95725
95713
  rules.forEach((rule) => {
95726
95714
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
95727
95715
  const modeSet = new Set(modes);
95728
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
95729
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
95730
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
95731
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
95716
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
95717
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
95718
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
95719
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
95732
95720
  });
95733
95721
  return result;
95734
95722
  };
@@ -97073,7 +97061,7 @@ var upgradeCommand = {
97073
97061
  action: async (context) => {
97074
97062
  const config = context.services.agentContext?.config;
97075
97063
  const authType = config?.getContentGeneratorConfig()?.authType;
97076
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
97064
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
97077
97065
  return {
97078
97066
  type: "message",
97079
97067
  messageType: "error",
@@ -97243,7 +97231,7 @@ var BuiltinCommandLoader = class {
97243
97231
  vimCommand,
97244
97232
  setupGithubCommand,
97245
97233
  terminalSetupCommand,
97246
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
97234
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
97247
97235
  ];
97248
97236
  handle?.end();
97249
97237
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -97386,11 +97374,11 @@ var ShellProcessor = class {
97386
97374
  },
97387
97375
  void 0
97388
97376
  );
97389
- if (decision === PolicyDecision.DENY) {
97377
+ if (decision === "deny" /* DENY */) {
97390
97378
  throw new Error(
97391
97379
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
97392
97380
  );
97393
- } else if (decision === PolicyDecision.ASK_USER) {
97381
+ } else if (decision === "ask_user" /* ASK_USER */) {
97394
97382
  commandsToConfirm.add(command);
97395
97383
  }
97396
97384
  }
@@ -724,7 +724,7 @@ import {
724
724
  wrapInAccountChooser,
725
725
  writeToStderr,
726
726
  writeToStdout
727
- } from "./chunk-43UUP7VO.js";
727
+ } from "./chunk-2LDNSLWJ.js";
728
728
  import {
729
729
  ACTIVATE_SKILL_TOOL_NAME,
730
730
  ALL_BUILTIN_TOOL_NAMES,
@@ -724,7 +724,7 @@ import {
724
724
  wrapInAccountChooser,
725
725
  writeToStderr,
726
726
  writeToStdout
727
- } from "./chunk-ZB4UQCX5.js";
727
+ } from "./chunk-HPS5HLVY.js";
728
728
  import {
729
729
  ACTIVATE_SKILL_TOOL_NAME,
730
730
  ALL_BUILTIN_TOOL_NAMES,
@@ -965,7 +965,7 @@ import {
965
965
  tmpdir,
966
966
  toFriendlyError,
967
967
  unescapePath
968
- } from "./chunk-JS5WSGB2.js";
968
+ } from "./chunk-5OOT636U.js";
969
969
  import "./chunk-664ZODQF.js";
970
970
  import "./chunk-RJTRUG2J.js";
971
971
  import {
@@ -1,5 +1,5 @@
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
- import "./chunk-VSXV53B7.js";
2
+ import "./chunk-JCJR4TJP.js";
3
3
  import {
4
4
  CoreEvent,
5
5
  coreEvents,
@@ -837,7 +837,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
837
837
  return;
838
838
  }
839
839
  try {
840
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-4FKFY6XB.js");
840
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-OPAGMUAE.js");
841
841
  const url = await startDevToolsServer(config);
842
842
  if (shouldLaunchBrowser()) {
843
843
  try {
@@ -1,5 +1,5 @@
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
- import "./chunk-43UUP7VO.js";
2
+ import "./chunk-2LDNSLWJ.js";
3
3
  import {
4
4
  coreEvents,
5
5
  debugLogger
@@ -836,7 +836,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
836
836
  return;
837
837
  }
838
838
  try {
839
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-RMRIZ3E5.js");
839
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-7MVFLCVM.js");
840
840
  const url = await startDevToolsServer(config);
841
841
  if (shouldLaunchBrowser()) {
842
842
  try {
@@ -1,10 +1,9 @@
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
- import "./chunk-PPWUMHZT.js";
2
+ import "./chunk-HPS5HLVY.js";
3
3
  import {
4
- CoreEvent,
5
4
  coreEvents,
6
5
  debugLogger
7
- } from "./chunk-JS5WSGB2.js";
6
+ } from "./chunk-5OOT636U.js";
8
7
  import {
9
8
  wrapper_default
10
9
  } from "./chunk-664ZODQF.js";
@@ -667,7 +666,7 @@ var bridgeAttached = false;
667
666
  function bridgeCoreEvents(capture) {
668
667
  if (bridgeAttached) return;
669
668
  bridgeAttached = true;
670
- coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
669
+ coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
671
670
  capture.logConsole(payload);
672
671
  });
673
672
  }
@@ -837,7 +836,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
837
836
  return;
838
837
  }
839
838
  try {
840
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-PRDBNGX2.js");
839
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-IAVFIQIJ.js");
841
840
  const url = await startDevToolsServer(config);
842
841
  if (shouldLaunchBrowser()) {
843
842
  try {
@@ -724,7 +724,7 @@ import {
724
724
  wrapInAccountChooser,
725
725
  writeToStderr,
726
726
  writeToStdout
727
- } from "./chunk-VSXV53B7.js";
727
+ } from "./chunk-JCJR4TJP.js";
728
728
  import {
729
729
  ACTIVATE_SKILL_TOOL_NAME,
730
730
  ALL_BUILTIN_TOOL_NAMES,