@google/gemini-cli 0.66.0-preview.0 → 0.67.0-nightly.20261022.g09d81bf11

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-7KFTNUNE.js → chunk-2B7TWNGS.js} +1 -1
  2. package/bundle/{chunk-GA6BNFA6.js → chunk-2OESIGGE.js} +3 -3
  3. package/bundle/{chunk-VDKR3AIQ.js → chunk-2RCNTQXC.js} +3 -3
  4. package/bundle/{chunk-HH6UGBJR.js → chunk-2ZUR6GVD.js} +1 -1
  5. package/bundle/{chunk-VN6QPF5Z.js → chunk-56POLU2Y.js} +1 -1
  6. package/bundle/{chunk-PWTTZOSA.js → chunk-5F7M6K3Z.js} +1 -1
  7. package/bundle/{chunk-D6WVFS5S.js → chunk-5Q2IM7ZY.js} +2774 -2558
  8. package/bundle/{chunk-BAGLLEOA.js → chunk-77VJALAU.js} +2744 -2543
  9. package/bundle/{chunk-3RUC6ZA6.js → chunk-CMSL3UEX.js} +1 -1
  10. package/bundle/{chunk-TZZ34RGM.js → chunk-EUUOBLD6.js} +1 -1
  11. package/bundle/{chunk-OGLIOKXL.js → chunk-FQ5JL4U4.js} +3 -3
  12. package/bundle/{chunk-LC5SKSCL.js → chunk-GQWVM5EC.js} +1 -1
  13. package/bundle/chunk-GWUSOQMG.js +118 -0
  14. package/bundle/{chunk-XH7KGX2J.js → chunk-HQT55HCT.js} +2 -2
  15. package/bundle/{chunk-Z3NAT6YU.js → chunk-K4MDTZ5P.js} +9 -8
  16. package/bundle/chunk-L6APYQTX.js +512 -0
  17. package/bundle/{chunk-ITTQBJIT.js → chunk-NTO4QKIT.js} +1 -1
  18. package/bundle/{chunk-D4FKL6WQ.js → chunk-NVRY2V3D.js} +7 -7
  19. package/bundle/{chunk-OCM26AU2.js → chunk-OQB32PNM.js} +2 -2
  20. package/bundle/{chunk-SZE3LGYD.js → chunk-PE6EMPER.js} +1 -1
  21. package/bundle/chunk-PHBAI2FJ.js +154 -0
  22. package/bundle/{chunk-I6Q2CIAC.js → chunk-QXBWQHAI.js} +10545 -17447
  23. package/bundle/chunk-R3I7BZFM.js +1571 -0
  24. package/bundle/{chunk-3IDBGHHH.js → chunk-R76V7X35.js} +1 -1
  25. package/bundle/{chunk-EZIYD2G6.js → chunk-R7ZEGIHP.js} +71 -58
  26. package/bundle/chunk-RXPJLKJH.js +402478 -0
  27. package/bundle/{chunk-5ILL3HFF.js → chunk-VKHCVAAT.js} +2 -2
  28. package/bundle/{chunk-EONTJM32.js → chunk-W53HK6YV.js} +7 -7
  29. package/bundle/chunk-XCKVCFVK.js +101859 -0
  30. package/bundle/chunk-XSBGLJPI.js +1956 -0
  31. package/bundle/{chunk-RJ3GGOMU.js → chunk-Y2NS2CN7.js} +7 -5
  32. package/bundle/chunk-YP5XFEOR.js +17611 -0
  33. package/bundle/{cleanup-5UHD34BY.js → cleanup-7F6DTEI5.js} +2 -2
  34. package/bundle/{cleanup-D3DWTLIR.js → cleanup-PZAWKM5K.js} +2 -2
  35. package/bundle/{cleanup-GF4YFJWT.js → cleanup-QBQH2E25.js} +2 -2
  36. package/bundle/cleanup-VFKHTU4X.js +32 -0
  37. package/bundle/{core-GH3VFZSV.js → core-Y54HKAF7.js} +11 -1
  38. package/bundle/{devtoolsService-YPLYVNTF.js → devtoolsService-5IULGPKI.js} +2 -2
  39. package/bundle/{devtoolsService-KQTX22AU.js → devtoolsService-7J5WRE56.js} +4 -3
  40. package/bundle/{devtoolsService-3EKYJHGL.js → devtoolsService-WBBFX3UK.js} +2 -2
  41. package/bundle/devtoolsService-WR475H4Y.js +4422 -0
  42. package/bundle/{dist-Q63VF7PG.js → dist-6OZ4U74D.js} +11 -1
  43. package/bundle/{core-CEUTCQ3Z.js → dist-CRYKEBGU.js} +11 -1
  44. package/bundle/dist-ZFZ5CQYE.js +2292 -0
  45. package/bundle/docs/changelogs/index.md +19 -0
  46. package/bundle/docs/changelogs/latest.md +91 -60
  47. package/bundle/docs/changelogs/preview.md +86 -90
  48. package/bundle/docs/cli/sandbox.md +24 -0
  49. package/bundle/docs/ide-integration/index.md +30 -6
  50. package/bundle/{gemini-VE6EAOCY.js → gemini-7ZOM27BS.js} +1115 -139
  51. package/bundle/{gemini-LRDBGCHF.js → gemini-MWZGDV4H.js} +1115 -139
  52. package/bundle/{gemini-WV55NKMQ.js → gemini-ZKR5SJ73.js} +1315 -323
  53. package/bundle/gemini-ZUCKW7LW.js +18946 -0
  54. package/bundle/gemini.js +7 -7
  55. package/bundle/{interactiveCli-3XUYDTSL.js → interactiveCli-6LXZVXKY.js} +16 -9
  56. package/bundle/{interactiveCli-S5K6P65K.js → interactiveCli-LSKZVKKE.js} +326 -300
  57. package/bundle/{interactiveCli-U2CP5B64.js → interactiveCli-TKXOGF4N.js} +16 -9
  58. package/bundle/interactiveCli-WJGUU5VJ.js +35609 -0
  59. package/bundle/{liteRtServerManager-KF2BIFPA.js → liteRtServerManager-3U7EIRUS.js} +4 -4
  60. package/bundle/{liteRtServerManager-RYZUX64K.js → liteRtServerManager-CW35K23S.js} +4 -4
  61. package/bundle/{liteRtServerManager-HYOFIRWR.js → liteRtServerManager-XWK36BBF.js} +4 -4
  62. package/bundle/liteRtServerManager-ZYFFYYN7.js +65 -0
  63. package/bundle/{oauth2-provider-O2MBVTUX.js → oauth2-provider-AOJJVK7S.js} +1 -1
  64. package/bundle/{oauth2-provider-LVJMV7QY.js → oauth2-provider-CP3EHS4F.js} +41 -79
  65. package/bundle/oauth2-provider-JWJWKC7G.js +273 -0
  66. package/bundle/{oauth2-provider-XAA7HRXL.js → oauth2-provider-KMTPY6PI.js} +1 -1
  67. package/bundle/{start-JWGPML6R.js → start-2Y2F6QEF.js} +6 -6
  68. package/bundle/{start-TRMMLCHR.js → start-S7FCYQUX.js} +6 -6
  69. package/bundle/{start-234HHUMV.js → start-VLFMRGO7.js} +6 -6
  70. package/bundle/start-YDF6EGIS.js +18 -0
  71. package/package.json +1 -1
@@ -5,7 +5,7 @@ import {
5
5
  isTelemetrySdkInitialized,
6
6
  resetBrowserSession,
7
7
  shutdownTelemetry
8
- } from "./chunk-BAGLLEOA.js";
8
+ } from "./chunk-QXBWQHAI.js";
9
9
 
10
10
  // packages/cli/src/utils/cleanup.ts
11
11
  import { promises as fs } from "node:fs";
@@ -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-VN6QPF5Z.js";
4
+ } from "./chunk-56POLU2Y.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -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-SZE3LGYD.js";
5
+ } from "./chunk-EUUOBLD6.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-3IDBGHHH.js";
17
+ } from "./chunk-2B7TWNGS.js";
18
18
  import {
19
19
  debugLogger
20
- } from "./chunk-D6WVFS5S.js";
20
+ } from "./chunk-77VJALAU.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-34MYV7JD.js";
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
2
2
  import {
3
3
  CoreToolCallStatus,
4
4
  checkExhaustive
5
- } from "./chunk-BAGLLEOA.js";
5
+ } from "./chunk-RXPJLKJH.js";
6
6
  import {
7
7
  __commonJS,
8
8
  __toESM
@@ -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-2ZUR6GVD.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-YP5XFEOR.js";
18
+ import {
19
+ debugLogger
20
+ } from "./chunk-QXBWQHAI.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,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-VN6QPF5Z.js";
4
+ } from "./chunk-PHBAI2FJ.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-I6Q2CIAC.js";
20
+ } from "./chunk-5Q2IM7ZY.js";
21
21
  import {
22
22
  __commonJS,
23
23
  __toESM
@@ -1,7 +1,8 @@
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
+ CoreToolCallStatus,
3
4
  checkExhaustive
4
- } from "./chunk-D6WVFS5S.js";
5
+ } from "./chunk-QXBWQHAI.js";
5
6
  import {
6
7
  __commonJS,
7
8
  __toESM
@@ -464,19 +465,19 @@ var require_react = __commonJS({
464
465
  var import_react = __toESM(require_react(), 1);
465
466
  function mapCoreStatusToDisplayStatus(coreStatus) {
466
467
  switch (coreStatus) {
467
- case "validating" /* Validating */:
468
+ case CoreToolCallStatus.Validating:
468
469
  return "Pending" /* Pending */;
469
- case "awaiting_approval" /* AwaitingApproval */:
470
+ case CoreToolCallStatus.AwaitingApproval:
470
471
  return "Confirming" /* Confirming */;
471
- case "executing" /* Executing */:
472
+ case CoreToolCallStatus.Executing:
472
473
  return "Executing" /* Executing */;
473
- case "success" /* Success */:
474
+ case CoreToolCallStatus.Success:
474
475
  return "Success" /* Success */;
475
- case "cancelled" /* Cancelled */:
476
+ case CoreToolCallStatus.Cancelled:
476
477
  return "Canceled" /* Canceled */;
477
- case "error" /* Error */:
478
+ case CoreToolCallStatus.Error:
478
479
  return "Error" /* Error */;
479
- case "scheduled" /* Scheduled */:
480
+ case CoreToolCallStatus.Scheduled:
480
481
  return "Pending" /* Pending */;
481
482
  default:
482
483
  return checkExhaustive(coreStatus);