@google/gemini-cli 0.52.0 → 0.54.0-nightly.20260726.g3818efbbf

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 (74) hide show
  1. package/bundle/{chunk-7LQRUKPT.js → chunk-2VCRWD5A.js} +269 -146
  2. package/bundle/{chunk-Y5NBDPUP.js → chunk-4DF43WY7.js} +1 -1
  3. package/bundle/{chunk-ILANJJAD.js → chunk-5IDNNCKI.js} +3 -3
  4. package/bundle/{chunk-24R3JJRB.js → chunk-6EXP7MNC.js} +1 -1
  5. package/bundle/{chunk-SNUSRD5O.js → chunk-6FGJ26XP.js} +7 -7
  6. package/bundle/{chunk-B54TROKV.js → chunk-6FQUF3NB.js} +2 -2
  7. package/bundle/{chunk-6Z2GQGII.js → chunk-C52C3QZP.js} +3 -3
  8. package/bundle/{chunk-IQDAUFS5.js → chunk-CP4PCA5K.js} +7857 -14332
  9. package/bundle/{chunk-PTIIH33O.js → chunk-DJN5ASV2.js} +3 -3
  10. package/bundle/{chunk-JB342GRK.js → chunk-DLH2UGEO.js} +1 -1
  11. package/bundle/{chunk-ZINRZXUN.js → chunk-DZDRGXE7.js} +1 -1
  12. package/bundle/chunk-F6U6G4L3.js +118 -0
  13. package/bundle/{chunk-SZMWXEEI.js → chunk-GKMUOHQH.js} +8 -5
  14. package/bundle/{chunk-FBGJOW3X.js → chunk-HG5ARHEH.js} +2 -2
  15. package/bundle/{chunk-BG2B4WV5.js → chunk-ISVXSEBZ.js} +285 -152
  16. package/bundle/{chunk-OFOMMM4A.js → chunk-JFK64ABJ.js} +1 -1
  17. package/bundle/{chunk-ZLL3UXFN.js → chunk-MHTDGIIL.js} +1 -1
  18. package/bundle/{chunk-ALVMXQYL.js → chunk-NNV4Z6XR.js} +2 -2
  19. package/bundle/{chunk-P4IYYRKC.js → chunk-NPRNIWWX.js} +1 -1
  20. package/bundle/{chunk-F7WLNK6O.js → chunk-OC4O5R3B.js} +9 -8
  21. package/bundle/chunk-OEJGR4OM.js +396934 -0
  22. package/bundle/{chunk-RHQ5RWRW.js → chunk-PHD2HIVW.js} +1 -1
  23. package/bundle/{chunk-UB6EWNWI.js → chunk-QG7OFP4D.js} +1 -1
  24. package/bundle/{chunk-THWSXFSH.js → chunk-QGDYKVWX.js} +1 -1
  25. package/bundle/chunk-RVYNXMAI.js +154 -0
  26. package/bundle/chunk-SUGVZSZP.js +512 -0
  27. package/bundle/{chunk-SDT3SMSX.js → chunk-TIAQUEGU.js} +7 -7
  28. package/bundle/chunk-TUTBB2EI.js +17332 -0
  29. package/bundle/{chunk-ZNHHIFQN.js → chunk-UFVHQWHK.js} +67 -54
  30. package/bundle/chunk-XUMLHXHF.js +102505 -0
  31. package/bundle/chunk-Y76OKNPF.js +1571 -0
  32. package/bundle/chunk-YONEX6IX.js +398 -0
  33. package/bundle/{cleanup-2EKCP4Q4.js → cleanup-CJUVYQV5.js} +2 -2
  34. package/bundle/{cleanup-G4HKUFT2.js → cleanup-IA6XG6SC.js} +2 -2
  35. package/bundle/{cleanup-X3KOZTUK.js → cleanup-QIBIT7JQ.js} +2 -2
  36. package/bundle/cleanup-QUPE4ZH5.js +32 -0
  37. package/bundle/{core-ZIYDWN4V.js → core-UHW46BQ2.js} +5 -1
  38. package/bundle/{devtoolsService-UB2E5377.js → devtoolsService-465M2LE6.js} +2 -2
  39. package/bundle/{devtoolsService-KJJEIBQ2.js → devtoolsService-7KPRZCZM.js} +2 -2
  40. package/bundle/{devtoolsService-NFNYJGMS.js → devtoolsService-F7ASQSK7.js} +4 -3
  41. package/bundle/devtoolsService-ZJWYFVKM.js +4359 -0
  42. package/bundle/{dist-WD2ZO2DC.js → dist-A3MEBURU.js} +5 -1
  43. package/bundle/{core-JDFTBJXX.js → dist-QVREEUKF.js} +5 -1
  44. package/bundle/dist-Y4VJWSZD.js +2156 -0
  45. package/bundle/docs/CONTRIBUTING.md +3 -3
  46. package/bundle/docs/changelogs/index.md +20 -0
  47. package/bundle/docs/changelogs/latest.md +53 -18
  48. package/bundle/docs/changelogs/preview.md +35 -46
  49. package/bundle/docs/cli/sandbox.md +3 -2
  50. package/bundle/docs/reference/configuration.md +4 -4
  51. package/bundle/{gemini-6K6USV55.js → gemini-7SBFMAVQ.js} +14 -14
  52. package/bundle/{gemini-Y4OW3GPV.js → gemini-HIS5LQZQ.js} +212 -196
  53. package/bundle/{gemini-NJ7GQJ2G.js → gemini-VBI43GZ4.js} +14 -14
  54. package/bundle/gemini-VNJSIRD3.js +16427 -0
  55. package/bundle/gemini.js +7 -7
  56. package/bundle/{interactiveCli-NNJDT7RS.js → interactiveCli-7CJ3QII7.js} +8 -8
  57. package/bundle/{interactiveCli-3XBP73G4.js → interactiveCli-HO3K7ZQC.js} +8 -8
  58. package/bundle/{interactiveCli-3B23G3WW.js → interactiveCli-J27JH7NJ.js} +315 -296
  59. package/bundle/interactiveCli-QQIQEHF4.js +34816 -0
  60. package/bundle/{liteRtServerManager-MQS4LI5P.js → liteRtServerManager-ADM43JXF.js} +4 -4
  61. package/bundle/{liteRtServerManager-PYCXZRAL.js → liteRtServerManager-FGXFYVBT.js} +4 -4
  62. package/bundle/{liteRtServerManager-A77B57ZY.js → liteRtServerManager-IZIEAP3T.js} +4 -4
  63. package/bundle/liteRtServerManager-NRGCTYJQ.js +65 -0
  64. package/bundle/{oauth2-provider-6EE3JV6M.js → oauth2-provider-3THMIWTP.js} +1 -1
  65. package/bundle/{oauth2-provider-5JL2PKRR.js → oauth2-provider-ASKQ7P2C.js} +1 -1
  66. package/bundle/{oauth2-provider-THDZ27ZX.js → oauth2-provider-NVAVQTFM.js} +38 -72
  67. package/bundle/oauth2-provider-TZOUW4Q5.js +235 -0
  68. package/bundle/sandbox-macos-permissive-open.sb +113 -4
  69. package/bundle/sandbox-macos-permissive-proxied.sb +111 -9
  70. package/bundle/{start-SV5TPWOH.js → start-72YJPZDV.js} +6 -6
  71. package/bundle/{start-YON746V5.js → start-A4ZY5O7I.js} +6 -6
  72. package/bundle/{start-K5QQG7K4.js → start-GCMULBVZ.js} +6 -6
  73. package/bundle/start-HAMF674K.js +18 -0
  74. package/package.json +1 -1
@@ -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-THWSXFSH.js";
5
+ } from "./chunk-QGDYKVWX.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-P4IYYRKC.js";
17
+ } from "./chunk-NPRNIWWX.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-BG2B4WV5.js";
20
+ } from "./chunk-ISVXSEBZ.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-IQDAUFS5.js";
8
+ } from "./chunk-OEJGR4OM.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -31,7 +31,7 @@ import {
31
31
  partListUnionToString,
32
32
  require_strip_json_comments,
33
33
  sanitizeFilenamePart
34
- } from "./chunk-7LQRUKPT.js";
34
+ } from "./chunk-OEJGR4OM.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __require,
@@ -0,0 +1,118 @@
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
+ exitCli,
4
+ require_source
5
+ } from "./chunk-6EXP7MNC.js";
6
+ import {
7
+ DEFAULT_PORT,
8
+ SERVER_START_WAIT_MS,
9
+ getBinaryPath,
10
+ getLiteRtBinDir,
11
+ getLogFilePath,
12
+ getPidFilePath,
13
+ isBinaryInstalled,
14
+ isServerRunning,
15
+ resolveGemmaConfig,
16
+ writeServerProcessInfo
17
+ } from "./chunk-TUTBB2EI.js";
18
+ import {
19
+ debugLogger
20
+ } from "./chunk-CP4PCA5K.js";
21
+ import {
22
+ __toESM
23
+ } from "./chunk-34MYV7JD.js";
24
+
25
+ // packages/cli/src/commands/gemma/start.ts
26
+ var import_chalk = __toESM(require_source(), 1);
27
+ import fs from "node:fs";
28
+ import path from "node:path";
29
+ import { spawn } from "node:child_process";
30
+ async function startServer(binaryPath, port) {
31
+ const alreadyRunning = await isServerRunning(port);
32
+ if (alreadyRunning) {
33
+ debugLogger.log(`LiteRT server already running on port ${port}`);
34
+ return true;
35
+ }
36
+ const logPath = getLogFilePath();
37
+ fs.mkdirSync(getLiteRtBinDir(), { recursive: true });
38
+ const tmpDir = path.dirname(getPidFilePath());
39
+ fs.mkdirSync(tmpDir, { recursive: true });
40
+ const logFd = fs.openSync(logPath, "a");
41
+ try {
42
+ const child = spawn(binaryPath, ["serve", `--port=${port}`, "--verbose"], {
43
+ detached: true,
44
+ stdio: ["ignore", logFd, logFd]
45
+ });
46
+ if (child.pid) {
47
+ writeServerProcessInfo({
48
+ pid: child.pid,
49
+ binaryPath,
50
+ port
51
+ });
52
+ }
53
+ child.unref();
54
+ } finally {
55
+ fs.closeSync(logFd);
56
+ }
57
+ await new Promise((resolve) => setTimeout(resolve, SERVER_START_WAIT_MS));
58
+ return isServerRunning(port);
59
+ }
60
+ var startCommand = {
61
+ command: "start",
62
+ describe: "Start the LiteRT-LM server",
63
+ builder: (yargs) => yargs.option("port", {
64
+ type: "number",
65
+ description: "Port for the LiteRT server"
66
+ }),
67
+ handler: async (argv) => {
68
+ let port;
69
+ if (argv["port"] !== void 0) {
70
+ port = Number(argv["port"]);
71
+ }
72
+ if (!port) {
73
+ const { configuredPort } = resolveGemmaConfig(DEFAULT_PORT);
74
+ port = configuredPort;
75
+ }
76
+ const binaryPath = getBinaryPath();
77
+ if (!binaryPath || !isBinaryInstalled(binaryPath)) {
78
+ debugLogger.error(
79
+ import_chalk.default.red(
80
+ 'LiteRT-LM binary not found. Run "gemini gemma setup" first.'
81
+ )
82
+ );
83
+ await exitCli(1);
84
+ return;
85
+ }
86
+ const alreadyRunning = await isServerRunning(port);
87
+ if (alreadyRunning) {
88
+ debugLogger.log(
89
+ import_chalk.default.green(`LiteRT server is already running on port ${port}.`)
90
+ );
91
+ await exitCli(0);
92
+ return;
93
+ }
94
+ debugLogger.log(`Starting LiteRT server on port ${port}...`);
95
+ const started = await startServer(binaryPath, port);
96
+ if (started) {
97
+ debugLogger.log(import_chalk.default.green(`LiteRT server started on port ${port}.`));
98
+ debugLogger.log(import_chalk.default.dim(`Logs: ${getLogFilePath()}`));
99
+ await exitCli(0);
100
+ } else {
101
+ debugLogger.error(
102
+ import_chalk.default.red("Server may not have started correctly. Check logs:")
103
+ );
104
+ debugLogger.error(import_chalk.default.dim(` ${getLogFilePath()}`));
105
+ await exitCli(1);
106
+ }
107
+ }
108
+ };
109
+
110
+ export {
111
+ startServer,
112
+ startCommand
113
+ };
114
+ /**
115
+ * @license
116
+ * Copyright 2026 Google LLC
117
+ * SPDX-License-Identifier: Apache-2.0
118
+ */
@@ -1,6 +1,9 @@
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
  AuthProviderType,
4
+ AuthType,
5
+ CoreEvent,
6
+ CoreToolCallStatus,
4
7
  DEFAULT_MODEL_CONFIGS,
5
8
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
6
9
  EDITOR_OPTIONS,
@@ -28,7 +31,7 @@ import {
28
31
  partListUnionToString,
29
32
  require_strip_json_comments,
30
33
  sanitizeFilenamePart
31
- } from "./chunk-IQDAUFS5.js";
34
+ } from "./chunk-2VCRWD5A.js";
32
35
  import {
33
36
  __commonJS,
34
37
  __require,
@@ -10225,7 +10228,7 @@ function convertSessionToHistoryFormats(messages) {
10225
10228
  args: tool.args,
10226
10229
  description: tool.description || "",
10227
10230
  renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
10228
- status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
10231
+ status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
10229
10232
  resultDisplay: tool.resultDisplay,
10230
10233
  confirmationDetails: void 0
10231
10234
  }))
@@ -16289,8 +16292,8 @@ var LoadedSettings = class {
16289
16292
  // React will pass a listener fn into this subscribe fn
16290
16293
  // that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
16291
16294
  subscribe(listener) {
16292
- coreEvents.on("settings-changed" /* SettingsChanged */, listener);
16293
- return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
16295
+ coreEvents.on(CoreEvent.SettingsChanged, listener);
16296
+ return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
16294
16297
  }
16295
16298
  getSnapshot() {
16296
16299
  return this._snapshot;
@@ -16434,7 +16437,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
16434
16437
  }
16435
16438
  }
16436
16439
  let value = "cloudshell-gca";
16437
- if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
16440
+ if (selectedAuthType === AuthType.USE_VERTEX_AI) {
16438
16441
  value = process2.env[USER_GCP_PROJECT];
16439
16442
  }
16440
16443
  if (envFilePath && fs4.existsSync(envFilePath)) {
@@ -1,13 +1,13 @@
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-Y5NBDPUP.js";
4
+ } from "./chunk-4DF43WY7.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-7LQRUKPT.js";
10
+ } from "./chunk-2VCRWD5A.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";