@google/gemini-cli 0.41.0-nightly.20260428.gc17400b83 → 0.41.0-preview.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 (65) hide show
  1. package/bundle/{chunk-XJTD3HPU.js → chunk-36LZQV4W.js} +7 -7
  2. package/bundle/{chunk-2ZB7J3FY.js → chunk-45OGXTFK.js} +3 -3
  3. package/bundle/{chunk-FV5FJHRI.js → chunk-5QI3ZXQB.js} +51 -20
  4. package/bundle/{chunk-M5OHKTMZ.js → chunk-5Z2T77EB.js} +51 -20
  5. package/bundle/{chunk-AWYPBHRQ.js → chunk-6NFVEILC.js} +86 -50
  6. package/bundle/{chunk-O6I6A2M4.js → chunk-C5CRFFTY.js} +1 -1
  7. package/bundle/{chunk-BF27RFAN.js → chunk-DAEE6Y5T.js} +7 -7
  8. package/bundle/{chunk-L6R4SOCW.js → chunk-DCHOW6BK.js} +2 -2
  9. package/bundle/{chunk-6GAOKBL5.js → chunk-DOHALVIP.js} +7 -7
  10. package/bundle/{chunk-FVZBY3YD.js → chunk-EQSLZT5Z.js} +109 -60
  11. package/bundle/{chunk-YTCNV6EP.js → chunk-FFVUMIL3.js} +7 -7
  12. package/bundle/{chunk-OWVM24FM.js → chunk-KCDF3RDO.js} +3 -3
  13. package/bundle/{chunk-B5VTGUEL.js → chunk-KJ4M7JXR.js} +2 -2
  14. package/bundle/{chunk-NHDKAJLK.js → chunk-NGB7ZVQL.js} +51 -20
  15. package/bundle/{chunk-5STX5PU4.js → chunk-QRSHDIRX.js} +1 -1
  16. package/bundle/{chunk-GNXI53OB.js → chunk-QY23ZEK3.js} +86 -50
  17. package/bundle/{chunk-6CMLUZVN.js → chunk-R4LSW45D.js} +1 -1
  18. package/bundle/{chunk-6YXSPC34.js → chunk-SAJ72M2G.js} +4 -3
  19. package/bundle/{chunk-GS47IOCU.js → chunk-T5I4M6M4.js} +3 -3
  20. package/bundle/{chunk-KDH7DRD7.js → chunk-TBBDQEFQ.js} +3 -3
  21. package/bundle/{chunk-N5FEJH35.js → chunk-U6WUS35U.js} +2 -2
  22. package/bundle/{chunk-TGD6LUOZ.js → chunk-VJ6K3S57.js} +2 -2
  23. package/bundle/{chunk-QMO63OUG.js → chunk-VLSVN2FJ.js} +1 -1
  24. package/bundle/{chunk-QG4H3PXK.js → chunk-VWYB6GSK.js} +51 -20
  25. package/bundle/{chunk-J74HIKFT.js → chunk-XO6NKGWV.js} +86 -50
  26. package/bundle/{chunk-MTD736U4.js → chunk-XRLFHCHC.js} +4 -3
  27. package/bundle/{cleanup-KTTFH4V2.js → cleanup-3COTQVPP.js} +3 -3
  28. package/bundle/{cleanup-QVYV3PZ5.js → cleanup-FIE6MCAE.js} +3 -3
  29. package/bundle/{cleanup-YTI5UUIX.js → cleanup-PREOBLFK.js} +3 -3
  30. package/bundle/{cleanup-ZUYJXHRK.js → cleanup-YY2EUT56.js} +3 -3
  31. package/bundle/{core-BDTKNBLU.js → core-GZOFEER4.js} +2 -2
  32. package/bundle/{devtoolsService-4YXBH4RL.js → devtoolsService-DV36S632.js} +16 -11
  33. package/bundle/{devtoolsService-GC2CWO6J.js → devtoolsService-JPBL5I7F.js} +16 -11
  34. package/bundle/{devtoolsService-VIQF3BWN.js → devtoolsService-M4LZEBZD.js} +16 -11
  35. package/bundle/{devtoolsService-I5YHBVJF.js → devtoolsService-QXOHXSMJ.js} +16 -11
  36. package/bundle/{dist-54RTLLLD.js → dist-HASTHPE3.js} +2 -2
  37. package/bundle/{dist-FFJ6TEOB.js → dist-JVRDP7SO.js} +2 -2
  38. package/bundle/{dist-MKHEHKNG.js → dist-NSJ6AA4L.js} +2 -2
  39. package/bundle/docs/changelogs/preview.md +9 -3
  40. package/bundle/docs/reference/configuration.md +7 -7
  41. package/bundle/{gemini-CW2LLZYZ.js → gemini-FTUVOUHP.js} +18 -15
  42. package/bundle/{gemini-7QBUWDYT.js → gemini-IGRTXHCM.js} +18 -15
  43. package/bundle/{gemini-EFVG7533.js → gemini-KIM7O55W.js} +18 -15
  44. package/bundle/{gemini-SZZ4UAGX.js → gemini-SFFHSCEY.js} +18 -15
  45. package/bundle/gemini.js +3 -3
  46. package/bundle/{interactiveCli-Q5CKAPLU.js → interactiveCli-7HPLINVC.js} +7 -7
  47. package/bundle/{interactiveCli-5RJM6O6C.js → interactiveCli-JOX7MFFH.js} +7 -7
  48. package/bundle/{interactiveCli-DMB2CAVW.js → interactiveCli-K4FIT7TA.js} +7 -7
  49. package/bundle/{interactiveCli-Q5KIZEE6.js → interactiveCli-LTPR447O.js} +7 -7
  50. package/bundle/{liteRtServerManager-4FYPO3A7.js → liteRtServerManager-BENLLSF2.js} +4 -4
  51. package/bundle/{liteRtServerManager-DVXTSTS7.js → liteRtServerManager-KDO6UAQ5.js} +4 -4
  52. package/bundle/{liteRtServerManager-H6CBRIBA.js → liteRtServerManager-MQIQXXZQ.js} +4 -4
  53. package/bundle/{liteRtServerManager-WSICWAWE.js → liteRtServerManager-VGYEHFUE.js} +4 -4
  54. package/bundle/{memoryDiscovery-FPAA4X4J.js → memoryDiscovery-FN3IAPBT.js} +1 -1
  55. package/bundle/{memoryDiscovery-NSOLCG4U.js → memoryDiscovery-R7PAR2NY.js} +1 -1
  56. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  57. package/bundle/{oauth2-provider-NW7OHM3Z.js → oauth2-provider-EWMNT6D6.js} +2 -2
  58. package/bundle/{oauth2-provider-Z3KFISV4.js → oauth2-provider-JPCBTTS2.js} +2 -2
  59. package/bundle/{oauth2-provider-SJUD23MI.js → oauth2-provider-M3WV4GJM.js} +2 -2
  60. package/bundle/{oauth2-provider-Y6ZTJFFJ.js → oauth2-provider-UVXCM7G3.js} +2 -2
  61. package/bundle/{start-MILYO5EG.js → start-4MSISK2E.js} +6 -6
  62. package/bundle/{start-RTQPRFYB.js → start-ATOE57Z4.js} +6 -6
  63. package/bundle/{start-STY62DNF.js → start-AVEON6UU.js} +6 -6
  64. package/bundle/{start-ZGCZ2V4O.js → start-KBB2UTE5.js} +6 -6
  65. package/package.json +1 -1
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-6CMLUZVN.js";
9
+ } from "./chunk-QRSHDIRX.js";
10
10
  import {
11
11
  DEFAULT_BACKGROUND_OPACITY,
12
12
  DEFAULT_BORDER_OPACITY,
@@ -59,10 +59,10 @@ import {
59
59
  stripUnsafeCharacters,
60
60
  toCodePoints,
61
61
  validateCustomTheme
62
- } from "./chunk-NHDKAJLK.js";
62
+ } from "./chunk-VWYB6GSK.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-TGD6LUOZ.js";
65
+ } from "./chunk-VJ6K3S57.js";
66
66
  import {
67
67
  AsyncFzf,
68
68
  AuthType,
@@ -208,7 +208,7 @@ import {
208
208
  stripAnsi,
209
209
  tokenLimit,
210
210
  uiTelemetryService
211
- } from "./chunk-AWYPBHRQ.js";
211
+ } from "./chunk-QY23ZEK3.js";
212
212
  import {
213
213
  ApprovalMode,
214
214
  CoreEvent,
@@ -235,7 +235,7 @@ import {
235
235
  shortenPath,
236
236
  tildeifyPath,
237
237
  unescapePath
238
- } from "./chunk-6YXSPC34.js";
238
+ } from "./chunk-SAJ72M2G.js";
239
239
  import {
240
240
  require_src
241
241
  } from "./chunk-RJTRUG2J.js";
@@ -55003,7 +55003,7 @@ var authCommand = {
55003
55003
  import process29 from "node:process";
55004
55004
 
55005
55005
  // packages/cli/src/generated/git-commit.ts
55006
- var GIT_COMMIT_INFO = "e3542e397";
55006
+ var GIT_COMMIT_INFO = "7d233ddd5";
55007
55007
 
55008
55008
  // packages/cli/src/ui/utils/historyExportUtils.ts
55009
55009
  import * as fsPromises from "node:fs/promises";
@@ -60488,7 +60488,7 @@ Use /mcp auth <server-name> to authenticate.`
60488
60488
  type: "info",
60489
60489
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60490
60490
  });
60491
- const { MCPOAuthProvider } = await import("./dist-54RTLLLD.js");
60491
+ const { MCPOAuthProvider } = await import("./dist-NSJ6AA4L.js");
60492
60492
  let oauthConfig = server.oauth;
60493
60493
  if (!oauthConfig) {
60494
60494
  oauthConfig = { enabled: false };
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  exitCli,
4
4
  require_source
5
- } from "./chunk-5STX5PU4.js";
5
+ } from "./chunk-C5CRFFTY.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-FV5FJHRI.js";
17
+ } from "./chunk-NGB7ZVQL.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6YXSPC34.js";
20
+ } from "./chunk-SAJ72M2G.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -21,7 +21,7 @@ import {
21
21
  require_strip_json_comments,
22
22
  sanitizeFilenamePart,
23
23
  stripAnsi
24
- } from "./chunk-J74HIKFT.js";
24
+ } from "./chunk-XO6NKGWV.js";
25
25
  import {
26
26
  CoreEvent,
27
27
  FatalConfigError,
@@ -32,7 +32,7 @@ import {
32
32
  external_exports,
33
33
  getErrorMessage,
34
34
  homedir
35
- } from "./chunk-6YXSPC34.js";
35
+ } from "./chunk-SAJ72M2G.js";
36
36
  import {
37
37
  __commonJS,
38
38
  __require,
@@ -16250,10 +16250,10 @@ function buildZodSchemaFromJsonSchema(def) {
16250
16250
  }
16251
16251
  if (def.type === "string") {
16252
16252
  if (def.enum) return external_exports.enum(def.enum);
16253
- return external_exports.string();
16253
+ return buildPrimitiveSchema("string");
16254
16254
  }
16255
- if (def.type === "number") return external_exports.number();
16256
- if (def.type === "boolean") return external_exports.boolean();
16255
+ if (def.type === "number") return buildPrimitiveSchema("number");
16256
+ if (def.type === "boolean") return buildPrimitiveSchema("boolean");
16257
16257
  if (def.type === "array") {
16258
16258
  if (def.items) {
16259
16259
  return external_exports.array(buildZodSchemaFromJsonSchema(def.items));
@@ -16320,9 +16320,22 @@ function buildPrimitiveSchema(type) {
16320
16320
  case "string":
16321
16321
  return external_exports.string();
16322
16322
  case "number":
16323
- return external_exports.number();
16323
+ return external_exports.preprocess((val) => {
16324
+ if (typeof val === "string" && val.trim() !== "") {
16325
+ const num = Number(val);
16326
+ if (!isNaN(num)) return num;
16327
+ }
16328
+ return val;
16329
+ }, external_exports.number());
16324
16330
  case "boolean":
16325
- return external_exports.boolean();
16331
+ return external_exports.preprocess((val) => {
16332
+ if (typeof val === "string") {
16333
+ const lower = val.toLowerCase();
16334
+ if (lower === "true") return true;
16335
+ if (lower === "false") return false;
16336
+ }
16337
+ return val;
16338
+ }, external_exports.boolean());
16326
16339
  default:
16327
16340
  return external_exports.unknown();
16328
16341
  }
@@ -16336,7 +16349,7 @@ function buildZodSchemaFromDefinition(definition) {
16336
16349
  if (definition.ref === "TelemetrySettings") {
16337
16350
  const objectSchema = REF_SCHEMAS["TelemetrySettings"];
16338
16351
  if (objectSchema) {
16339
- return external_exports.union([external_exports.boolean(), objectSchema]).optional();
16352
+ return external_exports.union([buildPrimitiveSchema("boolean"), objectSchema]).optional();
16340
16353
  }
16341
16354
  }
16342
16355
  if (definition.ref && definition.ref in REF_SCHEMAS) {
@@ -16834,10 +16847,13 @@ function _doLoadSettings(workspaceDir) {
16834
16847
  path: filePath,
16835
16848
  severity: "error"
16836
16849
  });
16837
- return { settings: {} };
16850
+ return { settings: {}, rawSettings: {} };
16838
16851
  }
16839
16852
  const settingsObject = rawSettings;
16840
- const validationResult = validateSettings(settingsObject);
16853
+ const expandedSettings = resolveEnvVarsInObject(
16854
+ settingsObject
16855
+ );
16856
+ const validationResult = validateSettings(expandedSettings);
16841
16857
  if (!validationResult.success && validationResult.error) {
16842
16858
  const errorMessage = formatValidationError(
16843
16859
  validationResult.error,
@@ -16848,8 +16864,20 @@ function _doLoadSettings(workspaceDir) {
16848
16864
  path: filePath,
16849
16865
  severity: "warning"
16850
16866
  });
16867
+ return {
16868
+ settings: expandedSettings,
16869
+ rawSettings: settingsObject,
16870
+ rawJson: content
16871
+ };
16851
16872
  }
16852
- return { settings: settingsObject, rawJson: content };
16873
+ return {
16874
+ // Since we've successfully validated expandedSettings against settingsZodSchema,
16875
+ // it's safe to cast the resulting data to the Settings type.
16876
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
16877
+ settings: validationResult.data ?? expandedSettings,
16878
+ rawSettings: settingsObject,
16879
+ rawJson: content
16880
+ };
16853
16881
  }
16854
16882
  } catch (error) {
16855
16883
  settingsErrors.push({
@@ -16858,28 +16886,31 @@ function _doLoadSettings(workspaceDir) {
16858
16886
  severity: "error"
16859
16887
  });
16860
16888
  }
16861
- return { settings: {} };
16889
+ return { settings: {}, rawSettings: {} };
16862
16890
  };
16863
16891
  const systemResult = load(systemSettingsPath);
16864
16892
  const systemDefaultsResult = load(systemDefaultsPath);
16865
16893
  const userResult = load(USER_SETTINGS_PATH);
16866
16894
  let workspaceResult = {
16867
16895
  settings: {},
16896
+ rawSettings: {},
16868
16897
  rawJson: void 0
16869
16898
  };
16870
16899
  if (!storage.isWorkspaceHomeDir()) {
16871
16900
  workspaceResult = load(workspaceSettingsPath);
16872
16901
  }
16873
- const systemOriginalSettings = structuredClone(systemResult.settings);
16902
+ const systemOriginalSettings = structuredClone(systemResult.rawSettings);
16874
16903
  const systemDefaultsOriginalSettings = structuredClone(
16875
- systemDefaultsResult.settings
16904
+ systemDefaultsResult.rawSettings
16905
+ );
16906
+ const userOriginalSettings = structuredClone(userResult.rawSettings);
16907
+ const workspaceOriginalSettings = structuredClone(
16908
+ workspaceResult.rawSettings
16876
16909
  );
16877
- const userOriginalSettings = structuredClone(userResult.settings);
16878
- const workspaceOriginalSettings = structuredClone(workspaceResult.settings);
16879
- systemSettings = resolveEnvVarsInObject(systemResult.settings);
16880
- systemDefaultSettings = resolveEnvVarsInObject(systemDefaultsResult.settings);
16881
- userSettings = resolveEnvVarsInObject(userResult.settings);
16882
- workspaceSettings = resolveEnvVarsInObject(workspaceResult.settings);
16910
+ systemSettings = systemResult.settings;
16911
+ systemDefaultSettings = systemDefaultsResult.settings;
16912
+ userSettings = userResult.settings;
16913
+ workspaceSettings = workspaceResult.settings;
16883
16914
  if (userSettings.ui?.theme === "VS") {
16884
16915
  userSettings.ui.theme = DefaultLight.name;
16885
16916
  } else if (userSettings.ui?.theme === "VS2015") {
@@ -20,7 +20,7 @@ import {
20
20
  require_strip_json_comments,
21
21
  sanitizeFilenamePart,
22
22
  stripAnsi
23
- } from "./chunk-FVZBY3YD.js";
23
+ } from "./chunk-EQSLZT5Z.js";
24
24
  import {
25
25
  FatalConfigError,
26
26
  GEMINI_DIR,
@@ -30,7 +30,7 @@ import {
30
30
  external_exports,
31
31
  getErrorMessage,
32
32
  homedir
33
- } from "./chunk-MTD736U4.js";
33
+ } from "./chunk-XRLFHCHC.js";
34
34
  import {
35
35
  __commonJS,
36
36
  __require,
@@ -16248,10 +16248,10 @@ function buildZodSchemaFromJsonSchema(def) {
16248
16248
  }
16249
16249
  if (def.type === "string") {
16250
16250
  if (def.enum) return external_exports.enum(def.enum);
16251
- return external_exports.string();
16251
+ return buildPrimitiveSchema("string");
16252
16252
  }
16253
- if (def.type === "number") return external_exports.number();
16254
- if (def.type === "boolean") return external_exports.boolean();
16253
+ if (def.type === "number") return buildPrimitiveSchema("number");
16254
+ if (def.type === "boolean") return buildPrimitiveSchema("boolean");
16255
16255
  if (def.type === "array") {
16256
16256
  if (def.items) {
16257
16257
  return external_exports.array(buildZodSchemaFromJsonSchema(def.items));
@@ -16318,9 +16318,22 @@ function buildPrimitiveSchema(type) {
16318
16318
  case "string":
16319
16319
  return external_exports.string();
16320
16320
  case "number":
16321
- return external_exports.number();
16321
+ return external_exports.preprocess((val) => {
16322
+ if (typeof val === "string" && val.trim() !== "") {
16323
+ const num = Number(val);
16324
+ if (!isNaN(num)) return num;
16325
+ }
16326
+ return val;
16327
+ }, external_exports.number());
16322
16328
  case "boolean":
16323
- return external_exports.boolean();
16329
+ return external_exports.preprocess((val) => {
16330
+ if (typeof val === "string") {
16331
+ const lower = val.toLowerCase();
16332
+ if (lower === "true") return true;
16333
+ if (lower === "false") return false;
16334
+ }
16335
+ return val;
16336
+ }, external_exports.boolean());
16324
16337
  default:
16325
16338
  return external_exports.unknown();
16326
16339
  }
@@ -16334,7 +16347,7 @@ function buildZodSchemaFromDefinition(definition) {
16334
16347
  if (definition.ref === "TelemetrySettings") {
16335
16348
  const objectSchema = REF_SCHEMAS["TelemetrySettings"];
16336
16349
  if (objectSchema) {
16337
- return external_exports.union([external_exports.boolean(), objectSchema]).optional();
16350
+ return external_exports.union([buildPrimitiveSchema("boolean"), objectSchema]).optional();
16338
16351
  }
16339
16352
  }
16340
16353
  if (definition.ref && definition.ref in REF_SCHEMAS) {
@@ -16832,10 +16845,13 @@ function _doLoadSettings(workspaceDir) {
16832
16845
  path: filePath,
16833
16846
  severity: "error"
16834
16847
  });
16835
- return { settings: {} };
16848
+ return { settings: {}, rawSettings: {} };
16836
16849
  }
16837
16850
  const settingsObject = rawSettings;
16838
- const validationResult = validateSettings(settingsObject);
16851
+ const expandedSettings = resolveEnvVarsInObject(
16852
+ settingsObject
16853
+ );
16854
+ const validationResult = validateSettings(expandedSettings);
16839
16855
  if (!validationResult.success && validationResult.error) {
16840
16856
  const errorMessage = formatValidationError(
16841
16857
  validationResult.error,
@@ -16846,8 +16862,20 @@ function _doLoadSettings(workspaceDir) {
16846
16862
  path: filePath,
16847
16863
  severity: "warning"
16848
16864
  });
16865
+ return {
16866
+ settings: expandedSettings,
16867
+ rawSettings: settingsObject,
16868
+ rawJson: content
16869
+ };
16849
16870
  }
16850
- return { settings: settingsObject, rawJson: content };
16871
+ return {
16872
+ // Since we've successfully validated expandedSettings against settingsZodSchema,
16873
+ // it's safe to cast the resulting data to the Settings type.
16874
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
16875
+ settings: validationResult.data ?? expandedSettings,
16876
+ rawSettings: settingsObject,
16877
+ rawJson: content
16878
+ };
16851
16879
  }
16852
16880
  } catch (error) {
16853
16881
  settingsErrors.push({
@@ -16856,28 +16884,31 @@ function _doLoadSettings(workspaceDir) {
16856
16884
  severity: "error"
16857
16885
  });
16858
16886
  }
16859
- return { settings: {} };
16887
+ return { settings: {}, rawSettings: {} };
16860
16888
  };
16861
16889
  const systemResult = load(systemSettingsPath);
16862
16890
  const systemDefaultsResult = load(systemDefaultsPath);
16863
16891
  const userResult = load(USER_SETTINGS_PATH);
16864
16892
  let workspaceResult = {
16865
16893
  settings: {},
16894
+ rawSettings: {},
16866
16895
  rawJson: void 0
16867
16896
  };
16868
16897
  if (!storage.isWorkspaceHomeDir()) {
16869
16898
  workspaceResult = load(workspaceSettingsPath);
16870
16899
  }
16871
- const systemOriginalSettings = structuredClone(systemResult.settings);
16900
+ const systemOriginalSettings = structuredClone(systemResult.rawSettings);
16872
16901
  const systemDefaultsOriginalSettings = structuredClone(
16873
- systemDefaultsResult.settings
16902
+ systemDefaultsResult.rawSettings
16903
+ );
16904
+ const userOriginalSettings = structuredClone(userResult.rawSettings);
16905
+ const workspaceOriginalSettings = structuredClone(
16906
+ workspaceResult.rawSettings
16874
16907
  );
16875
- const userOriginalSettings = structuredClone(userResult.settings);
16876
- const workspaceOriginalSettings = structuredClone(workspaceResult.settings);
16877
- systemSettings = resolveEnvVarsInObject(systemResult.settings);
16878
- systemDefaultSettings = resolveEnvVarsInObject(systemDefaultsResult.settings);
16879
- userSettings = resolveEnvVarsInObject(userResult.settings);
16880
- workspaceSettings = resolveEnvVarsInObject(workspaceResult.settings);
16908
+ systemSettings = systemResult.settings;
16909
+ systemDefaultSettings = systemDefaultsResult.settings;
16910
+ userSettings = userResult.settings;
16911
+ workspaceSettings = workspaceResult.settings;
16881
16912
  if (userSettings.ui?.theme === "VS") {
16882
16913
  userSettings.ui.theme = DefaultLight.name;
16883
16914
  } else if (userSettings.ui?.theme === "VS2015") {
@@ -223,7 +223,7 @@ import {
223
223
  toPathKey,
224
224
  unescapePath,
225
225
  zodToJsonSchema
226
- } from "./chunk-6YXSPC34.js";
226
+ } from "./chunk-SAJ72M2G.js";
227
227
  import {
228
228
  wrapper_default
229
229
  } from "./chunk-664ZODQF.js";
@@ -242982,6 +242982,16 @@ var UserPromptEvent = class {
242982
242982
  }
242983
242983
  };
242984
242984
  var EVENT_TOOL_CALL = "gemini_cli.tool_call";
242985
+ var TOOL_CALL_METADATA_SAFE_KEYS = [
242986
+ "model_added_lines",
242987
+ "model_removed_lines",
242988
+ "model_added_chars",
242989
+ "model_removed_chars",
242990
+ "user_added_lines",
242991
+ "user_removed_lines",
242992
+ "user_added_chars",
242993
+ "user_removed_chars"
242994
+ ];
242985
242995
  var ToolCallEvent = class {
242986
242996
  "event.name";
242987
242997
  "event.timestamp";
@@ -243063,7 +243073,6 @@ var ToolCallEvent = class {
243063
243073
  "event.name": EVENT_TOOL_CALL,
243064
243074
  "event.timestamp": this["event.timestamp"],
243065
243075
  function_name: this.function_name,
243066
- function_args: safeJsonStringify(this.function_args, 2),
243067
243076
  duration_ms: this.duration_ms,
243068
243077
  success: this.success,
243069
243078
  decision: this.decision,
@@ -243074,9 +243083,17 @@ var ToolCallEvent = class {
243074
243083
  extension_name: this.extension_name,
243075
243084
  extension_id: this.extension_id,
243076
243085
  start_time: this.start_time,
243077
- end_time: this.end_time,
243078
- metadata: this.metadata
243086
+ end_time: this.end_time
243079
243087
  };
243088
+ if (config2.getTelemetryLogPromptsEnabled() && this.function_args) {
243089
+ attributes["function_args"] = safeJsonStringify(this.function_args, 2);
243090
+ }
243091
+ if (this.metadata) {
243092
+ const metadata2 = config2.getTelemetryLogPromptsEnabled() ? this.metadata : Object.fromEntries(Object.entries(this.metadata).filter(([k]) => TOOL_CALL_METADATA_SAFE_KEYS.includes(k)));
243093
+ if (Object.keys(metadata2).length > 0) {
243094
+ attributes["metadata"] = safeJsonStringify(metadata2, 2);
243095
+ }
243096
+ }
243080
243097
  if (this.error) {
243081
243098
  attributes[CoreToolCallStatus.Error] = this.error;
243082
243099
  attributes["error.message"] = this.error;
@@ -243116,9 +243133,11 @@ var ApiRequestEvent = class {
243116
243133
  "event.name": EVENT_API_REQUEST,
243117
243134
  "event.timestamp": this["event.timestamp"],
243118
243135
  model: this.model,
243119
- prompt_id: this.prompt.prompt_id,
243120
- request_text: this.request_text
243136
+ prompt_id: this.prompt.prompt_id
243121
243137
  };
243138
+ if (config2.getTelemetryLogPromptsEnabled() && this.request_text) {
243139
+ attributes["request_text"] = this.request_text;
243140
+ }
243122
243141
  if (this.role) {
243123
243142
  attributes["role"] = this.role;
243124
243143
  }
@@ -243301,7 +243320,7 @@ var ApiResponseEvent = class {
243301
243320
  if (this.role) {
243302
243321
  attributes["role"] = this.role;
243303
243322
  }
243304
- if (this.response_text) {
243323
+ if (config2.getTelemetryLogPromptsEnabled() && this.response_text) {
243305
243324
  attributes["response_text"] = this.response_text;
243306
243325
  }
243307
243326
  if (this.status_code) {
@@ -243511,11 +243530,19 @@ var ConsecaPolicyGenerationEvent = class {
243511
243530
  const attributes = {
243512
243531
  ...getCommonAttributes(config2),
243513
243532
  "event.name": EVENT_CONSECA_POLICY_GENERATION,
243514
- "event.timestamp": this["event.timestamp"],
243515
- user_prompt: this.user_prompt,
243516
- trusted_content: this.trusted_content,
243517
- policy: this.policy
243533
+ "event.timestamp": this["event.timestamp"]
243518
243534
  };
243535
+ if (config2.getTelemetryLogPromptsEnabled()) {
243536
+ if (this.user_prompt) {
243537
+ attributes["user_prompt"] = this.user_prompt;
243538
+ }
243539
+ if (this.trusted_content) {
243540
+ attributes["trusted_content"] = this.trusted_content;
243541
+ }
243542
+ if (this.policy) {
243543
+ attributes["policy"] = this.policy;
243544
+ }
243545
+ }
243519
243546
  if (this.error) {
243520
243547
  attributes["error"] = this.error;
243521
243548
  }
@@ -243550,12 +243577,22 @@ var ConsecaVerdictEvent = class {
243550
243577
  ...getCommonAttributes(config2),
243551
243578
  "event.name": EVENT_CONSECA_VERDICT,
243552
243579
  "event.timestamp": this["event.timestamp"],
243553
- user_prompt: this.user_prompt,
243554
- policy: this.policy,
243555
- tool_call: this.tool_call,
243556
- verdict: this.verdict,
243557
- verdict_rationale: this.verdict_rationale
243580
+ verdict: this.verdict
243558
243581
  };
243582
+ if (config2.getTelemetryLogPromptsEnabled()) {
243583
+ if (this.user_prompt) {
243584
+ attributes["user_prompt"] = this.user_prompt;
243585
+ }
243586
+ if (this.policy) {
243587
+ attributes["policy"] = this.policy;
243588
+ }
243589
+ if (this.tool_call) {
243590
+ attributes["tool_call"] = this.tool_call;
243591
+ }
243592
+ if (this.verdict_rationale) {
243593
+ attributes["verdict_rationale"] = this.verdict_rationale;
243594
+ }
243595
+ }
243559
243596
  if (this.error) {
243560
243597
  attributes["error"] = this.error;
243561
243598
  }
@@ -246236,8 +246273,8 @@ var EventMetadataKey;
246236
246273
  })(EventMetadataKey || (EventMetadataKey = {}));
246237
246274
 
246238
246275
  // packages/core/dist/src/generated/git-commit.js
246239
- var GIT_COMMIT_INFO = "c17400b83";
246240
- var CLI_VERSION = "0.41.0-nightly.20260428.gc17400b83";
246276
+ var GIT_COMMIT_INFO = "7d233ddd5";
246277
+ var CLI_VERSION = "0.41.0-preview.0";
246241
246278
 
246242
246279
  // packages/core/dist/src/ide/detect-ide.js
246243
246280
  var IDE_DEFINITIONS = {
@@ -248219,20 +248256,19 @@ function logConsecaPolicyGeneration(config2, event) {
248219
248256
  debugLogger.debug("Conseca Policy Generation Event:", event);
248220
248257
  const clearcutLogger = ClearcutLogger.getInstance(config2);
248221
248258
  if (clearcutLogger) {
248222
- const data = [
248223
- {
248259
+ const data = [];
248260
+ if (config2.getTelemetryLogPromptsEnabled()) {
248261
+ data.push({
248224
248262
  gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
248225
248263
  value: safeJsonStringify(event.user_prompt)
248226
- },
248227
- {
248264
+ }, {
248228
248265
  gemini_cli_key: EventMetadataKey.CONSECA_TRUSTED_CONTENT,
248229
248266
  value: safeJsonStringify(event.trusted_content)
248230
- },
248231
- {
248267
+ }, {
248232
248268
  gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
248233
248269
  value: safeJsonStringify(event.policy)
248234
- }
248235
- ];
248270
+ });
248271
+ }
248236
248272
  if (event.error) {
248237
248273
  data.push({
248238
248274
  gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
@@ -248256,26 +248292,25 @@ function logConsecaVerdict(config2, event) {
248256
248292
  if (clearcutLogger) {
248257
248293
  const data = [
248258
248294
  {
248295
+ gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
248296
+ value: safeJsonStringify(event.verdict)
248297
+ }
248298
+ ];
248299
+ if (config2.getTelemetryLogPromptsEnabled()) {
248300
+ data.push({
248259
248301
  gemini_cli_key: EventMetadataKey.CONSECA_USER_PROMPT,
248260
248302
  value: safeJsonStringify(event.user_prompt)
248261
- },
248262
- {
248303
+ }, {
248263
248304
  gemini_cli_key: EventMetadataKey.CONSECA_GENERATED_POLICY,
248264
248305
  value: safeJsonStringify(event.policy)
248265
- },
248266
- {
248306
+ }, {
248267
248307
  gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_NAME,
248268
248308
  value: safeJsonStringify(event.tool_call)
248269
- },
248270
- {
248271
- gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RESULT,
248272
- value: safeJsonStringify(event.verdict)
248273
- },
248274
- {
248309
+ }, {
248275
248310
  gemini_cli_key: EventMetadataKey.CONSECA_VERDICT_RATIONALE,
248276
248311
  value: event.verdict_rationale
248277
- }
248278
- ];
248312
+ });
248313
+ }
248279
248314
  if (event.error) {
248280
248315
  data.push({
248281
248316
  gemini_cli_key: EventMetadataKey.CONSECA_ERROR,
@@ -269181,7 +269216,7 @@ function getVersion() {
269181
269216
  }
269182
269217
  versionPromise = (async () => {
269183
269218
  const pkgJson = await getPackageJson(__dirname4);
269184
- return "0.41.0-nightly.20260428.gc17400b83";
269219
+ return "0.41.0-preview.1";
269185
269220
  })();
269186
269221
  return versionPromise;
269187
269222
  }
@@ -269982,7 +270017,7 @@ var SILENT_ACTIONS = {
269982
270017
  };
269983
270018
  var DEFAULT_STATE = {
269984
270019
  terminal: "terminal",
269985
- transient: "terminal",
270020
+ transient: "sticky_retry",
269986
270021
  not_found: "terminal",
269987
270022
  unknown: "terminal"
269988
270023
  };
@@ -300371,7 +300406,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
300371
300406
  return provider;
300372
300407
  }
300373
300408
  case "oauth2": {
300374
- const { OAuth2AuthProvider } = await import("./oauth2-provider-Y6ZTJFFJ.js");
300409
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-EWMNT6D6.js");
300375
300410
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
300376
300411
  await provider.initialize();
300377
300412
  return provider;
@@ -318850,7 +318885,7 @@ var DEFAULT_MODEL_CONFIGS = {
318850
318885
  },
318851
318886
  stateTransitions: {
318852
318887
  terminal: "terminal",
318853
- transient: "terminal",
318888
+ transient: "sticky_retry",
318854
318889
  not_found: "terminal",
318855
318890
  unknown: "terminal"
318856
318891
  }
@@ -318866,7 +318901,7 @@ var DEFAULT_MODEL_CONFIGS = {
318866
318901
  },
318867
318902
  stateTransitions: {
318868
318903
  terminal: "terminal",
318869
- transient: "terminal",
318904
+ transient: "sticky_retry",
318870
318905
  not_found: "terminal",
318871
318906
  unknown: "terminal"
318872
318907
  }
@@ -318883,7 +318918,7 @@ var DEFAULT_MODEL_CONFIGS = {
318883
318918
  },
318884
318919
  stateTransitions: {
318885
318920
  terminal: "terminal",
318886
- transient: "terminal",
318921
+ transient: "sticky_retry",
318887
318922
  not_found: "terminal",
318888
318923
  unknown: "terminal"
318889
318924
  }
@@ -318899,7 +318934,7 @@ var DEFAULT_MODEL_CONFIGS = {
318899
318934
  },
318900
318935
  stateTransitions: {
318901
318936
  terminal: "terminal",
318902
- transient: "terminal",
318937
+ transient: "sticky_retry",
318903
318938
  not_found: "terminal",
318904
318939
  unknown: "terminal"
318905
318940
  }
@@ -318916,7 +318951,7 @@ var DEFAULT_MODEL_CONFIGS = {
318916
318951
  },
318917
318952
  stateTransitions: {
318918
318953
  terminal: "terminal",
318919
- transient: "terminal",
318954
+ transient: "sticky_retry",
318920
318955
  not_found: "terminal",
318921
318956
  unknown: "terminal"
318922
318957
  }
@@ -318931,7 +318966,7 @@ var DEFAULT_MODEL_CONFIGS = {
318931
318966
  },
318932
318967
  stateTransitions: {
318933
318968
  terminal: "terminal",
318934
- transient: "terminal",
318969
+ transient: "sticky_retry",
318935
318970
  not_found: "terminal",
318936
318971
  unknown: "terminal"
318937
318972
  }
@@ -318947,7 +318982,7 @@ var DEFAULT_MODEL_CONFIGS = {
318947
318982
  },
318948
318983
  stateTransitions: {
318949
318984
  terminal: "terminal",
318950
- transient: "terminal",
318985
+ transient: "sticky_retry",
318951
318986
  not_found: "terminal",
318952
318987
  unknown: "terminal"
318953
318988
  }
@@ -335994,7 +336029,7 @@ var Config = class {
335994
336029
  if (this.experimentalJitContext && this.memoryContextManager) {
335995
336030
  await this.memoryContextManager.refresh();
335996
336031
  } else {
335997
- const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-FPAA4X4J.js");
336032
+ const { refreshServerHierarchicalMemory: refreshServerHierarchicalMemory2 } = await import("./memoryDiscovery-R7PAR2NY.js");
335998
336033
  await refreshServerHierarchicalMemory2(this);
335999
336034
  }
336000
336035
  if (this._geminiClient?.isInitialized()) {
@@ -339843,7 +339878,8 @@ var errorMessageGenerators = {
339843
339878
  EMFILE: () => "Too many open files. Close some unused files or applications.",
339844
339879
  ENFILE: () => "Too many open files in system. Close some unused files or applications.",
339845
339880
  ECONNRESET: () => "Connection reset by peer. The network connection was unexpectedly closed.",
339846
- ETIMEDOUT: () => "Operation timed out. The network connection or filesystem operation took too long."
339881
+ ETIMEDOUT: () => "Operation timed out. The network connection or filesystem operation took too long.",
339882
+ ENOTDIR: (path100) => (path100 ? `Not a directory: '${path100}'. ` : "Not a directory. ") + "Check if the path is correct and that all parent components are directories."
339847
339883
  };
339848
339884
  function getFsErrorMessage(error40, defaultMessage = "An unknown error occurred") {
339849
339885
  if (error40 == 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-B5VTGUEL.js";
4
+ } from "./chunk-U6WUS35U.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require