@google/gemini-cli 0.41.0-nightly.20260428.gc17400b83 → 0.41.0-preview.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 (65) hide show
  1. package/bundle/{chunk-2ZB7J3FY.js → chunk-3ANRVMZF.js} +3 -3
  2. package/bundle/{chunk-O6I6A2M4.js → chunk-42DYHGPE.js} +1 -1
  3. package/bundle/{chunk-5STX5PU4.js → chunk-BKZ2ONXI.js} +1 -1
  4. package/bundle/{chunk-OWVM24FM.js → chunk-EOA2HX63.js} +3 -3
  5. package/bundle/{chunk-6GAOKBL5.js → chunk-FZCJQ7YB.js} +7 -7
  6. package/bundle/{chunk-FV5FJHRI.js → chunk-HR7I3HEY.js} +51 -20
  7. package/bundle/{chunk-BF27RFAN.js → chunk-IEYJEBJX.js} +54 -67
  8. package/bundle/{chunk-L6R4SOCW.js → chunk-JC6VKC3C.js} +2 -2
  9. package/bundle/{chunk-B5VTGUEL.js → chunk-LAT5YFL4.js} +2 -2
  10. package/bundle/{chunk-6CMLUZVN.js → chunk-MJJLAQ6U.js} +1 -1
  11. package/bundle/{chunk-GS47IOCU.js → chunk-MVAX27IS.js} +3 -3
  12. package/bundle/{chunk-XJTD3HPU.js → chunk-NQUBPNAU.js} +7 -7
  13. package/bundle/{chunk-FVZBY3YD.js → chunk-PXLG652S.js} +16 -15
  14. package/bundle/{chunk-6YXSPC34.js → chunk-SAJ72M2G.js} +4 -3
  15. package/bundle/{chunk-GNXI53OB.js → chunk-WROAWEH3.js} +12433 -6665
  16. package/bundle/{chunk-AWYPBHRQ.js → chunk-WSDOIL74.js} +16 -15
  17. package/bundle/{chunk-M5OHKTMZ.js → chunk-WYBLOXVK.js} +51 -20
  18. package/bundle/{chunk-NHDKAJLK.js → chunk-X2LHBPEJ.js} +61 -32
  19. package/bundle/{chunk-MTD736U4.js → chunk-XRLFHCHC.js} +4 -3
  20. package/bundle/{chunk-N5FEJH35.js → chunk-YBG43HPA.js} +2 -2
  21. package/bundle/{cleanup-KTTFH4V2.js → cleanup-KLFDN77S.js} +3 -3
  22. package/bundle/{cleanup-QVYV3PZ5.js → cleanup-UES5UWIG.js} +3 -3
  23. package/bundle/{cleanup-YTI5UUIX.js → cleanup-Z4RYESBA.js} +3 -3
  24. package/bundle/{core-BDTKNBLU.js → core-3W43VO4W.js} +2 -2
  25. package/bundle/{dist-54RTLLLD.js → core-Q32MZ3QF.js} +2 -2
  26. package/bundle/{devtoolsService-I5YHBVJF.js → devtoolsService-N3SEUDJ7.js} +16 -11
  27. package/bundle/{devtoolsService-GC2CWO6J.js → devtoolsService-P5BXPJX5.js} +17 -13
  28. package/bundle/{devtoolsService-4YXBH4RL.js → devtoolsService-ZDMUH5GA.js} +16 -11
  29. package/bundle/{dist-FFJ6TEOB.js → dist-UL5N47TA.js} +2 -2
  30. package/bundle/docs/changelogs/preview.md +9 -3
  31. package/bundle/docs/reference/configuration.md +7 -7
  32. package/bundle/{gemini-CW2LLZYZ.js → gemini-DGVTFOIS.js} +17 -14
  33. package/bundle/{gemini-SZZ4UAGX.js → gemini-K6LJN552.js} +180 -193
  34. package/bundle/{gemini-7QBUWDYT.js → gemini-PL45Y473.js} +18 -15
  35. package/bundle/gemini.js +3 -3
  36. package/bundle/{interactiveCli-5RJM6O6C.js → interactiveCli-JL5IXH2I.js} +7 -7
  37. package/bundle/{interactiveCli-Q5CKAPLU.js → interactiveCli-O7Y36MPM.js} +7 -7
  38. package/bundle/{interactiveCli-DMB2CAVW.js → interactiveCli-ZJGQKU2Z.js} +272 -290
  39. package/bundle/{liteRtServerManager-4FYPO3A7.js → liteRtServerManager-2LAXDWUG.js} +4 -4
  40. package/bundle/{liteRtServerManager-DVXTSTS7.js → liteRtServerManager-QGTT3QOY.js} +4 -4
  41. package/bundle/{liteRtServerManager-H6CBRIBA.js → liteRtServerManager-YCLQ2VZR.js} +4 -4
  42. package/bundle/{memoryDiscovery-FPAA4X4J.js → memoryDiscovery-FN3IAPBT.js} +1 -1
  43. package/bundle/{memoryDiscovery-NSOLCG4U.js → memoryDiscovery-R7PAR2NY.js} +1 -1
  44. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  45. package/bundle/{oauth2-provider-Z3KFISV4.js → oauth2-provider-Q5QVFX4W.js} +2 -2
  46. package/bundle/{oauth2-provider-SJUD23MI.js → oauth2-provider-RR3PO6KR.js} +73 -39
  47. package/bundle/{oauth2-provider-NW7OHM3Z.js → oauth2-provider-ZUEDS4RO.js} +2 -2
  48. package/bundle/{start-MILYO5EG.js → start-6ZXD64J4.js} +6 -6
  49. package/bundle/{start-RTQPRFYB.js → start-P6O7G2IY.js} +6 -6
  50. package/bundle/{start-STY62DNF.js → start-V4W5V2EL.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-J74HIKFT.js +0 -354460
  53. package/bundle/chunk-KDH7DRD7.js +0 -118
  54. package/bundle/chunk-QG4H3PXK.js +0 -17625
  55. package/bundle/chunk-QMO63OUG.js +0 -1571
  56. package/bundle/chunk-TGD6LUOZ.js +0 -156
  57. package/bundle/chunk-YTCNV6EP.js +0 -80034
  58. package/bundle/cleanup-ZUYJXHRK.js +0 -33
  59. package/bundle/devtoolsService-VIQF3BWN.js +0 -852
  60. package/bundle/dist-MKHEHKNG.js +0 -2068
  61. package/bundle/gemini-EFVG7533.js +0 -15985
  62. package/bundle/interactiveCli-Q5KIZEE6.js +0 -35052
  63. package/bundle/liteRtServerManager-WSICWAWE.js +0 -65
  64. package/bundle/oauth2-provider-Y6ZTJFFJ.js +0 -237
  65. package/bundle/start-ZGCZ2V4O.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-5STX5PU4.js";
5
+ } from "./chunk-BKZ2ONXI.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-X2LHBPEJ.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-6YXSPC34.js";
20
+ } from "./chunk-XRLFHCHC.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-B5VTGUEL.js";
4
+ } from "./chunk-JC6VKC3C.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -1,7 +1,7 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
2
  import {
3
3
  runExitCleanup
4
- } from "./chunk-N5FEJH35.js";
4
+ } from "./chunk-LAT5YFL4.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-6CMLUZVN.js";
5
+ } from "./chunk-MJJLAQ6U.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-NHDKAJLK.js";
17
+ } from "./chunk-HR7I3HEY.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";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  exitCli,
8
8
  require_source
9
- } from "./chunk-O6I6A2M4.js";
9
+ } from "./chunk-42DYHGPE.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-M5OHKTMZ.js";
62
+ } from "./chunk-WYBLOXVK.js";
63
63
  import {
64
64
  runExitCleanup
65
- } from "./chunk-B5VTGUEL.js";
65
+ } from "./chunk-JC6VKC3C.js";
66
66
  import {
67
67
  AsyncFzf,
68
68
  Config,
@@ -196,7 +196,7 @@ import {
196
196
  stripAnsi,
197
197
  tokenLimit,
198
198
  uiTelemetryService
199
- } from "./chunk-FVZBY3YD.js";
199
+ } from "./chunk-PXLG652S.js";
200
200
  import {
201
201
  ApprovalMode,
202
202
  CoreEvent,
@@ -222,7 +222,7 @@ import {
222
222
  shortenPath,
223
223
  tildeifyPath,
224
224
  unescapePath
225
- } from "./chunk-MTD736U4.js";
225
+ } from "./chunk-XRLFHCHC.js";
226
226
  import {
227
227
  require_src
228
228
  } from "./chunk-RJTRUG2J.js";
@@ -54990,7 +54990,7 @@ var authCommand = {
54990
54990
  import process29 from "node:process";
54991
54991
 
54992
54992
  // packages/cli/src/generated/git-commit.ts
54993
- var GIT_COMMIT_INFO = "c17400b83";
54993
+ var GIT_COMMIT_INFO = "59b2dea0e";
54994
54994
 
54995
54995
  // packages/cli/src/ui/utils/historyExportUtils.ts
54996
54996
  import * as fsPromises from "node:fs/promises";
@@ -60475,7 +60475,7 @@ Use /mcp auth <server-name> to authenticate.`
60475
60475
  type: "info",
60476
60476
  text: `Starting OAuth authentication for MCP server '${serverName}'...`
60477
60477
  });
60478
- const { MCPOAuthProvider } = await import("./core-BDTKNBLU.js");
60478
+ const { MCPOAuthProvider } = await import("./core-Q32MZ3QF.js");
60479
60479
  let oauthConfig = server.oauth;
60480
60480
  if (!oauthConfig) {
60481
60481
  oauthConfig = { enabled: false };
@@ -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-WSDOIL74.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") {