@google/gemini-cli 0.40.0-preview.5 → 0.40.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.
- package/bundle/{chunk-FVKIOUK2.js → chunk-3F3SMPJP.js} +6 -6
- package/bundle/{chunk-PSFOLETP.js → chunk-3OSQ5US4.js} +4 -4
- package/bundle/{chunk-RZLEHIPO.js → chunk-BSQN7W2F.js} +1 -1
- package/bundle/{chunk-LZ3EBZC7.js → chunk-DYY5TRG5.js} +1 -1
- package/bundle/{chunk-2ZVZANM2.js → chunk-EITHKKXC.js} +2 -2
- package/bundle/{chunk-4QJ7BLYU.js → chunk-FRSESBS3.js} +11904 -6382
- package/bundle/{chunk-JMNFQX6P.js → chunk-G6ODSHKI.js} +1 -1
- package/bundle/{chunk-OFQ5ZK6W.js → chunk-HMR2JSPA.js} +1 -1
- package/bundle/{chunk-UOPSSTRT.js → chunk-J76QO4KN.js} +6 -6
- package/bundle/{chunk-M67MTWAA.js → chunk-MBLCGSJW.js} +1 -1
- package/bundle/{chunk-BXEIZYPT.js → chunk-ML7VG4QG.js} +2 -2
- package/bundle/{chunk-HGZ3O2PQ.js → chunk-O7SPQTAS.js} +2 -2
- package/bundle/{chunk-PPI7V737.js → chunk-OE2ZUR66.js} +12 -14
- package/bundle/{chunk-S2RMF5OF.js → chunk-OEIRJHU4.js} +53 -66
- package/bundle/{chunk-PUYH6WLU.js → chunk-P7LA6IIC.js} +1 -1
- package/bundle/{chunk-WKLZQYVS.js → chunk-RUHTTGS7.js} +3 -3
- package/bundle/{chunk-JEEOZX7K.js → chunk-SZYCJREE.js} +4 -4
- package/bundle/{chunk-KH7Y2E2B.js → chunk-URTDU3HF.js} +1 -1
- package/bundle/{cleanup-LU6VH5LF.js → cleanup-6MKBWA6V.js} +2 -2
- package/bundle/{cleanup-7NMCYTRU.js → cleanup-AJ7G3WEE.js} +2 -2
- package/bundle/{cleanup-CC4DZYSL.js → cleanup-SOJQVOTG.js} +3 -3
- package/bundle/{core-J5EG27YJ.js → core-KELRGMHQ.js} +1 -1
- package/bundle/{dist-BDCT3HTY.js → core-O5TD6NYP.js} +2 -2
- package/bundle/{devtoolsService-L4UM23JP.js → devtoolsService-AR5HWQA7.js} +2 -2
- package/bundle/{devtoolsService-DVFBLZLE.js → devtoolsService-CCXHJEUM.js} +2 -2
- package/bundle/{devtoolsService-F5VVJOGU.js → devtoolsService-GQF7V6FB.js} +4 -5
- package/bundle/{dist-3PE52RNR.js → dist-LZ5ASNAL.js} +1 -1
- package/bundle/{gemini-43M45BZJ.js → gemini-LSLMD4HG.js} +12 -12
- package/bundle/{gemini-A2RKH6S6.js → gemini-TKPXJBGX.js} +175 -191
- package/bundle/{gemini-TUKIRRHO.js → gemini-YJTI2WQP.js} +12 -12
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-UEQVG6ZN.js → interactiveCli-5YSP2IQI.js} +6 -6
- package/bundle/{interactiveCli-5KEHC4M6.js → interactiveCli-I56L63GE.js} +272 -290
- package/bundle/{interactiveCli-3ZFYCJ5T.js → interactiveCli-O3UYJUNT.js} +6 -6
- package/bundle/{liteRtServerManager-G54ML27L.js → liteRtServerManager-6INPACOA.js} +3 -3
- package/bundle/{liteRtServerManager-YKGSBN3S.js → liteRtServerManager-CIC7DD4U.js} +3 -3
- package/bundle/{liteRtServerManager-OMCP3UEP.js → liteRtServerManager-XI56E5P3.js} +4 -4
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-R3XULSB6.js → oauth2-provider-HDKVDC2Q.js} +1 -1
- package/bundle/{oauth2-provider-2Q7SY72N.js → oauth2-provider-HUMYTY6K.js} +1 -1
- package/bundle/{oauth2-provider-LO4KVOIV.js → oauth2-provider-VGGNG5XI.js} +73 -39
- package/bundle/{start-M46TTTBT.js → start-25VD33TV.js} +5 -5
- package/bundle/{start-G4HKE6RC.js → start-U4YQCY2A.js} +6 -6
- package/bundle/{start-O5R43BH5.js → start-VHURPYN7.js} +5 -5
- package/package.json +1 -1
- package/bundle/chunk-CTIVBV4R.js +0 -17505
- package/bundle/chunk-JTHK45BC.js +0 -118
- package/bundle/chunk-KAUTKFXF.js +0 -80012
- package/bundle/chunk-O5W5VNIB.js +0 -156
- package/bundle/chunk-WZUAJ737.js +0 -1571
- package/bundle/chunk-YQJLBMKU.js +0 -351149
- package/bundle/cleanup-QDR2CCLD.js +0 -33
- package/bundle/devtoolsService-LAXMLGUQ.js +0 -852
- package/bundle/dist-SXIB7Y3D.js +0 -2046
- package/bundle/gemini-5JHX3PCD.js +0 -16087
- package/bundle/interactiveCli-SQE667CT.js +0 -34448
- package/bundle/liteRtServerManager-ROQMRMW3.js +0 -65
- package/bundle/oauth2-provider-PTW7EGZX.js +0 -237
- package/bundle/start-VMKLEM5K.js +0 -18
package/bundle/chunk-JTHK45BC.js
DELETED
|
@@ -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-OFQ5ZK6W.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-CTIVBV4R.js";
|
|
18
|
-
import {
|
|
19
|
-
debugLogger
|
|
20
|
-
} from "./chunk-F73F75XM.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
|
-
*/
|