@google/gemini-cli 0.57.0-preview.1 → 0.57.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-S5UX3QS5.js → chunk-4H4K2RBL.js} +3 -3
  2. package/bundle/{chunk-G65GW52B.js → chunk-7HKQGPWB.js} +4 -4
  3. package/bundle/{chunk-EAK33LFP.js → chunk-7IKUWYZO.js} +1 -1
  4. package/bundle/{chunk-ALVDOQNA.js → chunk-7ZGWPQVZ.js} +1 -1
  5. package/bundle/{chunk-ZMPGHLGO.js → chunk-AOE6E7MU.js} +2 -2
  6. package/bundle/{chunk-65C235NM.js → chunk-ASZFEU6C.js} +7 -7
  7. package/bundle/{chunk-O7SBKM7M.js → chunk-DFPYJMVX.js} +4 -4
  8. package/bundle/{chunk-VBK54QCZ.js → chunk-FVC4WCSP.js} +1 -1
  9. package/bundle/{chunk-3BVBON3V.js → chunk-FYAMITQ2.js} +1 -1
  10. package/bundle/{chunk-GK7NUJ35.js → chunk-GAROUUGQ.js} +1 -1
  11. package/bundle/{chunk-3NPMAHLX.js → chunk-GAS2GAYB.js} +1 -1
  12. package/bundle/{chunk-4ALCU2HQ.js → chunk-GPOBVDAD.js} +5 -8
  13. package/bundle/{chunk-RLDNUS35.js → chunk-HY6GN2F7.js} +1 -1
  14. package/bundle/{chunk-AKCYXG7C.js → chunk-IKHAM2LG.js} +7 -7
  15. package/bundle/{chunk-MBWROXYM.js → chunk-ISXOUBN5.js} +2 -2
  16. package/bundle/{chunk-NMMXRZ53.js → chunk-LQJHQ4BU.js} +2 -2
  17. package/bundle/{chunk-UMQE7UC6.js → chunk-MNBBUQQS.js} +3 -3
  18. package/bundle/{chunk-W23OOD2C.js → chunk-O7TOZUUB.js} +3 -3
  19. package/bundle/{chunk-FHDRG5U4.js → chunk-QJ33O2NH.js} +54 -67
  20. package/bundle/{chunk-Q73BPF7A.js → chunk-RLDNVR77.js} +1 -1
  21. package/bundle/{chunk-NPOI4K6X.js → chunk-S3MXVTTY.js} +14357 -7673
  22. package/bundle/{chunk-NQ4RH42O.js → chunk-TAWZWX2B.js} +8 -9
  23. package/bundle/{chunk-GMQ6QNZB.js → chunk-XG56CL6B.js} +1 -1
  24. package/bundle/{chunk-SCBVGZXH.js → chunk-YW7SDLZQ.js} +1 -1
  25. package/bundle/{cleanup-2W5DPMY3.js → cleanup-2HUWGXK6.js} +2 -2
  26. package/bundle/{cleanup-OTHE7RNU.js → cleanup-7N2HFE2E.js} +2 -2
  27. package/bundle/{cleanup-SM67K64R.js → cleanup-DA7OSZS5.js} +2 -2
  28. package/bundle/{core-US34OW5M.js → core-2NMRPWUN.js} +1 -1
  29. package/bundle/{dist-5TYMQVIZ.js → core-CFPIDJ4Z.js} +1 -1
  30. package/bundle/{devtoolsService-5J53UK6Z.js → devtoolsService-7YYOUGVF.js} +2 -2
  31. package/bundle/{devtoolsService-JBFUXTCT.js → devtoolsService-VQSLUOYF.js} +3 -4
  32. package/bundle/{devtoolsService-GU2GQSOF.js → devtoolsService-WMEEEXY6.js} +2 -2
  33. package/bundle/{dist-OWKHVWTR.js → dist-AMP5W5P2.js} +1 -1
  34. package/bundle/{gemini-W2B6CLJC.js → gemini-5LF4JAP7.js} +198 -214
  35. package/bundle/{gemini-LSMTDETS.js → gemini-OYYGXMHL.js} +14 -14
  36. package/bundle/{gemini-3M22N2C3.js → gemini-PSRJNVY5.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-LQJM6LRE.js → interactiveCli-5E2C3XOC.js} +8 -8
  39. package/bundle/{interactiveCli-D6H37PJQ.js → interactiveCli-5O6FZS57.js} +8 -8
  40. package/bundle/{interactiveCli-L3ZXOVEV.js → interactiveCli-PP7WTUZL.js} +296 -315
  41. package/bundle/{liteRtServerManager-3BY6TBHG.js → liteRtServerManager-5QBFCLBK.js} +4 -4
  42. package/bundle/{liteRtServerManager-C5WZRQUF.js → liteRtServerManager-LK6HOSMO.js} +4 -4
  43. package/bundle/{liteRtServerManager-IGKUGGP4.js → liteRtServerManager-ZPDALIDY.js} +4 -4
  44. package/bundle/{oauth2-provider-KSRLPOK3.js → oauth2-provider-BGMEA7RS.js} +1 -1
  45. package/bundle/{oauth2-provider-RWKTMYJF.js → oauth2-provider-BYKBBEKI.js} +1 -1
  46. package/bundle/{oauth2-provider-VHNLCU4Y.js → oauth2-provider-CO22I6UM.js} +72 -38
  47. package/bundle/{start-EXAQFM4Y.js → start-JRTTCV3K.js} +6 -6
  48. package/bundle/{start-IPZF32E3.js → start-KH6WSP5C.js} +6 -6
  49. package/bundle/{start-SVNTSNHV.js → start-O6LWZY6K.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-4SNEOO5E.js +0 -398
  52. package/bundle/chunk-LNXGFWGZ.js +0 -17332
  53. package/bundle/chunk-QJP6CMLN.js +0 -118
  54. package/bundle/chunk-SWQAIZEQ.js +0 -102506
  55. package/bundle/chunk-VGGWKRAC.js +0 -154
  56. package/bundle/chunk-WDFSF5L4.js +0 -397601
  57. package/bundle/chunk-XESAM7IL.js +0 -512
  58. package/bundle/chunk-Y3APL4PE.js +0 -1571
  59. package/bundle/cleanup-XAUT5CMD.js +0 -32
  60. package/bundle/devtoolsService-V46GUHRF.js +0 -4359
  61. package/bundle/dist-V5VJYW6J.js +0 -2180
  62. package/bundle/gemini-OZOYJF22.js +0 -17091
  63. package/bundle/interactiveCli-RGOYDSMH.js +0 -34984
  64. package/bundle/liteRtServerManager-IJ4I2PZA.js +0 -65
  65. package/bundle/oauth2-provider-ZT4OFVMK.js +0 -235
  66. package/bundle/start-ZXU5BFZY.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-RLDNUS35.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-LNXGFWGZ.js";
18
- import {
19
- debugLogger
20
- } from "./chunk-WDFSF5L4.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
- */