@google/gemini-cli 0.61.0-preview.1 → 0.61.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-LZGP7KFI.js → chunk-2YTYPKEZ.js} +1 -1
  2. package/bundle/{chunk-4YQFFXRN.js → chunk-3BON7LO7.js} +1 -1
  3. package/bundle/{chunk-BHKACUMI.js → chunk-3YIQF3FY.js} +3 -3
  4. package/bundle/{chunk-MNBKYFEY.js → chunk-4DKTUBCF.js} +8 -9
  5. package/bundle/{chunk-MXQQJJNZ.js → chunk-4GP6HFBO.js} +7 -7
  6. package/bundle/{chunk-VSZD56FP.js → chunk-55E6VPR2.js} +54 -67
  7. package/bundle/{chunk-X63OLHR4.js → chunk-5FZXKDXH.js} +4 -4
  8. package/bundle/{chunk-O4KOWLVM.js → chunk-5V744PDA.js} +1 -1
  9. package/bundle/{chunk-BFB2YEJY.js → chunk-75COGLDC.js} +1 -1
  10. package/bundle/{chunk-PBNOO4UX.js → chunk-AMOGWHKC.js} +1 -1
  11. package/bundle/{chunk-TFQNPQHU.js → chunk-BS3JDRJQ.js} +1 -1
  12. package/bundle/{chunk-4D7PRDBS.js → chunk-DWY2O4BN.js} +1 -1
  13. package/bundle/{chunk-UEKG6P2N.js → chunk-DZZAUXYI.js} +5 -8
  14. package/bundle/{chunk-EM2O5AOZ.js → chunk-FJCIWVRV.js} +3 -3
  15. package/bundle/{chunk-KXVODVLE.js → chunk-HPLZM7PQ.js} +7 -7
  16. package/bundle/{chunk-HDPU5WOJ.js → chunk-JDPZ4CE3.js} +4 -4
  17. package/bundle/{chunk-GOOJJ7ZQ.js → chunk-RWXT3CQ6.js} +1 -1
  18. package/bundle/{chunk-OTWH6H2T.js → chunk-S2Z77X3K.js} +2 -2
  19. package/bundle/{chunk-FSZD7V6N.js → chunk-S7IITRXI.js} +2 -2
  20. package/bundle/{chunk-EUZJSBKR.js → chunk-TQ3FGGPE.js} +1 -1
  21. package/bundle/{chunk-SABJGE2G.js → chunk-VT3MBDD3.js} +3 -3
  22. package/bundle/{chunk-YD7YFB3H.js → chunk-W766PNZK.js} +2 -2
  23. package/bundle/{chunk-NQXTLK5U.js → chunk-Y2J3C62M.js} +14630 -7763
  24. package/bundle/{chunk-34PFYALD.js → chunk-YKD74FOF.js} +1 -1
  25. package/bundle/{cleanup-DGDWVDXX.js → cleanup-KRMS36ET.js} +2 -2
  26. package/bundle/{cleanup-ILJI4AEW.js → cleanup-PWFFQ2ZF.js} +2 -2
  27. package/bundle/{cleanup-QW4EQ3QR.js → cleanup-XO3PUOXN.js} +2 -2
  28. package/bundle/{core-HFCJBVEU.js → core-4U3AXZ3Y.js} +1 -1
  29. package/bundle/{dist-2BSGBE32.js → core-BYHFA5QC.js} +1 -1
  30. package/bundle/{devtoolsService-KXJDH42U.js → devtoolsService-4LLMXKZ3.js} +2 -2
  31. package/bundle/{devtoolsService-LWSF6JIT.js → devtoolsService-JTGAYMK3.js} +2 -2
  32. package/bundle/{devtoolsService-N3A5BSJN.js → devtoolsService-KPCAEWJX.js} +3 -4
  33. package/bundle/{dist-6YQ35ICZ.js → dist-3UYXETJU.js} +1 -1
  34. package/bundle/{gemini-ATQ3WGVL.js → gemini-3HFX2LNT.js} +14 -14
  35. package/bundle/{gemini-5UNXMZT3.js → gemini-4IF7D7UG.js} +198 -214
  36. package/bundle/{gemini-G7D5KPQ2.js → gemini-NPCD6A4N.js} +14 -14
  37. package/bundle/gemini.js +7 -7
  38. package/bundle/{interactiveCli-WC6IXMOE.js → interactiveCli-4ZJLSCID.js} +8 -8
  39. package/bundle/{interactiveCli-EAB7PSHJ.js → interactiveCli-F3TDVF3E.js} +296 -315
  40. package/bundle/{interactiveCli-JYJNFC5D.js → interactiveCli-TRXNUIPM.js} +8 -8
  41. package/bundle/{liteRtServerManager-27LLIZ3H.js → liteRtServerManager-C5EQRV4O.js} +4 -4
  42. package/bundle/{liteRtServerManager-HB6JSWYM.js → liteRtServerManager-LQNV6EK2.js} +4 -4
  43. package/bundle/{liteRtServerManager-NSPOA7KV.js → liteRtServerManager-T6NSUQ7G.js} +4 -4
  44. package/bundle/{oauth2-provider-5CXK7KFQ.js → oauth2-provider-B67V2HIE.js} +1 -1
  45. package/bundle/{oauth2-provider-N7JBWITO.js → oauth2-provider-CIEE5U5B.js} +72 -38
  46. package/bundle/{oauth2-provider-FYIOQREN.js → oauth2-provider-UXWR2XFY.js} +1 -1
  47. package/bundle/{start-4CI64D6Q.js → start-4GM5UE3J.js} +6 -6
  48. package/bundle/{start-MHS6EQUA.js → start-7IHG7KRC.js} +6 -6
  49. package/bundle/{start-OO24SR5D.js → start-FBWB5XJU.js} +6 -6
  50. package/package.json +1 -1
  51. package/bundle/chunk-7HAUMOMS.js +0 -102678
  52. package/bundle/chunk-H6SLDOAI.js +0 -398
  53. package/bundle/chunk-JKUZ4FYJ.js +0 -154
  54. package/bundle/chunk-NXDIRTLT.js +0 -512
  55. package/bundle/chunk-OO7JC2QX.js +0 -399635
  56. package/bundle/chunk-UST2ZL7P.js +0 -1571
  57. package/bundle/chunk-ZAUQFML4.js +0 -118
  58. package/bundle/chunk-ZXK7SZMG.js +0 -17368
  59. package/bundle/cleanup-R6YFTONK.js +0 -32
  60. package/bundle/devtoolsService-N4LL6WGD.js +0 -4359
  61. package/bundle/dist-C4IKSTQN.js +0 -2232
  62. package/bundle/gemini-RWMUQAJ6.js +0 -17764
  63. package/bundle/interactiveCli-KQPTYHND.js +0 -35029
  64. package/bundle/liteRtServerManager-WXCFUD52.js +0 -65
  65. package/bundle/oauth2-provider-Z7WSYKBF.js +0 -235
  66. package/bundle/start-WRVCTB7Z.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-4D7PRDBS.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-LZGP7KFI.js";
18
- import {
19
- debugLogger
20
- } from "./chunk-HDPU5WOJ.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
- */