@google/gemini-cli 0.51.0-preview.0 → 0.52.0-nightly.20260713.gf354eebaf
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-YCMQYVOL.js → chunk-2T7DHFUF.js} +7 -7
- package/bundle/{chunk-ZLW5C5RW.js → chunk-2YX7REYH.js} +1 -1
- package/bundle/{chunk-KKZMWOPL.js → chunk-36XJOV7D.js} +1 -1
- package/bundle/{chunk-FIVDQWYP.js → chunk-3E5UN72A.js} +1 -1
- package/bundle/{chunk-YITANI4H.js → chunk-3QARMH4K.js} +8 -5
- package/bundle/{chunk-DY72VNA7.js → chunk-APFEBPRN.js} +2 -2
- package/bundle/{chunk-PUQ6F6LT.js → chunk-AXDCPZK4.js} +1 -1
- package/bundle/{chunk-FPNPAIJS.js → chunk-AZMX5CAR.js} +3 -3
- package/bundle/{chunk-MTJEEJK4.js → chunk-BWWM7236.js} +23 -11
- package/bundle/{chunk-KKH6C2EN.js → chunk-DB7X2Y2C.js} +7616 -14196
- package/bundle/{chunk-CCS4FZN3.js → chunk-DL66YX6H.js} +1 -1
- package/bundle/{chunk-JYUWXRQN.js → chunk-DZIOGU7O.js} +1 -1
- package/bundle/{chunk-NZPKN6HX.js → chunk-EBDB2GKX.js} +1 -1
- package/bundle/{chunk-4ZTDUVGF.js → chunk-ELOFTD3I.js} +3 -3
- package/bundle/{chunk-ZCZJ3EHG.js → chunk-EQJS4COG.js} +67 -54
- package/bundle/chunk-HWYSVU2Y.js +154 -0
- package/bundle/{chunk-Y6OKNB2O.js → chunk-JK366WXF.js} +1 -1
- package/bundle/{chunk-SN3AWJMJ.js → chunk-LZWVXAKV.js} +1 -1
- package/bundle/{chunk-G6N5TBIV.js → chunk-M2W3BJNE.js} +2 -2
- package/bundle/chunk-MNVSGXFA.js +17332 -0
- package/bundle/{chunk-IT3MCILF.js → chunk-NPBRF4SI.js} +1 -1
- package/bundle/{chunk-CR7DJZQQ.js → chunk-PUNBJ76K.js} +9 -8
- package/bundle/{chunk-4NX72DYK.js → chunk-QKLXGOQQ.js} +34 -16
- package/bundle/{chunk-TTSEXUPD.js → chunk-RXBKF467.js} +3 -3
- package/bundle/chunk-SJG3YDOW.js +102505 -0
- package/bundle/chunk-SWWOMF5U.js +388063 -0
- package/bundle/{chunk-Z6DCMYAX.js → chunk-TIH7TS2I.js} +2 -2
- package/bundle/chunk-XQM42LAM.js +118 -0
- package/bundle/chunk-Y2HXPFYB.js +1571 -0
- package/bundle/{chunk-DO2TG64U.js → chunk-YY7XHIP5.js} +7 -7
- package/bundle/chunk-Z3HRZRKL.js +398 -0
- package/bundle/chunk-Z6YPLHBH.js +512 -0
- package/bundle/{cleanup-FQDKYMP7.js → cleanup-5AQQMD23.js} +2 -2
- package/bundle/{cleanup-KYHKAOAV.js → cleanup-BJXMNJTU.js} +2 -2
- package/bundle/{cleanup-RKALUUIS.js → cleanup-BZE7CX3F.js} +2 -2
- package/bundle/cleanup-DPHUXC5P.js +32 -0
- package/bundle/{core-ZPLCY7CF.js → core-2VB5TAAN.js} +1 -1
- package/bundle/{devtoolsService-JKRU3MYU.js → devtoolsService-JRDPPU42.js} +2 -2
- package/bundle/{devtoolsService-XZY2NAWE.js → devtoolsService-LJGLJGJV.js} +4 -3
- package/bundle/devtoolsService-MG4V53EK.js +4359 -0
- package/bundle/{devtoolsService-MDNGNUVW.js → devtoolsService-SADMX7SY.js} +2 -2
- package/bundle/{dist-KYS2OS5Q.js → dist-CGC3DE3I.js} +1 -1
- package/bundle/{core-YY6I7TM7.js → dist-O7KA2L4U.js} +1 -1
- package/bundle/dist-V7MGOCX5.js +2152 -0
- package/bundle/docs/changelogs/index.md +13 -0
- package/bundle/docs/changelogs/latest.md +18 -49
- package/bundle/docs/changelogs/preview.md +44 -57
- package/bundle/{gemini-ZFN5ZWKT.js → gemini-24LLUGUQ.js} +14 -14
- package/bundle/{gemini-DFLM6FZF.js → gemini-EV7YQC7F.js} +14 -14
- package/bundle/{gemini-6JOWJJRI.js → gemini-UEPAA26P.js} +212 -196
- package/bundle/gemini-VWRUY5RU.js +29270 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-U33KFJYX.js → interactiveCli-CZLGBQJS.js} +52 -12
- package/bundle/{interactiveCli-642BSKOD.js → interactiveCli-GSUQ3DVQ.js} +359 -300
- package/bundle/interactiveCli-LAC2GT5E.js +34816 -0
- package/bundle/{interactiveCli-OIN4AGBD.js → interactiveCli-ZT2EUQKA.js} +52 -12
- package/bundle/{liteRtServerManager-6B6QVC3X.js → liteRtServerManager-2GSYVKDP.js} +4 -4
- package/bundle/{liteRtServerManager-6DL4RPYQ.js → liteRtServerManager-BWZ2W62M.js} +4 -4
- package/bundle/{liteRtServerManager-2KULLNCR.js → liteRtServerManager-NIEOMPFD.js} +4 -4
- package/bundle/liteRtServerManager-ZUHIUYXB.js +65 -0
- package/bundle/{oauth2-provider-7MN7TDIH.js → oauth2-provider-5VAK2NYV.js} +1 -1
- package/bundle/{oauth2-provider-YYHCEEAO.js → oauth2-provider-L7BJUHV4.js} +38 -72
- package/bundle/{oauth2-provider-XRJ2KE2Y.js → oauth2-provider-MT25IEBC.js} +1 -1
- package/bundle/oauth2-provider-R2QBZWOH.js +235 -0
- package/bundle/{start-HPGDHGIK.js → start-33JI6F6O.js} +6 -6
- package/bundle/{start-N7GSPBDS.js → start-HJTAEHPM.js} +6 -6
- package/bundle/{start-EKMJOLSQ.js → start-RCFRASLC.js} +6 -6
- package/bundle/start-XNCBFLHI.js +18 -0
- package/package.json +1 -1
package/bundle/gemini.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
RELAUNCH_EXIT_CODE,
|
|
5
5
|
getScriptArgs,
|
|
6
6
|
getSpawnConfig
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-Z3HRZRKL.js";
|
|
8
|
+
import "./chunk-PUNBJ76K.js";
|
|
9
|
+
import "./chunk-HWYSVU2Y.js";
|
|
10
|
+
import "./chunk-DB7X2Y2C.js";
|
|
11
11
|
import "./chunk-664ZODQF.js";
|
|
12
12
|
import "./chunk-TUDYL3X4.js";
|
|
13
13
|
import "./chunk-IUUIT4SU.js";
|
|
@@ -115,9 +115,9 @@ ${error instanceof Error ? error.stack ?? error.message : String(error)}
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
} else {
|
|
118
|
-
const { main } = await import("./gemini-
|
|
119
|
-
const { FatalError, writeToStderr } = await import("./dist-
|
|
120
|
-
const { runExitCleanup } = await import("./cleanup-
|
|
118
|
+
const { main } = await import("./gemini-UEPAA26P.js");
|
|
119
|
+
const { FatalError, writeToStderr } = await import("./dist-O7KA2L4U.js");
|
|
120
|
+
const { runExitCleanup } = await import("./cleanup-DPHUXC5P.js");
|
|
121
121
|
main().catch(async (error) => {
|
|
122
122
|
const cleanupTimeout = setTimeout(() => {
|
|
123
123
|
writeToStderr("Cleanup timed out, forcing exit...\n");
|
|
@@ -157,13 +157,13 @@ import {
|
|
|
157
157
|
widestLineFromStyledChars,
|
|
158
158
|
wordBreakStyledChars,
|
|
159
159
|
wrapStyledChars
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-EQJS4COG.js";
|
|
161
161
|
import {
|
|
162
162
|
appEvents
|
|
163
163
|
} from "./chunk-5PS3AYFU.js";
|
|
164
164
|
import {
|
|
165
165
|
require_source
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-3E5UN72A.js";
|
|
167
167
|
import {
|
|
168
168
|
ACTIVE_SHELL_MAX_LINES,
|
|
169
169
|
COMPACT_TOOL_SUBVIEW_MAX_LINES,
|
|
@@ -214,24 +214,24 @@ import {
|
|
|
214
214
|
stripAnsi,
|
|
215
215
|
stripUnsafeCharacters,
|
|
216
216
|
toCodePoints
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-3QARMH4K.js";
|
|
218
218
|
import {
|
|
219
219
|
handleAutoUpdate,
|
|
220
220
|
isDevelopment,
|
|
221
221
|
relaunchApp,
|
|
222
222
|
setUpdateHandler
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-M2W3BJNE.js";
|
|
224
224
|
import {
|
|
225
225
|
isTodoList,
|
|
226
226
|
mapCoreStatusToDisplayStatus,
|
|
227
227
|
require_react
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-Z6YPLHBH.js";
|
|
229
229
|
import {
|
|
230
230
|
registerCleanup,
|
|
231
231
|
removeCleanup,
|
|
232
232
|
runExitCleanup,
|
|
233
233
|
setupTtyCheck
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-DZIOGU7O.js";
|
|
235
235
|
import {
|
|
236
236
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
237
237
|
AGENT_TOOL_NAME,
|
|
@@ -431,7 +431,7 @@ import {
|
|
|
431
431
|
validatePlanContent,
|
|
432
432
|
validatePlanPath,
|
|
433
433
|
writeToStdout
|
|
434
|
-
} from "./chunk-
|
|
434
|
+
} from "./chunk-SWWOMF5U.js";
|
|
435
435
|
import "./chunk-664ZODQF.js";
|
|
436
436
|
import "./chunk-TUDYL3X4.js";
|
|
437
437
|
import "./chunk-IUUIT4SU.js";
|
|
@@ -15269,6 +15269,8 @@ var CloudPaidPrivacyNotice = ({
|
|
|
15269
15269
|
|
|
15270
15270
|
// packages/cli/src/ui/hooks/usePrivacySettings.ts
|
|
15271
15271
|
var import_react51 = __toESM(require_react(), 1);
|
|
15272
|
+
var TierUnavailableError = class extends Error {
|
|
15273
|
+
};
|
|
15272
15274
|
var usePrivacySettings = (config) => {
|
|
15273
15275
|
const [privacyState, setPrivacyState] = (0, import_react51.useState)({
|
|
15274
15276
|
isLoading: true
|
|
@@ -15282,7 +15284,11 @@ var usePrivacySettings = (config) => {
|
|
|
15282
15284
|
const server = getCodeAssistServerOrFail(config);
|
|
15283
15285
|
const tier = server.userTier;
|
|
15284
15286
|
if (tier === void 0) {
|
|
15285
|
-
|
|
15287
|
+
setPrivacyState({
|
|
15288
|
+
isLoading: false,
|
|
15289
|
+
isTierUnavailable: true
|
|
15290
|
+
});
|
|
15291
|
+
return;
|
|
15286
15292
|
}
|
|
15287
15293
|
if (tier !== UserTierId.FREE) {
|
|
15288
15294
|
setPrivacyState({
|
|
@@ -15298,6 +15304,13 @@ var usePrivacySettings = (config) => {
|
|
|
15298
15304
|
dataCollectionOptIn: optIn
|
|
15299
15305
|
});
|
|
15300
15306
|
} catch (e) {
|
|
15307
|
+
if (isTierUnavailableError(e)) {
|
|
15308
|
+
setPrivacyState({
|
|
15309
|
+
isLoading: false,
|
|
15310
|
+
isTierUnavailable: true
|
|
15311
|
+
});
|
|
15312
|
+
return;
|
|
15313
|
+
}
|
|
15301
15314
|
setPrivacyState({
|
|
15302
15315
|
isLoading: false,
|
|
15303
15316
|
error: e instanceof Error ? e.message : String(e)
|
|
@@ -15317,6 +15330,13 @@ var usePrivacySettings = (config) => {
|
|
|
15317
15330
|
dataCollectionOptIn: updatedOptIn
|
|
15318
15331
|
});
|
|
15319
15332
|
} catch (e) {
|
|
15333
|
+
if (isTierUnavailableError(e)) {
|
|
15334
|
+
setPrivacyState({
|
|
15335
|
+
isLoading: false,
|
|
15336
|
+
isTierUnavailable: true
|
|
15337
|
+
});
|
|
15338
|
+
return;
|
|
15339
|
+
}
|
|
15320
15340
|
setPrivacyState({
|
|
15321
15341
|
isLoading: false,
|
|
15322
15342
|
error: e instanceof Error ? e.message : String(e)
|
|
@@ -15333,12 +15353,19 @@ var usePrivacySettings = (config) => {
|
|
|
15333
15353
|
function getCodeAssistServerOrFail(config) {
|
|
15334
15354
|
const server = getCodeAssistServer(config);
|
|
15335
15355
|
if (server === void 0) {
|
|
15336
|
-
throw new
|
|
15356
|
+
throw new TierUnavailableError("Oauth not being used");
|
|
15337
15357
|
} else if (server.projectId === void 0) {
|
|
15338
|
-
throw new
|
|
15358
|
+
throw new TierUnavailableError("CodeAssist server is missing a project ID");
|
|
15339
15359
|
}
|
|
15340
15360
|
return server;
|
|
15341
15361
|
}
|
|
15362
|
+
function isTierUnavailableError(error) {
|
|
15363
|
+
if (error instanceof TierUnavailableError) {
|
|
15364
|
+
return true;
|
|
15365
|
+
}
|
|
15366
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
15367
|
+
return /does not have a current tier/i.test(message);
|
|
15368
|
+
}
|
|
15342
15369
|
async function getRemoteDataCollectionOptIn(server) {
|
|
15343
15370
|
try {
|
|
15344
15371
|
const resp = await server.getCodeAssistGlobalUserSetting();
|
|
@@ -15380,7 +15407,7 @@ var CloudFreePrivacyNotice = ({
|
|
|
15380
15407
|
const { privacyState, updateDataCollectionOptIn } = usePrivacySettings(config);
|
|
15381
15408
|
useKeypress(
|
|
15382
15409
|
(key) => {
|
|
15383
|
-
if ((privacyState.error || privacyState.isFreeTier === false) && key.name === "escape") {
|
|
15410
|
+
if ((privacyState.error || privacyState.isFreeTier === false || privacyState.isTierUnavailable) && key.name === "escape") {
|
|
15384
15411
|
onExit();
|
|
15385
15412
|
return true;
|
|
15386
15413
|
}
|
|
@@ -15400,6 +15427,19 @@ var CloudFreePrivacyNotice = ({
|
|
|
15400
15427
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { color: theme.text.secondary, children: "Press Esc to exit." })
|
|
15401
15428
|
] });
|
|
15402
15429
|
}
|
|
15430
|
+
if (privacyState.isTierUnavailable) {
|
|
15431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Box_default, { flexDirection: "column", marginY: 1, children: [
|
|
15432
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { bold: true, color: theme.text.accent, children: "Gemini Code Assist Privacy Notice" }),
|
|
15433
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Newline, {}),
|
|
15434
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { color: theme.text.primary, children: "The data collection opt-in isn't available for this account because it doesn't have a Gemini Code Assist for Individuals (free) tier." }),
|
|
15435
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Newline, {}),
|
|
15436
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { color: theme.text.primary, children: "If you're on a Google Workspace or enterprise account, use the Vertex AI / Google Cloud path instead by setting the GOOGLE_CLOUD_PROJECT environment variable to your Google Cloud project." }),
|
|
15437
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Newline, {}),
|
|
15438
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { color: theme.text.primary, children: "Learn more: https://geminicli.com/docs/get-started/authentication/" }),
|
|
15439
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Newline, {}),
|
|
15440
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { color: theme.text.secondary, children: "Press Esc to exit." })
|
|
15441
|
+
] });
|
|
15442
|
+
}
|
|
15403
15443
|
if (privacyState.isFreeTier === false) {
|
|
15404
15444
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Box_default, { flexDirection: "column", marginY: 1, children: [
|
|
15405
15445
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Text, { bold: true, color: theme.text.accent, children: "Gemini Code Assist Privacy Notice" }),
|
|
@@ -33757,7 +33797,7 @@ ${queuedText}` : queuedText;
|
|
|
33757
33797
|
if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
|
|
33758
33798
|
if (settings.merged.general.devtools) {
|
|
33759
33799
|
void (async () => {
|
|
33760
|
-
const { toggleDevToolsPanel } = await import("./devtoolsService-
|
|
33800
|
+
const { toggleDevToolsPanel } = await import("./devtoolsService-JRDPPU42.js");
|
|
33761
33801
|
await toggleDevToolsPanel(
|
|
33762
33802
|
config,
|
|
33763
33803
|
showErrorDetails,
|