@google/gemini-cli 0.68.0-preview.0 → 0.69.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 (71) hide show
  1. package/bundle/{chunk-VBHMFLBY.js → chunk-2KKDGWF2.js} +1 -1
  2. package/bundle/{chunk-ODU7Z2RJ.js → chunk-2ONJU4V7.js} +1 -1
  3. package/bundle/chunk-3HEOCQDN.js +65 -0
  4. package/bundle/{chunk-HRM7UWGB.js → chunk-4SOPZCNA.js} +22 -6
  5. package/bundle/{chunk-JMHCFAD6.js → chunk-6KCLIS6W.js} +1 -1
  6. package/bundle/{chunk-CXMHAFLN.js → chunk-BRHBBQC5.js} +2 -2
  7. package/bundle/{chunk-KKKD4FID.js → chunk-C5BED6L6.js} +2 -2
  8. package/bundle/{chunk-OZOUOK43.js → chunk-CGQSFR2I.js} +7 -2
  9. package/bundle/{chunk-RD2EMHV2.js → chunk-CWHEOJXF.js} +7 -2
  10. package/bundle/{chunk-ZZOOHVBL.js → chunk-DWMZSQYG.js} +4479 -1925
  11. package/bundle/{chunk-ZEK4UYYW.js → chunk-GDCMMKZ2.js} +1 -1
  12. package/bundle/{chunk-44PCK4QK.js → chunk-GQ7FZNO2.js} +1 -1
  13. package/bundle/{chunk-XPTXBYQQ.js → chunk-JJWPYMIO.js} +3 -3
  14. package/bundle/{chunk-L57AYV6U.js → chunk-KUXCUQKX.js} +4357 -1897
  15. package/bundle/{chunk-6A5BTTNC.js → chunk-LYKP3S67.js} +22 -6
  16. package/bundle/{chunk-RCF66HCI.js → chunk-MP4TVGOP.js} +4479 -1925
  17. package/bundle/{chunk-XVNEFQR3.js → chunk-PH5XENTH.js} +1 -1
  18. package/bundle/{chunk-B2FKXXUH.js → chunk-RBDD6IBU.js} +617 -228
  19. package/bundle/{chunk-BKVNBJ5C.js → chunk-SYOIMUZI.js} +617 -228
  20. package/bundle/{chunk-VCO4TMD6.js → chunk-U3FFDEKY.js} +22 -6
  21. package/bundle/{chunk-LQDISFTJ.js → chunk-U5FJ6OGB.js} +2 -2
  22. package/bundle/{chunk-WEP47ZZU.js → chunk-UAHZWXSG.js} +7 -2
  23. package/bundle/chunk-UW3ZS3BH.js +65 -0
  24. package/bundle/{chunk-Q76ZDILI.js → chunk-V7L3FMBE.js} +3 -3
  25. package/bundle/chunk-VQTELFV3.js +65 -0
  26. package/bundle/{chunk-YPPJDFYP.js → chunk-YODS6HR2.js} +3 -3
  27. package/bundle/{chunk-G7EMTV2Q.js → chunk-YP5TA33N.js} +617 -228
  28. package/bundle/{cleanup-CCR2EOHA.js → cleanup-3T2KXSP4.js} +2 -2
  29. package/bundle/{cleanup-OQV2G5Y3.js → cleanup-NNQCI4KC.js} +2 -2
  30. package/bundle/{cleanup-T24OFMOA.js → cleanup-TA4VYDXQ.js} +2 -2
  31. package/bundle/{core-NQRKBS47.js → core-6XF5EO7Z.js} +35 -1
  32. package/bundle/{core-UIPNZ5VU.js → core-TUJHM7E7.js} +35 -1
  33. package/bundle/{devtoolsService-3G5ZA3JV.js → devtoolsService-7EMPANTX.js} +2 -2
  34. package/bundle/{devtoolsService-V3OEHE5V.js → devtoolsService-I7WFRUEA.js} +2 -2
  35. package/bundle/{devtoolsService-EWNQDTC7.js → devtoolsService-RCBUZGYD.js} +2 -2
  36. package/bundle/{dist-OYZDNSTI.js → dist-OSQFIX7F.js} +35 -1
  37. package/bundle/docs/changelogs/index.md +18 -0
  38. package/bundle/docs/changelogs/latest.md +89 -84
  39. package/bundle/docs/changelogs/preview.md +106 -92
  40. package/bundle/docs/cli/themes.md +50 -5
  41. package/bundle/docs/cli/trusted-folders.md +13 -0
  42. package/bundle/docs/reference/commands.md +4 -0
  43. package/bundle/docs/reference/configuration.md +8 -0
  44. package/bundle/docs/reference/policy-engine.md +6 -0
  45. package/bundle/formatError-KEQ3HU3Y.js +14 -0
  46. package/bundle/formatError-LJFIC7G3.js +14 -0
  47. package/bundle/formatError-MIUNQEYE.js +14 -0
  48. package/bundle/{gemini-YFCTZ76S.js → gemini-22ON2CZG.js} +493 -132
  49. package/bundle/{gemini-FSHMUCSM.js → gemini-HLS52ZNZ.js} +493 -132
  50. package/bundle/{gemini-2P73372G.js → gemini-ZZZEFPSK.js} +493 -132
  51. package/bundle/gemini.js +14 -13
  52. package/bundle/{interactiveCli-F5RRE2VJ.js → interactiveCli-5HMWVTK2.js} +1641 -1208
  53. package/bundle/{interactiveCli-X54KN2EM.js → interactiveCli-HQBE3C3C.js} +1641 -1208
  54. package/bundle/{interactiveCli-I75IWUIA.js → interactiveCli-NKFQZXB5.js} +1641 -1208
  55. package/bundle/{liteRtServerManager-JTOIS4KU.js → liteRtServerManager-2IOXWO76.js} +4 -4
  56. package/bundle/{liteRtServerManager-UVQ2I6NL.js → liteRtServerManager-AG4Y5JMZ.js} +4 -4
  57. package/bundle/{liteRtServerManager-FLPMMDNM.js → liteRtServerManager-OFNVXXQ4.js} +4 -4
  58. package/bundle/{oauth2-provider-AYO4BU7A.js → oauth2-provider-2DHNJ2S3.js} +1 -1
  59. package/bundle/{oauth2-provider-NCQY7TJE.js → oauth2-provider-OEGXLWIL.js} +1 -1
  60. package/bundle/{oauth2-provider-VMBYZOC7.js → oauth2-provider-YDNSNN32.js} +1 -1
  61. package/bundle/policies/yolo.toml +1 -0
  62. package/bundle/sandbox-macos-permissive-open.sb +8 -0
  63. package/bundle/sandbox-macos-permissive-proxied.sb +8 -0
  64. package/bundle/sandbox-macos-restrictive-open.sb +1 -0
  65. package/bundle/sandbox-macos-restrictive-proxied.sb +1 -0
  66. package/bundle/sandbox-macos-strict-open.sb +1 -0
  67. package/bundle/sandbox-macos-strict-proxied.sb +1 -0
  68. package/bundle/{start-IXQ2E7L6.js → start-7GJH3MKY.js} +6 -6
  69. package/bundle/{start-YEKGRZVH.js → start-JSVKPUTV.js} +6 -6
  70. package/bundle/{start-DFHM4HI4.js → start-N33LF5WK.js} +6 -6
  71. package/package.json +1 -1
@@ -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
  require_react
4
- } from "./chunk-44PCK4QK.js";
4
+ } from "./chunk-GQ7FZNO2.js";
5
5
  import {
6
6
  AuthProviderType,
7
7
  AuthType,
@@ -37,7 +37,7 @@ import {
37
37
  partListUnionToString,
38
38
  require_strip_json_comments,
39
39
  sanitizeFilenamePart
40
- } from "./chunk-L57AYV6U.js";
40
+ } from "./chunk-KUXCUQKX.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __export,
@@ -34844,6 +34844,20 @@ var SETTINGS_SCHEMA = {
34844
34844
  description: "Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.",
34845
34845
  showInDialog: true
34846
34846
  },
34847
+ requestTimeoutMs: {
34848
+ type: "number",
34849
+ label: "Request Timeout (ms)",
34850
+ category: "Model",
34851
+ requiresRestart: true,
34852
+ default: void 0,
34853
+ minimum: 1,
34854
+ description: oneLine`
34855
+ How long to wait, in milliseconds, for the API to start responding
34856
+ before a request is aborted and retried. Defaults to 60000. Raise this
34857
+ if long-thinking requests are timing out.
34858
+ `,
34859
+ showInDialog: false
34860
+ },
34847
34861
  summarizeToolOutput: {
34848
34862
  type: "object",
34849
34863
  label: "Summarize Tool Output",
@@ -37594,18 +37608,20 @@ function buildObjectShapeFromProperties(properties) {
37594
37608
  }
37595
37609
  return shape;
37596
37610
  }
37597
- function buildPrimitiveSchema(type) {
37611
+ function buildPrimitiveSchema(type, minimum) {
37598
37612
  switch (type) {
37599
37613
  case "string":
37600
37614
  return external_exports.string();
37601
- case "number":
37615
+ case "number": {
37616
+ const numberSchema = minimum !== void 0 ? external_exports.number().min(minimum) : external_exports.number();
37602
37617
  return external_exports.preprocess((val) => {
37603
37618
  if (typeof val === "string" && val.trim() !== "") {
37604
37619
  const num = Number(val);
37605
37620
  if (!isNaN(num)) return num;
37606
37621
  }
37607
37622
  return val;
37608
- }, external_exports.number());
37623
+ }, numberSchema);
37624
+ }
37609
37625
  case "boolean":
37610
37626
  return external_exports.preprocess((val) => {
37611
37627
  if (typeof val === "string") {
@@ -37638,7 +37654,7 @@ function buildZodSchemaFromDefinition(definition) {
37638
37654
  case "string":
37639
37655
  case "number":
37640
37656
  case "boolean":
37641
- baseSchema = buildPrimitiveSchema(definition.type);
37657
+ baseSchema = buildPrimitiveSchema(definition.type, definition.minimum);
37642
37658
  break;
37643
37659
  case "enum": {
37644
37660
  baseSchema = buildEnumSchema(definition.options);
@@ -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-OZOUOK43.js";
4
+ } from "./chunk-CWHEOJXF.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
@@ -17,7 +17,7 @@ import {
17
17
  require_re,
18
18
  require_semver,
19
19
  require_valid
20
- } from "./chunk-ZZOOHVBL.js";
20
+ } from "./chunk-DWMZSQYG.js";
21
21
  import {
22
22
  __commonJS,
23
23
  __toESM
@@ -1,11 +1,12 @@
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
  ExitCodes,
4
+ ShellExecutionService,
4
5
  Storage,
5
6
  isTelemetrySdkInitialized,
6
7
  resetBrowserSession,
7
8
  shutdownTelemetry
8
- } from "./chunk-L57AYV6U.js";
9
+ } from "./chunk-MP4TVGOP.js";
9
10
 
10
11
  // packages/cli/src/utils/cleanup.ts
11
12
  import { promises as fs } from "node:fs";
@@ -87,6 +88,10 @@ async function runExitCleanup() {
87
88
  await resetBrowserSession();
88
89
  } catch {
89
90
  }
91
+ try {
92
+ await ShellExecutionService.cleanupAllActiveProcesses();
93
+ } catch {
94
+ }
90
95
  if (configForTelemetry) {
91
96
  try {
92
97
  await configForTelemetry.dispose();
@@ -118,7 +123,7 @@ async function gracefulShutdown(reason) {
118
123
  }
119
124
  isShuttingDown = true;
120
125
  await runExitCleanup();
121
- const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : ExitCodes.SUCCESS;
126
+ const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
122
127
  process.exit(exitCode);
123
128
  }
124
129
  function setupSignalHandlers() {
@@ -0,0 +1,65 @@
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
+ import {
3
+ normalizeError,
4
+ safeSerializeErrorValue
5
+ } from "./chunk-DWMZSQYG.js";
6
+
7
+ // packages/cli/src/utils/formatError.ts
8
+ function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
9
+ if ([env["DEBUG"], env["DEBUG_MODE"]].some((v) => v === "true" || v === "1")) {
10
+ return true;
11
+ }
12
+ for (const arg of argv) {
13
+ if (arg === "--") {
14
+ break;
15
+ }
16
+ if (arg === "--debug" || arg === "-d" || arg === "--debug=true" || arg === "--debug=1") {
17
+ return true;
18
+ }
19
+ }
20
+ return false;
21
+ }
22
+ function formatStatusSuffix(message, status) {
23
+ const statusText = typeof status === "string" ? status.trim() : status !== void 0 ? String(status) : "";
24
+ if (!statusText) {
25
+ return "";
26
+ }
27
+ if (message.toLowerCase().includes(statusText.toLowerCase())) {
28
+ return "";
29
+ }
30
+ return ` (Status: ${statusText})`;
31
+ }
32
+ function formatCliError(error, options = {}) {
33
+ const normalized = normalizeError(error);
34
+ const prefix = options.prefix ?? "Error: ";
35
+ const statusSuffix = formatStatusSuffix(
36
+ normalized.message,
37
+ normalized.status
38
+ );
39
+ if (options.debug) {
40
+ if (error instanceof Error && error.stack) {
41
+ const stackStartsWithError = error.stack.startsWith("Error: ") || error.name.endsWith("Error") && error.stack.startsWith(`${error.name}: `);
42
+ const stackPrefix = prefix === "Error: " && stackStartsWithError ? "" : prefix;
43
+ let debugOutput = error.stack.includes(normalized.message) && !statusSuffix ? `${stackPrefix}${error.stack}` : `${prefix}${normalized.message}${statusSuffix}
44
+ ${error.stack}`;
45
+ if (normalized.details !== void 0) {
46
+ debugOutput += `
47
+ Debug Details: ${safeSerializeErrorValue(normalized.details, 2)}`;
48
+ }
49
+ return debugOutput;
50
+ }
51
+ return `${prefix}${normalized.message}${statusSuffix}
52
+ Debug Context: ${safeSerializeErrorValue(normalized.originalError, 2)}`;
53
+ }
54
+ return `${prefix}${normalized.message}${statusSuffix}`;
55
+ }
56
+
57
+ export {
58
+ isCliDebugEnabled,
59
+ formatCliError
60
+ };
61
+ /**
62
+ * @license
63
+ * Copyright 2026 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
@@ -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-JMHCFAD6.js";
5
+ } from "./chunk-PH5XENTH.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-HRM7UWGB.js";
17
+ } from "./chunk-4SOPZCNA.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-RCF66HCI.js";
20
+ } from "./chunk-MP4TVGOP.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -0,0 +1,65 @@
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
+ import {
3
+ normalizeError,
4
+ safeSerializeErrorValue
5
+ } from "./chunk-KUXCUQKX.js";
6
+
7
+ // packages/cli/src/utils/formatError.ts
8
+ function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
9
+ if ([env["DEBUG"], env["DEBUG_MODE"]].some((v) => v === "true" || v === "1")) {
10
+ return true;
11
+ }
12
+ for (const arg of argv) {
13
+ if (arg === "--") {
14
+ break;
15
+ }
16
+ if (arg === "--debug" || arg === "-d" || arg === "--debug=true" || arg === "--debug=1") {
17
+ return true;
18
+ }
19
+ }
20
+ return false;
21
+ }
22
+ function formatStatusSuffix(message, status) {
23
+ const statusText = typeof status === "string" ? status.trim() : status !== void 0 ? String(status) : "";
24
+ if (!statusText) {
25
+ return "";
26
+ }
27
+ if (message.toLowerCase().includes(statusText.toLowerCase())) {
28
+ return "";
29
+ }
30
+ return ` (Status: ${statusText})`;
31
+ }
32
+ function formatCliError(error, options = {}) {
33
+ const normalized = normalizeError(error);
34
+ const prefix = options.prefix ?? "Error: ";
35
+ const statusSuffix = formatStatusSuffix(
36
+ normalized.message,
37
+ normalized.status
38
+ );
39
+ if (options.debug) {
40
+ if (error instanceof Error && error.stack) {
41
+ const stackStartsWithError = error.stack.startsWith("Error: ") || error.name.endsWith("Error") && error.stack.startsWith(`${error.name}: `);
42
+ const stackPrefix = prefix === "Error: " && stackStartsWithError ? "" : prefix;
43
+ let debugOutput = error.stack.includes(normalized.message) && !statusSuffix ? `${stackPrefix}${error.stack}` : `${prefix}${normalized.message}${statusSuffix}
44
+ ${error.stack}`;
45
+ if (normalized.details !== void 0) {
46
+ debugOutput += `
47
+ Debug Details: ${safeSerializeErrorValue(normalized.details, 2)}`;
48
+ }
49
+ return debugOutput;
50
+ }
51
+ return `${prefix}${normalized.message}${statusSuffix}
52
+ Debug Context: ${safeSerializeErrorValue(normalized.originalError, 2)}`;
53
+ }
54
+ return `${prefix}${normalized.message}${statusSuffix}`;
55
+ }
56
+
57
+ export {
58
+ isCliDebugEnabled,
59
+ formatCliError
60
+ };
61
+ /**
62
+ * @license
63
+ * Copyright 2026 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
@@ -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-ODU7Z2RJ.js";
5
+ } from "./chunk-2ONJU4V7.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-VCO4TMD6.js";
17
+ } from "./chunk-U3FFDEKY.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-L57AYV6U.js";
20
+ } from "./chunk-KUXCUQKX.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";