@google/gemini-cli 0.46.0-preview.0 → 0.46.0-preview.2

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-4AGOZ7LL.js → chunk-22XWYJCL.js} +7 -7
  2. package/bundle/{chunk-2GMVQS2Q.js → chunk-27JE2WT6.js} +1 -1
  3. package/bundle/{chunk-TDYUKPZH.js → chunk-2K6L5FOH.js} +1 -1
  4. package/bundle/{chunk-QFEJQS5X.js → chunk-3RBWPCUC.js} +1 -1
  5. package/bundle/{chunk-MFYAVF7Y.js → chunk-5IDNG2OG.js} +67 -54
  6. package/bundle/{chunk-BOJOJVNV.js → chunk-7JQYEHGG.js} +1 -1
  7. package/bundle/{chunk-J444UQD3.js → chunk-7PDJUYG7.js} +1 -1
  8. package/bundle/{chunk-ZXN4VW7M.js → chunk-B5F4VQB4.js} +1 -1
  9. package/bundle/{chunk-HZNEV3DS.js → chunk-CRQJBWDY.js} +1 -1
  10. package/bundle/{chunk-5LUCCXOB.js → chunk-CWVF4ZTK.js} +1 -1
  11. package/bundle/{chunk-HHFFICNK.js → chunk-E5QEVDYZ.js} +48 -25
  12. package/bundle/{chunk-FIM2LOYZ.js → chunk-EI75YPWJ.js} +42 -25
  13. package/bundle/chunk-IPUQ7EE3.js +81685 -0
  14. package/bundle/{chunk-S2ICEQVC.js → chunk-J5LPI3LE.js} +3 -3
  15. package/bundle/{chunk-RXG3JOOZ.js → chunk-LEOT5EUQ.js} +1 -1
  16. package/bundle/chunk-NV6UIB5A.js +1571 -0
  17. package/bundle/{chunk-XRDSBRG4.js → chunk-O6PTG534.js} +7560 -14072
  18. package/bundle/{chunk-F2LLVPPS.js → chunk-PE7HOVW5.js} +2 -2
  19. package/bundle/chunk-PIZZXDDG.js +154 -0
  20. package/bundle/{chunk-LBE2WKE7.js → chunk-PRRK6JDC.js} +3 -3
  21. package/bundle/{chunk-773AJHDP.js → chunk-QB7YVNGV.js} +7 -7
  22. package/bundle/{chunk-4K3E3G6Z.js → chunk-QW5AOX4N.js} +8 -5
  23. package/bundle/{chunk-HMR43ZX2.js → chunk-R4U5N4EA.js} +2 -2
  24. package/bundle/{chunk-SHFHGDWR.js → chunk-R4UEOSDC.js} +2 -2
  25. package/bundle/{chunk-GTRQQGSJ.js → chunk-RHCHEKOW.js} +1 -1
  26. package/bundle/{chunk-YMNECODB.js → chunk-RS7XVABE.js} +9 -8
  27. package/bundle/{chunk-ZQGZKIDD.js → chunk-SIKHBFAN.js} +3 -3
  28. package/bundle/chunk-UEE43LJM.js +118 -0
  29. package/bundle/chunk-UHZJ6CQN.js +17320 -0
  30. package/bundle/chunk-USOBCNPR.js +394545 -0
  31. package/bundle/chunk-WUZJ6YCQ.js +398 -0
  32. package/bundle/chunk-ZXFPRK6W.js +512 -0
  33. package/bundle/{cleanup-2WXD6UQP.js → cleanup-I5FUY2UQ.js} +2 -2
  34. package/bundle/{cleanup-L3CLNVX6.js → cleanup-OIBS4TJ5.js} +2 -2
  35. package/bundle/{cleanup-SUDL37MT.js → cleanup-RODT76X7.js} +2 -2
  36. package/bundle/cleanup-WY7MMPH7.js +32 -0
  37. package/bundle/{core-VVRQ2GQD.js → core-DU2UPBEJ.js} +3 -1
  38. package/bundle/{devtoolsService-GLW7S6PS.js → devtoolsService-C64GR2SQ.js} +2 -2
  39. package/bundle/{devtoolsService-ZYCBBAV3.js → devtoolsService-EJVCNXD4.js} +2 -2
  40. package/bundle/{devtoolsService-E62WA3CY.js → devtoolsService-LQXWZBCZ.js} +4 -3
  41. package/bundle/devtoolsService-U7Z6S7CA.js +856 -0
  42. package/bundle/{dist-GPCRVPKS.js → dist-CEGGZCD6.js} +3 -1
  43. package/bundle/{core-MOYKPEYV.js → dist-F4ZLD67R.js} +3 -1
  44. package/bundle/dist-XLM4ONR2.js +2140 -0
  45. package/bundle/docs/reference/configuration.md +3 -1
  46. package/bundle/{gemini-KV5CHM4H.js → gemini-3AA27X7W.js} +18 -15
  47. package/bundle/{gemini-2JTOIMGM.js → gemini-D5Y26G7I.js} +18 -15
  48. package/bundle/{gemini-R5NCXCEL.js → gemini-EEFZ4W4N.js} +216 -197
  49. package/bundle/gemini-TPWWVYVB.js +16409 -0
  50. package/bundle/gemini.js +7 -7
  51. package/bundle/{interactiveCli-RMWTSIEN.js → interactiveCli-5L4XUO4D.js} +18 -12
  52. package/bundle/{interactiveCli-HVAQTBJK.js → interactiveCli-B5QE2YQH.js} +18 -12
  53. package/bundle/{interactiveCli-7SIMXKNU.js → interactiveCli-CFKGEXFE.js} +324 -299
  54. package/bundle/interactiveCli-S4W3W3HM.js +34742 -0
  55. package/bundle/{liteRtServerManager-FY23PYSD.js → liteRtServerManager-2IHVDPV4.js} +4 -4
  56. package/bundle/{liteRtServerManager-LDS45QKP.js → liteRtServerManager-7CA6UZB6.js} +4 -4
  57. package/bundle/{liteRtServerManager-BP7XKGNU.js → liteRtServerManager-P4UUE4PT.js} +4 -4
  58. package/bundle/liteRtServerManager-YN3VGMDA.js +65 -0
  59. package/bundle/{oauth2-provider-VVNBQH45.js → oauth2-provider-5IAYEVTS.js} +1 -1
  60. package/bundle/{oauth2-provider-4SSSEI6P.js → oauth2-provider-NQK2KDLL.js} +38 -72
  61. package/bundle/{oauth2-provider-KL44D6HV.js → oauth2-provider-WD62E6UF.js} +1 -1
  62. package/bundle/oauth2-provider-WGTNZKF7.js +235 -0
  63. package/bundle/{start-FRM2XDGC.js → start-AAWVXW3L.js} +6 -6
  64. package/bundle/{start-OEPJINIW.js → start-EHQUCJL4.js} +6 -6
  65. package/bundle/{start-DLEOBFRC.js → start-EJWSTD4L.js} +6 -6
  66. package/bundle/start-LAOVDDQF.js +18 -0
  67. package/package.json +1 -1
@@ -1042,13 +1042,15 @@ their corresponding top-level category object in your `settings.json` file.
1042
1042
  "contexts": [
1043
1043
  {
1044
1044
  "condition": {
1045
+ "hasAccessToPreview": false,
1045
1046
  "useGemini3_5Flash": true
1046
1047
  },
1047
1048
  "target": "gemini-3.5-flash"
1048
1049
  },
1049
1050
  {
1050
1051
  "condition": {
1051
- "hasAccessToPreview": false
1052
+ "hasAccessToPreview": false,
1053
+ "useGemini3_5Flash": false
1052
1054
  },
1053
1055
  "target": "gemini-2.5-flash"
1054
1056
  }
@@ -41,18 +41,18 @@ import {
41
41
  updateAllUpdatableExtensions,
42
42
  updateExtension,
43
43
  validateAuthMethod
44
- } from "./chunk-4AGOZ7LL.js";
44
+ } from "./chunk-22XWYJCL.js";
45
45
  import {
46
46
  appEvents
47
47
  } from "./chunk-5PS3AYFU.js";
48
48
  import {
49
49
  startCommand,
50
50
  startServer
51
- } from "./chunk-ZQGZKIDD.js";
51
+ } from "./chunk-J5LPI3LE.js";
52
52
  import {
53
53
  exitCli,
54
54
  require_source
55
- } from "./chunk-5LUCCXOB.js";
55
+ } from "./chunk-CWVF4ZTK.js";
56
56
  import {
57
57
  DEFAULT_PORT,
58
58
  GEMMA_MODEL_NAME,
@@ -86,11 +86,11 @@ import {
86
86
  readServerProcessInfo,
87
87
  resolveGemmaConfig,
88
88
  saveModelChange
89
- } from "./chunk-J444UQD3.js";
89
+ } from "./chunk-UHZJ6CQN.js";
90
90
  import {
91
91
  RELAUNCH_EXIT_CODE
92
- } from "./chunk-HMR43ZX2.js";
93
- import "./chunk-GTRQQGSJ.js";
92
+ } from "./chunk-PE7HOVW5.js";
93
+ import "./chunk-RS7XVABE.js";
94
94
  import {
95
95
  cleanupCheckpoints,
96
96
  registerCleanup,
@@ -99,7 +99,7 @@ import {
99
99
  runExitCleanup,
100
100
  runSyncCleanup,
101
101
  setupSignalHandlers
102
- } from "./chunk-RXG3JOOZ.js";
102
+ } from "./chunk-LEOT5EUQ.js";
103
103
  import {
104
104
  ASK_USER_TOOL_NAME,
105
105
  ApprovalMode,
@@ -247,7 +247,7 @@ import {
247
247
  updatePolicy,
248
248
  writeToStderr,
249
249
  writeToStdout
250
- } from "./chunk-FIM2LOYZ.js";
250
+ } from "./chunk-O6PTG534.js";
251
251
  import "./chunk-6HI7VNOG.js";
252
252
  import "./chunk-TUDYL3X4.js";
253
253
  import "./chunk-IUUIT4SU.js";
@@ -7841,7 +7841,7 @@ async function loadSandboxConfig(settings, argv) {
7841
7841
  }
7842
7842
  const command2 = getSandboxCommand(sandboxValue);
7843
7843
  const packageJson = await getPackageJson(__dirname3);
7844
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.46.0-preview.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7844
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.46.0-preview.1" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7845
7845
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7846
7846
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7847
7847
  }
@@ -10249,7 +10249,7 @@ async function runNonInteractive({
10249
10249
  }
10250
10250
  });
10251
10251
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10252
- const { setupInitialActivityLogger } = await import("./devtoolsService-ZYCBBAV3.js");
10252
+ const { setupInitialActivityLogger } = await import("./devtoolsService-LQXWZBCZ.js");
10253
10253
  setupInitialActivityLogger(config);
10254
10254
  }
10255
10255
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10720,7 +10720,7 @@ async function runNonInteractive2(params) {
10720
10720
  }
10721
10721
  });
10722
10722
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10723
- const { setupInitialActivityLogger } = await import("./devtoolsService-ZYCBBAV3.js");
10723
+ const { setupInitialActivityLogger } = await import("./devtoolsService-LQXWZBCZ.js");
10724
10724
  setupInitialActivityLogger(config);
10725
10725
  }
10726
10726
  const { stdout: workingStdout } = createWorkingStdio();
@@ -13664,11 +13664,13 @@ function buildAvailableModels(config, settings) {
13664
13664
  const preferredModel = config.getModel() || GEMINI_MODEL_ALIAS_AUTO;
13665
13665
  const shouldShowPreviewModels = config.getHasAccessToPreviewModel();
13666
13666
  const useGemini31 = config.getGemini31LaunchedSync?.() ?? false;
13667
+ const useGemini3_5Flash = config.hasGemini35FlashGAAccess?.() ?? false;
13667
13668
  const selectedAuthType = settings.merged.security.auth.selectedType;
13668
13669
  const useCustomToolModel = useGemini31 && selectedAuthType === AuthType.USE_GEMINI;
13669
13670
  if (config.getExperimentalDynamicModelConfiguration?.() === true && config.getModelConfigService) {
13670
13671
  const options = config.getModelConfigService().getAvailableModelOptions({
13671
13672
  useGemini3_1: useGemini31,
13673
+ useGemini3_5Flash,
13672
13674
  useCustomTools: useCustomToolModel,
13673
13675
  hasAccessToPreview: shouldShowPreviewModels
13674
13676
  });
@@ -13683,7 +13685,8 @@ function buildAvailableModels(config, settings) {
13683
13685
  title: getDisplayString(GEMINI_MODEL_ALIAS_AUTO),
13684
13686
  description: getAutoModelDescription(
13685
13687
  shouldShowPreviewModels,
13686
- useGemini31
13688
+ useGemini31,
13689
+ useGemini3_5Flash
13687
13690
  )
13688
13691
  }
13689
13692
  ];
@@ -15908,7 +15911,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
15908
15911
  }
15909
15912
  }
15910
15913
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15911
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-RMWTSIEN.js");
15914
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-CFKGEXFE.js");
15912
15915
  await doStartUI(
15913
15916
  config,
15914
15917
  settings,
@@ -16117,7 +16120,7 @@ ${finalArgs[promptIndex + 1]}`;
16117
16120
  await config.storage.initialize();
16118
16121
  adminControlsListner.setConfig(config);
16119
16122
  if (config.isInteractive() && settings.merged.general.devtools) {
16120
- const { setupInitialActivityLogger } = await import("./devtoolsService-ZYCBBAV3.js");
16123
+ const { setupInitialActivityLogger } = await import("./devtoolsService-LQXWZBCZ.js");
16121
16124
  setupInitialActivityLogger(config);
16122
16125
  }
16123
16126
  registerTelemetryConfig(config);
@@ -16176,7 +16179,7 @@ ${finalArgs[promptIndex + 1]}`;
16176
16179
  const initAppHandle = startupProfiler.start("initialize_app");
16177
16180
  const initializationResult = await initializeApp(config, settings);
16178
16181
  initAppHandle?.end();
16179
- import("./liteRtServerManager-LDS45QKP.js").then(({ LiteRtServerManager }) => {
16182
+ import("./liteRtServerManager-2IHVDPV4.js").then(({ LiteRtServerManager }) => {
16180
16183
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16181
16184
  if (!mergedGemma) return;
16182
16185
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -41,18 +41,18 @@ import {
41
41
  updateAllUpdatableExtensions,
42
42
  updateExtension,
43
43
  validateAuthMethod
44
- } from "./chunk-773AJHDP.js";
44
+ } from "./chunk-QB7YVNGV.js";
45
45
  import {
46
46
  appEvents
47
47
  } from "./chunk-5PS3AYFU.js";
48
48
  import {
49
49
  startCommand,
50
50
  startServer
51
- } from "./chunk-S2ICEQVC.js";
51
+ } from "./chunk-UEE43LJM.js";
52
52
  import {
53
53
  exitCli,
54
54
  require_source
55
- } from "./chunk-BOJOJVNV.js";
55
+ } from "./chunk-NV6UIB5A.js";
56
56
  import {
57
57
  DEFAULT_PORT,
58
58
  GEMMA_MODEL_NAME,
@@ -86,11 +86,11 @@ import {
86
86
  readServerProcessInfo,
87
87
  resolveGemmaConfig,
88
88
  saveModelChange
89
- } from "./chunk-4K3E3G6Z.js";
89
+ } from "./chunk-B5F4VQB4.js";
90
90
  import {
91
91
  RELAUNCH_EXIT_CODE
92
- } from "./chunk-SHFHGDWR.js";
93
- import "./chunk-TDYUKPZH.js";
92
+ } from "./chunk-WUZJ6YCQ.js";
93
+ import "./chunk-2K6L5FOH.js";
94
94
  import {
95
95
  cleanupCheckpoints,
96
96
  registerCleanup,
@@ -99,7 +99,7 @@ import {
99
99
  runExitCleanup,
100
100
  runSyncCleanup,
101
101
  setupSignalHandlers
102
- } from "./chunk-2GMVQS2Q.js";
102
+ } from "./chunk-PIZZXDDG.js";
103
103
  import {
104
104
  ASK_USER_TOOL_NAME,
105
105
  AuthType,
@@ -231,7 +231,7 @@ import {
231
231
  updatePolicy,
232
232
  writeToStderr,
233
233
  writeToStdout
234
- } from "./chunk-HHFFICNK.js";
234
+ } from "./chunk-E5QEVDYZ.js";
235
235
  import "./chunk-6HI7VNOG.js";
236
236
  import "./chunk-TUDYL3X4.js";
237
237
  import "./chunk-IUUIT4SU.js";
@@ -7825,7 +7825,7 @@ async function loadSandboxConfig(settings, argv) {
7825
7825
  }
7826
7826
  const command2 = getSandboxCommand(sandboxValue);
7827
7827
  const packageJson = await getPackageJson(__dirname3);
7828
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.46.0-preview.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7828
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.46.0-preview.1" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7829
7829
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7830
7830
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7831
7831
  }
@@ -10233,7 +10233,7 @@ async function runNonInteractive({
10233
10233
  }
10234
10234
  });
10235
10235
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10236
- const { setupInitialActivityLogger } = await import("./devtoolsService-E62WA3CY.js");
10236
+ const { setupInitialActivityLogger } = await import("./devtoolsService-C64GR2SQ.js");
10237
10237
  setupInitialActivityLogger(config);
10238
10238
  }
10239
10239
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10704,7 +10704,7 @@ async function runNonInteractive2(params) {
10704
10704
  }
10705
10705
  });
10706
10706
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10707
- const { setupInitialActivityLogger } = await import("./devtoolsService-E62WA3CY.js");
10707
+ const { setupInitialActivityLogger } = await import("./devtoolsService-C64GR2SQ.js");
10708
10708
  setupInitialActivityLogger(config);
10709
10709
  }
10710
10710
  const { stdout: workingStdout } = createWorkingStdio();
@@ -13648,11 +13648,13 @@ function buildAvailableModels(config, settings) {
13648
13648
  const preferredModel = config.getModel() || GEMINI_MODEL_ALIAS_AUTO;
13649
13649
  const shouldShowPreviewModels = config.getHasAccessToPreviewModel();
13650
13650
  const useGemini31 = config.getGemini31LaunchedSync?.() ?? false;
13651
+ const useGemini3_5Flash = config.hasGemini35FlashGAAccess?.() ?? false;
13651
13652
  const selectedAuthType = settings.merged.security.auth.selectedType;
13652
13653
  const useCustomToolModel = useGemini31 && selectedAuthType === "gemini-api-key" /* USE_GEMINI */;
13653
13654
  if (config.getExperimentalDynamicModelConfiguration?.() === true && config.getModelConfigService) {
13654
13655
  const options = config.getModelConfigService().getAvailableModelOptions({
13655
13656
  useGemini3_1: useGemini31,
13657
+ useGemini3_5Flash,
13656
13658
  useCustomTools: useCustomToolModel,
13657
13659
  hasAccessToPreview: shouldShowPreviewModels
13658
13660
  });
@@ -13667,7 +13669,8 @@ function buildAvailableModels(config, settings) {
13667
13669
  title: getDisplayString(GEMINI_MODEL_ALIAS_AUTO),
13668
13670
  description: getAutoModelDescription(
13669
13671
  shouldShowPreviewModels,
13670
- useGemini31
13672
+ useGemini31,
13673
+ useGemini3_5Flash
13671
13674
  )
13672
13675
  }
13673
13676
  ];
@@ -15892,7 +15895,7 @@ async function resolveSessionId(resumeArg, sessionIdArg, sessionFileArg) {
15892
15895
  }
15893
15896
  }
15894
15897
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15895
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-7SIMXKNU.js");
15898
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-B5QE2YQH.js");
15896
15899
  await doStartUI(
15897
15900
  config,
15898
15901
  settings,
@@ -16101,7 +16104,7 @@ ${finalArgs[promptIndex + 1]}`;
16101
16104
  await config.storage.initialize();
16102
16105
  adminControlsListner.setConfig(config);
16103
16106
  if (config.isInteractive() && settings.merged.general.devtools) {
16104
- const { setupInitialActivityLogger } = await import("./devtoolsService-E62WA3CY.js");
16107
+ const { setupInitialActivityLogger } = await import("./devtoolsService-C64GR2SQ.js");
16105
16108
  setupInitialActivityLogger(config);
16106
16109
  }
16107
16110
  registerTelemetryConfig(config);
@@ -16160,7 +16163,7 @@ ${finalArgs[promptIndex + 1]}`;
16160
16163
  const initAppHandle = startupProfiler.start("initialize_app");
16161
16164
  const initializationResult = await initializeApp(config, settings);
16162
16165
  initAppHandle?.end();
16163
- import("./liteRtServerManager-FY23PYSD.js").then(({ LiteRtServerManager }) => {
16166
+ import("./liteRtServerManager-7CA6UZB6.js").then(({ LiteRtServerManager }) => {
16164
16167
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
16165
16168
  if (!mergedGemma) return;
16166
16169
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;