@google/gemini-cli 0.36.0-preview.2 → 0.36.0-preview.4
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-SV2TJWFU.js → chunk-GCWRR5FX.js} +250 -177
- package/bundle/{chunk-6F64DR53.js → chunk-GUQQGCYU.js} +71090 -70973
- package/bundle/{chunk-EUXACAGL.js → chunk-L6SWRWOY.js} +250 -177
- package/bundle/{chunk-NKTSTYJO.js → chunk-LA7NTE7R.js} +71090 -70973
- package/bundle/{chunk-NT4MG3B6.js → chunk-NB2KVK55.js} +71090 -70973
- package/bundle/{chunk-KGPUJGU6.js → chunk-PCRNOH75.js} +71090 -70973
- package/bundle/{chunk-WHT3ZS7S.js → chunk-QG3DE2NC.js} +250 -177
- package/bundle/{chunk-25V3TYNR.js → chunk-RCVLWPH6.js} +253 -175
- package/bundle/{core-7GUY3XKQ.js → core-UDWC3JHH.js} +5 -1
- package/bundle/{devtoolsService-LU3DLIVB.js → devtoolsService-5KPG7MTO.js} +2 -2
- package/bundle/{devtoolsService-RGAOIVMN.js → devtoolsService-F3HNCJ5J.js} +2 -2
- package/bundle/{devtoolsService-B7OD724C.js → devtoolsService-JP7KYM7O.js} +2 -2
- package/bundle/{devtoolsService-JGPJ2GN4.js → devtoolsService-WMTAFNHI.js} +2 -2
- package/bundle/{dist-DTCLJTHN.js → dist-6YQTL2TU.js} +5 -1
- package/bundle/{dist-X3ESBKEG.js → dist-FZZRWINS.js} +5 -1
- package/bundle/{dist-YQXQRQYA.js → dist-WZ5ZCWLQ.js} +5 -1
- package/bundle/gemini.js +14442 -13
- package/bundle/{interactiveCli-2EVI7UVZ.js → interactiveCli-2MHB7PL6.js} +6 -8
- package/bundle/{interactiveCli-2OAVBJCC.js → interactiveCli-3FPUSZZF.js} +6 -8
- package/bundle/{interactiveCli-CRDA6GQ7.js → interactiveCli-HKHDILWJ.js} +6 -8
- package/bundle/{interactiveCli-SHFDAMKC.js → interactiveCli-MNSUUMCD.js} +6 -8
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-D6HJJAVX.js → oauth2-provider-GU6JSDXE.js} +1 -1
- package/bundle/{oauth2-provider-ZT3CIEZO.js → oauth2-provider-NNYNDNHB.js} +1 -1
- package/bundle/{oauth2-provider-KEZJCOYM.js → oauth2-provider-U2Y3KMJH.js} +1 -1
- package/bundle/{oauth2-provider-TSEQG63I.js → oauth2-provider-UFMHKHVW.js} +1 -1
- package/package.json +1 -1
- package/bundle/chunk-IOJJTEIC.js +0 -137
- package/bundle/chunk-MRJRXC63.js +0 -137
- package/bundle/chunk-MXNIJ4RK.js +0 -137
- package/bundle/chunk-OOZG4FMQ.js +0 -137
- package/bundle/cleanup-2WKEMFXG.js +0 -29
- package/bundle/cleanup-B67M5WAO.js +0 -29
- package/bundle/cleanup-PJ323T24.js +0 -29
- package/bundle/cleanup-PKVUY3XO.js +0 -29
- package/bundle/gemini-7BPDTLSV.js +0 -14440
- package/bundle/gemini-CJ5HU32O.js +0 -14455
- package/bundle/gemini-GA5SXGI6.js +0 -14455
- package/bundle/gemini-RFUB3W5S.js +0 -14455
package/bundle/chunk-OOZG4FMQ.js
DELETED
|
@@ -1,137 +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
|
-
shutdownTelemetry
|
|
6
|
-
} from "./chunk-25V3TYNR.js";
|
|
7
|
-
import {
|
|
8
|
-
Storage
|
|
9
|
-
} from "./chunk-PXG3YTLU.js";
|
|
10
|
-
|
|
11
|
-
// packages/cli/src/utils/cleanup.ts
|
|
12
|
-
import { promises as fs } from "node:fs";
|
|
13
|
-
import { join } from "node:path";
|
|
14
|
-
var cleanupFunctions = [];
|
|
15
|
-
var syncCleanupFunctions = [];
|
|
16
|
-
var configForTelemetry = null;
|
|
17
|
-
var isShuttingDown = false;
|
|
18
|
-
function registerCleanup(fn) {
|
|
19
|
-
cleanupFunctions.push(fn);
|
|
20
|
-
}
|
|
21
|
-
function registerSyncCleanup(fn) {
|
|
22
|
-
syncCleanupFunctions.push(fn);
|
|
23
|
-
}
|
|
24
|
-
function resetCleanupForTesting() {
|
|
25
|
-
cleanupFunctions.length = 0;
|
|
26
|
-
syncCleanupFunctions.length = 0;
|
|
27
|
-
configForTelemetry = null;
|
|
28
|
-
isShuttingDown = false;
|
|
29
|
-
}
|
|
30
|
-
function runSyncCleanup() {
|
|
31
|
-
for (const fn of syncCleanupFunctions) {
|
|
32
|
-
try {
|
|
33
|
-
fn();
|
|
34
|
-
} catch (_) {
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
syncCleanupFunctions.length = 0;
|
|
38
|
-
}
|
|
39
|
-
function registerTelemetryConfig(config) {
|
|
40
|
-
configForTelemetry = config;
|
|
41
|
-
}
|
|
42
|
-
async function runExitCleanup() {
|
|
43
|
-
await drainStdin();
|
|
44
|
-
runSyncCleanup();
|
|
45
|
-
for (const fn of cleanupFunctions) {
|
|
46
|
-
try {
|
|
47
|
-
await fn();
|
|
48
|
-
} catch (_) {
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
cleanupFunctions.length = 0;
|
|
52
|
-
if (configForTelemetry) {
|
|
53
|
-
try {
|
|
54
|
-
await configForTelemetry.dispose();
|
|
55
|
-
} catch (_) {
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (configForTelemetry && isTelemetrySdkInitialized()) {
|
|
59
|
-
try {
|
|
60
|
-
await shutdownTelemetry(configForTelemetry);
|
|
61
|
-
} catch (_) {
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
async function drainStdin() {
|
|
66
|
-
if (!process.stdin?.isTTY) return;
|
|
67
|
-
process.stdin.resume().removeAllListeners("data").on("data", () => {
|
|
68
|
-
});
|
|
69
|
-
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
70
|
-
}
|
|
71
|
-
async function gracefulShutdown(_reason) {
|
|
72
|
-
if (isShuttingDown) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
isShuttingDown = true;
|
|
76
|
-
await runExitCleanup();
|
|
77
|
-
process.exit(ExitCodes.SUCCESS);
|
|
78
|
-
}
|
|
79
|
-
function setupSignalHandlers() {
|
|
80
|
-
process.on("SIGHUP", () => gracefulShutdown("SIGHUP"));
|
|
81
|
-
process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
|
|
82
|
-
process.on("SIGINT", () => gracefulShutdown("SIGINT"));
|
|
83
|
-
}
|
|
84
|
-
function setupTtyCheck() {
|
|
85
|
-
let intervalId = null;
|
|
86
|
-
let isCheckingTty = false;
|
|
87
|
-
intervalId = setInterval(async () => {
|
|
88
|
-
if (isCheckingTty || isShuttingDown) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (process.env["SANDBOX"]) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!process.stdin.isTTY && !process.stdout.isTTY) {
|
|
95
|
-
isCheckingTty = true;
|
|
96
|
-
if (intervalId) {
|
|
97
|
-
clearInterval(intervalId);
|
|
98
|
-
intervalId = null;
|
|
99
|
-
}
|
|
100
|
-
await gracefulShutdown("TTY loss");
|
|
101
|
-
}
|
|
102
|
-
}, 5e3);
|
|
103
|
-
intervalId.unref();
|
|
104
|
-
return () => {
|
|
105
|
-
if (intervalId) {
|
|
106
|
-
clearInterval(intervalId);
|
|
107
|
-
intervalId = null;
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
async function cleanupCheckpoints() {
|
|
112
|
-
const storage = new Storage(process.cwd());
|
|
113
|
-
await storage.initialize();
|
|
114
|
-
const tempDir = storage.getProjectTempDir();
|
|
115
|
-
const checkpointsDir = join(tempDir, "checkpoints");
|
|
116
|
-
try {
|
|
117
|
-
await fs.rm(checkpointsDir, { recursive: true, force: true });
|
|
118
|
-
} catch {
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export {
|
|
123
|
-
registerCleanup,
|
|
124
|
-
registerSyncCleanup,
|
|
125
|
-
resetCleanupForTesting,
|
|
126
|
-
runSyncCleanup,
|
|
127
|
-
registerTelemetryConfig,
|
|
128
|
-
runExitCleanup,
|
|
129
|
-
setupSignalHandlers,
|
|
130
|
-
setupTtyCheck,
|
|
131
|
-
cleanupCheckpoints
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* @license
|
|
135
|
-
* Copyright 2025 Google LLC
|
|
136
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
137
|
-
*/
|
|
@@ -1,29 +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
|
-
resetCleanupForTesting,
|
|
8
|
-
runExitCleanup,
|
|
9
|
-
runSyncCleanup,
|
|
10
|
-
setupSignalHandlers,
|
|
11
|
-
setupTtyCheck
|
|
12
|
-
} from "./chunk-MRJRXC63.js";
|
|
13
|
-
import "./chunk-EUXACAGL.js";
|
|
14
|
-
import "./chunk-HLML5SVJ.js";
|
|
15
|
-
import "./chunk-664ZODQF.js";
|
|
16
|
-
import "./chunk-RJTRUG2J.js";
|
|
17
|
-
import "./chunk-IUUIT4SU.js";
|
|
18
|
-
import "./chunk-34MYV7JD.js";
|
|
19
|
-
export {
|
|
20
|
-
cleanupCheckpoints,
|
|
21
|
-
registerCleanup,
|
|
22
|
-
registerSyncCleanup,
|
|
23
|
-
registerTelemetryConfig,
|
|
24
|
-
resetCleanupForTesting,
|
|
25
|
-
runExitCleanup,
|
|
26
|
-
runSyncCleanup,
|
|
27
|
-
setupSignalHandlers,
|
|
28
|
-
setupTtyCheck
|
|
29
|
-
};
|
|
@@ -1,29 +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
|
-
resetCleanupForTesting,
|
|
8
|
-
runExitCleanup,
|
|
9
|
-
runSyncCleanup,
|
|
10
|
-
setupSignalHandlers,
|
|
11
|
-
setupTtyCheck
|
|
12
|
-
} from "./chunk-MXNIJ4RK.js";
|
|
13
|
-
import "./chunk-WHT3ZS7S.js";
|
|
14
|
-
import "./chunk-HLML5SVJ.js";
|
|
15
|
-
import "./chunk-664ZODQF.js";
|
|
16
|
-
import "./chunk-RJTRUG2J.js";
|
|
17
|
-
import "./chunk-IUUIT4SU.js";
|
|
18
|
-
import "./chunk-34MYV7JD.js";
|
|
19
|
-
export {
|
|
20
|
-
cleanupCheckpoints,
|
|
21
|
-
registerCleanup,
|
|
22
|
-
registerSyncCleanup,
|
|
23
|
-
registerTelemetryConfig,
|
|
24
|
-
resetCleanupForTesting,
|
|
25
|
-
runExitCleanup,
|
|
26
|
-
runSyncCleanup,
|
|
27
|
-
setupSignalHandlers,
|
|
28
|
-
setupTtyCheck
|
|
29
|
-
};
|
|
@@ -1,29 +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
|
-
resetCleanupForTesting,
|
|
8
|
-
runExitCleanup,
|
|
9
|
-
runSyncCleanup,
|
|
10
|
-
setupSignalHandlers,
|
|
11
|
-
setupTtyCheck
|
|
12
|
-
} from "./chunk-IOJJTEIC.js";
|
|
13
|
-
import "./chunk-SV2TJWFU.js";
|
|
14
|
-
import "./chunk-HLML5SVJ.js";
|
|
15
|
-
import "./chunk-664ZODQF.js";
|
|
16
|
-
import "./chunk-RJTRUG2J.js";
|
|
17
|
-
import "./chunk-IUUIT4SU.js";
|
|
18
|
-
import "./chunk-34MYV7JD.js";
|
|
19
|
-
export {
|
|
20
|
-
cleanupCheckpoints,
|
|
21
|
-
registerCleanup,
|
|
22
|
-
registerSyncCleanup,
|
|
23
|
-
registerTelemetryConfig,
|
|
24
|
-
resetCleanupForTesting,
|
|
25
|
-
runExitCleanup,
|
|
26
|
-
runSyncCleanup,
|
|
27
|
-
setupSignalHandlers,
|
|
28
|
-
setupTtyCheck
|
|
29
|
-
};
|
|
@@ -1,29 +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
|
-
resetCleanupForTesting,
|
|
8
|
-
runExitCleanup,
|
|
9
|
-
runSyncCleanup,
|
|
10
|
-
setupSignalHandlers,
|
|
11
|
-
setupTtyCheck
|
|
12
|
-
} from "./chunk-OOZG4FMQ.js";
|
|
13
|
-
import "./chunk-25V3TYNR.js";
|
|
14
|
-
import "./chunk-PXG3YTLU.js";
|
|
15
|
-
import "./chunk-664ZODQF.js";
|
|
16
|
-
import "./chunk-RJTRUG2J.js";
|
|
17
|
-
import "./chunk-IUUIT4SU.js";
|
|
18
|
-
import "./chunk-34MYV7JD.js";
|
|
19
|
-
export {
|
|
20
|
-
cleanupCheckpoints,
|
|
21
|
-
registerCleanup,
|
|
22
|
-
registerSyncCleanup,
|
|
23
|
-
registerTelemetryConfig,
|
|
24
|
-
resetCleanupForTesting,
|
|
25
|
-
runExitCleanup,
|
|
26
|
-
runSyncCleanup,
|
|
27
|
-
setupSignalHandlers,
|
|
28
|
-
setupTtyCheck
|
|
29
|
-
};
|