@google/gemini-cli 0.40.0-preview.4 → 0.41.0-nightly.20260427.g42587de73

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 (69) hide show
  1. package/README.md +2 -0
  2. package/bundle/{chunk-F73F75XM.js → chunk-6YXSPC34.js} +15 -2
  3. package/bundle/{chunk-BV2W6YE6.js → chunk-AAGEU3BL.js} +2 -2
  4. package/bundle/{chunk-M76FWZ5L.js → chunk-AN7B4FAU.js} +90 -2
  5. package/bundle/{chunk-4XVBQQNJ.js → chunk-DIBSCCT7.js} +38 -11
  6. package/bundle/{chunk-CJQVVQSH.js → chunk-DIGDAAM2.js} +90 -2
  7. package/bundle/{chunk-G356GKHH.js → chunk-DXV2GNZK.js} +1 -1
  8. package/bundle/{chunk-PRZIW6SM.js → chunk-E2PVGI7T.js} +2 -2
  9. package/bundle/{chunk-H7F2VOIJ.js → chunk-EBIQLUW4.js} +38 -11
  10. package/bundle/{chunk-WSTHO4WR.js → chunk-EDS2U2K6.js} +3 -3
  11. package/bundle/{chunk-LMVZLINC.js → chunk-JBPYZI4D.js} +3 -3
  12. package/bundle/{chunk-H4NQBTXN.js → chunk-LFQEL3VY.js} +90 -2
  13. package/bundle/{chunk-KG7ZFMJL.js → chunk-MAZR7GNG.js} +2108 -1100
  14. package/bundle/{chunk-UHHRGNIO.js → chunk-MTD736U4.js} +15 -2
  15. package/bundle/{chunk-LODNDE3S.js → chunk-MWLCQDAR.js} +90 -2
  16. package/bundle/{chunk-547AWTTH.js → chunk-NVZUCT4Q.js} +38 -11
  17. package/bundle/{chunk-CIO3GUGQ.js → chunk-PZYK66PS.js} +2051 -1085
  18. package/bundle/{chunk-HGFADN5A.js → chunk-QAPWMN3Q.js} +1 -1
  19. package/bundle/{chunk-SYPUOR3U.js → chunk-QP7T3P6C.js} +2 -2
  20. package/bundle/{chunk-NV6UCR4K.js → chunk-QU37OIJC.js} +2051 -1085
  21. package/bundle/{chunk-HF7X35D3.js → chunk-QYUVW7FS.js} +38 -11
  22. package/bundle/{chunk-LVHUYMBU.js → chunk-SEC46BJI.js} +2 -2
  23. package/bundle/{chunk-VQ7N6NVX.js → chunk-SVPUDLWF.js} +1 -1
  24. package/bundle/{chunk-63PTTRTA.js → chunk-TIAUGLTD.js} +3 -3
  25. package/bundle/{chunk-ATGIEBEB.js → chunk-UXOWV6CJ.js} +1 -1
  26. package/bundle/{chunk-RENFZ63F.js → chunk-XCXC2RZD.js} +2051 -1085
  27. package/bundle/{chunk-ZQNX6OWU.js → chunk-ZZD6EUQN.js} +3 -3
  28. package/bundle/{cleanup-4EFDM2N7.js → cleanup-5PASNNC4.js} +3 -3
  29. package/bundle/{cleanup-4RRVO4GO.js → cleanup-PWIRVAHI.js} +3 -3
  30. package/bundle/{cleanup-DNS7PXYC.js → cleanup-UX5NEMHM.js} +3 -3
  31. package/bundle/{cleanup-DXHNV2J6.js → cleanup-WBATOWCX.js} +3 -3
  32. package/bundle/{core-WQSFCPEO.js → core-WGFYLLRK.js} +20 -2
  33. package/bundle/{devtoolsService-LPEBYJVD.js → devtoolsService-HNKMOA2D.js} +3 -3
  34. package/bundle/{devtoolsService-S2LBUUZU.js → devtoolsService-PQ7YMVWH.js} +3 -3
  35. package/bundle/{devtoolsService-YCRNWWXE.js → devtoolsService-RNGSRQOZ.js} +3 -3
  36. package/bundle/{devtoolsService-JWET4G6G.js → devtoolsService-Z2MCWSBF.js} +3 -3
  37. package/bundle/{dist-ANTOB3YW.js → dist-D34AS2GG.js} +20 -2
  38. package/bundle/{dist-RIVCP5ZD.js → dist-F2OAYYD2.js} +20 -2
  39. package/bundle/{dist-UH565MTG.js → dist-Q5VBZUT5.js} +20 -2
  40. package/bundle/docs/changelogs/index.md +18 -0
  41. package/bundle/docs/changelogs/latest.md +243 -255
  42. package/bundle/docs/cli/settings.md +19 -13
  43. package/bundle/docs/reference/configuration.md +71 -0
  44. package/bundle/docs/reference/keyboard-shortcuts.md +1 -0
  45. package/bundle/{gemini-JAZVYRDD.js → gemini-BS6JGNC2.js} +24 -179
  46. package/bundle/{gemini-27FQ5BI4.js → gemini-CXXHYL4F.js} +24 -179
  47. package/bundle/{gemini-57EC2ZF7.js → gemini-MWN6XEN7.js} +24 -179
  48. package/bundle/{gemini-TQZRS37Q.js → gemini-R6JM2CNM.js} +24 -179
  49. package/bundle/gemini.js +3 -3
  50. package/bundle/{interactiveCli-L3EK4XEX.js → interactiveCli-ACDBXCG6.js} +1640 -1041
  51. package/bundle/{interactiveCli-MVHR4VV7.js → interactiveCli-FT2L7RG2.js} +1640 -1041
  52. package/bundle/{interactiveCli-E35R6QQC.js → interactiveCli-IRAPLA3H.js} +1640 -1041
  53. package/bundle/{interactiveCli-FPHSBRV3.js → interactiveCli-QIIVZL7W.js} +1640 -1041
  54. package/bundle/{liteRtServerManager-LXEAYAUP.js → liteRtServerManager-2CTTNDIB.js} +4 -4
  55. package/bundle/{liteRtServerManager-ORSW3R4F.js → liteRtServerManager-2LYBQPVS.js} +4 -4
  56. package/bundle/{liteRtServerManager-PI4ZNFB5.js → liteRtServerManager-4DF3SCTA.js} +4 -4
  57. package/bundle/{liteRtServerManager-YYXO5Q3I.js → liteRtServerManager-IU3WCNE6.js} +4 -4
  58. package/bundle/{memoryDiscovery-CZURD35O.js → memoryDiscovery-FPAA4X4J.js} +1 -1
  59. package/bundle/{memoryDiscovery-GZLXKRGB.js → memoryDiscovery-NSOLCG4U.js} +1 -1
  60. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  61. package/bundle/{oauth2-provider-B3NTBNAM.js → oauth2-provider-6TVMKDRI.js} +2 -2
  62. package/bundle/{oauth2-provider-ENF2D4Q7.js → oauth2-provider-HNCA53KG.js} +2 -2
  63. package/bundle/{oauth2-provider-I3G773GE.js → oauth2-provider-V267DDF5.js} +2 -2
  64. package/bundle/{oauth2-provider-WTF7AHQ2.js → oauth2-provider-ZU6AP7MT.js} +2 -2
  65. package/bundle/{start-CRIFZ3SW.js → start-CZ5EM6AM.js} +6 -6
  66. package/bundle/{start-KVFKS3IT.js → start-GOO2DWTA.js} +6 -6
  67. package/bundle/{start-OTLGMCNH.js → start-OVFDMBOO.js} +6 -6
  68. package/bundle/{start-S3REI3X2.js → start-P6Q5N7CP.js} +6 -6
  69. package/package.json +1 -1
@@ -161,19 +161,25 @@ they appear in the UI.
161
161
 
162
162
  ### Experimental
163
163
 
164
- | UI Label | Setting | Description | Default |
165
- | ---------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
166
- | Enable Git Worktrees | `experimental.worktrees` | Enable automated Git worktree management for parallel work. | `false` |
167
- | Use OSC 52 Paste | `experimental.useOSC52Paste` | Use OSC 52 for pasting. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` |
168
- | Use OSC 52 Copy | `experimental.useOSC52Copy` | Use OSC 52 for copying. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` |
169
- | Model Steering | `experimental.modelSteering` | Enable model steering (user hints) to guide the model during tool execution. | `false` |
170
- | Direct Web Fetch | `experimental.directWebFetch` | Enable web fetch behavior that bypasses LLM summarization. | `false` |
171
- | Enable Gemma Model Router | `experimental.gemmaModelRouter.enabled` | Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim. | `false` |
172
- | Auto-start LiteRT Server | `experimental.gemmaModelRouter.autoStartServer` | Automatically start the LiteRT-LM server when Gemini CLI starts and the Gemma router is enabled. | `false` |
173
- | Memory v2 | `experimental.memoryV2` | Disable the built-in save_memory tool and let the main agent persist project context by editing markdown files directly with edit/write_file. Route facts across four tiers: team-shared conventions go to project GEMINI.md files, project-specific personal notes go to the per-project private memory folder (MEMORY.md as index + sibling .md files for detail), and cross-project personal preferences go to the global ~/.gemini/GEMINI.md (the only file under ~/.gemini/ that the agent can edit — settings, credentials, etc. remain off-limits). Set to false to fall back to the legacy save_memory tool. | `true` |
174
- | Auto Memory | `experimental.autoMemory` | Automatically extract reusable skills from past sessions in the background. Review results with /memory inbox. | `false` |
175
- | Use the generalist profile to manage agent contexts. | `experimental.generalistProfile` | Suitable for general coding and software development tasks. | `false` |
176
- | Enable Context Management | `experimental.contextManagement` | Enable logic for context management. | `false` |
164
+ | UI Label | Setting | Description | Default |
165
+ | ---------------------------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
166
+ | Gemma Models | `experimental.gemma` | Enable access to Gemma 4 models (experimental). | `false` |
167
+ | Voice Mode | `experimental.voiceMode` | Enable experimental voice dictation and commands (/voice, /voice model). | `false` |
168
+ | Voice Activation Mode | `experimental.voice.activationMode` | How to trigger voice recording with the Space key. | `"push-to-talk"` |
169
+ | Voice Transcription Backend | `experimental.voice.backend` | The backend to use for voice transcription. | `"gemini-live"` |
170
+ | Whisper Model | `experimental.voice.whisperModel` | The Whisper model to use for local transcription. | `"ggml-base.en.bin"` |
171
+ | Voice Stop Grace Period (ms) | `experimental.voice.stopGracePeriodMs` | How long to wait for final transcription after stopping recording. | `1000` |
172
+ | Enable Git Worktrees | `experimental.worktrees` | Enable automated Git worktree management for parallel work. | `false` |
173
+ | Use OSC 52 Paste | `experimental.useOSC52Paste` | Use OSC 52 for pasting. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` |
174
+ | Use OSC 52 Copy | `experimental.useOSC52Copy` | Use OSC 52 for copying. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it). | `false` |
175
+ | Model Steering | `experimental.modelSteering` | Enable model steering (user hints) to guide the model during tool execution. | `false` |
176
+ | Direct Web Fetch | `experimental.directWebFetch` | Enable web fetch behavior that bypasses LLM summarization. | `false` |
177
+ | Enable Gemma Model Router | `experimental.gemmaModelRouter.enabled` | Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim. | `false` |
178
+ | Auto-start LiteRT Server | `experimental.gemmaModelRouter.autoStartServer` | Automatically start the LiteRT-LM server when Gemini CLI starts and the Gemma router is enabled. | `false` |
179
+ | Memory v2 | `experimental.memoryV2` | Disable the built-in save_memory tool and let the main agent persist project context by editing markdown files directly with edit/write_file. Route facts across four tiers: team-shared conventions go to project GEMINI.md files, project-specific personal notes go to the per-project private memory folder (MEMORY.md as index + sibling .md files for detail), and cross-project personal preferences go to the global ~/.gemini/GEMINI.md (the only file under ~/.gemini/ that the agent can edit — settings, credentials, etc. remain off-limits). Set to false to fall back to the legacy save_memory tool. | `true` |
180
+ | Auto Memory | `experimental.autoMemory` | Automatically extract reusable skills from past sessions in the background. Review results with /memory inbox. | `false` |
181
+ | Use the generalist profile to manage agent contexts. | `experimental.generalistProfile` | Suitable for general coding and software development tasks. | `false` |
182
+ | Enable Context Management | `experimental.contextManagement` | Enable logic for context management. | `false` |
177
183
 
178
184
  ### Skills
179
185
 
@@ -563,6 +563,18 @@ their corresponding top-level category object in your `settings.json` file.
563
563
  "model": "gemini-2.5-flash-lite"
564
564
  }
565
565
  },
566
+ "gemma-4-31b-it": {
567
+ "extends": "chat-base-3",
568
+ "modelConfig": {
569
+ "model": "gemma-4-31b-it"
570
+ }
571
+ },
572
+ "gemma-4-26b-a4b-it": {
573
+ "extends": "chat-base-3",
574
+ "modelConfig": {
575
+ "model": "gemma-4-26b-a4b-it"
576
+ }
577
+ },
566
578
  "gemini-2.5-flash-base": {
567
579
  "extends": "base",
568
580
  "modelConfig": {
@@ -834,6 +846,28 @@ their corresponding top-level category object in your `settings.json` file.
834
846
  "multimodalToolUse": false
835
847
  }
836
848
  },
849
+ "gemma-4-31b-it": {
850
+ "displayName": "gemma-4-31b-it",
851
+ "tier": "custom",
852
+ "family": "gemma-4",
853
+ "isPreview": false,
854
+ "isVisible": true,
855
+ "features": {
856
+ "thinking": true,
857
+ "multimodalToolUse": false
858
+ }
859
+ },
860
+ "gemma-4-26b-a4b-it": {
861
+ "displayName": "gemma-4-26b-a4b-it",
862
+ "tier": "custom",
863
+ "family": "gemma-4",
864
+ "isPreview": false,
865
+ "isVisible": true,
866
+ "features": {
867
+ "thinking": true,
868
+ "multimodalToolUse": false
869
+ }
870
+ },
837
871
  "auto": {
838
872
  "tier": "auto",
839
873
  "isPreview": true,
@@ -904,6 +938,12 @@ their corresponding top-level category object in your `settings.json` file.
904
938
 
905
939
  ```json
906
940
  {
941
+ "gemma-4-31b-it": {
942
+ "default": "gemma-4-31b-it"
943
+ },
944
+ "gemma-4-26b-a4b-it": {
945
+ "default": "gemma-4-26b-a4b-it"
946
+ },
907
947
  "gemini-3.1-pro-preview": {
908
948
  "default": "gemini-3.1-pro-preview",
909
949
  "contexts": [
@@ -1646,6 +1686,37 @@ their corresponding top-level category object in your `settings.json` file.
1646
1686
 
1647
1687
  #### `experimental`
1648
1688
 
1689
+ - **`experimental.gemma`** (boolean):
1690
+ - **Description:** Enable access to Gemma 4 models (experimental).
1691
+ - **Default:** `false`
1692
+ - **Requires restart:** Yes
1693
+
1694
+ - **`experimental.voiceMode`** (boolean):
1695
+ - **Description:** Enable experimental voice dictation and commands (/voice,
1696
+ /voice model).
1697
+ - **Default:** `false`
1698
+
1699
+ - **`experimental.voice.activationMode`** (enum):
1700
+ - **Description:** How to trigger voice recording with the Space key.
1701
+ - **Default:** `"push-to-talk"`
1702
+ - **Values:** `"push-to-talk"`, `"toggle"`
1703
+
1704
+ - **`experimental.voice.backend`** (enum):
1705
+ - **Description:** The backend to use for voice transcription.
1706
+ - **Default:** `"gemini-live"`
1707
+ - **Values:** `"gemini-live"`, `"whisper"`
1708
+
1709
+ - **`experimental.voice.whisperModel`** (enum):
1710
+ - **Description:** The Whisper model to use for local transcription.
1711
+ - **Default:** `"ggml-base.en.bin"`
1712
+ - **Values:** `"ggml-tiny.en.bin"`, `"ggml-base.en.bin"`,
1713
+ `"ggml-large-v3-turbo-q5_0.bin"`, `"ggml-large-v3-turbo-q8_0.bin"`
1714
+
1715
+ - **`experimental.voice.stopGracePeriodMs`** (number):
1716
+ - **Description:** How long to wait for final transcription after stopping
1717
+ recording.
1718
+ - **Default:** `1000`
1719
+
1649
1720
  - **`experimental.adk.agentSessionNoninteractiveEnabled`** (boolean):
1650
1721
  - **Description:** Enable non-interactive agent sessions.
1651
1722
  - **Default:** `false`
@@ -115,6 +115,7 @@ available combinations.
115
115
  | `app.restart` | Restart the application. | `R`<br />`Shift+R` |
116
116
  | `app.suspend` | Suspend the CLI and move it to the background. | `Ctrl+Z` |
117
117
  | `app.showShellUnfocusWarning` | Show warning when trying to move focus away from shell input. | `Tab` |
118
+ | `app.voiceModePTT` | Hold to speak in Voice Mode. | `Space` |
118
119
 
119
120
  #### Background Shell Controls
120
121
 
@@ -43,18 +43,18 @@ import {
43
43
  updateAllUpdatableExtensions,
44
44
  updateExtension,
45
45
  validateAuthMethod
46
- } from "./chunk-H7F2VOIJ.js";
46
+ } from "./chunk-EBIQLUW4.js";
47
47
  import {
48
48
  appEvents
49
49
  } from "./chunk-5PS3AYFU.js";
50
50
  import {
51
51
  startCommand,
52
52
  startServer
53
- } from "./chunk-63PTTRTA.js";
53
+ } from "./chunk-EDS2U2K6.js";
54
54
  import {
55
55
  exitCli,
56
56
  require_source
57
- } from "./chunk-VQ7N6NVX.js";
57
+ } from "./chunk-DXV2GNZK.js";
58
58
  import {
59
59
  DEFAULT_PORT,
60
60
  GEMMA_MODEL_NAME,
@@ -88,7 +88,7 @@ import {
88
88
  readServerProcessInfo,
89
89
  resolveGemmaConfig,
90
90
  saveModelChange
91
- } from "./chunk-M76FWZ5L.js";
91
+ } from "./chunk-AN7B4FAU.js";
92
92
  import {
93
93
  cleanupCheckpoints,
94
94
  registerCleanup,
@@ -97,7 +97,7 @@ import {
97
97
  runExitCleanup,
98
98
  runSyncCleanup,
99
99
  setupSignalHandlers
100
- } from "./chunk-PRZIW6SM.js";
100
+ } from "./chunk-QP7T3P6C.js";
101
101
  import {
102
102
  AuthType,
103
103
  ChatRecordingService,
@@ -173,6 +173,7 @@ import {
173
173
  promptIdContext,
174
174
  recordToolCallInteractions,
175
175
  refreshMemory,
176
+ require_command_exists,
176
177
  require_shell_quote,
177
178
  require_strip_json_comments,
178
179
  resolveTelemetrySettings,
@@ -184,7 +185,7 @@ import {
184
185
  updatePolicy,
185
186
  writeToStderr,
186
187
  writeToStdout
187
- } from "./chunk-KG7ZFMJL.js";
188
+ } from "./chunk-MAZR7GNG.js";
188
189
  import {
189
190
  ASK_USER_TOOL_NAME,
190
191
  DEFAULT_FILE_FILTERING_OPTIONS,
@@ -228,171 +229,15 @@ import {
228
229
  loadServerHierarchicalMemory,
229
230
  resolveToRealPath,
230
231
  setGeminiMdFilename
231
- } from "./chunk-UHHRGNIO.js";
232
+ } from "./chunk-MTD736U4.js";
232
233
  import "./chunk-664ZODQF.js";
233
234
  import "./chunk-RJTRUG2J.js";
234
235
  import "./chunk-IUUIT4SU.js";
235
236
  import {
236
- __commonJS,
237
237
  __require,
238
238
  __toESM
239
239
  } from "./chunk-34MYV7JD.js";
240
240
 
241
- // node_modules/command-exists/lib/command-exists.js
242
- var require_command_exists = __commonJS({
243
- "node_modules/command-exists/lib/command-exists.js"(exports, module) {
244
- "use strict";
245
- var exec2 = __require("child_process").exec;
246
- var execSync2 = __require("child_process").execSync;
247
- var fs14 = __require("fs");
248
- var path15 = __require("path");
249
- var access2 = fs14.access;
250
- var accessSync = fs14.accessSync;
251
- var constants = fs14.constants || fs14;
252
- var isUsingWindows = process.platform == "win32";
253
- var fileNotExists = function(commandName, callback) {
254
- access2(
255
- commandName,
256
- constants.F_OK,
257
- function(err) {
258
- callback(!err);
259
- }
260
- );
261
- };
262
- var fileNotExistsSync = function(commandName) {
263
- try {
264
- accessSync(commandName, constants.F_OK);
265
- return false;
266
- } catch (e) {
267
- return true;
268
- }
269
- };
270
- var localExecutable = function(commandName, callback) {
271
- access2(
272
- commandName,
273
- constants.F_OK | constants.X_OK,
274
- function(err) {
275
- callback(null, !err);
276
- }
277
- );
278
- };
279
- var localExecutableSync = function(commandName) {
280
- try {
281
- accessSync(commandName, constants.F_OK | constants.X_OK);
282
- return true;
283
- } catch (e) {
284
- return false;
285
- }
286
- };
287
- var commandExistsUnix = function(commandName, cleanedCommandName, callback) {
288
- fileNotExists(commandName, function(isFile) {
289
- if (!isFile) {
290
- var child = exec2(
291
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }",
292
- function(error, stdout, stderr) {
293
- callback(null, !!stdout);
294
- }
295
- );
296
- return;
297
- }
298
- localExecutable(commandName, callback);
299
- });
300
- };
301
- var commandExistsWindows = function(commandName, cleanedCommandName, callback) {
302
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
303
- callback(null, false);
304
- return;
305
- }
306
- var child = exec2(
307
- "where " + cleanedCommandName,
308
- function(error) {
309
- if (error !== null) {
310
- callback(null, false);
311
- } else {
312
- callback(null, true);
313
- }
314
- }
315
- );
316
- };
317
- var commandExistsUnixSync = function(commandName, cleanedCommandName) {
318
- if (fileNotExistsSync(commandName)) {
319
- try {
320
- var stdout = execSync2(
321
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }"
322
- );
323
- return !!stdout;
324
- } catch (error) {
325
- return false;
326
- }
327
- }
328
- return localExecutableSync(commandName);
329
- };
330
- var commandExistsWindowsSync = function(commandName, cleanedCommandName, callback) {
331
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
332
- return false;
333
- }
334
- try {
335
- var stdout = execSync2("where " + cleanedCommandName, { stdio: [] });
336
- return !!stdout;
337
- } catch (error) {
338
- return false;
339
- }
340
- };
341
- var cleanInput = function(s) {
342
- if (/[^A-Za-z0-9_\/:=-]/.test(s)) {
343
- s = "'" + s.replace(/'/g, "'\\''") + "'";
344
- s = s.replace(/^(?:'')+/g, "").replace(/\\'''/g, "\\'");
345
- }
346
- return s;
347
- };
348
- if (isUsingWindows) {
349
- cleanInput = function(s) {
350
- var isPathName = /[\\]/.test(s);
351
- if (isPathName) {
352
- var dirname4 = '"' + path15.dirname(s) + '"';
353
- var basename4 = '"' + path15.basename(s) + '"';
354
- return dirname4 + ":" + basename4;
355
- }
356
- return '"' + s + '"';
357
- };
358
- }
359
- module.exports = function commandExists2(commandName, callback) {
360
- var cleanedCommandName = cleanInput(commandName);
361
- if (!callback && typeof Promise !== "undefined") {
362
- return new Promise(function(resolve9, reject) {
363
- commandExists2(commandName, function(error, output) {
364
- if (output) {
365
- resolve9(commandName);
366
- } else {
367
- reject(error);
368
- }
369
- });
370
- });
371
- }
372
- if (isUsingWindows) {
373
- commandExistsWindows(commandName, cleanedCommandName, callback);
374
- } else {
375
- commandExistsUnix(commandName, cleanedCommandName, callback);
376
- }
377
- };
378
- module.exports.sync = function(commandName) {
379
- var cleanedCommandName = cleanInput(commandName);
380
- if (isUsingWindows) {
381
- return commandExistsWindowsSync(commandName, cleanedCommandName);
382
- } else {
383
- return commandExistsUnixSync(commandName, cleanedCommandName);
384
- }
385
- };
386
- }
387
- });
388
-
389
- // node_modules/command-exists/index.js
390
- var require_command_exists2 = __commonJS({
391
- "node_modules/command-exists/index.js"(exports, module) {
392
- module.exports = require_command_exists();
393
- }
394
- });
395
-
396
241
  // node_modules/yargs/lib/platform-shims/esm.mjs
397
242
  import { notStrictEqual, strictEqual } from "assert";
398
243
 
@@ -7863,7 +7708,7 @@ var gemmaCommand = {
7863
7708
  };
7864
7709
 
7865
7710
  // packages/cli/src/config/sandboxConfig.ts
7866
- var import_command_exists = __toESM(require_command_exists2(), 1);
7711
+ var import_command_exists = __toESM(require_command_exists(), 1);
7867
7712
  import * as os from "node:os";
7868
7713
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7869
7714
  import path5 from "node:path";
@@ -7954,7 +7799,7 @@ async function loadSandboxConfig(settings, argv) {
7954
7799
  }
7955
7800
  const command2 = getSandboxCommand(sandboxValue);
7956
7801
  const packageJson = await getPackageJson(__dirname3);
7957
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.40.0-preview.3" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7802
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.41.0-nightly.20260423.gaa05b4583" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7958
7803
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7959
7804
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7960
7805
  }
@@ -8669,6 +8514,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8669
8514
  enableExtensionReloading: settings.experimental?.extensionReloading,
8670
8515
  enableAgents: settings.experimental?.enableAgents,
8671
8516
  plan: settings.general?.plan?.enabled ?? true,
8517
+ voiceMode: settings.experimental?.voiceMode,
8672
8518
  tracker: settings.experimental?.taskTracker,
8673
8519
  directWebFetch: settings.experimental?.directWebFetch,
8674
8520
  planSettings: settings.general?.plan?.directory ? settings.general.plan : extensionPlanSettings ?? settings.general?.plan,
@@ -8678,6 +8524,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8678
8524
  experimentalJitContext,
8679
8525
  experimentalMemoryV2: settings.experimental?.memoryV2,
8680
8526
  experimentalAutoMemory: settings.experimental?.autoMemory,
8527
+ experimentalGemma: settings.experimental?.gemma,
8681
8528
  contextManagement,
8682
8529
  modelSteering: settings.experimental?.modelSteering,
8683
8530
  topicUpdateNarration: settings.general?.topicUpdateNarration ?? settings.experimental?.topicUpdateNarration,
@@ -10008,6 +9855,8 @@ function createNonInteractiveUI() {
10008
9855
  toggleBackgroundTasks: () => {
10009
9856
  },
10010
9857
  toggleShortcutsHelp: () => {
9858
+ },
9859
+ toggleVoiceMode: () => {
10011
9860
  }
10012
9861
  };
10013
9862
  }
@@ -10295,7 +10144,7 @@ async function runNonInteractive({
10295
10144
  }
10296
10145
  });
10297
10146
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10298
- const { setupInitialActivityLogger } = await import("./devtoolsService-JWET4G6G.js");
10147
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Z2MCWSBF.js");
10299
10148
  setupInitialActivityLogger(config);
10300
10149
  }
10301
10150
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10746,7 +10595,7 @@ async function runNonInteractive2(params) {
10746
10595
  }
10747
10596
  });
10748
10597
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10749
- const { setupInitialActivityLogger } = await import("./devtoolsService-JWET4G6G.js");
10598
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Z2MCWSBF.js");
10750
10599
  setupInitialActivityLogger(config);
10751
10600
  }
10752
10601
  const { stdout: workingStdout } = createWorkingStdio();
@@ -15595,7 +15444,7 @@ async function resolveSessionId(resumeArg) {
15595
15444
  }
15596
15445
  }
15597
15446
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15598
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-E35R6QQC.js");
15447
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-IRAPLA3H.js");
15599
15448
  await doStartUI(
15600
15449
  config,
15601
15450
  settings,
@@ -15682,8 +15531,8 @@ async function main() {
15682
15531
  }
15683
15532
  const isDebugMode2 = isDebugMode(argv);
15684
15533
  const consolePatcher = new ConsolePatcher({
15685
- stderr: true,
15686
- interactive: isHeadlessMode() ? false : true,
15534
+ stderr: argv.isCommand ? false : true,
15535
+ interactive: isHeadlessMode() && !argv.isCommand ? false : true,
15687
15536
  debugMode: isDebugMode2,
15688
15537
  onNewMessage: (msg) => {
15689
15538
  coreEvents.emitConsoleLog(msg.type, msg.content);
@@ -15797,7 +15646,7 @@ ${finalArgs[promptIndex + 1]}`;
15797
15646
  await config.storage.initialize();
15798
15647
  adminControlsListner.setConfig(config);
15799
15648
  if (config.isInteractive() && settings.merged.general.devtools) {
15800
- const { setupInitialActivityLogger } = await import("./devtoolsService-JWET4G6G.js");
15649
+ const { setupInitialActivityLogger } = await import("./devtoolsService-Z2MCWSBF.js");
15801
15650
  setupInitialActivityLogger(config);
15802
15651
  }
15803
15652
  registerTelemetryConfig(config);
@@ -15853,7 +15702,7 @@ ${finalArgs[promptIndex + 1]}`;
15853
15702
  const initAppHandle = startupProfiler.start("initialize_app");
15854
15703
  const initializationResult = await initializeApp(config, settings);
15855
15704
  initAppHandle?.end();
15856
- import("./liteRtServerManager-LXEAYAUP.js").then(({ LiteRtServerManager }) => {
15705
+ import("./liteRtServerManager-2LYBQPVS.js").then(({ LiteRtServerManager }) => {
15857
15706
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
15858
15707
  if (!mergedGemma) return;
15859
15708
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -15984,19 +15833,15 @@ function initializeOutputListenersAndFlush() {
15984
15833
  if (coreEvents.listenerCount("console-log" /* ConsoleLog */) === 0) {
15985
15834
  coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
15986
15835
  if (payload.type === "error" || payload.type === "warn") {
15987
- writeToStderr(payload.content);
15836
+ writeToStderr(payload.content + "\n");
15988
15837
  } else {
15989
- writeToStdout(payload.content);
15838
+ writeToStderr(payload.content + "\n");
15990
15839
  }
15991
15840
  });
15992
15841
  }
15993
15842
  if (coreEvents.listenerCount("user-feedback" /* UserFeedback */) === 0) {
15994
15843
  coreEvents.on("user-feedback" /* UserFeedback */, (payload) => {
15995
- if (payload.severity === "error" || payload.severity === "warning") {
15996
- writeToStderr(payload.message);
15997
- } else {
15998
- writeToStdout(payload.message);
15999
- }
15844
+ writeToStderr(payload.message + "\n");
16000
15845
  });
16001
15846
  }
16002
15847
  }