@google/gemini-cli 0.57.0-preview.0 → 0.57.0-preview.1
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-ACDZS2RE.js → chunk-3BVBON3V.js} +1 -1
- package/bundle/{chunk-2UGGPOEV.js → chunk-3NPMAHLX.js} +1 -1
- package/bundle/{chunk-QVDXZMEX.js → chunk-4ALCU2HQ.js} +1 -1
- package/bundle/{chunk-NXS624CI.js → chunk-4SNEOO5E.js} +2 -2
- package/bundle/{chunk-73OHVDUZ.js → chunk-65C235NM.js} +7 -7
- package/bundle/{chunk-HKTHSWSS.js → chunk-AKCYXG7C.js} +7 -7
- package/bundle/{chunk-IKGOC5B6.js → chunk-ALVDOQNA.js} +1 -1
- package/bundle/{chunk-OFFEM74O.js → chunk-EAK33LFP.js} +1 -1
- package/bundle/{chunk-3C6JYNPC.js → chunk-FHDRG5U4.js} +67 -54
- package/bundle/{chunk-2UICYJMD.js → chunk-G65GW52B.js} +107 -21
- package/bundle/{chunk-WH63Z45A.js → chunk-GK7NUJ35.js} +8 -5
- package/bundle/{chunk-SHIJDXMN.js → chunk-GMQ6QNZB.js} +1 -1
- package/bundle/chunk-LNXGFWGZ.js +17332 -0
- package/bundle/{chunk-O3QB4SVS.js → chunk-MBWROXYM.js} +2 -2
- package/bundle/{chunk-W4CY7TCG.js → chunk-NMMXRZ53.js} +2 -2
- package/bundle/{chunk-R3JDAZVL.js → chunk-NPOI4K6X.js} +7771 -14363
- package/bundle/{chunk-QB46S6FV.js → chunk-NQ4RH42O.js} +9 -8
- package/bundle/{chunk-FWGOOSQK.js → chunk-O7SBKM7M.js} +112 -20
- package/bundle/{chunk-M6E5CLIH.js → chunk-Q73BPF7A.js} +1 -1
- package/bundle/{chunk-XDJMDRLM.js → chunk-QJP6CMLN.js} +3 -3
- package/bundle/{chunk-EBKNEOAO.js → chunk-RLDNUS35.js} +1 -1
- package/bundle/{chunk-H2URGA7U.js → chunk-S5UX3QS5.js} +3 -3
- package/bundle/{chunk-XZF4EZOQ.js → chunk-SCBVGZXH.js} +1 -1
- package/bundle/chunk-SWQAIZEQ.js +102506 -0
- package/bundle/{chunk-6S4UF4JM.js → chunk-UMQE7UC6.js} +3 -3
- package/bundle/{chunk-ZY7Z5W6K.js → chunk-VBK54QCZ.js} +1 -1
- package/bundle/chunk-VGGWKRAC.js +154 -0
- package/bundle/chunk-W23OOD2C.js +118 -0
- package/bundle/chunk-WDFSF5L4.js +397601 -0
- package/bundle/chunk-XESAM7IL.js +512 -0
- package/bundle/chunk-Y3APL4PE.js +1571 -0
- package/bundle/chunk-ZMPGHLGO.js +398 -0
- package/bundle/{cleanup-JP2FD3CQ.js → cleanup-2W5DPMY3.js} +2 -2
- package/bundle/{cleanup-YFIFTNZ6.js → cleanup-OTHE7RNU.js} +2 -2
- package/bundle/{cleanup-Z65H2CUW.js → cleanup-SM67K64R.js} +2 -2
- package/bundle/cleanup-XAUT5CMD.js +32 -0
- package/bundle/{core-UBOS4Q6R.js → core-US34OW5M.js} +7 -1
- package/bundle/{devtoolsService-A34WT2MQ.js → devtoolsService-5J53UK6Z.js} +2 -2
- package/bundle/{devtoolsService-ACKZ7HRR.js → devtoolsService-GU2GQSOF.js} +2 -2
- package/bundle/{devtoolsService-BHG3WQEY.js → devtoolsService-JBFUXTCT.js} +4 -3
- package/bundle/devtoolsService-V46GUHRF.js +4359 -0
- package/bundle/{dist-B7OLK6PK.js → dist-5TYMQVIZ.js} +7 -1
- package/bundle/{core-EKXLT2AG.js → dist-OWKHVWTR.js} +7 -1
- package/bundle/dist-V5VJYW6J.js +2180 -0
- package/bundle/{gemini-3U3DNSSI.js → gemini-3M22N2C3.js} +13 -13
- package/bundle/{gemini-NJXFBFVJ.js → gemini-LSMTDETS.js} +214 -198
- package/bundle/gemini-OZOYJF22.js +17091 -0
- package/bundle/{gemini-7Z3ODIIX.js → gemini-W2B6CLJC.js} +13 -13
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-FIWFPOOG.js → interactiveCli-D6H37PJQ.js} +40 -18
- package/bundle/{interactiveCli-DNV4GCM5.js → interactiveCli-L3ZXOVEV.js} +347 -306
- package/bundle/{interactiveCli-LMXAWUCU.js → interactiveCli-LQJM6LRE.js} +40 -18
- package/bundle/interactiveCli-RGOYDSMH.js +34984 -0
- package/bundle/{liteRtServerManager-P62A6ZVG.js → liteRtServerManager-3BY6TBHG.js} +4 -4
- package/bundle/{liteRtServerManager-VBKDVKLU.js → liteRtServerManager-C5WZRQUF.js} +4 -4
- package/bundle/{liteRtServerManager-LQMOE7JK.js → liteRtServerManager-IGKUGGP4.js} +4 -4
- package/bundle/liteRtServerManager-IJ4I2PZA.js +65 -0
- package/bundle/{oauth2-provider-FWKP5A4D.js → oauth2-provider-KSRLPOK3.js} +1 -1
- package/bundle/{oauth2-provider-BKNKX6FS.js → oauth2-provider-RWKTMYJF.js} +1 -1
- package/bundle/{oauth2-provider-UPRM4Y2J.js → oauth2-provider-VHNLCU4Y.js} +38 -72
- package/bundle/oauth2-provider-ZT4OFVMK.js +235 -0
- package/bundle/{start-DG3DHS3K.js → start-EXAQFM4Y.js} +6 -6
- package/bundle/{start-Y2JKSYXK.js → start-IPZF32E3.js} +6 -6
- package/bundle/{start-BMBCT2CF.js → start-SVNTSNHV.js} +6 -6
- package/bundle/start-ZXU5BFZY.js +18 -0
- package/package.json +1 -1
|
@@ -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-VGGWKRAC.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,13 +1,13 @@
|
|
|
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-Q73BPF7A.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O7SBKM7M.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-RLDNUS35.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-LNXGFWGZ.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-NMMXRZ53.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-GMQ6QNZB.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
tokenLimit,
|
|
245
245
|
uiTelemetryService,
|
|
246
246
|
unescapePath
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-WDFSF5L4.js";
|
|
248
248
|
import {
|
|
249
249
|
require_src
|
|
250
250
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -77177,7 +77177,7 @@ var authCommand = {
|
|
|
77177
77177
|
import process29 from "node:process";
|
|
77178
77178
|
|
|
77179
77179
|
// packages/cli/src/generated/git-commit.ts
|
|
77180
|
-
var GIT_COMMIT_INFO = "
|
|
77180
|
+
var GIT_COMMIT_INFO = "1110ce8bc";
|
|
77181
77181
|
|
|
77182
77182
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77183
77183
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -82958,7 +82958,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
82958
82958
|
type: "info",
|
|
82959
82959
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
82960
82960
|
});
|
|
82961
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
82961
|
+
const { MCPOAuthProvider } = await import("./dist-5TYMQVIZ.js");
|
|
82962
82962
|
let oauthConfig = server.oauth;
|
|
82963
82963
|
if (!oauthConfig) {
|
|
82964
82964
|
oauthConfig = { enabled: false };
|
|
@@ -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-SCBVGZXH.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ALVDOQNA.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-4SNEOO5E.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-VBK54QCZ.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
tokenLimit,
|
|
232
232
|
uiTelemetryService,
|
|
233
233
|
unescapePath
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-O7SBKM7M.js";
|
|
235
235
|
import {
|
|
236
236
|
require_src
|
|
237
237
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -77164,7 +77164,7 @@ var authCommand = {
|
|
|
77164
77164
|
import process29 from "node:process";
|
|
77165
77165
|
|
|
77166
77166
|
// packages/cli/src/generated/git-commit.ts
|
|
77167
|
-
var GIT_COMMIT_INFO = "
|
|
77167
|
+
var GIT_COMMIT_INFO = "3910b2093";
|
|
77168
77168
|
|
|
77169
77169
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77170
77170
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -82945,7 +82945,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
82945
82945
|
type: "info",
|
|
82946
82946
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
82947
82947
|
});
|
|
82948
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
82948
|
+
const { MCPOAuthProvider } = await import("./core-US34OW5M.js");
|
|
82949
82949
|
let oauthConfig = server.oauth;
|
|
82950
82950
|
if (!oauthConfig) {
|
|
82951
82951
|
oauthConfig = { enabled: false };
|
|
@@ -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-Y3APL4PE.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,20 +59,22 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GK7NUJ35.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-MBWROXYM.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-XESAM7IL.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
73
73
|
AsyncFzf,
|
|
74
|
+
AuthType,
|
|
74
75
|
Config,
|
|
75
76
|
CoreEvent,
|
|
77
|
+
CoreToolCallStatus,
|
|
76
78
|
DiscoveredMCPTool,
|
|
77
79
|
ExtensionDisableEvent,
|
|
78
80
|
ExtensionEnableEvent,
|
|
@@ -83,20 +85,31 @@ import {
|
|
|
83
85
|
ExtensionUpdateEvent,
|
|
84
86
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
85
87
|
GEMINI_DIR,
|
|
88
|
+
HookType,
|
|
89
|
+
IDEConnectionStatus,
|
|
86
90
|
INITIAL_HISTORY_LENGTH,
|
|
87
91
|
IdeClient,
|
|
88
92
|
IdeConnectionEvent,
|
|
93
|
+
IdeConnectionType,
|
|
94
|
+
IntegrityDataStatus,
|
|
89
95
|
KeychainTokenStorage,
|
|
96
|
+
LlmRole,
|
|
97
|
+
MCPDiscoveryState,
|
|
90
98
|
MCPOAuthTokenStorage,
|
|
99
|
+
MCPServerStatus,
|
|
91
100
|
ModelSlashCommandEvent,
|
|
101
|
+
PolicyDecision,
|
|
92
102
|
ProjectIdRequiredError,
|
|
93
103
|
REFERENCE_CONTENT_END,
|
|
94
104
|
REFERENCE_CONTENT_START,
|
|
95
105
|
ReadManyFilesTool,
|
|
96
106
|
RewindEvent,
|
|
107
|
+
SessionEndReason,
|
|
108
|
+
SessionStartSource,
|
|
97
109
|
ShellExecutionService,
|
|
98
110
|
StartSessionEvent,
|
|
99
111
|
Storage,
|
|
112
|
+
TrustLevel,
|
|
100
113
|
UPGRADE_URL_PAGE,
|
|
101
114
|
UserAccountManager,
|
|
102
115
|
ValidationRequiredError,
|
|
@@ -231,7 +244,7 @@ import {
|
|
|
231
244
|
tokenLimit,
|
|
232
245
|
uiTelemetryService,
|
|
233
246
|
unescapePath
|
|
234
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-G65GW52B.js";
|
|
235
248
|
import {
|
|
236
249
|
require_src
|
|
237
250
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -60077,7 +60090,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
60077
60090
|
function useIdeTrustListener() {
|
|
60078
60091
|
const settings = useSettings();
|
|
60079
60092
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
60080
|
-
|
|
60093
|
+
IDEConnectionStatus.Disconnected
|
|
60081
60094
|
);
|
|
60082
60095
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
60083
60096
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -60107,7 +60120,7 @@ function useIdeTrustListener() {
|
|
|
60107
60120
|
};
|
|
60108
60121
|
}, []);
|
|
60109
60122
|
const getSnapshot = () => {
|
|
60110
|
-
if (connectionStatus !==
|
|
60123
|
+
if (connectionStatus !== IDEConnectionStatus.Connected) {
|
|
60111
60124
|
return void 0;
|
|
60112
60125
|
}
|
|
60113
60126
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -60812,7 +60825,7 @@ async function initializeApp(config, settings) {
|
|
|
60812
60825
|
await ideClient.connect();
|
|
60813
60826
|
logIdeConnection(
|
|
60814
60827
|
config,
|
|
60815
|
-
new IdeConnectionEvent(
|
|
60828
|
+
new IdeConnectionEvent(IdeConnectionType.START)
|
|
60816
60829
|
);
|
|
60817
60830
|
}).catch((e) => {
|
|
60818
60831
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -60830,17 +60843,17 @@ async function initializeApp(config, settings) {
|
|
|
60830
60843
|
// packages/cli/src/config/auth.ts
|
|
60831
60844
|
async function validateAuthMethod(authMethod) {
|
|
60832
60845
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
60833
|
-
if (authMethod ===
|
|
60846
|
+
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
|
|
60834
60847
|
return null;
|
|
60835
60848
|
}
|
|
60836
|
-
if (authMethod ===
|
|
60849
|
+
if (authMethod === AuthType.USE_GEMINI) {
|
|
60837
60850
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
60838
60851
|
if (!key) {
|
|
60839
60852
|
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)!";
|
|
60840
60853
|
}
|
|
60841
60854
|
return null;
|
|
60842
60855
|
}
|
|
60843
|
-
if (authMethod ===
|
|
60856
|
+
if (authMethod === AuthType.USE_VERTEX_AI) {
|
|
60844
60857
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
60845
60858
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
60846
60859
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -65267,7 +65280,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
65267
65280
|
const trustedFolders = loadTrustedFolders();
|
|
65268
65281
|
await trustedFolders.setValue(
|
|
65269
65282
|
this.workspaceDir,
|
|
65270
|
-
|
|
65283
|
+
TrustLevel.TRUST_FOLDER
|
|
65271
65284
|
);
|
|
65272
65285
|
} else {
|
|
65273
65286
|
throw new Error(
|
|
@@ -65453,7 +65466,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65453
65466
|
newExtensionConfig.version,
|
|
65454
65467
|
previousExtensionConfig.version,
|
|
65455
65468
|
installMetadata.type,
|
|
65456
|
-
|
|
65469
|
+
CoreToolCallStatus.Success
|
|
65457
65470
|
)
|
|
65458
65471
|
);
|
|
65459
65472
|
if (newExtensionName !== previousName) {
|
|
@@ -65476,7 +65489,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65476
65489
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
65477
65490
|
newExtensionConfig.version,
|
|
65478
65491
|
installMetadata.type,
|
|
65479
|
-
|
|
65492
|
+
CoreToolCallStatus.Success
|
|
65480
65493
|
)
|
|
65481
65494
|
);
|
|
65482
65495
|
await this.enableExtension(
|
|
@@ -65509,7 +65522,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65509
65522
|
newExtensionConfig?.version ?? "",
|
|
65510
65523
|
previousExtensionConfig.version,
|
|
65511
65524
|
installMetadata.type,
|
|
65512
|
-
|
|
65525
|
+
CoreToolCallStatus.Error
|
|
65513
65526
|
)
|
|
65514
65527
|
);
|
|
65515
65528
|
} else {
|
|
@@ -65521,7 +65534,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65521
65534
|
extensionId ?? "",
|
|
65522
65535
|
newExtensionConfig?.version ?? "",
|
|
65523
65536
|
installMetadata.type,
|
|
65524
|
-
|
|
65537
|
+
CoreToolCallStatus.Error
|
|
65525
65538
|
)
|
|
65526
65539
|
);
|
|
65527
65540
|
}
|
|
@@ -65552,7 +65565,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65552
65565
|
extension.name,
|
|
65553
65566
|
hashValue(extension.name),
|
|
65554
65567
|
extension.id,
|
|
65555
|
-
|
|
65568
|
+
CoreToolCallStatus.Success
|
|
65556
65569
|
)
|
|
65557
65570
|
);
|
|
65558
65571
|
}
|
|
@@ -65822,7 +65835,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65822
65835
|
if (eventHooks) {
|
|
65823
65836
|
for (const definition of eventHooks) {
|
|
65824
65837
|
for (const hook of definition.hooks) {
|
|
65825
|
-
if (hook.type ===
|
|
65838
|
+
if (hook.type === HookType.Command) {
|
|
65826
65839
|
hook.env = { ...hook.env, ...hookEnv };
|
|
65827
65840
|
}
|
|
65828
65841
|
}
|
|
@@ -66853,7 +66866,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
66853
66866
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
66854
66867
|
name: `resources/read (${resource.serverName})`,
|
|
66855
66868
|
description: resource.uri,
|
|
66856
|
-
status:
|
|
66869
|
+
status: CoreToolCallStatus.Success,
|
|
66857
66870
|
isClientInitiated: true,
|
|
66858
66871
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
66859
66872
|
confirmationDetails: void 0
|
|
@@ -66868,7 +66881,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
66868
66881
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
66869
66882
|
name: `resources/read (${resource.serverName})`,
|
|
66870
66883
|
description: resource.uri,
|
|
66871
|
-
status:
|
|
66884
|
+
status: CoreToolCallStatus.Error,
|
|
66872
66885
|
isClientInitiated: true,
|
|
66873
66886
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
66874
66887
|
confirmationDetails: void 0
|
|
@@ -66893,7 +66906,7 @@ Content from @${result.uri}:
|
|
|
66893
66906
|
}
|
|
66894
66907
|
if (hasError) {
|
|
66895
66908
|
const firstError = displays.find(
|
|
66896
|
-
(d) => d.status ===
|
|
66909
|
+
(d) => d.status === CoreToolCallStatus.Error
|
|
66897
66910
|
);
|
|
66898
66911
|
return {
|
|
66899
66912
|
parts: [],
|
|
@@ -66934,7 +66947,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
66934
66947
|
callId: `client-read-${userMessageTimestamp}`,
|
|
66935
66948
|
name: readManyFilesTool.displayName,
|
|
66936
66949
|
description: invocation.getDescription(),
|
|
66937
|
-
status:
|
|
66950
|
+
status: CoreToolCallStatus.Success,
|
|
66938
66951
|
isClientInitiated: true,
|
|
66939
66952
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
66940
66953
|
confirmationDetails: void 0
|
|
@@ -66981,7 +66994,7 @@ Content from @${displayPath}:
|
|
|
66981
66994
|
callId: `client-read-${userMessageTimestamp}`,
|
|
66982
66995
|
name: readManyFilesTool.displayName,
|
|
66983
66996
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
66984
|
-
status:
|
|
66997
|
+
status: CoreToolCallStatus.Error,
|
|
66985
66998
|
isClientInitiated: true,
|
|
66986
66999
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
66987
67000
|
confirmationDetails: void 0
|
|
@@ -70248,7 +70261,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
70248
70261
|
if (wasRaw) {
|
|
70249
70262
|
setRawMode?.(true);
|
|
70250
70263
|
}
|
|
70251
|
-
coreEvents.emit(
|
|
70264
|
+
coreEvents.emit(CoreEvent.ExternalEditorClosed);
|
|
70252
70265
|
}
|
|
70253
70266
|
}
|
|
70254
70267
|
|
|
@@ -72943,7 +72956,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
72943
72956
|
extension.name,
|
|
72944
72957
|
installMetadata
|
|
72945
72958
|
);
|
|
72946
|
-
if (status ===
|
|
72959
|
+
if (status === IntegrityDataStatus.INVALID) {
|
|
72947
72960
|
throw new Error("Extension integrity cannot be verified");
|
|
72948
72961
|
}
|
|
72949
72962
|
} catch (e) {
|
|
@@ -74364,11 +74377,11 @@ var ShellProcessor = class {
|
|
|
74364
74377
|
},
|
|
74365
74378
|
void 0
|
|
74366
74379
|
);
|
|
74367
|
-
if (decision ===
|
|
74380
|
+
if (decision === PolicyDecision.DENY) {
|
|
74368
74381
|
throw new Error(
|
|
74369
74382
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
74370
74383
|
);
|
|
74371
|
-
} else if (decision ===
|
|
74384
|
+
} else if (decision === PolicyDecision.ASK_USER) {
|
|
74372
74385
|
commandsToConfirm.add(command);
|
|
74373
74386
|
}
|
|
74374
74387
|
}
|
|
@@ -75486,7 +75499,7 @@ var MultiFolderTrustDialog = ({
|
|
|
75486
75499
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
75487
75500
|
await trustedFolders.setValue(
|
|
75488
75501
|
expandedPath,
|
|
75489
|
-
|
|
75502
|
+
TrustLevel.TRUST_FOLDER
|
|
75490
75503
|
);
|
|
75491
75504
|
}
|
|
75492
75505
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -77164,7 +77177,7 @@ var authCommand = {
|
|
|
77164
77177
|
import process29 from "node:process";
|
|
77165
77178
|
|
|
77166
77179
|
// packages/cli/src/generated/git-commit.ts
|
|
77167
|
-
var GIT_COMMIT_INFO = "
|
|
77180
|
+
var GIT_COMMIT_INFO = "3910b2093";
|
|
77168
77181
|
|
|
77169
77182
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77170
77183
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -77810,7 +77823,7 @@ var clearCommand = {
|
|
|
77810
77823
|
const config = context.services.agentContext?.config;
|
|
77811
77824
|
const hookSystem = config?.getHookSystem();
|
|
77812
77825
|
if (hookSystem) {
|
|
77813
|
-
await hookSystem.fireSessionEndEvent(
|
|
77826
|
+
await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
|
|
77814
77827
|
}
|
|
77815
77828
|
config?.injectionService.clear();
|
|
77816
77829
|
let newSessionId;
|
|
@@ -77827,7 +77840,7 @@ var clearCommand = {
|
|
|
77827
77840
|
}
|
|
77828
77841
|
let result;
|
|
77829
77842
|
if (hookSystem) {
|
|
77830
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
77843
|
+
result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
|
|
77831
77844
|
}
|
|
77832
77845
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
77833
77846
|
if (config) {
|
|
@@ -80826,7 +80839,7 @@ var Footer = () => {
|
|
|
80826
80839
|
case "auth": {
|
|
80827
80840
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
80828
80841
|
if (!authType) break;
|
|
80829
|
-
const displayStr = authType ===
|
|
80842
|
+
const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
|
|
80830
80843
|
addCol(
|
|
80831
80844
|
id,
|
|
80832
80845
|
header,
|
|
@@ -82594,12 +82607,12 @@ import path29 from "node:path";
|
|
|
82594
82607
|
function getIdeStatusMessage(ideClient) {
|
|
82595
82608
|
const connection = ideClient.getConnectionStatus();
|
|
82596
82609
|
switch (connection.status) {
|
|
82597
|
-
case
|
|
82610
|
+
case IDEConnectionStatus.Connected:
|
|
82598
82611
|
return {
|
|
82599
82612
|
messageType: "info",
|
|
82600
82613
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
82601
82614
|
};
|
|
82602
|
-
case
|
|
82615
|
+
case IDEConnectionStatus.Connecting:
|
|
82603
82616
|
return {
|
|
82604
82617
|
messageType: "info",
|
|
82605
82618
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82640,7 +82653,7 @@ ${infoMessage}`;
|
|
|
82640
82653
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
82641
82654
|
const connection = ideClient.getConnectionStatus();
|
|
82642
82655
|
switch (connection.status) {
|
|
82643
|
-
case
|
|
82656
|
+
case IDEConnectionStatus.Connected: {
|
|
82644
82657
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
82645
82658
|
const context = ideContextStore.get();
|
|
82646
82659
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -82652,7 +82665,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
82652
82665
|
content
|
|
82653
82666
|
};
|
|
82654
82667
|
}
|
|
82655
|
-
case
|
|
82668
|
+
case IDEConnectionStatus.Connecting:
|
|
82656
82669
|
return {
|
|
82657
82670
|
messageType: "info",
|
|
82658
82671
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82674,7 +82687,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
82674
82687
|
const ideClient = await IdeClient.getInstance();
|
|
82675
82688
|
if (value) {
|
|
82676
82689
|
await ideClient.connect(options);
|
|
82677
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
82690
|
+
logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
|
|
82678
82691
|
} else {
|
|
82679
82692
|
await ideClient.disconnect();
|
|
82680
82693
|
}
|
|
@@ -82762,7 +82775,7 @@ var ideCommand = async () => {
|
|
|
82762
82775
|
logToConsole: false
|
|
82763
82776
|
}
|
|
82764
82777
|
);
|
|
82765
|
-
if (ideClient.getConnectionStatus().status ===
|
|
82778
|
+
if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
|
|
82766
82779
|
break;
|
|
82767
82780
|
}
|
|
82768
82781
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -82839,7 +82852,7 @@ var ideCommand = async () => {
|
|
|
82839
82852
|
}
|
|
82840
82853
|
};
|
|
82841
82854
|
const { status } = ideClient.getConnectionStatus();
|
|
82842
|
-
const isConnected = status ===
|
|
82855
|
+
const isConnected = status === IDEConnectionStatus.Connected;
|
|
82843
82856
|
if (isConnected) {
|
|
82844
82857
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
82845
82858
|
} else {
|
|
@@ -82939,13 +82952,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
82939
82952
|
const displayListener = (message) => {
|
|
82940
82953
|
context.ui.addItem({ type: "info", text: message });
|
|
82941
82954
|
};
|
|
82942
|
-
coreEvents.on(
|
|
82955
|
+
coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
|
|
82943
82956
|
try {
|
|
82944
82957
|
context.ui.addItem({
|
|
82945
82958
|
type: "info",
|
|
82946
82959
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
82947
82960
|
});
|
|
82948
|
-
const { MCPOAuthProvider } = await import("./
|
|
82961
|
+
const { MCPOAuthProvider } = await import("./dist-V5VJYW6J.js");
|
|
82949
82962
|
let oauthConfig = server.oauth;
|
|
82950
82963
|
if (!oauthConfig) {
|
|
82951
82964
|
oauthConfig = { enabled: false };
|
|
@@ -82982,7 +82995,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
82982
82995
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
82983
82996
|
};
|
|
82984
82997
|
} finally {
|
|
82985
|
-
coreEvents.removeListener(
|
|
82998
|
+
coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
|
|
82986
82999
|
}
|
|
82987
83000
|
},
|
|
82988
83001
|
completion: async (context, partialArg) => {
|
|
@@ -83028,10 +83041,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
83028
83041
|
}
|
|
83029
83042
|
const serverNames = Object.keys(mcpServers);
|
|
83030
83043
|
const connectingServers = serverNames.filter(
|
|
83031
|
-
(name) => getMCPServerStatus(name) ===
|
|
83044
|
+
(name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
|
|
83032
83045
|
);
|
|
83033
83046
|
const discoveryState = getMCPDiscoveryState();
|
|
83034
|
-
const discoveryInProgress = discoveryState ===
|
|
83047
|
+
const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
|
|
83035
83048
|
const allTools = toolRegistry.getAllTools();
|
|
83036
83049
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
83037
83050
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -98790,7 +98803,7 @@ Return a JSON object with:
|
|
|
98790
98803
|
},
|
|
98791
98804
|
abortSignal: new AbortController().signal,
|
|
98792
98805
|
promptId: "triage-duplicates",
|
|
98793
|
-
role:
|
|
98806
|
+
role: LlmRole.UTILITY_TOOL
|
|
98794
98807
|
});
|
|
98795
98808
|
const rec = response;
|
|
98796
98809
|
let canonical;
|
|
@@ -99624,7 +99637,7 @@ Return a JSON object with:
|
|
|
99624
99637
|
},
|
|
99625
99638
|
abortSignal: abortControllerRef.current.signal,
|
|
99626
99639
|
promptId: "triage-issues",
|
|
99627
|
-
role:
|
|
99640
|
+
role: LlmRole.UTILITY_TOOL
|
|
99628
99641
|
});
|
|
99629
99642
|
return response;
|
|
99630
99643
|
},
|
|
@@ -100198,8 +100211,8 @@ var planCommand = {
|
|
|
100198
100211
|
return;
|
|
100199
100212
|
}
|
|
100200
100213
|
const previousApprovalMode = config.getApprovalMode();
|
|
100201
|
-
config.setApprovalMode(
|
|
100202
|
-
if (previousApprovalMode !==
|
|
100214
|
+
config.setApprovalMode(ApprovalMode.PLAN);
|
|
100215
|
+
if (previousApprovalMode !== ApprovalMode.PLAN) {
|
|
100203
100216
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
100204
100217
|
}
|
|
100205
100218
|
if (context.invocation?.args) {
|
|
@@ -100258,10 +100271,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
100258
100271
|
rules.forEach((rule) => {
|
|
100259
100272
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
100260
100273
|
const modeSet = new Set(modes);
|
|
100261
|
-
if (modeSet.has(
|
|
100262
|
-
if (modeSet.has(
|
|
100263
|
-
if (modeSet.has(
|
|
100264
|
-
if (modeSet.has(
|
|
100274
|
+
if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
|
|
100275
|
+
if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
|
|
100276
|
+
if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
|
|
100277
|
+
if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
|
|
100265
100278
|
});
|
|
100266
100279
|
return result;
|
|
100267
100280
|
};
|
|
@@ -101642,7 +101655,7 @@ var upgradeCommand = {
|
|
|
101642
101655
|
action: async (context) => {
|
|
101643
101656
|
const config = context.services.agentContext?.config;
|
|
101644
101657
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
101645
|
-
if (authType !==
|
|
101658
|
+
if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
|
|
101646
101659
|
return {
|
|
101647
101660
|
type: "message",
|
|
101648
101661
|
messageType: "error",
|
|
@@ -101871,7 +101884,7 @@ var BuiltinCommandLoader = class {
|
|
|
101871
101884
|
setupGithubCommand,
|
|
101872
101885
|
terminalSetupCommand,
|
|
101873
101886
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
101874
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
101887
|
+
...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
|
|
101875
101888
|
];
|
|
101876
101889
|
handle?.end();
|
|
101877
101890
|
return allDefinitions.filter((cmd) => cmd !== null);
|