@google/gemini-cli 0.45.0-preview.1 → 0.45.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-6WWGBNKT.js → chunk-2ARYG3KE.js} +1 -1
- package/bundle/{chunk-2ZH72RHY.js → chunk-3TWZMAJU.js} +3 -3
- package/bundle/{chunk-BO72FGK2.js → chunk-4EBMYFID.js} +7 -7
- package/bundle/{chunk-K43EAKOP.js → chunk-4KOU3QNT.js} +5 -8
- package/bundle/{chunk-BLUAEAZN.js → chunk-53SRWMUU.js} +1 -1
- package/bundle/{chunk-5YTIYFJO.js → chunk-6T7N6JF2.js} +4 -4
- package/bundle/{chunk-OWSYSTWM.js → chunk-EORX7LYI.js} +1 -1
- package/bundle/{chunk-IGJG7DNZ.js → chunk-EUYIPFPA.js} +1 -1
- package/bundle/{chunk-3NDAYKF4.js → chunk-GVEZJIV3.js} +1 -1
- package/bundle/{chunk-E3KBY4EQ.js → chunk-HFVEWB6N.js} +1 -1
- package/bundle/{chunk-CJTRYZPP.js → chunk-IL7J46PP.js} +3 -3
- package/bundle/{chunk-4KX3ETW3.js → chunk-JLFE3KRS.js} +1 -1
- package/bundle/{chunk-JXVK53RJ.js → chunk-K6WTIGVC.js} +2 -2
- package/bundle/{chunk-JWWA32XO.js → chunk-KSNTXH4E.js} +54 -67
- package/bundle/{chunk-R52453KY.js → chunk-N6QPQL7E.js} +4 -4
- package/bundle/{chunk-Y6SLZFPD.js → chunk-PNU4GACG.js} +2 -2
- package/bundle/{chunk-FEY3T6LA.js → chunk-PXEK5ENZ.js} +8 -9
- package/bundle/{chunk-5BX5PJIE.js → chunk-SG46YSQ3.js} +7 -7
- package/bundle/{chunk-S6AQSJNU.js → chunk-THZMPVCN.js} +1 -1
- package/bundle/{chunk-WTRP3GGZ.js → chunk-TWSSMLUS.js} +1 -1
- package/bundle/{chunk-HA5VES5S.js → chunk-VL3FKVC7.js} +3 -3
- package/bundle/{chunk-DDJWQSDN.js → chunk-XV2YFH7B.js} +14033 -7525
- package/bundle/{chunk-NB2NOE4L.js → chunk-YI3KORH5.js} +2 -2
- package/bundle/{chunk-CJHCK2YW.js → chunk-Z5F25543.js} +1 -1
- package/bundle/{cleanup-2FHZMQ3Z.js → cleanup-3SMSXJJA.js} +2 -2
- package/bundle/{cleanup-F7XRM3DT.js → cleanup-FNQ3LEWG.js} +2 -2
- package/bundle/{cleanup-OZH3SJVM.js → cleanup-I56KHTTC.js} +2 -2
- package/bundle/{core-B47ZXN3Y.js → core-AQUUQTX2.js} +1 -1
- package/bundle/{dist-C6L3MGQS.js → core-KGXBOJTX.js} +1 -1
- package/bundle/{devtoolsService-L7PYKOHR.js → devtoolsService-EW3B2Y63.js} +2 -2
- package/bundle/{devtoolsService-XYSZCMQM.js → devtoolsService-F7PHNBEQ.js} +2 -2
- package/bundle/{devtoolsService-OYQJHPEW.js → devtoolsService-VFEFRDYG.js} +3 -4
- package/bundle/{dist-MOEHPHUN.js → dist-2G5KTD32.js} +1 -1
- package/bundle/{gemini-LT5MWLZQ.js → gemini-4KS2EZX6.js} +14 -14
- package/bundle/{gemini-CHS2YNJG.js → gemini-JMMBFICD.js} +196 -212
- package/bundle/{gemini-2XSNIT2N.js → gemini-ORQHD633.js} +14 -14
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-UUI7OUZK.js → interactiveCli-ESB66RW7.js} +8 -8
- package/bundle/{interactiveCli-2YFAMDR5.js → interactiveCli-XUZZOZXX.js} +8 -8
- package/bundle/{interactiveCli-6EFCVZP7.js → interactiveCli-ZJXV4DW7.js} +295 -314
- package/bundle/{liteRtServerManager-2VKZTPMY.js → liteRtServerManager-DORIWEMR.js} +4 -4
- package/bundle/{liteRtServerManager-4PZ3X7SS.js → liteRtServerManager-HELKQKOZ.js} +4 -4
- package/bundle/{liteRtServerManager-GH6VHWTU.js → liteRtServerManager-RNNHEQJI.js} +4 -4
- package/bundle/{oauth2-provider-BDX6V2YX.js → oauth2-provider-2IJNOFOO.js} +1 -1
- package/bundle/{oauth2-provider-4UIWNIX3.js → oauth2-provider-7N4OFPTL.js} +1 -1
- package/bundle/{oauth2-provider-N2ZY2DXQ.js → oauth2-provider-YYLBPESU.js} +72 -38
- package/bundle/{start-3LEQZELI.js → start-66KF6MVV.js} +6 -6
- package/bundle/{start-FH2E2VQ2.js → start-IGG6LDST.js} +6 -6
- package/bundle/{start-FPEO7KCZ.js → start-R7DTCFCN.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-565MWDPP.js +0 -394439
- package/bundle/chunk-HVWNKZSB.js +0 -154
- package/bundle/chunk-HZCAEM2F.js +0 -398
- package/bundle/chunk-NVJOR76X.js +0 -1571
- package/bundle/chunk-NYWYNF2Z.js +0 -81685
- package/bundle/chunk-OQLEYMM2.js +0 -512
- package/bundle/chunk-SKDT4PWC.js +0 -118
- package/bundle/chunk-TCAVPMJX.js +0 -17320
- package/bundle/cleanup-ZO5CVKGH.js +0 -32
- package/bundle/devtoolsService-SGV7MSUA.js +0 -856
- package/bundle/dist-WLKMTHZQ.js +0 -2134
- package/bundle/gemini-CQDPCFEE.js +0 -16406
- package/bundle/interactiveCli-HA3BASZN.js +0 -34726
- package/bundle/liteRtServerManager-OMSM6SJU.js +0 -65
- package/bundle/oauth2-provider-TRRJCE2P.js +0 -235
- package/bundle/start-J7G6YXDJ.js +0 -18
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GVEZJIV3.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -58,22 +58,20 @@ import {
|
|
|
58
58
|
stripUnsafeCharacters,
|
|
59
59
|
toCodePoints,
|
|
60
60
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2ARYG3KE.js";
|
|
62
62
|
import {
|
|
63
63
|
isDevelopment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YI3KORH5.js";
|
|
65
65
|
import {
|
|
66
66
|
emptyIcon,
|
|
67
67
|
require_react
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HFVEWB6N.js";
|
|
69
69
|
import {
|
|
70
70
|
ALL_EDITORS,
|
|
71
71
|
ApprovalMode,
|
|
72
72
|
AsyncFzf,
|
|
73
|
-
AuthType,
|
|
74
73
|
Config,
|
|
75
74
|
CoreEvent,
|
|
76
|
-
CoreToolCallStatus,
|
|
77
75
|
DiscoveredMCPTool,
|
|
78
76
|
ExtensionDisableEvent,
|
|
79
77
|
ExtensionEnableEvent,
|
|
@@ -84,31 +82,20 @@ import {
|
|
|
84
82
|
ExtensionUpdateEvent,
|
|
85
83
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
86
84
|
GEMINI_DIR,
|
|
87
|
-
HookType,
|
|
88
|
-
IDEConnectionStatus,
|
|
89
85
|
INITIAL_HISTORY_LENGTH,
|
|
90
86
|
IdeClient,
|
|
91
87
|
IdeConnectionEvent,
|
|
92
|
-
IdeConnectionType,
|
|
93
|
-
IntegrityDataStatus,
|
|
94
88
|
KeychainTokenStorage,
|
|
95
|
-
LlmRole,
|
|
96
|
-
MCPDiscoveryState,
|
|
97
89
|
MCPOAuthTokenStorage,
|
|
98
|
-
MCPServerStatus,
|
|
99
90
|
ModelSlashCommandEvent,
|
|
100
|
-
PolicyDecision,
|
|
101
91
|
ProjectIdRequiredError,
|
|
102
92
|
REFERENCE_CONTENT_END,
|
|
103
93
|
REFERENCE_CONTENT_START,
|
|
104
94
|
ReadManyFilesTool,
|
|
105
95
|
RewindEvent,
|
|
106
|
-
SessionEndReason,
|
|
107
|
-
SessionStartSource,
|
|
108
96
|
ShellExecutionService,
|
|
109
97
|
StartSessionEvent,
|
|
110
98
|
Storage,
|
|
111
|
-
TrustLevel,
|
|
112
99
|
UPGRADE_URL_PAGE,
|
|
113
100
|
UserAccountManager,
|
|
114
101
|
ValidationRequiredError,
|
|
@@ -243,7 +230,7 @@ import {
|
|
|
243
230
|
tokenLimit,
|
|
244
231
|
uiTelemetryService,
|
|
245
232
|
unescapePath
|
|
246
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-N6QPQL7E.js";
|
|
247
234
|
import {
|
|
248
235
|
require_src
|
|
249
236
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -39460,7 +39447,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
39460
39447
|
function useIdeTrustListener() {
|
|
39461
39448
|
const settings = useSettings();
|
|
39462
39449
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
39463
|
-
|
|
39450
|
+
"disconnected" /* Disconnected */
|
|
39464
39451
|
);
|
|
39465
39452
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
39466
39453
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -39490,7 +39477,7 @@ function useIdeTrustListener() {
|
|
|
39490
39477
|
};
|
|
39491
39478
|
}, []);
|
|
39492
39479
|
const getSnapshot = () => {
|
|
39493
|
-
if (connectionStatus !==
|
|
39480
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
39494
39481
|
return void 0;
|
|
39495
39482
|
}
|
|
39496
39483
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -40195,7 +40182,7 @@ async function initializeApp(config, settings) {
|
|
|
40195
40182
|
await ideClient.connect();
|
|
40196
40183
|
logIdeConnection(
|
|
40197
40184
|
config,
|
|
40198
|
-
new IdeConnectionEvent(
|
|
40185
|
+
new IdeConnectionEvent("start" /* START */)
|
|
40199
40186
|
);
|
|
40200
40187
|
}).catch((e) => {
|
|
40201
40188
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -40213,17 +40200,17 @@ async function initializeApp(config, settings) {
|
|
|
40213
40200
|
// packages/cli/src/config/auth.ts
|
|
40214
40201
|
async function validateAuthMethod(authMethod) {
|
|
40215
40202
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
40216
|
-
if (authMethod ===
|
|
40203
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
40217
40204
|
return null;
|
|
40218
40205
|
}
|
|
40219
|
-
if (authMethod ===
|
|
40206
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
40220
40207
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
40221
40208
|
if (!key) {
|
|
40222
40209
|
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)!";
|
|
40223
40210
|
}
|
|
40224
40211
|
return null;
|
|
40225
40212
|
}
|
|
40226
|
-
if (authMethod ===
|
|
40213
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
40227
40214
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
40228
40215
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
40229
40216
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -44650,7 +44637,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
44650
44637
|
const trustedFolders = loadTrustedFolders();
|
|
44651
44638
|
await trustedFolders.setValue(
|
|
44652
44639
|
this.workspaceDir,
|
|
44653
|
-
|
|
44640
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
44654
44641
|
);
|
|
44655
44642
|
} else {
|
|
44656
44643
|
throw new Error(
|
|
@@ -44836,7 +44823,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44836
44823
|
newExtensionConfig.version,
|
|
44837
44824
|
previousExtensionConfig.version,
|
|
44838
44825
|
installMetadata.type,
|
|
44839
|
-
|
|
44826
|
+
"success" /* Success */
|
|
44840
44827
|
)
|
|
44841
44828
|
);
|
|
44842
44829
|
if (newExtensionName !== previousName) {
|
|
@@ -44859,7 +44846,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44859
44846
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
44860
44847
|
newExtensionConfig.version,
|
|
44861
44848
|
installMetadata.type,
|
|
44862
|
-
|
|
44849
|
+
"success" /* Success */
|
|
44863
44850
|
)
|
|
44864
44851
|
);
|
|
44865
44852
|
await this.enableExtension(
|
|
@@ -44892,7 +44879,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44892
44879
|
newExtensionConfig?.version ?? "",
|
|
44893
44880
|
previousExtensionConfig.version,
|
|
44894
44881
|
installMetadata.type,
|
|
44895
|
-
|
|
44882
|
+
"error" /* Error */
|
|
44896
44883
|
)
|
|
44897
44884
|
);
|
|
44898
44885
|
} else {
|
|
@@ -44904,7 +44891,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44904
44891
|
extensionId ?? "",
|
|
44905
44892
|
newExtensionConfig?.version ?? "",
|
|
44906
44893
|
installMetadata.type,
|
|
44907
|
-
|
|
44894
|
+
"error" /* Error */
|
|
44908
44895
|
)
|
|
44909
44896
|
);
|
|
44910
44897
|
}
|
|
@@ -44935,7 +44922,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
44935
44922
|
extension.name,
|
|
44936
44923
|
hashValue(extension.name),
|
|
44937
44924
|
extension.id,
|
|
44938
|
-
|
|
44925
|
+
"success" /* Success */
|
|
44939
44926
|
)
|
|
44940
44927
|
);
|
|
44941
44928
|
}
|
|
@@ -45205,7 +45192,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
45205
45192
|
if (eventHooks) {
|
|
45206
45193
|
for (const definition of eventHooks) {
|
|
45207
45194
|
for (const hook of definition.hooks) {
|
|
45208
|
-
if (hook.type ===
|
|
45195
|
+
if (hook.type === "command" /* Command */) {
|
|
45209
45196
|
hook.env = { ...hook.env, ...hookEnv };
|
|
45210
45197
|
}
|
|
45211
45198
|
}
|
|
@@ -46236,7 +46223,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46236
46223
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46237
46224
|
name: `resources/read (${resource.serverName})`,
|
|
46238
46225
|
description: resource.uri,
|
|
46239
|
-
status:
|
|
46226
|
+
status: "success" /* Success */,
|
|
46240
46227
|
isClientInitiated: true,
|
|
46241
46228
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
46242
46229
|
confirmationDetails: void 0
|
|
@@ -46251,7 +46238,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
46251
46238
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
46252
46239
|
name: `resources/read (${resource.serverName})`,
|
|
46253
46240
|
description: resource.uri,
|
|
46254
|
-
status:
|
|
46241
|
+
status: "error" /* Error */,
|
|
46255
46242
|
isClientInitiated: true,
|
|
46256
46243
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
46257
46244
|
confirmationDetails: void 0
|
|
@@ -46276,7 +46263,7 @@ Content from @${result.uri}:
|
|
|
46276
46263
|
}
|
|
46277
46264
|
if (hasError) {
|
|
46278
46265
|
const firstError = displays.find(
|
|
46279
|
-
(d) => d.status ===
|
|
46266
|
+
(d) => d.status === "error" /* Error */
|
|
46280
46267
|
);
|
|
46281
46268
|
return {
|
|
46282
46269
|
parts: [],
|
|
@@ -46317,7 +46304,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
46317
46304
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46318
46305
|
name: readManyFilesTool.displayName,
|
|
46319
46306
|
description: invocation.getDescription(),
|
|
46320
|
-
status:
|
|
46307
|
+
status: "success" /* Success */,
|
|
46321
46308
|
isClientInitiated: true,
|
|
46322
46309
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
46323
46310
|
confirmationDetails: void 0
|
|
@@ -46364,7 +46351,7 @@ Content from @${displayPath}:
|
|
|
46364
46351
|
callId: `client-read-${userMessageTimestamp}`,
|
|
46365
46352
|
name: readManyFilesTool.displayName,
|
|
46366
46353
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
46367
|
-
status:
|
|
46354
|
+
status: "error" /* Error */,
|
|
46368
46355
|
isClientInitiated: true,
|
|
46369
46356
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
46370
46357
|
confirmationDetails: void 0
|
|
@@ -49631,7 +49618,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
49631
49618
|
if (wasRaw) {
|
|
49632
49619
|
setRawMode?.(true);
|
|
49633
49620
|
}
|
|
49634
|
-
coreEvents.emit(
|
|
49621
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
49635
49622
|
}
|
|
49636
49623
|
}
|
|
49637
49624
|
|
|
@@ -52326,7 +52313,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
52326
52313
|
extension.name,
|
|
52327
52314
|
installMetadata
|
|
52328
52315
|
);
|
|
52329
|
-
if (status ===
|
|
52316
|
+
if (status === "invalid" /* INVALID */) {
|
|
52330
52317
|
throw new Error("Extension integrity cannot be verified");
|
|
52331
52318
|
}
|
|
52332
52319
|
} catch (e) {
|
|
@@ -53744,11 +53731,11 @@ var ShellProcessor = class {
|
|
|
53744
53731
|
},
|
|
53745
53732
|
void 0
|
|
53746
53733
|
);
|
|
53747
|
-
if (decision ===
|
|
53734
|
+
if (decision === "deny" /* DENY */) {
|
|
53748
53735
|
throw new Error(
|
|
53749
53736
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
53750
53737
|
);
|
|
53751
|
-
} else if (decision ===
|
|
53738
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
53752
53739
|
commandsToConfirm.add(command);
|
|
53753
53740
|
}
|
|
53754
53741
|
}
|
|
@@ -54866,7 +54853,7 @@ var MultiFolderTrustDialog = ({
|
|
|
54866
54853
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
54867
54854
|
await trustedFolders.setValue(
|
|
54868
54855
|
expandedPath,
|
|
54869
|
-
|
|
54856
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
54870
54857
|
);
|
|
54871
54858
|
}
|
|
54872
54859
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -56514,7 +56501,7 @@ var authCommand = {
|
|
|
56514
56501
|
import process28 from "node:process";
|
|
56515
56502
|
|
|
56516
56503
|
// packages/cli/src/generated/git-commit.ts
|
|
56517
|
-
var GIT_COMMIT_INFO = "
|
|
56504
|
+
var GIT_COMMIT_INFO = "8acfe0c4a";
|
|
56518
56505
|
|
|
56519
56506
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
56520
56507
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -57160,7 +57147,7 @@ var clearCommand = {
|
|
|
57160
57147
|
const config = context.services.agentContext?.config;
|
|
57161
57148
|
const hookSystem = config?.getHookSystem();
|
|
57162
57149
|
if (hookSystem) {
|
|
57163
|
-
await hookSystem.fireSessionEndEvent(
|
|
57150
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
57164
57151
|
}
|
|
57165
57152
|
config?.injectionService.clear();
|
|
57166
57153
|
let newSessionId;
|
|
@@ -57177,7 +57164,7 @@ var clearCommand = {
|
|
|
57177
57164
|
}
|
|
57178
57165
|
let result;
|
|
57179
57166
|
if (hookSystem) {
|
|
57180
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
57167
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
57181
57168
|
}
|
|
57182
57169
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
57183
57170
|
if (config) {
|
|
@@ -60176,7 +60163,7 @@ var Footer = () => {
|
|
|
60176
60163
|
case "auth": {
|
|
60177
60164
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
60178
60165
|
if (!authType) break;
|
|
60179
|
-
const displayStr = authType ===
|
|
60166
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
60180
60167
|
addCol(
|
|
60181
60168
|
id,
|
|
60182
60169
|
header,
|
|
@@ -61924,12 +61911,12 @@ import path29 from "node:path";
|
|
|
61924
61911
|
function getIdeStatusMessage(ideClient) {
|
|
61925
61912
|
const connection = ideClient.getConnectionStatus();
|
|
61926
61913
|
switch (connection.status) {
|
|
61927
|
-
case
|
|
61914
|
+
case "connected" /* Connected */:
|
|
61928
61915
|
return {
|
|
61929
61916
|
messageType: "info",
|
|
61930
61917
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
61931
61918
|
};
|
|
61932
|
-
case
|
|
61919
|
+
case "connecting" /* Connecting */:
|
|
61933
61920
|
return {
|
|
61934
61921
|
messageType: "info",
|
|
61935
61922
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -61970,7 +61957,7 @@ ${infoMessage}`;
|
|
|
61970
61957
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
61971
61958
|
const connection = ideClient.getConnectionStatus();
|
|
61972
61959
|
switch (connection.status) {
|
|
61973
|
-
case
|
|
61960
|
+
case "connected" /* Connected */: {
|
|
61974
61961
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
61975
61962
|
const context = ideContextStore.get();
|
|
61976
61963
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -61982,7 +61969,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
61982
61969
|
content
|
|
61983
61970
|
};
|
|
61984
61971
|
}
|
|
61985
|
-
case
|
|
61972
|
+
case "connecting" /* Connecting */:
|
|
61986
61973
|
return {
|
|
61987
61974
|
messageType: "info",
|
|
61988
61975
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -62004,7 +61991,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
62004
61991
|
const ideClient = await IdeClient.getInstance();
|
|
62005
61992
|
if (value) {
|
|
62006
61993
|
await ideClient.connect(options);
|
|
62007
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
61994
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
62008
61995
|
} else {
|
|
62009
61996
|
await ideClient.disconnect();
|
|
62010
61997
|
}
|
|
@@ -62092,7 +62079,7 @@ var ideCommand = async () => {
|
|
|
62092
62079
|
logToConsole: false
|
|
62093
62080
|
}
|
|
62094
62081
|
);
|
|
62095
|
-
if (ideClient.getConnectionStatus().status ===
|
|
62082
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
62096
62083
|
break;
|
|
62097
62084
|
}
|
|
62098
62085
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -62169,7 +62156,7 @@ var ideCommand = async () => {
|
|
|
62169
62156
|
}
|
|
62170
62157
|
};
|
|
62171
62158
|
const { status } = ideClient.getConnectionStatus();
|
|
62172
|
-
const isConnected = status ===
|
|
62159
|
+
const isConnected = status === "connected" /* Connected */;
|
|
62173
62160
|
if (isConnected) {
|
|
62174
62161
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
62175
62162
|
} else {
|
|
@@ -62269,13 +62256,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62269
62256
|
const displayListener = (message) => {
|
|
62270
62257
|
context.ui.addItem({ type: "info", text: message });
|
|
62271
62258
|
};
|
|
62272
|
-
coreEvents.on(
|
|
62259
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
62273
62260
|
try {
|
|
62274
62261
|
context.ui.addItem({
|
|
62275
62262
|
type: "info",
|
|
62276
62263
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
62277
62264
|
});
|
|
62278
|
-
const { MCPOAuthProvider } = await import("./
|
|
62265
|
+
const { MCPOAuthProvider } = await import("./core-AQUUQTX2.js");
|
|
62279
62266
|
let oauthConfig = server.oauth;
|
|
62280
62267
|
if (!oauthConfig) {
|
|
62281
62268
|
oauthConfig = { enabled: false };
|
|
@@ -62312,7 +62299,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62312
62299
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
62313
62300
|
};
|
|
62314
62301
|
} finally {
|
|
62315
|
-
coreEvents.removeListener(
|
|
62302
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
62316
62303
|
}
|
|
62317
62304
|
},
|
|
62318
62305
|
completion: async (context, partialArg) => {
|
|
@@ -62358,10 +62345,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
62358
62345
|
}
|
|
62359
62346
|
const serverNames = Object.keys(mcpServers);
|
|
62360
62347
|
const connectingServers = serverNames.filter(
|
|
62361
|
-
(name) => getMCPServerStatus(name) ===
|
|
62348
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
62362
62349
|
);
|
|
62363
62350
|
const discoveryState = getMCPDiscoveryState();
|
|
62364
|
-
const discoveryInProgress = discoveryState ===
|
|
62351
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
62365
62352
|
const allTools = toolRegistry.getAllTools();
|
|
62366
62353
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
62367
62354
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -78119,7 +78106,7 @@ Return a JSON object with:
|
|
|
78119
78106
|
},
|
|
78120
78107
|
abortSignal: new AbortController().signal,
|
|
78121
78108
|
promptId: "triage-duplicates",
|
|
78122
|
-
role:
|
|
78109
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
78123
78110
|
});
|
|
78124
78111
|
const rec = response;
|
|
78125
78112
|
let canonical;
|
|
@@ -78953,7 +78940,7 @@ Return a JSON object with:
|
|
|
78953
78940
|
},
|
|
78954
78941
|
abortSignal: abortControllerRef.current.signal,
|
|
78955
78942
|
promptId: "triage-issues",
|
|
78956
|
-
role:
|
|
78943
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
78957
78944
|
});
|
|
78958
78945
|
return response;
|
|
78959
78946
|
},
|
|
@@ -79527,8 +79514,8 @@ var planCommand = {
|
|
|
79527
79514
|
return;
|
|
79528
79515
|
}
|
|
79529
79516
|
const previousApprovalMode = config.getApprovalMode();
|
|
79530
|
-
config.setApprovalMode(
|
|
79531
|
-
if (previousApprovalMode !==
|
|
79517
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
79518
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
79532
79519
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
79533
79520
|
}
|
|
79534
79521
|
if (context.invocation?.args) {
|
|
@@ -79587,10 +79574,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
79587
79574
|
rules.forEach((rule) => {
|
|
79588
79575
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
79589
79576
|
const modeSet = new Set(modes);
|
|
79590
|
-
if (modeSet.has(
|
|
79591
|
-
if (modeSet.has(
|
|
79592
|
-
if (modeSet.has(
|
|
79593
|
-
if (modeSet.has(
|
|
79577
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
79578
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
79579
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
79580
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
79594
79581
|
});
|
|
79595
79582
|
return result;
|
|
79596
79583
|
};
|
|
@@ -80942,7 +80929,7 @@ var upgradeCommand = {
|
|
|
80942
80929
|
action: async (context) => {
|
|
80943
80930
|
const config = context.services.agentContext?.config;
|
|
80944
80931
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
80945
|
-
if (authType !==
|
|
80932
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
80946
80933
|
return {
|
|
80947
80934
|
type: "message",
|
|
80948
80935
|
messageType: "error",
|
|
@@ -81171,7 +81158,7 @@ var BuiltinCommandLoader = class {
|
|
|
81171
81158
|
setupGithubCommand,
|
|
81172
81159
|
terminalSetupCommand,
|
|
81173
81160
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
81174
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
81161
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
81175
81162
|
];
|
|
81176
81163
|
handle?.end();
|
|
81177
81164
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -279535,8 +279535,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
279535
279535
|
}
|
|
279536
279536
|
|
|
279537
279537
|
// packages/core/src/generated/git-commit.ts
|
|
279538
|
-
var GIT_COMMIT_INFO = "
|
|
279539
|
-
var CLI_VERSION = "0.45.0
|
|
279538
|
+
var GIT_COMMIT_INFO = "8acfe0c4a";
|
|
279539
|
+
var CLI_VERSION = "0.45.0";
|
|
279540
279540
|
|
|
279541
279541
|
// packages/core/src/ide/detect-ide.ts
|
|
279542
279542
|
var IDE_DEFINITIONS = {
|
|
@@ -304005,7 +304005,7 @@ function getVersion() {
|
|
|
304005
304005
|
}
|
|
304006
304006
|
versionPromise = (async () => {
|
|
304007
304007
|
const pkgJson = await getPackageJson(__dirname4);
|
|
304008
|
-
return "0.45.0
|
|
304008
|
+
return "0.45.0";
|
|
304009
304009
|
})();
|
|
304010
304010
|
return versionPromise;
|
|
304011
304011
|
}
|
|
@@ -338333,7 +338333,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
338333
338333
|
return provider;
|
|
338334
338334
|
}
|
|
338335
338335
|
case "oauth2": {
|
|
338336
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
338336
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-7N4OFPTL.js");
|
|
338337
338337
|
const provider = new OAuth2AuthProvider(
|
|
338338
338338
|
authConfig,
|
|
338339
338339
|
options.agentName ?? "unknown",
|
|
@@ -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-THZMPVCN.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XV2YFH7B.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-XV2YFH7B.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);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
exitCli,
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-53SRWMUU.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_BACKGROUND_OPACITY,
|
|
12
12
|
DEFAULT_BORDER_OPACITY,
|
|
@@ -58,14 +58,14 @@ import {
|
|
|
58
58
|
stripUnsafeCharacters,
|
|
59
59
|
toCodePoints,
|
|
60
60
|
validateCustomTheme
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-EUYIPFPA.js";
|
|
62
62
|
import {
|
|
63
63
|
isDevelopment
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-K6WTIGVC.js";
|
|
65
65
|
import {
|
|
66
66
|
emptyIcon,
|
|
67
67
|
require_react
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-Z5F25543.js";
|
|
69
69
|
import {
|
|
70
70
|
ALL_EDITORS,
|
|
71
71
|
ApprovalMode,
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
tokenLimit,
|
|
244
244
|
uiTelemetryService,
|
|
245
245
|
unescapePath
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-6T7N6JF2.js";
|
|
247
247
|
import {
|
|
248
248
|
require_src
|
|
249
249
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -56514,7 +56514,7 @@ var authCommand = {
|
|
|
56514
56514
|
import process28 from "node:process";
|
|
56515
56515
|
|
|
56516
56516
|
// packages/cli/src/generated/git-commit.ts
|
|
56517
|
-
var GIT_COMMIT_INFO = "
|
|
56517
|
+
var GIT_COMMIT_INFO = "0a11ce3e9";
|
|
56518
56518
|
|
|
56519
56519
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
56520
56520
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -62275,7 +62275,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
62275
62275
|
type: "info",
|
|
62276
62276
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
62277
62277
|
});
|
|
62278
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
62278
|
+
const { MCPOAuthProvider } = await import("./dist-2G5KTD32.js");
|
|
62279
62279
|
let oauthConfig = server.oauth;
|
|
62280
62280
|
if (!oauthConfig) {
|
|
62281
62281
|
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-GVEZJIV3.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2ARYG3KE.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N6QPQL7E.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|