@google/gemini-cli 0.68.0 → 0.69.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-UCFNW5IV.js → chunk-2NIO2MYP.js} +1 -1
- package/bundle/{chunk-G62RLJX6.js → chunk-2NWFKUZR.js} +2 -2
- package/bundle/{chunk-2PZ5W6XG.js → chunk-4ICD47UK.js} +1 -1
- package/bundle/{chunk-UWDUE2FI.js → chunk-5WVS3LFE.js} +617 -228
- package/bundle/{chunk-U4HHML7H.js → chunk-66UT6FAS.js} +7 -2
- package/bundle/chunk-6CG4XKVB.js +65 -0
- package/bundle/chunk-6MSIVBAV.js +65 -0
- package/bundle/{chunk-O3LBFTXB.js → chunk-76IL5AQS.js} +1 -1
- package/bundle/{chunk-V6V4NDBB.js → chunk-7JVLRJNT.js} +7 -2
- package/bundle/{chunk-ASDLQWJU.js → chunk-BBQ3J3KD.js} +617 -228
- package/bundle/chunk-CU3LIREC.js +65 -0
- package/bundle/{chunk-AS7AQWDX.js → chunk-E2O7673V.js} +3 -3
- package/bundle/{chunk-MMZD3Z6P.js → chunk-FZXMW23P.js} +1 -1
- package/bundle/{chunk-MGSUDKTT.js → chunk-HFG3LZOT.js} +22 -6
- package/bundle/{chunk-UTAAT53A.js → chunk-KZYASN6P.js} +1 -1
- package/bundle/{chunk-AAYJUGGU.js → chunk-L7UQY2JQ.js} +22 -6
- package/bundle/{chunk-MQCXDY7Q.js → chunk-MJHJIOO6.js} +2 -2
- package/bundle/{chunk-VFM6AETN.js → chunk-RPOY63FV.js} +22 -6
- package/bundle/{chunk-X6GKQ37B.js → chunk-RRELGD6D.js} +1 -1
- package/bundle/{chunk-LIL3SDSL.js → chunk-SM722TVE.js} +3 -3
- package/bundle/{chunk-QOY4W5DI.js → chunk-TEYXLQ5H.js} +617 -228
- package/bundle/{chunk-NWIW5RB7.js → chunk-TO7WASPI.js} +2 -2
- package/bundle/{chunk-2OHBIZ5H.js → chunk-TPD3RZ2B.js} +4479 -1925
- package/bundle/{chunk-QONVGJUH.js → chunk-VWFWPAOZ.js} +7 -2
- package/bundle/{chunk-RCB6BI5H.js → chunk-X4P3RZYU.js} +4357 -1897
- package/bundle/{chunk-55ZBMEMI.js → chunk-XXN6WBQW.js} +3 -3
- package/bundle/{chunk-WBPQP5N5.js → chunk-Y4PW6PYG.js} +4479 -1925
- package/bundle/{cleanup-CE7NXWQQ.js → cleanup-4RG2PSND.js} +2 -2
- package/bundle/{cleanup-S55R4M4P.js → cleanup-QM4BFPJ4.js} +2 -2
- package/bundle/{cleanup-VK774HYR.js → cleanup-XYZT64H7.js} +2 -2
- package/bundle/{core-H54RSSWF.js → core-3UXW77KZ.js} +35 -1
- package/bundle/{core-3WSGSBP4.js → core-JN57UMDL.js} +35 -1
- package/bundle/{devtoolsService-3D2MEPRK.js → devtoolsService-K3FKQFZP.js} +2 -2
- package/bundle/{devtoolsService-IY5CMY5M.js → devtoolsService-QLI75YCI.js} +2 -2
- package/bundle/{devtoolsService-SMGKHHHC.js → devtoolsService-XZRXARUU.js} +2 -2
- package/bundle/{dist-7ZMVG6FV.js → dist-RVQZS637.js} +35 -1
- package/bundle/docs/changelogs/index.md +18 -0
- package/bundle/docs/changelogs/latest.md +89 -84
- package/bundle/docs/changelogs/preview.md +106 -92
- package/bundle/docs/cli/themes.md +50 -5
- package/bundle/docs/cli/trusted-folders.md +13 -0
- package/bundle/docs/reference/commands.md +4 -0
- package/bundle/docs/reference/configuration.md +8 -0
- package/bundle/docs/reference/policy-engine.md +6 -0
- package/bundle/formatError-5QTHC2BU.js +14 -0
- package/bundle/formatError-I6YST2IJ.js +14 -0
- package/bundle/formatError-R5NIXYBT.js +14 -0
- package/bundle/{gemini-QXW4BNRT.js → gemini-BCCY3LUV.js} +493 -132
- package/bundle/{gemini-Q2FNZWQG.js → gemini-SS7CDNKE.js} +493 -132
- package/bundle/{gemini-TPI2JZF4.js → gemini-VN2552TI.js} +493 -132
- package/bundle/gemini.js +14 -13
- package/bundle/{interactiveCli-Z4BMA3IE.js → interactiveCli-MX4SNKPZ.js} +1641 -1208
- package/bundle/{interactiveCli-ZJ2ZELJM.js → interactiveCli-SGZ2VGTY.js} +1641 -1208
- package/bundle/{interactiveCli-HTFX4T7K.js → interactiveCli-X6WWC2C6.js} +1641 -1208
- package/bundle/{liteRtServerManager-P72TRVMO.js → liteRtServerManager-6PM4BXYU.js} +4 -4
- package/bundle/{liteRtServerManager-YZZCYJ4U.js → liteRtServerManager-CAJIW3PE.js} +4 -4
- package/bundle/{liteRtServerManager-NYOO2WQ4.js → liteRtServerManager-FQPKIHVD.js} +4 -4
- package/bundle/{oauth2-provider-PBHT3VAC.js → oauth2-provider-D4UNDFN3.js} +1 -1
- package/bundle/{oauth2-provider-YPP5K6XW.js → oauth2-provider-RIS25NZW.js} +1 -1
- package/bundle/{oauth2-provider-OGNVT4MV.js → oauth2-provider-T3DF3FTA.js} +1 -1
- package/bundle/policies/yolo.toml +1 -0
- package/bundle/sandbox-macos-permissive-open.sb +8 -0
- package/bundle/sandbox-macos-permissive-proxied.sb +8 -0
- package/bundle/sandbox-macos-restrictive-open.sb +1 -0
- package/bundle/sandbox-macos-restrictive-proxied.sb +1 -0
- package/bundle/sandbox-macos-strict-open.sb +1 -0
- package/bundle/sandbox-macos-strict-proxied.sb +1 -0
- package/bundle/{start-ADAUXBCX.js → start-76F65FZ5.js} +6 -6
- package/bundle/{start-UNCB4DQS.js → start-FVNQP7EB.js} +6 -6
- package/bundle/{start-53A5BH5A.js → start-WSOZZWBK.js} +6 -6
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
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
|
ExitCodes,
|
|
4
|
+
ShellExecutionService,
|
|
4
5
|
Storage,
|
|
5
6
|
isTelemetrySdkInitialized,
|
|
6
7
|
resetBrowserSession,
|
|
7
8
|
shutdownTelemetry
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TPD3RZ2B.js";
|
|
9
10
|
|
|
10
11
|
// packages/cli/src/utils/cleanup.ts
|
|
11
12
|
import { promises as fs } from "node:fs";
|
|
@@ -87,6 +88,10 @@ async function runExitCleanup() {
|
|
|
87
88
|
await resetBrowserSession();
|
|
88
89
|
} catch {
|
|
89
90
|
}
|
|
91
|
+
try {
|
|
92
|
+
await ShellExecutionService.cleanupAllActiveProcesses();
|
|
93
|
+
} catch {
|
|
94
|
+
}
|
|
90
95
|
if (configForTelemetry) {
|
|
91
96
|
try {
|
|
92
97
|
await configForTelemetry.dispose();
|
|
@@ -118,7 +123,7 @@ async function gracefulShutdown(reason) {
|
|
|
118
123
|
}
|
|
119
124
|
isShuttingDown = true;
|
|
120
125
|
await runExitCleanup();
|
|
121
|
-
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : ExitCodes.SUCCESS;
|
|
126
|
+
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
|
|
122
127
|
process.exit(exitCode);
|
|
123
128
|
}
|
|
124
129
|
function setupSignalHandlers() {
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
normalizeError,
|
|
4
|
+
safeSerializeErrorValue
|
|
5
|
+
} from "./chunk-X4P3RZYU.js";
|
|
6
|
+
|
|
7
|
+
// packages/cli/src/utils/formatError.ts
|
|
8
|
+
function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
|
|
9
|
+
if ([env["DEBUG"], env["DEBUG_MODE"]].some((v) => v === "true" || v === "1")) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
for (const arg of argv) {
|
|
13
|
+
if (arg === "--") {
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
if (arg === "--debug" || arg === "-d" || arg === "--debug=true" || arg === "--debug=1") {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
function formatStatusSuffix(message, status) {
|
|
23
|
+
const statusText = typeof status === "string" ? status.trim() : status !== void 0 ? String(status) : "";
|
|
24
|
+
if (!statusText) {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
if (message.toLowerCase().includes(statusText.toLowerCase())) {
|
|
28
|
+
return "";
|
|
29
|
+
}
|
|
30
|
+
return ` (Status: ${statusText})`;
|
|
31
|
+
}
|
|
32
|
+
function formatCliError(error, options = {}) {
|
|
33
|
+
const normalized = normalizeError(error);
|
|
34
|
+
const prefix = options.prefix ?? "Error: ";
|
|
35
|
+
const statusSuffix = formatStatusSuffix(
|
|
36
|
+
normalized.message,
|
|
37
|
+
normalized.status
|
|
38
|
+
);
|
|
39
|
+
if (options.debug) {
|
|
40
|
+
if (error instanceof Error && error.stack) {
|
|
41
|
+
const stackStartsWithError = error.stack.startsWith("Error: ") || error.name.endsWith("Error") && error.stack.startsWith(`${error.name}: `);
|
|
42
|
+
const stackPrefix = prefix === "Error: " && stackStartsWithError ? "" : prefix;
|
|
43
|
+
let debugOutput = error.stack.includes(normalized.message) && !statusSuffix ? `${stackPrefix}${error.stack}` : `${prefix}${normalized.message}${statusSuffix}
|
|
44
|
+
${error.stack}`;
|
|
45
|
+
if (normalized.details !== void 0) {
|
|
46
|
+
debugOutput += `
|
|
47
|
+
Debug Details: ${safeSerializeErrorValue(normalized.details, 2)}`;
|
|
48
|
+
}
|
|
49
|
+
return debugOutput;
|
|
50
|
+
}
|
|
51
|
+
return `${prefix}${normalized.message}${statusSuffix}
|
|
52
|
+
Debug Context: ${safeSerializeErrorValue(normalized.originalError, 2)}`;
|
|
53
|
+
}
|
|
54
|
+
return `${prefix}${normalized.message}${statusSuffix}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
isCliDebugEnabled,
|
|
59
|
+
formatCliError
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2026 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
65
|
+
*/
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
normalizeError,
|
|
4
|
+
safeSerializeErrorValue
|
|
5
|
+
} from "./chunk-TPD3RZ2B.js";
|
|
6
|
+
|
|
7
|
+
// packages/cli/src/utils/formatError.ts
|
|
8
|
+
function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
|
|
9
|
+
if ([env["DEBUG"], env["DEBUG_MODE"]].some((v) => v === "true" || v === "1")) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
for (const arg of argv) {
|
|
13
|
+
if (arg === "--") {
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
if (arg === "--debug" || arg === "-d" || arg === "--debug=true" || arg === "--debug=1") {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
function formatStatusSuffix(message, status) {
|
|
23
|
+
const statusText = typeof status === "string" ? status.trim() : status !== void 0 ? String(status) : "";
|
|
24
|
+
if (!statusText) {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
if (message.toLowerCase().includes(statusText.toLowerCase())) {
|
|
28
|
+
return "";
|
|
29
|
+
}
|
|
30
|
+
return ` (Status: ${statusText})`;
|
|
31
|
+
}
|
|
32
|
+
function formatCliError(error, options = {}) {
|
|
33
|
+
const normalized = normalizeError(error);
|
|
34
|
+
const prefix = options.prefix ?? "Error: ";
|
|
35
|
+
const statusSuffix = formatStatusSuffix(
|
|
36
|
+
normalized.message,
|
|
37
|
+
normalized.status
|
|
38
|
+
);
|
|
39
|
+
if (options.debug) {
|
|
40
|
+
if (error instanceof Error && error.stack) {
|
|
41
|
+
const stackStartsWithError = error.stack.startsWith("Error: ") || error.name.endsWith("Error") && error.stack.startsWith(`${error.name}: `);
|
|
42
|
+
const stackPrefix = prefix === "Error: " && stackStartsWithError ? "" : prefix;
|
|
43
|
+
let debugOutput = error.stack.includes(normalized.message) && !statusSuffix ? `${stackPrefix}${error.stack}` : `${prefix}${normalized.message}${statusSuffix}
|
|
44
|
+
${error.stack}`;
|
|
45
|
+
if (normalized.details !== void 0) {
|
|
46
|
+
debugOutput += `
|
|
47
|
+
Debug Details: ${safeSerializeErrorValue(normalized.details, 2)}`;
|
|
48
|
+
}
|
|
49
|
+
return debugOutput;
|
|
50
|
+
}
|
|
51
|
+
return `${prefix}${normalized.message}${statusSuffix}
|
|
52
|
+
Debug Context: ${safeSerializeErrorValue(normalized.originalError, 2)}`;
|
|
53
|
+
}
|
|
54
|
+
return `${prefix}${normalized.message}${statusSuffix}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
isCliDebugEnabled,
|
|
59
|
+
formatCliError
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2026 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
65
|
+
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
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
|
ExitCodes,
|
|
4
|
+
ShellExecutionService,
|
|
4
5
|
Storage,
|
|
5
6
|
isTelemetrySdkInitialized,
|
|
6
7
|
resetBrowserSession,
|
|
7
8
|
shutdownTelemetry
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y4PW6PYG.js";
|
|
9
10
|
|
|
10
11
|
// packages/cli/src/utils/cleanup.ts
|
|
11
12
|
import { promises as fs } from "node:fs";
|
|
@@ -87,6 +88,10 @@ async function runExitCleanup() {
|
|
|
87
88
|
await resetBrowserSession();
|
|
88
89
|
} catch {
|
|
89
90
|
}
|
|
91
|
+
try {
|
|
92
|
+
await ShellExecutionService.cleanupAllActiveProcesses();
|
|
93
|
+
} catch {
|
|
94
|
+
}
|
|
90
95
|
if (configForTelemetry) {
|
|
91
96
|
try {
|
|
92
97
|
await configForTelemetry.dispose();
|
|
@@ -118,7 +123,7 @@ async function gracefulShutdown(reason) {
|
|
|
118
123
|
}
|
|
119
124
|
isShuttingDown = true;
|
|
120
125
|
await runExitCleanup();
|
|
121
|
-
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : ExitCodes.SUCCESS;
|
|
126
|
+
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
|
|
122
127
|
process.exit(exitCode);
|
|
123
128
|
}
|
|
124
129
|
function setupSignalHandlers() {
|