@google/gemini-cli 0.55.0-preview.1 → 0.56.0-nightly.20260807.gd5c9a97dc

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/bundle/{chunk-IBEJG5F5.js → chunk-2OFXTC7J.js} +7 -7
  2. package/bundle/{chunk-LXWZUVJW.js → chunk-3JQQZEGX.js} +3 -3
  3. package/bundle/{chunk-GL46CQLD.js → chunk-4HN26M5C.js} +7 -7
  4. package/bundle/{chunk-DMPPAMW5.js → chunk-4WFAAWRV.js} +1 -1
  5. package/bundle/{chunk-SEQ766WD.js → chunk-5ZGFG5NO.js} +1 -1
  6. package/bundle/{chunk-7LAM3MXG.js → chunk-6J4ZSXWP.js} +1 -1
  7. package/bundle/{chunk-MWEFWYTU.js → chunk-7EFTTKL6.js} +1 -1
  8. package/bundle/{chunk-UM7AN6ZZ.js → chunk-AJWIA3ZY.js} +3 -3
  9. package/bundle/{chunk-YU5UI6S7.js → chunk-BS3XOU6H.js} +1 -1
  10. package/bundle/{chunk-TQPJD4W5.js → chunk-BSZJM3RH.js} +67 -54
  11. package/bundle/{chunk-F3GEJ37M.js → chunk-DIXI74ZY.js} +1 -1
  12. package/bundle/{chunk-QQVXLF7U.js → chunk-HAS6HV2W.js} +3 -3
  13. package/bundle/{chunk-APDWRUAP.js → chunk-HRHZ7XLJ.js} +4 -4
  14. package/bundle/{chunk-I535IUEN.js → chunk-IADQJE6Y.js} +1 -1
  15. package/bundle/{chunk-3Q3RSCXS.js → chunk-JU5AKBWA.js} +2 -2
  16. package/bundle/{chunk-KNRWWK34.js → chunk-JY52IRWR.js} +7639 -14279
  17. package/bundle/{chunk-AKJETY2D.js → chunk-JYMU7DGA.js} +9 -8
  18. package/bundle/{chunk-G3NJ32VD.js → chunk-MLF4XV7K.js} +1 -1
  19. package/bundle/{chunk-GPP3RO7B.js → chunk-NBB3SNWZ.js} +1 -1
  20. package/bundle/{chunk-G4NBAJCP.js → chunk-NY2WVEZ7.js} +4 -4
  21. package/bundle/{chunk-VHRT3UPF.js → chunk-O2OV4A3J.js} +2 -2
  22. package/bundle/chunk-PKX3OZLU.js +118 -0
  23. package/bundle/chunk-SAJAMGSY.js +102505 -0
  24. package/bundle/{chunk-RXENTUH3.js → chunk-TIJQZAWD.js} +8 -5
  25. package/bundle/chunk-TUQBF6U4.js +512 -0
  26. package/bundle/chunk-UBFHCNW7.js +397231 -0
  27. package/bundle/{chunk-A7NLEV6J.js → chunk-UTTNKEAA.js} +2 -2
  28. package/bundle/{chunk-O6HG25DV.js → chunk-V3LTBGI5.js} +1 -1
  29. package/bundle/chunk-WXHXAQ3S.js +154 -0
  30. package/bundle/chunk-XOJVYHCN.js +17332 -0
  31. package/bundle/chunk-ZHGS53EV.js +398 -0
  32. package/bundle/chunk-ZJYQ3FQK.js +1571 -0
  33. package/bundle/{cleanup-2EQCXKR2.js → cleanup-6JQRSQV4.js} +2 -2
  34. package/bundle/{cleanup-CVITZEST.js → cleanup-AKY6C2RT.js} +2 -2
  35. package/bundle/{cleanup-JPURY2FN.js → cleanup-HJNFIYZC.js} +2 -2
  36. package/bundle/cleanup-VTZJRHR6.js +32 -0
  37. package/bundle/{core-M7EWVE7C.js → core-M6EXTAZU.js} +1 -1
  38. package/bundle/{devtoolsService-LTCUHAKD.js → devtoolsService-7MMAW7EV.js} +2 -2
  39. package/bundle/{devtoolsService-G4J2W6MV.js → devtoolsService-CBFBIHYE.js} +4 -3
  40. package/bundle/devtoolsService-UQ2QPOTZ.js +4359 -0
  41. package/bundle/{devtoolsService-2PJHOM3Z.js → devtoolsService-XYNEI42R.js} +2 -2
  42. package/bundle/{dist-TXQI77ZL.js → dist-BCMGDEJH.js} +1 -1
  43. package/bundle/{core-2KFPOGVU.js → dist-MBCBB55O.js} +1 -1
  44. package/bundle/dist-XNPX7XSE.js +2172 -0
  45. package/bundle/docs/changelogs/index.md +18 -0
  46. package/bundle/docs/changelogs/latest.md +59 -31
  47. package/bundle/docs/changelogs/preview.md +45 -3
  48. package/bundle/{gemini-TOJXXBJZ.js → gemini-327AEDXI.js} +14 -14
  49. package/bundle/{gemini-QFKS36ZW.js → gemini-4SMSUD5X.js} +14 -14
  50. package/bundle/{gemini-4GL7B4FQ.js → gemini-C7T4OUXM.js} +214 -198
  51. package/bundle/gemini-RGAH7ZMX.js +17088 -0
  52. package/bundle/gemini.js +7 -7
  53. package/bundle/{interactiveCli-NWP4ENQW.js → interactiveCli-BU6YW25J.js} +8 -8
  54. package/bundle/{interactiveCli-UPSM5SHZ.js → interactiveCli-IGZ6QZZS.js} +315 -296
  55. package/bundle/{interactiveCli-QFVYPM2G.js → interactiveCli-KYZZ6NDD.js} +8 -8
  56. package/bundle/interactiveCli-PAHJEOLI.js +34912 -0
  57. package/bundle/{liteRtServerManager-MU2XFPN4.js → liteRtServerManager-4QY4ZGEP.js} +4 -4
  58. package/bundle/{liteRtServerManager-T2WZMOZK.js → liteRtServerManager-HDMWFPBD.js} +4 -4
  59. package/bundle/{liteRtServerManager-DILFQEEZ.js → liteRtServerManager-NKOZX3GX.js} +4 -4
  60. package/bundle/liteRtServerManager-TBUSMZRX.js +65 -0
  61. package/bundle/{oauth2-provider-VWRIMKTD.js → oauth2-provider-4MUIEJ47.js} +1 -1
  62. package/bundle/{oauth2-provider-QNQQSC5U.js → oauth2-provider-5YBZQZSE.js} +1 -1
  63. package/bundle/{oauth2-provider-2QGZS53A.js → oauth2-provider-7J3UVC32.js} +38 -72
  64. package/bundle/oauth2-provider-NA2SKTVC.js +235 -0
  65. package/bundle/{start-YV56XGWM.js → start-52BSU6KK.js} +6 -6
  66. package/bundle/{start-YWLQDUFC.js → start-CGFEMRA2.js} +6 -6
  67. package/bundle/{start-M7PLRASE.js → start-HZ52GDTQ.js} +6 -6
  68. package/bundle/start-J52H6PGA.js +18 -0
  69. package/package.json +1 -1
@@ -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-G4NBAJCP.js";
5
+ } from "./chunk-JY52IRWR.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);
@@ -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-SEQ766WD.js";
4
+ } from "./chunk-WXHXAQ3S.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require
@@ -28,7 +28,7 @@ import {
28
28
  partListUnionToString,
29
29
  require_strip_json_comments,
30
30
  sanitizeFilenamePart
31
- } from "./chunk-G4NBAJCP.js";
31
+ } from "./chunk-NY2WVEZ7.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -282830,8 +282830,8 @@ function isValidToolName(name3, options = {}) {
282830
282830
  }
282831
282831
 
282832
282832
  // packages/core/src/generated/git-commit.ts
282833
- var GIT_COMMIT_INFO = "761f604c1";
282834
- var CLI_VERSION = "0.55.0-nightly.20260729.g3499c84f7";
282833
+ var GIT_COMMIT_INFO = "d5c9a97dc";
282834
+ var CLI_VERSION = "0.56.0-nightly.20260806.g761f604c1";
282835
282835
 
282836
282836
  // packages/core/src/ide/detect-ide.ts
282837
282837
  var IDE_DEFINITIONS = {
@@ -306413,7 +306413,7 @@ function getVersion() {
306413
306413
  }
306414
306414
  versionPromise = (async () => {
306415
306415
  const pkgJson = await getPackageJson(__dirname4);
306416
- return "0.55.0-nightly.20260729.g3499c84f7";
306416
+ return "0.56.0-nightly.20260806.g761f604c1";
306417
306417
  })();
306418
306418
  return versionPromise;
306419
306419
  }
@@ -341222,7 +341222,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
341222
341222
  return provider;
341223
341223
  }
341224
341224
  case "oauth2": {
341225
- const { OAuth2AuthProvider } = await import("./oauth2-provider-QNQQSC5U.js");
341225
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-5YBZQZSE.js");
341226
341226
  const provider = new OAuth2AuthProvider(
341227
341227
  authConfig,
341228
341228
  options.agentName ?? "unknown",
@@ -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-SEQ766WD.js";
4
+ } from "./chunk-7EFTTKL6.js";
5
5
  import {
6
6
  RELEASE_CHANNEL_STABILITY,
7
7
  debugLogger,
8
8
  getChannelFromVersion,
9
9
  isGitRepository
10
- } from "./chunk-KNRWWK34.js";
10
+ } from "./chunk-NY2WVEZ7.js";
11
11
 
12
12
  // packages/cli/src/utils/installationInfo.ts
13
13
  import * as fs from "node:fs";
@@ -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-ZJYQ3FQK.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-XOJVYHCN.js";
18
+ import {
19
+ debugLogger
20
+ } from "./chunk-UBFHCNW7.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
+ */