@google/gemini-cli 0.43.0-preview.1 → 0.43.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-LTSFEC7U.js → chunk-2PZUIVU3.js} +2 -2
- package/bundle/{chunk-EWAAFVBK.js → chunk-4IXP3BQP.js} +1 -1
- package/bundle/{chunk-N3MLU4IQ.js → chunk-4N6JQGX6.js} +7 -7
- package/bundle/{chunk-6YMGRLOQ.js → chunk-5LLZICYH.js} +1 -1
- package/bundle/{chunk-CKPZGEE3.js → chunk-6KWJMH6E.js} +2 -2
- package/bundle/{chunk-L4LBKMR6.js → chunk-6LSSATGP.js} +1 -1
- package/bundle/{chunk-QAQT56LH.js → chunk-6PXLKFEE.js} +3 -3
- package/bundle/{chunk-ICOPZSVB.js → chunk-AR2D7G5V.js} +3 -3
- package/bundle/{chunk-3BNJIKEP.js → chunk-DB4PQOJV.js} +2 -2
- package/bundle/{chunk-UBCHSKF2.js → chunk-DP6V2BFN.js} +7 -7
- package/bundle/{chunk-4ZT3EIBI.js → chunk-KL6UT6F7.js} +1 -1
- package/bundle/{chunk-VSTO23O2.js → chunk-KZP4B2KY.js} +1 -1
- package/bundle/{chunk-IF5BAOVJ.js → chunk-ORAERZ7C.js} +1 -1
- package/bundle/{chunk-NG2WIKH5.js → chunk-QH43L44B.js} +4 -4
- package/bundle/{chunk-PLEERNRJ.js → chunk-SP2PGMIB.js} +2 -2
- package/bundle/{chunk-DJCG6GWZ.js → chunk-SSOGRVCN.js} +2 -2
- package/bundle/{chunk-LTFEPQ67.js → chunk-TK52UAKX.js} +1 -1
- package/bundle/{chunk-4G3X2H3F.js → chunk-TUSXQIOT.js} +6 -9
- package/bundle/{chunk-MRVZNBXY.js → chunk-U6X4OPT5.js} +4 -4
- package/bundle/{chunk-S36EONMM.js → chunk-UH3BLMAQ.js} +1 -1
- package/bundle/{chunk-KILFUY3Y.js → chunk-VNPDB5AB.js} +1 -1
- package/bundle/{chunk-NDSJWRFE.js → chunk-W2MTI7FK.js} +13059 -6973
- package/bundle/{chunk-4SLX6GS6.js → chunk-YS4NB3TW.js} +54 -67
- package/bundle/{chunk-CZPVSLJF.js → chunk-ZWSMHWOL.js} +8 -9
- package/bundle/{cleanup-NMUMRIEF.js → cleanup-5M6XXPD5.js} +2 -2
- package/bundle/{cleanup-LMJA4J5S.js → cleanup-RDTCKYOC.js} +3 -3
- package/bundle/{cleanup-BMLCC7SO.js → cleanup-TI2NCMMY.js} +2 -2
- package/bundle/{core-WXTAU5UX.js → core-KK5NR7XJ.js} +1 -1
- package/bundle/{dist-MXL7ZG46.js → core-PKLJMNGJ.js} +2 -2
- package/bundle/{devtoolsService-6THA6GNX.js → devtoolsService-I65SE4OX.js} +2 -2
- package/bundle/{devtoolsService-2L5U47ZQ.js → devtoolsService-OFCX6SOA.js} +2 -2
- package/bundle/{devtoolsService-J2AC6YXM.js → devtoolsService-WA4GU73C.js} +4 -5
- package/bundle/{dist-DIIMIT2U.js → dist-BDJKFMK4.js} +1 -1
- package/bundle/{gemini-HYQU2RK2.js → gemini-H266Z57W.js} +188 -202
- package/bundle/{gemini-D32FDZXN.js → gemini-PBHAWQU6.js} +14 -14
- package/bundle/{gemini-DLZ2R4X7.js → gemini-YQATFAPB.js} +14 -14
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-NR7OUF3G.js → interactiveCli-2RXDSQZ7.js} +8 -8
- package/bundle/{interactiveCli-K7ETWJMN.js → interactiveCli-MHCNTGQB.js} +296 -315
- package/bundle/{interactiveCli-DHMPW4RS.js → interactiveCli-YR3FARLA.js} +8 -8
- package/bundle/{liteRtServerManager-PKRLUK2P.js → liteRtServerManager-HTBHSP3E.js} +4 -4
- package/bundle/{liteRtServerManager-L7C3D5RL.js → liteRtServerManager-WMZJWUGC.js} +4 -4
- package/bundle/{liteRtServerManager-UPCAT7Z2.js → liteRtServerManager-ZU6GBYTQ.js} +5 -5
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-52IJKUJI.js → oauth2-provider-7A7OEBRV.js} +1 -1
- package/bundle/{oauth2-provider-OPOTTZ5C.js → oauth2-provider-7AMBXQXB.js} +1 -1
- package/bundle/{oauth2-provider-WN4YIDA4.js → oauth2-provider-EUHAWOQQ.js} +73 -39
- package/bundle/{start-TMFPUYEL.js → start-D7BGLINR.js} +6 -6
- package/bundle/{start-6KIIUSAH.js → start-FNWNJC6F.js} +7 -7
- package/bundle/{start-7ZNSGJD6.js → start-ZXZSKJFC.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-ERQUIEOO.js +0 -512
- package/bundle/chunk-F7PEGIBA.js +0 -156
- package/bundle/chunk-UB4AWMZC.js +0 -391
- package/bundle/chunk-ULCEBJMK.js +0 -17248
- package/bundle/chunk-UUHMEKLA.js +0 -357199
- package/bundle/chunk-UW3H4T6A.js +0 -1571
- package/bundle/chunk-XKIM3BNI.js +0 -118
- package/bundle/chunk-YIHNW7CC.js +0 -81649
- package/bundle/cleanup-M7RSLDBR.js +0 -33
- package/bundle/devtoolsService-SRWIME2Q.js +0 -857
- package/bundle/dist-POIHCQVM.js +0 -2124
- package/bundle/gemini-JJG7ZGWB.js +0 -16356
- package/bundle/interactiveCli-X4AUP7T7.js +0 -34752
- package/bundle/liteRtServerManager-TEBDIGEN.js +0 -66
- package/bundle/oauth2-provider-TOAKXOL7.js +0 -237
- package/bundle/start-EPIILWLN.js +0 -19
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UH3BLMAQ.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -58,19 +58,17 @@ import {
|
|
|
58
58
|
stripUnsafeCharacters,
|
|
59
59
|
toCodePoints,
|
|
60
60
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-ORAERZ7C.js";
|
|
62
62
|
import {
|
|
63
63
|
isDevelopment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-6PXLKFEE.js";
|
|
65
65
|
import {
|
|
66
66
|
emptyIcon,
|
|
67
67
|
require_react
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-KZP4B2KY.js";
|
|
69
69
|
import {
|
|
70
70
|
AsyncFzf,
|
|
71
|
-
AuthType,
|
|
72
71
|
Config,
|
|
73
|
-
CoreToolCallStatus,
|
|
74
72
|
ExtensionDisableEvent,
|
|
75
73
|
ExtensionEnableEvent,
|
|
76
74
|
ExtensionInstallEvent,
|
|
@@ -79,27 +77,17 @@ import {
|
|
|
79
77
|
ExtensionUninstallEvent,
|
|
80
78
|
ExtensionUpdateEvent,
|
|
81
79
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
82
|
-
HookType,
|
|
83
|
-
IDEConnectionStatus,
|
|
84
80
|
INITIAL_HISTORY_LENGTH,
|
|
85
81
|
IdeClient,
|
|
86
82
|
IdeConnectionEvent,
|
|
87
|
-
IdeConnectionType,
|
|
88
|
-
IntegrityDataStatus,
|
|
89
83
|
KeychainTokenStorage,
|
|
90
|
-
LlmRole,
|
|
91
|
-
MCPDiscoveryState,
|
|
92
84
|
MCPOAuthTokenStorage,
|
|
93
|
-
MCPServerStatus,
|
|
94
85
|
ModelSlashCommandEvent,
|
|
95
86
|
ProjectIdRequiredError,
|
|
96
87
|
ReadManyFilesTool,
|
|
97
88
|
RewindEvent,
|
|
98
|
-
SessionEndReason,
|
|
99
|
-
SessionStartSource,
|
|
100
89
|
ShellExecutionService,
|
|
101
90
|
StartSessionEvent,
|
|
102
|
-
TrustLevel,
|
|
103
91
|
UPGRADE_URL_PAGE,
|
|
104
92
|
UserAccountManager,
|
|
105
93
|
ValidationRequiredError,
|
|
@@ -213,13 +201,12 @@ import {
|
|
|
213
201
|
stripAnsi,
|
|
214
202
|
tokenLimit,
|
|
215
203
|
uiTelemetryService
|
|
216
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-W2MTI7FK.js";
|
|
217
205
|
import {
|
|
218
206
|
ApprovalMode,
|
|
219
207
|
CoreEvent,
|
|
220
208
|
DiscoveredMCPTool,
|
|
221
209
|
GEMINI_DIR,
|
|
222
|
-
PolicyDecision,
|
|
223
210
|
REFERENCE_CONTENT_END,
|
|
224
211
|
REFERENCE_CONTENT_START,
|
|
225
212
|
Storage,
|
|
@@ -240,7 +227,7 @@ import {
|
|
|
240
227
|
shortenPath,
|
|
241
228
|
tildeifyPath,
|
|
242
229
|
unescapePath
|
|
243
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-N6QYTC2T.js";
|
|
244
231
|
import {
|
|
245
232
|
require_src
|
|
246
233
|
} from "./chunk-RJTRUG2J.js";
|
|
@@ -39457,7 +39444,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
39457
39444
|
function useIdeTrustListener() {
|
|
39458
39445
|
const settings = useSettings();
|
|
39459
39446
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
39460
|
-
|
|
39447
|
+
"disconnected" /* Disconnected */
|
|
39461
39448
|
);
|
|
39462
39449
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
39463
39450
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -39487,7 +39474,7 @@ function useIdeTrustListener() {
|
|
|
39487
39474
|
};
|
|
39488
39475
|
}, []);
|
|
39489
39476
|
const getSnapshot = () => {
|
|
39490
|
-
if (connectionStatus !==
|
|
39477
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
39491
39478
|
return void 0;
|
|
39492
39479
|
}
|
|
39493
39480
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -40192,7 +40179,7 @@ async function initializeApp(config, settings) {
|
|
|
40192
40179
|
await ideClient.connect();
|
|
40193
40180
|
logIdeConnection(
|
|
40194
40181
|
config,
|
|
40195
|
-
new IdeConnectionEvent(
|
|
40182
|
+
new IdeConnectionEvent("start" /* START */)
|
|
40196
40183
|
);
|
|
40197
40184
|
}).catch((e) => {
|
|
40198
40185
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -40210,16 +40197,16 @@ async function initializeApp(config, settings) {
|
|
|
40210
40197
|
// packages/cli/src/config/auth.ts
|
|
40211
40198
|
function validateAuthMethod(authMethod) {
|
|
40212
40199
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
40213
|
-
if (authMethod ===
|
|
40200
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
40214
40201
|
return null;
|
|
40215
40202
|
}
|
|
40216
|
-
if (authMethod ===
|
|
40203
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
40217
40204
|
if (!process.env["GEMINI_API_KEY"]) {
|
|
40218
40205
|
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)!";
|
|
40219
40206
|
}
|
|
40220
40207
|
return null;
|
|
40221
40208
|
}
|
|
40222
|
-
if (authMethod ===
|
|
40209
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
40223
40210
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
40224
40211
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
40225
40212
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -44639,7 +44626,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
44639
44626
|
const trustedFolders = loadTrustedFolders();
|
|
44640
44627
|
await trustedFolders.setValue(
|
|
44641
44628
|
this.workspaceDir,
|
|
44642
|
-
|
|
44629
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
44643
44630
|
);
|
|
44644
44631
|
} else {
|
|
44645
44632
|
throw new Error(
|
|
@@ -44825,7 +44812,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44825
44812
|
newExtensionConfig.version,
|
|
44826
44813
|
previousExtensionConfig.version,
|
|
44827
44814
|
installMetadata.type,
|
|
44828
|
-
|
|
44815
|
+
"success" /* Success */
|
|
44829
44816
|
)
|
|
44830
44817
|
);
|
|
44831
44818
|
if (newExtensionName !== previousName) {
|
|
@@ -44848,7 +44835,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44848
44835
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
44849
44836
|
newExtensionConfig.version,
|
|
44850
44837
|
installMetadata.type,
|
|
44851
|
-
|
|
44838
|
+
"success" /* Success */
|
|
44852
44839
|
)
|
|
44853
44840
|
);
|
|
44854
44841
|
await this.enableExtension(
|
|
@@ -44881,7 +44868,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44881
44868
|
newExtensionConfig?.version ?? "",
|
|
44882
44869
|
previousExtensionConfig.version,
|
|
44883
44870
|
installMetadata.type,
|
|
44884
|
-
|
|
44871
|
+
"error" /* Error */
|
|
44885
44872
|
)
|
|
44886
44873
|
);
|
|
44887
44874
|
} else {
|
|
@@ -44893,7 +44880,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44893
44880
|
extensionId ?? "",
|
|
44894
44881
|
newExtensionConfig?.version ?? "",
|
|
44895
44882
|
installMetadata.type,
|
|
44896
|
-
|
|
44883
|
+
"error" /* Error */
|
|
44897
44884
|
)
|
|
44898
44885
|
);
|
|
44899
44886
|
}
|
|
@@ -44924,7 +44911,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44924
44911
|
extension.name,
|
|
44925
44912
|
hashValue(extension.name),
|
|
44926
44913
|
extension.id,
|
|
44927
|
-
|
|
44914
|
+
"success" /* Success */
|
|
44928
44915
|
)
|
|
44929
44916
|
);
|
|
44930
44917
|
}
|
|
@@ -45194,7 +45181,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
45194
45181
|
if (eventHooks) {
|
|
45195
45182
|
for (const definition of eventHooks) {
|
|
45196
45183
|
for (const hook of definition.hooks) {
|
|
45197
|
-
if (hook.type ===
|
|
45184
|
+
if (hook.type === "command" /* Command */) {
|
|
45198
45185
|
hook.env = { ...hook.env, ...hookEnv };
|
|
45199
45186
|
}
|
|
45200
45187
|
}
|
|
@@ -46226,7 +46213,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46226
46213
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46227
46214
|
name: `resources/read (${resource.serverName})`,
|
|
46228
46215
|
description: resource.uri,
|
|
46229
|
-
status:
|
|
46216
|
+
status: "success" /* Success */,
|
|
46230
46217
|
isClientInitiated: true,
|
|
46231
46218
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
46232
46219
|
confirmationDetails: void 0
|
|
@@ -46241,7 +46228,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46241
46228
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46242
46229
|
name: `resources/read (${resource.serverName})`,
|
|
46243
46230
|
description: resource.uri,
|
|
46244
|
-
status:
|
|
46231
|
+
status: "error" /* Error */,
|
|
46245
46232
|
isClientInitiated: true,
|
|
46246
46233
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
46247
46234
|
confirmationDetails: void 0
|
|
@@ -46266,7 +46253,7 @@ Content from @${result.uri}:
|
|
|
46266
46253
|
}
|
|
46267
46254
|
if (hasError) {
|
|
46268
46255
|
const firstError = displays.find(
|
|
46269
|
-
(d) => d.status ===
|
|
46256
|
+
(d) => d.status === "error" /* Error */
|
|
46270
46257
|
);
|
|
46271
46258
|
return {
|
|
46272
46259
|
parts: [],
|
|
@@ -46302,7 +46289,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
46302
46289
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46303
46290
|
name: readManyFilesTool.displayName,
|
|
46304
46291
|
description: invocation.getDescription(),
|
|
46305
|
-
status:
|
|
46292
|
+
status: "success" /* Success */,
|
|
46306
46293
|
isClientInitiated: true,
|
|
46307
46294
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
46308
46295
|
confirmationDetails: void 0
|
|
@@ -46349,7 +46336,7 @@ Content from @${displayPath}:
|
|
|
46349
46336
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46350
46337
|
name: readManyFilesTool.displayName,
|
|
46351
46338
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
46352
|
-
status:
|
|
46339
|
+
status: "error" /* Error */,
|
|
46353
46340
|
isClientInitiated: true,
|
|
46354
46341
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
46355
46342
|
confirmationDetails: void 0
|
|
@@ -49578,7 +49565,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
49578
49565
|
if (wasRaw) {
|
|
49579
49566
|
setRawMode?.(true);
|
|
49580
49567
|
}
|
|
49581
|
-
coreEvents.emit(
|
|
49568
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
49582
49569
|
}
|
|
49583
49570
|
}
|
|
49584
49571
|
|
|
@@ -52268,7 +52255,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
52268
52255
|
extension.name,
|
|
52269
52256
|
installMetadata
|
|
52270
52257
|
);
|
|
52271
|
-
if (status ===
|
|
52258
|
+
if (status === "invalid" /* INVALID */) {
|
|
52272
52259
|
throw new Error("Extension integrity cannot be verified");
|
|
52273
52260
|
}
|
|
52274
52261
|
} catch (e) {
|
|
@@ -53686,11 +53673,11 @@ var ShellProcessor = class {
|
|
|
53686
53673
|
},
|
|
53687
53674
|
void 0
|
|
53688
53675
|
);
|
|
53689
|
-
if (decision ===
|
|
53676
|
+
if (decision === "deny" /* DENY */) {
|
|
53690
53677
|
throw new Error(
|
|
53691
53678
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
53692
53679
|
);
|
|
53693
|
-
} else if (decision ===
|
|
53680
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
53694
53681
|
commandsToConfirm.add(command);
|
|
53695
53682
|
}
|
|
53696
53683
|
}
|
|
@@ -54808,7 +54795,7 @@ var MultiFolderTrustDialog = ({
|
|
|
54808
54795
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
54809
54796
|
await trustedFolders.setValue(
|
|
54810
54797
|
expandedPath,
|
|
54811
|
-
|
|
54798
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
54812
54799
|
);
|
|
54813
54800
|
}
|
|
54814
54801
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -57102,7 +57089,7 @@ var clearCommand = {
|
|
|
57102
57089
|
const config = context.services.agentContext?.config;
|
|
57103
57090
|
const hookSystem = config?.getHookSystem();
|
|
57104
57091
|
if (hookSystem) {
|
|
57105
|
-
await hookSystem.fireSessionEndEvent(
|
|
57092
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
57106
57093
|
}
|
|
57107
57094
|
config?.injectionService.clear();
|
|
57108
57095
|
let newSessionId;
|
|
@@ -57119,7 +57106,7 @@ var clearCommand = {
|
|
|
57119
57106
|
}
|
|
57120
57107
|
let result;
|
|
57121
57108
|
if (hookSystem) {
|
|
57122
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
57109
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
57123
57110
|
}
|
|
57124
57111
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
57125
57112
|
if (config) {
|
|
@@ -60118,7 +60105,7 @@ var Footer = () => {
|
|
|
60118
60105
|
case "auth": {
|
|
60119
60106
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
60120
60107
|
if (!authType) break;
|
|
60121
|
-
const displayStr = authType ===
|
|
60108
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
60122
60109
|
addCol(
|
|
60123
60110
|
id,
|
|
60124
60111
|
header,
|
|
@@ -61866,12 +61853,12 @@ import path29 from "node:path";
|
|
|
61866
61853
|
function getIdeStatusMessage(ideClient) {
|
|
61867
61854
|
const connection = ideClient.getConnectionStatus();
|
|
61868
61855
|
switch (connection.status) {
|
|
61869
|
-
case
|
|
61856
|
+
case "connected" /* Connected */:
|
|
61870
61857
|
return {
|
|
61871
61858
|
messageType: "info",
|
|
61872
61859
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
61873
61860
|
};
|
|
61874
|
-
case
|
|
61861
|
+
case "connecting" /* Connecting */:
|
|
61875
61862
|
return {
|
|
61876
61863
|
messageType: "info",
|
|
61877
61864
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -61912,7 +61899,7 @@ ${infoMessage}`;
|
|
|
61912
61899
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
61913
61900
|
const connection = ideClient.getConnectionStatus();
|
|
61914
61901
|
switch (connection.status) {
|
|
61915
|
-
case
|
|
61902
|
+
case "connected" /* Connected */: {
|
|
61916
61903
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
61917
61904
|
const context = ideContextStore.get();
|
|
61918
61905
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -61924,7 +61911,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
61924
61911
|
content
|
|
61925
61912
|
};
|
|
61926
61913
|
}
|
|
61927
|
-
case
|
|
61914
|
+
case "connecting" /* Connecting */:
|
|
61928
61915
|
return {
|
|
61929
61916
|
messageType: "info",
|
|
61930
61917
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -61946,7 +61933,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
61946
61933
|
const ideClient = await IdeClient.getInstance();
|
|
61947
61934
|
if (value) {
|
|
61948
61935
|
await ideClient.connect(options);
|
|
61949
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
61936
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
61950
61937
|
} else {
|
|
61951
61938
|
await ideClient.disconnect();
|
|
61952
61939
|
}
|
|
@@ -62034,7 +62021,7 @@ var ideCommand = async () => {
|
|
|
62034
62021
|
logToConsole: false
|
|
62035
62022
|
}
|
|
62036
62023
|
);
|
|
62037
|
-
if (ideClient.getConnectionStatus().status ===
|
|
62024
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
62038
62025
|
break;
|
|
62039
62026
|
}
|
|
62040
62027
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -62111,7 +62098,7 @@ var ideCommand = async () => {
|
|
|
62111
62098
|
}
|
|
62112
62099
|
};
|
|
62113
62100
|
const { status } = ideClient.getConnectionStatus();
|
|
62114
|
-
const isConnected = status ===
|
|
62101
|
+
const isConnected = status === "connected" /* Connected */;
|
|
62115
62102
|
if (isConnected) {
|
|
62116
62103
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
62117
62104
|
} else {
|
|
@@ -62211,13 +62198,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62211
62198
|
const displayListener = (message) => {
|
|
62212
62199
|
context.ui.addItem({ type: "info", text: message });
|
|
62213
62200
|
};
|
|
62214
|
-
coreEvents.on(
|
|
62201
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
62215
62202
|
try {
|
|
62216
62203
|
context.ui.addItem({
|
|
62217
62204
|
type: "info",
|
|
62218
62205
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
62219
62206
|
});
|
|
62220
|
-
const { MCPOAuthProvider } = await import("./
|
|
62207
|
+
const { MCPOAuthProvider } = await import("./core-KK5NR7XJ.js");
|
|
62221
62208
|
let oauthConfig = server.oauth;
|
|
62222
62209
|
if (!oauthConfig) {
|
|
62223
62210
|
oauthConfig = { enabled: false };
|
|
@@ -62254,7 +62241,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62254
62241
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
62255
62242
|
};
|
|
62256
62243
|
} finally {
|
|
62257
|
-
coreEvents.removeListener(
|
|
62244
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
62258
62245
|
}
|
|
62259
62246
|
},
|
|
62260
62247
|
completion: async (context, partialArg) => {
|
|
@@ -62300,10 +62287,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
62300
62287
|
}
|
|
62301
62288
|
const serverNames = Object.keys(mcpServers);
|
|
62302
62289
|
const connectingServers = serverNames.filter(
|
|
62303
|
-
(name) => getMCPServerStatus(name) ===
|
|
62290
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
62304
62291
|
);
|
|
62305
62292
|
const discoveryState = getMCPDiscoveryState();
|
|
62306
|
-
const discoveryInProgress = discoveryState ===
|
|
62293
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
62307
62294
|
const allTools = toolRegistry.getAllTools();
|
|
62308
62295
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
62309
62296
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -78083,7 +78070,7 @@ Return a JSON object with:
|
|
|
78083
78070
|
},
|
|
78084
78071
|
abortSignal: new AbortController().signal,
|
|
78085
78072
|
promptId: "triage-duplicates",
|
|
78086
|
-
role:
|
|
78073
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
78087
78074
|
});
|
|
78088
78075
|
const rec = response;
|
|
78089
78076
|
let canonical;
|
|
@@ -78917,7 +78904,7 @@ Return a JSON object with:
|
|
|
78917
78904
|
},
|
|
78918
78905
|
abortSignal: abortControllerRef.current.signal,
|
|
78919
78906
|
promptId: "triage-issues",
|
|
78920
|
-
role:
|
|
78907
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
78921
78908
|
});
|
|
78922
78909
|
return response;
|
|
78923
78910
|
},
|
|
@@ -79491,8 +79478,8 @@ var planCommand = {
|
|
|
79491
79478
|
return;
|
|
79492
79479
|
}
|
|
79493
79480
|
const previousApprovalMode = config.getApprovalMode();
|
|
79494
|
-
config.setApprovalMode(
|
|
79495
|
-
if (previousApprovalMode !==
|
|
79481
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
79482
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
79496
79483
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
79497
79484
|
}
|
|
79498
79485
|
if (context.invocation?.args) {
|
|
@@ -79551,10 +79538,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
79551
79538
|
rules.forEach((rule) => {
|
|
79552
79539
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
79553
79540
|
const modeSet = new Set(modes);
|
|
79554
|
-
if (modeSet.has(
|
|
79555
|
-
if (modeSet.has(
|
|
79556
|
-
if (modeSet.has(
|
|
79557
|
-
if (modeSet.has(
|
|
79541
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
79542
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
79543
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
79544
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
79558
79545
|
});
|
|
79559
79546
|
return result;
|
|
79560
79547
|
};
|
|
@@ -80906,7 +80893,7 @@ var upgradeCommand = {
|
|
|
80906
80893
|
action: async (context) => {
|
|
80907
80894
|
const config = context.services.agentContext?.config;
|
|
80908
80895
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
80909
|
-
if (authType !==
|
|
80896
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
80910
80897
|
return {
|
|
80911
80898
|
type: "message",
|
|
80912
80899
|
messageType: "error",
|
|
@@ -81135,7 +81122,7 @@ var BuiltinCommandLoader = class {
|
|
|
81135
81122
|
setupGithubCommand,
|
|
81136
81123
|
terminalSetupCommand,
|
|
81137
81124
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
81138
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
81125
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
81139
81126
|
];
|
|
81140
81127
|
handle?.end();
|
|
81141
81128
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -1,8 +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
|
-
CoreToolCallStatus,
|
|
4
3
|
checkExhaustive
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QH43L44B.js";
|
|
6
5
|
import {
|
|
7
6
|
__commonJS,
|
|
8
7
|
__toESM
|
|
@@ -465,19 +464,19 @@ var require_react = __commonJS({
|
|
|
465
464
|
var import_react = __toESM(require_react(), 1);
|
|
466
465
|
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
467
466
|
switch (coreStatus) {
|
|
468
|
-
case
|
|
467
|
+
case "validating" /* Validating */:
|
|
469
468
|
return "Pending" /* Pending */;
|
|
470
|
-
case
|
|
469
|
+
case "awaiting_approval" /* AwaitingApproval */:
|
|
471
470
|
return "Confirming" /* Confirming */;
|
|
472
|
-
case
|
|
471
|
+
case "executing" /* Executing */:
|
|
473
472
|
return "Executing" /* Executing */;
|
|
474
|
-
case
|
|
473
|
+
case "success" /* Success */:
|
|
475
474
|
return "Success" /* Success */;
|
|
476
|
-
case
|
|
475
|
+
case "cancelled" /* Cancelled */:
|
|
477
476
|
return "Canceled" /* Canceled */;
|
|
478
|
-
case
|
|
477
|
+
case "error" /* Error */:
|
|
479
478
|
return "Error" /* Error */;
|
|
480
|
-
case
|
|
479
|
+
case "scheduled" /* Scheduled */:
|
|
481
480
|
return "Pending" /* Pending */;
|
|
482
481
|
default:
|
|
483
482
|
return checkExhaustive(coreStatus);
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-KL6UT6F7.js";
|
|
15
|
+
import "./chunk-W2MTI7FK.js";
|
|
16
16
|
import "./chunk-N6QYTC2T.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SP2PGMIB.js";
|
|
15
|
+
import "./chunk-QH43L44B.js";
|
|
16
|
+
import "./chunk-N6QYTC2T.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
19
19
|
import "./chunk-IUUIT4SU.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-5LLZICYH.js";
|
|
15
|
+
import "./chunk-U6X4OPT5.js";
|
|
16
16
|
import "./chunk-UJ26GAE5.js";
|
|
17
17
|
import "./chunk-664ZODQF.js";
|
|
18
18
|
import "./chunk-RJTRUG2J.js";
|
|
@@ -800,7 +800,7 @@ import {
|
|
|
800
800
|
wrapInAccountChooser,
|
|
801
801
|
writeToStderr,
|
|
802
802
|
writeToStdout
|
|
803
|
-
} from "./chunk-
|
|
803
|
+
} from "./chunk-QH43L44B.js";
|
|
804
804
|
import {
|
|
805
805
|
ACTIVATE_SKILL_TOOL_NAME,
|
|
806
806
|
AGENT_TOOL_NAME,
|
|
@@ -1056,7 +1056,7 @@ import {
|
|
|
1056
1056
|
toFriendlyError,
|
|
1057
1057
|
toPathKey,
|
|
1058
1058
|
unescapePath
|
|
1059
|
-
} from "./chunk-
|
|
1059
|
+
} from "./chunk-N6QYTC2T.js";
|
|
1060
1060
|
import "./chunk-664ZODQF.js";
|
|
1061
1061
|
import "./chunk-RJTRUG2J.js";
|
|
1062
1062
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-U6X4OPT5.js";
|
|
3
3
|
import {
|
|
4
4
|
CoreEvent,
|
|
5
5
|
coreEvents,
|
|
@@ -823,7 +823,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
825
|
try {
|
|
826
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-
|
|
826
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-BDJKFMK4.js");
|
|
827
827
|
const url = await startDevToolsServer(config);
|
|
828
828
|
if (shouldLaunchBrowser()) {
|
|
829
829
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-W2MTI7FK.js";
|
|
3
3
|
import {
|
|
4
4
|
coreEvents,
|
|
5
5
|
debugLogger
|
|
@@ -822,7 +822,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
try {
|
|
825
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-
|
|
825
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-KK5NR7XJ.js");
|
|
826
826
|
const url = await startDevToolsServer(config);
|
|
827
827
|
if (shouldLaunchBrowser()) {
|
|
828
828
|
try {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-QH43L44B.js";
|
|
3
3
|
import {
|
|
4
|
-
CoreEvent,
|
|
5
4
|
coreEvents,
|
|
6
5
|
debugLogger
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N6QYTC2T.js";
|
|
8
7
|
import {
|
|
9
8
|
wrapper_default
|
|
10
9
|
} from "./chunk-664ZODQF.js";
|
|
@@ -672,7 +671,7 @@ var bridgeAttached = false;
|
|
|
672
671
|
function bridgeCoreEvents(capture) {
|
|
673
672
|
if (bridgeAttached) return;
|
|
674
673
|
bridgeAttached = true;
|
|
675
|
-
coreEvents.on(
|
|
674
|
+
coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
|
|
676
675
|
capture.logConsole(payload);
|
|
677
676
|
});
|
|
678
677
|
}
|
|
@@ -823,7 +822,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
823
822
|
return;
|
|
824
823
|
}
|
|
825
824
|
try {
|
|
826
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./
|
|
825
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-PKLJMNGJ.js");
|
|
827
826
|
const url = await startDevToolsServer(config);
|
|
828
827
|
if (shouldLaunchBrowser()) {
|
|
829
828
|
try {
|