@google/gemini-cli 0.42.0-preview.1 → 0.43.0-preview.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-AS4E6DX7.js → chunk-43AGRA7S.js} +3 -3
- package/bundle/{chunk-UZZVXATH.js → chunk-46T44JOY.js} +1 -1
- package/bundle/{chunk-BI5ZICGL.js → chunk-4TLQKGTR.js} +1 -1
- package/bundle/{chunk-BZZHETT5.js → chunk-6XOSIMPZ.js} +8 -9
- package/bundle/{chunk-6K3EFSDX.js → chunk-HQXINMBL.js} +2 -2
- package/bundle/{chunk-I5JMJ2LU.js → chunk-JENIU3E3.js} +1 -1
- package/bundle/{chunk-LK7LIPO6.js → chunk-LBQFRHYD.js} +1 -1
- package/bundle/{chunk-5AFGMGVT.js → chunk-LFGJVOVZ.js} +486 -381
- package/bundle/{chunk-UVBJHP26.js → chunk-MRHFLHPJ.js} +2 -2
- package/bundle/{chunk-7LOMS5HP.js → chunk-MXKXLNQD.js} +3 -3
- package/bundle/{chunk-ECNYAST2.js → chunk-N6QYTC2T.js} +5417 -5376
- package/bundle/{chunk-QZ2JZRLK.js → chunk-NBRZ4A3S.js} +2170 -791
- package/bundle/{chunk-L7GACEVA.js → chunk-P4UQCQUB.js} +3 -3
- package/bundle/{chunk-NHDN46IK.js → chunk-PGJUNQPO.js} +34 -16
- package/bundle/{chunk-GZ4FSF4B.js → chunk-PSWUV2OO.js} +3 -3
- package/bundle/{chunk-UKCYYERR.js → chunk-PYLHDAUK.js} +3 -3
- package/bundle/{chunk-47QC6PWE.js → chunk-Q23X5R4A.js} +486 -381
- package/bundle/{chunk-VERP26KN.js → chunk-QYUN3J2L.js} +533 -441
- package/bundle/{chunk-A564QXJJ.js → chunk-SAISHGWW.js} +1907 -716
- package/bundle/{chunk-IBIKJW2L.js → chunk-SYD5SJFT.js} +38 -23
- package/bundle/{chunk-WX6CHISQ.js → chunk-T3SUXLQQ.js} +2 -2
- package/bundle/{chunk-BUJZOWQ7.js → chunk-UIG2IVPJ.js} +34 -16
- package/bundle/{chunk-JEW7ZIWE.js → chunk-UJ26GAE5.js} +5326 -5290
- package/bundle/{chunk-ARLWCFGI.js → chunk-UNAVBUTP.js} +14729 -7452
- package/bundle/{chunk-7H3CQGS6.js → chunk-WQOLTO3C.js} +1 -1
- package/bundle/{chunk-KSNNZBTV.js → chunk-X26T73X6.js} +3 -3
- package/bundle/{cleanup-6PVHIK4C.js → cleanup-EIZJH2E3.js} +3 -3
- package/bundle/{cleanup-FRS7FPOS.js → cleanup-MI76P55B.js} +3 -3
- package/bundle/{cleanup-NDTUQVOW.js → cleanup-NZBQYB7U.js} +3 -3
- package/bundle/{core-RZFMBCSX.js → core-ERSGIOMQ.js} +30 -2
- package/bundle/{dist-7BJPFNU7.js → core-T2TBFAYG.js} +30 -2
- package/bundle/{devtoolsService-WER5PRLG.js → devtoolsService-7KZDSYEF.js} +3 -3
- package/bundle/{devtoolsService-6D355RSX.js → devtoolsService-FYTOIC37.js} +3 -3
- package/bundle/{devtoolsService-7SBW23VD.js → devtoolsService-LV5NJ2BT.js} +4 -5
- package/bundle/{dist-DTPIOJ3P.js → dist-ETX67B7P.js} +30 -2
- package/bundle/docs/changelogs/index.md +14 -0
- package/bundle/docs/changelogs/latest.md +108 -166
- package/bundle/docs/changelogs/preview.md +227 -103
- package/bundle/docs/cli/auto-memory.md +60 -38
- package/bundle/docs/cli/settings.md +1 -1
- package/bundle/docs/cli/tutorials/memory-management.md +1 -1
- package/bundle/docs/extensions/releasing.md +58 -24
- package/bundle/docs/reference/configuration.md +14 -1
- package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
- package/bundle/{gemini-KMMF6AK3.js → gemini-IVKBXHDT.js} +160 -60
- package/bundle/{gemini-GLORNPU2.js → gemini-JKWQQTKP.js} +160 -60
- package/bundle/{gemini-HCJBP42A.js → gemini-Z77GAAR6.js} +331 -245
- package/bundle/gemini.js +8 -8
- package/bundle/{interactiveCli-5UVCH7FM.js → interactiveCli-36WZS6KT.js} +1704 -1457
- package/bundle/{interactiveCli-HBRMSAIT.js → interactiveCli-BQ36B66Z.js} +1703 -1457
- package/bundle/{interactiveCli-TWDP2H52.js → interactiveCli-SME5QTEN.js} +1967 -1739
- package/bundle/{liteRtServerManager-3YA2HL46.js → liteRtServerManager-2QD4R3A3.js} +5 -5
- package/bundle/{liteRtServerManager-BYQVAM6Y.js → liteRtServerManager-ISYDOBNC.js} +5 -5
- package/bundle/{liteRtServerManager-IQHHDTUM.js → liteRtServerManager-N6OMT6W5.js} +5 -5
- package/bundle/{memoryDiscovery-FB7MMKTA.js → memoryDiscovery-LLSKN6HL.js} +1 -1
- package/bundle/{memoryDiscovery-KSYZVCWF.js → memoryDiscovery-SJ7P6RCN.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-C66JRVDQ.js → oauth2-provider-DOSIH6VE.js} +2 -2
- package/bundle/{oauth2-provider-TUVQXNLY.js → oauth2-provider-TZF6EZRX.js} +2 -2
- package/bundle/{oauth2-provider-OAXWX3Z3.js → oauth2-provider-VFOABWBW.js} +73 -39
- package/bundle/{start-ELTWFVNO.js → start-3GPIRK3E.js} +7 -7
- package/bundle/{start-HHZI73VV.js → start-6NONW677.js} +7 -7
- package/bundle/{start-NCMR7HOQ.js → start-M6MUPEJS.js} +7 -7
- package/package.json +1 -1
- package/bundle/chunk-5MQ5VMQK.js +0 -17230
- package/bundle/chunk-66C7JVNE.js +0 -391
- package/bundle/chunk-A3GDBSEI.js +0 -512
- package/bundle/chunk-L6GBKGQX.js +0 -118
- package/bundle/chunk-LCB7VVYS.js +0 -356008
- package/bundle/chunk-OGZGOFAJ.js +0 -1571
- package/bundle/chunk-PBD26LJQ.js +0 -81544
- package/bundle/chunk-YDSDSLSO.js +0 -156
- package/bundle/cleanup-O4IDJYU2.js +0 -33
- package/bundle/devtoolsService-SPV43SGI.js +0 -857
- package/bundle/dist-ZZ5HEQGP.js +0 -2096
- package/bundle/gemini-3NXWUDHV.js +0 -16256
- package/bundle/interactiveCli-BNDKNCVJ.js +0 -34505
- package/bundle/liteRtServerManager-RTBP2SLV.js +0 -66
- package/bundle/oauth2-provider-ZPJOR5SG.js +0 -237
- package/bundle/start-S3TEO5BN.js +0 -19
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LBQFRHYD.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SYD5SJFT.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N6QYTC2T.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
require_strip_json_comments,
|
|
21
21
|
sanitizeFilenamePart,
|
|
22
22
|
stripAnsi
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NBRZ4A3S.js";
|
|
24
24
|
import {
|
|
25
25
|
FatalConfigError,
|
|
26
26
|
GEMINI_DIR,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
external_exports,
|
|
31
31
|
getErrorMessage,
|
|
32
32
|
homedir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-N6QYTC2T.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__require,
|
|
@@ -9959,9 +9959,13 @@ var getAllSessionFiles = async (chatsDir, currentSessionId, options = {}) => {
|
|
|
9959
9959
|
if (!content) {
|
|
9960
9960
|
return { fileName: file, sessionInfo: null };
|
|
9961
9961
|
}
|
|
9962
|
-
if (!content.sessionId
|
|
9962
|
+
if (!content.sessionId) {
|
|
9963
9963
|
return { fileName: file, sessionInfo: null };
|
|
9964
9964
|
}
|
|
9965
|
+
const fileTimestamp = !content.startTime || !content.lastUpdated ? (await fs.stat(filePath).catch(() => void 0))?.mtime.toISOString() : void 0;
|
|
9966
|
+
const fallbackTimestamp = fileTimestamp ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
9967
|
+
const startTime = content.startTime || content.lastUpdated || fallbackTimestamp;
|
|
9968
|
+
const lastUpdated = content.lastUpdated || content.startTime || fallbackTimestamp;
|
|
9965
9969
|
if (!content.hasUserOrAssistantMessage) {
|
|
9966
9970
|
return { fileName: file, sessionInfo: null };
|
|
9967
9971
|
}
|
|
@@ -9983,8 +9987,8 @@ var getAllSessionFiles = async (chatsDir, currentSessionId, options = {}) => {
|
|
|
9983
9987
|
id: content.sessionId,
|
|
9984
9988
|
file: file.replace(/\.jsonl?$/, ""),
|
|
9985
9989
|
fileName: file,
|
|
9986
|
-
startTime
|
|
9987
|
-
lastUpdated
|
|
9990
|
+
startTime,
|
|
9991
|
+
lastUpdated,
|
|
9988
9992
|
messageCount: content.messageCount ?? content.messages.length,
|
|
9989
9993
|
displayName: content.summary ? stripUnsafeCharacters(content.summary) : firstUserMessage,
|
|
9990
9994
|
firstUserMessage,
|
|
@@ -10138,10 +10142,15 @@ var SessionSelector = class {
|
|
|
10138
10142
|
if (!sessionData) {
|
|
10139
10143
|
throw new Error("Failed to load session data");
|
|
10140
10144
|
}
|
|
10145
|
+
const normalizedSessionData = {
|
|
10146
|
+
...sessionData,
|
|
10147
|
+
startTime: sessionData.startTime || sessionInfo.startTime,
|
|
10148
|
+
lastUpdated: sessionData.lastUpdated || sessionInfo.lastUpdated
|
|
10149
|
+
};
|
|
10141
10150
|
const displayInfo = `Session ${sessionInfo.index}: ${sessionInfo.firstUserMessage} (${sessionInfo.messageCount} messages, ${formatRelativeTime(sessionInfo.lastUpdated)})`;
|
|
10142
10151
|
return {
|
|
10143
10152
|
sessionPath,
|
|
10144
|
-
sessionData,
|
|
10153
|
+
sessionData: normalizedSessionData,
|
|
10145
10154
|
displayInfo
|
|
10146
10155
|
};
|
|
10147
10156
|
} catch (error) {
|
|
@@ -10528,8 +10537,8 @@ async function cleanupToolOutputFiles(settings, debugMode = false, projectTempDi
|
|
|
10528
10537
|
files.map(async (file) => {
|
|
10529
10538
|
try {
|
|
10530
10539
|
const filePath = path2.join(toolOutputDir, file.name);
|
|
10531
|
-
const
|
|
10532
|
-
return { name: file.name, mtime:
|
|
10540
|
+
const stat3 = await fs2.stat(filePath);
|
|
10541
|
+
return { name: file.name, mtime: stat3.mtime };
|
|
10533
10542
|
} catch (error) {
|
|
10534
10543
|
debugLogger.debug(
|
|
10535
10544
|
`Failed to stat file ${file.name}: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
@@ -10582,12 +10591,12 @@ async function cleanupToolOutputFiles(settings, debugMode = false, projectTempDi
|
|
|
10582
10591
|
continue;
|
|
10583
10592
|
}
|
|
10584
10593
|
const subdirPath = path2.join(toolOutputDir, subdir.name);
|
|
10585
|
-
const
|
|
10594
|
+
const stat3 = await fs2.stat(subdirPath);
|
|
10586
10595
|
let shouldDelete = false;
|
|
10587
10596
|
if (retentionConfig.maxAge) {
|
|
10588
10597
|
const maxAgeMs = parseRetentionPeriod(retentionConfig.maxAge);
|
|
10589
10598
|
const cutoffDate = new Date(now.getTime() - maxAgeMs);
|
|
10590
|
-
if (
|
|
10599
|
+
if (stat3.mtime < cutoffDate) {
|
|
10591
10600
|
shouldDelete = true;
|
|
10592
10601
|
}
|
|
10593
10602
|
}
|
|
@@ -14265,7 +14274,7 @@ var SETTINGS_SCHEMA = {
|
|
|
14265
14274
|
label: "Voice Stop Grace Period (ms)",
|
|
14266
14275
|
category: "Experimental",
|
|
14267
14276
|
requiresRestart: false,
|
|
14268
|
-
default:
|
|
14277
|
+
default: 4e3,
|
|
14269
14278
|
description: "How long to wait for final transcription after stopping recording.",
|
|
14270
14279
|
showInDialog: true
|
|
14271
14280
|
}
|
|
@@ -16172,6 +16181,14 @@ var LoadedSettings = class {
|
|
|
16172
16181
|
get merged() {
|
|
16173
16182
|
return this._merged;
|
|
16174
16183
|
}
|
|
16184
|
+
/**
|
|
16185
|
+
* Returns a merged settings object as if the folder were trusted.
|
|
16186
|
+
* This is useful for commands like 'mcp list' that want to show
|
|
16187
|
+
* what's configured even if it's currently disabled for security reasons.
|
|
16188
|
+
*/
|
|
16189
|
+
getMergedSettingsAsIfTrusted() {
|
|
16190
|
+
return this.computeMergedSettings(true);
|
|
16191
|
+
}
|
|
16175
16192
|
setTrusted(isTrusted) {
|
|
16176
16193
|
if (this.isTrusted === isTrusted) {
|
|
16177
16194
|
return;
|
|
@@ -16188,13 +16205,15 @@ var LoadedSettings = class {
|
|
|
16188
16205
|
originalSettings: {}
|
|
16189
16206
|
};
|
|
16190
16207
|
}
|
|
16191
|
-
computeMergedSettings() {
|
|
16208
|
+
computeMergedSettings(forceTrusted = false) {
|
|
16209
|
+
const isTrusted = forceTrusted || this.isTrusted;
|
|
16210
|
+
const workspace = forceTrusted ? this._workspaceFile : this.workspace;
|
|
16192
16211
|
const merged = mergeSettings(
|
|
16193
16212
|
this.system.settings,
|
|
16194
16213
|
this.systemDefaults.settings,
|
|
16195
16214
|
this.user.settings,
|
|
16196
|
-
|
|
16197
|
-
|
|
16215
|
+
workspace.settings,
|
|
16216
|
+
isTrusted
|
|
16198
16217
|
);
|
|
16199
16218
|
const adminSettingSchema = getSettingsSchema().admin;
|
|
16200
16219
|
if (adminSettingSchema?.properties) {
|
|
@@ -16210,8 +16229,7 @@ var LoadedSettings = class {
|
|
|
16210
16229
|
}
|
|
16211
16230
|
computeSnapshot() {
|
|
16212
16231
|
const cloneSettingsFile = (file) => ({
|
|
16213
|
-
|
|
16214
|
-
rawJson: file.rawJson,
|
|
16232
|
+
...file,
|
|
16215
16233
|
settings: structuredClone(file.settings),
|
|
16216
16234
|
originalSettings: structuredClone(file.originalSettings)
|
|
16217
16235
|
});
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JENIU3E3.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UIG2IVPJ.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UJ26GAE5.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
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-MRHFLHPJ.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
getChannelFromVersion,
|
|
8
8
|
isGitRepository
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NBRZ4A3S.js";
|
|
10
10
|
import {
|
|
11
11
|
debugLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N6QYTC2T.js";
|
|
13
13
|
|
|
14
14
|
// packages/cli/src/utils/installationInfo.ts
|
|
15
15
|
import * as fs from "node:fs";
|