@google/gemini-cli 0.57.0-preview.1 → 0.58.0-preview.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/bundle/{chunk-3BVBON3V.js → chunk-2BLMLPHM.js} +1 -1
  2. package/bundle/{chunk-GK7NUJ35.js → chunk-2DH4DX65.js} +1 -1
  3. package/bundle/{chunk-ZMPGHLGO.js → chunk-2XOTT2FI.js} +2 -2
  4. package/bundle/{chunk-S5UX3QS5.js → chunk-4FKXMALD.js} +3 -3
  5. package/bundle/{chunk-O7SBKM7M.js → chunk-4KFMA4KD.js} +242 -106
  6. package/bundle/{chunk-UMQE7UC6.js → chunk-6EGII27G.js} +3 -3
  7. package/bundle/{chunk-VBK54QCZ.js → chunk-7HQEQECM.js} +1 -1
  8. package/bundle/{chunk-RLDNUS35.js → chunk-BOI2NL3I.js} +1 -1
  9. package/bundle/{chunk-EAK33LFP.js → chunk-CNAVMEMA.js} +1 -1
  10. package/bundle/{chunk-AKCYXG7C.js → chunk-E7K62ODO.js} +7 -7
  11. package/bundle/{chunk-ALVDOQNA.js → chunk-FJTXPUG2.js} +1 -1
  12. package/bundle/{chunk-4ALCU2HQ.js → chunk-FMLOQLUD.js} +5 -8
  13. package/bundle/{chunk-MBWROXYM.js → chunk-GNLIR4RW.js} +2 -2
  14. package/bundle/{chunk-GMQ6QNZB.js → chunk-JCGNL7TH.js} +1 -1
  15. package/bundle/{chunk-65C235NM.js → chunk-JO5YRKX4.js} +7 -7
  16. package/bundle/{chunk-3NPMAHLX.js → chunk-JPMNKIVX.js} +1 -1
  17. package/bundle/{chunk-NPOI4K6X.js → chunk-M33HH4UA.js} +14468 -7648
  18. package/bundle/{chunk-NQ4RH42O.js → chunk-OEY2TDVE.js} +8 -9
  19. package/bundle/{chunk-W23OOD2C.js → chunk-PGYTXBPD.js} +3 -3
  20. package/bundle/{chunk-SCBVGZXH.js → chunk-PXFYRLFH.js} +1 -1
  21. package/bundle/{chunk-Q73BPF7A.js → chunk-RBQHWQSS.js} +1 -1
  22. package/bundle/{chunk-G65GW52B.js → chunk-TYMOJXZO.js} +181 -45
  23. package/bundle/{chunk-FHDRG5U4.js → chunk-WE4JKUV6.js} +54 -67
  24. package/bundle/{chunk-NMMXRZ53.js → chunk-WHCFVERV.js} +2 -2
  25. package/bundle/{cleanup-2W5DPMY3.js → cleanup-KTXX3JEU.js} +2 -2
  26. package/bundle/{cleanup-OTHE7RNU.js → cleanup-NLNXSTS6.js} +2 -2
  27. package/bundle/{cleanup-SM67K64R.js → cleanup-RW3JYSTT.js} +2 -2
  28. package/bundle/{core-US34OW5M.js → core-SU4ABXSV.js} +3 -1
  29. package/bundle/{dist-5TYMQVIZ.js → core-WFITWJMX.js} +3 -1
  30. package/bundle/{devtoolsService-GU2GQSOF.js → devtoolsService-BUAVSMN6.js} +2 -2
  31. package/bundle/{devtoolsService-5J53UK6Z.js → devtoolsService-MNBGW66M.js} +2 -2
  32. package/bundle/{devtoolsService-JBFUXTCT.js → devtoolsService-P42LXPJX.js} +3 -4
  33. package/bundle/{dist-OWKHVWTR.js → dist-2CGQYGZC.js} +3 -1
  34. package/bundle/docs/changelogs/preview.md +78 -94
  35. package/bundle/{gemini-LSMTDETS.js → gemini-3PHRRMWS.js} +266 -20
  36. package/bundle/{gemini-W2B6CLJC.js → gemini-BUCCXM4N.js} +450 -220
  37. package/bundle/{gemini-3M22N2C3.js → gemini-VIRT6VT3.js} +266 -20
  38. package/bundle/gemini.js +7 -7
  39. package/bundle/{interactiveCli-LQJM6LRE.js → interactiveCli-BP2ZFGLX.js} +8 -9
  40. package/bundle/{interactiveCli-L3ZXOVEV.js → interactiveCli-GGARXT6P.js} +296 -316
  41. package/bundle/{interactiveCli-D6H37PJQ.js → interactiveCli-N6VXS5Z4.js} +8 -9
  42. package/bundle/{liteRtServerManager-3BY6TBHG.js → liteRtServerManager-L46MRFSW.js} +4 -4
  43. package/bundle/{liteRtServerManager-C5WZRQUF.js → liteRtServerManager-QUODN3RR.js} +4 -4
  44. package/bundle/{liteRtServerManager-IGKUGGP4.js → liteRtServerManager-YLOGF7RQ.js} +4 -4
  45. package/bundle/{oauth2-provider-KSRLPOK3.js → oauth2-provider-BKWSLZJ6.js} +1 -1
  46. package/bundle/{oauth2-provider-VHNLCU4Y.js → oauth2-provider-IIC2YPC5.js} +72 -38
  47. package/bundle/{oauth2-provider-RWKTMYJF.js → oauth2-provider-KVIL4ITH.js} +1 -1
  48. package/bundle/policies/write.toml +10 -2
  49. package/bundle/sandbox-macos-permissive-open.sb +50 -0
  50. package/bundle/sandbox-macos-permissive-proxied.sb +50 -0
  51. package/bundle/sandbox-macos-restrictive-open.sb +50 -1
  52. package/bundle/sandbox-macos-restrictive-proxied.sb +50 -0
  53. package/bundle/sandbox-macos-strict-open.sb +50 -0
  54. package/bundle/sandbox-macos-strict-proxied.sb +50 -0
  55. package/bundle/{start-EXAQFM4Y.js → start-2365H4YX.js} +6 -6
  56. package/bundle/{start-IPZF32E3.js → start-VPQOFEIR.js} +6 -6
  57. package/bundle/{start-SVNTSNHV.js → start-Y7LKFE47.js} +6 -6
  58. package/package.json +1 -1
  59. package/bundle/chunk-4SNEOO5E.js +0 -398
  60. package/bundle/chunk-LNXGFWGZ.js +0 -17332
  61. package/bundle/chunk-QJP6CMLN.js +0 -118
  62. package/bundle/chunk-SWQAIZEQ.js +0 -102506
  63. package/bundle/chunk-VGGWKRAC.js +0 -154
  64. package/bundle/chunk-WDFSF5L4.js +0 -397601
  65. package/bundle/chunk-XESAM7IL.js +0 -512
  66. package/bundle/chunk-Y3APL4PE.js +0 -1571
  67. package/bundle/cleanup-XAUT5CMD.js +0 -32
  68. package/bundle/devtoolsService-V46GUHRF.js +0 -4359
  69. package/bundle/dist-V5VJYW6J.js +0 -2180
  70. package/bundle/gemini-OZOYJF22.js +0 -17091
  71. package/bundle/interactiveCli-RGOYDSMH.js +0 -34984
  72. package/bundle/liteRtServerManager-IJ4I2PZA.js +0 -65
  73. package/bundle/oauth2-provider-ZT4OFVMK.js +0 -235
  74. 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
- */