@google/gemini-cli 0.39.0-preview.2 → 0.39.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-TKGFTY3B.js → chunk-3YUTTNJ7.js} +4 -4
- package/bundle/{chunk-3R2FLB3Z.js → chunk-5GTZHSZV.js} +4 -4
- package/bundle/{chunk-N3GUGFOL.js → chunk-6NW5RNNH.js} +60 -72
- package/bundle/{chunk-AZ7QQWNX.js → chunk-BL3XXS2L.js} +1 -1
- package/bundle/{chunk-QC6EGBZW.js → chunk-LUWQB4AS.js} +1 -1
- package/bundle/{chunk-GX4YOB7T.js → chunk-NWD4JYMB.js} +4 -4
- package/bundle/{chunk-4UUOHXDW.js → chunk-RTKRL6Y5.js} +11669 -6238
- package/bundle/{chunk-OXCH4FS3.js → chunk-UQGLVPZQ.js} +4 -4
- package/bundle/{chunk-45GIY5RT.js → chunk-YYY7NKKR.js} +2 -2
- package/bundle/{cleanup-6N6E742H.js → cleanup-3LELZME2.js} +2 -2
- package/bundle/{cleanup-3EICKDDN.js → cleanup-JJEXOHOA.js} +2 -2
- package/bundle/{cleanup-4SLYOL44.js → cleanup-TTGHQXQN.js} +3 -3
- package/bundle/{core-KLYK3V6Z.js → core-LKKLDF4Z.js} +1 -1
- package/bundle/{dist-P4XAO4SC.js → core-Z2SYVMM5.js} +2 -2
- package/bundle/{devtoolsService-X4577PYZ.js → devtoolsService-H64VB4IA.js} +2 -2
- package/bundle/{devtoolsService-FS7WXGBF.js → devtoolsService-L5LFSMIR.js} +2 -2
- package/bundle/{devtoolsService-K4DENTYF.js → devtoolsService-UQCUIXV5.js} +4 -5
- package/bundle/{dist-5ET5G5PC.js → dist-FWHS5IHN.js} +1 -1
- package/bundle/{gemini-6GWCDHXK.js → gemini-BI2PCDUT.js} +8 -8
- package/bundle/{gemini-NBKLSVA3.js → gemini-CMXEUOSI.js} +169 -184
- package/bundle/{gemini-FLGPH5GJ.js → gemini-YNLABPKW.js} +8 -8
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-AGSLCKNH.js → interactiveCli-C46TDPVW.js} +4 -4
- package/bundle/{interactiveCli-NAPN3E2K.js → interactiveCli-LXXBYVNU.js} +258 -275
- package/bundle/{interactiveCli-H3NLGP7Z.js → interactiveCli-P35Q3KZ2.js} +4 -4
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-CWUR5RGE.js → oauth2-provider-7ZDLUOSM.js} +1 -1
- package/bundle/{oauth2-provider-YKYTKUWD.js → oauth2-provider-CRWFOXYR.js} +1 -1
- package/bundle/{oauth2-provider-EA452S4C.js → oauth2-provider-FEM5AIRT.js} +73 -39
- package/package.json +1 -1
- package/bundle/chunk-5J5LWISO.js +0 -360288
- package/bundle/chunk-RTX4LTWK.js +0 -101702
- package/bundle/chunk-SS4CWRZ5.js +0 -156
- package/bundle/cleanup-OG2MXKZ7.js +0 -33
- package/bundle/devtoolsService-RLXZWLDT.js +0 -871
- package/bundle/dist-DQVXGLSO.js +0 -2010
- package/bundle/gemini-YOFQ5KF4.js +0 -15321
- package/bundle/interactiveCli-TCZBSTKU.js +0 -34493
- package/bundle/oauth2-provider-LV6VPYTU.js +0 -237
package/bundle/chunk-SS4CWRZ5.js
DELETED
|
@@ -1,156 +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
|
-
ExitCodes,
|
|
4
|
-
isTelemetrySdkInitialized,
|
|
5
|
-
resetBrowserSession,
|
|
6
|
-
shutdownTelemetry
|
|
7
|
-
} from "./chunk-5J5LWISO.js";
|
|
8
|
-
import {
|
|
9
|
-
Storage
|
|
10
|
-
} from "./chunk-67TFD6HC.js";
|
|
11
|
-
|
|
12
|
-
// packages/cli/src/utils/cleanup.ts
|
|
13
|
-
import { promises as fs } from "node:fs";
|
|
14
|
-
import { join } from "node:path";
|
|
15
|
-
var cleanupFunctions = [];
|
|
16
|
-
var syncCleanupFunctions = [];
|
|
17
|
-
var configForTelemetry = null;
|
|
18
|
-
var isShuttingDown = false;
|
|
19
|
-
function registerCleanup(fn) {
|
|
20
|
-
cleanupFunctions.push(fn);
|
|
21
|
-
}
|
|
22
|
-
function removeCleanup(fn) {
|
|
23
|
-
const index = cleanupFunctions.indexOf(fn);
|
|
24
|
-
if (index !== -1) {
|
|
25
|
-
cleanupFunctions.splice(index, 1);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function registerSyncCleanup(fn) {
|
|
29
|
-
syncCleanupFunctions.push(fn);
|
|
30
|
-
}
|
|
31
|
-
function removeSyncCleanup(fn) {
|
|
32
|
-
const index = syncCleanupFunctions.indexOf(fn);
|
|
33
|
-
if (index !== -1) {
|
|
34
|
-
syncCleanupFunctions.splice(index, 1);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function resetCleanupForTesting() {
|
|
38
|
-
cleanupFunctions.length = 0;
|
|
39
|
-
syncCleanupFunctions.length = 0;
|
|
40
|
-
configForTelemetry = null;
|
|
41
|
-
isShuttingDown = false;
|
|
42
|
-
}
|
|
43
|
-
function runSyncCleanup() {
|
|
44
|
-
for (const fn of syncCleanupFunctions) {
|
|
45
|
-
try {
|
|
46
|
-
fn();
|
|
47
|
-
} catch {
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
syncCleanupFunctions.length = 0;
|
|
51
|
-
}
|
|
52
|
-
function registerTelemetryConfig(config) {
|
|
53
|
-
configForTelemetry = config;
|
|
54
|
-
}
|
|
55
|
-
async function runExitCleanup() {
|
|
56
|
-
await drainStdin();
|
|
57
|
-
runSyncCleanup();
|
|
58
|
-
for (const fn of cleanupFunctions) {
|
|
59
|
-
try {
|
|
60
|
-
await fn();
|
|
61
|
-
} catch {
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
cleanupFunctions.length = 0;
|
|
65
|
-
try {
|
|
66
|
-
await resetBrowserSession();
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
if (configForTelemetry) {
|
|
70
|
-
try {
|
|
71
|
-
await configForTelemetry.dispose();
|
|
72
|
-
} catch {
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
if (configForTelemetry && isTelemetrySdkInitialized()) {
|
|
76
|
-
try {
|
|
77
|
-
await shutdownTelemetry(configForTelemetry);
|
|
78
|
-
} catch {
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
async function drainStdin() {
|
|
83
|
-
if (!process.stdin?.isTTY) return;
|
|
84
|
-
process.stdin.resume().removeAllListeners("data").on("data", () => {
|
|
85
|
-
});
|
|
86
|
-
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
87
|
-
}
|
|
88
|
-
async function gracefulShutdown(_reason) {
|
|
89
|
-
if (isShuttingDown) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
isShuttingDown = true;
|
|
93
|
-
await runExitCleanup();
|
|
94
|
-
process.exit(ExitCodes.SUCCESS);
|
|
95
|
-
}
|
|
96
|
-
function setupSignalHandlers() {
|
|
97
|
-
process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
|
|
98
|
-
process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
|
|
99
|
-
process.on("SIGINT", () => gracefulShutdown("SIGINT"));
|
|
100
|
-
}
|
|
101
|
-
function setupTtyCheck() {
|
|
102
|
-
let intervalId = null;
|
|
103
|
-
let isCheckingTty = false;
|
|
104
|
-
intervalId = setInterval(async () => {
|
|
105
|
-
if (isCheckingTty || isShuttingDown) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (process.env["SANDBOX"]) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (!process.stdin.isTTY && !process.stdout.isTTY) {
|
|
112
|
-
isCheckingTty = true;
|
|
113
|
-
if (intervalId) {
|
|
114
|
-
clearInterval(intervalId);
|
|
115
|
-
intervalId = null;
|
|
116
|
-
}
|
|
117
|
-
await gracefulShutdown("TTY loss");
|
|
118
|
-
}
|
|
119
|
-
}, 5e3);
|
|
120
|
-
intervalId.unref();
|
|
121
|
-
return () => {
|
|
122
|
-
if (intervalId) {
|
|
123
|
-
clearInterval(intervalId);
|
|
124
|
-
intervalId = null;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
async function cleanupCheckpoints() {
|
|
129
|
-
const storage = new Storage(process.cwd());
|
|
130
|
-
await storage.initialize();
|
|
131
|
-
const tempDir = storage.getProjectTempDir();
|
|
132
|
-
const checkpointsDir = join(tempDir, "checkpoints");
|
|
133
|
-
try {
|
|
134
|
-
await fs.rm(checkpointsDir, { recursive: true, force: true });
|
|
135
|
-
} catch {
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
registerCleanup,
|
|
141
|
-
removeCleanup,
|
|
142
|
-
registerSyncCleanup,
|
|
143
|
-
removeSyncCleanup,
|
|
144
|
-
resetCleanupForTesting,
|
|
145
|
-
runSyncCleanup,
|
|
146
|
-
registerTelemetryConfig,
|
|
147
|
-
runExitCleanup,
|
|
148
|
-
setupSignalHandlers,
|
|
149
|
-
setupTtyCheck,
|
|
150
|
-
cleanupCheckpoints
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* @license
|
|
154
|
-
* Copyright 2025 Google LLC
|
|
155
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
156
|
-
*/
|
|
@@ -1,33 +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
|
-
cleanupCheckpoints,
|
|
4
|
-
registerCleanup,
|
|
5
|
-
registerSyncCleanup,
|
|
6
|
-
registerTelemetryConfig,
|
|
7
|
-
removeCleanup,
|
|
8
|
-
removeSyncCleanup,
|
|
9
|
-
resetCleanupForTesting,
|
|
10
|
-
runExitCleanup,
|
|
11
|
-
runSyncCleanup,
|
|
12
|
-
setupSignalHandlers,
|
|
13
|
-
setupTtyCheck
|
|
14
|
-
} from "./chunk-45GIY5RT.js";
|
|
15
|
-
import "./chunk-OXCH4FS3.js";
|
|
16
|
-
import "./chunk-67TFD6HC.js";
|
|
17
|
-
import "./chunk-664ZODQF.js";
|
|
18
|
-
import "./chunk-RJTRUG2J.js";
|
|
19
|
-
import "./chunk-IUUIT4SU.js";
|
|
20
|
-
import "./chunk-34MYV7JD.js";
|
|
21
|
-
export {
|
|
22
|
-
cleanupCheckpoints,
|
|
23
|
-
registerCleanup,
|
|
24
|
-
registerSyncCleanup,
|
|
25
|
-
registerTelemetryConfig,
|
|
26
|
-
removeCleanup,
|
|
27
|
-
removeSyncCleanup,
|
|
28
|
-
resetCleanupForTesting,
|
|
29
|
-
runExitCleanup,
|
|
30
|
-
runSyncCleanup,
|
|
31
|
-
setupSignalHandlers,
|
|
32
|
-
setupTtyCheck
|
|
33
|
-
};
|