@google/gemini-cli 0.67.0-nightly.20261104.g89e9d25d6 → 0.67.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 (74) hide show
  1. package/README.md +24 -18
  2. package/bundle/{chunk-TAYMSEDM.js → chunk-2E3ETS5J.js} +2 -2
  3. package/bundle/{chunk-2VRD7O3N.js → chunk-4JH2G4F4.js} +3 -3
  4. package/bundle/{chunk-AT7K3IZG.js → chunk-56IGTM4O.js} +1 -1
  5. package/bundle/{chunk-B2FKXXUH.js → chunk-5RNHNFYV.js} +106 -327
  6. package/bundle/{chunk-R7UEKGMB.js → chunk-7LX6MRZ6.js} +1 -1
  7. package/bundle/{chunk-HU3K5KGK.js → chunk-BW65QRZA.js} +11 -9
  8. package/bundle/{chunk-5WHCLVFH.js → chunk-CJFBYU4J.js} +157 -391
  9. package/bundle/{chunk-NMKJ47HQ.js → chunk-GBUWHRK6.js} +3 -3
  10. package/bundle/{chunk-VBHMFLBY.js → chunk-IDJ4QXBF.js} +1 -1
  11. package/bundle/{chunk-JMHCFAD6.js → chunk-IGE3G3WZ.js} +1 -1
  12. package/bundle/{chunk-RCF66HCI.js → chunk-LAR4JEC7.js} +1008 -1627
  13. package/bundle/{chunk-CXMHAFLN.js → chunk-M73CYIV5.js} +2 -2
  14. package/bundle/{chunk-TB5I5645.js → chunk-MQNW2IRI.js} +2 -2
  15. package/bundle/{chunk-DKKEYKSG.js → chunk-NGQU3QTQ.js} +996 -1558
  16. package/bundle/{chunk-VLYI5NP4.js → chunk-O7MGOE2I.js} +16023 -9466
  17. package/bundle/{chunk-RD2EMHV2.js → chunk-OJ62HCXG.js} +1 -1
  18. package/bundle/{chunk-HRM7UWGB.js → chunk-P62CI7AR.js} +11 -9
  19. package/bundle/{chunk-H3WGFU7D.js → chunk-PUNFASKY.js} +1 -1
  20. package/bundle/{chunk-L77QEOSK.js → chunk-QA5FT4VY.js} +3 -3
  21. package/bundle/{chunk-WY3X2UP2.js → chunk-QTXJG3I3.js} +8 -9
  22. package/bundle/{chunk-XBEZPOEF.js → chunk-VK766A3F.js} +1 -1
  23. package/bundle/{chunk-3DAQUNXR.js → chunk-VO6PFWLY.js} +15 -15
  24. package/bundle/{chunk-ILNZCTNC.js → chunk-XETHQLRU.js} +106 -327
  25. package/bundle/{chunk-7SSKD5HN.js → chunk-YUO7RUF4.js} +1 -1
  26. package/bundle/{cleanup-3ALSKRBJ.js → cleanup-B6AOSVD4.js} +2 -2
  27. package/bundle/{cleanup-6DVNSRQY.js → cleanup-BRFB47DL.js} +2 -2
  28. package/bundle/{cleanup-HRNPECKR.js → cleanup-S5QFYCEP.js} +2 -2
  29. package/bundle/{core-NQRKBS47.js → core-GTUUQBGE.js} +1 -3
  30. package/bundle/{dist-QYTQZ6QW.js → core-N27LU4DK.js} +1 -3
  31. package/bundle/{devtoolsService-EWNQDTC7.js → devtoolsService-6V46WMXX.js} +2 -2
  32. package/bundle/{devtoolsService-64TPRUWQ.js → devtoolsService-E74ZMDMM.js} +2 -2
  33. package/bundle/{devtoolsService-E6I4WSAL.js → devtoolsService-EFJXZRFD.js} +3 -4
  34. package/bundle/{dist-L5NYU7FF.js → dist-E6RCLXQU.js} +1 -3
  35. package/bundle/docs/changelogs/index.md +0 -24
  36. package/bundle/docs/changelogs/latest.md +90 -83
  37. package/bundle/docs/changelogs/preview.md +87 -89
  38. package/bundle/docs/cli/sandbox.md +2 -8
  39. package/bundle/docs/cli/themes.md +3 -6
  40. package/bundle/docs/extensions/releasing.md +0 -32
  41. package/bundle/docs/reference/configuration.md +10 -2
  42. package/bundle/{gemini-YFCTZ76S.js → gemini-4JPKPLQN.js} +24 -122
  43. package/bundle/{gemini-QAVNR7N4.js → gemini-QWDTSJTS.js} +209 -323
  44. package/bundle/{gemini-7USJ6MGR.js → gemini-VF5FS3OM.js} +24 -122
  45. package/bundle/gemini.js +7 -7
  46. package/bundle/{interactiveCli-X54KN2EM.js → interactiveCli-F2YYMYTP.js} +1145 -1350
  47. package/bundle/{interactiveCli-XN43CGES.js → interactiveCli-FQ3YKGOG.js} +1428 -1652
  48. package/bundle/{interactiveCli-3VTQP4GH.js → interactiveCli-QJZZISQQ.js} +1145 -1350
  49. package/bundle/{liteRtServerManager-E4PDEWY3.js → liteRtServerManager-27R2M6XE.js} +4 -4
  50. package/bundle/{liteRtServerManager-ENSSU4TN.js → liteRtServerManager-JAV3GR4V.js} +4 -4
  51. package/bundle/{liteRtServerManager-FLPMMDNM.js → liteRtServerManager-X5CCMKM6.js} +4 -4
  52. package/bundle/{oauth2-provider-3MJNDLJF.js → oauth2-provider-6UCP23AQ.js} +1 -1
  53. package/bundle/{oauth2-provider-VMBYZOC7.js → oauth2-provider-C65IJMNQ.js} +1 -1
  54. package/bundle/{oauth2-provider-ZIZQIT7D.js → oauth2-provider-H2KV36NU.js} +79 -41
  55. package/bundle/{start-B63MUWDV.js → start-E4ZL44QM.js} +6 -6
  56. package/bundle/{start-DFHM4HI4.js → start-GNOA75NQ.js} +6 -6
  57. package/bundle/{start-OHBUJSIL.js → start-K2AYYNST.js} +6 -6
  58. package/package.json +1 -1
  59. package/bundle/chunk-674DJGDU.js +0 -512
  60. package/bundle/chunk-M4REEHDQ.js +0 -185
  61. package/bundle/chunk-NOMIJA6W.js +0 -1956
  62. package/bundle/chunk-ORXIIXSA.js +0 -80453
  63. package/bundle/chunk-Q3OUSMTD.js +0 -39405
  64. package/bundle/chunk-Q76ZDILI.js +0 -118
  65. package/bundle/chunk-T6YNV33L.js +0 -1571
  66. package/bundle/chunk-YTSRA7S6.js +0 -403181
  67. package/bundle/cleanup-OQV2G5Y3.js +0 -34
  68. package/bundle/devtoolsService-PG47POWV.js +0 -4422
  69. package/bundle/dist-LJVRZOCO.js +0 -2298
  70. package/bundle/gemini-QVVNPYKF.js +0 -19271
  71. package/bundle/interactiveCli-ELN2VGHK.js +0 -35871
  72. package/bundle/liteRtServerManager-TYCQMNCE.js +0 -65
  73. package/bundle/oauth2-provider-NLSE3P5W.js +0 -273
  74. package/bundle/start-V3EP7MBL.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-JMHCFAD6.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-HRM7UWGB.js";
18
- import {
19
- debugLogger
20
- } from "./chunk-RCF66HCI.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
- */