@google/gemini-cli 0.49.0-nightly.20260625.gd845bc5d4 → 0.49.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 (66) hide show
  1. package/bundle/{chunk-DQARXBEA.js → chunk-2KPOY3PT.js} +1 -1
  2. package/bundle/{chunk-GP3HT3XA.js → chunk-5D76V46E.js} +1 -1
  3. package/bundle/{chunk-W4CY6ZAV.js → chunk-6SAPFKW2.js} +7 -7
  4. package/bundle/{chunk-KZTYIR7T.js → chunk-DG2DMXNL.js} +4 -4
  5. package/bundle/{chunk-M3LLLH4Q.js → chunk-DUXXYDOU.js} +14099 -7557
  6. package/bundle/{chunk-VFEUUHDP.js → chunk-GD7RCEFJ.js} +1 -1
  7. package/bundle/{chunk-Z7VJ5D2F.js → chunk-HHBELWTD.js} +1 -1
  8. package/bundle/{chunk-2H7H7LHE.js → chunk-KUPS66EC.js} +1 -1
  9. package/bundle/{chunk-ZUVD4OMS.js → chunk-KVKWITLW.js} +1 -1
  10. package/bundle/{chunk-CZXPXLF4.js → chunk-LJT2N46V.js} +2 -2
  11. package/bundle/{chunk-KEKQ7HNE.js → chunk-MT2PHBHF.js} +54 -67
  12. package/bundle/{chunk-6WLO7RJO.js → chunk-O3DZHA75.js} +3 -3
  13. package/bundle/{chunk-N6JHSW2E.js → chunk-QJ52LUEZ.js} +1 -1
  14. package/bundle/{chunk-PGI5U4RD.js → chunk-RWFC7SH2.js} +8 -9
  15. package/bundle/{chunk-LZSQIPID.js → chunk-SWRFLYQS.js} +3 -3
  16. package/bundle/{chunk-D7ASGNGV.js → chunk-THSPF7UM.js} +7 -7
  17. package/bundle/{chunk-JNWGPSWO.js → chunk-UTCNY4YR.js} +1 -1
  18. package/bundle/{chunk-4ZKDF6RJ.js → chunk-UXLDTYS5.js} +1 -1
  19. package/bundle/{chunk-LHQTFC5V.js → chunk-V33X6KEX.js} +2 -2
  20. package/bundle/{chunk-IH4N7SHL.js → chunk-VLV2BYPM.js} +4 -4
  21. package/bundle/{chunk-5VDCISGZ.js → chunk-VSVATFSS.js} +2 -2
  22. package/bundle/{chunk-NSCBFJB5.js → chunk-WDIGNHW2.js} +5 -8
  23. package/bundle/{chunk-DVXL5G45.js → chunk-YAWAHLTJ.js} +1 -1
  24. package/bundle/{chunk-SM66ZQJE.js → chunk-YP5PXUYC.js} +3 -3
  25. package/bundle/{cleanup-7ZAS2HJC.js → cleanup-J3QILUCY.js} +2 -2
  26. package/bundle/{cleanup-OWDILGDO.js → cleanup-UIXA2GEB.js} +2 -2
  27. package/bundle/{cleanup-UAXXCVMU.js → cleanup-YMPS4FUE.js} +2 -2
  28. package/bundle/{core-U7XFRGTW.js → core-64JIIVRX.js} +1 -1
  29. package/bundle/{dist-5MIUEMAQ.js → core-ELQDFBG3.js} +1 -1
  30. package/bundle/{devtoolsService-5OSGJYDS.js → devtoolsService-HCHZ2F6P.js} +2 -2
  31. package/bundle/{devtoolsService-6LH5MZBL.js → devtoolsService-HSYIYY4G.js} +3 -4
  32. package/bundle/{devtoolsService-6HAVTQZ5.js → devtoolsService-YX6EFIXG.js} +2 -2
  33. package/bundle/{dist-B6J3QDWI.js → dist-CLCQE7YY.js} +1 -1
  34. package/bundle/{gemini-H6TAAPCA.js → gemini-APNDCIQH.js} +196 -212
  35. package/bundle/{gemini-6SJTD2W4.js → gemini-FSMCKCVD.js} +14 -14
  36. package/bundle/{gemini-3BRU2HQK.js → gemini-MHDYPMBW.js} +13 -13
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-B6MSN4C4.js → interactiveCli-4GI574PD.js} +8 -8
  39. package/bundle/{interactiveCli-KOS354WR.js → interactiveCli-PM57R35K.js} +295 -314
  40. package/bundle/{interactiveCli-BS2D2SBI.js → interactiveCli-PR7HIXJT.js} +8 -8
  41. package/bundle/{liteRtServerManager-FWHYC4A3.js → liteRtServerManager-IXIJTRUX.js} +4 -4
  42. package/bundle/{liteRtServerManager-HIIW3S66.js → liteRtServerManager-SRAMJKDM.js} +4 -4
  43. package/bundle/{liteRtServerManager-M7B3AIIU.js → liteRtServerManager-TYKWESZG.js} +4 -4
  44. package/bundle/{oauth2-provider-RILC6FBL.js → oauth2-provider-4UAT62TZ.js} +1 -1
  45. package/bundle/{oauth2-provider-G7I2PMHS.js → oauth2-provider-I7ZHNJPU.js} +72 -38
  46. package/bundle/{oauth2-provider-EA2VTAQO.js → oauth2-provider-UU4JM5RG.js} +1 -1
  47. package/bundle/{start-AVLVGFFA.js → start-C5MXXCE7.js} +6 -6
  48. package/bundle/{start-CCQWWAKJ.js → start-RIHKQGGY.js} +6 -6
  49. package/bundle/{start-FI6MCT26.js → start-W4HQTHNO.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-6VICSAQD.js +0 -154
  52. package/bundle/chunk-EB5KWRK7.js +0 -512
  53. package/bundle/chunk-IP2NI6CQ.js +0 -398
  54. package/bundle/chunk-M43EUC7R.js +0 -1571
  55. package/bundle/chunk-P3C2ZDOD.js +0 -102505
  56. package/bundle/chunk-SSMJN6LA.js +0 -387674
  57. package/bundle/chunk-TNS2COLB.js +0 -17332
  58. package/bundle/chunk-YNU56L7B.js +0 -118
  59. package/bundle/cleanup-VF75F443.js +0 -32
  60. package/bundle/devtoolsService-OV63XS6S.js +0 -4359
  61. package/bundle/dist-GPCVSENP.js +0 -2150
  62. package/bundle/gemini-R6VOKNQ4.js +0 -29270
  63. package/bundle/interactiveCli-HSHPW4IB.js +0 -34767
  64. package/bundle/liteRtServerManager-ZMLRN3HQ.js +0 -65
  65. package/bundle/oauth2-provider-KED65L5Q.js +0 -235
  66. package/bundle/start-OOI6CRQA.js +0 -18
@@ -1,118 +0,0 @@
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-DVXL5G45.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-VFEUUHDP.js";
18
- import {
19
- debugLogger
20
- } from "./chunk-KZTYIR7T.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,32 +0,0 @@
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
- cleanupCheckpoints,
4
- registerCleanup,
5
- registerSyncCleanup,
6
- registerTelemetryConfig,
7
- removeCleanup,
8
- removeSyncCleanup,
9
- resetCleanupForTesting,
10
- runExitCleanup,
11
- runSyncCleanup,
12
- setupSignalHandlers,
13
- setupTtyCheck
14
- } from "./chunk-N6JHSW2E.js";
15
- import "./chunk-SSMJN6LA.js";
16
- import "./chunk-664ZODQF.js";
17
- import "./chunk-TUDYL3X4.js";
18
- import "./chunk-IUUIT4SU.js";
19
- import "./chunk-34MYV7JD.js";
20
- export {
21
- cleanupCheckpoints,
22
- registerCleanup,
23
- registerSyncCleanup,
24
- registerTelemetryConfig,
25
- removeCleanup,
26
- removeSyncCleanup,
27
- resetCleanupForTesting,
28
- runExitCleanup,
29
- runSyncCleanup,
30
- setupSignalHandlers,
31
- setupTtyCheck
32
- };