@google/gemini-cli 0.50.0-preview.1 → 0.51.0-nightly.20260626.gb14416447

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 (67) hide show
  1. package/bundle/{chunk-PMUN5IJZ.js → chunk-4BEEJ6KT.js} +3 -3
  2. package/bundle/{chunk-HIFDWUBC.js → chunk-547AURI2.js} +3 -3
  3. package/bundle/{chunk-HBYY54DT.js → chunk-6JCDVPCO.js} +1 -1
  4. package/bundle/{chunk-D6R3GDXI.js → chunk-7GMKMJCH.js} +7 -7
  5. package/bundle/{chunk-TTDJS74S.js → chunk-7LZWES35.js} +3 -3
  6. package/bundle/{chunk-ETXBN7LK.js → chunk-AMRZGQL7.js} +1 -1
  7. package/bundle/{chunk-MRTOORC2.js → chunk-CEXEWGYX.js} +1 -1
  8. package/bundle/{chunk-VZLZACOY.js → chunk-DCAENH7H.js} +67 -54
  9. package/bundle/{chunk-56TNC54N.js → chunk-ERNBEGR3.js} +13 -4
  10. package/bundle/{chunk-NU74E5OB.js → chunk-FYHG5WRH.js} +1 -1
  11. package/bundle/{chunk-GIFWBR5G.js → chunk-G6XTJX6D.js} +1 -1
  12. package/bundle/{chunk-K6GQQZ35.js → chunk-GGRZFDOB.js} +1 -1
  13. package/bundle/{chunk-IFRIQSIE.js → chunk-H3LA54PF.js} +9 -8
  14. package/bundle/chunk-HIPNKMYO.js +102505 -0
  15. package/bundle/{chunk-EVS7V6SI.js → chunk-HMC7FPVA.js} +2 -2
  16. package/bundle/{chunk-PX72MQPF.js → chunk-I3KZZYO6.js} +7567 -14100
  17. package/bundle/{chunk-URYDP2SH.js → chunk-KGI7LUMQ.js} +1 -1
  18. package/bundle/{chunk-OAXFDG4J.js → chunk-LIXZM7UF.js} +2 -2
  19. package/bundle/{chunk-OQSXQOXR.js → chunk-LPXQVTDY.js} +1 -1
  20. package/bundle/{chunk-QUO63CEE.js → chunk-MEQCQILN.js} +7 -7
  21. package/bundle/{chunk-CG7RLECB.js → chunk-N3Q5FKJ4.js} +8 -5
  22. package/bundle/{chunk-BYMHHELT.js → chunk-NRENYZFA.js} +1 -1
  23. package/bundle/{chunk-QZTUH5I6.js → chunk-R4TRE6I3.js} +1 -1
  24. package/bundle/{chunk-NQO7ZYF5.js → chunk-RCVHWJKT.js} +13 -4
  25. package/bundle/chunk-RDEB4Y7M.js +387683 -0
  26. package/bundle/chunk-U52XKOCU.js +154 -0
  27. package/bundle/chunk-U5Y63KFG.js +17332 -0
  28. package/bundle/chunk-V4JLTJLU.js +1571 -0
  29. package/bundle/{chunk-K7JTCJL6.js → chunk-VNGJMK4L.js} +2 -2
  30. package/bundle/chunk-ZAQH3RLR.js +398 -0
  31. package/bundle/chunk-ZNYFYVES.js +512 -0
  32. package/bundle/chunk-ZPM6HATU.js +118 -0
  33. package/bundle/{cleanup-KHF3XAMM.js → cleanup-PBDKLNF2.js} +2 -2
  34. package/bundle/{cleanup-LIJUVJND.js → cleanup-RVMUPT3F.js} +2 -2
  35. package/bundle/{cleanup-YXYCFALS.js → cleanup-VGBIV6ZA.js} +2 -2
  36. package/bundle/cleanup-YZA7EI6I.js +32 -0
  37. package/bundle/{core-3SATNZBC.js → core-2MADKFF4.js} +1 -1
  38. package/bundle/{devtoolsService-54ZAMF4J.js → devtoolsService-72D4IH3B.js} +2 -2
  39. package/bundle/{devtoolsService-XKEKJNUM.js → devtoolsService-CJWVQLSA.js} +2 -2
  40. package/bundle/{devtoolsService-YH6FAC3M.js → devtoolsService-OCT5RWR3.js} +4 -3
  41. package/bundle/devtoolsService-VOOMBV27.js +4359 -0
  42. package/bundle/{dist-GWVUFSPN.js → dist-AEBF6IYS.js} +1 -1
  43. package/bundle/{core-2BGJNGF4.js → dist-EVMP73KT.js} +1 -1
  44. package/bundle/dist-UUDBENS7.js +2150 -0
  45. package/bundle/docs/changelogs/preview.md +11 -3
  46. package/bundle/{gemini-KG2OGIZ7.js → gemini-M3WARDEG.js} +14 -14
  47. package/bundle/{gemini-USF33FXJ.js → gemini-N52OMPY3.js} +14 -14
  48. package/bundle/{gemini-JW3NMQQQ.js → gemini-RGIMTO42.js} +212 -196
  49. package/bundle/gemini-WW76D2CB.js +29270 -0
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-G4FFZALT.js → interactiveCli-CH5ENUPR.js} +18 -9
  52. package/bundle/{interactiveCli-T4PHRDUE.js → interactiveCli-IDAYVXI6.js} +324 -296
  53. package/bundle/interactiveCli-RJ7DLH6J.js +34776 -0
  54. package/bundle/{interactiveCli-2DCUI4IH.js → interactiveCli-VEPB3MBJ.js} +18 -9
  55. package/bundle/{liteRtServerManager-MP7KT7HX.js → liteRtServerManager-2DETBNEE.js} +4 -4
  56. package/bundle/{liteRtServerManager-OVLRSYIZ.js → liteRtServerManager-2EMLPNL3.js} +4 -4
  57. package/bundle/{liteRtServerManager-G2WOIQU7.js → liteRtServerManager-R3OJXBHH.js} +4 -4
  58. package/bundle/liteRtServerManager-SS3V3H2Q.js +65 -0
  59. package/bundle/{oauth2-provider-CL3I6VGC.js → oauth2-provider-BJ3XRWOM.js} +1 -1
  60. package/bundle/{oauth2-provider-5CHFLHC2.js → oauth2-provider-I4J5AX36.js} +1 -1
  61. package/bundle/{oauth2-provider-2Q3EF4MW.js → oauth2-provider-J2NK5Z4V.js} +38 -72
  62. package/bundle/oauth2-provider-RUWKCSTR.js +235 -0
  63. package/bundle/{start-VAVVPVKH.js → start-3IEYDQQJ.js} +6 -6
  64. package/bundle/{start-XS2AMGH6.js → start-HQU4WV2O.js} +6 -6
  65. package/bundle/{start-JOOSVCLE.js → start-LICMJ2OT.js} +6 -6
  66. package/bundle/start-VK77DOUZ.js +18 -0
  67. package/package.json +1 -1
@@ -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-K6GQQZ35.js";
5
+ } from "./chunk-R4TRE6I3.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-URYDP2SH.js";
17
+ } from "./chunk-U5Y63KFG.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-56TNC54N.js";
20
+ } from "./chunk-ERNBEGR3.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
  exitCli,
4
4
  require_source
5
- } from "./chunk-ETXBN7LK.js";
5
+ } from "./chunk-GGRZFDOB.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-CG7RLECB.js";
17
+ } from "./chunk-KGI7LUMQ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-NQO7ZYF5.js";
20
+ } from "./chunk-RDEB4Y7M.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-56TNC54N.js";
8
+ } from "./chunk-RCVHWJKT.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-K6GQQZ35.js";
9
+ } from "./chunk-AMRZGQL7.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,14 +59,14 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-URYDP2SH.js";
62
+ } from "./chunk-N3Q5FKJ4.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-OAXFDG4J.js";
65
+ } from "./chunk-LIXZM7UF.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-GIFWBR5G.js";
69
+ } from "./chunk-ZNYFYVES.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
@@ -243,7 +243,7 @@ import {
243
243
  tokenLimit,
244
244
  uiTelemetryService,
245
245
  unescapePath
246
- } from "./chunk-56TNC54N.js";
246
+ } from "./chunk-I3KZZYO6.js";
247
247
  import {
248
248
  require_src
249
249
  } from "./chunk-TUDYL3X4.js";
@@ -77176,7 +77176,7 @@ var authCommand = {
77176
77176
  import process29 from "node:process";
77177
77177
 
77178
77178
  // packages/cli/src/generated/git-commit.ts
77179
- var GIT_COMMIT_INFO = "a450d1aaa";
77179
+ var GIT_COMMIT_INFO = "b14416447";
77180
77180
 
77181
77181
  // packages/cli/src/ui/utils/historyExportUtils.ts
77182
77182
  import * as fsPromises from "node:fs/promises";
@@ -82957,7 +82957,7 @@ Use /mcp auth <server-name> to authenticate.`
82957
82957
  type: "info",
82958
82958
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82959
82959
  });
82960
- const { MCPOAuthProvider } = await import("./dist-GWVUFSPN.js");
82960
+ const { MCPOAuthProvider } = await import("./dist-EVMP73KT.js");
82961
82961
  let oauthConfig = server.oauth;
82962
82962
  if (!oauthConfig) {
82963
82963
  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-QZTUH5I6.js";
5
+ } from "./chunk-AMRZGQL7.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-BYMHHELT.js";
17
+ } from "./chunk-N3Q5FKJ4.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-PX72MQPF.js";
20
+ } from "./chunk-I3KZZYO6.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-MRTOORC2.js";
4
+ } from "./chunk-U52XKOCU.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-NQO7ZYF5.js";
8
+ } from "./chunk-RDEB4Y7M.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-ETXBN7LK.js";
9
+ } from "./chunk-R4TRE6I3.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,20 +59,22 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-CG7RLECB.js";
62
+ } from "./chunk-U5Y63KFG.js";
63
63
  import {
64
64
  isDevelopment
65
- } from "./chunk-EVS7V6SI.js";
65
+ } from "./chunk-ZAQH3RLR.js";
66
66
  import {
67
67
  emptyIcon,
68
68
  require_react
69
- } from "./chunk-NU74E5OB.js";
69
+ } from "./chunk-G6XTJX6D.js";
70
70
  import {
71
71
  ALL_EDITORS,
72
72
  ApprovalMode,
73
73
  AsyncFzf,
74
+ AuthType,
74
75
  Config,
75
76
  CoreEvent,
77
+ CoreToolCallStatus,
76
78
  DiscoveredMCPTool,
77
79
  ExtensionDisableEvent,
78
80
  ExtensionEnableEvent,
@@ -83,20 +85,31 @@ import {
83
85
  ExtensionUpdateEvent,
84
86
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
85
87
  GEMINI_DIR,
88
+ HookType,
89
+ IDEConnectionStatus,
86
90
  INITIAL_HISTORY_LENGTH,
87
91
  IdeClient,
88
92
  IdeConnectionEvent,
93
+ IdeConnectionType,
94
+ IntegrityDataStatus,
89
95
  KeychainTokenStorage,
96
+ LlmRole,
97
+ MCPDiscoveryState,
90
98
  MCPOAuthTokenStorage,
99
+ MCPServerStatus,
91
100
  ModelSlashCommandEvent,
101
+ PolicyDecision,
92
102
  ProjectIdRequiredError,
93
103
  REFERENCE_CONTENT_END,
94
104
  REFERENCE_CONTENT_START,
95
105
  ReadManyFilesTool,
96
106
  RewindEvent,
107
+ SessionEndReason,
108
+ SessionStartSource,
97
109
  ShellExecutionService,
98
110
  StartSessionEvent,
99
111
  Storage,
112
+ TrustLevel,
100
113
  UPGRADE_URL_PAGE,
101
114
  UserAccountManager,
102
115
  ValidationRequiredError,
@@ -230,7 +243,7 @@ import {
230
243
  tokenLimit,
231
244
  uiTelemetryService,
232
245
  unescapePath
233
- } from "./chunk-NQO7ZYF5.js";
246
+ } from "./chunk-ERNBEGR3.js";
234
247
  import {
235
248
  require_src
236
249
  } from "./chunk-TUDYL3X4.js";
@@ -60076,7 +60089,7 @@ var import_react34 = __toESM(require_react(), 1);
60076
60089
  function useIdeTrustListener() {
60077
60090
  const settings = useSettings();
60078
60091
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
60079
- "disconnected" /* Disconnected */
60092
+ IDEConnectionStatus.Disconnected
60080
60093
  );
60081
60094
  const previousTrust = (0, import_react34.useRef)(void 0);
60082
60095
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -60106,7 +60119,7 @@ function useIdeTrustListener() {
60106
60119
  };
60107
60120
  }, []);
60108
60121
  const getSnapshot = () => {
60109
- if (connectionStatus !== "connected" /* Connected */) {
60122
+ if (connectionStatus !== IDEConnectionStatus.Connected) {
60110
60123
  return void 0;
60111
60124
  }
60112
60125
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -60811,7 +60824,7 @@ async function initializeApp(config, settings) {
60811
60824
  await ideClient.connect();
60812
60825
  logIdeConnection(
60813
60826
  config,
60814
- new IdeConnectionEvent("start" /* START */)
60827
+ new IdeConnectionEvent(IdeConnectionType.START)
60815
60828
  );
60816
60829
  }).catch((e) => {
60817
60830
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -60829,17 +60842,17 @@ async function initializeApp(config, settings) {
60829
60842
  // packages/cli/src/config/auth.ts
60830
60843
  async function validateAuthMethod(authMethod) {
60831
60844
  loadEnvironment(loadSettings().merged, process.cwd());
60832
- if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
60845
+ if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
60833
60846
  return null;
60834
60847
  }
60835
- if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
60848
+ if (authMethod === AuthType.USE_GEMINI) {
60836
60849
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
60837
60850
  if (!key) {
60838
60851
  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)!";
60839
60852
  }
60840
60853
  return null;
60841
60854
  }
60842
- if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
60855
+ if (authMethod === AuthType.USE_VERTEX_AI) {
60843
60856
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
60844
60857
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
60845
60858
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -65266,7 +65279,7 @@ var ExtensionManager = class extends ExtensionLoader {
65266
65279
  const trustedFolders = loadTrustedFolders();
65267
65280
  await trustedFolders.setValue(
65268
65281
  this.workspaceDir,
65269
- "TRUST_FOLDER" /* TRUST_FOLDER */
65282
+ TrustLevel.TRUST_FOLDER
65270
65283
  );
65271
65284
  } else {
65272
65285
  throw new Error(
@@ -65452,7 +65465,7 @@ Would you like to attempt to install via "git clone" instead?`
65452
65465
  newExtensionConfig.version,
65453
65466
  previousExtensionConfig.version,
65454
65467
  installMetadata.type,
65455
- "success" /* Success */
65468
+ CoreToolCallStatus.Success
65456
65469
  )
65457
65470
  );
65458
65471
  if (newExtensionName !== previousName) {
@@ -65475,7 +65488,7 @@ Would you like to attempt to install via "git clone" instead?`
65475
65488
  getExtensionId(newExtensionConfig, installMetadata),
65476
65489
  newExtensionConfig.version,
65477
65490
  installMetadata.type,
65478
- "success" /* Success */
65491
+ CoreToolCallStatus.Success
65479
65492
  )
65480
65493
  );
65481
65494
  await this.enableExtension(
@@ -65508,7 +65521,7 @@ Would you like to attempt to install via "git clone" instead?`
65508
65521
  newExtensionConfig?.version ?? "",
65509
65522
  previousExtensionConfig.version,
65510
65523
  installMetadata.type,
65511
- "error" /* Error */
65524
+ CoreToolCallStatus.Error
65512
65525
  )
65513
65526
  );
65514
65527
  } else {
@@ -65520,7 +65533,7 @@ Would you like to attempt to install via "git clone" instead?`
65520
65533
  extensionId ?? "",
65521
65534
  newExtensionConfig?.version ?? "",
65522
65535
  installMetadata.type,
65523
- "error" /* Error */
65536
+ CoreToolCallStatus.Error
65524
65537
  )
65525
65538
  );
65526
65539
  }
@@ -65551,7 +65564,7 @@ Would you like to attempt to install via "git clone" instead?`
65551
65564
  extension.name,
65552
65565
  hashValue(extension.name),
65553
65566
  extension.id,
65554
- "success" /* Success */
65567
+ CoreToolCallStatus.Success
65555
65568
  )
65556
65569
  );
65557
65570
  }
@@ -65821,7 +65834,7 @@ Would you like to attempt to install via "git clone" instead?`
65821
65834
  if (eventHooks) {
65822
65835
  for (const definition of eventHooks) {
65823
65836
  for (const hook of definition.hooks) {
65824
- if (hook.type === "command" /* Command */) {
65837
+ if (hook.type === HookType.Command) {
65825
65838
  hook.env = { ...hook.env, ...hookEnv };
65826
65839
  }
65827
65840
  }
@@ -66852,7 +66865,7 @@ async function readMcpResources(resourceParts, config, signal) {
66852
66865
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
66853
66866
  name: `resources/read (${resource.serverName})`,
66854
66867
  description: resource.uri,
66855
- status: "success" /* Success */,
66868
+ status: CoreToolCallStatus.Success,
66856
66869
  isClientInitiated: true,
66857
66870
  resultDisplay: `Successfully read resource ${resource.uri}`,
66858
66871
  confirmationDetails: void 0
@@ -66867,7 +66880,7 @@ async function readMcpResources(resourceParts, config, signal) {
66867
66880
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
66868
66881
  name: `resources/read (${resource.serverName})`,
66869
66882
  description: resource.uri,
66870
- status: "error" /* Error */,
66883
+ status: CoreToolCallStatus.Error,
66871
66884
  isClientInitiated: true,
66872
66885
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
66873
66886
  confirmationDetails: void 0
@@ -66892,7 +66905,7 @@ Content from @${result.uri}:
66892
66905
  }
66893
66906
  if (hasError) {
66894
66907
  const firstError = displays.find(
66895
- (d) => d.status === "error" /* Error */
66908
+ (d) => d.status === CoreToolCallStatus.Error
66896
66909
  );
66897
66910
  return {
66898
66911
  parts: [],
@@ -66933,7 +66946,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
66933
66946
  callId: `client-read-${userMessageTimestamp}`,
66934
66947
  name: readManyFilesTool.displayName,
66935
66948
  description: invocation.getDescription(),
66936
- status: "success" /* Success */,
66949
+ status: CoreToolCallStatus.Success,
66937
66950
  isClientInitiated: true,
66938
66951
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
66939
66952
  confirmationDetails: void 0
@@ -66980,7 +66993,7 @@ Content from @${displayPath}:
66980
66993
  callId: `client-read-${userMessageTimestamp}`,
66981
66994
  name: readManyFilesTool.displayName,
66982
66995
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
66983
- status: "error" /* Error */,
66996
+ status: CoreToolCallStatus.Error,
66984
66997
  isClientInitiated: true,
66985
66998
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
66986
66999
  confirmationDetails: void 0
@@ -70247,7 +70260,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
70247
70260
  if (wasRaw) {
70248
70261
  setRawMode?.(true);
70249
70262
  }
70250
- coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
70263
+ coreEvents.emit(CoreEvent.ExternalEditorClosed);
70251
70264
  }
70252
70265
  }
70253
70266
 
@@ -72942,7 +72955,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
72942
72955
  extension.name,
72943
72956
  installMetadata
72944
72957
  );
72945
- if (status === "invalid" /* INVALID */) {
72958
+ if (status === IntegrityDataStatus.INVALID) {
72946
72959
  throw new Error("Extension integrity cannot be verified");
72947
72960
  }
72948
72961
  } catch (e) {
@@ -74363,11 +74376,11 @@ var ShellProcessor = class {
74363
74376
  },
74364
74377
  void 0
74365
74378
  );
74366
- if (decision === "deny" /* DENY */) {
74379
+ if (decision === PolicyDecision.DENY) {
74367
74380
  throw new Error(
74368
74381
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
74369
74382
  );
74370
- } else if (decision === "ask_user" /* ASK_USER */) {
74383
+ } else if (decision === PolicyDecision.ASK_USER) {
74371
74384
  commandsToConfirm.add(command);
74372
74385
  }
74373
74386
  }
@@ -75485,7 +75498,7 @@ var MultiFolderTrustDialog = ({
75485
75498
  if (choice === 1 /* YES_AND_REMEMBER */) {
75486
75499
  await trustedFolders.setValue(
75487
75500
  expandedPath,
75488
- "TRUST_FOLDER" /* TRUST_FOLDER */
75501
+ TrustLevel.TRUST_FOLDER
75489
75502
  );
75490
75503
  }
75491
75504
  workspaceContext.addDirectory(expandedPath);
@@ -77163,7 +77176,7 @@ var authCommand = {
77163
77176
  import process29 from "node:process";
77164
77177
 
77165
77178
  // packages/cli/src/generated/git-commit.ts
77166
- var GIT_COMMIT_INFO = "3fbf93e26";
77179
+ var GIT_COMMIT_INFO = "b14416447";
77167
77180
 
77168
77181
  // packages/cli/src/ui/utils/historyExportUtils.ts
77169
77182
  import * as fsPromises from "node:fs/promises";
@@ -77809,7 +77822,7 @@ var clearCommand = {
77809
77822
  const config = context.services.agentContext?.config;
77810
77823
  const hookSystem = config?.getHookSystem();
77811
77824
  if (hookSystem) {
77812
- await hookSystem.fireSessionEndEvent("clear" /* Clear */);
77825
+ await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
77813
77826
  }
77814
77827
  config?.injectionService.clear();
77815
77828
  let newSessionId;
@@ -77826,7 +77839,7 @@ var clearCommand = {
77826
77839
  }
77827
77840
  let result;
77828
77841
  if (hookSystem) {
77829
- result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
77842
+ result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
77830
77843
  }
77831
77844
  await new Promise((resolve9) => setImmediate(resolve9));
77832
77845
  if (config) {
@@ -80825,7 +80838,7 @@ var Footer = () => {
80825
80838
  case "auth": {
80826
80839
  if (!settings.merged.ui.showUserIdentity) break;
80827
80840
  if (!authType) break;
80828
- const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
80841
+ const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
80829
80842
  addCol(
80830
80843
  id,
80831
80844
  header,
@@ -82593,12 +82606,12 @@ import path29 from "node:path";
82593
82606
  function getIdeStatusMessage(ideClient) {
82594
82607
  const connection = ideClient.getConnectionStatus();
82595
82608
  switch (connection.status) {
82596
- case "connected" /* Connected */:
82609
+ case IDEConnectionStatus.Connected:
82597
82610
  return {
82598
82611
  messageType: "info",
82599
82612
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
82600
82613
  };
82601
- case "connecting" /* Connecting */:
82614
+ case IDEConnectionStatus.Connecting:
82602
82615
  return {
82603
82616
  messageType: "info",
82604
82617
  content: `\u{1F7E1} Connecting...`
@@ -82639,7 +82652,7 @@ ${infoMessage}`;
82639
82652
  async function getIdeStatusMessageWithFiles(ideClient) {
82640
82653
  const connection = ideClient.getConnectionStatus();
82641
82654
  switch (connection.status) {
82642
- case "connected" /* Connected */: {
82655
+ case IDEConnectionStatus.Connected: {
82643
82656
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
82644
82657
  const context = ideContextStore.get();
82645
82658
  const openFiles = context?.workspaceState?.openFiles;
@@ -82651,7 +82664,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
82651
82664
  content
82652
82665
  };
82653
82666
  }
82654
- case "connecting" /* Connecting */:
82667
+ case IDEConnectionStatus.Connecting:
82655
82668
  return {
82656
82669
  messageType: "info",
82657
82670
  content: `\u{1F7E1} Connecting...`
@@ -82673,7 +82686,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
82673
82686
  const ideClient = await IdeClient.getInstance();
82674
82687
  if (value) {
82675
82688
  await ideClient.connect(options);
82676
- logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
82689
+ logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
82677
82690
  } else {
82678
82691
  await ideClient.disconnect();
82679
82692
  }
@@ -82761,7 +82774,7 @@ var ideCommand = async () => {
82761
82774
  logToConsole: false
82762
82775
  }
82763
82776
  );
82764
- if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
82777
+ if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
82765
82778
  break;
82766
82779
  }
82767
82780
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -82838,7 +82851,7 @@ var ideCommand = async () => {
82838
82851
  }
82839
82852
  };
82840
82853
  const { status } = ideClient.getConnectionStatus();
82841
- const isConnected = status === "connected" /* Connected */;
82854
+ const isConnected = status === IDEConnectionStatus.Connected;
82842
82855
  if (isConnected) {
82843
82856
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
82844
82857
  } else {
@@ -82938,13 +82951,13 @@ Use /mcp auth <server-name> to authenticate.`
82938
82951
  const displayListener = (message) => {
82939
82952
  context.ui.addItem({ type: "info", text: message });
82940
82953
  };
82941
- coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82954
+ coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
82942
82955
  try {
82943
82956
  context.ui.addItem({
82944
82957
  type: "info",
82945
82958
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
82946
82959
  });
82947
- const { MCPOAuthProvider } = await import("./core-3SATNZBC.js");
82960
+ const { MCPOAuthProvider } = await import("./dist-UUDBENS7.js");
82948
82961
  let oauthConfig = server.oauth;
82949
82962
  if (!oauthConfig) {
82950
82963
  oauthConfig = { enabled: false };
@@ -82981,7 +82994,7 @@ Use /mcp auth <server-name> to authenticate.`
82981
82994
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
82982
82995
  };
82983
82996
  } finally {
82984
- coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
82997
+ coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
82985
82998
  }
82986
82999
  },
82987
83000
  completion: async (context, partialArg) => {
@@ -83027,10 +83040,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
83027
83040
  }
83028
83041
  const serverNames = Object.keys(mcpServers);
83029
83042
  const connectingServers = serverNames.filter(
83030
- (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
83043
+ (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
83031
83044
  );
83032
83045
  const discoveryState = getMCPDiscoveryState();
83033
- const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
83046
+ const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
83034
83047
  const allTools = toolRegistry.getAllTools();
83035
83048
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
83036
83049
  const promptRegistry = config.getPromptRegistry();
@@ -98789,7 +98802,7 @@ Return a JSON object with:
98789
98802
  },
98790
98803
  abortSignal: new AbortController().signal,
98791
98804
  promptId: "triage-duplicates",
98792
- role: "utility_tool" /* UTILITY_TOOL */
98805
+ role: LlmRole.UTILITY_TOOL
98793
98806
  });
98794
98807
  const rec = response;
98795
98808
  let canonical;
@@ -99623,7 +99636,7 @@ Return a JSON object with:
99623
99636
  },
99624
99637
  abortSignal: abortControllerRef.current.signal,
99625
99638
  promptId: "triage-issues",
99626
- role: "utility_tool" /* UTILITY_TOOL */
99639
+ role: LlmRole.UTILITY_TOOL
99627
99640
  });
99628
99641
  return response;
99629
99642
  },
@@ -100197,8 +100210,8 @@ var planCommand = {
100197
100210
  return;
100198
100211
  }
100199
100212
  const previousApprovalMode = config.getApprovalMode();
100200
- config.setApprovalMode("plan" /* PLAN */);
100201
- if (previousApprovalMode !== "plan" /* PLAN */) {
100213
+ config.setApprovalMode(ApprovalMode.PLAN);
100214
+ if (previousApprovalMode !== ApprovalMode.PLAN) {
100202
100215
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
100203
100216
  }
100204
100217
  if (context.invocation?.args) {
@@ -100257,10 +100270,10 @@ var categorizeRulesByMode = (rules) => {
100257
100270
  rules.forEach((rule) => {
100258
100271
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
100259
100272
  const modeSet = new Set(modes);
100260
- if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
100261
- if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
100262
- if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
100263
- if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
100273
+ if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
100274
+ if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
100275
+ if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
100276
+ if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
100264
100277
  });
100265
100278
  return result;
100266
100279
  };
@@ -101641,7 +101654,7 @@ var upgradeCommand = {
101641
101654
  action: async (context) => {
101642
101655
  const config = context.services.agentContext?.config;
101643
101656
  const authType = config?.getContentGeneratorConfig()?.authType;
101644
- if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
101657
+ if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
101645
101658
  return {
101646
101659
  type: "message",
101647
101660
  messageType: "error",
@@ -101870,7 +101883,7 @@ var BuiltinCommandLoader = class {
101870
101883
  setupGithubCommand,
101871
101884
  terminalSetupCommand,
101872
101885
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
101873
- ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
101886
+ ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
101874
101887
  ];
101875
101888
  handle?.end();
101876
101889
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -273705,8 +273705,8 @@ function isValidToolName(name3, options = {}) {
273705
273705
  }
273706
273706
 
273707
273707
  // packages/core/dist/src/generated/git-commit.js
273708
- var GIT_COMMIT_INFO = "3fbf93e26";
273709
- var CLI_VERSION = "0.50.0-preview.1";
273708
+ var GIT_COMMIT_INFO = "b14416447";
273709
+ var CLI_VERSION = "0.51.0-nightly.20260625.g3fbf93e26";
273710
273710
 
273711
273711
  // packages/core/dist/src/ide/detect-ide.js
273712
273712
  var IDE_DEFINITIONS = {
@@ -296882,7 +296882,7 @@ function getVersion() {
296882
296882
  }
296883
296883
  versionPromise = (async () => {
296884
296884
  const pkgJson = await getPackageJson(__dirname4);
296885
- return "0.50.0-preview.1";
296885
+ return "0.51.0-nightly.20260626.gb14416447";
296886
296886
  })();
296887
296887
  return versionPromise;
296888
296888
  }
@@ -301687,6 +301687,8 @@ function getAuthTypeFromEnv() {
301687
301687
  }
301688
301688
  var VERTEX_AI_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Request-Type";
301689
301689
  var VERTEX_AI_SHARED_REQUEST_TYPE_HEADER = "X-Vertex-AI-LLM-Shared-Request-Type";
301690
+ var VERTEX_AI_US_REP_ENDPOINT = "https://aiplatform.us.rep.googleapis.com";
301691
+ var VERTEX_AI_EU_REP_ENDPOINT = "https://aiplatform.eu.rep.googleapis.com";
301690
301692
  function validateBaseUrl(baseUrl) {
301691
301693
  try {
301692
301694
  new URL(baseUrl);
@@ -301806,6 +301808,13 @@ async function createContentGenerator(config2, gcConfig, sessionId) {
301806
301808
  if (envBaseUrl) {
301807
301809
  validateBaseUrl(envBaseUrl);
301808
301810
  baseUrl = envBaseUrl;
301811
+ } else if (config2.authType === AuthType2.USE_VERTEX_AI) {
301812
+ const location = process.env["GOOGLE_CLOUD_LOCATION"];
301813
+ if (location === "us") {
301814
+ baseUrl = VERTEX_AI_US_REP_ENDPOINT;
301815
+ } else if (location === "eu") {
301816
+ baseUrl = VERTEX_AI_EU_REP_ENDPOINT;
301817
+ }
301809
301818
  }
301810
301819
  } else {
301811
301820
  validateBaseUrl(baseUrl);
@@ -329110,7 +329119,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
329110
329119
  return provider;
329111
329120
  }
329112
329121
  case "oauth2": {
329113
- const { OAuth2AuthProvider } = await import("./oauth2-provider-CL3I6VGC.js");
329122
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-BJ3XRWOM.js");
329114
329123
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
329115
329124
  await provider.initialize();
329116
329125
  return provider;
@@ -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
  checkExhaustive
4
- } from "./chunk-NQO7ZYF5.js";
4
+ } from "./chunk-RCVHWJKT.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM