@google/gemini-cli 0.53.0-preview.0 → 0.54.0-nightly.20260726.g3818efbbf
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-5RDOS7UZ.js → chunk-2VCRWD5A.js} +105 -69
- package/bundle/{chunk-PVCJCQWY.js → chunk-4DF43WY7.js} +1 -1
- package/bundle/{chunk-7VUO7T2C.js → chunk-5IDNNCKI.js} +3 -3
- package/bundle/{chunk-SLQKIE73.js → chunk-6EXP7MNC.js} +1 -1
- package/bundle/{chunk-QSTUV3QH.js → chunk-6FGJ26XP.js} +7 -7
- package/bundle/{chunk-XH7QC2TB.js → chunk-6FQUF3NB.js} +2 -2
- package/bundle/{chunk-UEI42N7R.js → chunk-C52C3QZP.js} +3 -3
- package/bundle/{chunk-HF533LET.js → chunk-CP4PCA5K.js} +7699 -14271
- package/bundle/{chunk-HVYOZEAP.js → chunk-DJN5ASV2.js} +3 -3
- package/bundle/{chunk-BX6DTJOD.js → chunk-DLH2UGEO.js} +1 -1
- package/bundle/{chunk-LUM47MYE.js → chunk-DZDRGXE7.js} +1 -1
- package/bundle/chunk-F6U6G4L3.js +118 -0
- package/bundle/{chunk-6AD4A2WF.js → chunk-GKMUOHQH.js} +8 -5
- package/bundle/{chunk-PLMRBJEA.js → chunk-HG5ARHEH.js} +2 -2
- package/bundle/{chunk-27C6XFMY.js → chunk-ISVXSEBZ.js} +105 -69
- package/bundle/{chunk-PKFZO3SN.js → chunk-JFK64ABJ.js} +1 -1
- package/bundle/{chunk-BRZT2CQU.js → chunk-MHTDGIIL.js} +1 -1
- package/bundle/{chunk-CTNBR234.js → chunk-NNV4Z6XR.js} +2 -2
- package/bundle/{chunk-IODN6H35.js → chunk-NPRNIWWX.js} +1 -1
- package/bundle/{chunk-GHVD6PXK.js → chunk-OC4O5R3B.js} +9 -8
- package/bundle/chunk-OEJGR4OM.js +396934 -0
- package/bundle/{chunk-4OVORMGE.js → chunk-PHD2HIVW.js} +1 -1
- package/bundle/{chunk-BDSSP5BZ.js → chunk-QG7OFP4D.js} +1 -1
- package/bundle/{chunk-UJVAPQ7V.js → chunk-QGDYKVWX.js} +1 -1
- package/bundle/chunk-RVYNXMAI.js +154 -0
- package/bundle/chunk-SUGVZSZP.js +512 -0
- package/bundle/{chunk-SXKIOLLX.js → chunk-TIAQUEGU.js} +7 -7
- package/bundle/chunk-TUTBB2EI.js +17332 -0
- package/bundle/{chunk-WVDR5L2V.js → chunk-UFVHQWHK.js} +67 -54
- package/bundle/chunk-XUMLHXHF.js +102505 -0
- package/bundle/chunk-Y76OKNPF.js +1571 -0
- package/bundle/chunk-YONEX6IX.js +398 -0
- package/bundle/{cleanup-4FVUYQ7H.js → cleanup-CJUVYQV5.js} +2 -2
- package/bundle/{cleanup-XETKRH7X.js → cleanup-IA6XG6SC.js} +2 -2
- package/bundle/{cleanup-ZR34H2GU.js → cleanup-QIBIT7JQ.js} +2 -2
- package/bundle/cleanup-QUPE4ZH5.js +32 -0
- package/bundle/{core-PVG4D2MR.js → core-UHW46BQ2.js} +3 -1
- package/bundle/{devtoolsService-OUX7PWP3.js → devtoolsService-465M2LE6.js} +2 -2
- package/bundle/{devtoolsService-IVPTF5ZJ.js → devtoolsService-7KPRZCZM.js} +2 -2
- package/bundle/{devtoolsService-QYDPHHFN.js → devtoolsService-F7ASQSK7.js} +4 -3
- package/bundle/devtoolsService-ZJWYFVKM.js +4359 -0
- package/bundle/{dist-PRJQFPSQ.js → dist-A3MEBURU.js} +3 -1
- package/bundle/{core-I73XKBPY.js → dist-QVREEUKF.js} +3 -1
- package/bundle/dist-Y4VJWSZD.js +2156 -0
- package/bundle/docs/changelogs/index.md +20 -0
- package/bundle/docs/changelogs/latest.md +53 -18
- package/bundle/docs/changelogs/preview.md +35 -46
- package/bundle/{gemini-LA6TNI44.js → gemini-7SBFMAVQ.js} +14 -14
- package/bundle/{gemini-QKB55UV6.js → gemini-HIS5LQZQ.js} +212 -196
- package/bundle/{gemini-E2E3U6PR.js → gemini-VBI43GZ4.js} +14 -14
- package/bundle/gemini-VNJSIRD3.js +16427 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-FS3OVPXQ.js → interactiveCli-7CJ3QII7.js} +8 -8
- package/bundle/{interactiveCli-OD2LO24X.js → interactiveCli-HO3K7ZQC.js} +8 -8
- package/bundle/{interactiveCli-ADLAWPXN.js → interactiveCli-J27JH7NJ.js} +315 -296
- package/bundle/interactiveCli-QQIQEHF4.js +34816 -0
- package/bundle/{liteRtServerManager-O7PFOUFD.js → liteRtServerManager-ADM43JXF.js} +4 -4
- package/bundle/{liteRtServerManager-T2Z3RLS3.js → liteRtServerManager-FGXFYVBT.js} +4 -4
- package/bundle/{liteRtServerManager-3SKK7MNE.js → liteRtServerManager-IZIEAP3T.js} +4 -4
- package/bundle/liteRtServerManager-NRGCTYJQ.js +65 -0
- package/bundle/{oauth2-provider-Q433RA6I.js → oauth2-provider-3THMIWTP.js} +1 -1
- package/bundle/{oauth2-provider-E3S5DGLL.js → oauth2-provider-ASKQ7P2C.js} +1 -1
- package/bundle/{oauth2-provider-DFVE3NYF.js → oauth2-provider-NVAVQTFM.js} +38 -72
- package/bundle/oauth2-provider-TZOUW4Q5.js +235 -0
- package/bundle/{start-5G2UDZZ6.js → start-72YJPZDV.js} +6 -6
- package/bundle/{start-XMJ23QZN.js → start-A4ZY5O7I.js} +6 -6
- package/bundle/{start-3FPYJBRX.js → start-GCMULBVZ.js} +6 -6
- package/bundle/start-HAMF674K.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-QGDYKVWX.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-NPRNIWWX.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ISVXSEBZ.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -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-6EXP7MNC.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-TUTBB2EI.js";
|
|
18
|
+
import {
|
|
19
|
+
debugLogger
|
|
20
|
+
} from "./chunk-CP4PCA5K.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
|
+
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
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
|
AuthProviderType,
|
|
4
|
+
AuthType,
|
|
5
|
+
CoreEvent,
|
|
6
|
+
CoreToolCallStatus,
|
|
4
7
|
DEFAULT_MODEL_CONFIGS,
|
|
5
8
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
6
9
|
EDITOR_OPTIONS,
|
|
@@ -28,7 +31,7 @@ import {
|
|
|
28
31
|
partListUnionToString,
|
|
29
32
|
require_strip_json_comments,
|
|
30
33
|
sanitizeFilenamePart
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2VCRWD5A.js";
|
|
32
35
|
import {
|
|
33
36
|
__commonJS,
|
|
34
37
|
__require,
|
|
@@ -10225,7 +10228,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10225
10228
|
args: tool.args,
|
|
10226
10229
|
description: tool.description || "",
|
|
10227
10230
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10228
|
-
status: tool.status === "success" ?
|
|
10231
|
+
status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
|
|
10229
10232
|
resultDisplay: tool.resultDisplay,
|
|
10230
10233
|
confirmationDetails: void 0
|
|
10231
10234
|
}))
|
|
@@ -16289,8 +16292,8 @@ var LoadedSettings = class {
|
|
|
16289
16292
|
// React will pass a listener fn into this subscribe fn
|
|
16290
16293
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16291
16294
|
subscribe(listener) {
|
|
16292
|
-
coreEvents.on(
|
|
16293
|
-
return () => coreEvents.off(
|
|
16295
|
+
coreEvents.on(CoreEvent.SettingsChanged, listener);
|
|
16296
|
+
return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
|
|
16294
16297
|
}
|
|
16295
16298
|
getSnapshot() {
|
|
16296
16299
|
return this._snapshot;
|
|
@@ -16434,7 +16437,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
16434
16437
|
}
|
|
16435
16438
|
}
|
|
16436
16439
|
let value = "cloudshell-gca";
|
|
16437
|
-
if (selectedAuthType ===
|
|
16440
|
+
if (selectedAuthType === AuthType.USE_VERTEX_AI) {
|
|
16438
16441
|
value = process2.env[USER_GCP_PROJECT];
|
|
16439
16442
|
}
|
|
16440
16443
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|
|
@@ -1,13 +1,13 @@
|
|
|
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-4DF43WY7.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2VCRWD5A.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|