@google/gemini-cli 0.71.0 → 0.71.1

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 (74) hide show
  1. package/bundle/{chunk-IWQOZRAT.js → chunk-2B7JJXKC.js} +1 -1
  2. package/bundle/{chunk-I7BKOSH3.js → chunk-2Z6OMQKM.js} +1 -1
  3. package/bundle/{chunk-SXKZW3JE.js → chunk-3SHFRERV.js} +1 -1
  4. package/bundle/{chunk-TRYE6AUM.js → chunk-4UW3VJTT.js} +4 -4
  5. package/bundle/{chunk-TB7QMWM2.js → chunk-5E7G6JKU.js} +3 -3
  6. package/bundle/{chunk-7CKWIN5G.js → chunk-5XMSOGIG.js} +7 -7
  7. package/bundle/{chunk-AYSLHXA4.js → chunk-5Z6VX6CL.js} +2 -2
  8. package/bundle/{chunk-K767QEGB.js → chunk-66MTKCNI.js} +3 -3
  9. package/bundle/{chunk-SLGLHOV2.js → chunk-7KLSV23C.js} +71 -58
  10. package/bundle/{chunk-EKWALRKF.js → chunk-EFTWPKUN.js} +8066 -15416
  11. package/bundle/{chunk-KYHTL3DC.js → chunk-ERWHYM4U.js} +2 -2
  12. package/bundle/{chunk-AXBBOMHQ.js → chunk-EYFD4IXY.js} +1 -1
  13. package/bundle/{chunk-QCSQIXGM.js → chunk-GNADRXVJ.js} +9 -8
  14. package/bundle/chunk-H2UUYR57.js +60338 -0
  15. package/bundle/{chunk-NNVHJBJY.js → chunk-H3XZAPPM.js} +2 -2
  16. package/bundle/{chunk-ZZJKFKG7.js → chunk-JJQXJ4YW.js} +1 -1
  17. package/bundle/{chunk-HMO6GZYF.js → chunk-KPQSXIIX.js} +8 -6
  18. package/bundle/{chunk-JLAW7BA6.js → chunk-LMFXSDD5.js} +1 -1
  19. package/bundle/{chunk-ZVHUCZP3.js → chunk-LUNZGYWH.js} +1 -1
  20. package/bundle/chunk-ME55Z6II.js +512 -0
  21. package/bundle/{chunk-WHN36NNK.js → chunk-MTVMJTRD.js} +7 -7
  22. package/bundle/{chunk-NFKOBXZH.js → chunk-NJ3UA7N7.js} +3 -3
  23. package/bundle/chunk-OGIQ2DJJ.js +420358 -0
  24. package/bundle/{chunk-DYLFWJSS.js → chunk-PGIUSQYX.js} +1 -1
  25. package/bundle/{chunk-JT7GL77Z.js → chunk-QE3A6WRI.js} +1 -1
  26. package/bundle/chunk-RQ4T6AK5.js +190 -0
  27. package/bundle/{chunk-NVQIJ42N.js → chunk-RWAKAA62.js} +1 -1
  28. package/bundle/{chunk-226R5C3B.js → chunk-SVDAJM4G.js} +2 -2
  29. package/bundle/{chunk-SENWXNTO.js → chunk-TC4PBO7S.js} +2 -2
  30. package/bundle/{chunk-SJAGJ77Z.js → chunk-TGPYI6FY.js} +1 -1
  31. package/bundle/{chunk-HF6ORJX7.js → chunk-TZEZ2BF4.js} +2 -2
  32. package/bundle/chunk-V3MODYYD.js +40024 -0
  33. package/bundle/chunk-V5OR34VL.js +1962 -0
  34. package/bundle/chunk-XERNHADV.js +118 -0
  35. package/bundle/chunk-XOCSGCT5.js +65 -0
  36. package/bundle/chunk-YTLUKDLU.js +1571 -0
  37. package/bundle/{cleanup-35H7WFOM.js → cleanup-HZB3VIXG.js} +2 -2
  38. package/bundle/{cleanup-HF6T3GQ6.js → cleanup-QGMSGSQI.js} +2 -2
  39. package/bundle/{cleanup-XECNNSOD.js → cleanup-SNOIOSXE.js} +2 -2
  40. package/bundle/cleanup-XOWU5YHP.js +34 -0
  41. package/bundle/{core-74O6JBFD.js → core-5NA633TR.js} +1 -1
  42. package/bundle/{devtoolsService-43KC32ZN.js → devtoolsService-AT3VY34P.js} +2 -2
  43. package/bundle/{devtoolsService-E2R3RE2K.js → devtoolsService-JK3QG6X7.js} +4 -3
  44. package/bundle/{devtoolsService-Y7BMPXKB.js → devtoolsService-RIZXSVKI.js} +2 -2
  45. package/bundle/devtoolsService-ZAMC5JAO.js +919 -0
  46. package/bundle/{core-PNHLJ262.js → dist-JL5IFBA3.js} +1 -1
  47. package/bundle/{dist-PS73JTWM.js → dist-RXWQJLEG.js} +1 -1
  48. package/bundle/dist-ZAHQGAAY.js +2372 -0
  49. package/bundle/{formatError-NEW4YLDY.js → formatError-2ZV7IU6M.js} +2 -2
  50. package/bundle/{formatError-ZZYUJD6F.js → formatError-EGZMA6Z2.js} +2 -2
  51. package/bundle/{formatError-6GUCXQAC.js → formatError-FYNWLWNA.js} +2 -2
  52. package/bundle/formatError-VALS3RAN.js +14 -0
  53. package/bundle/{gemini-2HTL6LHD.js → gemini-7FHLRHNN.js} +224 -208
  54. package/bundle/gemini-FRYTBWBD.js +20020 -0
  55. package/bundle/{gemini-LRATVZEI.js → gemini-LBFFF5NZ.js} +14 -14
  56. package/bundle/{gemini-CUUSRGL5.js → gemini-SYSVTILL.js} +14 -14
  57. package/bundle/gemini.js +8 -8
  58. package/bundle/{interactiveCli-EI6DXDED.js → interactiveCli-FOKYJG6H.js} +8 -8
  59. package/bundle/{interactiveCli-NJEZNU22.js → interactiveCli-LDT5NDQR.js} +319 -300
  60. package/bundle/{interactiveCli-BTNJSUQE.js → interactiveCli-SJYVQK53.js} +8 -8
  61. package/bundle/interactiveCli-VXSDDOFP.js +36447 -0
  62. package/bundle/{liteRtServerManager-YWW2KXDB.js → liteRtServerManager-7EZCW25J.js} +4 -4
  63. package/bundle/{liteRtServerManager-3ASA64JU.js → liteRtServerManager-QCOZHG7Q.js} +4 -4
  64. package/bundle/{liteRtServerManager-ZVBNBHNG.js → liteRtServerManager-RWREZPJE.js} +4 -4
  65. package/bundle/liteRtServerManager-WTEPPKAQ.js +65 -0
  66. package/bundle/{oauth2-provider-CNHAHID7.js → oauth2-provider-775ZBHR6.js} +1 -1
  67. package/bundle/{oauth2-provider-Y4FLXHNF.js → oauth2-provider-FTL5RWC6.js} +1 -1
  68. package/bundle/{oauth2-provider-2E2SN4NL.js → oauth2-provider-H5S5NJUW.js} +41 -79
  69. package/bundle/oauth2-provider-QC5SFA6N.js +273 -0
  70. package/bundle/{start-I5FBIWR2.js → start-HCWYCRFJ.js} +6 -6
  71. package/bundle/{start-PEGW57CI.js → start-HYRJ4ARV.js} +6 -6
  72. package/bundle/{start-3UMKH57P.js → start-S4SAAQ7Z.js} +6 -6
  73. package/bundle/start-SRLXJJA4.js +18 -0
  74. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  isTelemetrySdkInitialized,
7
7
  resetBrowserSession,
8
8
  shutdownTelemetry
9
- } from "./chunk-EKWALRKF.js";
9
+ } from "./chunk-SVDAJM4G.js";
10
10
 
11
11
  // packages/cli/src/utils/cleanup.ts
12
12
  import { promises as fs } from "node:fs";
@@ -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-JLAW7BA6.js";
4
+ } from "./chunk-2B7JJXKC.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -1,7 +1,7 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-IWQOZRAT.js";
4
+ } from "./chunk-LMFXSDD5.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -295380,8 +295380,8 @@ function isValidToolName(name3, options = {}) {
295380
295380
  }
295381
295381
 
295382
295382
  // packages/core/dist/src/generated/git-commit.js
295383
- var GIT_COMMIT_INFO = "09c09018e";
295384
- var CLI_VERSION = "0.71.0";
295383
+ var GIT_COMMIT_INFO = "1e9df3cac";
295384
+ var CLI_VERSION = "0.71.1";
295385
295385
 
295386
295386
  // packages/core/dist/src/ide/detect-ide.js
295387
295387
  var IDE_DEFINITIONS = {
@@ -327999,7 +327999,7 @@ function getVersion() {
327999
327999
  }
328000
328000
  versionPromise = (async () => {
328001
328001
  const pkgJson = await getPackageJson(__dirname4);
328002
- return "0.71.0";
328002
+ return "0.71.1";
328003
328003
  })();
328004
328004
  return versionPromise;
328005
328005
  }
@@ -360712,7 +360712,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
360712
360712
  return provider;
360713
360713
  }
360714
360714
  case "oauth2": {
360715
- const { OAuth2AuthProvider } = await import("./oauth2-provider-CNHAHID7.js");
360715
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-QC5SFA6N.js");
360716
360716
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
360717
360717
  await provider.initialize();
360718
360718
  return provider;
@@ -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-SXKZW3JE.js";
5
+ } from "./chunk-YTLUKDLU.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-HMO6GZYF.js";
17
+ } from "./chunk-KPQSXIIX.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-EKWALRKF.js";
20
+ } from "./chunk-OGIQ2DJJ.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-I7BKOSH3.js";
5
+ } from "./chunk-YTLUKDLU.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -69,16 +69,16 @@ import {
69
69
  use_stdin_default,
70
70
  use_stdout_default,
71
71
  validateCustomTheme
72
- } from "./chunk-AYSLHXA4.js";
72
+ } from "./chunk-KPQSXIIX.js";
73
73
  import {
74
74
  isDevelopment,
75
75
  require_semver
76
- } from "./chunk-NNVHJBJY.js";
76
+ } from "./chunk-TC4PBO7S.js";
77
77
  import {
78
78
  emptyIcon,
79
79
  mapCoreStatusToDisplayStatus,
80
80
  require_react
81
- } from "./chunk-AXBBOMHQ.js";
81
+ } from "./chunk-ME55Z6II.js";
82
82
  import {
83
83
  ALL_EDITORS,
84
84
  ApprovalMode,
@@ -269,7 +269,7 @@ import {
269
269
  unescapePath,
270
270
  validateUrlDestination,
271
271
  wo
272
- } from "./chunk-TRYE6AUM.js";
272
+ } from "./chunk-OGIQ2DJJ.js";
273
273
  import {
274
274
  require_src
275
275
  } from "./chunk-L6PII3GR.js";
@@ -35020,7 +35020,7 @@ var authCommand = {
35020
35020
  import process12 from "node:process";
35021
35021
 
35022
35022
  // packages/cli/src/generated/git-commit.ts
35023
- var GIT_COMMIT_INFO = "cd7813e43";
35023
+ var GIT_COMMIT_INFO = "1e9df3cac";
35024
35024
 
35025
35025
  // packages/cli/src/ui/utils/historyExportUtils.ts
35026
35026
  import * as fsPromises from "node:fs/promises";
@@ -40842,7 +40842,7 @@ Use /mcp auth <server-name> to authenticate.`
40842
40842
  type: "info",
40843
40843
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
40844
40844
  });
40845
- const { MCPOAuthProvider } = await import("./dist-PS73JTWM.js");
40845
+ const { MCPOAuthProvider } = await import("./dist-RXWQJLEG.js");
40846
40846
  let oauthConfig = server.oauth;
40847
40847
  if (!oauthConfig) {
40848
40848
  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
  require_react
4
- } from "./chunk-AXBBOMHQ.js";
4
+ } from "./chunk-GNADRXVJ.js";
5
5
  import {
6
6
  AuthProviderType,
7
7
  AuthType,
@@ -38,7 +38,7 @@ import {
38
38
  require_shell_quote,
39
39
  require_strip_json_comments,
40
40
  sanitizeFilenamePart
41
- } from "./chunk-TRYE6AUM.js";
41
+ } from "./chunk-EFTWPKUN.js";
42
42
  import {
43
43
  __commonJS,
44
44
  __export,
@@ -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-ZZJKFKG7.js";
5
+ } from "./chunk-3SHFRERV.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-HF6ORJX7.js";
17
+ } from "./chunk-V3MODYYD.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-226R5C3B.js";
20
+ } from "./chunk-4UW3VJTT.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-ZZJKFKG7.js";
5
+ } from "./chunk-JJQXJ4YW.js";
6
6
  import {
7
7
  AppEvent,
8
8
  appEvents
@@ -69,22 +69,24 @@ import {
69
69
  use_stdin_default,
70
70
  use_stdout_default,
71
71
  validateCustomTheme
72
- } from "./chunk-HF6ORJX7.js";
72
+ } from "./chunk-5Z6VX6CL.js";
73
73
  import {
74
74
  isDevelopment,
75
75
  require_semver
76
- } from "./chunk-SENWXNTO.js";
76
+ } from "./chunk-V5OR34VL.js";
77
77
  import {
78
78
  emptyIcon,
79
79
  mapCoreStatusToDisplayStatus,
80
80
  require_react
81
- } from "./chunk-NVQIJ42N.js";
81
+ } from "./chunk-GNADRXVJ.js";
82
82
  import {
83
83
  ALL_EDITORS,
84
84
  ApprovalMode,
85
85
  AsyncFzf,
86
+ AuthType,
86
87
  Config,
87
88
  CoreEvent,
89
+ CoreToolCallStatus,
88
90
  Cs,
89
91
  DEFAULT_GEMINI_MODEL_AUTO,
90
92
  DEFAULT_HEATMAP_WINDOW_DAYS,
@@ -103,22 +105,33 @@ import {
103
105
  GEMINI_MODEL_ALIAS_FLASH,
104
106
  GEMINI_MODEL_ALIAS_FLASH_LITE,
105
107
  GEMINI_MODEL_ALIAS_PRO,
108
+ HookType,
109
+ IDEConnectionStatus,
106
110
  INITIAL_HISTORY_LENGTH,
107
111
  IdeClient,
108
112
  IdeConnectionEvent,
113
+ IdeConnectionType,
114
+ IntegrityDataStatus,
109
115
  KeychainTokenStorage,
116
+ LlmRole,
117
+ MCPDiscoveryState,
110
118
  MCPOAuthTokenStorage,
119
+ MCPServerStatus,
111
120
  ModelSlashCommandEvent,
112
121
  PREVIEW_GEMINI_MODEL_AUTO,
122
+ PolicyDecision,
113
123
  ProjectIdRequiredError,
114
124
  REFERENCE_CONTENT_END,
115
125
  REFERENCE_CONTENT_START,
116
126
  ReadManyFilesTool,
117
127
  RewindEvent,
118
128
  SHELL_TOOL_NAME,
129
+ SessionEndReason,
130
+ SessionStartSource,
119
131
  ShellExecutionService,
120
132
  StartSessionEvent,
121
133
  Storage,
134
+ TrustLevel,
122
135
  UPGRADE_URL_PAGE,
123
136
  UserAccountManager,
124
137
  VALID_GEMINI_MODELS,
@@ -256,7 +269,7 @@ import {
256
269
  unescapePath,
257
270
  validateUrlDestination,
258
271
  wo
259
- } from "./chunk-226R5C3B.js";
272
+ } from "./chunk-EFTWPKUN.js";
260
273
  import {
261
274
  require_src
262
275
  } from "./chunk-L6PII3GR.js";
@@ -11221,17 +11234,17 @@ var require_core2 = __commonJS({
11221
11234
  // packages/cli/src/config/auth.ts
11222
11235
  async function validateAuthMethod(authMethod) {
11223
11236
  loadEnvironment(loadSettings().merged, process.cwd());
11224
- if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
11237
+ if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
11225
11238
  return null;
11226
11239
  }
11227
- if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
11240
+ if (authMethod === AuthType.USE_GEMINI) {
11228
11241
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
11229
11242
  if (!key) {
11230
11243
  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)!";
11231
11244
  }
11232
11245
  return null;
11233
11246
  }
11234
- if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
11247
+ if (authMethod === AuthType.USE_VERTEX_AI) {
11235
11248
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
11236
11249
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
11237
11250
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -16923,7 +16936,7 @@ var import_react8 = __toESM(require_react(), 1);
16923
16936
  function useIdeTrustListener() {
16924
16937
  const settings = useSettings();
16925
16938
  const [connectionStatus, setConnectionStatus] = (0, import_react8.useState)(
16926
- "disconnected" /* Disconnected */
16939
+ IDEConnectionStatus.Disconnected
16927
16940
  );
16928
16941
  const previousTrust = (0, import_react8.useRef)(void 0);
16929
16942
  const [restartReason, setRestartReason] = (0, import_react8.useState)("NONE");
@@ -16953,7 +16966,7 @@ function useIdeTrustListener() {
16953
16966
  };
16954
16967
  }, []);
16955
16968
  const getSnapshot = () => {
16956
- if (connectionStatus !== "connected" /* Connected */) {
16969
+ if (connectionStatus !== IDEConnectionStatus.Connected) {
16957
16970
  return void 0;
16958
16971
  }
16959
16972
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -17658,7 +17671,7 @@ async function initializeApp(config, settings) {
17658
17671
  await ideClient.connect();
17659
17672
  logIdeConnection(
17660
17673
  config,
17661
- new IdeConnectionEvent("start" /* START */)
17674
+ new IdeConnectionEvent(IdeConnectionType.START)
17662
17675
  );
17663
17676
  }).catch((e) => {
17664
17677
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -22601,7 +22614,7 @@ var ExtensionManager = class extends ExtensionLoader {
22601
22614
  const trustedFolders = loadTrustedFolders();
22602
22615
  await trustedFolders.setValue(
22603
22616
  this.workspaceDir,
22604
- "TRUST_FOLDER" /* TRUST_FOLDER */
22617
+ TrustLevel.TRUST_FOLDER
22605
22618
  );
22606
22619
  } else {
22607
22620
  throw new Error(
@@ -22799,7 +22812,7 @@ Would you like to attempt to install via "git clone" instead?`
22799
22812
  newExtensionConfig.version,
22800
22813
  previousExtensionConfig.version,
22801
22814
  installMetadata.type,
22802
- "success" /* Success */
22815
+ CoreToolCallStatus.Success
22803
22816
  )
22804
22817
  );
22805
22818
  if (newExtensionName !== previousName) {
@@ -22822,7 +22835,7 @@ Would you like to attempt to install via "git clone" instead?`
22822
22835
  getExtensionId(newExtensionConfig, installMetadata),
22823
22836
  newExtensionConfig.version,
22824
22837
  installMetadata.type,
22825
- "success" /* Success */
22838
+ CoreToolCallStatus.Success
22826
22839
  )
22827
22840
  );
22828
22841
  await this.enableExtension(
@@ -22870,7 +22883,7 @@ Would you like to attempt to install via "git clone" instead?`
22870
22883
  newExtensionConfig?.version ?? "",
22871
22884
  previousExtensionConfig.version,
22872
22885
  installMetadata.type,
22873
- "error" /* Error */
22886
+ CoreToolCallStatus.Error
22874
22887
  )
22875
22888
  );
22876
22889
  } else {
@@ -22882,7 +22895,7 @@ Would you like to attempt to install via "git clone" instead?`
22882
22895
  extensionId ?? "",
22883
22896
  newExtensionConfig?.version ?? "",
22884
22897
  installMetadata.type,
22885
- "error" /* Error */
22898
+ CoreToolCallStatus.Error
22886
22899
  )
22887
22900
  );
22888
22901
  }
@@ -22910,7 +22923,7 @@ Would you like to attempt to install via "git clone" instead?`
22910
22923
  extension.name,
22911
22924
  hashValue(extension.name),
22912
22925
  extension.id,
22913
- "success" /* Success */
22926
+ CoreToolCallStatus.Success
22914
22927
  )
22915
22928
  );
22916
22929
  }
@@ -23176,7 +23189,7 @@ Would you like to attempt to install via "git clone" instead?`
23176
23189
  if (eventHooks) {
23177
23190
  for (const definition of eventHooks) {
23178
23191
  for (const hook of definition.hooks) {
23179
- if (hook.type === "command" /* Command */) {
23192
+ if (hook.type === HookType.Command) {
23180
23193
  hook.env = { ...hook.env, ...hookEnv };
23181
23194
  }
23182
23195
  }
@@ -24339,7 +24352,7 @@ async function readMcpResources(resourceParts, config, signal) {
24339
24352
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
24340
24353
  name: `resources/read (${resource.serverName})`,
24341
24354
  description: resource.uri,
24342
- status: "success" /* Success */,
24355
+ status: CoreToolCallStatus.Success,
24343
24356
  isClientInitiated: true,
24344
24357
  resultDisplay: `Successfully read resource ${resource.uri}`,
24345
24358
  confirmationDetails: void 0
@@ -24354,7 +24367,7 @@ async function readMcpResources(resourceParts, config, signal) {
24354
24367
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
24355
24368
  name: `resources/read (${resource.serverName})`,
24356
24369
  description: resource.uri,
24357
- status: "error" /* Error */,
24370
+ status: CoreToolCallStatus.Error,
24358
24371
  isClientInitiated: true,
24359
24372
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
24360
24373
  confirmationDetails: void 0
@@ -24379,7 +24392,7 @@ Content from @${result.uri}:
24379
24392
  }
24380
24393
  if (hasError) {
24381
24394
  const firstError = displays.find(
24382
- (d) => d.status === "error" /* Error */
24395
+ (d) => d.status === CoreToolCallStatus.Error
24383
24396
  );
24384
24397
  return {
24385
24398
  parts: [],
@@ -24418,7 +24431,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
24418
24431
  callId: `client-read-${userMessageTimestamp}`,
24419
24432
  name: readManyFilesTool.displayName,
24420
24433
  description: invocation.getDescription(),
24421
- status: "success" /* Success */,
24434
+ status: CoreToolCallStatus.Success,
24422
24435
  isClientInitiated: true,
24423
24436
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
24424
24437
  confirmationDetails: void 0
@@ -24467,7 +24480,7 @@ Content from @${displayPath}:
24467
24480
  callId: `client-read-${userMessageTimestamp}`,
24468
24481
  name: readManyFilesTool.displayName,
24469
24482
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
24470
- status: "error" /* Error */,
24483
+ status: CoreToolCallStatus.Error,
24471
24484
  isClientInitiated: true,
24472
24485
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
24473
24486
  confirmationDetails: void 0
@@ -27734,7 +27747,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
27734
27747
  if (wasRaw) {
27735
27748
  setRawMode?.(true);
27736
27749
  }
27737
- coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
27750
+ coreEvents.emit(CoreEvent.ExternalEditorClosed);
27738
27751
  }
27739
27752
  }
27740
27753
 
@@ -30428,7 +30441,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
30428
30441
  extension.name,
30429
30442
  installMetadata
30430
30443
  );
30431
- if (status === "invalid" /* INVALID */) {
30444
+ if (status === IntegrityDataStatus.INVALID) {
30432
30445
  throw new Error("Extension integrity cannot be verified");
30433
30446
  }
30434
30447
  } catch (e) {
@@ -31934,11 +31947,11 @@ var ShellProcessor = class {
31934
31947
  },
31935
31948
  void 0
31936
31949
  );
31937
- if (decision === "deny" /* DENY */) {
31950
+ if (decision === PolicyDecision.DENY) {
31938
31951
  throw new Error(
31939
31952
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
31940
31953
  );
31941
- } else if (decision === "ask_user" /* ASK_USER */) {
31954
+ } else if (decision === PolicyDecision.ASK_USER) {
31942
31955
  commandsToConfirm.add(command);
31943
31956
  }
31944
31957
  }
@@ -33068,7 +33081,7 @@ var MultiFolderTrustDialog = ({
33068
33081
  if (choice === 1 /* YES_AND_REMEMBER */) {
33069
33082
  await trustedFolders.setValue(
33070
33083
  expandedPath,
33071
- "TRUST_FOLDER" /* TRUST_FOLDER */
33084
+ TrustLevel.TRUST_FOLDER
33072
33085
  );
33073
33086
  }
33074
33087
  workspaceContext.addDirectory(expandedPath);
@@ -33399,10 +33412,10 @@ function isShellTool(name) {
33399
33412
  return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
33400
33413
  }
33401
33414
  function isThisShellFocusable(name, status, config) {
33402
- return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
33415
+ return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && config?.getEnableInteractiveShell());
33403
33416
  }
33404
33417
  function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
33405
- return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
33418
+ return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && ptyId === activeShellPtyId && embeddedShellFocused);
33406
33419
  }
33407
33420
  function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
33408
33421
  const [userHasFocused, setUserHasFocused] = (0, import_react30.useState)(false);
@@ -33562,14 +33575,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
33562
33575
  if (isTrackedToolCall(t)) {
33563
33576
  return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
33564
33577
  } else {
33565
- return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
33578
+ return t.status !== CoreToolCallStatus.Success && t.status !== CoreToolCallStatus.Error && t.status !== CoreToolCallStatus.Cancelled;
33566
33579
  }
33567
33580
  });
33568
33581
  const isEmbeddedShellFocused = toolsToInspect.some((t) => {
33569
33582
  if (isTrackedToolCall(t)) {
33570
33583
  return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
33571
33584
  } else {
33572
- return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
33585
+ return isShellTool(t.name) && t.status === CoreToolCallStatus.Executing && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
33573
33586
  }
33574
33587
  });
33575
33588
  const isShellCommand = toolsToInspect.some((t) => {
@@ -35007,7 +35020,7 @@ var authCommand = {
35007
35020
  import process12 from "node:process";
35008
35021
 
35009
35022
  // packages/cli/src/generated/git-commit.ts
35010
- var GIT_COMMIT_INFO = "09c09018e";
35023
+ var GIT_COMMIT_INFO = "1e9df3cac";
35011
35024
 
35012
35025
  // packages/cli/src/ui/utils/historyExportUtils.ts
35013
35026
  import * as fsPromises from "node:fs/promises";
@@ -35653,7 +35666,7 @@ var clearCommand = {
35653
35666
  const config = context.services.agentContext?.config;
35654
35667
  const hookSystem = config?.getHookSystem();
35655
35668
  if (hookSystem) {
35656
- await hookSystem.fireSessionEndEvent("clear" /* Clear */);
35669
+ await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
35657
35670
  }
35658
35671
  config?.injectionService.clear();
35659
35672
  let newSessionId;
@@ -35670,7 +35683,7 @@ var clearCommand = {
35670
35683
  }
35671
35684
  let result;
35672
35685
  if (hookSystem) {
35673
- result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
35686
+ result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
35674
35687
  }
35675
35688
  await new Promise((resolve9) => setImmediate(resolve9));
35676
35689
  if (config) {
@@ -38679,7 +38692,7 @@ var Footer = () => {
38679
38692
  case "auth": {
38680
38693
  if (!settings.merged.ui.showUserIdentity) break;
38681
38694
  if (!authType) break;
38682
- const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
38695
+ const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
38683
38696
  addCol(
38684
38697
  id,
38685
38698
  header,
@@ -40478,12 +40491,12 @@ import path28 from "node:path";
40478
40491
  function getIdeStatusMessage(ideClient) {
40479
40492
  const connection = ideClient.getConnectionStatus();
40480
40493
  switch (connection.status) {
40481
- case "connected" /* Connected */:
40494
+ case IDEConnectionStatus.Connected:
40482
40495
  return {
40483
40496
  messageType: "info",
40484
40497
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
40485
40498
  };
40486
- case "connecting" /* Connecting */:
40499
+ case IDEConnectionStatus.Connecting:
40487
40500
  return {
40488
40501
  messageType: "info",
40489
40502
  content: `\u{1F7E1} Connecting...`
@@ -40524,7 +40537,7 @@ ${infoMessage}`;
40524
40537
  async function getIdeStatusMessageWithFiles(ideClient) {
40525
40538
  const connection = ideClient.getConnectionStatus();
40526
40539
  switch (connection.status) {
40527
- case "connected" /* Connected */: {
40540
+ case IDEConnectionStatus.Connected: {
40528
40541
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
40529
40542
  const context = ideContextStore.get();
40530
40543
  const openFiles = context?.workspaceState?.openFiles;
@@ -40536,7 +40549,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
40536
40549
  content
40537
40550
  };
40538
40551
  }
40539
- case "connecting" /* Connecting */:
40552
+ case IDEConnectionStatus.Connecting:
40540
40553
  return {
40541
40554
  messageType: "info",
40542
40555
  content: `\u{1F7E1} Connecting...`
@@ -40558,7 +40571,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
40558
40571
  const ideClient = await IdeClient.getInstance();
40559
40572
  if (value) {
40560
40573
  await ideClient.connect(options);
40561
- logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
40574
+ logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
40562
40575
  } else {
40563
40576
  await ideClient.disconnect();
40564
40577
  }
@@ -40646,7 +40659,7 @@ var ideCommand = async () => {
40646
40659
  logToConsole: false
40647
40660
  }
40648
40661
  );
40649
- if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
40662
+ if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
40650
40663
  break;
40651
40664
  }
40652
40665
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -40723,7 +40736,7 @@ var ideCommand = async () => {
40723
40736
  }
40724
40737
  };
40725
40738
  const { status } = ideClient.getConnectionStatus();
40726
- const isConnected = status === "connected" /* Connected */;
40739
+ const isConnected = status === IDEConnectionStatus.Connected;
40727
40740
  if (isConnected) {
40728
40741
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
40729
40742
  } else {
@@ -40823,13 +40836,13 @@ Use /mcp auth <server-name> to authenticate.`
40823
40836
  const displayListener = (message) => {
40824
40837
  context.ui.addItem({ type: "info", text: message });
40825
40838
  };
40826
- coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
40839
+ coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
40827
40840
  try {
40828
40841
  context.ui.addItem({
40829
40842
  type: "info",
40830
40843
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
40831
40844
  });
40832
- const { MCPOAuthProvider } = await import("./core-74O6JBFD.js");
40845
+ const { MCPOAuthProvider } = await import("./dist-ZAHQGAAY.js");
40833
40846
  let oauthConfig = server.oauth;
40834
40847
  if (!oauthConfig) {
40835
40848
  oauthConfig = { enabled: false };
@@ -40866,7 +40879,7 @@ Use /mcp auth <server-name> to authenticate.`
40866
40879
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
40867
40880
  };
40868
40881
  } finally {
40869
- coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
40882
+ coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
40870
40883
  }
40871
40884
  },
40872
40885
  completion: async (context, partialArg) => {
@@ -40912,10 +40925,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
40912
40925
  }
40913
40926
  const serverNames = Object.keys(mcpServers);
40914
40927
  const connectingServers = serverNames.filter(
40915
- (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
40928
+ (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
40916
40929
  );
40917
40930
  const discoveryState = getMCPDiscoveryState();
40918
- const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
40931
+ const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
40919
40932
  const allTools = toolRegistry.getAllTools();
40920
40933
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
40921
40934
  const promptRegistry = config.getPromptRegistry();
@@ -56742,7 +56755,7 @@ Return a JSON object with:
56742
56755
  },
56743
56756
  abortSignal: new AbortController().signal,
56744
56757
  promptId: "triage-duplicates",
56745
- role: "utility_tool" /* UTILITY_TOOL */
56758
+ role: LlmRole.UTILITY_TOOL
56746
56759
  });
56747
56760
  const rec = response;
56748
56761
  let canonical;
@@ -57576,7 +57589,7 @@ Return a JSON object with:
57576
57589
  },
57577
57590
  abortSignal: abortControllerRef.current.signal,
57578
57591
  promptId: "triage-issues",
57579
- role: "utility_tool" /* UTILITY_TOOL */
57592
+ role: LlmRole.UTILITY_TOOL
57580
57593
  });
57581
57594
  return response;
57582
57595
  },
@@ -58150,8 +58163,8 @@ var planCommand = {
58150
58163
  return;
58151
58164
  }
58152
58165
  const previousApprovalMode = config.getApprovalMode();
58153
- config.setApprovalMode("plan" /* PLAN */);
58154
- if (previousApprovalMode !== "plan" /* PLAN */) {
58166
+ config.setApprovalMode(ApprovalMode.PLAN);
58167
+ if (previousApprovalMode !== ApprovalMode.PLAN) {
58155
58168
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
58156
58169
  }
58157
58170
  if (context.invocation?.args) {
@@ -58210,10 +58223,10 @@ var categorizeRulesByMode = (rules) => {
58210
58223
  rules.forEach((rule) => {
58211
58224
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
58212
58225
  const modeSet = new Set(modes);
58213
- if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
58214
- if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
58215
- if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
58216
- if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
58226
+ if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
58227
+ if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
58228
+ if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
58229
+ if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
58217
58230
  });
58218
58231
  return result;
58219
58232
  };
@@ -59652,7 +59665,7 @@ var upgradeCommand = {
59652
59665
  action: async (context) => {
59653
59666
  const config = context.services.agentContext?.config;
59654
59667
  const authType = config?.getContentGeneratorConfig()?.authType;
59655
- if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
59668
+ if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
59656
59669
  return {
59657
59670
  type: "message",
59658
59671
  messageType: "error",
@@ -59881,7 +59894,7 @@ var BuiltinCommandLoader = class {
59881
59894
  setupGithubCommand,
59882
59895
  terminalSetupCommand,
59883
59896
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
59884
- ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
59897
+ ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
59885
59898
  ];
59886
59899
  handle?.end();
59887
59900
  return allDefinitions.filter((cmd) => cmd !== null);