@google/gemini-cli 0.42.0-preview.1 → 0.42.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 (67) hide show
  1. package/bundle/{chunk-7LOMS5HP.js → chunk-3IS7GD6D.js} +2 -2
  2. package/bundle/{chunk-BI5ZICGL.js → chunk-4SLGT6YD.js} +1 -1
  3. package/bundle/{chunk-GZ4FSF4B.js → chunk-7C6GGDK6.js} +2 -2
  4. package/bundle/{chunk-A564QXJJ.js → chunk-7VVHSNDQ.js} +4 -4
  5. package/bundle/{chunk-NHDN46IK.js → chunk-BCYBA52D.js} +1 -1
  6. package/bundle/{chunk-47QC6PWE.js → chunk-CHERUG6W.js} +7 -7
  7. package/bundle/{chunk-UVBJHP26.js → chunk-COKAF5GM.js} +1 -1
  8. package/bundle/{chunk-PBD26LJQ.js → chunk-COQP2M4D.js} +55 -68
  9. package/bundle/{chunk-I5JMJ2LU.js → chunk-CYEIWMZJ.js} +1 -1
  10. package/bundle/{chunk-QZ2JZRLK.js → chunk-DMWX7UP6.js} +4 -4
  11. package/bundle/{chunk-ARLWCFGI.js → chunk-DN4XSYRG.js} +12732 -6834
  12. package/bundle/{chunk-BUJZOWQ7.js → chunk-EDKX67D6.js} +1 -1
  13. package/bundle/{chunk-5AFGMGVT.js → chunk-FCAODPNO.js} +7 -7
  14. package/bundle/{chunk-7H3CQGS6.js → chunk-G2VTSEZ6.js} +1 -1
  15. package/bundle/{chunk-UZZVXATH.js → chunk-GA527JB7.js} +1 -1
  16. package/bundle/{chunk-BZZHETT5.js → chunk-I7AME6VC.js} +8 -9
  17. package/bundle/{chunk-KSNNZBTV.js → chunk-KVEAHIIV.js} +3 -3
  18. package/bundle/{chunk-6K3EFSDX.js → chunk-LATVEETM.js} +1 -1
  19. package/bundle/{chunk-YDSDSLSO.js → chunk-NTOPH4WG.js} +2 -2
  20. package/bundle/{chunk-L7GACEVA.js → chunk-PUDLNWHE.js} +2 -2
  21. package/bundle/{chunk-AS4E6DX7.js → chunk-QOZSZYL7.js} +2 -2
  22. package/bundle/{chunk-LK7LIPO6.js → chunk-WIXUKOZA.js} +1 -1
  23. package/bundle/{chunk-IBIKJW2L.js → chunk-XUMRUXOT.js} +6 -9
  24. package/bundle/{chunk-UKCYYERR.js → chunk-ZNMQA242.js} +3 -3
  25. package/bundle/{cleanup-6PVHIK4C.js → cleanup-3RILFNVM.js} +2 -2
  26. package/bundle/{cleanup-NDTUQVOW.js → cleanup-SVRKYBR6.js} +3 -3
  27. package/bundle/{cleanup-FRS7FPOS.js → cleanup-XFVHHDVO.js} +2 -2
  28. package/bundle/{core-RZFMBCSX.js → core-B5S6HZJT.js} +1 -1
  29. package/bundle/{dist-DTPIOJ3P.js → core-FRVSDP2C.js} +2 -2
  30. package/bundle/{devtoolsService-WER5PRLG.js → devtoolsService-RUEO5PGP.js} +2 -2
  31. package/bundle/{devtoolsService-7SBW23VD.js → devtoolsService-TRDGMQLJ.js} +4 -5
  32. package/bundle/{devtoolsService-6D355RSX.js → devtoolsService-VM2WTHBX.js} +2 -2
  33. package/bundle/{dist-7BJPFNU7.js → dist-6BN2CJPN.js} +1 -1
  34. package/bundle/{gemini-KMMF6AK3.js → gemini-GHUELHBF.js} +14 -14
  35. package/bundle/{gemini-HCJBP42A.js → gemini-NQPVX5JC.js} +186 -200
  36. package/bundle/{gemini-GLORNPU2.js → gemini-QSTQ2DBG.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-HBRMSAIT.js → interactiveCli-453M2IVE.js} +8 -8
  39. package/bundle/{interactiveCli-TWDP2H52.js → interactiveCli-AG2YWL2O.js} +8 -8
  40. package/bundle/{interactiveCli-5UVCH7FM.js → interactiveCli-MZFG35NB.js} +276 -294
  41. package/bundle/{liteRtServerManager-BYQVAM6Y.js → liteRtServerManager-BXQ6VVWP.js} +4 -4
  42. package/bundle/{liteRtServerManager-3YA2HL46.js → liteRtServerManager-G4Q7OVBX.js} +4 -4
  43. package/bundle/{liteRtServerManager-RTBP2SLV.js → liteRtServerManager-S7WL25VD.js} +5 -5
  44. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  45. package/bundle/{oauth2-provider-TUVQXNLY.js → oauth2-provider-5UF5WEE2.js} +1 -1
  46. package/bundle/{oauth2-provider-C66JRVDQ.js → oauth2-provider-H7G6RSFW.js} +1 -1
  47. package/bundle/{oauth2-provider-ZPJOR5SG.js → oauth2-provider-VR4DL6AL.js} +73 -39
  48. package/bundle/{start-S3TEO5BN.js → start-2SKRN43X.js} +6 -6
  49. package/bundle/{start-HHZI73VV.js → start-CQBSKFYB.js} +7 -7
  50. package/bundle/{start-ELTWFVNO.js → start-NIMXQJYB.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-5MQ5VMQK.js +0 -17230
  53. package/bundle/chunk-66C7JVNE.js +0 -391
  54. package/bundle/chunk-A3GDBSEI.js +0 -512
  55. package/bundle/chunk-L6GBKGQX.js +0 -118
  56. package/bundle/chunk-LCB7VVYS.js +0 -356008
  57. package/bundle/chunk-OGZGOFAJ.js +0 -1571
  58. package/bundle/chunk-VERP26KN.js +0 -81544
  59. package/bundle/chunk-WX6CHISQ.js +0 -156
  60. package/bundle/cleanup-O4IDJYU2.js +0 -33
  61. package/bundle/devtoolsService-SPV43SGI.js +0 -857
  62. package/bundle/dist-ZZ5HEQGP.js +0 -2096
  63. package/bundle/gemini-3NXWUDHV.js +0 -16256
  64. package/bundle/interactiveCli-BNDKNCVJ.js +0 -34505
  65. package/bundle/liteRtServerManager-IQHHDTUM.js +0 -66
  66. package/bundle/oauth2-provider-OAXWX3Z3.js +0 -237
  67. package/bundle/start-NCMR7HOQ.js +0 -19
@@ -1,12 +1,12 @@
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-6K3EFSDX.js";
4
+ } from "./chunk-LATVEETM.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  getChannelFromVersion,
8
8
  isGitRepository
9
- } from "./chunk-QZ2JZRLK.js";
9
+ } from "./chunk-DN4XSYRG.js";
10
10
  import {
11
11
  debugLogger
12
12
  } from "./chunk-ECNYAST2.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-YDSDSLSO.js";
4
+ } from "./chunk-COKAF5GM.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-I5JMJ2LU.js";
5
+ } from "./chunk-WIXUKOZA.js";
6
6
  import {
7
7
  DEFAULT_PORT,
8
8
  SERVER_START_WAIT_MS,
@@ -14,7 +14,7 @@ import {
14
14
  isServerRunning,
15
15
  resolveGemmaConfig,
16
16
  writeServerProcessInfo
17
- } from "./chunk-NHDN46IK.js";
17
+ } from "./chunk-XUMRUXOT.js";
18
18
  import {
19
19
  debugLogger
20
20
  } from "./chunk-ECNYAST2.js";
@@ -246273,8 +246273,8 @@ var EventMetadataKey;
246273
246273
  })(EventMetadataKey || (EventMetadataKey = {}));
246274
246274
 
246275
246275
  // packages/core/dist/src/generated/git-commit.js
246276
- var GIT_COMMIT_INFO = "246f98459";
246277
- var CLI_VERSION = "0.42.0-preview.0";
246276
+ var GIT_COMMIT_INFO = "8db727552";
246277
+ var CLI_VERSION = "0.42.0";
246278
246278
 
246279
246279
  // packages/core/dist/src/ide/detect-ide.js
246280
246280
  var IDE_DEFINITIONS = {
@@ -269321,7 +269321,7 @@ function getVersion() {
269321
269321
  }
269322
269322
  versionPromise = (async () => {
269323
269323
  const pkgJson = await getPackageJson(__dirname4);
269324
- return "0.42.0-preview.1";
269324
+ return "0.42.0";
269325
269325
  })();
269326
269326
  return versionPromise;
269327
269327
  }
@@ -300957,7 +300957,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
300957
300957
  return provider;
300958
300958
  }
300959
300959
  case "oauth2": {
300960
- const { OAuth2AuthProvider } = await import("./oauth2-provider-ZPJOR5SG.js");
300960
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-H7G6RSFW.js");
300961
300961
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
300962
300962
  await provider.initialize();
300963
300963
  return provider;
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-QZ2JZRLK.js";
23
+ } from "./chunk-DMWX7UP6.js";
24
24
  import {
25
25
  FatalConfigError,
26
26
  GEMINI_DIR,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-I5JMJ2LU.js";
9
+ } from "./chunk-CYEIWMZJ.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -57,14 +57,14 @@ import {
57
57
  stripUnsafeCharacters,
58
58
  toCodePoints,
59
59
  validateCustomTheme
60
- } from "./chunk-NHDN46IK.js";
60
+ } from "./chunk-BCYBA52D.js";
61
61
  import {
62
62
  isDevelopment
63
- } from "./chunk-7LOMS5HP.js";
63
+ } from "./chunk-ZNMQA242.js";
64
64
  import {
65
65
  emptyIcon,
66
66
  require_react
67
- } from "./chunk-UZZVXATH.js";
67
+ } from "./chunk-I7AME6VC.js";
68
68
  import {
69
69
  AsyncFzf,
70
70
  Config,
@@ -200,7 +200,7 @@ import {
200
200
  stripAnsi,
201
201
  tokenLimit,
202
202
  uiTelemetryService
203
- } from "./chunk-QZ2JZRLK.js";
203
+ } from "./chunk-DMWX7UP6.js";
204
204
  import {
205
205
  ApprovalMode,
206
206
  CoreEvent,
@@ -56441,7 +56441,7 @@ var authCommand = {
56441
56441
  import process28 from "node:process";
56442
56442
 
56443
56443
  // packages/cli/src/generated/git-commit.ts
56444
- var GIT_COMMIT_INFO = "246f98459";
56444
+ var GIT_COMMIT_INFO = "8db727552";
56445
56445
 
56446
56446
  // packages/cli/src/ui/utils/historyExportUtils.ts
56447
56447
  import * as fsPromises from "node:fs/promises";
@@ -62109,7 +62109,7 @@ Use /mcp auth <server-name> to authenticate.`
62109
62109
  type: "info",
62110
62110
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62111
62111
  });
62112
- const { MCPOAuthProvider } = await import("./core-RZFMBCSX.js");
62112
+ const { MCPOAuthProvider } = await import("./core-FRVSDP2C.js");
62113
62113
  let oauthConfig = server.oauth;
62114
62114
  if (!oauthConfig) {
62115
62115
  oauthConfig = { enabled: false };
@@ -4,7 +4,7 @@ import {
4
4
  isTelemetrySdkInitialized,
5
5
  resetBrowserSession,
6
6
  shutdownTelemetry
7
- } from "./chunk-ARLWCFGI.js";
7
+ } from "./chunk-7VVHSNDQ.js";
8
8
  import {
9
9
  Storage
10
10
  } from "./chunk-JEW7ZIWE.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-LK7LIPO6.js";
9
+ } from "./chunk-WIXUKOZA.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -57,19 +57,17 @@ import {
57
57
  stripUnsafeCharacters,
58
58
  toCodePoints,
59
59
  validateCustomTheme
60
- } from "./chunk-BUJZOWQ7.js";
60
+ } from "./chunk-XUMRUXOT.js";
61
61
  import {
62
62
  isDevelopment
63
- } from "./chunk-66C7JVNE.js";
63
+ } from "./chunk-3IS7GD6D.js";
64
64
  import {
65
65
  emptyIcon,
66
66
  require_react
67
- } from "./chunk-BZZHETT5.js";
67
+ } from "./chunk-GA527JB7.js";
68
68
  import {
69
69
  AsyncFzf,
70
- AuthType,
71
70
  Config,
72
- CoreToolCallStatus,
73
71
  ExtensionDisableEvent,
74
72
  ExtensionEnableEvent,
75
73
  ExtensionInstallEvent,
@@ -78,27 +76,17 @@ import {
78
76
  ExtensionUninstallEvent,
79
77
  ExtensionUpdateEvent,
80
78
  GEMINI_CLI_COMPANION_EXTENSION_NAME,
81
- HookType,
82
- IDEConnectionStatus,
83
79
  INITIAL_HISTORY_LENGTH,
84
80
  IdeClient,
85
81
  IdeConnectionEvent,
86
- IdeConnectionType,
87
- IntegrityDataStatus,
88
82
  KeychainTokenStorage,
89
- LlmRole,
90
- MCPDiscoveryState,
91
83
  MCPOAuthTokenStorage,
92
- MCPServerStatus,
93
84
  ModelSlashCommandEvent,
94
85
  ProjectIdRequiredError,
95
86
  ReadManyFilesTool,
96
87
  RewindEvent,
97
- SessionEndReason,
98
- SessionStartSource,
99
88
  ShellExecutionService,
100
89
  StartSessionEvent,
101
- TrustLevel,
102
90
  UPGRADE_URL_PAGE,
103
91
  UserAccountManager,
104
92
  ValidationRequiredError,
@@ -212,13 +200,12 @@ import {
212
200
  stripAnsi,
213
201
  tokenLimit,
214
202
  uiTelemetryService
215
- } from "./chunk-ARLWCFGI.js";
203
+ } from "./chunk-DN4XSYRG.js";
216
204
  import {
217
205
  ApprovalMode,
218
206
  CoreEvent,
219
207
  DiscoveredMCPTool,
220
208
  GEMINI_DIR,
221
- PolicyDecision,
222
209
  REFERENCE_CONTENT_END,
223
210
  REFERENCE_CONTENT_START,
224
211
  Storage,
@@ -239,7 +226,7 @@ import {
239
226
  shortenPath,
240
227
  tildeifyPath,
241
228
  unescapePath
242
- } from "./chunk-JEW7ZIWE.js";
229
+ } from "./chunk-ECNYAST2.js";
243
230
  import {
244
231
  require_src
245
232
  } from "./chunk-RJTRUG2J.js";
@@ -39458,7 +39445,7 @@ var import_react34 = __toESM(require_react(), 1);
39458
39445
  function useIdeTrustListener() {
39459
39446
  const settings = useSettings();
39460
39447
  const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
39461
- IDEConnectionStatus.Disconnected
39448
+ "disconnected" /* Disconnected */
39462
39449
  );
39463
39450
  const previousTrust = (0, import_react34.useRef)(void 0);
39464
39451
  const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
@@ -39488,7 +39475,7 @@ function useIdeTrustListener() {
39488
39475
  };
39489
39476
  }, []);
39490
39477
  const getSnapshot = () => {
39491
- if (connectionStatus !== IDEConnectionStatus.Connected) {
39478
+ if (connectionStatus !== "connected" /* Connected */) {
39492
39479
  return void 0;
39493
39480
  }
39494
39481
  return ideContextStore.get()?.workspaceState?.isTrusted;
@@ -40193,7 +40180,7 @@ async function initializeApp(config, settings) {
40193
40180
  await ideClient.connect();
40194
40181
  logIdeConnection(
40195
40182
  config,
40196
- new IdeConnectionEvent(IdeConnectionType.START)
40183
+ new IdeConnectionEvent("start" /* START */)
40197
40184
  );
40198
40185
  }).catch((e) => {
40199
40186
  debugLogger.error("Failed to initialize IDE client:", e);
@@ -40211,16 +40198,16 @@ async function initializeApp(config, settings) {
40211
40198
  // packages/cli/src/config/auth.ts
40212
40199
  function validateAuthMethod(authMethod) {
40213
40200
  loadEnvironment(loadSettings().merged, process.cwd());
40214
- if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
40201
+ if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
40215
40202
  return null;
40216
40203
  }
40217
- if (authMethod === AuthType.USE_GEMINI) {
40204
+ if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
40218
40205
  if (!process.env["GEMINI_API_KEY"]) {
40219
40206
  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)!";
40220
40207
  }
40221
40208
  return null;
40222
40209
  }
40223
- if (authMethod === AuthType.USE_VERTEX_AI) {
40210
+ if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
40224
40211
  const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
40225
40212
  const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
40226
40213
  if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
@@ -44640,7 +44627,7 @@ var ExtensionManager = class extends ExtensionLoader {
44640
44627
  const trustedFolders = loadTrustedFolders();
44641
44628
  await trustedFolders.setValue(
44642
44629
  this.workspaceDir,
44643
- TrustLevel.TRUST_FOLDER
44630
+ "TRUST_FOLDER" /* TRUST_FOLDER */
44644
44631
  );
44645
44632
  } else {
44646
44633
  throw new Error(
@@ -44826,7 +44813,7 @@ Would you like to attempt to install via "git clone" instead?`
44826
44813
  newExtensionConfig.version,
44827
44814
  previousExtensionConfig.version,
44828
44815
  installMetadata.type,
44829
- CoreToolCallStatus.Success
44816
+ "success" /* Success */
44830
44817
  )
44831
44818
  );
44832
44819
  if (newExtensionName !== previousName) {
@@ -44849,7 +44836,7 @@ Would you like to attempt to install via "git clone" instead?`
44849
44836
  getExtensionId(newExtensionConfig, installMetadata),
44850
44837
  newExtensionConfig.version,
44851
44838
  installMetadata.type,
44852
- CoreToolCallStatus.Success
44839
+ "success" /* Success */
44853
44840
  )
44854
44841
  );
44855
44842
  await this.enableExtension(
@@ -44882,7 +44869,7 @@ Would you like to attempt to install via "git clone" instead?`
44882
44869
  newExtensionConfig?.version ?? "",
44883
44870
  previousExtensionConfig.version,
44884
44871
  installMetadata.type,
44885
- CoreToolCallStatus.Error
44872
+ "error" /* Error */
44886
44873
  )
44887
44874
  );
44888
44875
  } else {
@@ -44894,7 +44881,7 @@ Would you like to attempt to install via "git clone" instead?`
44894
44881
  extensionId ?? "",
44895
44882
  newExtensionConfig?.version ?? "",
44896
44883
  installMetadata.type,
44897
- CoreToolCallStatus.Error
44884
+ "error" /* Error */
44898
44885
  )
44899
44886
  );
44900
44887
  }
@@ -44925,7 +44912,7 @@ Would you like to attempt to install via "git clone" instead?`
44925
44912
  extension.name,
44926
44913
  hashValue(extension.name),
44927
44914
  extension.id,
44928
- CoreToolCallStatus.Success
44915
+ "success" /* Success */
44929
44916
  )
44930
44917
  );
44931
44918
  }
@@ -45195,7 +45182,7 @@ Would you like to attempt to install via "git clone" instead?`
45195
45182
  if (eventHooks) {
45196
45183
  for (const definition of eventHooks) {
45197
45184
  for (const hook of definition.hooks) {
45198
- if (hook.type === HookType.Command) {
45185
+ if (hook.type === "command" /* Command */) {
45199
45186
  hook.env = { ...hook.env, ...hookEnv };
45200
45187
  }
45201
45188
  }
@@ -46227,7 +46214,7 @@ async function readMcpResources(resourceParts, config, signal) {
46227
46214
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46228
46215
  name: `resources/read (${resource.serverName})`,
46229
46216
  description: resource.uri,
46230
- status: CoreToolCallStatus.Success,
46217
+ status: "success" /* Success */,
46231
46218
  isClientInitiated: true,
46232
46219
  resultDisplay: `Successfully read resource ${resource.uri}`,
46233
46220
  confirmationDetails: void 0
@@ -46242,7 +46229,7 @@ async function readMcpResources(resourceParts, config, signal) {
46242
46229
  callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
46243
46230
  name: `resources/read (${resource.serverName})`,
46244
46231
  description: resource.uri,
46245
- status: CoreToolCallStatus.Error,
46232
+ status: "error" /* Error */,
46246
46233
  isClientInitiated: true,
46247
46234
  resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
46248
46235
  confirmationDetails: void 0
@@ -46267,7 +46254,7 @@ Content from @${result.uri}:
46267
46254
  }
46268
46255
  if (hasError) {
46269
46256
  const firstError = displays.find(
46270
- (d) => d.status === CoreToolCallStatus.Error
46257
+ (d) => d.status === "error" /* Error */
46271
46258
  );
46272
46259
  return {
46273
46260
  parts: [],
@@ -46303,7 +46290,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
46303
46290
  callId: `client-read-${userMessageTimestamp}`,
46304
46291
  name: readManyFilesTool.displayName,
46305
46292
  description: invocation.getDescription(),
46306
- status: CoreToolCallStatus.Success,
46293
+ status: "success" /* Success */,
46307
46294
  isClientInitiated: true,
46308
46295
  resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
46309
46296
  confirmationDetails: void 0
@@ -46350,7 +46337,7 @@ Content from @${displayPath}:
46350
46337
  callId: `client-read-${userMessageTimestamp}`,
46351
46338
  name: readManyFilesTool.displayName,
46352
46339
  description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
46353
- status: CoreToolCallStatus.Error,
46340
+ status: "error" /* Error */,
46354
46341
  isClientInitiated: true,
46355
46342
  resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
46356
46343
  confirmationDetails: void 0
@@ -49579,7 +49566,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
49579
49566
  if (wasRaw) {
49580
49567
  setRawMode?.(true);
49581
49568
  }
49582
- coreEvents.emit(CoreEvent.ExternalEditorClosed);
49569
+ coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
49583
49570
  }
49584
49571
  }
49585
49572
 
@@ -52269,7 +52256,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
52269
52256
  extension.name,
52270
52257
  installMetadata
52271
52258
  );
52272
- if (status === IntegrityDataStatus.INVALID) {
52259
+ if (status === "invalid" /* INVALID */) {
52273
52260
  throw new Error("Extension integrity cannot be verified");
52274
52261
  }
52275
52262
  } catch (e) {
@@ -53687,11 +53674,11 @@ var ShellProcessor = class {
53687
53674
  },
53688
53675
  void 0
53689
53676
  );
53690
- if (decision === PolicyDecision.DENY) {
53677
+ if (decision === "deny" /* DENY */) {
53691
53678
  throw new Error(
53692
53679
  `${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
53693
53680
  );
53694
- } else if (decision === PolicyDecision.ASK_USER) {
53681
+ } else if (decision === "ask_user" /* ASK_USER */) {
53695
53682
  commandsToConfirm.add(command);
53696
53683
  }
53697
53684
  }
@@ -54806,7 +54793,7 @@ var MultiFolderTrustDialog = ({
54806
54793
  if (choice === 1 /* YES_AND_REMEMBER */) {
54807
54794
  await trustedFolders.setValue(
54808
54795
  expandedPath,
54809
- TrustLevel.TRUST_FOLDER
54796
+ "TRUST_FOLDER" /* TRUST_FOLDER */
54810
54797
  );
54811
54798
  }
54812
54799
  workspaceContext.addDirectory(expandedPath);
@@ -56454,7 +56441,7 @@ var authCommand = {
56454
56441
  import process28 from "node:process";
56455
56442
 
56456
56443
  // packages/cli/src/generated/git-commit.ts
56457
- var GIT_COMMIT_INFO = "92f410d6d";
56444
+ var GIT_COMMIT_INFO = "8db727552";
56458
56445
 
56459
56446
  // packages/cli/src/ui/utils/historyExportUtils.ts
56460
56447
  import * as fsPromises from "node:fs/promises";
@@ -57100,7 +57087,7 @@ var clearCommand = {
57100
57087
  const config = context.services.agentContext?.config;
57101
57088
  const hookSystem = config?.getHookSystem();
57102
57089
  if (hookSystem) {
57103
- await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
57090
+ await hookSystem.fireSessionEndEvent("clear" /* Clear */);
57104
57091
  }
57105
57092
  config?.injectionService.clear();
57106
57093
  let newSessionId;
@@ -57117,7 +57104,7 @@ var clearCommand = {
57117
57104
  }
57118
57105
  let result;
57119
57106
  if (hookSystem) {
57120
- result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
57107
+ result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
57121
57108
  }
57122
57109
  await new Promise((resolve8) => setImmediate(resolve8));
57123
57110
  if (config) {
@@ -60024,7 +60011,7 @@ var Footer = () => {
60024
60011
  case "auth": {
60025
60012
  if (!settings.merged.ui.showUserIdentity) break;
60026
60013
  if (!authType) break;
60027
- const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
60014
+ const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
60028
60015
  addCol(
60029
60016
  id,
60030
60017
  header,
@@ -61771,12 +61758,12 @@ import path28 from "node:path";
61771
61758
  function getIdeStatusMessage(ideClient) {
61772
61759
  const connection = ideClient.getConnectionStatus();
61773
61760
  switch (connection.status) {
61774
- case IDEConnectionStatus.Connected:
61761
+ case "connected" /* Connected */:
61775
61762
  return {
61776
61763
  messageType: "info",
61777
61764
  content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
61778
61765
  };
61779
- case IDEConnectionStatus.Connecting:
61766
+ case "connecting" /* Connecting */:
61780
61767
  return {
61781
61768
  messageType: "info",
61782
61769
  content: `\u{1F7E1} Connecting...`
@@ -61817,7 +61804,7 @@ ${infoMessage}`;
61817
61804
  async function getIdeStatusMessageWithFiles(ideClient) {
61818
61805
  const connection = ideClient.getConnectionStatus();
61819
61806
  switch (connection.status) {
61820
- case IDEConnectionStatus.Connected: {
61807
+ case "connected" /* Connected */: {
61821
61808
  let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
61822
61809
  const context = ideContextStore.get();
61823
61810
  const openFiles = context?.workspaceState?.openFiles;
@@ -61829,7 +61816,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
61829
61816
  content
61830
61817
  };
61831
61818
  }
61832
- case IDEConnectionStatus.Connecting:
61819
+ case "connecting" /* Connecting */:
61833
61820
  return {
61834
61821
  messageType: "info",
61835
61822
  content: `\u{1F7E1} Connecting...`
@@ -61851,7 +61838,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
61851
61838
  const ideClient = await IdeClient.getInstance();
61852
61839
  if (value) {
61853
61840
  await ideClient.connect(options);
61854
- logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
61841
+ logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
61855
61842
  } else {
61856
61843
  await ideClient.disconnect();
61857
61844
  }
@@ -61939,7 +61926,7 @@ var ideCommand = async () => {
61939
61926
  logToConsole: false
61940
61927
  }
61941
61928
  );
61942
- if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
61929
+ if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
61943
61930
  break;
61944
61931
  }
61945
61932
  await new Promise((resolve8) => setTimeout(resolve8, 500));
@@ -62016,7 +62003,7 @@ var ideCommand = async () => {
62016
62003
  }
62017
62004
  };
62018
62005
  const { status } = ideClient.getConnectionStatus();
62019
- const isConnected = status === IDEConnectionStatus.Connected;
62006
+ const isConnected = status === "connected" /* Connected */;
62020
62007
  if (isConnected) {
62021
62008
  ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
62022
62009
  } else {
@@ -62116,13 +62103,13 @@ Use /mcp auth <server-name> to authenticate.`
62116
62103
  const displayListener = (message) => {
62117
62104
  context.ui.addItem({ type: "info", text: message });
62118
62105
  };
62119
- coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
62106
+ coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62120
62107
  try {
62121
62108
  context.ui.addItem({
62122
62109
  type: "info",
62123
62110
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
62124
62111
  });
62125
- const { MCPOAuthProvider } = await import("./dist-7BJPFNU7.js");
62112
+ const { MCPOAuthProvider } = await import("./core-B5S6HZJT.js");
62126
62113
  let oauthConfig = server.oauth;
62127
62114
  if (!oauthConfig) {
62128
62115
  oauthConfig = { enabled: false };
@@ -62159,7 +62146,7 @@ Use /mcp auth <server-name> to authenticate.`
62159
62146
  content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
62160
62147
  };
62161
62148
  } finally {
62162
- coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
62149
+ coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
62163
62150
  }
62164
62151
  },
62165
62152
  completion: async (context, partialArg) => {
@@ -62205,10 +62192,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
62205
62192
  }
62206
62193
  const serverNames = Object.keys(mcpServers);
62207
62194
  const connectingServers = serverNames.filter(
62208
- (name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
62195
+ (name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
62209
62196
  );
62210
62197
  const discoveryState = getMCPDiscoveryState();
62211
- const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
62198
+ const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
62212
62199
  const allTools = toolRegistry.getAllTools();
62213
62200
  const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
62214
62201
  const promptRegistry = config.getPromptRegistry();
@@ -77979,7 +77966,7 @@ Return a JSON object with:
77979
77966
  },
77980
77967
  abortSignal: new AbortController().signal,
77981
77968
  promptId: "triage-duplicates",
77982
- role: LlmRole.UTILITY_TOOL
77969
+ role: "utility_tool" /* UTILITY_TOOL */
77983
77970
  });
77984
77971
  const rec = response;
77985
77972
  let canonical;
@@ -78813,7 +78800,7 @@ Return a JSON object with:
78813
78800
  },
78814
78801
  abortSignal: abortControllerRef.current.signal,
78815
78802
  promptId: "triage-issues",
78816
- role: LlmRole.UTILITY_TOOL
78803
+ role: "utility_tool" /* UTILITY_TOOL */
78817
78804
  });
78818
78805
  return response;
78819
78806
  },
@@ -79387,8 +79374,8 @@ var planCommand = {
79387
79374
  return;
79388
79375
  }
79389
79376
  const previousApprovalMode = config.getApprovalMode();
79390
- config.setApprovalMode(ApprovalMode.PLAN);
79391
- if (previousApprovalMode !== ApprovalMode.PLAN) {
79377
+ config.setApprovalMode("plan" /* PLAN */);
79378
+ if (previousApprovalMode !== "plan" /* PLAN */) {
79392
79379
  coreEvents.emitFeedback("info", "Switched to Plan Mode.");
79393
79380
  }
79394
79381
  if (context.invocation?.args) {
@@ -79447,10 +79434,10 @@ var categorizeRulesByMode = (rules) => {
79447
79434
  rules.forEach((rule) => {
79448
79435
  const modes = rule.modes?.length ? rule.modes : ALL_MODES;
79449
79436
  const modeSet = new Set(modes);
79450
- if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
79451
- if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
79452
- if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
79453
- if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
79437
+ if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
79438
+ if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
79439
+ if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
79440
+ if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
79454
79441
  });
79455
79442
  return result;
79456
79443
  };
@@ -80802,7 +80789,7 @@ var upgradeCommand = {
80802
80789
  action: async (context) => {
80803
80790
  const config = context.services.agentContext?.config;
80804
80791
  const authType = config?.getContentGeneratorConfig()?.authType;
80805
- if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
80792
+ if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
80806
80793
  return {
80807
80794
  type: "message",
80808
80795
  messageType: "error",
@@ -81030,7 +81017,7 @@ var BuiltinCommandLoader = class {
81030
81017
  setupGithubCommand,
81031
81018
  terminalSetupCommand,
81032
81019
  ...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
81033
- ...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
81020
+ ...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
81034
81021
  ];
81035
81022
  handle?.end();
81036
81023
  return allDefinitions.filter((cmd) => cmd !== null);
@@ -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-6K3EFSDX.js";
4
+ } from "./chunk-NTOPH4WG.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -246396,8 +246396,8 @@ import { createHash } from "node:crypto";
246396
246396
  import * as os12 from "node:os";
246397
246397
 
246398
246398
  // packages/core/src/generated/git-commit.ts
246399
- var GIT_COMMIT_INFO = "246f98459";
246400
- var CLI_VERSION = "0.42.0-preview.0";
246399
+ var GIT_COMMIT_INFO = "8db727552";
246400
+ var CLI_VERSION = "0.42.0";
246401
246401
 
246402
246402
  // packages/core/src/ide/detect-ide.ts
246403
246403
  var IDE_DEFINITIONS = {
@@ -269712,7 +269712,7 @@ function getVersion() {
269712
269712
  }
269713
269713
  versionPromise = (async () => {
269714
269714
  const pkgJson = await getPackageJson(__dirname4);
269715
- return "0.42.0-preview.0";
269715
+ return "0.42.0";
269716
269716
  })();
269717
269717
  return versionPromise;
269718
269718
  }
@@ -303280,7 +303280,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
303280
303280
  return provider;
303281
303281
  }
303282
303282
  case "oauth2": {
303283
- const { OAuth2AuthProvider } = await import("./oauth2-provider-TUVQXNLY.js");
303283
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-VR4DL6AL.js");
303284
303284
  const provider = new OAuth2AuthProvider(
303285
303285
  authConfig,
303286
303286
  options.agentName ?? "unknown",