@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
@@ -43,18 +43,18 @@ import {
43
43
  updateAllUpdatableExtensions,
44
44
  updateExtension,
45
45
  validateAuthMethod
46
- } from "./chunk-HF7X35D3.js";
46
+ } from "./chunk-NVZUCT4Q.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-LMVZLINC.js";
53
+ } from "./chunk-JBPYZI4D.js";
54
54
  import {
55
55
  exitCli,
56
56
  require_source
57
- } from "./chunk-G356GKHH.js";
57
+ } from "./chunk-QAPWMN3Q.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-CJQVVQSH.js";
91
+ } from "./chunk-MWLCQDAR.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-BV2W6YE6.js";
100
+ } from "./chunk-AAGEU3BL.js";
101
101
  import {
102
102
  AuthType,
103
103
  ChatRecordingService,
@@ -185,6 +185,7 @@ import {
185
185
  promptIdContext,
186
186
  recordToolCallInteractions,
187
187
  refreshMemory,
188
+ require_command_exists,
188
189
  require_shell_quote,
189
190
  require_strip_json_comments,
190
191
  resolveTelemetrySettings,
@@ -196,7 +197,7 @@ import {
196
197
  updatePolicy,
197
198
  writeToStderr,
198
199
  writeToStdout
199
- } from "./chunk-NV6UCR4K.js";
200
+ } from "./chunk-QU37OIJC.js";
200
201
  import {
201
202
  ASK_USER_TOOL_NAME,
202
203
  ApprovalMode,
@@ -244,171 +245,15 @@ import {
244
245
  loadServerHierarchicalMemory,
245
246
  resolveToRealPath,
246
247
  setGeminiMdFilename
247
- } from "./chunk-F73F75XM.js";
248
+ } from "./chunk-6YXSPC34.js";
248
249
  import "./chunk-664ZODQF.js";
249
250
  import "./chunk-RJTRUG2J.js";
250
251
  import "./chunk-IUUIT4SU.js";
251
252
  import {
252
- __commonJS,
253
253
  __require,
254
254
  __toESM
255
255
  } from "./chunk-34MYV7JD.js";
256
256
 
257
- // node_modules/command-exists/lib/command-exists.js
258
- var require_command_exists = __commonJS({
259
- "node_modules/command-exists/lib/command-exists.js"(exports, module) {
260
- "use strict";
261
- var exec2 = __require("child_process").exec;
262
- var execSync2 = __require("child_process").execSync;
263
- var fs14 = __require("fs");
264
- var path15 = __require("path");
265
- var access2 = fs14.access;
266
- var accessSync = fs14.accessSync;
267
- var constants = fs14.constants || fs14;
268
- var isUsingWindows = process.platform == "win32";
269
- var fileNotExists = function(commandName, callback) {
270
- access2(
271
- commandName,
272
- constants.F_OK,
273
- function(err) {
274
- callback(!err);
275
- }
276
- );
277
- };
278
- var fileNotExistsSync = function(commandName) {
279
- try {
280
- accessSync(commandName, constants.F_OK);
281
- return false;
282
- } catch (e) {
283
- return true;
284
- }
285
- };
286
- var localExecutable = function(commandName, callback) {
287
- access2(
288
- commandName,
289
- constants.F_OK | constants.X_OK,
290
- function(err) {
291
- callback(null, !err);
292
- }
293
- );
294
- };
295
- var localExecutableSync = function(commandName) {
296
- try {
297
- accessSync(commandName, constants.F_OK | constants.X_OK);
298
- return true;
299
- } catch (e) {
300
- return false;
301
- }
302
- };
303
- var commandExistsUnix = function(commandName, cleanedCommandName, callback) {
304
- fileNotExists(commandName, function(isFile) {
305
- if (!isFile) {
306
- var child = exec2(
307
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }",
308
- function(error, stdout, stderr) {
309
- callback(null, !!stdout);
310
- }
311
- );
312
- return;
313
- }
314
- localExecutable(commandName, callback);
315
- });
316
- };
317
- var commandExistsWindows = function(commandName, cleanedCommandName, callback) {
318
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
319
- callback(null, false);
320
- return;
321
- }
322
- var child = exec2(
323
- "where " + cleanedCommandName,
324
- function(error) {
325
- if (error !== null) {
326
- callback(null, false);
327
- } else {
328
- callback(null, true);
329
- }
330
- }
331
- );
332
- };
333
- var commandExistsUnixSync = function(commandName, cleanedCommandName) {
334
- if (fileNotExistsSync(commandName)) {
335
- try {
336
- var stdout = execSync2(
337
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }"
338
- );
339
- return !!stdout;
340
- } catch (error) {
341
- return false;
342
- }
343
- }
344
- return localExecutableSync(commandName);
345
- };
346
- var commandExistsWindowsSync = function(commandName, cleanedCommandName, callback) {
347
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
348
- return false;
349
- }
350
- try {
351
- var stdout = execSync2("where " + cleanedCommandName, { stdio: [] });
352
- return !!stdout;
353
- } catch (error) {
354
- return false;
355
- }
356
- };
357
- var cleanInput = function(s) {
358
- if (/[^A-Za-z0-9_\/:=-]/.test(s)) {
359
- s = "'" + s.replace(/'/g, "'\\''") + "'";
360
- s = s.replace(/^(?:'')+/g, "").replace(/\\'''/g, "\\'");
361
- }
362
- return s;
363
- };
364
- if (isUsingWindows) {
365
- cleanInput = function(s) {
366
- var isPathName = /[\\]/.test(s);
367
- if (isPathName) {
368
- var dirname4 = '"' + path15.dirname(s) + '"';
369
- var basename4 = '"' + path15.basename(s) + '"';
370
- return dirname4 + ":" + basename4;
371
- }
372
- return '"' + s + '"';
373
- };
374
- }
375
- module.exports = function commandExists2(commandName, callback) {
376
- var cleanedCommandName = cleanInput(commandName);
377
- if (!callback && typeof Promise !== "undefined") {
378
- return new Promise(function(resolve9, reject) {
379
- commandExists2(commandName, function(error, output) {
380
- if (output) {
381
- resolve9(commandName);
382
- } else {
383
- reject(error);
384
- }
385
- });
386
- });
387
- }
388
- if (isUsingWindows) {
389
- commandExistsWindows(commandName, cleanedCommandName, callback);
390
- } else {
391
- commandExistsUnix(commandName, cleanedCommandName, callback);
392
- }
393
- };
394
- module.exports.sync = function(commandName) {
395
- var cleanedCommandName = cleanInput(commandName);
396
- if (isUsingWindows) {
397
- return commandExistsWindowsSync(commandName, cleanedCommandName);
398
- } else {
399
- return commandExistsUnixSync(commandName, cleanedCommandName);
400
- }
401
- };
402
- }
403
- });
404
-
405
- // node_modules/command-exists/index.js
406
- var require_command_exists2 = __commonJS({
407
- "node_modules/command-exists/index.js"(exports, module) {
408
- module.exports = require_command_exists();
409
- }
410
- });
411
-
412
257
  // node_modules/yargs/lib/platform-shims/esm.mjs
413
258
  import { notStrictEqual, strictEqual } from "assert";
414
259
 
@@ -7879,7 +7724,7 @@ var gemmaCommand = {
7879
7724
  };
7880
7725
 
7881
7726
  // packages/cli/src/config/sandboxConfig.ts
7882
- var import_command_exists = __toESM(require_command_exists2(), 1);
7727
+ var import_command_exists = __toESM(require_command_exists(), 1);
7883
7728
  import * as os from "node:os";
7884
7729
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7885
7730
  import path5 from "node:path";
@@ -7970,7 +7815,7 @@ async function loadSandboxConfig(settings, argv) {
7970
7815
  }
7971
7816
  const command2 = getSandboxCommand(sandboxValue);
7972
7817
  const packageJson = await getPackageJson(__dirname3);
7973
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.40.0-preview.4" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7818
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.41.0-nightly.20260427.g42587de73" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7974
7819
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7975
7820
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7976
7821
  }
@@ -8685,6 +8530,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8685
8530
  enableExtensionReloading: settings.experimental?.extensionReloading,
8686
8531
  enableAgents: settings.experimental?.enableAgents,
8687
8532
  plan: settings.general?.plan?.enabled ?? true,
8533
+ voiceMode: settings.experimental?.voiceMode,
8688
8534
  tracker: settings.experimental?.taskTracker,
8689
8535
  directWebFetch: settings.experimental?.directWebFetch,
8690
8536
  planSettings: settings.general?.plan?.directory ? settings.general.plan : extensionPlanSettings ?? settings.general?.plan,
@@ -8694,6 +8540,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8694
8540
  experimentalJitContext,
8695
8541
  experimentalMemoryV2: settings.experimental?.memoryV2,
8696
8542
  experimentalAutoMemory: settings.experimental?.autoMemory,
8543
+ experimentalGemma: settings.experimental?.gemma,
8697
8544
  contextManagement,
8698
8545
  modelSteering: settings.experimental?.modelSteering,
8699
8546
  topicUpdateNarration: settings.general?.topicUpdateNarration ?? settings.experimental?.topicUpdateNarration,
@@ -10024,6 +9871,8 @@ function createNonInteractiveUI() {
10024
9871
  toggleBackgroundTasks: () => {
10025
9872
  },
10026
9873
  toggleShortcutsHelp: () => {
9874
+ },
9875
+ toggleVoiceMode: () => {
10027
9876
  }
10028
9877
  };
10029
9878
  }
@@ -10311,7 +10160,7 @@ async function runNonInteractive({
10311
10160
  }
10312
10161
  });
10313
10162
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10314
- const { setupInitialActivityLogger } = await import("./devtoolsService-S2LBUUZU.js");
10163
+ const { setupInitialActivityLogger } = await import("./devtoolsService-PQ7YMVWH.js");
10315
10164
  setupInitialActivityLogger(config);
10316
10165
  }
10317
10166
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10762,7 +10611,7 @@ async function runNonInteractive2(params) {
10762
10611
  }
10763
10612
  });
10764
10613
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10765
- const { setupInitialActivityLogger } = await import("./devtoolsService-S2LBUUZU.js");
10614
+ const { setupInitialActivityLogger } = await import("./devtoolsService-PQ7YMVWH.js");
10766
10615
  setupInitialActivityLogger(config);
10767
10616
  }
10768
10617
  const { stdout: workingStdout } = createWorkingStdio();
@@ -15611,7 +15460,7 @@ async function resolveSessionId(resumeArg) {
15611
15460
  }
15612
15461
  }
15613
15462
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15614
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-FPHSBRV3.js");
15463
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-ACDBXCG6.js");
15615
15464
  await doStartUI(
15616
15465
  config,
15617
15466
  settings,
@@ -15698,8 +15547,8 @@ async function main() {
15698
15547
  }
15699
15548
  const isDebugMode2 = isDebugMode(argv);
15700
15549
  const consolePatcher = new ConsolePatcher({
15701
- stderr: true,
15702
- interactive: isHeadlessMode() ? false : true,
15550
+ stderr: argv.isCommand ? false : true,
15551
+ interactive: isHeadlessMode() && !argv.isCommand ? false : true,
15703
15552
  debugMode: isDebugMode2,
15704
15553
  onNewMessage: (msg) => {
15705
15554
  coreEvents.emitConsoleLog(msg.type, msg.content);
@@ -15813,7 +15662,7 @@ ${finalArgs[promptIndex + 1]}`;
15813
15662
  await config.storage.initialize();
15814
15663
  adminControlsListner.setConfig(config);
15815
15664
  if (config.isInteractive() && settings.merged.general.devtools) {
15816
- const { setupInitialActivityLogger } = await import("./devtoolsService-S2LBUUZU.js");
15665
+ const { setupInitialActivityLogger } = await import("./devtoolsService-PQ7YMVWH.js");
15817
15666
  setupInitialActivityLogger(config);
15818
15667
  }
15819
15668
  registerTelemetryConfig(config);
@@ -15869,7 +15718,7 @@ ${finalArgs[promptIndex + 1]}`;
15869
15718
  const initAppHandle = startupProfiler.start("initialize_app");
15870
15719
  const initializationResult = await initializeApp(config, settings);
15871
15720
  initAppHandle?.end();
15872
- import("./liteRtServerManager-ORSW3R4F.js").then(({ LiteRtServerManager }) => {
15721
+ import("./liteRtServerManager-4DF3SCTA.js").then(({ LiteRtServerManager }) => {
15873
15722
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
15874
15723
  if (!mergedGemma) return;
15875
15724
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -16000,19 +15849,15 @@ function initializeOutputListenersAndFlush() {
16000
15849
  if (coreEvents.listenerCount(CoreEvent.ConsoleLog) === 0) {
16001
15850
  coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
16002
15851
  if (payload.type === "error" || payload.type === "warn") {
16003
- writeToStderr(payload.content);
15852
+ writeToStderr(payload.content + "\n");
16004
15853
  } else {
16005
- writeToStdout(payload.content);
15854
+ writeToStderr(payload.content + "\n");
16006
15855
  }
16007
15856
  });
16008
15857
  }
16009
15858
  if (coreEvents.listenerCount(CoreEvent.UserFeedback) === 0) {
16010
15859
  coreEvents.on(CoreEvent.UserFeedback, (payload) => {
16011
- if (payload.severity === "error" || payload.severity === "warning") {
16012
- writeToStderr(payload.message);
16013
- } else {
16014
- writeToStdout(payload.message);
16015
- }
15860
+ writeToStderr(payload.message + "\n");
16016
15861
  });
16017
15862
  }
16018
15863
  }
@@ -43,18 +43,18 @@ import {
43
43
  updateAllUpdatableExtensions,
44
44
  updateExtension,
45
45
  validateAuthMethod
46
- } from "./chunk-547AWTTH.js";
46
+ } from "./chunk-QYUVW7FS.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-ZQNX6OWU.js";
53
+ } from "./chunk-TIAUGLTD.js";
54
54
  import {
55
55
  exitCli,
56
56
  require_source
57
- } from "./chunk-HGFADN5A.js";
57
+ } from "./chunk-UXOWV6CJ.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-LODNDE3S.js";
91
+ } from "./chunk-DIGDAAM2.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-SYPUOR3U.js";
100
+ } from "./chunk-SEC46BJI.js";
101
101
  import {
102
102
  AuthType,
103
103
  ChatRecordingService,
@@ -185,6 +185,7 @@ import {
185
185
  promptIdContext,
186
186
  recordToolCallInteractions,
187
187
  refreshMemory,
188
+ require_command_exists,
188
189
  require_shell_quote,
189
190
  require_strip_json_comments,
190
191
  resolveTelemetrySettings,
@@ -196,7 +197,7 @@ import {
196
197
  updatePolicy,
197
198
  writeToStderr,
198
199
  writeToStdout
199
- } from "./chunk-RENFZ63F.js";
200
+ } from "./chunk-XCXC2RZD.js";
200
201
  import {
201
202
  ASK_USER_TOOL_NAME,
202
203
  ApprovalMode,
@@ -244,171 +245,15 @@ import {
244
245
  loadServerHierarchicalMemory,
245
246
  resolveToRealPath,
246
247
  setGeminiMdFilename
247
- } from "./chunk-F73F75XM.js";
248
+ } from "./chunk-6YXSPC34.js";
248
249
  import "./chunk-664ZODQF.js";
249
250
  import "./chunk-RJTRUG2J.js";
250
251
  import "./chunk-IUUIT4SU.js";
251
252
  import {
252
- __commonJS,
253
253
  __require,
254
254
  __toESM
255
255
  } from "./chunk-34MYV7JD.js";
256
256
 
257
- // node_modules/command-exists/lib/command-exists.js
258
- var require_command_exists = __commonJS({
259
- "node_modules/command-exists/lib/command-exists.js"(exports, module) {
260
- "use strict";
261
- var exec2 = __require("child_process").exec;
262
- var execSync2 = __require("child_process").execSync;
263
- var fs14 = __require("fs");
264
- var path15 = __require("path");
265
- var access2 = fs14.access;
266
- var accessSync = fs14.accessSync;
267
- var constants = fs14.constants || fs14;
268
- var isUsingWindows = process.platform == "win32";
269
- var fileNotExists = function(commandName, callback) {
270
- access2(
271
- commandName,
272
- constants.F_OK,
273
- function(err) {
274
- callback(!err);
275
- }
276
- );
277
- };
278
- var fileNotExistsSync = function(commandName) {
279
- try {
280
- accessSync(commandName, constants.F_OK);
281
- return false;
282
- } catch (e) {
283
- return true;
284
- }
285
- };
286
- var localExecutable = function(commandName, callback) {
287
- access2(
288
- commandName,
289
- constants.F_OK | constants.X_OK,
290
- function(err) {
291
- callback(null, !err);
292
- }
293
- );
294
- };
295
- var localExecutableSync = function(commandName) {
296
- try {
297
- accessSync(commandName, constants.F_OK | constants.X_OK);
298
- return true;
299
- } catch (e) {
300
- return false;
301
- }
302
- };
303
- var commandExistsUnix = function(commandName, cleanedCommandName, callback) {
304
- fileNotExists(commandName, function(isFile) {
305
- if (!isFile) {
306
- var child = exec2(
307
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }",
308
- function(error, stdout, stderr) {
309
- callback(null, !!stdout);
310
- }
311
- );
312
- return;
313
- }
314
- localExecutable(commandName, callback);
315
- });
316
- };
317
- var commandExistsWindows = function(commandName, cleanedCommandName, callback) {
318
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
319
- callback(null, false);
320
- return;
321
- }
322
- var child = exec2(
323
- "where " + cleanedCommandName,
324
- function(error) {
325
- if (error !== null) {
326
- callback(null, false);
327
- } else {
328
- callback(null, true);
329
- }
330
- }
331
- );
332
- };
333
- var commandExistsUnixSync = function(commandName, cleanedCommandName) {
334
- if (fileNotExistsSync(commandName)) {
335
- try {
336
- var stdout = execSync2(
337
- "command -v " + cleanedCommandName + " 2>/dev/null && { echo >&1 " + cleanedCommandName + "; exit 0; }"
338
- );
339
- return !!stdout;
340
- } catch (error) {
341
- return false;
342
- }
343
- }
344
- return localExecutableSync(commandName);
345
- };
346
- var commandExistsWindowsSync = function(commandName, cleanedCommandName, callback) {
347
- if (!/^(?!(?:.*\s|.*\.|\W+)$)(?:[a-zA-Z]:)?(?:(?:[^<>:"\|\?\*\n])+(?:\/\/|\/|\\\\|\\)?)+$/m.test(commandName)) {
348
- return false;
349
- }
350
- try {
351
- var stdout = execSync2("where " + cleanedCommandName, { stdio: [] });
352
- return !!stdout;
353
- } catch (error) {
354
- return false;
355
- }
356
- };
357
- var cleanInput = function(s) {
358
- if (/[^A-Za-z0-9_\/:=-]/.test(s)) {
359
- s = "'" + s.replace(/'/g, "'\\''") + "'";
360
- s = s.replace(/^(?:'')+/g, "").replace(/\\'''/g, "\\'");
361
- }
362
- return s;
363
- };
364
- if (isUsingWindows) {
365
- cleanInput = function(s) {
366
- var isPathName = /[\\]/.test(s);
367
- if (isPathName) {
368
- var dirname4 = '"' + path15.dirname(s) + '"';
369
- var basename4 = '"' + path15.basename(s) + '"';
370
- return dirname4 + ":" + basename4;
371
- }
372
- return '"' + s + '"';
373
- };
374
- }
375
- module.exports = function commandExists2(commandName, callback) {
376
- var cleanedCommandName = cleanInput(commandName);
377
- if (!callback && typeof Promise !== "undefined") {
378
- return new Promise(function(resolve9, reject) {
379
- commandExists2(commandName, function(error, output) {
380
- if (output) {
381
- resolve9(commandName);
382
- } else {
383
- reject(error);
384
- }
385
- });
386
- });
387
- }
388
- if (isUsingWindows) {
389
- commandExistsWindows(commandName, cleanedCommandName, callback);
390
- } else {
391
- commandExistsUnix(commandName, cleanedCommandName, callback);
392
- }
393
- };
394
- module.exports.sync = function(commandName) {
395
- var cleanedCommandName = cleanInput(commandName);
396
- if (isUsingWindows) {
397
- return commandExistsWindowsSync(commandName, cleanedCommandName);
398
- } else {
399
- return commandExistsUnixSync(commandName, cleanedCommandName);
400
- }
401
- };
402
- }
403
- });
404
-
405
- // node_modules/command-exists/index.js
406
- var require_command_exists2 = __commonJS({
407
- "node_modules/command-exists/index.js"(exports, module) {
408
- module.exports = require_command_exists();
409
- }
410
- });
411
-
412
257
  // node_modules/yargs/lib/platform-shims/esm.mjs
413
258
  import { notStrictEqual, strictEqual } from "assert";
414
259
 
@@ -7879,7 +7724,7 @@ var gemmaCommand = {
7879
7724
  };
7880
7725
 
7881
7726
  // packages/cli/src/config/sandboxConfig.ts
7882
- var import_command_exists = __toESM(require_command_exists2(), 1);
7727
+ var import_command_exists = __toESM(require_command_exists(), 1);
7883
7728
  import * as os from "node:os";
7884
7729
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7885
7730
  import path5 from "node:path";
@@ -7970,7 +7815,7 @@ async function loadSandboxConfig(settings, argv) {
7970
7815
  }
7971
7816
  const command2 = getSandboxCommand(sandboxValue);
7972
7817
  const packageJson = await getPackageJson(__dirname3);
7973
- 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;
7818
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.41.0-nightly.20260427.g42587de73" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7974
7819
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7975
7820
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7976
7821
  }
@@ -8685,6 +8530,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8685
8530
  enableExtensionReloading: settings.experimental?.extensionReloading,
8686
8531
  enableAgents: settings.experimental?.enableAgents,
8687
8532
  plan: settings.general?.plan?.enabled ?? true,
8533
+ voiceMode: settings.experimental?.voiceMode,
8688
8534
  tracker: settings.experimental?.taskTracker,
8689
8535
  directWebFetch: settings.experimental?.directWebFetch,
8690
8536
  planSettings: settings.general?.plan?.directory ? settings.general.plan : extensionPlanSettings ?? settings.general?.plan,
@@ -8694,6 +8540,7 @@ async function loadCliConfig(settings, sessionId, argv, options = {}) {
8694
8540
  experimentalJitContext,
8695
8541
  experimentalMemoryV2: settings.experimental?.memoryV2,
8696
8542
  experimentalAutoMemory: settings.experimental?.autoMemory,
8543
+ experimentalGemma: settings.experimental?.gemma,
8697
8544
  contextManagement,
8698
8545
  modelSteering: settings.experimental?.modelSteering,
8699
8546
  topicUpdateNarration: settings.general?.topicUpdateNarration ?? settings.experimental?.topicUpdateNarration,
@@ -10024,6 +9871,8 @@ function createNonInteractiveUI() {
10024
9871
  toggleBackgroundTasks: () => {
10025
9872
  },
10026
9873
  toggleShortcutsHelp: () => {
9874
+ },
9875
+ toggleVoiceMode: () => {
10027
9876
  }
10028
9877
  };
10029
9878
  }
@@ -10311,7 +10160,7 @@ async function runNonInteractive({
10311
10160
  }
10312
10161
  });
10313
10162
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10314
- const { setupInitialActivityLogger } = await import("./devtoolsService-YCRNWWXE.js");
10163
+ const { setupInitialActivityLogger } = await import("./devtoolsService-HNKMOA2D.js");
10315
10164
  setupInitialActivityLogger(config);
10316
10165
  }
10317
10166
  const { stdout: workingStdout } = createWorkingStdio();
@@ -10762,7 +10611,7 @@ async function runNonInteractive2(params) {
10762
10611
  }
10763
10612
  });
10764
10613
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
10765
- const { setupInitialActivityLogger } = await import("./devtoolsService-YCRNWWXE.js");
10614
+ const { setupInitialActivityLogger } = await import("./devtoolsService-HNKMOA2D.js");
10766
10615
  setupInitialActivityLogger(config);
10767
10616
  }
10768
10617
  const { stdout: workingStdout } = createWorkingStdio();
@@ -15611,7 +15460,7 @@ async function resolveSessionId(resumeArg) {
15611
15460
  }
15612
15461
  }
15613
15462
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
15614
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-MVHR4VV7.js");
15463
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-FT2L7RG2.js");
15615
15464
  await doStartUI(
15616
15465
  config,
15617
15466
  settings,
@@ -15698,8 +15547,8 @@ async function main() {
15698
15547
  }
15699
15548
  const isDebugMode2 = isDebugMode(argv);
15700
15549
  const consolePatcher = new ConsolePatcher({
15701
- stderr: true,
15702
- interactive: isHeadlessMode() ? false : true,
15550
+ stderr: argv.isCommand ? false : true,
15551
+ interactive: isHeadlessMode() && !argv.isCommand ? false : true,
15703
15552
  debugMode: isDebugMode2,
15704
15553
  onNewMessage: (msg) => {
15705
15554
  coreEvents.emitConsoleLog(msg.type, msg.content);
@@ -15813,7 +15662,7 @@ ${finalArgs[promptIndex + 1]}`;
15813
15662
  await config.storage.initialize();
15814
15663
  adminControlsListner.setConfig(config);
15815
15664
  if (config.isInteractive() && settings.merged.general.devtools) {
15816
- const { setupInitialActivityLogger } = await import("./devtoolsService-YCRNWWXE.js");
15665
+ const { setupInitialActivityLogger } = await import("./devtoolsService-HNKMOA2D.js");
15817
15666
  setupInitialActivityLogger(config);
15818
15667
  }
15819
15668
  registerTelemetryConfig(config);
@@ -15869,7 +15718,7 @@ ${finalArgs[promptIndex + 1]}`;
15869
15718
  const initAppHandle = startupProfiler.start("initialize_app");
15870
15719
  const initializationResult = await initializeApp(config, settings);
15871
15720
  initAppHandle?.end();
15872
- import("./liteRtServerManager-PI4ZNFB5.js").then(({ LiteRtServerManager }) => {
15721
+ import("./liteRtServerManager-2CTTNDIB.js").then(({ LiteRtServerManager }) => {
15873
15722
  const mergedGemma = settings.merged.experimental?.gemmaModelRouter;
15874
15723
  if (!mergedGemma) return;
15875
15724
  const userGemma = settings.forScope("User" /* User */).settings.experimental?.gemmaModelRouter;
@@ -16000,19 +15849,15 @@ function initializeOutputListenersAndFlush() {
16000
15849
  if (coreEvents.listenerCount(CoreEvent.ConsoleLog) === 0) {
16001
15850
  coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
16002
15851
  if (payload.type === "error" || payload.type === "warn") {
16003
- writeToStderr(payload.content);
15852
+ writeToStderr(payload.content + "\n");
16004
15853
  } else {
16005
- writeToStdout(payload.content);
15854
+ writeToStderr(payload.content + "\n");
16006
15855
  }
16007
15856
  });
16008
15857
  }
16009
15858
  if (coreEvents.listenerCount(CoreEvent.UserFeedback) === 0) {
16010
15859
  coreEvents.on(CoreEvent.UserFeedback, (payload) => {
16011
- if (payload.severity === "error" || payload.severity === "warning") {
16012
- writeToStderr(payload.message);
16013
- } else {
16014
- writeToStdout(payload.message);
16015
- }
15860
+ writeToStderr(payload.message + "\n");
16016
15861
  });
16017
15862
  }
16018
15863
  }