@google/gemini-cli 0.40.0 → 0.40.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.
- package/bundle/{chunk-ML7VG4QG.js → chunk-2ABM66ZR.js} +1 -1
- package/bundle/{chunk-URTDU3HF.js → chunk-3XIE7V2G.js} +1 -1
- package/bundle/{chunk-O7SPQTAS.js → chunk-4NKEZSZL.js} +2 -2
- package/bundle/{chunk-MBLCGSJW.js → chunk-A3XZVE6S.js} +1 -1
- package/bundle/{chunk-SZYCJREE.js → chunk-B2OARGJJ.js} +72 -37
- package/bundle/{chunk-FRSESBS3.js → chunk-B6PIKVSF.js} +95 -47
- package/bundle/{chunk-EITHKKXC.js → chunk-BJ6YFFH2.js} +2 -2
- package/bundle/{chunk-BSQN7W2F.js → chunk-C45QOW2J.js} +2 -2
- package/bundle/{chunk-DYY5TRG5.js → chunk-DMTQDMOD.js} +14 -12
- package/bundle/{chunk-J76QO4KN.js → chunk-DQXPDCC3.js} +6 -6
- package/bundle/chunk-F5YK2O2Q.js +156 -0
- package/bundle/{chunk-3OSQ5US4.js → chunk-GT76ECCD.js} +6451 -11938
- package/bundle/{chunk-RUHTTGS7.js → chunk-H4FKMO4N.js} +3 -3
- package/bundle/{chunk-G6ODSHKI.js → chunk-HKIALAT6.js} +1 -1
- package/bundle/chunk-MKP6YHAI.js +118 -0
- package/bundle/{chunk-3F3SMPJP.js → chunk-RDM3AHIW.js} +6 -6
- package/bundle/{chunk-HMR2JSPA.js → chunk-RP4KDMW3.js} +1 -1
- package/bundle/{chunk-OE2ZUR66.js → chunk-SDLMN2WK.js} +1 -1
- package/bundle/{chunk-P7LA6IIC.js → chunk-SVRZDVKN.js} +1 -1
- package/bundle/{chunk-OEIRJHU4.js → chunk-TV3H5VBI.js} +67 -54
- package/bundle/chunk-UN6XCVMJ.js +351184 -0
- package/bundle/chunk-VKQT3B2X.js +17505 -0
- package/bundle/chunk-VWLKCG5Q.js +80012 -0
- package/bundle/chunk-WCG76BEG.js +1571 -0
- package/bundle/{cleanup-AJ7G3WEE.js → cleanup-7VP4F7GR.js} +2 -2
- package/bundle/{cleanup-6MKBWA6V.js → cleanup-MNQ2UZZG.js} +2 -2
- package/bundle/{cleanup-SOJQVOTG.js → cleanup-P53J5X4G.js} +3 -3
- package/bundle/cleanup-PLWTY4UK.js +33 -0
- package/bundle/{core-O5TD6NYP.js → core-UFCQUVAZ.js} +1 -1
- package/bundle/{devtoolsService-CCXHJEUM.js → devtoolsService-F4BITN2L.js} +2 -2
- package/bundle/{devtoolsService-AR5HWQA7.js → devtoolsService-K4I6YCD4.js} +5 -4
- package/bundle/devtoolsService-TPQOS3XD.js +852 -0
- package/bundle/{devtoolsService-GQF7V6FB.js → devtoolsService-UBZYOZNR.js} +2 -2
- package/bundle/{dist-LZ5ASNAL.js → dist-CRAFZ4EV.js} +1 -1
- package/bundle/{core-KELRGMHQ.js → dist-KBXYTOD4.js} +2 -2
- package/bundle/dist-RP6V5FR5.js +2046 -0
- package/bundle/{gemini-YJTI2WQP.js → gemini-3OZCG3O2.js} +191 -175
- package/bundle/{gemini-TKPXJBGX.js → gemini-OEXUXD4F.js} +11 -11
- package/bundle/gemini-RYFDQAFM.js +16087 -0
- package/bundle/{gemini-LSLMD4HG.js → gemini-ZYQZGZWC.js} +11 -11
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-O3UYJUNT.js → interactiveCli-M2JHWWJW.js} +6 -6
- package/bundle/{interactiveCli-I56L63GE.js → interactiveCli-ND2AVROW.js} +6 -6
- package/bundle/{interactiveCli-5YSP2IQI.js → interactiveCli-VO2T47FA.js} +290 -272
- package/bundle/interactiveCli-ZSLDJYKZ.js +34448 -0
- package/bundle/{liteRtServerManager-XI56E5P3.js → liteRtServerManager-ESWH5RRJ.js} +3 -3
- package/bundle/{liteRtServerManager-6INPACOA.js → liteRtServerManager-HMMIC3TU.js} +3 -3
- package/bundle/{liteRtServerManager-CIC7DD4U.js → liteRtServerManager-JHBFWDI6.js} +4 -4
- package/bundle/liteRtServerManager-KR4G6HVQ.js +65 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-HUMYTY6K.js → oauth2-provider-25JJN4A4.js} +1 -1
- package/bundle/{oauth2-provider-VGGNG5XI.js → oauth2-provider-HPAQM7LS.js} +39 -73
- package/bundle/oauth2-provider-IJ4VRZ7W.js +237 -0
- package/bundle/{oauth2-provider-HDKVDC2Q.js → oauth2-provider-RQPXCAE5.js} +1 -1
- package/bundle/{start-VHURPYN7.js → start-2XU4BDSD.js} +5 -5
- package/bundle/{start-25VD33TV.js → start-H6E5SBV7.js} +6 -6
- package/bundle/{start-U4YQCY2A.js → start-KGL2CIOG.js} +5 -5
- package/bundle/start-PATVFSB6.js +18 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WCG76BEG.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DMTQDMOD.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F73F75XM.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -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
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3XIE7V2G.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-HKIALAT6.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-VKQT3B2X.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
|
+
*/
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SVRZDVKN.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-A3XZVE6S.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-F5YK2O2Q.js";
|
|
66
66
|
import {
|
|
67
67
|
AsyncFzf,
|
|
68
68
|
AuthType,
|
|
@@ -208,7 +208,7 @@ import {
|
|
|
208
208
|
stripAnsi,
|
|
209
209
|
tokenLimit,
|
|
210
210
|
uiTelemetryService
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-B2OARGJJ.js";
|
|
212
212
|
import {
|
|
213
213
|
ApprovalMode,
|
|
214
214
|
CoreEvent,
|
|
@@ -55004,7 +55004,7 @@ var authCommand = {
|
|
|
55004
55004
|
import process29 from "node:process";
|
|
55005
55005
|
|
|
55006
55006
|
// packages/cli/src/generated/git-commit.ts
|
|
55007
|
-
var GIT_COMMIT_INFO = "
|
|
55007
|
+
var GIT_COMMIT_INFO = "239ede120";
|
|
55008
55008
|
|
|
55009
55009
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55010
55010
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60489,7 +60489,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60489
60489
|
type: "info",
|
|
60490
60490
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60491
60491
|
});
|
|
60492
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60492
|
+
const { MCPOAuthProvider } = await import("./dist-RP6V5FR5.js");
|
|
60493
60493
|
let oauthConfig = server.oauth;
|
|
60494
60494
|
if (!oauthConfig) {
|
|
60495
60495
|
oauthConfig = { enabled: false };
|
|
@@ -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
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2ABM66ZR.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F5YK2O2Q.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|