@google/gemini-cli 0.39.0-preview.1 → 0.39.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-7SQF544H.js → chunk-3YUTTNJ7.js} +23 -10
- package/bundle/{chunk-EZUZYRLG.js → chunk-5GTZHSZV.js} +4 -4
- package/bundle/{chunk-TULI5SFB.js → chunk-6NW5RNNH.js} +60 -72
- package/bundle/{chunk-MJR464GS.js → chunk-BL3XXS2L.js} +1 -1
- package/bundle/{chunk-D5PDFQWX.js → chunk-LUWQB4AS.js} +1 -1
- package/bundle/{chunk-OXN7IRB7.js → chunk-NWD4JYMB.js} +4 -4
- package/bundle/{chunk-P2IAFIFP.js → chunk-RTKRL6Y5.js} +11687 -6242
- package/bundle/{chunk-IP2YTTJH.js → chunk-UQGLVPZQ.js} +24 -10
- package/bundle/{chunk-OS555R2T.js → chunk-YYY7NKKR.js} +2 -2
- package/bundle/{cleanup-T6HLM5JP.js → cleanup-3LELZME2.js} +2 -2
- package/bundle/{cleanup-C647TEIA.js → cleanup-JJEXOHOA.js} +2 -2
- package/bundle/{cleanup-CZSIFJCD.js → cleanup-TTGHQXQN.js} +3 -3
- package/bundle/{core-IZKTELTX.js → core-LKKLDF4Z.js} +1 -1
- package/bundle/{dist-OST42PZR.js → core-Z2SYVMM5.js} +2 -2
- package/bundle/{devtoolsService-OEBSPLJN.js → devtoolsService-H64VB4IA.js} +2 -2
- package/bundle/{devtoolsService-GHSBU5R5.js → devtoolsService-L5LFSMIR.js} +2 -2
- package/bundle/{devtoolsService-2ROQ6LME.js → devtoolsService-UQCUIXV5.js} +4 -5
- package/bundle/{dist-ADH7BOBF.js → dist-FWHS5IHN.js} +1 -1
- package/bundle/{gemini-6BFSWN53.js → gemini-BI2PCDUT.js} +8 -8
- package/bundle/{gemini-GUA6PG6F.js → gemini-CMXEUOSI.js} +169 -184
- package/bundle/{gemini-IENVNLLQ.js → gemini-YNLABPKW.js} +8 -8
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-FCDJTVQ3.js → interactiveCli-C46TDPVW.js} +4 -4
- package/bundle/{interactiveCli-P3PFIHWL.js → interactiveCli-LXXBYVNU.js} +258 -275
- package/bundle/{interactiveCli-FMNSXXHR.js → interactiveCli-P35Q3KZ2.js} +4 -4
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-6TB4NGWJ.js → oauth2-provider-7ZDLUOSM.js} +1 -1
- package/bundle/{oauth2-provider-AUIG7Q6O.js → oauth2-provider-CRWFOXYR.js} +1 -1
- package/bundle/{oauth2-provider-IXDXXQ6U.js → oauth2-provider-FEM5AIRT.js} +73 -39
- package/package.json +1 -1
- package/bundle/chunk-F2GDXAAF.js +0 -360274
- package/bundle/chunk-QHUP5MEL.js +0 -156
- package/bundle/chunk-WHPMO3WR.js +0 -101702
- package/bundle/cleanup-MYBJ6ZHP.js +0 -33
- package/bundle/devtoolsService-CR2UJLLC.js +0 -871
- package/bundle/dist-ZMA73RD7.js +0 -2010
- package/bundle/gemini-HENMLXDS.js +0 -15321
- package/bundle/interactiveCli-SEQ7RLOB.js +0 -34493
- package/bundle/oauth2-provider-UF547EKT.js +0 -237
|
@@ -251721,8 +251721,8 @@ var EventMetadataKey;
|
|
|
251721
251721
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
251722
251722
|
|
|
251723
251723
|
// packages/core/dist/src/generated/git-commit.js
|
|
251724
|
-
var GIT_COMMIT_INFO = "
|
|
251725
|
-
var CLI_VERSION = "0.39.0
|
|
251724
|
+
var GIT_COMMIT_INFO = "a70149e15";
|
|
251725
|
+
var CLI_VERSION = "0.39.0";
|
|
251726
251726
|
|
|
251727
251727
|
// packages/core/dist/src/ide/detect-ide.js
|
|
251728
251728
|
var IDE_DEFINITIONS = {
|
|
@@ -277902,7 +277902,7 @@ function getVersion() {
|
|
|
277902
277902
|
}
|
|
277903
277903
|
versionPromise = (async () => {
|
|
277904
277904
|
const pkgJson = await getPackageJson(__dirname4);
|
|
277905
|
-
return "0.39.0
|
|
277905
|
+
return "0.39.0";
|
|
277906
277906
|
})();
|
|
277907
277907
|
return versionPromise;
|
|
277908
277908
|
}
|
|
@@ -318573,7 +318573,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
318573
318573
|
return provider;
|
|
318574
318574
|
}
|
|
318575
318575
|
case "oauth2": {
|
|
318576
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
318576
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-7ZDLUOSM.js");
|
|
318577
318577
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
318578
318578
|
await provider.initialize();
|
|
318579
318579
|
return provider;
|
|
@@ -325338,6 +325338,8 @@ var A2AResultReassembler = class {
|
|
|
325338
325338
|
pushMessage(message) {
|
|
325339
325339
|
if (!message)
|
|
325340
325340
|
return;
|
|
325341
|
+
if (message.role === "user")
|
|
325342
|
+
return;
|
|
325341
325343
|
const text = extractPartsText(message.parts, "");
|
|
325342
325344
|
if (text && this.messageLog[this.messageLog.length - 1] !== text) {
|
|
325343
325345
|
this.messageLog.push(text);
|
|
@@ -325348,19 +325350,32 @@ var A2AResultReassembler = class {
|
|
|
325348
325350
|
*/
|
|
325349
325351
|
toActivityItems() {
|
|
325350
325352
|
const isAuthRequired = this.messageLog.includes(AUTH_REQUIRED_MSG);
|
|
325351
|
-
|
|
325352
|
-
|
|
325353
|
+
const items = [];
|
|
325354
|
+
if (isAuthRequired) {
|
|
325355
|
+
items.push({
|
|
325353
325356
|
id: "auth-required",
|
|
325354
325357
|
type: "thought",
|
|
325355
325358
|
content: AUTH_REQUIRED_MSG,
|
|
325356
325359
|
status: "running"
|
|
325357
|
-
}
|
|
325360
|
+
});
|
|
325361
|
+
}
|
|
325362
|
+
this.messageLog.forEach((msg, index) => {
|
|
325363
|
+
items.push({
|
|
325364
|
+
id: `msg-${index}`,
|
|
325365
|
+
type: "thought",
|
|
325366
|
+
content: msg.trim(),
|
|
325367
|
+
status: "completed"
|
|
325368
|
+
});
|
|
325369
|
+
});
|
|
325370
|
+
if (items.length === 0 && !isAuthRequired) {
|
|
325371
|
+
items.push({
|
|
325358
325372
|
id: "pending",
|
|
325359
325373
|
type: "thought",
|
|
325360
325374
|
content: "Working...",
|
|
325361
325375
|
status: "running"
|
|
325362
|
-
}
|
|
325363
|
-
|
|
325376
|
+
});
|
|
325377
|
+
}
|
|
325378
|
+
return items;
|
|
325364
325379
|
}
|
|
325365
325380
|
/**
|
|
325366
325381
|
* Returns a human-readable string representation of the current reassembled state.
|
|
@@ -352767,7 +352782,6 @@ ${sections.join("\n")}
|
|
|
352767
352782
|
debugLogger.debug("Experiments loaded", summaryString);
|
|
352768
352783
|
}
|
|
352769
352784
|
onAgentsRefreshed = async () => {
|
|
352770
|
-
await this.agentRegistry.initialize();
|
|
352771
352785
|
const client = this.geminiClient;
|
|
352772
352786
|
if (client?.isInitialized()) {
|
|
352773
352787
|
await client.setTools();
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isTelemetrySdkInitialized,
|
|
5
5
|
resetBrowserSession,
|
|
6
6
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YUTTNJ7.js";
|
|
8
8
|
import {
|
|
9
9
|
Storage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QM5IP3NK.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/cleanup.ts
|
|
13
13
|
import { promises as fs } from "node:fs";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YYY7NKKR.js";
|
|
15
|
+
import "./chunk-3YUTTNJ7.js";
|
|
16
16
|
import "./chunk-QM5IP3NK.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-BL3XXS2L.js";
|
|
15
|
+
import "./chunk-UQGLVPZQ.js";
|
|
16
16
|
import "./chunk-67TFD6HC.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-LUWQB4AS.js";
|
|
15
|
+
import "./chunk-RTKRL6Y5.js";
|
|
16
|
+
import "./chunk-QM5IP3NK.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
19
19
|
import "./chunk-IUUIT4SU.js";
|
|
@@ -751,7 +751,7 @@ import {
|
|
|
751
751
|
wrapInAccountChooser,
|
|
752
752
|
writeToStderr,
|
|
753
753
|
writeToStdout
|
|
754
|
-
} from "./chunk-
|
|
754
|
+
} from "./chunk-RTKRL6Y5.js";
|
|
755
755
|
import {
|
|
756
756
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
757
757
|
AGENT_TOOL_NAME,
|
|
@@ -999,7 +999,7 @@ import {
|
|
|
999
999
|
toFriendlyError,
|
|
1000
1000
|
toPathKey,
|
|
1001
1001
|
unescapePath
|
|
1002
|
-
} from "./chunk-
|
|
1002
|
+
} from "./chunk-QM5IP3NK.js";
|
|
1003
1003
|
import "./chunk-664ZODQF.js";
|
|
1004
1004
|
import "./chunk-RJTRUG2J.js";
|
|
1005
1005
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-UQGLVPZQ.js";
|
|
3
3
|
import {
|
|
4
4
|
CoreEvent,
|
|
5
5
|
coreEvents,
|
|
@@ -837,7 +837,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
try {
|
|
840
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-
|
|
840
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-FWHS5IHN.js");
|
|
841
841
|
const url = await startDevToolsServer(config);
|
|
842
842
|
if (shouldLaunchBrowser()) {
|
|
843
843
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-RTKRL6Y5.js";
|
|
3
3
|
import {
|
|
4
4
|
coreEvents,
|
|
5
5
|
debugLogger
|
|
@@ -836,7 +836,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
try {
|
|
839
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-
|
|
839
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-Z2SYVMM5.js");
|
|
840
840
|
const url = await startDevToolsServer(config);
|
|
841
841
|
if (shouldLaunchBrowser()) {
|
|
842
842
|
try {
|
|
@@ -1,10 +1,9 @@
|
|
|
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
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-3YUTTNJ7.js";
|
|
3
3
|
import {
|
|
4
|
-
CoreEvent,
|
|
5
4
|
coreEvents,
|
|
6
5
|
debugLogger
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QM5IP3NK.js";
|
|
8
7
|
import {
|
|
9
8
|
wrapper_default
|
|
10
9
|
} from "./chunk-664ZODQF.js";
|
|
@@ -667,7 +666,7 @@ var bridgeAttached = false;
|
|
|
667
666
|
function bridgeCoreEvents(capture) {
|
|
668
667
|
if (bridgeAttached) return;
|
|
669
668
|
bridgeAttached = true;
|
|
670
|
-
coreEvents.on(
|
|
669
|
+
coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
|
|
671
670
|
capture.logConsole(payload);
|
|
672
671
|
});
|
|
673
672
|
}
|
|
@@ -837,7 +836,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
837
836
|
return;
|
|
838
837
|
}
|
|
839
838
|
try {
|
|
840
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./
|
|
839
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-LKKLDF4Z.js");
|
|
841
840
|
const url = await startDevToolsServer(config);
|
|
842
841
|
if (shouldLaunchBrowser()) {
|
|
843
842
|
try {
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
updateAllUpdatableExtensions,
|
|
59
59
|
updateExtension,
|
|
60
60
|
validateAuthMethod
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NWD4JYMB.js";
|
|
62
62
|
import {
|
|
63
63
|
appEvents
|
|
64
64
|
} from "./chunk-5PS3AYFU.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
runExitCleanup,
|
|
71
71
|
runSyncCleanup,
|
|
72
72
|
setupSignalHandlers
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-BL3XXS2L.js";
|
|
74
74
|
import {
|
|
75
75
|
AuthType,
|
|
76
76
|
ChatRecordingService,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
updatePolicy,
|
|
168
168
|
writeToStderr,
|
|
169
169
|
writeToStdout
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-UQGLVPZQ.js";
|
|
171
171
|
import {
|
|
172
172
|
ASK_USER_TOOL_NAME,
|
|
173
173
|
ApprovalMode,
|
|
@@ -7265,7 +7265,7 @@ async function loadSandboxConfig(settings, argv) {
|
|
|
7265
7265
|
}
|
|
7266
7266
|
const command2 = getSandboxCommand(sandboxValue);
|
|
7267
7267
|
const packageJson = await getPackageJson(__dirname3);
|
|
7268
|
-
const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.39.0
|
|
7268
|
+
const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.39.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
|
|
7269
7269
|
const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
|
|
7270
7270
|
return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
|
|
7271
7271
|
}
|
|
@@ -9562,7 +9562,7 @@ async function runNonInteractive({
|
|
|
9562
9562
|
}
|
|
9563
9563
|
});
|
|
9564
9564
|
if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
|
|
9565
|
-
const { setupInitialActivityLogger } = await import("./devtoolsService-
|
|
9565
|
+
const { setupInitialActivityLogger } = await import("./devtoolsService-H64VB4IA.js");
|
|
9566
9566
|
await setupInitialActivityLogger(config);
|
|
9567
9567
|
}
|
|
9568
9568
|
const { stdout: workingStdout } = createWorkingStdio();
|
|
@@ -10013,7 +10013,7 @@ async function runNonInteractive2(params) {
|
|
|
10013
10013
|
}
|
|
10014
10014
|
});
|
|
10015
10015
|
if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
|
|
10016
|
-
const { setupInitialActivityLogger } = await import("./devtoolsService-
|
|
10016
|
+
const { setupInitialActivityLogger } = await import("./devtoolsService-H64VB4IA.js");
|
|
10017
10017
|
await setupInitialActivityLogger(config);
|
|
10018
10018
|
}
|
|
10019
10019
|
const { stdout: workingStdout } = createWorkingStdio();
|
|
@@ -14860,7 +14860,7 @@ async function resolveSessionId(resumeArg) {
|
|
|
14860
14860
|
}
|
|
14861
14861
|
}
|
|
14862
14862
|
async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
|
|
14863
|
-
const { startInteractiveUI: doStartUI } = await import("./interactiveCli-
|
|
14863
|
+
const { startInteractiveUI: doStartUI } = await import("./interactiveCli-P35Q3KZ2.js");
|
|
14864
14864
|
await doStartUI(
|
|
14865
14865
|
config,
|
|
14866
14866
|
settings,
|
|
@@ -15062,7 +15062,7 @@ ${finalArgs[promptIndex + 1]}`;
|
|
|
15062
15062
|
await config.storage.initialize();
|
|
15063
15063
|
adminControlsListner.setConfig(config);
|
|
15064
15064
|
if (config.isInteractive() && settings.merged.general.devtools) {
|
|
15065
|
-
const { setupInitialActivityLogger } = await import("./devtoolsService-
|
|
15065
|
+
const { setupInitialActivityLogger } = await import("./devtoolsService-H64VB4IA.js");
|
|
15066
15066
|
await setupInitialActivityLogger(config);
|
|
15067
15067
|
}
|
|
15068
15068
|
registerTelemetryConfig(config);
|