@google/gemini-cli 0.64.0-nightly.20261005.gfb972b2f8 → 0.64.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 (50) hide show
  1. package/bundle/{chunk-PO2VSL43.js → chunk-2NQXIWQK.js} +5 -7
  2. package/bundle/{chunk-JUHOHELL.js → chunk-6OFXOGEG.js} +14846 -7842
  3. package/bundle/{chunk-EIWQ2LQQ.js → chunk-EBP6K2WG.js} +7 -7
  4. package/bundle/{chunk-EELKDWQ4.js → chunk-EDVFNWRG.js} +1 -1
  5. package/bundle/{chunk-EB43SHKX.js → chunk-EDYPRCAA.js} +2 -2
  6. package/bundle/{chunk-AQYLEGXG.js → chunk-HN74ORTP.js} +1 -1
  7. package/bundle/{chunk-H7GSTRIW.js → chunk-KCCVXZ52.js} +58 -71
  8. package/bundle/{chunk-JQYJUNLF.js → chunk-MLSLNORV.js} +3 -3
  9. package/bundle/{chunk-27FWUQTG.js → chunk-NX7TO2DU.js} +1 -1
  10. package/bundle/{chunk-NFSPTLUK.js → chunk-SDWOC67Z.js} +1 -1
  11. package/bundle/{chunk-2TCGCQ3U.js → chunk-UBGF6JU5.js} +1 -1
  12. package/bundle/{chunk-NALEOBWX.js → chunk-VBVCLWLA.js} +2 -2
  13. package/bundle/{chunk-UBR6TWNB.js → chunk-VJYKQD5D.js} +3 -3
  14. package/bundle/{chunk-Q5GLE3YW.js → chunk-Y2HXXBXI.js} +8 -9
  15. package/bundle/{chunk-OLLYWO5Q.js → chunk-ZOHM7BPT.js} +1 -1
  16. package/bundle/{chunk-CUFMYKIC.js → chunk-ZQW7OGUO.js} +3 -3
  17. package/bundle/{cleanup-4TGCO5X2.js → cleanup-GGCB2LVD.js} +2 -2
  18. package/bundle/{cleanup-6PBH36B7.js → cleanup-JRDG3OTL.js} +2 -2
  19. package/bundle/{dist-EKBAHHIJ.js → core-6HRWFQZW.js} +1 -1
  20. package/bundle/{devtoolsService-U6FKQ6JD.js → devtoolsService-MF6JKRUV.js} +3 -4
  21. package/bundle/{devtoolsService-DH4C7EZB.js → devtoolsService-XZCKFZP5.js} +2 -2
  22. package/bundle/{dist-UAE7T55Q.js → dist-7L3BRW6V.js} +1 -1
  23. package/bundle/{gemini-E3VK7GSB.js → gemini-JPMMQ3KA.js} +14 -14
  24. package/bundle/{gemini-IYF3YHXZ.js → gemini-QOQNG5VY.js} +198 -214
  25. package/bundle/gemini.js +7 -7
  26. package/bundle/{interactiveCli-WHZXRGLN.js → interactiveCli-R3P4A3FC.js} +293 -312
  27. package/bundle/{interactiveCli-T3HF2HRX.js → interactiveCli-UDWGRVJL.js} +8 -8
  28. package/bundle/{liteRtServerManager-X6UOQ3MA.js → liteRtServerManager-OVPUSK2T.js} +4 -4
  29. package/bundle/{liteRtServerManager-YUF3UXMU.js → liteRtServerManager-RAV63AGE.js} +4 -4
  30. package/bundle/{oauth2-provider-D4J3TFC3.js → oauth2-provider-FVTRRJZR.js} +1 -1
  31. package/bundle/{oauth2-provider-F7QKNLGE.js → oauth2-provider-XFP63FGJ.js} +72 -38
  32. package/bundle/{start-TO2FZTHQ.js → start-5O7TBK5L.js} +6 -6
  33. package/bundle/{start-U3PILSF7.js → start-VQQ2Q5KT.js} +6 -6
  34. package/package.json +1 -1
  35. package/bundle/chunk-6ISJPGCD.js +0 -154
  36. package/bundle/chunk-6LCUTDX7.js +0 -401196
  37. package/bundle/chunk-NBEG6GFX.js +0 -118
  38. package/bundle/chunk-PGYGRESN.js +0 -425
  39. package/bundle/chunk-QSGRHC6M.js +0 -1571
  40. package/bundle/chunk-UMTL4SBM.js +0 -103121
  41. package/bundle/chunk-UP3637TZ.js +0 -512
  42. package/bundle/chunk-XZLCMV4F.js +0 -17507
  43. package/bundle/cleanup-HQ46NIAL.js +0 -32
  44. package/bundle/devtoolsService-YL2CULLT.js +0 -4359
  45. package/bundle/dist-BVPLCCBS.js +0 -2252
  46. package/bundle/gemini-53BFSQPR.js +0 -17934
  47. package/bundle/interactiveCli-OHZNMG4G.js +0 -34979
  48. package/bundle/liteRtServerManager-KKZLBYK6.js +0 -65
  49. package/bundle/oauth2-provider-4V3LC2C5.js +0 -235
  50. package/bundle/start-JVWQ2CSF.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-OLLYWO5Q.js";
5
+ } from "./chunk-ZOHM7BPT.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,15 +63,15 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-AQYLEGXG.js";
66
+ } from "./chunk-HN74ORTP.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-EB43SHKX.js";
69
+ } from "./chunk-VBVCLWLA.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-Q5GLE3YW.js";
74
+ } from "./chunk-NX7TO2DU.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
@@ -252,7 +252,7 @@ import {
252
252
  tokenLimit,
253
253
  uiTelemetryService,
254
254
  unescapePath
255
- } from "./chunk-JUHOHELL.js";
255
+ } from "./chunk-ZQW7OGUO.js";
256
256
  import {
257
257
  require_src
258
258
  } from "./chunk-L6PII3GR.js";
@@ -77764,7 +77764,7 @@ var authCommand = {
77764
77764
  import process29 from "node:process";
77765
77765
 
77766
77766
  // packages/cli/src/generated/git-commit.ts
77767
- var GIT_COMMIT_INFO = "fb972b2f8";
77767
+ var GIT_COMMIT_INFO = "fdf63956c";
77768
77768
 
77769
77769
  // packages/cli/src/ui/utils/historyExportUtils.ts
77770
77770
  import * as fsPromises from "node:fs/promises";
@@ -83545,7 +83545,7 @@ Use /mcp auth <server-name> to authenticate.`
83545
83545
  type: "info",
83546
83546
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83547
83547
  });
83548
- const { MCPOAuthProvider } = await import("./dist-BVPLCCBS.js");
83548
+ const { MCPOAuthProvider } = await import("./dist-7L3BRW6V.js");
83549
83549
  let oauthConfig = server.oauth;
83550
83550
  if (!oauthConfig) {
83551
83551
  oauthConfig = { enabled: false };
@@ -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-2TCGCQ3U.js";
4
+ } from "./chunk-SDWOC67Z.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -1,13 +1,13 @@
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-NFSPTLUK.js";
4
+ } from "./chunk-SDWOC67Z.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-JUHOHELL.js";
10
+ } from "./chunk-6OFXOGEG.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -33,7 +33,7 @@ import {
33
33
  partListUnionToString,
34
34
  require_strip_json_comments,
35
35
  sanitizeFilenamePart
36
- } from "./chunk-JUHOHELL.js";
36
+ } from "./chunk-ZQW7OGUO.js";
37
37
  import {
38
38
  __commonJS,
39
39
  __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-EELKDWQ4.js";
5
+ } from "./chunk-EDVFNWRG.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -63,23 +63,21 @@ import {
63
63
  stripUnsafeCharacters,
64
64
  toCodePoints,
65
65
  validateCustomTheme
66
- } from "./chunk-XZLCMV4F.js";
66
+ } from "./chunk-2NQXIWQK.js";
67
67
  import {
68
68
  isDevelopment
69
- } from "./chunk-NALEOBWX.js";
69
+ } from "./chunk-EDYPRCAA.js";
70
70
  import {
71
71
  emptyIcon,
72
72
  mapCoreStatusToDisplayStatus,
73
73
  require_react
74
- } from "./chunk-27FWUQTG.js";
74
+ } from "./chunk-Y2HXXBXI.js";
75
75
  import {
76
76
  ALL_EDITORS,
77
77
  ApprovalMode,
78
78
  AsyncFzf,
79
- AuthType,
80
79
  Config,
81
80
  CoreEvent,
82
- CoreToolCallStatus,
83
81
  DiscoveredMCPTool,
84
82
  ExtensionDisableEvent,
85
83
  ExtensionEnableEvent,
@@ -90,32 +88,21 @@ import {
90
88
  ExtensionUpdateEvent,
91
89
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
92
90
  GEMINI_DIR,
93
- HookType,
94
- IDEConnectionStatus,
95
91
  INITIAL_HISTORY_LENGTH,
96
92
  IdeClient,
97
93
  IdeConnectionEvent,
98
- IdeConnectionType,
99
- IntegrityDataStatus,
100
94
  KeychainTokenStorage,
101
- LlmRole,
102
- MCPDiscoveryState,
103
95
  MCPOAuthTokenStorage,
104
- MCPServerStatus,
105
96
  ModelSlashCommandEvent,
106
- PolicyDecision,
107
97
  ProjectIdRequiredError,
108
98
  REFERENCE_CONTENT_END,
109
99
  REFERENCE_CONTENT_START,
110
100
  ReadManyFilesTool,
111
101
  RewindEvent,
112
102
  SHELL_TOOL_NAME,
113
- SessionEndReason,
114
- SessionStartSource,
115
103
  ShellExecutionService,
116
104
  StartSessionEvent,
117
105
  Storage,
118
- TrustLevel,
119
106
  UPGRADE_URL_PAGE,
120
107
  UserAccountManager,
121
108
  ValidationRequiredError,
@@ -252,7 +239,7 @@ import {
252
239
  tokenLimit,
253
240
  uiTelemetryService,
254
241
  unescapePath
255
- } from "./chunk-CUFMYKIC.js";
242
+ } from "./chunk-6OFXOGEG.js";
256
243
  import {
257
244
  require_src
258
245
  } from "./chunk-L6PII3GR.js";
@@ -60120,7 +60107,7 @@ var import_react34 = __toESM(require_react(), 1);
60120
60107
  function useIdeTrustListener() {
60121
60108
  const settings = useSettings();
60122
60109
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
60123
- IDEConnectionStatus.Disconnected
60110
+ "disconnected" /* Disconnected */
60124
60111
  );
60125
60112
  const previousTrust = (0, import_react34.useRef)(void 0);
60126
60113
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -60150,7 +60137,7 @@ function useIdeTrustListener() {
60150
60137
  };
60151
60138
  }, []);
60152
60139
  const getSnapshot = () => {
60153
- if (connectionStatus !== IDEConnectionStatus.Connected) {
60140
+ if (connectionStatus !== "connected" /* Connected */) {
60154
60141
  return void 0;
60155
60142
  }
60156
60143
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -60855,7 +60842,7 @@ async function initializeApp(config, settings) {
60855
60842
  await ideClient.connect();
60856
60843
  logIdeConnection(
60857
60844
  config,
60858
- new IdeConnectionEvent(IdeConnectionType.START)
60845
+ new IdeConnectionEvent("start" /* START */)
60859
60846
  );
60860
60847
  }).catch((e) => {
60861
60848
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -60873,17 +60860,17 @@ async function initializeApp(config, settings) {
60873
60860
  // packages/cli/src/config/auth.ts
60874
60861
  async function validateAuthMethod(authMethod) {
60875
60862
  loadEnvironment(loadSettings().merged, process.cwd());
60876
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
60863
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
60877
60864
  return null;
60878
60865
  }
60879
- if (authMethod === AuthType.USE_GEMINI) {
60866
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
60880
60867
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
60881
60868
  if (!key) {
60882
60869
  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)!";
60883
60870
  }
60884
60871
  return null;
60885
60872
  }
60886
- if (authMethod === AuthType.USE_VERTEX_AI) {
60873
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
60887
60874
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
60888
60875
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
60889
60876
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -65455,7 +65442,7 @@ var ExtensionManager = class extends ExtensionLoader {
65455
65442
  const trustedFolders = loadTrustedFolders();
65456
65443
  await trustedFolders.setValue(
65457
65444
  this.workspaceDir,
65458
- TrustLevel.TRUST_FOLDER
65445
+ "TRUST_FOLDER" /* TRUST_FOLDER */
65459
65446
  );
65460
65447
  } else {
65461
65448
  throw new Error(
@@ -65641,7 +65628,7 @@ Would you like to attempt to install via "git clone" instead?`
65641
65628
  newExtensionConfig.version,
65642
65629
  previousExtensionConfig.version,
65643
65630
  installMetadata.type,
65644
- CoreToolCallStatus.Success
65631
+ "success" /* Success */
65645
65632
  )
65646
65633
  );
65647
65634
  if (newExtensionName !== previousName) {
@@ -65664,7 +65651,7 @@ Would you like to attempt to install via "git clone" instead?`
65664
65651
  getExtensionId(newExtensionConfig, installMetadata),
65665
65652
  newExtensionConfig.version,
65666
65653
  installMetadata.type,
65667
- CoreToolCallStatus.Success
65654
+ "success" /* Success */
65668
65655
  )
65669
65656
  );
65670
65657
  await this.enableExtension(
@@ -65703,7 +65690,7 @@ Would you like to attempt to install via "git clone" instead?`
65703
65690
  newExtensionConfig?.version ?? "",
65704
65691
  previousExtensionConfig.version,
65705
65692
  installMetadata.type,
65706
- CoreToolCallStatus.Error
65693
+ "error" /* Error */
65707
65694
  )
65708
65695
  );
65709
65696
  } else {
@@ -65715,7 +65702,7 @@ Would you like to attempt to install via "git clone" instead?`
65715
65702
  extensionId ?? "",
65716
65703
  newExtensionConfig?.version ?? "",
65717
65704
  installMetadata.type,
65718
- CoreToolCallStatus.Error
65705
+ "error" /* Error */
65719
65706
  )
65720
65707
  );
65721
65708
  }
@@ -65743,7 +65730,7 @@ Would you like to attempt to install via "git clone" instead?`
65743
65730
  extension.name,
65744
65731
  hashValue(extension.name),
65745
65732
  extension.id,
65746
- CoreToolCallStatus.Success
65733
+ "success" /* Success */
65747
65734
  )
65748
65735
  );
65749
65736
  }
@@ -66005,7 +65992,7 @@ Would you like to attempt to install via "git clone" instead?`
66005
65992
  if (eventHooks) {
66006
65993
  for (const definition of eventHooks) {
66007
65994
  for (const hook of definition.hooks) {
66008
- if (hook.type === HookType.Command) {
65995
+ if (hook.type === "command" /* Command */) {
66009
65996
  hook.env = { ...hook.env, ...hookEnv };
66010
65997
  }
66011
65998
  }
@@ -67152,7 +67139,7 @@ async function readMcpResources(resourceParts, config, signal) {
67152
67139
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67153
67140
  name: `resources/read (${resource.serverName})`,
67154
67141
  description: resource.uri,
67155
- status: CoreToolCallStatus.Success,
67142
+ status: "success" /* Success */,
67156
67143
  isClientInitiated: true,
67157
67144
  resultDisplay: `Successfully read resource ${resource.uri}`,
67158
67145
  confirmationDetails: void 0
@@ -67167,7 +67154,7 @@ async function readMcpResources(resourceParts, config, signal) {
67167
67154
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
67168
67155
  name: `resources/read (${resource.serverName})`,
67169
67156
  description: resource.uri,
67170
- status: CoreToolCallStatus.Error,
67157
+ status: "error" /* Error */,
67171
67158
  isClientInitiated: true,
67172
67159
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
67173
67160
  confirmationDetails: void 0
@@ -67192,7 +67179,7 @@ Content from @${result.uri}:
67192
67179
  }
67193
67180
  if (hasError) {
67194
67181
  const firstError = displays.find(
67195
- (d) => d.status === CoreToolCallStatus.Error
67182
+ (d) => d.status === "error" /* Error */
67196
67183
  );
67197
67184
  return {
67198
67185
  parts: [],
@@ -67233,7 +67220,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
67233
67220
  callId: `client-read-${userMessageTimestamp}`,
67234
67221
  name: readManyFilesTool.displayName,
67235
67222
  description: invocation.getDescription(),
67236
- status: CoreToolCallStatus.Success,
67223
+ status: "success" /* Success */,
67237
67224
  isClientInitiated: true,
67238
67225
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
67239
67226
  confirmationDetails: void 0
@@ -67280,7 +67267,7 @@ Content from @${displayPath}:
67280
67267
  callId: `client-read-${userMessageTimestamp}`,
67281
67268
  name: readManyFilesTool.displayName,
67282
67269
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
67283
- status: CoreToolCallStatus.Error,
67270
+ status: "error" /* Error */,
67284
67271
  isClientInitiated: true,
67285
67272
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
67286
67273
  confirmationDetails: void 0
@@ -70547,7 +70534,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
70547
70534
  if (wasRaw) {
70548
70535
  setRawMode?.(true);
70549
70536
  }
70550
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
70537
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
70551
70538
  }
70552
70539
  }
70553
70540
 
@@ -73241,7 +73228,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
73241
73228
  extension.name,
73242
73229
  installMetadata
73243
73230
  );
73244
- if (status === IntegrityDataStatus.INVALID) {
73231
+ if (status === "invalid" /* INVALID */) {
73245
73232
  throw new Error("Extension integrity cannot be verified");
73246
73233
  }
73247
73234
  } catch (e) {
@@ -74736,11 +74723,11 @@ var ShellProcessor = class {
74736
74723
  },
74737
74724
  void 0
74738
74725
  );
74739
- if (decision === PolicyDecision.DENY) {
74726
+ if (decision === "deny" /* DENY */) {
74740
74727
  throw new Error(
74741
74728
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
74742
74729
  );
74743
- } else if (decision === PolicyDecision.ASK_USER) {
74730
+ } else if (decision === "ask_user" /* ASK_USER */) {
74744
74731
  commandsToConfirm.add(command);
74745
74732
  }
74746
74733
  }
@@ -75870,7 +75857,7 @@ var MultiFolderTrustDialog = ({
75870
75857
  if (choice === 1 /* YES_AND_REMEMBER */) {
75871
75858
  await trustedFolders.setValue(
75872
75859
  expandedPath,
75873
- TrustLevel.TRUST_FOLDER
75860
+ "TRUST_FOLDER" /* TRUST_FOLDER */
75874
75861
  );
75875
75862
  }
75876
75863
  workspaceContext.addDirectory(expandedPath);
@@ -76156,10 +76143,10 @@ function isShellTool(name) {
76156
76143
  return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
76157
76144
  }
76158
76145
  function isThisShellFocusable(name, status, config) {
76159
- return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && config?.getEnableInteractiveShell());
76146
+ return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
76160
76147
  }
76161
76148
  function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
76162
- return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && ptyId === activeShellPtyId && embeddedShellFocused);
76149
+ return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
76163
76150
  }
76164
76151
  function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
76165
76152
  const [userHasFocused, setUserHasFocused] = (0, import_react56.useState)(false);
@@ -76319,14 +76306,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
76319
76306
  if (isTrackedToolCall(t)) {
76320
76307
  return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
76321
76308
  } else {
76322
- return t.status !== CoreToolCallStatus.Success && t.status !== CoreToolCallStatus.Error && t.status !== CoreToolCallStatus.Cancelled;
76309
+ return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
76323
76310
  }
76324
76311
  });
76325
76312
  const isEmbeddedShellFocused = toolsToInspect.some((t) => {
76326
76313
  if (isTrackedToolCall(t)) {
76327
76314
  return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
76328
76315
  } else {
76329
- return isShellTool(t.name) && t.status === CoreToolCallStatus.Executing && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
76316
+ return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
76330
76317
  }
76331
76318
  });
76332
76319
  const isShellCommand = toolsToInspect.some((t) => {
@@ -77764,7 +77751,7 @@ var authCommand = {
77764
77751
  import process29 from "node:process";
77765
77752
 
77766
77753
  // packages/cli/src/generated/git-commit.ts
77767
- var GIT_COMMIT_INFO = "8f1b8021c";
77754
+ var GIT_COMMIT_INFO = "fb972b2f8";
77768
77755
 
77769
77756
  // packages/cli/src/ui/utils/historyExportUtils.ts
77770
77757
  import * as fsPromises from "node:fs/promises";
@@ -78410,7 +78397,7 @@ var clearCommand = {
78410
78397
  const config = context.services.agentContext?.config;
78411
78398
  const hookSystem = config?.getHookSystem();
78412
78399
  if (hookSystem) {
78413
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
78400
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
78414
78401
  }
78415
78402
  config?.injectionService.clear();
78416
78403
  let newSessionId;
@@ -78427,7 +78414,7 @@ var clearCommand = {
78427
78414
  }
78428
78415
  let result;
78429
78416
  if (hookSystem) {
78430
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
78417
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
78431
78418
  }
78432
78419
  await new Promise((resolve9) => setImmediate(resolve9));
78433
78420
  if (config) {
@@ -81426,7 +81413,7 @@ var Footer = () => {
81426
81413
  case "auth": {
81427
81414
  if (!settings.merged.ui.showUserIdentity) break;
81428
81415
  if (!authType) break;
81429
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
81416
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
81430
81417
  addCol(
81431
81418
  id,
81432
81419
  header,
@@ -83194,12 +83181,12 @@ import path29 from "node:path";
83194
83181
  function getIdeStatusMessage(ideClient) {
83195
83182
  const connection = ideClient.getConnectionStatus();
83196
83183
  switch (connection.status) {
83197
- case IDEConnectionStatus.Connected:
83184
+ case "connected" /* Connected */:
83198
83185
  return {
83199
83186
  messageType: "info",
83200
83187
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
83201
83188
  };
83202
- case IDEConnectionStatus.Connecting:
83189
+ case "connecting" /* Connecting */:
83203
83190
  return {
83204
83191
  messageType: "info",
83205
83192
  content: `\u{1F7E1} Connecting...`
@@ -83240,7 +83227,7 @@ ${infoMessage}`;
83240
83227
  async function getIdeStatusMessageWithFiles(ideClient) {
83241
83228
  const connection = ideClient.getConnectionStatus();
83242
83229
  switch (connection.status) {
83243
- case IDEConnectionStatus.Connected: {
83230
+ case "connected" /* Connected */: {
83244
83231
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
83245
83232
  const context = ideContextStore.get();
83246
83233
  const openFiles = context?.workspaceState?.openFiles;
@@ -83252,7 +83239,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
83252
83239
  content
83253
83240
  };
83254
83241
  }
83255
- case IDEConnectionStatus.Connecting:
83242
+ case "connecting" /* Connecting */:
83256
83243
  return {
83257
83244
  messageType: "info",
83258
83245
  content: `\u{1F7E1} Connecting...`
@@ -83274,7 +83261,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
83274
83261
  const ideClient = await IdeClient.getInstance();
83275
83262
  if (value) {
83276
83263
  await ideClient.connect(options);
83277
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
83264
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
83278
83265
  } else {
83279
83266
  await ideClient.disconnect();
83280
83267
  }
@@ -83362,7 +83349,7 @@ var ideCommand = async () => {
83362
83349
  logToConsole: false
83363
83350
  }
83364
83351
  );
83365
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
83352
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
83366
83353
  break;
83367
83354
  }
83368
83355
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -83439,7 +83426,7 @@ var ideCommand = async () => {
83439
83426
  }
83440
83427
  };
83441
83428
  const { status } = ideClient.getConnectionStatus();
83442
- const isConnected = status === IDEConnectionStatus.Connected;
83429
+ const isConnected = status === "connected" /* Connected */;
83443
83430
  if (isConnected) {
83444
83431
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
83445
83432
  } else {
@@ -83539,13 +83526,13 @@ Use /mcp auth <server-name> to authenticate.`
83539
83526
  const displayListener = (message) => {
83540
83527
  context.ui.addItem({ type: "info", text: message });
83541
83528
  };
83542
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
83529
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
83543
83530
  try {
83544
83531
  context.ui.addItem({
83545
83532
  type: "info",
83546
83533
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
83547
83534
  });
83548
- const { MCPOAuthProvider } = await import("./dist-EKBAHHIJ.js");
83535
+ const { MCPOAuthProvider } = await import("./core-6HRWFQZW.js");
83549
83536
  let oauthConfig = server.oauth;
83550
83537
  if (!oauthConfig) {
83551
83538
  oauthConfig = { enabled: false };
@@ -83582,7 +83569,7 @@ Use /mcp auth <server-name> to authenticate.`
83582
83569
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
83583
83570
  };
83584
83571
  } finally {
83585
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
83572
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
83586
83573
  }
83587
83574
  },
83588
83575
  completion: async (context, partialArg) => {
@@ -83628,10 +83615,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
83628
83615
  }
83629
83616
  const serverNames = Object.keys(mcpServers);
83630
83617
  const connectingServers = serverNames.filter(
83631
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
83618
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
83632
83619
  );
83633
83620
  const discoveryState = getMCPDiscoveryState();
83634
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
83621
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
83635
83622
  const allTools = toolRegistry.getAllTools();
83636
83623
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
83637
83624
  const promptRegistry = config.getPromptRegistry();
@@ -99403,7 +99390,7 @@ Return a JSON object with:
99403
99390
  },
99404
99391
  abortSignal: new AbortController().signal,
99405
99392
  promptId: "triage-duplicates",
99406
- role: LlmRole.UTILITY_TOOL
99393
+ role: "utility_tool" /* UTILITY_TOOL */
99407
99394
  });
99408
99395
  const rec = response;
99409
99396
  let canonical;
@@ -100237,7 +100224,7 @@ Return a JSON object with:
100237
100224
  },
100238
100225
  abortSignal: abortControllerRef.current.signal,
100239
100226
  promptId: "triage-issues",
100240
- role: LlmRole.UTILITY_TOOL
100227
+ role: "utility_tool" /* UTILITY_TOOL */
100241
100228
  });
100242
100229
  return response;
100243
100230
  },
@@ -100811,8 +100798,8 @@ var planCommand = {
100811
100798
  return;
100812
100799
  }
100813
100800
  const previousApprovalMode = config.getApprovalMode();
100814
- config.setApprovalMode(ApprovalMode.PLAN);
100815
- if (previousApprovalMode !== ApprovalMode.PLAN) {
100801
+ config.setApprovalMode("plan" /* PLAN */);
100802
+ if (previousApprovalMode !== "plan" /* PLAN */) {
100816
100803
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
100817
100804
  }
100818
100805
  if (context.invocation?.args) {
@@ -100871,10 +100858,10 @@ var categorizeRulesByMode = (rules) => {
100871
100858
  rules.forEach((rule) => {
100872
100859
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
100873
100860
  const modeSet = new Set(modes);
100874
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
100875
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
100876
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
100877
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
100861
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
100862
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
100863
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
100864
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
100878
100865
  });
100879
100866
  return result;
100880
100867
  };
@@ -102255,7 +102242,7 @@ var upgradeCommand = {
102255
102242
  action: async (context) => {
102256
102243
  const config = context.services.agentContext?.config;
102257
102244
  const authType = config?.getContentGeneratorConfig()?.authType;
102258
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
102245
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
102259
102246
  return {
102260
102247
  type: "message",
102261
102248
  messageType: "error",
@@ -102484,7 +102471,7 @@ var BuiltinCommandLoader = class {
102484
102471
  setupGithubCommand,
102485
102472
  terminalSetupCommand,
102486
102473
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
102487
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
102474
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
102488
102475
  ];
102489
102476
  handle?.end();
102490
102477
  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-QSGRHC6M.js";
5
+ } from "./chunk-ZOHM7BPT.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-PO2VSL43.js";
17
+ } from "./chunk-HN74ORTP.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6LCUTDX7.js";
20
+ } from "./chunk-ZQW7OGUO.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-CUFMYKIC.js";
5
+ } from "./chunk-ZQW7OGUO.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-JUHOHELL.js";
8
+ } from "./chunk-6OFXOGEG.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-CUFMYKIC.js";
8
+ } from "./chunk-ZQW7OGUO.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -1,13 +1,13 @@
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-2TCGCQ3U.js";
4
+ } from "./chunk-UBGF6JU5.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-CUFMYKIC.js";
10
+ } from "./chunk-ZQW7OGUO.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * 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-OLLYWO5Q.js";
5
+ } from "./chunk-EDVFNWRG.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-AQYLEGXG.js";
17
+ } from "./chunk-2NQXIWQK.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-JUHOHELL.js";
20
+ } from "./chunk-6OFXOGEG.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";