@google/gemini-cli 0.40.0-preview.4 → 0.40.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-4XVBQQNJ.js → chunk-3F3SMPJP.js} +6 -6
- package/bundle/{chunk-KG7ZFMJL.js → chunk-3OSQ5US4.js} +12 -12
- package/bundle/{chunk-PRZIW6SM.js → chunk-BSQN7W2F.js} +1 -1
- package/bundle/{chunk-M76FWZ5L.js → chunk-DYY5TRG5.js} +1 -1
- package/bundle/{chunk-63PTTRTA.js → chunk-EITHKKXC.js} +2 -2
- package/bundle/{chunk-NV6UCR4K.js → chunk-FRSESBS3.js} +11912 -6390
- package/bundle/{chunk-G356GKHH.js → chunk-G6ODSHKI.js} +1 -1
- package/bundle/{chunk-HGFADN5A.js → chunk-HMR2JSPA.js} +1 -1
- package/bundle/{chunk-H7F2VOIJ.js → chunk-J76QO4KN.js} +6 -6
- package/bundle/{chunk-CJQVVQSH.js → chunk-MBLCGSJW.js} +1 -1
- package/bundle/{chunk-SYPUOR3U.js → chunk-ML7VG4QG.js} +2 -2
- package/bundle/{chunk-WSTHO4WR.js → chunk-O7SPQTAS.js} +2 -2
- package/bundle/{chunk-H4NQBTXN.js → chunk-OE2ZUR66.js} +12 -14
- package/bundle/{chunk-547AWTTH.js → chunk-OEIRJHU4.js} +54 -67
- package/bundle/{chunk-VQ7N6NVX.js → chunk-P7LA6IIC.js} +1 -1
- package/bundle/{chunk-ZQNX6OWU.js → chunk-RUHTTGS7.js} +3 -3
- package/bundle/{chunk-CIO3GUGQ.js → chunk-SZYCJREE.js} +12 -12
- package/bundle/{chunk-BV2W6YE6.js → chunk-URTDU3HF.js} +1 -1
- package/bundle/{cleanup-DNS7PXYC.js → cleanup-6MKBWA6V.js} +2 -2
- package/bundle/{cleanup-4EFDM2N7.js → cleanup-AJ7G3WEE.js} +2 -2
- package/bundle/{cleanup-4RRVO4GO.js → cleanup-SOJQVOTG.js} +3 -3
- package/bundle/{core-WQSFCPEO.js → core-KELRGMHQ.js} +1 -1
- package/bundle/{dist-RIVCP5ZD.js → core-O5TD6NYP.js} +2 -2
- package/bundle/{devtoolsService-JWET4G6G.js → devtoolsService-AR5HWQA7.js} +2 -2
- package/bundle/{devtoolsService-LPEBYJVD.js → devtoolsService-CCXHJEUM.js} +2 -2
- package/bundle/{devtoolsService-S2LBUUZU.js → devtoolsService-GQF7V6FB.js} +4 -5
- package/bundle/{dist-ANTOB3YW.js → dist-LZ5ASNAL.js} +1 -1
- package/bundle/docs/reference/configuration.md +7 -7
- package/bundle/{gemini-57EC2ZF7.js → gemini-LSLMD4HG.js} +12 -12
- package/bundle/{gemini-27FQ5BI4.js → gemini-TKPXJBGX.js} +175 -191
- package/bundle/{gemini-JAZVYRDD.js → gemini-YJTI2WQP.js} +12 -12
- package/bundle/gemini.js +3 -3
- package/bundle/{interactiveCli-E35R6QQC.js → interactiveCli-5YSP2IQI.js} +6 -6
- package/bundle/{interactiveCli-L3EK4XEX.js → interactiveCli-I56L63GE.js} +272 -290
- package/bundle/{interactiveCli-FPHSBRV3.js → interactiveCli-O3UYJUNT.js} +6 -6
- package/bundle/{liteRtServerManager-ORSW3R4F.js → liteRtServerManager-6INPACOA.js} +3 -3
- package/bundle/{liteRtServerManager-LXEAYAUP.js → liteRtServerManager-CIC7DD4U.js} +3 -3
- package/bundle/{liteRtServerManager-YYXO5Q3I.js → liteRtServerManager-XI56E5P3.js} +4 -4
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-I3G773GE.js → oauth2-provider-HDKVDC2Q.js} +1 -1
- package/bundle/{oauth2-provider-B3NTBNAM.js → oauth2-provider-HUMYTY6K.js} +1 -1
- package/bundle/{oauth2-provider-ENF2D4Q7.js → oauth2-provider-VGGNG5XI.js} +73 -39
- package/bundle/{start-CRIFZ3SW.js → start-25VD33TV.js} +5 -5
- package/bundle/{start-S3REI3X2.js → start-U4YQCY2A.js} +6 -6
- package/bundle/{start-KVFKS3IT.js → start-VHURPYN7.js} +5 -5
- package/package.json +1 -1
- package/bundle/chunk-ATGIEBEB.js +0 -1571
- package/bundle/chunk-HF7X35D3.js +0 -80012
- package/bundle/chunk-LMVZLINC.js +0 -118
- package/bundle/chunk-LODNDE3S.js +0 -17505
- package/bundle/chunk-LVHUYMBU.js +0 -156
- package/bundle/chunk-RENFZ63F.js +0 -351149
- package/bundle/cleanup-DXHNV2J6.js +0 -33
- package/bundle/devtoolsService-YCRNWWXE.js +0 -852
- package/bundle/dist-UH565MTG.js +0 -2046
- package/bundle/gemini-TQZRS37Q.js +0 -16087
- package/bundle/interactiveCli-MVHR4VV7.js +0 -34448
- package/bundle/liteRtServerManager-PI4ZNFB5.js +0 -65
- package/bundle/oauth2-provider-WTF7AHQ2.js +0 -237
- package/bundle/start-OTLGMCNH.js +0 -18
|
@@ -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-URTDU3HF.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-ML7VG4QG.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P7LA6IIC.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-OE2ZUR66.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BSQN7W2F.js";
|
|
66
66
|
import {
|
|
67
67
|
AsyncFzf,
|
|
68
68
|
Config,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
stripAnsi,
|
|
197
197
|
tokenLimit,
|
|
198
198
|
uiTelemetryService
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-FRSESBS3.js";
|
|
200
200
|
import {
|
|
201
201
|
ApprovalMode,
|
|
202
202
|
CoreEvent,
|
|
@@ -54991,7 +54991,7 @@ var authCommand = {
|
|
|
54991
54991
|
import process29 from "node:process";
|
|
54992
54992
|
|
|
54993
54993
|
// packages/cli/src/generated/git-commit.ts
|
|
54994
|
-
var GIT_COMMIT_INFO = "
|
|
54994
|
+
var GIT_COMMIT_INFO = "cefbd08f7";
|
|
54995
54995
|
|
|
54996
54996
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
54997
54997
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -60476,7 +60476,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60476
60476
|
type: "info",
|
|
60477
60477
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60478
60478
|
});
|
|
60479
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
60479
|
+
const { MCPOAuthProvider } = await import("./core-KELRGMHQ.js");
|
|
60480
60480
|
let oauthConfig = server.oauth;
|
|
60481
60481
|
if (!oauthConfig) {
|
|
60482
60482
|
oauthConfig = { enabled: false };
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isTelemetrySdkInitialized,
|
|
5
5
|
resetBrowserSession,
|
|
6
6
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3OSQ5US4.js";
|
|
8
8
|
import {
|
|
9
9
|
Storage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UHHRGNIO.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/cleanup.ts
|
|
13
13
|
import { promises 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-G6ODSHKI.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-MBLCGSJW.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
20
|
} from "./chunk-F73F75XM.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
AuthProviderType,
|
|
4
|
-
CoreToolCallStatus,
|
|
5
4
|
DEFAULT_MODEL_CONFIGS,
|
|
6
5
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
7
6
|
SESSION_FILE_PREFIX,
|
|
@@ -21,9 +20,8 @@ import {
|
|
|
21
20
|
require_strip_json_comments,
|
|
22
21
|
sanitizeFilenamePart,
|
|
23
22
|
stripAnsi
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FRSESBS3.js";
|
|
25
24
|
import {
|
|
26
|
-
CoreEvent,
|
|
27
25
|
FatalConfigError,
|
|
28
26
|
GEMINI_DIR,
|
|
29
27
|
Storage,
|
|
@@ -32,7 +30,7 @@ import {
|
|
|
32
30
|
external_exports,
|
|
33
31
|
getErrorMessage,
|
|
34
32
|
homedir
|
|
35
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UHHRGNIO.js";
|
|
36
34
|
import {
|
|
37
35
|
__commonJS,
|
|
38
36
|
__require,
|
|
@@ -10066,19 +10064,19 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), headlessOpti
|
|
|
10066
10064
|
var import_react = __toESM(require_react(), 1);
|
|
10067
10065
|
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
10068
10066
|
switch (coreStatus) {
|
|
10069
|
-
case
|
|
10067
|
+
case "validating" /* Validating */:
|
|
10070
10068
|
return "Pending" /* Pending */;
|
|
10071
|
-
case
|
|
10069
|
+
case "awaiting_approval" /* AwaitingApproval */:
|
|
10072
10070
|
return "Confirming" /* Confirming */;
|
|
10073
|
-
case
|
|
10071
|
+
case "executing" /* Executing */:
|
|
10074
10072
|
return "Executing" /* Executing */;
|
|
10075
|
-
case
|
|
10073
|
+
case "success" /* Success */:
|
|
10076
10074
|
return "Success" /* Success */;
|
|
10077
|
-
case
|
|
10075
|
+
case "cancelled" /* Cancelled */:
|
|
10078
10076
|
return "Canceled" /* Canceled */;
|
|
10079
|
-
case
|
|
10077
|
+
case "error" /* Error */:
|
|
10080
10078
|
return "Error" /* Error */;
|
|
10081
|
-
case
|
|
10079
|
+
case "scheduled" /* Scheduled */:
|
|
10082
10080
|
return "Pending" /* Pending */;
|
|
10083
10081
|
default:
|
|
10084
10082
|
return checkExhaustive(coreStatus);
|
|
@@ -10663,7 +10661,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10663
10661
|
args: tool.args,
|
|
10664
10662
|
description: tool.description || "",
|
|
10665
10663
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10666
|
-
status: tool.status === "success" ?
|
|
10664
|
+
status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
|
|
10667
10665
|
resultDisplay: tool.resultDisplay,
|
|
10668
10666
|
confirmationDetails: void 0
|
|
10669
10667
|
}))
|
|
@@ -16533,8 +16531,8 @@ var LoadedSettings = class {
|
|
|
16533
16531
|
// React will pass a listener fn into this subscribe fn
|
|
16534
16532
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16535
16533
|
subscribe(listener) {
|
|
16536
|
-
coreEvents.on(
|
|
16537
|
-
return () => coreEvents.off(
|
|
16534
|
+
coreEvents.on("settings-changed" /* SettingsChanged */, listener);
|
|
16535
|
+
return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
|
|
16538
16536
|
}
|
|
16539
16537
|
getSnapshot() {
|
|
16540
16538
|
return this._snapshot;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HMR2JSPA.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -59,15 +59,13 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-DYY5TRG5.js";
|
|
63
63
|
import {
|
|
64
64
|
runExitCleanup
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-ML7VG4QG.js";
|
|
66
66
|
import {
|
|
67
67
|
AsyncFzf,
|
|
68
|
-
AuthType,
|
|
69
68
|
Config,
|
|
70
|
-
CoreToolCallStatus,
|
|
71
69
|
ExtensionDisableEvent,
|
|
72
70
|
ExtensionEnableEvent,
|
|
73
71
|
ExtensionInstallEvent,
|
|
@@ -76,27 +74,17 @@ import {
|
|
|
76
74
|
ExtensionUninstallEvent,
|
|
77
75
|
ExtensionUpdateEvent,
|
|
78
76
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
79
|
-
HookType,
|
|
80
|
-
IDEConnectionStatus,
|
|
81
77
|
INITIAL_HISTORY_LENGTH,
|
|
82
78
|
IdeClient,
|
|
83
79
|
IdeConnectionEvent,
|
|
84
|
-
IdeConnectionType,
|
|
85
|
-
IntegrityDataStatus,
|
|
86
80
|
KeychainTokenStorage,
|
|
87
|
-
LlmRole,
|
|
88
|
-
MCPDiscoveryState,
|
|
89
81
|
MCPOAuthTokenStorage,
|
|
90
|
-
MCPServerStatus,
|
|
91
82
|
ModelSlashCommandEvent,
|
|
92
83
|
ProjectIdRequiredError,
|
|
93
84
|
ReadManyFilesTool,
|
|
94
85
|
RewindEvent,
|
|
95
|
-
SessionEndReason,
|
|
96
|
-
SessionStartSource,
|
|
97
86
|
ShellExecutionService,
|
|
98
87
|
StartSessionEvent,
|
|
99
|
-
TrustLevel,
|
|
100
88
|
UPGRADE_URL_PAGE,
|
|
101
89
|
UserAccountManager,
|
|
102
90
|
ValidationRequiredError,
|
|
@@ -208,13 +196,12 @@ import {
|
|
|
208
196
|
stripAnsi,
|
|
209
197
|
tokenLimit,
|
|
210
198
|
uiTelemetryService
|
|
211
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-3OSQ5US4.js";
|
|
212
200
|
import {
|
|
213
201
|
ApprovalMode,
|
|
214
202
|
CoreEvent,
|
|
215
203
|
DiscoveredMCPTool,
|
|
216
204
|
GEMINI_DIR,
|
|
217
|
-
PolicyDecision,
|
|
218
205
|
REFERENCE_CONTENT_END,
|
|
219
206
|
REFERENCE_CONTENT_START,
|
|
220
207
|
Storage,
|
|
@@ -235,7 +222,7 @@ import {
|
|
|
235
222
|
shortenPath,
|
|
236
223
|
tildeifyPath,
|
|
237
224
|
unescapePath
|
|
238
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-UHHRGNIO.js";
|
|
239
226
|
import {
|
|
240
227
|
require_src
|
|
241
228
|
} from "./chunk-RJTRUG2J.js";
|
|
@@ -39438,7 +39425,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
39438
39425
|
function useIdeTrustListener() {
|
|
39439
39426
|
const settings = useSettings();
|
|
39440
39427
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
39441
|
-
|
|
39428
|
+
"disconnected" /* Disconnected */
|
|
39442
39429
|
);
|
|
39443
39430
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
39444
39431
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -39468,7 +39455,7 @@ function useIdeTrustListener() {
|
|
|
39468
39455
|
};
|
|
39469
39456
|
}, []);
|
|
39470
39457
|
const getSnapshot = () => {
|
|
39471
|
-
if (connectionStatus !==
|
|
39458
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
39472
39459
|
return void 0;
|
|
39473
39460
|
}
|
|
39474
39461
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -39854,7 +39841,7 @@ async function initializeApp(config, settings) {
|
|
|
39854
39841
|
await ideClient.connect();
|
|
39855
39842
|
logIdeConnection(
|
|
39856
39843
|
config,
|
|
39857
|
-
new IdeConnectionEvent(
|
|
39844
|
+
new IdeConnectionEvent("start" /* START */)
|
|
39858
39845
|
);
|
|
39859
39846
|
}).catch((e) => {
|
|
39860
39847
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -39872,16 +39859,16 @@ async function initializeApp(config, settings) {
|
|
|
39872
39859
|
// packages/cli/src/config/auth.ts
|
|
39873
39860
|
function validateAuthMethod(authMethod) {
|
|
39874
39861
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
39875
|
-
if (authMethod ===
|
|
39862
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
39876
39863
|
return null;
|
|
39877
39864
|
}
|
|
39878
|
-
if (authMethod ===
|
|
39865
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
39879
39866
|
if (!process.env["GEMINI_API_KEY"]) {
|
|
39880
39867
|
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)!";
|
|
39881
39868
|
}
|
|
39882
39869
|
return null;
|
|
39883
39870
|
}
|
|
39884
|
-
if (authMethod ===
|
|
39871
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
39885
39872
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
39886
39873
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
39887
39874
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -44612,7 +44599,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
44612
44599
|
const trustedFolders = loadTrustedFolders();
|
|
44613
44600
|
await trustedFolders.setValue(
|
|
44614
44601
|
this.workspaceDir,
|
|
44615
|
-
|
|
44602
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
44616
44603
|
);
|
|
44617
44604
|
} else {
|
|
44618
44605
|
throw new Error(
|
|
@@ -44798,7 +44785,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44798
44785
|
newExtensionConfig.version,
|
|
44799
44786
|
previousExtensionConfig.version,
|
|
44800
44787
|
installMetadata.type,
|
|
44801
|
-
|
|
44788
|
+
"success" /* Success */
|
|
44802
44789
|
)
|
|
44803
44790
|
);
|
|
44804
44791
|
if (newExtensionName !== previousName) {
|
|
@@ -44821,7 +44808,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44821
44808
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
44822
44809
|
newExtensionConfig.version,
|
|
44823
44810
|
installMetadata.type,
|
|
44824
|
-
|
|
44811
|
+
"success" /* Success */
|
|
44825
44812
|
)
|
|
44826
44813
|
);
|
|
44827
44814
|
await this.enableExtension(
|
|
@@ -44854,7 +44841,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44854
44841
|
newExtensionConfig?.version ?? "",
|
|
44855
44842
|
previousExtensionConfig.version,
|
|
44856
44843
|
installMetadata.type,
|
|
44857
|
-
|
|
44844
|
+
"error" /* Error */
|
|
44858
44845
|
)
|
|
44859
44846
|
);
|
|
44860
44847
|
} else {
|
|
@@ -44866,7 +44853,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44866
44853
|
extensionId ?? "",
|
|
44867
44854
|
newExtensionConfig?.version ?? "",
|
|
44868
44855
|
installMetadata.type,
|
|
44869
|
-
|
|
44856
|
+
"error" /* Error */
|
|
44870
44857
|
)
|
|
44871
44858
|
);
|
|
44872
44859
|
}
|
|
@@ -44897,7 +44884,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44897
44884
|
extension.name,
|
|
44898
44885
|
hashValue(extension.name),
|
|
44899
44886
|
extension.id,
|
|
44900
|
-
|
|
44887
|
+
"success" /* Success */
|
|
44901
44888
|
)
|
|
44902
44889
|
);
|
|
44903
44890
|
}
|
|
@@ -45167,7 +45154,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
45167
45154
|
if (eventHooks) {
|
|
45168
45155
|
for (const definition of eventHooks) {
|
|
45169
45156
|
for (const hook of definition.hooks) {
|
|
45170
|
-
if (hook.type ===
|
|
45157
|
+
if (hook.type === "command" /* Command */) {
|
|
45171
45158
|
hook.env = { ...hook.env, ...hookEnv };
|
|
45172
45159
|
}
|
|
45173
45160
|
}
|
|
@@ -46199,7 +46186,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46199
46186
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46200
46187
|
name: `resources/read (${resource.serverName})`,
|
|
46201
46188
|
description: resource.uri,
|
|
46202
|
-
status:
|
|
46189
|
+
status: "success" /* Success */,
|
|
46203
46190
|
isClientInitiated: true,
|
|
46204
46191
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
46205
46192
|
confirmationDetails: void 0
|
|
@@ -46214,7 +46201,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46214
46201
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46215
46202
|
name: `resources/read (${resource.serverName})`,
|
|
46216
46203
|
description: resource.uri,
|
|
46217
|
-
status:
|
|
46204
|
+
status: "error" /* Error */,
|
|
46218
46205
|
isClientInitiated: true,
|
|
46219
46206
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
46220
46207
|
confirmationDetails: void 0
|
|
@@ -46239,7 +46226,7 @@ Content from @${result.uri}:
|
|
|
46239
46226
|
}
|
|
46240
46227
|
if (hasError) {
|
|
46241
46228
|
const firstError = displays.find(
|
|
46242
|
-
(d) => d.status ===
|
|
46229
|
+
(d) => d.status === "error" /* Error */
|
|
46243
46230
|
);
|
|
46244
46231
|
return {
|
|
46245
46232
|
parts: [],
|
|
@@ -46275,7 +46262,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
46275
46262
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46276
46263
|
name: readManyFilesTool.displayName,
|
|
46277
46264
|
description: invocation.getDescription(),
|
|
46278
|
-
status:
|
|
46265
|
+
status: "success" /* Success */,
|
|
46279
46266
|
isClientInitiated: true,
|
|
46280
46267
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
46281
46268
|
confirmationDetails: void 0
|
|
@@ -46322,7 +46309,7 @@ Content from @${displayPath}:
|
|
|
46322
46309
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46323
46310
|
name: readManyFilesTool.displayName,
|
|
46324
46311
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
46325
|
-
status:
|
|
46312
|
+
status: "error" /* Error */,
|
|
46326
46313
|
isClientInitiated: true,
|
|
46327
46314
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
46328
46315
|
confirmationDetails: void 0
|
|
@@ -49551,7 +49538,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
49551
49538
|
if (wasRaw) {
|
|
49552
49539
|
setRawMode?.(true);
|
|
49553
49540
|
}
|
|
49554
|
-
coreEvents.emit(
|
|
49541
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
49555
49542
|
}
|
|
49556
49543
|
}
|
|
49557
49544
|
|
|
@@ -52231,7 +52218,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
52231
52218
|
extension.name,
|
|
52232
52219
|
installMetadata
|
|
52233
52220
|
);
|
|
52234
|
-
if (status ===
|
|
52221
|
+
if (status === "invalid" /* INVALID */) {
|
|
52235
52222
|
throw new Error("Extension integrity cannot be verified");
|
|
52236
52223
|
}
|
|
52237
52224
|
} catch (e) {
|
|
@@ -54225,7 +54212,7 @@ var MultiFolderTrustDialog = ({
|
|
|
54225
54212
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
54226
54213
|
await trustedFolders.setValue(
|
|
54227
54214
|
expandedPath,
|
|
54228
|
-
|
|
54215
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
54229
54216
|
);
|
|
54230
54217
|
}
|
|
54231
54218
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -55004,7 +54991,7 @@ var authCommand = {
|
|
|
55004
54991
|
import process29 from "node:process";
|
|
55005
54992
|
|
|
55006
54993
|
// packages/cli/src/generated/git-commit.ts
|
|
55007
|
-
var GIT_COMMIT_INFO = "
|
|
54994
|
+
var GIT_COMMIT_INFO = "cefbd08f7";
|
|
55008
54995
|
|
|
55009
54996
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55010
54997
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -55518,7 +55505,7 @@ var clearCommand = {
|
|
|
55518
55505
|
const config = context.services.agentContext?.config;
|
|
55519
55506
|
const hookSystem = config?.getHookSystem();
|
|
55520
55507
|
if (hookSystem) {
|
|
55521
|
-
await hookSystem.fireSessionEndEvent(
|
|
55508
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
55522
55509
|
}
|
|
55523
55510
|
config?.injectionService.clear();
|
|
55524
55511
|
let newSessionId;
|
|
@@ -55535,7 +55522,7 @@ var clearCommand = {
|
|
|
55535
55522
|
}
|
|
55536
55523
|
let result;
|
|
55537
55524
|
if (hookSystem) {
|
|
55538
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
55525
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
55539
55526
|
}
|
|
55540
55527
|
await new Promise((resolve8) => setImmediate(resolve8));
|
|
55541
55528
|
if (config) {
|
|
@@ -58391,7 +58378,7 @@ var Footer = () => {
|
|
|
58391
58378
|
case "auth": {
|
|
58392
58379
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
58393
58380
|
if (!authType) break;
|
|
58394
|
-
const displayStr = authType ===
|
|
58381
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
58395
58382
|
addCol(
|
|
58396
58383
|
id,
|
|
58397
58384
|
header,
|
|
@@ -60138,12 +60125,12 @@ import path27 from "node:path";
|
|
|
60138
60125
|
function getIdeStatusMessage(ideClient) {
|
|
60139
60126
|
const connection = ideClient.getConnectionStatus();
|
|
60140
60127
|
switch (connection.status) {
|
|
60141
|
-
case
|
|
60128
|
+
case "connected" /* Connected */:
|
|
60142
60129
|
return {
|
|
60143
60130
|
messageType: "info",
|
|
60144
60131
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
60145
60132
|
};
|
|
60146
|
-
case
|
|
60133
|
+
case "connecting" /* Connecting */:
|
|
60147
60134
|
return {
|
|
60148
60135
|
messageType: "info",
|
|
60149
60136
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60184,7 +60171,7 @@ ${infoMessage}`;
|
|
|
60184
60171
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
60185
60172
|
const connection = ideClient.getConnectionStatus();
|
|
60186
60173
|
switch (connection.status) {
|
|
60187
|
-
case
|
|
60174
|
+
case "connected" /* Connected */: {
|
|
60188
60175
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
60189
60176
|
const context = ideContextStore.get();
|
|
60190
60177
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -60196,7 +60183,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
60196
60183
|
content
|
|
60197
60184
|
};
|
|
60198
60185
|
}
|
|
60199
|
-
case
|
|
60186
|
+
case "connecting" /* Connecting */:
|
|
60200
60187
|
return {
|
|
60201
60188
|
messageType: "info",
|
|
60202
60189
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60218,7 +60205,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
60218
60205
|
const ideClient = await IdeClient.getInstance();
|
|
60219
60206
|
if (value) {
|
|
60220
60207
|
await ideClient.connect(options);
|
|
60221
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
60208
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
60222
60209
|
} else {
|
|
60223
60210
|
await ideClient.disconnect();
|
|
60224
60211
|
}
|
|
@@ -60306,7 +60293,7 @@ var ideCommand = async () => {
|
|
|
60306
60293
|
logToConsole: false
|
|
60307
60294
|
}
|
|
60308
60295
|
);
|
|
60309
|
-
if (ideClient.getConnectionStatus().status ===
|
|
60296
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
60310
60297
|
break;
|
|
60311
60298
|
}
|
|
60312
60299
|
await new Promise((resolve8) => setTimeout(resolve8, 500));
|
|
@@ -60383,7 +60370,7 @@ var ideCommand = async () => {
|
|
|
60383
60370
|
}
|
|
60384
60371
|
};
|
|
60385
60372
|
const { status } = ideClient.getConnectionStatus();
|
|
60386
|
-
const isConnected = status ===
|
|
60373
|
+
const isConnected = status === "connected" /* Connected */;
|
|
60387
60374
|
if (isConnected) {
|
|
60388
60375
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
60389
60376
|
} else {
|
|
@@ -60483,13 +60470,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60483
60470
|
const displayListener = (message) => {
|
|
60484
60471
|
context.ui.addItem({ type: "info", text: message });
|
|
60485
60472
|
};
|
|
60486
|
-
coreEvents.on(
|
|
60473
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
60487
60474
|
try {
|
|
60488
60475
|
context.ui.addItem({
|
|
60489
60476
|
type: "info",
|
|
60490
60477
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
60491
60478
|
});
|
|
60492
|
-
const { MCPOAuthProvider } = await import("./
|
|
60479
|
+
const { MCPOAuthProvider } = await import("./core-O5TD6NYP.js");
|
|
60493
60480
|
let oauthConfig = server.oauth;
|
|
60494
60481
|
if (!oauthConfig) {
|
|
60495
60482
|
oauthConfig = { enabled: false };
|
|
@@ -60526,7 +60513,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
60526
60513
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
60527
60514
|
};
|
|
60528
60515
|
} finally {
|
|
60529
|
-
coreEvents.removeListener(
|
|
60516
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
60530
60517
|
}
|
|
60531
60518
|
},
|
|
60532
60519
|
completion: async (context, partialArg) => {
|
|
@@ -60572,10 +60559,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false,
|
|
|
60572
60559
|
}
|
|
60573
60560
|
const serverNames = Object.keys(mcpServers);
|
|
60574
60561
|
const connectingServers = serverNames.filter(
|
|
60575
|
-
(name) => getMCPServerStatus(name) ===
|
|
60562
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
60576
60563
|
);
|
|
60577
60564
|
const discoveryState = getMCPDiscoveryState();
|
|
60578
|
-
const discoveryInProgress = discoveryState ===
|
|
60565
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
60579
60566
|
const allTools = toolRegistry.getAllTools();
|
|
60580
60567
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
60581
60568
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -75979,7 +75966,7 @@ Return a JSON object with:
|
|
|
75979
75966
|
},
|
|
75980
75967
|
abortSignal: new AbortController().signal,
|
|
75981
75968
|
promptId: "triage-duplicates",
|
|
75982
|
-
role:
|
|
75969
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
75983
75970
|
});
|
|
75984
75971
|
const rec = response;
|
|
75985
75972
|
let canonical;
|
|
@@ -76813,7 +76800,7 @@ Return a JSON object with:
|
|
|
76813
76800
|
},
|
|
76814
76801
|
abortSignal: abortControllerRef.current.signal,
|
|
76815
76802
|
promptId: "triage-issues",
|
|
76816
|
-
role:
|
|
76803
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
76817
76804
|
});
|
|
76818
76805
|
return response;
|
|
76819
76806
|
},
|
|
@@ -77387,8 +77374,8 @@ var planCommand = {
|
|
|
77387
77374
|
return;
|
|
77388
77375
|
}
|
|
77389
77376
|
const previousApprovalMode = config.getApprovalMode();
|
|
77390
|
-
config.setApprovalMode(
|
|
77391
|
-
if (previousApprovalMode !==
|
|
77377
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
77378
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
77392
77379
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
77393
77380
|
}
|
|
77394
77381
|
if (context.invocation?.args) {
|
|
@@ -77447,10 +77434,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
77447
77434
|
rules.forEach((rule) => {
|
|
77448
77435
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
77449
77436
|
const modeSet = new Set(modes);
|
|
77450
|
-
if (modeSet.has(
|
|
77451
|
-
if (modeSet.has(
|
|
77452
|
-
if (modeSet.has(
|
|
77453
|
-
if (modeSet.has(
|
|
77437
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
77438
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
77439
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
77440
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
77454
77441
|
});
|
|
77455
77442
|
return result;
|
|
77456
77443
|
};
|
|
@@ -78799,7 +78786,7 @@ var upgradeCommand = {
|
|
|
78799
78786
|
action: async (context) => {
|
|
78800
78787
|
const config = context.services.agentContext?.config;
|
|
78801
78788
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
78802
|
-
if (authType !==
|
|
78789
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
78803
78790
|
return {
|
|
78804
78791
|
type: "message",
|
|
78805
78792
|
messageType: "error",
|
|
@@ -79001,7 +78988,7 @@ var BuiltinCommandLoader = class {
|
|
|
79001
78988
|
vimCommand,
|
|
79002
78989
|
setupGithubCommand,
|
|
79003
78990
|
terminalSetupCommand,
|
|
79004
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
78991
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
79005
78992
|
];
|
|
79006
78993
|
handle?.end();
|
|
79007
78994
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -79144,11 +79131,11 @@ var ShellProcessor = class {
|
|
|
79144
79131
|
},
|
|
79145
79132
|
void 0
|
|
79146
79133
|
);
|
|
79147
|
-
if (decision ===
|
|
79134
|
+
if (decision === "deny" /* DENY */) {
|
|
79148
79135
|
throw new Error(
|
|
79149
79136
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
79150
79137
|
);
|
|
79151
|
-
} else if (decision ===
|
|
79138
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
79152
79139
|
commandsToConfirm.add(command);
|
|
79153
79140
|
}
|
|
79154
79141
|
}
|
|
@@ -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-BSQN7W2F.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|