@google/gemini-cli 0.42.0 → 0.43.0-preview.1

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 (80) hide show
  1. package/bundle/{chunk-3IS7GD6D.js → chunk-3BNJIKEP.js} +3 -3
  2. package/bundle/{chunk-EDKX67D6.js → chunk-4G3X2H3F.js} +34 -16
  3. package/bundle/{chunk-FCAODPNO.js → chunk-4SLX6GS6.js} +486 -381
  4. package/bundle/{chunk-COKAF5GM.js → chunk-4ZT3EIBI.js} +2 -2
  5. package/bundle/{chunk-NTOPH4WG.js → chunk-6YMGRLOQ.js} +2 -2
  6. package/bundle/{chunk-QOZSZYL7.js → chunk-CKPZGEE3.js} +3 -3
  7. package/bundle/{chunk-G2VTSEZ6.js → chunk-CZPVSLJF.js} +1 -1
  8. package/bundle/{chunk-PUDLNWHE.js → chunk-DJCG6GWZ.js} +3 -3
  9. package/bundle/{chunk-I7AME6VC.js → chunk-ERQUIEOO.js} +9 -8
  10. package/bundle/{chunk-XUMRUXOT.js → chunk-EWAAFVBK.js} +41 -20
  11. package/bundle/{chunk-LATVEETM.js → chunk-F7PEGIBA.js} +2 -2
  12. package/bundle/{chunk-KVEAHIIV.js → chunk-ICOPZSVB.js} +3 -3
  13. package/bundle/{chunk-BCYBA52D.js → chunk-IF5BAOVJ.js} +34 -16
  14. package/bundle/chunk-KILFUY3Y.js +512 -0
  15. package/bundle/{chunk-CYEIWMZJ.js → chunk-L4LBKMR6.js} +1 -1
  16. package/bundle/{chunk-4SLGT6YD.js → chunk-LTFEPQ67.js} +1 -1
  17. package/bundle/{chunk-7C6GGDK6.js → chunk-LTSFEC7U.js} +3 -3
  18. package/bundle/{chunk-7VVHSNDQ.js → chunk-MRVZNBXY.js} +1907 -716
  19. package/bundle/{chunk-COQP2M4D.js → chunk-N3MLU4IQ.js} +546 -428
  20. package/bundle/{chunk-ECNYAST2.js → chunk-N6QYTC2T.js} +5417 -5376
  21. package/bundle/{chunk-DN4XSYRG.js → chunk-NDSJWRFE.js} +8640 -13347
  22. package/bundle/{chunk-DMWX7UP6.js → chunk-NG2WIKH5.js} +2170 -791
  23. package/bundle/chunk-PLEERNRJ.js +156 -0
  24. package/bundle/{chunk-ZNMQA242.js → chunk-QAQT56LH.js} +3 -3
  25. package/bundle/{chunk-WIXUKOZA.js → chunk-S36EONMM.js} +1 -1
  26. package/bundle/chunk-UB4AWMZC.js +391 -0
  27. package/bundle/{chunk-CHERUG6W.js → chunk-UBCHSKF2.js} +486 -381
  28. package/bundle/{chunk-JEW7ZIWE.js → chunk-UJ26GAE5.js} +5326 -5290
  29. package/bundle/chunk-ULCEBJMK.js +17248 -0
  30. package/bundle/chunk-UUHMEKLA.js +357199 -0
  31. package/bundle/chunk-UW3H4T6A.js +1571 -0
  32. package/bundle/{chunk-GA527JB7.js → chunk-VSTO23O2.js} +1 -1
  33. package/bundle/chunk-XKIM3BNI.js +118 -0
  34. package/bundle/chunk-YIHNW7CC.js +81649 -0
  35. package/bundle/{cleanup-3RILFNVM.js → cleanup-BMLCC7SO.js} +3 -3
  36. package/bundle/{cleanup-SVRKYBR6.js → cleanup-LMJA4J5S.js} +3 -3
  37. package/bundle/{cleanup-XFVHHDVO.js → cleanup-M7RSLDBR.js} +3 -3
  38. package/bundle/cleanup-NMUMRIEF.js +33 -0
  39. package/bundle/{core-FRVSDP2C.js → core-WXTAU5UX.js} +30 -2
  40. package/bundle/{devtoolsService-RUEO5PGP.js → devtoolsService-2L5U47ZQ.js} +3 -3
  41. package/bundle/{devtoolsService-VM2WTHBX.js → devtoolsService-6THA6GNX.js} +3 -3
  42. package/bundle/{devtoolsService-TRDGMQLJ.js → devtoolsService-J2AC6YXM.js} +5 -4
  43. package/bundle/devtoolsService-SRWIME2Q.js +857 -0
  44. package/bundle/{dist-6BN2CJPN.js → dist-DIIMIT2U.js} +30 -2
  45. package/bundle/{core-B5S6HZJT.js → dist-MXL7ZG46.js} +30 -2
  46. package/bundle/dist-POIHCQVM.js +2124 -0
  47. package/bundle/docs/changelogs/index.md +14 -0
  48. package/bundle/docs/changelogs/latest.md +108 -166
  49. package/bundle/docs/changelogs/preview.md +227 -103
  50. package/bundle/docs/cli/auto-memory.md +60 -38
  51. package/bundle/docs/cli/settings.md +1 -1
  52. package/bundle/docs/cli/tutorials/memory-management.md +1 -1
  53. package/bundle/docs/extensions/releasing.md +58 -24
  54. package/bundle/docs/reference/configuration.md +14 -1
  55. package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
  56. package/bundle/{gemini-GHUELHBF.js → gemini-D32FDZXN.js} +160 -60
  57. package/bundle/{gemini-QSTQ2DBG.js → gemini-DLZ2R4X7.js} +160 -60
  58. package/bundle/{gemini-NQPVX5JC.js → gemini-HYQU2RK2.js} +345 -231
  59. package/bundle/gemini-JJG7ZGWB.js +16356 -0
  60. package/bundle/gemini.js +8 -8
  61. package/bundle/{interactiveCli-AG2YWL2O.js → interactiveCli-DHMPW4RS.js} +1704 -1457
  62. package/bundle/{interactiveCli-MZFG35NB.js → interactiveCli-K7ETWJMN.js} +1986 -1721
  63. package/bundle/{interactiveCli-453M2IVE.js → interactiveCli-NR7OUF3G.js} +1703 -1457
  64. package/bundle/interactiveCli-X4AUP7T7.js +34752 -0
  65. package/bundle/{liteRtServerManager-G4Q7OVBX.js → liteRtServerManager-L7C3D5RL.js} +5 -5
  66. package/bundle/{liteRtServerManager-S7WL25VD.js → liteRtServerManager-PKRLUK2P.js} +5 -5
  67. package/bundle/{liteRtServerManager-BXQ6VVWP.js → liteRtServerManager-TEBDIGEN.js} +5 -5
  68. package/bundle/liteRtServerManager-UPCAT7Z2.js +66 -0
  69. package/bundle/{memoryDiscovery-KSYZVCWF.js → memoryDiscovery-LLSKN6HL.js} +1 -1
  70. package/bundle/{memoryDiscovery-FB7MMKTA.js → memoryDiscovery-SJ7P6RCN.js} +1 -1
  71. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  72. package/bundle/{oauth2-provider-H7G6RSFW.js → oauth2-provider-52IJKUJI.js} +2 -2
  73. package/bundle/{oauth2-provider-VR4DL6AL.js → oauth2-provider-OPOTTZ5C.js} +2 -2
  74. package/bundle/{oauth2-provider-5UF5WEE2.js → oauth2-provider-TOAKXOL7.js} +39 -73
  75. package/bundle/oauth2-provider-WN4YIDA4.js +237 -0
  76. package/bundle/{start-CQBSKFYB.js → start-6KIIUSAH.js} +7 -7
  77. package/bundle/{start-NIMXQJYB.js → start-7ZNSGJD6.js} +7 -7
  78. package/bundle/{start-2SKRN43X.js → start-EPIILWLN.js} +7 -7
  79. package/bundle/start-TMFPUYEL.js +19 -0
  80. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
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
2
  import {
3
3
  checkExhaustive
4
- } from "./chunk-DN4XSYRG.js";
4
+ } from "./chunk-NG2WIKH5.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM
@@ -0,0 +1,118 @@
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
+ */