@google/gemini-cli 0.66.0-nightly.20261019.ged96faedf → 0.66.0-preview.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 (68) hide show
  1. package/bundle/{chunk-NU74STQ5.js → chunk-3IDBGHHH.js} +9 -1
  2. package/bundle/{chunk-6P5R6RYB.js → chunk-3RUC6ZA6.js} +1 -1
  3. package/bundle/{chunk-R7UPATQC.js → chunk-5ILL3HFF.js} +2 -2
  4. package/bundle/{chunk-L5EUR3NN.js → chunk-7KFTNUNE.js} +9 -1
  5. package/bundle/{chunk-G3S7WMRG.js → chunk-BAGLLEOA.js} +237 -141
  6. package/bundle/{chunk-J5QPCO3J.js → chunk-D4FKL6WQ.js} +7 -7
  7. package/bundle/{chunk-QCWGLPCO.js → chunk-D6WVFS5S.js} +292 -161
  8. package/bundle/{chunk-NAPT3FAL.js → chunk-EONTJM32.js} +7 -7
  9. package/bundle/{chunk-LPQB7ZQE.js → chunk-EZIYD2G6.js} +58 -71
  10. package/bundle/{chunk-ERBSM2HU.js → chunk-GA6BNFA6.js} +3 -3
  11. package/bundle/{chunk-AWUJQFYP.js → chunk-HH6UGBJR.js} +1 -1
  12. package/bundle/{chunk-ZFQ347ZN.js → chunk-I6Q2CIAC.js} +15211 -8012
  13. package/bundle/{chunk-IDCWFZU3.js → chunk-ITTQBJIT.js} +1 -1
  14. package/bundle/{chunk-464WBVYM.js → chunk-LC5SKSCL.js} +1 -1
  15. package/bundle/{chunk-CTWJ3T77.js → chunk-OCM26AU2.js} +2 -2
  16. package/bundle/{chunk-5P6HIACT.js → chunk-OGLIOKXL.js} +3 -3
  17. package/bundle/{chunk-5VQUE3OF.js → chunk-PWTTZOSA.js} +1 -1
  18. package/bundle/{chunk-V5XDOSXJ.js → chunk-RJ3GGOMU.js} +13 -7
  19. package/bundle/{chunk-O5W3WYI5.js → chunk-SZE3LGYD.js} +1 -1
  20. package/bundle/{chunk-RE4V6I3G.js → chunk-TZZ34RGM.js} +1 -1
  21. package/bundle/{chunk-7UDRNCIH.js → chunk-VDKR3AIQ.js} +3 -3
  22. package/bundle/{chunk-YP27UYI4.js → chunk-VN6QPF5Z.js} +1 -1
  23. package/bundle/{chunk-GCW52DLB.js → chunk-XH7KGX2J.js} +2 -2
  24. package/bundle/{chunk-7K5J3ME2.js → chunk-Z3NAT6YU.js} +8 -9
  25. package/bundle/{cleanup-5DK3CVRM.js → cleanup-5UHD34BY.js} +2 -2
  26. package/bundle/{cleanup-6FAZDCL3.js → cleanup-D3DWTLIR.js} +2 -2
  27. package/bundle/{cleanup-WAU2KYGS.js → cleanup-GF4YFJWT.js} +2 -2
  28. package/bundle/{core-AGGXDQOT.js → core-CEUTCQ3Z.js} +3 -1
  29. package/bundle/{dist-2ELAEESC.js → core-GH3VFZSV.js} +3 -1
  30. package/bundle/{devtoolsService-UO6ZB72B.js → devtoolsService-3EKYJHGL.js} +95 -32
  31. package/bundle/{devtoolsService-FBTSVQ57.js → devtoolsService-KQTX22AU.js} +96 -34
  32. package/bundle/{devtoolsService-AWYBM7VP.js → devtoolsService-YPLYVNTF.js} +95 -32
  33. package/bundle/{dist-4PMK5N6W.js → dist-Q63VF7PG.js} +3 -1
  34. package/bundle/docs/cli/plan-mode.md +1 -1
  35. package/bundle/docs/tools/mcp-server.md +6 -0
  36. package/bundle/{gemini-GK2XZNXB.js → gemini-LRDBGCHF.js} +14 -14
  37. package/bundle/{gemini-OUEDCH4P.js → gemini-VE6EAOCY.js} +198 -214
  38. package/bundle/{gemini-DOXUDJDY.js → gemini-WV55NKMQ.js} +13 -13
  39. package/bundle/gemini.js +7 -7
  40. package/bundle/{interactiveCli-7LIKGDTJ.js → interactiveCli-3XUYDTSL.js} +10 -9
  41. package/bundle/{interactiveCli-TG7PGV4V.js → interactiveCli-S5K6P65K.js} +10 -9
  42. package/bundle/{interactiveCli-GZ4N4JS2.js → interactiveCli-U2CP5B64.js} +301 -319
  43. package/bundle/{liteRtServerManager-KAPXZ3EU.js → liteRtServerManager-HYOFIRWR.js} +4 -4
  44. package/bundle/{liteRtServerManager-KJI7ARTA.js → liteRtServerManager-KF2BIFPA.js} +4 -4
  45. package/bundle/{liteRtServerManager-MSJIWMWP.js → liteRtServerManager-RYZUX64K.js} +4 -4
  46. package/bundle/{oauth2-provider-RMF7U2UN.js → oauth2-provider-LVJMV7QY.js} +1 -1
  47. package/bundle/{oauth2-provider-OISPWSWH.js → oauth2-provider-O2MBVTUX.js} +1 -1
  48. package/bundle/{oauth2-provider-ZM5GWCNX.js → oauth2-provider-XAA7HRXL.js} +79 -41
  49. package/bundle/{start-5GIUIER3.js → start-234HHUMV.js} +6 -6
  50. package/bundle/{start-APIVGXZ3.js → start-JWGPML6R.js} +6 -6
  51. package/bundle/{start-GRIS2RDP.js → start-TRMMLCHR.js} +6 -6
  52. package/package.json +1 -1
  53. package/bundle/chunk-5YXWOKC2.js +0 -402181
  54. package/bundle/chunk-CYBHTFCS.js +0 -154
  55. package/bundle/chunk-HDP6V6JI.js +0 -1956
  56. package/bundle/chunk-RACMC24X.js +0 -118
  57. package/bundle/chunk-VGPHCSAB.js +0 -101859
  58. package/bundle/chunk-VXYA6LA4.js +0 -1571
  59. package/bundle/chunk-W6ALEP4H.js +0 -512
  60. package/bundle/chunk-XY2QSBID.js +0 -17603
  61. package/bundle/cleanup-WTTU6IKS.js +0 -32
  62. package/bundle/devtoolsService-TFBVUD5K.js +0 -4359
  63. package/bundle/dist-F22VU44K.js +0 -2280
  64. package/bundle/gemini-XDNOFFX7.js +0 -17970
  65. package/bundle/interactiveCli-MGIJ7GNE.js +0 -35601
  66. package/bundle/liteRtServerManager-OY2ULYPZ.js +0 -65
  67. package/bundle/oauth2-provider-VT6UHLKR.js +0 -273
  68. package/bundle/start-XQGNK32L.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-RE4V6I3G.js";
5
+ } from "./chunk-TZZ34RGM.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,16 +63,16 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-NU74STQ5.js";
66
+ } from "./chunk-RJ3GGOMU.js";
67
67
  import {
68
68
  isDevelopment,
69
69
  require_semver
70
- } from "./chunk-HDP6V6JI.js";
70
+ } from "./chunk-XH7KGX2J.js";
71
71
  import {
72
72
  emptyIcon,
73
73
  mapCoreStatusToDisplayStatus,
74
74
  require_react
75
- } from "./chunk-5VQUE3OF.js";
75
+ } from "./chunk-PWTTZOSA.js";
76
76
  import {
77
77
  ALL_EDITORS,
78
78
  ApprovalMode,
@@ -234,7 +234,7 @@ import {
234
234
  uiTelemetryService,
235
235
  unescapePath,
236
236
  validateUrlDestination
237
- } from "./chunk-QCWGLPCO.js";
237
+ } from "./chunk-I6Q2CIAC.js";
238
238
  import {
239
239
  require_src
240
240
  } from "./chunk-L6PII3GR.js";
@@ -76457,7 +76457,7 @@ var authCommand = {
76457
76457
  import process29 from "node:process";
76458
76458
 
76459
76459
  // packages/cli/src/generated/git-commit.ts
76460
- var GIT_COMMIT_INFO = "ed96faedf";
76460
+ var GIT_COMMIT_INFO = "b041de017";
76461
76461
 
76462
76462
  // packages/cli/src/ui/utils/historyExportUtils.ts
76463
76463
  import * as fsPromises from "node:fs/promises";
@@ -82264,7 +82264,7 @@ Use /mcp auth <server-name> to authenticate.`
82264
82264
  type: "info",
82265
82265
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82266
82266
  });
82267
- const { MCPOAuthProvider } = await import("./core-AGGXDQOT.js");
82267
+ const { MCPOAuthProvider } = await import("./core-GH3VFZSV.js");
82268
82268
  let oauthConfig = server.oauth;
82269
82269
  if (!oauthConfig) {
82270
82270
  oauthConfig = { enabled: false };
@@ -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-AWUJQFYP.js";
5
+ } from "./chunk-SZE3LGYD.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,24 +63,22 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-L5EUR3NN.js";
66
+ } from "./chunk-3IDBGHHH.js";
67
67
  import {
68
68
  isDevelopment,
69
69
  require_semver
70
- } from "./chunk-GCW52DLB.js";
70
+ } from "./chunk-5ILL3HFF.js";
71
71
  import {
72
72
  emptyIcon,
73
73
  mapCoreStatusToDisplayStatus,
74
74
  require_react
75
- } from "./chunk-7K5J3ME2.js";
75
+ } from "./chunk-Z3NAT6YU.js";
76
76
  import {
77
77
  ALL_EDITORS,
78
78
  ApprovalMode,
79
79
  AsyncFzf,
80
- AuthType,
81
80
  Config,
82
81
  CoreEvent,
83
- CoreToolCallStatus,
84
82
  DiscoveredMCPTool,
85
83
  ExtensionDisableEvent,
86
84
  ExtensionEnableEvent,
@@ -91,32 +89,21 @@ import {
91
89
  ExtensionUpdateEvent,
92
90
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
93
91
  GEMINI_DIR,
94
- HookType,
95
- IDEConnectionStatus,
96
92
  INITIAL_HISTORY_LENGTH,
97
93
  IdeClient,
98
94
  IdeConnectionEvent,
99
- IdeConnectionType,
100
- IntegrityDataStatus,
101
95
  KeychainTokenStorage,
102
- LlmRole,
103
- MCPDiscoveryState,
104
96
  MCPOAuthTokenStorage,
105
- MCPServerStatus,
106
97
  ModelSlashCommandEvent,
107
- PolicyDecision,
108
98
  ProjectIdRequiredError,
109
99
  REFERENCE_CONTENT_END,
110
100
  REFERENCE_CONTENT_START,
111
101
  ReadManyFilesTool,
112
102
  RewindEvent,
113
103
  SHELL_TOOL_NAME,
114
- SessionEndReason,
115
- SessionStartSource,
116
104
  ShellExecutionService,
117
105
  StartSessionEvent,
118
106
  Storage,
119
- TrustLevel,
120
107
  UPGRADE_URL_PAGE,
121
108
  UserAccountManager,
122
109
  ValidationRequiredError,
@@ -247,7 +234,7 @@ import {
247
234
  uiTelemetryService,
248
235
  unescapePath,
249
236
  validateUrlDestination
250
- } from "./chunk-5YXWOKC2.js";
237
+ } from "./chunk-D6WVFS5S.js";
251
238
  import {
252
239
  require_src
253
240
  } from "./chunk-L6PII3GR.js";
@@ -58699,7 +58686,7 @@ var import_react34 = __toESM(require_react(), 1);
58699
58686
  function useIdeTrustListener() {
58700
58687
  const settings = useSettings();
58701
58688
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
58702
- IDEConnectionStatus.Disconnected
58689
+ "disconnected" /* Disconnected */
58703
58690
  );
58704
58691
  const previousTrust = (0, import_react34.useRef)(void 0);
58705
58692
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -58729,7 +58716,7 @@ function useIdeTrustListener() {
58729
58716
  };
58730
58717
  }, []);
58731
58718
  const getSnapshot = () => {
58732
- if (connectionStatus !== IDEConnectionStatus.Connected) {
58719
+ if (connectionStatus !== "connected" /* Connected */) {
58733
58720
  return void 0;
58734
58721
  }
58735
58722
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -59434,7 +59421,7 @@ async function initializeApp(config, settings) {
59434
59421
  await ideClient.connect();
59435
59422
  logIdeConnection(
59436
59423
  config,
59437
- new IdeConnectionEvent(IdeConnectionType.START)
59424
+ new IdeConnectionEvent("start" /* START */)
59438
59425
  );
59439
59426
  }).catch((e) => {
59440
59427
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -59452,17 +59439,17 @@ async function initializeApp(config, settings) {
59452
59439
  // packages/cli/src/config/auth.ts
59453
59440
  async function validateAuthMethod(authMethod) {
59454
59441
  loadEnvironment(loadSettings().merged, process.cwd());
59455
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
59442
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
59456
59443
  return null;
59457
59444
  }
59458
- if (authMethod === AuthType.USE_GEMINI) {
59445
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
59459
59446
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
59460
59447
  if (!key) {
59461
59448
  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)!";
59462
59449
  }
59463
59450
  return null;
59464
59451
  }
59465
- if (authMethod === AuthType.USE_VERTEX_AI) {
59452
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
59466
59453
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
59467
59454
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
59468
59455
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -64143,7 +64130,7 @@ var ExtensionManager = class extends ExtensionLoader {
64143
64130
  const trustedFolders = loadTrustedFolders();
64144
64131
  await trustedFolders.setValue(
64145
64132
  this.workspaceDir,
64146
- TrustLevel.TRUST_FOLDER
64133
+ "TRUST_FOLDER" /* TRUST_FOLDER */
64147
64134
  );
64148
64135
  } else {
64149
64136
  throw new Error(
@@ -64329,7 +64316,7 @@ Would you like to attempt to install via "git clone" instead?`
64329
64316
  newExtensionConfig.version,
64330
64317
  previousExtensionConfig.version,
64331
64318
  installMetadata.type,
64332
- CoreToolCallStatus.Success
64319
+ "success" /* Success */
64333
64320
  )
64334
64321
  );
64335
64322
  if (newExtensionName !== previousName) {
@@ -64352,7 +64339,7 @@ Would you like to attempt to install via "git clone" instead?`
64352
64339
  getExtensionId(newExtensionConfig, installMetadata),
64353
64340
  newExtensionConfig.version,
64354
64341
  installMetadata.type,
64355
- CoreToolCallStatus.Success
64342
+ "success" /* Success */
64356
64343
  )
64357
64344
  );
64358
64345
  await this.enableExtension(
@@ -64391,7 +64378,7 @@ Would you like to attempt to install via "git clone" instead?`
64391
64378
  newExtensionConfig?.version ?? "",
64392
64379
  previousExtensionConfig.version,
64393
64380
  installMetadata.type,
64394
- CoreToolCallStatus.Error
64381
+ "error" /* Error */
64395
64382
  )
64396
64383
  );
64397
64384
  } else {
@@ -64403,7 +64390,7 @@ Would you like to attempt to install via "git clone" instead?`
64403
64390
  extensionId ?? "",
64404
64391
  newExtensionConfig?.version ?? "",
64405
64392
  installMetadata.type,
64406
- CoreToolCallStatus.Error
64393
+ "error" /* Error */
64407
64394
  )
64408
64395
  );
64409
64396
  }
@@ -64431,7 +64418,7 @@ Would you like to attempt to install via "git clone" instead?`
64431
64418
  extension.name,
64432
64419
  hashValue(extension.name),
64433
64420
  extension.id,
64434
- CoreToolCallStatus.Success
64421
+ "success" /* Success */
64435
64422
  )
64436
64423
  );
64437
64424
  }
@@ -64694,7 +64681,7 @@ Would you like to attempt to install via "git clone" instead?`
64694
64681
  if (eventHooks) {
64695
64682
  for (const definition of eventHooks) {
64696
64683
  for (const hook of definition.hooks) {
64697
- if (hook.type === HookType.Command) {
64684
+ if (hook.type === "command" /* Command */) {
64698
64685
  hook.env = { ...hook.env, ...hookEnv };
64699
64686
  }
64700
64687
  }
@@ -65831,7 +65818,7 @@ async function readMcpResources(resourceParts, config, signal) {
65831
65818
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
65832
65819
  name: `resources/read (${resource.serverName})`,
65833
65820
  description: resource.uri,
65834
- status: CoreToolCallStatus.Success,
65821
+ status: "success" /* Success */,
65835
65822
  isClientInitiated: true,
65836
65823
  resultDisplay: `Successfully read resource ${resource.uri}`,
65837
65824
  confirmationDetails: void 0
@@ -65846,7 +65833,7 @@ async function readMcpResources(resourceParts, config, signal) {
65846
65833
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
65847
65834
  name: `resources/read (${resource.serverName})`,
65848
65835
  description: resource.uri,
65849
- status: CoreToolCallStatus.Error,
65836
+ status: "error" /* Error */,
65850
65837
  isClientInitiated: true,
65851
65838
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
65852
65839
  confirmationDetails: void 0
@@ -65871,7 +65858,7 @@ Content from @${result.uri}:
65871
65858
  }
65872
65859
  if (hasError) {
65873
65860
  const firstError = displays.find(
65874
- (d) => d.status === CoreToolCallStatus.Error
65861
+ (d) => d.status === "error" /* Error */
65875
65862
  );
65876
65863
  return {
65877
65864
  parts: [],
@@ -65910,7 +65897,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
65910
65897
  callId: `client-read-${userMessageTimestamp}`,
65911
65898
  name: readManyFilesTool.displayName,
65912
65899
  description: invocation.getDescription(),
65913
- status: CoreToolCallStatus.Success,
65900
+ status: "success" /* Success */,
65914
65901
  isClientInitiated: true,
65915
65902
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
65916
65903
  confirmationDetails: void 0
@@ -65957,7 +65944,7 @@ Content from @${displayPath}:
65957
65944
  callId: `client-read-${userMessageTimestamp}`,
65958
65945
  name: readManyFilesTool.displayName,
65959
65946
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
65960
- status: CoreToolCallStatus.Error,
65947
+ status: "error" /* Error */,
65961
65948
  isClientInitiated: true,
65962
65949
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
65963
65950
  confirmationDetails: void 0
@@ -69224,7 +69211,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
69224
69211
  if (wasRaw) {
69225
69212
  setRawMode?.(true);
69226
69213
  }
69227
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
69214
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
69228
69215
  }
69229
69216
  }
69230
69217
 
@@ -71918,7 +71905,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
71918
71905
  extension.name,
71919
71906
  installMetadata
71920
71907
  );
71921
- if (status === IntegrityDataStatus.INVALID) {
71908
+ if (status === "invalid" /* INVALID */) {
71922
71909
  throw new Error("Extension integrity cannot be verified");
71923
71910
  }
71924
71911
  } catch (e) {
@@ -73414,11 +73401,11 @@ var ShellProcessor = class {
73414
73401
  },
73415
73402
  void 0
73416
73403
  );
73417
- if (decision === PolicyDecision.DENY) {
73404
+ if (decision === "deny" /* DENY */) {
73418
73405
  throw new Error(
73419
73406
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
73420
73407
  );
73421
- } else if (decision === PolicyDecision.ASK_USER) {
73408
+ } else if (decision === "ask_user" /* ASK_USER */) {
73422
73409
  commandsToConfirm.add(command);
73423
73410
  }
73424
73411
  }
@@ -74548,7 +74535,7 @@ var MultiFolderTrustDialog = ({
74548
74535
  if (choice === 1 /* YES_AND_REMEMBER */) {
74549
74536
  await trustedFolders.setValue(
74550
74537
  expandedPath,
74551
- TrustLevel.TRUST_FOLDER
74538
+ "TRUST_FOLDER" /* TRUST_FOLDER */
74552
74539
  );
74553
74540
  }
74554
74541
  workspaceContext.addDirectory(expandedPath);
@@ -74862,10 +74849,10 @@ function isShellTool(name) {
74862
74849
  return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
74863
74850
  }
74864
74851
  function isThisShellFocusable(name, status, config) {
74865
- return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && config?.getEnableInteractiveShell());
74852
+ return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
74866
74853
  }
74867
74854
  function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
74868
- return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && ptyId === activeShellPtyId && embeddedShellFocused);
74855
+ return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
74869
74856
  }
74870
74857
  function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
74871
74858
  const [userHasFocused, setUserHasFocused] = (0, import_react56.useState)(false);
@@ -75025,14 +75012,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
75025
75012
  if (isTrackedToolCall(t)) {
75026
75013
  return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
75027
75014
  } else {
75028
- return t.status !== CoreToolCallStatus.Success && t.status !== CoreToolCallStatus.Error && t.status !== CoreToolCallStatus.Cancelled;
75015
+ return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
75029
75016
  }
75030
75017
  });
75031
75018
  const isEmbeddedShellFocused = toolsToInspect.some((t) => {
75032
75019
  if (isTrackedToolCall(t)) {
75033
75020
  return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
75034
75021
  } else {
75035
- return isShellTool(t.name) && t.status === CoreToolCallStatus.Executing && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
75022
+ return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
75036
75023
  }
75037
75024
  });
75038
75025
  const isShellCommand = toolsToInspect.some((t) => {
@@ -76470,7 +76457,7 @@ var authCommand = {
76470
76457
  import process29 from "node:process";
76471
76458
 
76472
76459
  // packages/cli/src/generated/git-commit.ts
76473
- var GIT_COMMIT_INFO = "ed96faedf";
76460
+ var GIT_COMMIT_INFO = "b041de017";
76474
76461
 
76475
76462
  // packages/cli/src/ui/utils/historyExportUtils.ts
76476
76463
  import * as fsPromises from "node:fs/promises";
@@ -77116,7 +77103,7 @@ var clearCommand = {
77116
77103
  const config = context.services.agentContext?.config;
77117
77104
  const hookSystem = config?.getHookSystem();
77118
77105
  if (hookSystem) {
77119
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
77106
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
77120
77107
  }
77121
77108
  config?.injectionService.clear();
77122
77109
  let newSessionId;
@@ -77133,7 +77120,7 @@ var clearCommand = {
77133
77120
  }
77134
77121
  let result;
77135
77122
  if (hookSystem) {
77136
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
77123
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
77137
77124
  }
77138
77125
  await new Promise((resolve9) => setImmediate(resolve9));
77139
77126
  if (config) {
@@ -80142,7 +80129,7 @@ var Footer = () => {
80142
80129
  case "auth": {
80143
80130
  if (!settings.merged.ui.showUserIdentity) break;
80144
80131
  if (!authType) break;
80145
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
80132
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
80146
80133
  addCol(
80147
80134
  id,
80148
80135
  header,
@@ -81926,12 +81913,12 @@ import path29 from "node:path";
81926
81913
  function getIdeStatusMessage(ideClient) {
81927
81914
  const connection = ideClient.getConnectionStatus();
81928
81915
  switch (connection.status) {
81929
- case IDEConnectionStatus.Connected:
81916
+ case "connected" /* Connected */:
81930
81917
  return {
81931
81918
  messageType: "info",
81932
81919
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
81933
81920
  };
81934
- case IDEConnectionStatus.Connecting:
81921
+ case "connecting" /* Connecting */:
81935
81922
  return {
81936
81923
  messageType: "info",
81937
81924
  content: `\u{1F7E1} Connecting...`
@@ -81972,7 +81959,7 @@ ${infoMessage}`;
81972
81959
  async function getIdeStatusMessageWithFiles(ideClient) {
81973
81960
  const connection = ideClient.getConnectionStatus();
81974
81961
  switch (connection.status) {
81975
- case IDEConnectionStatus.Connected: {
81962
+ case "connected" /* Connected */: {
81976
81963
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
81977
81964
  const context = ideContextStore.get();
81978
81965
  const openFiles = context?.workspaceState?.openFiles;
@@ -81984,7 +81971,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
81984
81971
  content
81985
81972
  };
81986
81973
  }
81987
- case IDEConnectionStatus.Connecting:
81974
+ case "connecting" /* Connecting */:
81988
81975
  return {
81989
81976
  messageType: "info",
81990
81977
  content: `\u{1F7E1} Connecting...`
@@ -82006,7 +81993,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
82006
81993
  const ideClient = await IdeClient.getInstance();
82007
81994
  if (value) {
82008
81995
  await ideClient.connect(options);
82009
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
81996
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
82010
81997
  } else {
82011
81998
  await ideClient.disconnect();
82012
81999
  }
@@ -82094,7 +82081,7 @@ var ideCommand = async () => {
82094
82081
  logToConsole: false
82095
82082
  }
82096
82083
  );
82097
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
82084
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
82098
82085
  break;
82099
82086
  }
82100
82087
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -82171,7 +82158,7 @@ var ideCommand = async () => {
82171
82158
  }
82172
82159
  };
82173
82160
  const { status } = ideClient.getConnectionStatus();
82174
- const isConnected = status === IDEConnectionStatus.Connected;
82161
+ const isConnected = status === "connected" /* Connected */;
82175
82162
  if (isConnected) {
82176
82163
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
82177
82164
  } else {
@@ -82271,13 +82258,13 @@ Use /mcp auth <server-name> to authenticate.`
82271
82258
  const displayListener = (message) => {
82272
82259
  context.ui.addItem({ type: "info", text: message });
82273
82260
  };
82274
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
82261
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82275
82262
  try {
82276
82263
  context.ui.addItem({
82277
82264
  type: "info",
82278
82265
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82279
82266
  });
82280
- const { MCPOAuthProvider } = await import("./dist-4PMK5N6W.js");
82267
+ const { MCPOAuthProvider } = await import("./core-CEUTCQ3Z.js");
82281
82268
  let oauthConfig = server.oauth;
82282
82269
  if (!oauthConfig) {
82283
82270
  oauthConfig = { enabled: false };
@@ -82314,7 +82301,7 @@ Use /mcp auth <server-name> to authenticate.`
82314
82301
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
82315
82302
  };
82316
82303
  } finally {
82317
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
82304
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82318
82305
  }
82319
82306
  },
82320
82307
  completion: async (context, partialArg) => {
@@ -82360,10 +82347,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
82360
82347
  }
82361
82348
  const serverNames = Object.keys(mcpServers);
82362
82349
  const connectingServers = serverNames.filter(
82363
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
82350
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
82364
82351
  );
82365
82352
  const discoveryState = getMCPDiscoveryState();
82366
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
82353
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
82367
82354
  const allTools = toolRegistry.getAllTools();
82368
82355
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
82369
82356
  const promptRegistry = config.getPromptRegistry();
@@ -98141,7 +98128,7 @@ Return a JSON object with:
98141
98128
  },
98142
98129
  abortSignal: new AbortController().signal,
98143
98130
  promptId: "triage-duplicates",
98144
- role: LlmRole.UTILITY_TOOL
98131
+ role: "utility_tool" /* UTILITY_TOOL */
98145
98132
  });
98146
98133
  const rec = response;
98147
98134
  let canonical;
@@ -98975,7 +98962,7 @@ Return a JSON object with:
98975
98962
  },
98976
98963
  abortSignal: abortControllerRef.current.signal,
98977
98964
  promptId: "triage-issues",
98978
- role: LlmRole.UTILITY_TOOL
98965
+ role: "utility_tool" /* UTILITY_TOOL */
98979
98966
  });
98980
98967
  return response;
98981
98968
  },
@@ -99549,8 +99536,8 @@ var planCommand = {
99549
99536
  return;
99550
99537
  }
99551
99538
  const previousApprovalMode = config.getApprovalMode();
99552
- config.setApprovalMode(ApprovalMode.PLAN);
99553
- if (previousApprovalMode !== ApprovalMode.PLAN) {
99539
+ config.setApprovalMode("plan" /* PLAN */);
99540
+ if (previousApprovalMode !== "plan" /* PLAN */) {
99554
99541
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
99555
99542
  }
99556
99543
  if (context.invocation?.args) {
@@ -99609,10 +99596,10 @@ var categorizeRulesByMode = (rules) => {
99609
99596
  rules.forEach((rule) => {
99610
99597
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
99611
99598
  const modeSet = new Set(modes);
99612
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
99613
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
99614
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
99615
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
99599
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
99600
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
99601
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
99602
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
99616
99603
  });
99617
99604
  return result;
99618
99605
  };
@@ -100993,7 +100980,7 @@ var upgradeCommand = {
100993
100980
  action: async (context) => {
100994
100981
  const config = context.services.agentContext?.config;
100995
100982
  const authType = config?.getContentGeneratorConfig()?.authType;
100996
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
100983
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
100997
100984
  return {
100998
100985
  type: "message",
100999
100986
  messageType: "error",
@@ -101222,7 +101209,7 @@ var BuiltinCommandLoader = class {
101222
101209
  setupGithubCommand,
101223
101210
  terminalSetupCommand,
101224
101211
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
101225
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
101212
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
101226
101213
  ];
101227
101214
  handle?.end();
101228
101215
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-VXYA6LA4.js";
5
+ } from "./chunk-TZZ34RGM.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-XY2QSBID.js";
17
+ } from "./chunk-RJ3GGOMU.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-ZFQ347ZN.js";
20
+ } from "./chunk-I6Q2CIAC.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.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-6P5R6RYB.js";
4
+ } from "./chunk-3RUC6ZA6.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require