@google/gemini-cli 0.40.0-preview.2 → 0.41.0-nightly.20260423.gd1c91f526
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-NO7STVVM.js → chunk-4PEADYI5.js} +4 -4
- package/bundle/{chunk-QK7UWGBN.js → chunk-5RWN2VOG.js} +4 -4
- package/bundle/{chunk-3GU3LF3I.js → chunk-BE3FMR6C.js} +6 -6
- package/bundle/{chunk-IMEC72NS.js → chunk-BGTQF57Z.js} +1 -1
- package/bundle/{chunk-EFCQXWIF.js → chunk-BM7TRCHV.js} +2 -2
- package/bundle/{chunk-WL5MCPV2.js → chunk-BXO2CSHU.js} +1 -1
- package/bundle/{chunk-PLUWJHZZ.js → chunk-CMDSUNBE.js} +64 -52
- package/bundle/{chunk-33ANPP4S.js → chunk-DOZGGGM3.js} +2 -2
- package/bundle/{chunk-TDW6FM3A.js → chunk-FLEXF7OP.js} +1 -1
- package/bundle/{chunk-HV36F4CL.js → chunk-HGAC7IIS.js} +1 -1
- package/bundle/{chunk-UBXB5AEJ.js → chunk-ILGARB2Y.js} +3 -3
- package/bundle/{chunk-4IJPDKI6.js → chunk-ILSUW45Y.js} +14 -12
- package/bundle/{chunk-MUGUV6RZ.js → chunk-JI66QA3S.js} +2 -2
- package/bundle/{chunk-RM43GNQQ.js → chunk-KCEU7UY3.js} +6356 -11853
- package/bundle/{chunk-WHIWQCI5.js → chunk-LO2U5DX7.js} +1 -1
- package/bundle/chunk-MJ35NORG.js +1571 -0
- package/bundle/chunk-MRRUSUAI.js +79847 -0
- package/bundle/chunk-MURNAVEF.js +350850 -0
- package/bundle/chunk-NF5KE423.js +17725 -0
- package/bundle/{chunk-IUVLJUOL.js → chunk-OKARZDAC.js} +1 -1
- package/bundle/chunk-RFYY2EXK.js +156 -0
- package/bundle/chunk-ULLQZW4G.js +118 -0
- package/bundle/{chunk-GXRQOXQF.js → chunk-ZRHJDW4J.js} +6 -6
- package/bundle/{chunk-NIVCRM5L.js → chunk-ZRZIZSCI.js} +1 -1
- package/bundle/{cleanup-A7WXWAMI.js → cleanup-CM5YE3PO.js} +2 -2
- package/bundle/{cleanup-IPLJJT5S.js → cleanup-GCC3QSXL.js} +3 -3
- package/bundle/{cleanup-EWPIME2M.js → cleanup-JSTWYHMS.js} +2 -2
- package/bundle/cleanup-WQ3P3JRW.js +33 -0
- package/bundle/{core-VCDK23ZC.js → core-WAVEV7SE.js} +1 -1
- package/bundle/{devtoolsService-B5VVZ752.js → devtoolsService-65PTC72C.js} +2 -2
- package/bundle/{devtoolsService-6Y6YER6T.js → devtoolsService-KHTP2AVU.js} +2 -2
- package/bundle/{devtoolsService-2JXSALRU.js → devtoolsService-QZON66HV.js} +5 -4
- package/bundle/devtoolsService-YL2DS7JV.js +852 -0
- package/bundle/{dist-UIXQETMC.js → dist-IJE6ZESE.js} +1 -1
- package/bundle/{core-BQT6T3CH.js → dist-JJVAY7EX.js} +2 -2
- package/bundle/dist-S3PCMM76.js +2020 -0
- package/bundle/{gemini-54LH6RUH.js → gemini-5Z5FJY4B.js} +12 -12
- package/bundle/{gemini-ID44Z5SV.js → gemini-LFI3ENEH.js} +12 -12
- package/bundle/{gemini-44W2QEZI.js → gemini-MAC54OQS.js} +188 -173
- package/bundle/gemini-UPKTLJJZ.js +16043 -0
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-JFBPGMNM.js → interactiveCli-3UQTFU2M.js} +6 -6
- package/bundle/{interactiveCli-5B3X6RNB.js → interactiveCli-7ZE7G6ZY.js} +277 -260
- package/bundle/{interactiveCli-5MTJDFYC.js → interactiveCli-FZUKC563.js} +6 -6
- package/bundle/interactiveCli-JE4PLDY5.js +34597 -0
- package/bundle/{liteRtServerManager-6GJWEP5W.js → liteRtServerManager-L6OWAEH4.js} +3 -3
- package/bundle/{liteRtServerManager-76V63PRJ.js → liteRtServerManager-OARJ4EUZ.js} +4 -4
- package/bundle/{liteRtServerManager-WQMDPACQ.js → liteRtServerManager-WJT6SPLU.js} +3 -3
- package/bundle/liteRtServerManager-ZDS6QYLO.js +65 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-EX6SQEZP.js → oauth2-provider-JPWXPXQ6.js} +1 -1
- package/bundle/{oauth2-provider-ZF52AWQY.js → oauth2-provider-Q4A4U7PX.js} +39 -73
- package/bundle/oauth2-provider-WW42PZXK.js +237 -0
- package/bundle/{oauth2-provider-JCKLNKRV.js → oauth2-provider-ZW2I3O4T.js} +1 -1
- package/bundle/{start-SHOUHW3Y.js → start-BXEBAKTI.js} +5 -5
- package/bundle/{start-B6EMQCH5.js → start-JFRQSQYB.js} +6 -6
- package/bundle/start-PMSOWXLI.js +18 -0
- package/bundle/{start-CYDJTOAP.js → start-XEUSMK4W.js} +5 -5
- package/package.json +1 -1
|
@@ -246180,8 +246180,8 @@ import { createHash } from "node:crypto";
|
|
|
246180
246180
|
import * as os12 from "node:os";
|
|
246181
246181
|
|
|
246182
246182
|
// packages/core/src/generated/git-commit.ts
|
|
246183
|
-
var GIT_COMMIT_INFO = "
|
|
246184
|
-
var CLI_VERSION = "0.
|
|
246183
|
+
var GIT_COMMIT_INFO = "d1c91f526";
|
|
246184
|
+
var CLI_VERSION = "0.41.0-nightly.20260423.gaa05b4583";
|
|
246185
246185
|
|
|
246186
246186
|
// packages/core/src/ide/detect-ide.ts
|
|
246187
246187
|
var IDE_DEFINITIONS = {
|
|
@@ -269350,7 +269350,7 @@ function getVersion() {
|
|
|
269350
269350
|
}
|
|
269351
269351
|
versionPromise = (async () => {
|
|
269352
269352
|
const pkgJson = await getPackageJson(__dirname4);
|
|
269353
|
-
return "0.
|
|
269353
|
+
return "0.41.0-nightly.20260423.gaa05b4583";
|
|
269354
269354
|
})();
|
|
269355
269355
|
return versionPromise;
|
|
269356
269356
|
}
|
|
@@ -302357,7 +302357,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
302357
302357
|
return provider;
|
|
302358
302358
|
}
|
|
302359
302359
|
case "oauth2": {
|
|
302360
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
302360
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-ZW2I3O4T.js");
|
|
302361
302361
|
const provider = new OAuth2AuthProvider(
|
|
302362
302362
|
authConfig,
|
|
302363
302363
|
options.agentName ?? "unknown",
|
|
@@ -246061,8 +246061,8 @@ var EventMetadataKey;
|
|
|
246061
246061
|
})(EventMetadataKey || (EventMetadataKey = {}));
|
|
246062
246062
|
|
|
246063
246063
|
// packages/core/dist/src/generated/git-commit.js
|
|
246064
|
-
var GIT_COMMIT_INFO = "
|
|
246065
|
-
var CLI_VERSION = "0.
|
|
246064
|
+
var GIT_COMMIT_INFO = "d1c91f526";
|
|
246065
|
+
var CLI_VERSION = "0.41.0-nightly.20260423.gd1c91f526";
|
|
246066
246066
|
|
|
246067
246067
|
// packages/core/dist/src/ide/detect-ide.js
|
|
246068
246068
|
var IDE_DEFINITIONS = {
|
|
@@ -268985,7 +268985,7 @@ function getVersion() {
|
|
|
268985
268985
|
}
|
|
268986
268986
|
versionPromise = (async () => {
|
|
268987
268987
|
const pkgJson = await getPackageJson(__dirname4);
|
|
268988
|
-
return "0.
|
|
268988
|
+
return "0.41.0-nightly.20260423.gd1c91f526";
|
|
268989
268989
|
})();
|
|
268990
268990
|
return versionPromise;
|
|
268991
268991
|
}
|
|
@@ -300091,7 +300091,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
300091
300091
|
return provider;
|
|
300092
300092
|
}
|
|
300093
300093
|
case "oauth2": {
|
|
300094
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
300094
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-Q4A4U7PX.js");
|
|
300095
300095
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
300096
300096
|
await provider.initialize();
|
|
300097
300097
|
return provider;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LO2U5DX7.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -58,10 +58,10 @@ import {
|
|
|
58
58
|
stripUnsafeCharacters,
|
|
59
59
|
toCodePoints,
|
|
60
60
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-HGAC7IIS.js";
|
|
62
62
|
import {
|
|
63
63
|
runExitCleanup
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BXO2CSHU.js";
|
|
65
65
|
import {
|
|
66
66
|
AsyncFzf,
|
|
67
67
|
AuthType,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
stripAnsi,
|
|
207
207
|
tokenLimit,
|
|
208
208
|
uiTelemetryService
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-5RWN2VOG.js";
|
|
210
210
|
import {
|
|
211
211
|
ApprovalMode,
|
|
212
212
|
CoreEvent,
|
|
@@ -54849,7 +54849,7 @@ var authCommand = {
|
|
|
54849
54849
|
import process29 from "node:process";
|
|
54850
54850
|
|
|
54851
54851
|
// packages/cli/src/generated/git-commit.ts
|
|
54852
|
-
var GIT_COMMIT_INFO = "
|
|
54852
|
+
var GIT_COMMIT_INFO = "7e2beab9f";
|
|
54853
54853
|
|
|
54854
54854
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
54855
54855
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60334,7 +60334,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60334
60334
|
type: "info",
|
|
60335
60335
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60336
60336
|
});
|
|
60337
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
60337
|
+
const { MCPOAuthProvider } = await import("./dist-IJE6ZESE.js");
|
|
60338
60338
|
let oauthConfig = server.oauth;
|
|
60339
60339
|
if (!oauthConfig) {
|
|
60340
60340
|
oauthConfig = { enabled: false };
|
|
@@ -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-OKARZDAC.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-FLEXF7OP.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NF5KE423.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-VCGILCZV.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FLEXF7OP.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -58,13 +58,15 @@ import {
|
|
|
58
58
|
stripUnsafeCharacters,
|
|
59
59
|
toCodePoints,
|
|
60
60
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NF5KE423.js";
|
|
62
62
|
import {
|
|
63
63
|
runExitCleanup
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-JI66QA3S.js";
|
|
65
65
|
import {
|
|
66
66
|
AsyncFzf,
|
|
67
|
+
AuthType,
|
|
67
68
|
Config,
|
|
69
|
+
CoreToolCallStatus,
|
|
68
70
|
ExtensionDisableEvent,
|
|
69
71
|
ExtensionEnableEvent,
|
|
70
72
|
ExtensionInstallEvent,
|
|
@@ -73,15 +75,24 @@ import {
|
|
|
73
75
|
ExtensionUninstallEvent,
|
|
74
76
|
ExtensionUpdateEvent,
|
|
75
77
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
78
|
+
HookType,
|
|
79
|
+
IDEConnectionStatus,
|
|
76
80
|
INITIAL_HISTORY_LENGTH,
|
|
77
81
|
IdeClient,
|
|
78
82
|
IdeConnectionEvent,
|
|
83
|
+
IdeConnectionType,
|
|
84
|
+
IntegrityDataStatus,
|
|
79
85
|
KeychainTokenStorage,
|
|
86
|
+
LlmRole,
|
|
87
|
+
MCPDiscoveryState,
|
|
80
88
|
MCPOAuthTokenStorage,
|
|
89
|
+
MCPServerStatus,
|
|
81
90
|
ModelSlashCommandEvent,
|
|
82
91
|
ProjectIdRequiredError,
|
|
83
92
|
ReadManyFilesTool,
|
|
84
93
|
RewindEvent,
|
|
94
|
+
SessionEndReason,
|
|
95
|
+
SessionStartSource,
|
|
85
96
|
ShellExecutionService,
|
|
86
97
|
StartSessionEvent,
|
|
87
98
|
UPGRADE_URL_PAGE,
|
|
@@ -195,12 +206,13 @@ import {
|
|
|
195
206
|
stripAnsi,
|
|
196
207
|
tokenLimit,
|
|
197
208
|
uiTelemetryService
|
|
198
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-MURNAVEF.js";
|
|
199
210
|
import {
|
|
200
211
|
ApprovalMode,
|
|
201
212
|
CoreEvent,
|
|
202
213
|
DiscoveredMCPTool,
|
|
203
214
|
GEMINI_DIR,
|
|
215
|
+
PolicyDecision,
|
|
204
216
|
REFERENCE_CONTENT_END,
|
|
205
217
|
REFERENCE_CONTENT_START,
|
|
206
218
|
Storage,
|
|
@@ -221,7 +233,7 @@ import {
|
|
|
221
233
|
shortenPath,
|
|
222
234
|
tildeifyPath,
|
|
223
235
|
unescapePath
|
|
224
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-VCGILCZV.js";
|
|
225
237
|
import {
|
|
226
238
|
require_src
|
|
227
239
|
} from "./chunk-RJTRUG2J.js";
|
|
@@ -39430,7 +39442,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
39430
39442
|
function useIdeTrustListener() {
|
|
39431
39443
|
const settings = useSettings();
|
|
39432
39444
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
39433
|
-
|
|
39445
|
+
IDEConnectionStatus.Disconnected
|
|
39434
39446
|
);
|
|
39435
39447
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
39436
39448
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -39460,7 +39472,7 @@ function useIdeTrustListener() {
|
|
|
39460
39472
|
};
|
|
39461
39473
|
}, []);
|
|
39462
39474
|
const getSnapshot = () => {
|
|
39463
|
-
if (connectionStatus !==
|
|
39475
|
+
if (connectionStatus !== IDEConnectionStatus.Connected) {
|
|
39464
39476
|
return void 0;
|
|
39465
39477
|
}
|
|
39466
39478
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -39846,7 +39858,7 @@ async function initializeApp(config, settings) {
|
|
|
39846
39858
|
await ideClient.connect();
|
|
39847
39859
|
logIdeConnection(
|
|
39848
39860
|
config,
|
|
39849
|
-
new IdeConnectionEvent(
|
|
39861
|
+
new IdeConnectionEvent(IdeConnectionType.START)
|
|
39850
39862
|
);
|
|
39851
39863
|
}).catch((e) => {
|
|
39852
39864
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -39864,16 +39876,16 @@ async function initializeApp(config, settings) {
|
|
|
39864
39876
|
// packages/cli/src/config/auth.ts
|
|
39865
39877
|
function validateAuthMethod(authMethod) {
|
|
39866
39878
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
39867
|
-
if (authMethod ===
|
|
39879
|
+
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
|
|
39868
39880
|
return null;
|
|
39869
39881
|
}
|
|
39870
|
-
if (authMethod ===
|
|
39882
|
+
if (authMethod === AuthType.USE_GEMINI) {
|
|
39871
39883
|
if (!process.env["GEMINI_API_KEY"]) {
|
|
39872
39884
|
return "When using Gemini API, you must specify the GEMINI_API_KEY environment variable.\nUpdate your environment and try again (no reload needed if using .env)!";
|
|
39873
39885
|
}
|
|
39874
39886
|
return null;
|
|
39875
39887
|
}
|
|
39876
|
-
if (authMethod ===
|
|
39888
|
+
if (authMethod === AuthType.USE_VERTEX_AI) {
|
|
39877
39889
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
39878
39890
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
39879
39891
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -44790,7 +44802,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44790
44802
|
newExtensionConfig.version,
|
|
44791
44803
|
previousExtensionConfig.version,
|
|
44792
44804
|
installMetadata.type,
|
|
44793
|
-
|
|
44805
|
+
CoreToolCallStatus.Success
|
|
44794
44806
|
)
|
|
44795
44807
|
);
|
|
44796
44808
|
if (newExtensionName !== previousName) {
|
|
@@ -44813,7 +44825,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44813
44825
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
44814
44826
|
newExtensionConfig.version,
|
|
44815
44827
|
installMetadata.type,
|
|
44816
|
-
|
|
44828
|
+
CoreToolCallStatus.Success
|
|
44817
44829
|
)
|
|
44818
44830
|
);
|
|
44819
44831
|
await this.enableExtension(
|
|
@@ -44846,7 +44858,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44846
44858
|
newExtensionConfig?.version ?? "",
|
|
44847
44859
|
previousExtensionConfig.version,
|
|
44848
44860
|
installMetadata.type,
|
|
44849
|
-
|
|
44861
|
+
CoreToolCallStatus.Error
|
|
44850
44862
|
)
|
|
44851
44863
|
);
|
|
44852
44864
|
} else {
|
|
@@ -44858,7 +44870,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44858
44870
|
extensionId ?? "",
|
|
44859
44871
|
newExtensionConfig?.version ?? "",
|
|
44860
44872
|
installMetadata.type,
|
|
44861
|
-
|
|
44873
|
+
CoreToolCallStatus.Error
|
|
44862
44874
|
)
|
|
44863
44875
|
);
|
|
44864
44876
|
}
|
|
@@ -44889,7 +44901,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44889
44901
|
extension.name,
|
|
44890
44902
|
hashValue(extension.name),
|
|
44891
44903
|
extension.id,
|
|
44892
|
-
|
|
44904
|
+
CoreToolCallStatus.Success
|
|
44893
44905
|
)
|
|
44894
44906
|
);
|
|
44895
44907
|
}
|
|
@@ -45159,7 +45171,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
45159
45171
|
if (eventHooks) {
|
|
45160
45172
|
for (const definition of eventHooks) {
|
|
45161
45173
|
for (const hook of definition.hooks) {
|
|
45162
|
-
if (hook.type ===
|
|
45174
|
+
if (hook.type === HookType.Command) {
|
|
45163
45175
|
hook.env = { ...hook.env, ...hookEnv };
|
|
45164
45176
|
}
|
|
45165
45177
|
}
|
|
@@ -46032,7 +46044,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46032
46044
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46033
46045
|
name: `resources/read (${resource.serverName})`,
|
|
46034
46046
|
description: resource.uri,
|
|
46035
|
-
status:
|
|
46047
|
+
status: CoreToolCallStatus.Success,
|
|
46036
46048
|
isClientInitiated: true,
|
|
46037
46049
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
46038
46050
|
confirmationDetails: void 0
|
|
@@ -46047,7 +46059,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46047
46059
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46048
46060
|
name: `resources/read (${resource.serverName})`,
|
|
46049
46061
|
description: resource.uri,
|
|
46050
|
-
status:
|
|
46062
|
+
status: CoreToolCallStatus.Error,
|
|
46051
46063
|
isClientInitiated: true,
|
|
46052
46064
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
46053
46065
|
confirmationDetails: void 0
|
|
@@ -46072,7 +46084,7 @@ Content from @${result.uri}:
|
|
|
46072
46084
|
}
|
|
46073
46085
|
if (hasError) {
|
|
46074
46086
|
const firstError = displays.find(
|
|
46075
|
-
(d) => d.status ===
|
|
46087
|
+
(d) => d.status === CoreToolCallStatus.Error
|
|
46076
46088
|
);
|
|
46077
46089
|
return {
|
|
46078
46090
|
parts: [],
|
|
@@ -46108,7 +46120,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
46108
46120
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46109
46121
|
name: readManyFilesTool.displayName,
|
|
46110
46122
|
description: invocation.getDescription(),
|
|
46111
|
-
status:
|
|
46123
|
+
status: CoreToolCallStatus.Success,
|
|
46112
46124
|
isClientInitiated: true,
|
|
46113
46125
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
46114
46126
|
confirmationDetails: void 0
|
|
@@ -46155,7 +46167,7 @@ Content from @${displayPath}:
|
|
|
46155
46167
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46156
46168
|
name: readManyFilesTool.displayName,
|
|
46157
46169
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
46158
|
-
status:
|
|
46170
|
+
status: CoreToolCallStatus.Error,
|
|
46159
46171
|
isClientInitiated: true,
|
|
46160
46172
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
46161
46173
|
confirmationDetails: void 0
|
|
@@ -49384,7 +49396,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
49384
49396
|
if (wasRaw) {
|
|
49385
49397
|
setRawMode?.(true);
|
|
49386
49398
|
}
|
|
49387
|
-
coreEvents.emit(
|
|
49399
|
+
coreEvents.emit(CoreEvent.ExternalEditorClosed);
|
|
49388
49400
|
}
|
|
49389
49401
|
}
|
|
49390
49402
|
|
|
@@ -52064,7 +52076,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
52064
52076
|
extension.name,
|
|
52065
52077
|
installMetadata
|
|
52066
52078
|
);
|
|
52067
|
-
if (status ===
|
|
52079
|
+
if (status === IntegrityDataStatus.INVALID) {
|
|
52068
52080
|
throw new Error("Extension integrity cannot be verified");
|
|
52069
52081
|
}
|
|
52070
52082
|
} catch (e) {
|
|
@@ -54837,7 +54849,7 @@ var authCommand = {
|
|
|
54837
54849
|
import process29 from "node:process";
|
|
54838
54850
|
|
|
54839
54851
|
// packages/cli/src/generated/git-commit.ts
|
|
54840
|
-
var GIT_COMMIT_INFO = "
|
|
54852
|
+
var GIT_COMMIT_INFO = "d1c91f526";
|
|
54841
54853
|
|
|
54842
54854
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
54843
54855
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -55351,7 +55363,7 @@ var clearCommand = {
|
|
|
55351
55363
|
const config = context.services.agentContext?.config;
|
|
55352
55364
|
const hookSystem = config?.getHookSystem();
|
|
55353
55365
|
if (hookSystem) {
|
|
55354
|
-
await hookSystem.fireSessionEndEvent(
|
|
55366
|
+
await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
|
|
55355
55367
|
}
|
|
55356
55368
|
config?.injectionService.clear();
|
|
55357
55369
|
let newSessionId;
|
|
@@ -55368,7 +55380,7 @@ var clearCommand = {
|
|
|
55368
55380
|
}
|
|
55369
55381
|
let result;
|
|
55370
55382
|
if (hookSystem) {
|
|
55371
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
55383
|
+
result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
|
|
55372
55384
|
}
|
|
55373
55385
|
await new Promise((resolve8) => setImmediate(resolve8));
|
|
55374
55386
|
if (config) {
|
|
@@ -58224,7 +58236,7 @@ var Footer = () => {
|
|
|
58224
58236
|
case "auth": {
|
|
58225
58237
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
58226
58238
|
if (!authType) break;
|
|
58227
|
-
const displayStr = authType ===
|
|
58239
|
+
const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
|
|
58228
58240
|
addCol(
|
|
58229
58241
|
id,
|
|
58230
58242
|
header,
|
|
@@ -59971,12 +59983,12 @@ import path27 from "node:path";
|
|
|
59971
59983
|
function getIdeStatusMessage(ideClient) {
|
|
59972
59984
|
const connection = ideClient.getConnectionStatus();
|
|
59973
59985
|
switch (connection.status) {
|
|
59974
|
-
case
|
|
59986
|
+
case IDEConnectionStatus.Connected:
|
|
59975
59987
|
return {
|
|
59976
59988
|
messageType: "info",
|
|
59977
59989
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
59978
59990
|
};
|
|
59979
|
-
case
|
|
59991
|
+
case IDEConnectionStatus.Connecting:
|
|
59980
59992
|
return {
|
|
59981
59993
|
messageType: "info",
|
|
59982
59994
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60017,7 +60029,7 @@ ${infoMessage}`;
|
|
|
60017
60029
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
60018
60030
|
const connection = ideClient.getConnectionStatus();
|
|
60019
60031
|
switch (connection.status) {
|
|
60020
|
-
case
|
|
60032
|
+
case IDEConnectionStatus.Connected: {
|
|
60021
60033
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
60022
60034
|
const context = ideContextStore.get();
|
|
60023
60035
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -60029,7 +60041,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
60029
60041
|
content
|
|
60030
60042
|
};
|
|
60031
60043
|
}
|
|
60032
|
-
case
|
|
60044
|
+
case IDEConnectionStatus.Connecting:
|
|
60033
60045
|
return {
|
|
60034
60046
|
messageType: "info",
|
|
60035
60047
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60051,7 +60063,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
60051
60063
|
const ideClient = await IdeClient.getInstance();
|
|
60052
60064
|
if (value) {
|
|
60053
60065
|
await ideClient.connect(options);
|
|
60054
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
60066
|
+
logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
|
|
60055
60067
|
} else {
|
|
60056
60068
|
await ideClient.disconnect();
|
|
60057
60069
|
}
|
|
@@ -60139,7 +60151,7 @@ var ideCommand = async () => {
|
|
|
60139
60151
|
logToConsole: false
|
|
60140
60152
|
}
|
|
60141
60153
|
);
|
|
60142
|
-
if (ideClient.getConnectionStatus().status ===
|
|
60154
|
+
if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
|
|
60143
60155
|
break;
|
|
60144
60156
|
}
|
|
60145
60157
|
await new Promise((resolve8) => setTimeout(resolve8, 500));
|
|
@@ -60216,7 +60228,7 @@ var ideCommand = async () => {
|
|
|
60216
60228
|
}
|
|
60217
60229
|
};
|
|
60218
60230
|
const { status } = ideClient.getConnectionStatus();
|
|
60219
|
-
const isConnected = status ===
|
|
60231
|
+
const isConnected = status === IDEConnectionStatus.Connected;
|
|
60220
60232
|
if (isConnected) {
|
|
60221
60233
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
60222
60234
|
} else {
|
|
@@ -60316,13 +60328,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60316
60328
|
const displayListener = (message) => {
|
|
60317
60329
|
context.ui.addItem({ type: "info", text: message });
|
|
60318
60330
|
};
|
|
60319
|
-
coreEvents.on(
|
|
60331
|
+
coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
|
|
60320
60332
|
try {
|
|
60321
60333
|
context.ui.addItem({
|
|
60322
60334
|
type: "info",
|
|
60323
60335
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60324
60336
|
});
|
|
60325
|
-
const { MCPOAuthProvider } = await import("./
|
|
60337
|
+
const { MCPOAuthProvider } = await import("./dist-S3PCMM76.js");
|
|
60326
60338
|
let oauthConfig = server.oauth;
|
|
60327
60339
|
if (!oauthConfig) {
|
|
60328
60340
|
oauthConfig = { enabled: false };
|
|
@@ -60359,7 +60371,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60359
60371
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
60360
60372
|
};
|
|
60361
60373
|
} finally {
|
|
60362
|
-
coreEvents.removeListener(
|
|
60374
|
+
coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
|
|
60363
60375
|
}
|
|
60364
60376
|
},
|
|
60365
60377
|
completion: async (context, partialArg) => {
|
|
@@ -60405,10 +60417,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
|
|
|
60405
60417
|
}
|
|
60406
60418
|
const serverNames = Object.keys(mcpServers);
|
|
60407
60419
|
const connectingServers = serverNames.filter(
|
|
60408
|
-
(name) => getMCPServerStatus(name) ===
|
|
60420
|
+
(name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
|
|
60409
60421
|
);
|
|
60410
60422
|
const discoveryState = getMCPDiscoveryState();
|
|
60411
|
-
const discoveryInProgress = discoveryState ===
|
|
60423
|
+
const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
|
|
60412
60424
|
const allTools = toolRegistry.getAllTools();
|
|
60413
60425
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
60414
60426
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -75812,7 +75824,7 @@ Return a JSON object with:
|
|
|
75812
75824
|
},
|
|
75813
75825
|
abortSignal: new AbortController().signal,
|
|
75814
75826
|
promptId: "triage-duplicates",
|
|
75815
|
-
role:
|
|
75827
|
+
role: LlmRole.UTILITY_TOOL
|
|
75816
75828
|
});
|
|
75817
75829
|
const rec = response;
|
|
75818
75830
|
let canonical;
|
|
@@ -76646,7 +76658,7 @@ Return a JSON object with:
|
|
|
76646
76658
|
},
|
|
76647
76659
|
abortSignal: abortControllerRef.current.signal,
|
|
76648
76660
|
promptId: "triage-issues",
|
|
76649
|
-
role:
|
|
76661
|
+
role: LlmRole.UTILITY_TOOL
|
|
76650
76662
|
});
|
|
76651
76663
|
return response;
|
|
76652
76664
|
},
|
|
@@ -77220,8 +77232,8 @@ var planCommand = {
|
|
|
77220
77232
|
return;
|
|
77221
77233
|
}
|
|
77222
77234
|
const previousApprovalMode = config.getApprovalMode();
|
|
77223
|
-
config.setApprovalMode(
|
|
77224
|
-
if (previousApprovalMode !==
|
|
77235
|
+
config.setApprovalMode(ApprovalMode.PLAN);
|
|
77236
|
+
if (previousApprovalMode !== ApprovalMode.PLAN) {
|
|
77225
77237
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
77226
77238
|
}
|
|
77227
77239
|
if (context.invocation?.args) {
|
|
@@ -77280,10 +77292,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
77280
77292
|
rules.forEach((rule) => {
|
|
77281
77293
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
77282
77294
|
const modeSet = new Set(modes);
|
|
77283
|
-
if (modeSet.has(
|
|
77284
|
-
if (modeSet.has(
|
|
77285
|
-
if (modeSet.has(
|
|
77286
|
-
if (modeSet.has(
|
|
77295
|
+
if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
|
|
77296
|
+
if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
|
|
77297
|
+
if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
|
|
77298
|
+
if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
|
|
77287
77299
|
});
|
|
77288
77300
|
return result;
|
|
77289
77301
|
};
|
|
@@ -78632,7 +78644,7 @@ var upgradeCommand = {
|
|
|
78632
78644
|
action: async (context) => {
|
|
78633
78645
|
const config = context.services.agentContext?.config;
|
|
78634
78646
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
78635
|
-
if (authType !==
|
|
78647
|
+
if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
|
|
78636
78648
|
return {
|
|
78637
78649
|
type: "message",
|
|
78638
78650
|
messageType: "error",
|
|
@@ -78834,7 +78846,7 @@ var BuiltinCommandLoader = class {
|
|
|
78834
78846
|
vimCommand,
|
|
78835
78847
|
setupGithubCommand,
|
|
78836
78848
|
terminalSetupCommand,
|
|
78837
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
78849
|
+
...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
|
|
78838
78850
|
];
|
|
78839
78851
|
handle?.end();
|
|
78840
78852
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -78977,11 +78989,11 @@ var ShellProcessor = class {
|
|
|
78977
78989
|
},
|
|
78978
78990
|
void 0
|
|
78979
78991
|
);
|
|
78980
|
-
if (decision ===
|
|
78992
|
+
if (decision === PolicyDecision.DENY) {
|
|
78981
78993
|
throw new Error(
|
|
78982
78994
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
78983
78995
|
);
|
|
78984
|
-
} else if (decision ===
|
|
78996
|
+
} else if (decision === PolicyDecision.ASK_USER) {
|
|
78985
78997
|
commandsToConfirm.add(command);
|
|
78986
78998
|
}
|
|
78987
78999
|
}
|
|
@@ -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-BGTQF57Z.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZRZIZSCI.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-2RHFUIH4.js";
|
|
@@ -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-JI66QA3S.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-LO2U5DX7.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-HGAC7IIS.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VCGILCZV.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|