@google/gemini-cli 0.46.0-preview.3 → 0.46.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 (66) hide show
  1. package/bundle/{chunk-AJKD63PC.js → chunk-46UNR4SE.js} +1 -1
  2. package/bundle/{chunk-5ND76TYS.js → chunk-6ZHP2EJW.js} +4 -4
  3. package/bundle/{chunk-VON23XS2.js → chunk-7EBO46BD.js} +2 -2
  4. package/bundle/{chunk-2XKNPALS.js → chunk-BM5TFZWV.js} +1 -1
  5. package/bundle/{chunk-ZW2TA44S.js → chunk-CSKXYL76.js} +2 -2
  6. package/bundle/{chunk-IPSGP4HZ.js → chunk-EMVR5JTF.js} +8 -9
  7. package/bundle/{chunk-S5GUYIK7.js → chunk-FC67CGD5.js} +1 -1
  8. package/bundle/{chunk-KK5RNP2O.js → chunk-G33JEOEV.js} +14077 -7533
  9. package/bundle/{chunk-TIFKXOWZ.js → chunk-GPDO3T5B.js} +3 -3
  10. package/bundle/{chunk-CIWJFNFL.js → chunk-I4F637TN.js} +1 -1
  11. package/bundle/{chunk-LFPQWI47.js → chunk-IZGZZO6A.js} +1 -1
  12. package/bundle/{chunk-DVLOSJL6.js → chunk-IZZGJPR3.js} +1 -1
  13. package/bundle/{chunk-AYF4WWI6.js → chunk-JOFGDFVN.js} +3 -3
  14. package/bundle/{chunk-FHPHAHTC.js → chunk-MKQJU6N7.js} +1 -1
  15. package/bundle/{chunk-MKTEB4X2.js → chunk-O3ZM34A3.js} +1 -1
  16. package/bundle/{chunk-6WDE67I7.js → chunk-RCJSF5RP.js} +4 -4
  17. package/bundle/{chunk-V5CL3DRL.js → chunk-S5WKKTEF.js} +3 -3
  18. package/bundle/{chunk-PWEKIO66.js → chunk-SCXTH56Q.js} +7 -7
  19. package/bundle/{chunk-PBKO4RQZ.js → chunk-T55FPMGN.js} +54 -67
  20. package/bundle/{chunk-KOY6HFDJ.js → chunk-V2OCZBTI.js} +5 -8
  21. package/bundle/{chunk-W7QA7FT5.js → chunk-VFPQ45DS.js} +2 -2
  22. package/bundle/{chunk-2GESUVEI.js → chunk-XWSJWBAL.js} +7 -7
  23. package/bundle/{chunk-CQ5T2OOT.js → chunk-YIJWUMMP.js} +1 -1
  24. package/bundle/{chunk-7GTQ3TVY.js → chunk-YIKH5LDT.js} +1 -1
  25. package/bundle/{cleanup-3MDHF3OO.js → cleanup-HCSVNXSL.js} +2 -2
  26. package/bundle/{cleanup-ACXEXWY2.js → cleanup-KA5YYXS3.js} +2 -2
  27. package/bundle/{cleanup-EAOW4OCO.js → cleanup-SBGWM3G7.js} +2 -2
  28. package/bundle/{core-HYJM5T45.js → core-K77SYAQL.js} +1 -1
  29. package/bundle/{dist-EMBSC4SS.js → core-LVRAYGT3.js} +1 -1
  30. package/bundle/{devtoolsService-6OVP6DUO.js → devtoolsService-ADGLR4UM.js} +2 -2
  31. package/bundle/{devtoolsService-OVSOSM56.js → devtoolsService-ORERBA72.js} +3 -4
  32. package/bundle/{devtoolsService-5ME5JZIQ.js → devtoolsService-WRHZUKOW.js} +2 -2
  33. package/bundle/{dist-SHJ4FBPT.js → dist-6R4J6OFH.js} +1 -1
  34. package/bundle/{gemini-23GFJRSL.js → gemini-LOO67E54.js} +196 -212
  35. package/bundle/{gemini-XWN3KUEH.js → gemini-STIONCRJ.js} +14 -14
  36. package/bundle/{gemini-4SDDBM2K.js → gemini-YXO2QQ66.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-P65NECXR.js → interactiveCli-F337IDVS.js} +8 -8
  39. package/bundle/{interactiveCli-R6XRMC4D.js → interactiveCli-NKTBHB7O.js} +8 -8
  40. package/bundle/{interactiveCli-ZHRXRBPP.js → interactiveCli-OYDA765S.js} +295 -314
  41. package/bundle/{liteRtServerManager-6YTWQFQF.js → liteRtServerManager-6CQ3NBHQ.js} +4 -4
  42. package/bundle/{liteRtServerManager-D6LNW6CQ.js → liteRtServerManager-N7CBKKD6.js} +4 -4
  43. package/bundle/{liteRtServerManager-DV2CLRPW.js → liteRtServerManager-YBJANX3B.js} +4 -4
  44. package/bundle/{oauth2-provider-C3WLQHTS.js → oauth2-provider-AAJFAFW6.js} +1 -1
  45. package/bundle/{oauth2-provider-BTNIRWZ2.js → oauth2-provider-CYIU4X4W.js} +1 -1
  46. package/bundle/{oauth2-provider-KWAZCQ6F.js → oauth2-provider-YNWUFCNW.js} +72 -38
  47. package/bundle/{start-2YDK2M2Y.js → start-CNBBYSNI.js} +6 -6
  48. package/bundle/{start-DKFGI2SP.js → start-DEWQ46DT.js} +6 -6
  49. package/bundle/{start-KPTJV4UZ.js → start-H7TCWGQL.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-3PLUHPJV.js +0 -81736
  52. package/bundle/chunk-KBVSP7UV.js +0 -398
  53. package/bundle/chunk-QC2XF7WU.js +0 -154
  54. package/bundle/chunk-SWSOO6PG.js +0 -512
  55. package/bundle/chunk-VFBOEQYZ.js +0 -118
  56. package/bundle/chunk-XB2Y55JE.js +0 -17320
  57. package/bundle/chunk-XMZW4ETE.js +0 -394601
  58. package/bundle/chunk-YQE3FF4G.js +0 -1571
  59. package/bundle/cleanup-YRHQYKEA.js +0 -32
  60. package/bundle/devtoolsService-I4R5WQXY.js +0 -856
  61. package/bundle/dist-XMOYSFBW.js +0 -2142
  62. package/bundle/gemini-VIZXE6FK.js +0 -16409
  63. package/bundle/interactiveCli-ZLTD7RPN.js +0 -34752
  64. package/bundle/liteRtServerManager-HNNHQ2GQ.js +0 -65
  65. package/bundle/oauth2-provider-Y4NUSLR7.js +0 -235
  66. package/bundle/start-W2EDCOPO.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-DVLOSJL6.js";
5
+ } from "./chunk-IZZGJPR3.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-7GTQ3TVY.js";
17
+ } from "./chunk-V2OCZBTI.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6WDE67I7.js";
20
+ } from "./chunk-6ZHP2EJW.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-S5GUYIK7.js";
4
+ } from "./chunk-IZGZZO6A.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-KK5RNP2O.js";
8
+ } from "./chunk-G33JEOEV.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  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-QC2XF7WU.js";
4
+ } from "./chunk-46UNR4SE.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __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-CIWJFNFL.js";
5
+ } from "./chunk-O3ZM34A3.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-FHPHAHTC.js";
17
+ } from "./chunk-YIKH5LDT.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-5ND76TYS.js";
20
+ } from "./chunk-RCJSF5RP.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -29,7 +29,7 @@ import {
29
29
  require_strip_json_comments,
30
30
  sanitizeFilenamePart,
31
31
  stripAnsi
32
- } from "./chunk-5ND76TYS.js";
32
+ } from "./chunk-G33JEOEV.js";
33
33
  import {
34
34
  __commonJS,
35
35
  __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-LFPQWI47.js";
4
+ } from "./chunk-FC67CGD5.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -279303,8 +279303,8 @@ function isValidToolName(name3, options = {}) {
279303
279303
  }
279304
279304
 
279305
279305
  // packages/core/dist/src/generated/git-commit.js
279306
- var GIT_COMMIT_INFO = "5778999f1";
279307
- var CLI_VERSION = "0.46.0-preview.2";
279306
+ var GIT_COMMIT_INFO = "cf709c0e0";
279307
+ var CLI_VERSION = "0.46.0";
279308
279308
 
279309
279309
  // packages/core/dist/src/ide/detect-ide.js
279310
279310
  var IDE_DEFINITIONS = {
@@ -303469,7 +303469,7 @@ function getVersion() {
303469
303469
  }
303470
303470
  versionPromise = (async () => {
303471
303471
  const pkgJson = await getPackageJson(__dirname4);
303472
- return "0.46.0-preview.2";
303472
+ return "0.46.0";
303473
303473
  })();
303474
303474
  return versionPromise;
303475
303475
  }
@@ -335859,7 +335859,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
335859
335859
  return provider;
335860
335860
  }
335861
335861
  case "oauth2": {
335862
- const { OAuth2AuthProvider } = await import("./oauth2-provider-Y4NUSLR7.js");
335862
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-CYIU4X4W.js");
335863
335863
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
335864
335864
  await provider.initialize();
335865
335865
  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-YQE3FF4G.js";
5
+ } from "./chunk-I4F637TN.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-XB2Y55JE.js";
17
+ } from "./chunk-MKQJU6N7.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-XMZW4ETE.js";
20
+ } from "./chunk-G33JEOEV.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-CIWJFNFL.js";
9
+ } from "./chunk-IZZGJPR3.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,14 +58,14 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-FHPHAHTC.js";
61
+ } from "./chunk-V2OCZBTI.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-VON23XS2.js";
64
+ } from "./chunk-7EBO46BD.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-2XKNPALS.js";
68
+ } from "./chunk-BM5TFZWV.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
@@ -230,7 +230,7 @@ import {
230
230
  tokenLimit,
231
231
  uiTelemetryService,
232
232
  unescapePath
233
- } from "./chunk-5ND76TYS.js";
233
+ } from "./chunk-6ZHP2EJW.js";
234
234
  import {
235
235
  require_src
236
236
  } from "./chunk-TUDYL3X4.js";
@@ -56531,7 +56531,7 @@ var authCommand = {
56531
56531
  import process29 from "node:process";
56532
56532
 
56533
56533
  // packages/cli/src/generated/git-commit.ts
56534
- var GIT_COMMIT_INFO = "5778999f1";
56534
+ var GIT_COMMIT_INFO = "cf709c0e0";
56535
56535
 
56536
56536
  // packages/cli/src/ui/utils/historyExportUtils.ts
56537
56537
  import * as fsPromises from "node:fs/promises";
@@ -62312,7 +62312,7 @@ Use /mcp auth <server-name> to authenticate.`
62312
62312
  type: "info",
62313
62313
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62314
62314
  });
62315
- const { MCPOAuthProvider } = await import("./core-HYJM5T45.js");
62315
+ const { MCPOAuthProvider } = await import("./core-LVRAYGT3.js");
62316
62316
  let oauthConfig = server.oauth;
62317
62317
  if (!oauthConfig) {
62318
62318
  oauthConfig = { enabled: false };
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-MKTEB4X2.js";
9
+ } from "./chunk-I4F637TN.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -58,22 +58,20 @@ import {
58
58
  stripUnsafeCharacters,
59
59
  toCodePoints,
60
60
  validateCustomTheme
61
- } from "./chunk-KOY6HFDJ.js";
61
+ } from "./chunk-MKQJU6N7.js";
62
62
  import {
63
63
  isDevelopment
64
- } from "./chunk-ZW2TA44S.js";
64
+ } from "./chunk-VFPQ45DS.js";
65
65
  import {
66
66
  emptyIcon,
67
67
  require_react
68
- } from "./chunk-CQ5T2OOT.js";
68
+ } from "./chunk-EMVR5JTF.js";
69
69
  import {
70
70
  ALL_EDITORS,
71
71
  ApprovalMode,
72
72
  AsyncFzf,
73
- AuthType,
74
73
  Config,
75
74
  CoreEvent,
76
- CoreToolCallStatus,
77
75
  DiscoveredMCPTool,
78
76
  ExtensionDisableEvent,
79
77
  ExtensionEnableEvent,
@@ -84,31 +82,20 @@ import {
84
82
  ExtensionUpdateEvent,
85
83
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
86
84
  GEMINI_DIR,
87
- HookType,
88
- IDEConnectionStatus,
89
85
  INITIAL_HISTORY_LENGTH,
90
86
  IdeClient,
91
87
  IdeConnectionEvent,
92
- IdeConnectionType,
93
- IntegrityDataStatus,
94
88
  KeychainTokenStorage,
95
- LlmRole,
96
- MCPDiscoveryState,
97
89
  MCPOAuthTokenStorage,
98
- MCPServerStatus,
99
90
  ModelSlashCommandEvent,
100
- PolicyDecision,
101
91
  ProjectIdRequiredError,
102
92
  REFERENCE_CONTENT_END,
103
93
  REFERENCE_CONTENT_START,
104
94
  ReadManyFilesTool,
105
95
  RewindEvent,
106
- SessionEndReason,
107
- SessionStartSource,
108
96
  ShellExecutionService,
109
97
  StartSessionEvent,
110
98
  Storage,
111
- TrustLevel,
112
99
  UPGRADE_URL_PAGE,
113
100
  UserAccountManager,
114
101
  ValidationRequiredError,
@@ -243,7 +230,7 @@ import {
243
230
  tokenLimit,
244
231
  uiTelemetryService,
245
232
  unescapePath
246
- } from "./chunk-KK5RNP2O.js";
233
+ } from "./chunk-G33JEOEV.js";
247
234
  import {
248
235
  require_src
249
236
  } from "./chunk-TUDYL3X4.js";
@@ -39460,7 +39447,7 @@ var import_react34 = __toESM(require_react(), 1);
39460
39447
  function useIdeTrustListener() {
39461
39448
  const settings = useSettings();
39462
39449
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39463
- IDEConnectionStatus.Disconnected
39450
+ "disconnected" /* Disconnected */
39464
39451
  );
39465
39452
  const previousTrust = (0, import_react34.useRef)(void 0);
39466
39453
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39490,7 +39477,7 @@ function useIdeTrustListener() {
39490
39477
  };
39491
39478
  }, []);
39492
39479
  const getSnapshot = () => {
39493
- if (connectionStatus !== IDEConnectionStatus.Connected) {
39480
+ if (connectionStatus !== "connected" /* Connected */) {
39494
39481
  return void 0;
39495
39482
  }
39496
39483
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -40195,7 +40182,7 @@ async function initializeApp(config, settings) {
40195
40182
  await ideClient.connect();
40196
40183
  logIdeConnection(
40197
40184
  config,
40198
- new IdeConnectionEvent(IdeConnectionType.START)
40185
+ new IdeConnectionEvent("start" /* START */)
40199
40186
  );
40200
40187
  }).catch((e) => {
40201
40188
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -40213,17 +40200,17 @@ async function initializeApp(config, settings) {
40213
40200
  // packages/cli/src/config/auth.ts
40214
40201
  async function validateAuthMethod(authMethod) {
40215
40202
  loadEnvironment(loadSettings().merged, process.cwd());
40216
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
40203
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
40217
40204
  return null;
40218
40205
  }
40219
- if (authMethod === AuthType.USE_GEMINI) {
40206
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
40220
40207
  const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
40221
40208
  if (!key) {
40222
40209
  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)!";
40223
40210
  }
40224
40211
  return null;
40225
40212
  }
40226
- if (authMethod === AuthType.USE_VERTEX_AI) {
40213
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
40227
40214
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
40228
40215
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
40229
40216
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44650,7 +44637,7 @@ var ExtensionManager = class extends ExtensionLoader {
44650
44637
  const trustedFolders = loadTrustedFolders();
44651
44638
  await trustedFolders.setValue(
44652
44639
  this.workspaceDir,
44653
- TrustLevel.TRUST_FOLDER
44640
+ "TRUST_FOLDER" /* TRUST_FOLDER */
44654
44641
  );
44655
44642
  } else {
44656
44643
  throw new Error(
@@ -44836,7 +44823,7 @@ Would you like to attempt to install via "git clone" instead?`
44836
44823
  newExtensionConfig.version,
44837
44824
  previousExtensionConfig.version,
44838
44825
  installMetadata.type,
44839
- CoreToolCallStatus.Success
44826
+ "success" /* Success */
44840
44827
  )
44841
44828
  );
44842
44829
  if (newExtensionName !== previousName) {
@@ -44859,7 +44846,7 @@ Would you like to attempt to install via "git clone" instead?`
44859
44846
  getExtensionId(newExtensionConfig, installMetadata),
44860
44847
  newExtensionConfig.version,
44861
44848
  installMetadata.type,
44862
- CoreToolCallStatus.Success
44849
+ "success" /* Success */
44863
44850
  )
44864
44851
  );
44865
44852
  await this.enableExtension(
@@ -44892,7 +44879,7 @@ Would you like to attempt to install via "git clone" instead?`
44892
44879
  newExtensionConfig?.version ?? "",
44893
44880
  previousExtensionConfig.version,
44894
44881
  installMetadata.type,
44895
- CoreToolCallStatus.Error
44882
+ "error" /* Error */
44896
44883
  )
44897
44884
  );
44898
44885
  } else {
@@ -44904,7 +44891,7 @@ Would you like to attempt to install via "git clone" instead?`
44904
44891
  extensionId ?? "",
44905
44892
  newExtensionConfig?.version ?? "",
44906
44893
  installMetadata.type,
44907
- CoreToolCallStatus.Error
44894
+ "error" /* Error */
44908
44895
  )
44909
44896
  );
44910
44897
  }
@@ -44935,7 +44922,7 @@ Would you like to attempt to install via "git clone" instead?`
44935
44922
  extension.name,
44936
44923
  hashValue(extension.name),
44937
44924
  extension.id,
44938
- CoreToolCallStatus.Success
44925
+ "success" /* Success */
44939
44926
  )
44940
44927
  );
44941
44928
  }
@@ -45205,7 +45192,7 @@ Would you like to attempt to install via "git clone" instead?`
45205
45192
  if (eventHooks) {
45206
45193
  for (const definition of eventHooks) {
45207
45194
  for (const hook of definition.hooks) {
45208
- if (hook.type === HookType.Command) {
45195
+ if (hook.type === "command" /* Command */) {
45209
45196
  hook.env = { ...hook.env, ...hookEnv };
45210
45197
  }
45211
45198
  }
@@ -46236,7 +46223,7 @@ async function readMcpResources(resourceParts, config, signal) {
46236
46223
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46237
46224
  name: `resources/read (${resource.serverName})`,
46238
46225
  description: resource.uri,
46239
- status: CoreToolCallStatus.Success,
46226
+ status: "success" /* Success */,
46240
46227
  isClientInitiated: true,
46241
46228
  resultDisplay: `Successfully read resource ${resource.uri}`,
46242
46229
  confirmationDetails: void 0
@@ -46251,7 +46238,7 @@ async function readMcpResources(resourceParts, config, signal) {
46251
46238
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46252
46239
  name: `resources/read (${resource.serverName})`,
46253
46240
  description: resource.uri,
46254
- status: CoreToolCallStatus.Error,
46241
+ status: "error" /* Error */,
46255
46242
  isClientInitiated: true,
46256
46243
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46257
46244
  confirmationDetails: void 0
@@ -46276,7 +46263,7 @@ Content from @${result.uri}:
46276
46263
  }
46277
46264
  if (hasError) {
46278
46265
  const firstError = displays.find(
46279
- (d) => d.status === CoreToolCallStatus.Error
46266
+ (d) => d.status === "error" /* Error */
46280
46267
  );
46281
46268
  return {
46282
46269
  parts: [],
@@ -46317,7 +46304,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46317
46304
  callId: `client-read-${userMessageTimestamp}`,
46318
46305
  name: readManyFilesTool.displayName,
46319
46306
  description: invocation.getDescription(),
46320
- status: CoreToolCallStatus.Success,
46307
+ status: "success" /* Success */,
46321
46308
  isClientInitiated: true,
46322
46309
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46323
46310
  confirmationDetails: void 0
@@ -46364,7 +46351,7 @@ Content from @${displayPath}:
46364
46351
  callId: `client-read-${userMessageTimestamp}`,
46365
46352
  name: readManyFilesTool.displayName,
46366
46353
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46367
- status: CoreToolCallStatus.Error,
46354
+ status: "error" /* Error */,
46368
46355
  isClientInitiated: true,
46369
46356
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46370
46357
  confirmationDetails: void 0
@@ -49631,7 +49618,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49631
49618
  if (wasRaw) {
49632
49619
  setRawMode?.(true);
49633
49620
  }
49634
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
49621
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49635
49622
  }
49636
49623
  }
49637
49624
 
@@ -52326,7 +52313,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52326
52313
  extension.name,
52327
52314
  installMetadata
52328
52315
  );
52329
- if (status === IntegrityDataStatus.INVALID) {
52316
+ if (status === "invalid" /* INVALID */) {
52330
52317
  throw new Error("Extension integrity cannot be verified");
52331
52318
  }
52332
52319
  } catch (e) {
@@ -53744,11 +53731,11 @@ var ShellProcessor = class {
53744
53731
  },
53745
53732
  void 0
53746
53733
  );
53747
- if (decision === PolicyDecision.DENY) {
53734
+ if (decision === "deny" /* DENY */) {
53748
53735
  throw new Error(
53749
53736
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
53750
53737
  );
53751
- } else if (decision === PolicyDecision.ASK_USER) {
53738
+ } else if (decision === "ask_user" /* ASK_USER */) {
53752
53739
  commandsToConfirm.add(command);
53753
53740
  }
53754
53741
  }
@@ -54866,7 +54853,7 @@ var MultiFolderTrustDialog = ({
54866
54853
  if (choice === 1 /* YES_AND_REMEMBER */) {
54867
54854
  await trustedFolders.setValue(
54868
54855
  expandedPath,
54869
- TrustLevel.TRUST_FOLDER
54856
+ "TRUST_FOLDER" /* TRUST_FOLDER */
54870
54857
  );
54871
54858
  }
54872
54859
  workspaceContext.addDirectory(expandedPath);
@@ -56544,7 +56531,7 @@ var authCommand = {
56544
56531
  import process29 from "node:process";
56545
56532
 
56546
56533
  // packages/cli/src/generated/git-commit.ts
56547
- var GIT_COMMIT_INFO = "5778999f1";
56534
+ var GIT_COMMIT_INFO = "cf709c0e0";
56548
56535
 
56549
56536
  // packages/cli/src/ui/utils/historyExportUtils.ts
56550
56537
  import * as fsPromises from "node:fs/promises";
@@ -57190,7 +57177,7 @@ var clearCommand = {
57190
57177
  const config = context.services.agentContext?.config;
57191
57178
  const hookSystem = config?.getHookSystem();
57192
57179
  if (hookSystem) {
57193
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
57180
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
57194
57181
  }
57195
57182
  config?.injectionService.clear();
57196
57183
  let newSessionId;
@@ -57207,7 +57194,7 @@ var clearCommand = {
57207
57194
  }
57208
57195
  let result;
57209
57196
  if (hookSystem) {
57210
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
57197
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
57211
57198
  }
57212
57199
  await new Promise((resolve9) => setImmediate(resolve9));
57213
57200
  if (config) {
@@ -60206,7 +60193,7 @@ var Footer = () => {
60206
60193
  case "auth": {
60207
60194
  if (!settings.merged.ui.showUserIdentity) break;
60208
60195
  if (!authType) break;
60209
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
60196
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
60210
60197
  addCol(
60211
60198
  id,
60212
60199
  header,
@@ -61974,12 +61961,12 @@ import path29 from "node:path";
61974
61961
  function getIdeStatusMessage(ideClient) {
61975
61962
  const connection = ideClient.getConnectionStatus();
61976
61963
  switch (connection.status) {
61977
- case IDEConnectionStatus.Connected:
61964
+ case "connected" /* Connected */:
61978
61965
  return {
61979
61966
  messageType: "info",
61980
61967
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
61981
61968
  };
61982
- case IDEConnectionStatus.Connecting:
61969
+ case "connecting" /* Connecting */:
61983
61970
  return {
61984
61971
  messageType: "info",
61985
61972
  content: `\u{1F7E1} Connecting...`
@@ -62020,7 +62007,7 @@ ${infoMessage}`;
62020
62007
  async function getIdeStatusMessageWithFiles(ideClient) {
62021
62008
  const connection = ideClient.getConnectionStatus();
62022
62009
  switch (connection.status) {
62023
- case IDEConnectionStatus.Connected: {
62010
+ case "connected" /* Connected */: {
62024
62011
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
62025
62012
  const context = ideContextStore.get();
62026
62013
  const openFiles = context?.workspaceState?.openFiles;
@@ -62032,7 +62019,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
62032
62019
  content
62033
62020
  };
62034
62021
  }
62035
- case IDEConnectionStatus.Connecting:
62022
+ case "connecting" /* Connecting */:
62036
62023
  return {
62037
62024
  messageType: "info",
62038
62025
  content: `\u{1F7E1} Connecting...`
@@ -62054,7 +62041,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
62054
62041
  const ideClient = await IdeClient.getInstance();
62055
62042
  if (value) {
62056
62043
  await ideClient.connect(options);
62057
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
62044
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
62058
62045
  } else {
62059
62046
  await ideClient.disconnect();
62060
62047
  }
@@ -62142,7 +62129,7 @@ var ideCommand = async () => {
62142
62129
  logToConsole: false
62143
62130
  }
62144
62131
  );
62145
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
62132
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
62146
62133
  break;
62147
62134
  }
62148
62135
  await new Promise((resolve9) => setTimeout(resolve9, 500));
@@ -62219,7 +62206,7 @@ var ideCommand = async () => {
62219
62206
  }
62220
62207
  };
62221
62208
  const { status } = ideClient.getConnectionStatus();
62222
- const isConnected = status === IDEConnectionStatus.Connected;
62209
+ const isConnected = status === "connected" /* Connected */;
62223
62210
  if (isConnected) {
62224
62211
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
62225
62212
  } else {
@@ -62319,13 +62306,13 @@ Use /mcp auth <server-name> to authenticate.`
62319
62306
  const displayListener = (message) => {
62320
62307
  context.ui.addItem({ type: "info", text: message });
62321
62308
  };
62322
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
62309
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62323
62310
  try {
62324
62311
  context.ui.addItem({
62325
62312
  type: "info",
62326
62313
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62327
62314
  });
62328
- const { MCPOAuthProvider } = await import("./dist-SHJ4FBPT.js");
62315
+ const { MCPOAuthProvider } = await import("./core-K77SYAQL.js");
62329
62316
  let oauthConfig = server.oauth;
62330
62317
  if (!oauthConfig) {
62331
62318
  oauthConfig = { enabled: false };
@@ -62362,7 +62349,7 @@ Use /mcp auth <server-name> to authenticate.`
62362
62349
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
62363
62350
  };
62364
62351
  } finally {
62365
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
62352
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62366
62353
  }
62367
62354
  },
62368
62355
  completion: async (context, partialArg) => {
@@ -62408,10 +62395,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
62408
62395
  }
62409
62396
  const serverNames = Object.keys(mcpServers);
62410
62397
  const connectingServers = serverNames.filter(
62411
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
62398
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
62412
62399
  );
62413
62400
  const discoveryState = getMCPDiscoveryState();
62414
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
62401
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
62415
62402
  const allTools = toolRegistry.getAllTools();
62416
62403
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
62417
62404
  const promptRegistry = config.getPromptRegistry();
@@ -78169,7 +78156,7 @@ Return a JSON object with:
78169
78156
  },
78170
78157
  abortSignal: new AbortController().signal,
78171
78158
  promptId: "triage-duplicates",
78172
- role: LlmRole.UTILITY_TOOL
78159
+ role: "utility_tool" /* UTILITY_TOOL */
78173
78160
  });
78174
78161
  const rec = response;
78175
78162
  let canonical;
@@ -79003,7 +78990,7 @@ Return a JSON object with:
79003
78990
  },
79004
78991
  abortSignal: abortControllerRef.current.signal,
79005
78992
  promptId: "triage-issues",
79006
- role: LlmRole.UTILITY_TOOL
78993
+ role: "utility_tool" /* UTILITY_TOOL */
79007
78994
  });
79008
78995
  return response;
79009
78996
  },
@@ -79577,8 +79564,8 @@ var planCommand = {
79577
79564
  return;
79578
79565
  }
79579
79566
  const previousApprovalMode = config.getApprovalMode();
79580
- config.setApprovalMode(ApprovalMode.PLAN);
79581
- if (previousApprovalMode !== ApprovalMode.PLAN) {
79567
+ config.setApprovalMode("plan" /* PLAN */);
79568
+ if (previousApprovalMode !== "plan" /* PLAN */) {
79582
79569
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
79583
79570
  }
79584
79571
  if (context.invocation?.args) {
@@ -79637,10 +79624,10 @@ var categorizeRulesByMode = (rules) => {
79637
79624
  rules.forEach((rule) => {
79638
79625
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
79639
79626
  const modeSet = new Set(modes);
79640
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
79641
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
79642
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
79643
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
79627
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
79628
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
79629
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
79630
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
79644
79631
  });
79645
79632
  return result;
79646
79633
  };
@@ -80992,7 +80979,7 @@ var upgradeCommand = {
80992
80979
  action: async (context) => {
80993
80980
  const config = context.services.agentContext?.config;
80994
80981
  const authType = config?.getContentGeneratorConfig()?.authType;
80995
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
80982
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
80996
80983
  return {
80997
80984
  type: "message",
80998
80985
  messageType: "error",
@@ -81221,7 +81208,7 @@ var BuiltinCommandLoader = class {
81221
81208
  setupGithubCommand,
81222
81209
  terminalSetupCommand,
81223
81210
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
81224
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
81211
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
81225
81212
  ];
81226
81213
  handle?.end();
81227
81214
  return allDefinitions.filter((cmd) => cmd !== null);