@google/gemini-cli 0.43.0-preview.1 → 0.43.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 (67) hide show
  1. package/bundle/{chunk-LTSFEC7U.js → chunk-2PZUIVU3.js} +2 -2
  2. package/bundle/{chunk-EWAAFVBK.js → chunk-4IXP3BQP.js} +1 -1
  3. package/bundle/{chunk-N3MLU4IQ.js → chunk-4N6JQGX6.js} +7 -7
  4. package/bundle/{chunk-6YMGRLOQ.js → chunk-5LLZICYH.js} +1 -1
  5. package/bundle/{chunk-CKPZGEE3.js → chunk-6KWJMH6E.js} +2 -2
  6. package/bundle/{chunk-L4LBKMR6.js → chunk-6LSSATGP.js} +1 -1
  7. package/bundle/{chunk-QAQT56LH.js → chunk-6PXLKFEE.js} +3 -3
  8. package/bundle/{chunk-ICOPZSVB.js → chunk-AR2D7G5V.js} +3 -3
  9. package/bundle/{chunk-3BNJIKEP.js → chunk-DB4PQOJV.js} +2 -2
  10. package/bundle/{chunk-UBCHSKF2.js → chunk-DP6V2BFN.js} +7 -7
  11. package/bundle/{chunk-4ZT3EIBI.js → chunk-KL6UT6F7.js} +1 -1
  12. package/bundle/{chunk-VSTO23O2.js → chunk-KZP4B2KY.js} +1 -1
  13. package/bundle/{chunk-IF5BAOVJ.js → chunk-ORAERZ7C.js} +1 -1
  14. package/bundle/{chunk-NG2WIKH5.js → chunk-QH43L44B.js} +4 -4
  15. package/bundle/{chunk-PLEERNRJ.js → chunk-SP2PGMIB.js} +2 -2
  16. package/bundle/{chunk-DJCG6GWZ.js → chunk-SSOGRVCN.js} +2 -2
  17. package/bundle/{chunk-LTFEPQ67.js → chunk-TK52UAKX.js} +1 -1
  18. package/bundle/{chunk-4G3X2H3F.js → chunk-TUSXQIOT.js} +6 -9
  19. package/bundle/{chunk-MRVZNBXY.js → chunk-U6X4OPT5.js} +4 -4
  20. package/bundle/{chunk-S36EONMM.js → chunk-UH3BLMAQ.js} +1 -1
  21. package/bundle/{chunk-KILFUY3Y.js → chunk-VNPDB5AB.js} +1 -1
  22. package/bundle/{chunk-NDSJWRFE.js → chunk-W2MTI7FK.js} +13059 -6973
  23. package/bundle/{chunk-4SLX6GS6.js → chunk-YS4NB3TW.js} +54 -67
  24. package/bundle/{chunk-CZPVSLJF.js → chunk-ZWSMHWOL.js} +8 -9
  25. package/bundle/{cleanup-NMUMRIEF.js → cleanup-5M6XXPD5.js} +2 -2
  26. package/bundle/{cleanup-LMJA4J5S.js → cleanup-RDTCKYOC.js} +3 -3
  27. package/bundle/{cleanup-BMLCC7SO.js → cleanup-TI2NCMMY.js} +2 -2
  28. package/bundle/{core-WXTAU5UX.js → core-KK5NR7XJ.js} +1 -1
  29. package/bundle/{dist-MXL7ZG46.js → core-PKLJMNGJ.js} +2 -2
  30. package/bundle/{devtoolsService-6THA6GNX.js → devtoolsService-I65SE4OX.js} +2 -2
  31. package/bundle/{devtoolsService-2L5U47ZQ.js → devtoolsService-OFCX6SOA.js} +2 -2
  32. package/bundle/{devtoolsService-J2AC6YXM.js → devtoolsService-WA4GU73C.js} +4 -5
  33. package/bundle/{dist-DIIMIT2U.js → dist-BDJKFMK4.js} +1 -1
  34. package/bundle/{gemini-HYQU2RK2.js → gemini-H266Z57W.js} +188 -202
  35. package/bundle/{gemini-D32FDZXN.js → gemini-PBHAWQU6.js} +14 -14
  36. package/bundle/{gemini-DLZ2R4X7.js → gemini-YQATFAPB.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-NR7OUF3G.js → interactiveCli-2RXDSQZ7.js} +8 -8
  39. package/bundle/{interactiveCli-K7ETWJMN.js → interactiveCli-MHCNTGQB.js} +296 -315
  40. package/bundle/{interactiveCli-DHMPW4RS.js → interactiveCli-YR3FARLA.js} +8 -8
  41. package/bundle/{liteRtServerManager-PKRLUK2P.js → liteRtServerManager-HTBHSP3E.js} +4 -4
  42. package/bundle/{liteRtServerManager-L7C3D5RL.js → liteRtServerManager-WMZJWUGC.js} +4 -4
  43. package/bundle/{liteRtServerManager-UPCAT7Z2.js → liteRtServerManager-ZU6GBYTQ.js} +5 -5
  44. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  45. package/bundle/{oauth2-provider-52IJKUJI.js → oauth2-provider-7A7OEBRV.js} +1 -1
  46. package/bundle/{oauth2-provider-OPOTTZ5C.js → oauth2-provider-7AMBXQXB.js} +1 -1
  47. package/bundle/{oauth2-provider-WN4YIDA4.js → oauth2-provider-EUHAWOQQ.js} +73 -39
  48. package/bundle/{start-TMFPUYEL.js → start-D7BGLINR.js} +6 -6
  49. package/bundle/{start-6KIIUSAH.js → start-FNWNJC6F.js} +7 -7
  50. package/bundle/{start-7ZNSGJD6.js → start-ZXZSKJFC.js} +6 -6
  51. package/package.json +1 -1
  52. package/bundle/chunk-ERQUIEOO.js +0 -512
  53. package/bundle/chunk-F7PEGIBA.js +0 -156
  54. package/bundle/chunk-UB4AWMZC.js +0 -391
  55. package/bundle/chunk-ULCEBJMK.js +0 -17248
  56. package/bundle/chunk-UUHMEKLA.js +0 -357199
  57. package/bundle/chunk-UW3H4T6A.js +0 -1571
  58. package/bundle/chunk-XKIM3BNI.js +0 -118
  59. package/bundle/chunk-YIHNW7CC.js +0 -81649
  60. package/bundle/cleanup-M7RSLDBR.js +0 -33
  61. package/bundle/devtoolsService-SRWIME2Q.js +0 -857
  62. package/bundle/dist-POIHCQVM.js +0 -2124
  63. package/bundle/gemini-JJG7ZGWB.js +0 -16356
  64. package/bundle/interactiveCli-X4AUP7T7.js +0 -34752
  65. package/bundle/liteRtServerManager-TEBDIGEN.js +0 -66
  66. package/bundle/oauth2-provider-TOAKXOL7.js +0 -237
  67. package/bundle/start-EPIILWLN.js +0 -19
@@ -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-S36EONMM.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-4G3X2H3F.js";
18
- import {
19
- debugLogger
20
- } from "./chunk-UJ26GAE5.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
- */