@google/gemini-cli 0.70.0 → 0.71.0-nightly.20261121.geecccfcd5
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-V4HIE5G5.js → chunk-3IQPEEFT.js} +1 -1
- package/bundle/{chunk-FHK4RNCX.js → chunk-3OVOJOQV.js} +7 -7
- package/bundle/{chunk-SPAMAY26.js → chunk-5J2X3GYT.js} +1 -1
- package/bundle/{chunk-UF44X63P.js → chunk-66M6QVYR.js} +782 -323
- package/bundle/{chunk-37D3S3FZ.js → chunk-6FOUJKOM.js} +878 -371
- package/bundle/{chunk-YOEWNBDC.js → chunk-74F5ZRXI.js} +12 -5
- package/bundle/{chunk-LMBUPWFC.js → chunk-7WYEB7FO.js} +8765 -15613
- package/bundle/{chunk-6IKD2NB3.js → chunk-A3SNIZ4K.js} +1 -1
- package/bundle/{chunk-AMHNNZY2.js → chunk-BVNLNGFD.js} +7 -7
- package/bundle/{chunk-5VFAWK3F.js → chunk-DC6NT336.js} +1 -1
- package/bundle/{chunk-CMKRWIX6.js → chunk-DKKO776D.js} +71 -58
- package/bundle/{chunk-WRWAVEME.js → chunk-EUUDSNXQ.js} +1 -1
- package/bundle/{chunk-KV6XIC2Z.js → chunk-GMYJWERY.js} +1 -1
- package/bundle/{chunk-EG2BSKPF.js → chunk-HQSLNBBU.js} +1 -1
- package/bundle/{chunk-LMNAB62M.js → chunk-JWRXMN7H.js} +12 -5
- package/bundle/{chunk-GFBMTAPD.js → chunk-L2ISE4LK.js} +18 -9
- package/bundle/chunk-LS3EWJTC.js +60338 -0
- package/bundle/{chunk-4BWP3TDK.js → chunk-NLZKOWER.js} +9 -8
- package/bundle/{chunk-BOIBJEIO.js → chunk-OM5Z3ZRO.js} +3 -3
- package/bundle/{chunk-7JS2T75Z.js → chunk-OQHA6SOK.js} +1 -1
- package/bundle/{chunk-FXAACYC3.js → chunk-QADAHCRT.js} +1 -1
- package/bundle/{chunk-VHXUWMGE.js → chunk-QVVBLU5B.js} +2 -2
- package/bundle/{chunk-CB37EK5Y.js → chunk-QWS2TBZG.js} +3 -3
- package/bundle/{chunk-3VGGGCOZ.js → chunk-RJEQTG6S.js} +2 -2
- package/bundle/chunk-S53XQOHZ.js +512 -0
- package/bundle/{chunk-QYKA4YD7.js → chunk-SLTPPXVT.js} +3 -3
- package/bundle/{chunk-G6SC5BOV.js → chunk-TE62WOO3.js} +1 -1
- package/bundle/chunk-V2F2BV3A.js +118 -0
- package/bundle/chunk-VTIY77BF.js +1571 -0
- package/bundle/chunk-XAXLQ5BJ.js +65 -0
- package/bundle/{chunk-JLKRLYZG.js → chunk-XPXAWJCB.js} +2 -2
- package/bundle/chunk-Y5DW673N.js +420386 -0
- package/bundle/chunk-YEEWGYBU.js +1962 -0
- package/bundle/chunk-YVHZS4VP.js +190 -0
- package/bundle/chunk-YVZ2JHAE.js +40031 -0
- package/bundle/{chunk-RFQXG324.js → chunk-YYWNIP3F.js} +1 -1
- package/bundle/{cleanup-BMYAIPAL.js → cleanup-3C2E3PSM.js} +2 -2
- package/bundle/{cleanup-CWOSCK57.js → cleanup-4IYCYTUB.js} +2 -2
- package/bundle/{cleanup-JTPRPYIQ.js → cleanup-NXI65SJI.js} +2 -2
- package/bundle/cleanup-UNQWTWUR.js +34 -0
- package/bundle/{core-XZECNCR2.js → core-DQSJHYG4.js} +31 -1
- package/bundle/{devtoolsService-ER22TM2Y.js → devtoolsService-4TYJS6M3.js} +2 -2
- package/bundle/{devtoolsService-O5VD5YWD.js → devtoolsService-5PXTVI7M.js} +4 -3
- package/bundle/{devtoolsService-WNJOZ7ZT.js → devtoolsService-NOXMAH56.js} +2 -2
- package/bundle/devtoolsService-UZFFGBEG.js +919 -0
- package/bundle/{core-HYVGBZPP.js → dist-VWT5M5DY.js} +31 -1
- package/bundle/{dist-75NDR3EX.js → dist-YHW4CPAY.js} +31 -1
- package/bundle/dist-YWJAC3IM.js +2372 -0
- package/bundle/docs/changelogs/index.md +46 -0
- package/bundle/docs/changelogs/latest.md +82 -100
- package/bundle/docs/changelogs/preview.md +82 -115
- package/bundle/{formatError-M4GLDFGE.js → formatError-PB6SEHWE.js} +2 -2
- package/bundle/{formatError-QOZLAZ32.js → formatError-QRSNJJ27.js} +2 -2
- package/bundle/{formatError-FYLLVZDF.js → formatError-UQIP4FYJ.js} +2 -2
- package/bundle/formatError-VMFHOWIU.js +14 -0
- package/bundle/{gemini-AYDYW6NZ.js → gemini-2SZFXE54.js} +18 -17
- package/bundle/{gemini-PG2FEK5D.js → gemini-OAKFBKMR.js} +227 -210
- package/bundle/{gemini-FRSP6LA3.js → gemini-TQYJRVJP.js} +18 -17
- package/bundle/gemini-XDU3J5JT.js +20021 -0
- package/bundle/gemini.js +8 -8
- package/bundle/{interactiveCli-76LAQB3B.js → interactiveCli-JWB6WIB2.js} +157 -32
- package/bundle/{interactiveCli-BYWR7IEK.js → interactiveCli-L5IOZTYF.js} +157 -32
- package/bundle/{interactiveCli-6TVFB4R5.js → interactiveCli-NBZDIAPD.js} +468 -324
- package/bundle/interactiveCli-W4IK4C6F.js +36447 -0
- package/bundle/{liteRtServerManager-GIRVSE6M.js → liteRtServerManager-GSYRGOB6.js} +4 -4
- package/bundle/{liteRtServerManager-KZ62KJW3.js → liteRtServerManager-I7YVNS3P.js} +4 -4
- package/bundle/{liteRtServerManager-BYJWS5BO.js → liteRtServerManager-OZPOFTLT.js} +4 -4
- package/bundle/liteRtServerManager-YUBDDMLI.js +65 -0
- package/bundle/{oauth2-provider-SFFQQ6OE.js → oauth2-provider-A6N22HUD.js} +1 -1
- package/bundle/{oauth2-provider-SRH6I6G7.js → oauth2-provider-JAYH53PG.js} +41 -79
- package/bundle/oauth2-provider-OUKCCXVS.js +273 -0
- package/bundle/{oauth2-provider-ZBFFAIQE.js → oauth2-provider-XADKJYM3.js} +1 -1
- package/bundle/{start-PLK5XHJC.js → start-7ZXOELXX.js} +6 -6
- package/bundle/{start-Q66LTS3Y.js → start-JF7ODMH2.js} +6 -6
- package/bundle/{start-OLEVDFQS.js → start-O7HDURUW.js} +6 -6
- package/bundle/start-X3ZAZW66.js +18 -0
- package/package.json +1 -1
|
@@ -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-Y5DW673N.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,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-HQSLNBBU.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_re,
|
|
18
18
|
require_semver,
|
|
19
19
|
require_valid
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y5DW673N.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|