@google/gemini-cli 0.36.0-preview.8 → 0.36.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-N22U7LIR.js → chunk-2OFO4ODK.js} +4 -4
- package/bundle/{chunk-QBLIM2T2.js → chunk-EAXTBDLN.js} +3 -3
- package/bundle/{chunk-FWCJAF6L.js → chunk-GHJNEZXJ.js} +57 -69
- package/bundle/{chunk-5JDHTAA3.js → chunk-QVTX2M5J.js} +4 -4
- package/bundle/{chunk-UUJ4JLTB.js → chunk-UNM3DGTG.js} +3 -3
- package/bundle/{chunk-5Y6Y7SEB.js → chunk-VB55KQW3.js} +10495 -5615
- package/bundle/{core-N4UNRLQA.js → core-6V2OYDRU.js} +1 -1
- package/bundle/{dist-QEB25IFU.js → core-BMLL5RF4.js} +2 -2
- package/bundle/{devtoolsService-7D3WUF33.js → devtoolsService-QTW7GHQP.js} +2 -2
- package/bundle/{devtoolsService-NA7MR5UO.js → devtoolsService-UL6JE436.js} +4 -5
- package/bundle/{devtoolsService-Y53ZUB56.js → devtoolsService-ZKU2HLK2.js} +2 -2
- package/bundle/{dist-HD2ZHBHJ.js → dist-PYC2JXAJ.js} +1 -1
- package/bundle/gemini.js +6 -6
- package/bundle/{interactiveCli-LFO7EWZS.js → interactiveCli-A6HZ2TDO.js} +3 -3
- package/bundle/{interactiveCli-A6H7VTMC.js → interactiveCli-DWMSDCKV.js} +235 -252
- package/bundle/{interactiveCli-2JRQPNZP.js → interactiveCli-VLQHRXHU.js} +3 -3
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-QOWLZC44.js → oauth2-provider-5ENESIRQ.js} +1 -1
- package/bundle/{oauth2-provider-2WD22PTI.js → oauth2-provider-CAKFQRQV.js} +1 -1
- package/bundle/{oauth2-provider-34BPLPQX.js → oauth2-provider-RVED6DAZ.js} +73 -39
- package/package.json +1 -1
- package/bundle/chunk-642LNT3F.js +0 -97905
- package/bundle/chunk-X6CSYCBW.js +0 -354180
- package/bundle/devtoolsService-VU7N6PSG.js +0 -854
- package/bundle/dist-JYY2GAAR.js +0 -1886
- package/bundle/interactiveCli-R5N55BDV.js +0 -49299
- package/bundle/oauth2-provider-MZAUZWUS.js +0 -237
|
@@ -250035,8 +250035,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
250035
250035
|
var PointerVector = import_vector.default.PointerVector;
|
|
250036
250036
|
|
|
250037
250037
|
// packages/core/src/generated/git-commit.ts
|
|
250038
|
-
var GIT_COMMIT_INFO = "
|
|
250039
|
-
var CLI_VERSION = "0.36.0-preview.
|
|
250038
|
+
var GIT_COMMIT_INFO = "b6d9970af";
|
|
250039
|
+
var CLI_VERSION = "0.36.0-preview.8";
|
|
250040
250040
|
|
|
250041
250041
|
// packages/core/src/ide/detect-ide.ts
|
|
250042
250042
|
var IDE_DEFINITIONS = {
|
|
@@ -276495,7 +276495,7 @@ function getVersion() {
|
|
|
276495
276495
|
}
|
|
276496
276496
|
versionPromise = (async () => {
|
|
276497
276497
|
const pkgJson = await getPackageJson(__dirname4);
|
|
276498
|
-
return "0.36.0-preview.
|
|
276498
|
+
return "0.36.0-preview.8";
|
|
276499
276499
|
})();
|
|
276500
276500
|
return versionPromise;
|
|
276501
276501
|
}
|
|
@@ -329926,7 +329926,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
329926
329926
|
return provider;
|
|
329927
329927
|
}
|
|
329928
329928
|
case "oauth2": {
|
|
329929
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
329929
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-5ENESIRQ.js");
|
|
329930
329930
|
const provider = new OAuth2AuthProvider(
|
|
329931
329931
|
authConfig,
|
|
329932
329932
|
options.agentName ?? "unknown",
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
tokenLimit,
|
|
154
154
|
uiTelemetryService,
|
|
155
155
|
yellowBright
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-VB55KQW3.js";
|
|
157
157
|
import {
|
|
158
158
|
ApprovalMode,
|
|
159
159
|
CoreEvent,
|
|
@@ -87723,7 +87723,7 @@ var authCommand = {
|
|
|
87723
87723
|
import process34 from "node:process";
|
|
87724
87724
|
|
|
87725
87725
|
// packages/cli/src/generated/git-commit.ts
|
|
87726
|
-
var GIT_COMMIT_INFO = "
|
|
87726
|
+
var GIT_COMMIT_INFO = "b6d9970af";
|
|
87727
87727
|
|
|
87728
87728
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
87729
87729
|
import * as fsPromises2 from "node:fs/promises";
|
|
@@ -93124,7 +93124,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
93124
93124
|
type: "info",
|
|
93125
93125
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
93126
93126
|
});
|
|
93127
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
93127
|
+
const { MCPOAuthProvider } = await import("./core-6V2OYDRU.js");
|
|
93128
93128
|
let oauthConfig = server.oauth;
|
|
93129
93129
|
if (!oauthConfig) {
|
|
93130
93130
|
oauthConfig = { enabled: false };
|
|
@@ -2,9 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
AsyncFzf,
|
|
4
4
|
AuthProviderType,
|
|
5
|
-
AuthType,
|
|
6
5
|
Config,
|
|
7
|
-
CoreToolCallStatus,
|
|
8
6
|
DEFAULT_MODEL_CONFIGS,
|
|
9
7
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
10
8
|
ExitCodes,
|
|
@@ -16,26 +14,17 @@ import {
|
|
|
16
14
|
ExtensionUninstallEvent,
|
|
17
15
|
ExtensionUpdateEvent,
|
|
18
16
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
19
|
-
HookType,
|
|
20
|
-
IDEConnectionStatus,
|
|
21
17
|
INITIAL_HISTORY_LENGTH,
|
|
22
18
|
IdeClient,
|
|
23
19
|
IdeConnectionEvent,
|
|
24
|
-
IdeConnectionType,
|
|
25
|
-
IntegrityDataStatus,
|
|
26
20
|
KeychainTokenStorage,
|
|
27
|
-
LlmRole,
|
|
28
|
-
MCPDiscoveryState,
|
|
29
21
|
MCPOAuthTokenStorage,
|
|
30
|
-
MCPServerStatus,
|
|
31
22
|
MaxBufferError,
|
|
32
23
|
ModelSlashCommandEvent,
|
|
33
24
|
ProjectIdRequiredError,
|
|
34
25
|
ReadManyFilesTool,
|
|
35
26
|
RewindEvent,
|
|
36
27
|
SESSION_FILE_PREFIX,
|
|
37
|
-
SessionEndReason,
|
|
38
|
-
SessionStartSource,
|
|
39
28
|
ShellExecutionService,
|
|
40
29
|
StartSessionEvent,
|
|
41
30
|
TOOL_OUTPUTS_DIR,
|
|
@@ -164,14 +153,13 @@ import {
|
|
|
164
153
|
tokenLimit,
|
|
165
154
|
uiTelemetryService,
|
|
166
155
|
yellowBright
|
|
167
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-2OFO4ODK.js";
|
|
168
157
|
import {
|
|
169
158
|
ApprovalMode,
|
|
170
159
|
CoreEvent,
|
|
171
160
|
DiscoveredMCPTool,
|
|
172
161
|
FatalConfigError,
|
|
173
162
|
GEMINI_DIR,
|
|
174
|
-
PolicyDecision,
|
|
175
163
|
REFERENCE_CONTENT_END,
|
|
176
164
|
REFERENCE_CONTENT_START,
|
|
177
165
|
Storage,
|
|
@@ -193,7 +181,7 @@ import {
|
|
|
193
181
|
shortenPath,
|
|
194
182
|
tildeifyPath,
|
|
195
183
|
unescapePath
|
|
196
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-MYI75E6G.js";
|
|
197
185
|
import {
|
|
198
186
|
__commonJS,
|
|
199
187
|
__export,
|
|
@@ -43466,19 +43454,19 @@ var require_cli_spinners = __commonJS({
|
|
|
43466
43454
|
var import_react = __toESM(require_react(), 1);
|
|
43467
43455
|
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
43468
43456
|
switch (coreStatus) {
|
|
43469
|
-
case
|
|
43457
|
+
case "validating" /* Validating */:
|
|
43470
43458
|
return "Pending" /* Pending */;
|
|
43471
|
-
case
|
|
43459
|
+
case "awaiting_approval" /* AwaitingApproval */:
|
|
43472
43460
|
return "Confirming" /* Confirming */;
|
|
43473
|
-
case
|
|
43461
|
+
case "executing" /* Executing */:
|
|
43474
43462
|
return "Executing" /* Executing */;
|
|
43475
|
-
case
|
|
43463
|
+
case "success" /* Success */:
|
|
43476
43464
|
return "Success" /* Success */;
|
|
43477
|
-
case
|
|
43465
|
+
case "cancelled" /* Cancelled */:
|
|
43478
43466
|
return "Canceled" /* Canceled */;
|
|
43479
|
-
case
|
|
43467
|
+
case "error" /* Error */:
|
|
43480
43468
|
return "Error" /* Error */;
|
|
43481
|
-
case
|
|
43469
|
+
case "scheduled" /* Scheduled */:
|
|
43482
43470
|
return "Pending" /* Pending */;
|
|
43483
43471
|
default:
|
|
43484
43472
|
return checkExhaustive(coreStatus);
|
|
@@ -58606,7 +58594,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
58606
58594
|
name: tool.displayName || tool.name,
|
|
58607
58595
|
description: tool.description || "",
|
|
58608
58596
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
58609
|
-
status: tool.status === "success" ?
|
|
58597
|
+
status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
|
|
58610
58598
|
resultDisplay: tool.resultDisplay,
|
|
58611
58599
|
confirmationDetails: void 0
|
|
58612
58600
|
}))
|
|
@@ -62429,8 +62417,8 @@ var LoadedSettings = class {
|
|
|
62429
62417
|
// React will pass a listener fn into this subscribe fn
|
|
62430
62418
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
62431
62419
|
subscribe(listener) {
|
|
62432
|
-
coreEvents.on(
|
|
62433
|
-
return () => coreEvents.off(
|
|
62420
|
+
coreEvents.on("settings-changed" /* SettingsChanged */, listener);
|
|
62421
|
+
return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
|
|
62434
62422
|
}
|
|
62435
62423
|
getSnapshot() {
|
|
62436
62424
|
return this._snapshot;
|
|
@@ -67730,7 +67718,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
67730
67718
|
function useIdeTrustListener() {
|
|
67731
67719
|
const settings = useSettings();
|
|
67732
67720
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
67733
|
-
|
|
67721
|
+
"disconnected" /* Disconnected */
|
|
67734
67722
|
);
|
|
67735
67723
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
67736
67724
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -67760,7 +67748,7 @@ function useIdeTrustListener() {
|
|
|
67760
67748
|
};
|
|
67761
67749
|
}, []);
|
|
67762
67750
|
const getSnapshot = () => {
|
|
67763
|
-
if (connectionStatus !==
|
|
67751
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
67764
67752
|
return void 0;
|
|
67765
67753
|
}
|
|
67766
67754
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -72899,7 +72887,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
72899
72887
|
newExtensionConfig.version,
|
|
72900
72888
|
previousExtensionConfig.version,
|
|
72901
72889
|
installMetadata.type,
|
|
72902
|
-
|
|
72890
|
+
"success" /* Success */
|
|
72903
72891
|
)
|
|
72904
72892
|
);
|
|
72905
72893
|
if (newExtensionName !== previousName) {
|
|
@@ -72922,7 +72910,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
72922
72910
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
72923
72911
|
newExtensionConfig.version,
|
|
72924
72912
|
installMetadata.type,
|
|
72925
|
-
|
|
72913
|
+
"success" /* Success */
|
|
72926
72914
|
)
|
|
72927
72915
|
);
|
|
72928
72916
|
await this.enableExtension(
|
|
@@ -72955,7 +72943,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
72955
72943
|
newExtensionConfig?.version ?? "",
|
|
72956
72944
|
previousExtensionConfig.version,
|
|
72957
72945
|
installMetadata.type,
|
|
72958
|
-
|
|
72946
|
+
"error" /* Error */
|
|
72959
72947
|
)
|
|
72960
72948
|
);
|
|
72961
72949
|
} else {
|
|
@@ -72967,7 +72955,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
72967
72955
|
extensionId ?? "",
|
|
72968
72956
|
newExtensionConfig?.version ?? "",
|
|
72969
72957
|
installMetadata.type,
|
|
72970
|
-
|
|
72958
|
+
"error" /* Error */
|
|
72971
72959
|
)
|
|
72972
72960
|
);
|
|
72973
72961
|
}
|
|
@@ -72998,7 +72986,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
72998
72986
|
extension.name,
|
|
72999
72987
|
hashValue(extension.name),
|
|
73000
72988
|
extension.id,
|
|
73001
|
-
|
|
72989
|
+
"success" /* Success */
|
|
73002
72990
|
)
|
|
73003
72991
|
);
|
|
73004
72992
|
}
|
|
@@ -73268,7 +73256,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
73268
73256
|
if (eventHooks) {
|
|
73269
73257
|
for (const definition of eventHooks) {
|
|
73270
73258
|
for (const hook of definition.hooks) {
|
|
73271
|
-
if (hook.type ===
|
|
73259
|
+
if (hook.type === "command" /* Command */) {
|
|
73272
73260
|
hook.env = { ...hook.env, ...hookEnv };
|
|
73273
73261
|
}
|
|
73274
73262
|
}
|
|
@@ -73895,7 +73883,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
73895
73883
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
73896
73884
|
name: `resources/read (${resource.serverName})`,
|
|
73897
73885
|
description: resource.uri,
|
|
73898
|
-
status:
|
|
73886
|
+
status: "success" /* Success */,
|
|
73899
73887
|
isClientInitiated: true,
|
|
73900
73888
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
73901
73889
|
confirmationDetails: void 0
|
|
@@ -73910,7 +73898,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
73910
73898
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
73911
73899
|
name: `resources/read (${resource.serverName})`,
|
|
73912
73900
|
description: resource.uri,
|
|
73913
|
-
status:
|
|
73901
|
+
status: "error" /* Error */,
|
|
73914
73902
|
isClientInitiated: true,
|
|
73915
73903
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
73916
73904
|
confirmationDetails: void 0
|
|
@@ -73935,7 +73923,7 @@ Content from @${result.uri}:
|
|
|
73935
73923
|
}
|
|
73936
73924
|
if (hasError) {
|
|
73937
73925
|
const firstError = displays.find(
|
|
73938
|
-
(d) => d.status ===
|
|
73926
|
+
(d) => d.status === "error" /* Error */
|
|
73939
73927
|
);
|
|
73940
73928
|
return {
|
|
73941
73929
|
parts: [],
|
|
@@ -73971,7 +73959,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
73971
73959
|
callId: `client-read-${userMessageTimestamp}`,
|
|
73972
73960
|
name: readManyFilesTool.displayName,
|
|
73973
73961
|
description: invocation.getDescription(),
|
|
73974
|
-
status:
|
|
73962
|
+
status: "success" /* Success */,
|
|
73975
73963
|
isClientInitiated: true,
|
|
73976
73964
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
73977
73965
|
confirmationDetails: void 0
|
|
@@ -74018,7 +74006,7 @@ Content from @${displayPath}:
|
|
|
74018
74006
|
callId: `client-read-${userMessageTimestamp}`,
|
|
74019
74007
|
name: readManyFilesTool.displayName,
|
|
74020
74008
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
74021
|
-
status:
|
|
74009
|
+
status: "error" /* Error */,
|
|
74022
74010
|
isClientInitiated: true,
|
|
74023
74011
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
74024
74012
|
confirmationDetails: void 0
|
|
@@ -82221,7 +82209,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
82221
82209
|
if (wasRaw) {
|
|
82222
82210
|
setRawMode?.(true);
|
|
82223
82211
|
}
|
|
82224
|
-
coreEvents.emit(
|
|
82212
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
82225
82213
|
}
|
|
82226
82214
|
}
|
|
82227
82215
|
|
|
@@ -84900,7 +84888,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
84900
84888
|
extension.name,
|
|
84901
84889
|
installMetadata
|
|
84902
84890
|
);
|
|
84903
|
-
if (status ===
|
|
84891
|
+
if (status === "invalid" /* INVALID */) {
|
|
84904
84892
|
throw new Error("Extension integrity cannot be verified");
|
|
84905
84893
|
}
|
|
84906
84894
|
} catch (e) {
|
|
@@ -85737,7 +85725,7 @@ async function initializeApp(config, settings) {
|
|
|
85737
85725
|
await ideClient.connect();
|
|
85738
85726
|
logIdeConnection(
|
|
85739
85727
|
config,
|
|
85740
|
-
new IdeConnectionEvent(
|
|
85728
|
+
new IdeConnectionEvent("start" /* START */)
|
|
85741
85729
|
);
|
|
85742
85730
|
}).catch((e) => {
|
|
85743
85731
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -85755,16 +85743,16 @@ async function initializeApp(config, settings) {
|
|
|
85755
85743
|
// packages/cli/src/config/auth.ts
|
|
85756
85744
|
function validateAuthMethod(authMethod) {
|
|
85757
85745
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
85758
|
-
if (authMethod ===
|
|
85746
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
85759
85747
|
return null;
|
|
85760
85748
|
}
|
|
85761
|
-
if (authMethod ===
|
|
85749
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
85762
85750
|
if (!process.env["GEMINI_API_KEY"]) {
|
|
85763
85751
|
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)!";
|
|
85764
85752
|
}
|
|
85765
85753
|
return null;
|
|
85766
85754
|
}
|
|
85767
|
-
if (authMethod ===
|
|
85755
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
85768
85756
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
85769
85757
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
85770
85758
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -88239,7 +88227,7 @@ var clearCommand = {
|
|
|
88239
88227
|
const config = context.services.agentContext?.config;
|
|
88240
88228
|
const hookSystem = config?.getHookSystem();
|
|
88241
88229
|
if (hookSystem) {
|
|
88242
|
-
await hookSystem.fireSessionEndEvent(
|
|
88230
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
88243
88231
|
}
|
|
88244
88232
|
config?.injectionService.clear();
|
|
88245
88233
|
let newSessionId;
|
|
@@ -88255,7 +88243,7 @@ var clearCommand = {
|
|
|
88255
88243
|
}
|
|
88256
88244
|
let result;
|
|
88257
88245
|
if (hookSystem) {
|
|
88258
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
88246
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
88259
88247
|
}
|
|
88260
88248
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
88261
88249
|
if (config) {
|
|
@@ -92785,12 +92773,12 @@ import path34 from "node:path";
|
|
|
92785
92773
|
function getIdeStatusMessage(ideClient) {
|
|
92786
92774
|
const connection = ideClient.getConnectionStatus();
|
|
92787
92775
|
switch (connection.status) {
|
|
92788
|
-
case
|
|
92776
|
+
case "connected" /* Connected */:
|
|
92789
92777
|
return {
|
|
92790
92778
|
messageType: "info",
|
|
92791
92779
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
92792
92780
|
};
|
|
92793
|
-
case
|
|
92781
|
+
case "connecting" /* Connecting */:
|
|
92794
92782
|
return {
|
|
92795
92783
|
messageType: "info",
|
|
92796
92784
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -92831,7 +92819,7 @@ ${infoMessage}`;
|
|
|
92831
92819
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
92832
92820
|
const connection = ideClient.getConnectionStatus();
|
|
92833
92821
|
switch (connection.status) {
|
|
92834
|
-
case
|
|
92822
|
+
case "connected" /* Connected */: {
|
|
92835
92823
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
92836
92824
|
const context = ideContextStore.get();
|
|
92837
92825
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -92843,7 +92831,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
92843
92831
|
content
|
|
92844
92832
|
};
|
|
92845
92833
|
}
|
|
92846
|
-
case
|
|
92834
|
+
case "connecting" /* Connecting */:
|
|
92847
92835
|
return {
|
|
92848
92836
|
messageType: "info",
|
|
92849
92837
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -92865,7 +92853,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
92865
92853
|
const ideClient = await IdeClient.getInstance();
|
|
92866
92854
|
if (value) {
|
|
92867
92855
|
await ideClient.connect(options);
|
|
92868
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
92856
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
92869
92857
|
} else {
|
|
92870
92858
|
await ideClient.disconnect();
|
|
92871
92859
|
}
|
|
@@ -92953,7 +92941,7 @@ var ideCommand = async () => {
|
|
|
92953
92941
|
logToConsole: false
|
|
92954
92942
|
}
|
|
92955
92943
|
);
|
|
92956
|
-
if (ideClient.getConnectionStatus().status ===
|
|
92944
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
92957
92945
|
break;
|
|
92958
92946
|
}
|
|
92959
92947
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -93030,7 +93018,7 @@ var ideCommand = async () => {
|
|
|
93030
93018
|
}
|
|
93031
93019
|
};
|
|
93032
93020
|
const { status } = ideClient.getConnectionStatus();
|
|
93033
|
-
const isConnected2 = status ===
|
|
93021
|
+
const isConnected2 = status === "connected" /* Connected */;
|
|
93034
93022
|
if (isConnected2) {
|
|
93035
93023
|
ideSlashCommand.subCommands = [statusCommand, disableCommand5];
|
|
93036
93024
|
} else {
|
|
@@ -93130,13 +93118,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
93130
93118
|
const displayListener = (message) => {
|
|
93131
93119
|
context.ui.addItem({ type: "info", text: message });
|
|
93132
93120
|
};
|
|
93133
|
-
coreEvents.on(
|
|
93121
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
93134
93122
|
try {
|
|
93135
93123
|
context.ui.addItem({
|
|
93136
93124
|
type: "info",
|
|
93137
93125
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
93138
93126
|
});
|
|
93139
|
-
const { MCPOAuthProvider } = await import("./
|
|
93127
|
+
const { MCPOAuthProvider } = await import("./core-BMLL5RF4.js");
|
|
93140
93128
|
let oauthConfig = server.oauth;
|
|
93141
93129
|
if (!oauthConfig) {
|
|
93142
93130
|
oauthConfig = { enabled: false };
|
|
@@ -93173,7 +93161,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
93173
93161
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
93174
93162
|
};
|
|
93175
93163
|
} finally {
|
|
93176
|
-
coreEvents.removeListener(
|
|
93164
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
93177
93165
|
}
|
|
93178
93166
|
},
|
|
93179
93167
|
completion: async (context, partialArg) => {
|
|
@@ -93209,10 +93197,10 @@ var listAction3 = async (context, showDescriptions = false, showSchema = false)
|
|
|
93209
93197
|
const serverNames = Object.keys(mcpServers);
|
|
93210
93198
|
const blockedMcpServers = config.getMcpClientManager()?.getBlockedMcpServers() || [];
|
|
93211
93199
|
const connectingServers = serverNames.filter(
|
|
93212
|
-
(name) => getMCPServerStatus(name) ===
|
|
93200
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
93213
93201
|
);
|
|
93214
93202
|
const discoveryState = getMCPDiscoveryState();
|
|
93215
|
-
const discoveryInProgress = discoveryState ===
|
|
93203
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
93216
93204
|
const allTools = toolRegistry.getAllTools();
|
|
93217
93205
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
93218
93206
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -93807,7 +93795,7 @@ Return a JSON object with:
|
|
|
93807
93795
|
},
|
|
93808
93796
|
abortSignal: new AbortController().signal,
|
|
93809
93797
|
promptId: "triage-duplicates",
|
|
93810
|
-
role:
|
|
93798
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
93811
93799
|
});
|
|
93812
93800
|
const rec = response;
|
|
93813
93801
|
let canonical;
|
|
@@ -94641,7 +94629,7 @@ Return a JSON object with:
|
|
|
94641
94629
|
},
|
|
94642
94630
|
abortSignal: abortControllerRef.current.signal,
|
|
94643
94631
|
promptId: "triage-issues",
|
|
94644
|
-
role:
|
|
94632
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
94645
94633
|
});
|
|
94646
94634
|
return response;
|
|
94647
94635
|
},
|
|
@@ -95215,8 +95203,8 @@ var planCommand = {
|
|
|
95215
95203
|
return;
|
|
95216
95204
|
}
|
|
95217
95205
|
const previousApprovalMode = config.getApprovalMode();
|
|
95218
|
-
config.setApprovalMode(
|
|
95219
|
-
if (previousApprovalMode !==
|
|
95206
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
95207
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
95220
95208
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
95221
95209
|
}
|
|
95222
95210
|
const approvedPlanPath = config.getApprovedPlanPath();
|
|
@@ -95266,10 +95254,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
95266
95254
|
rules.forEach((rule) => {
|
|
95267
95255
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
95268
95256
|
const modeSet = new Set(modes);
|
|
95269
|
-
if (modeSet.has(
|
|
95270
|
-
if (modeSet.has(
|
|
95271
|
-
if (modeSet.has(
|
|
95272
|
-
if (modeSet.has(
|
|
95257
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
95258
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
95259
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
95260
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
95273
95261
|
});
|
|
95274
95262
|
return result;
|
|
95275
95263
|
};
|
|
@@ -96606,7 +96594,7 @@ var upgradeCommand = {
|
|
|
96606
96594
|
action: async (context) => {
|
|
96607
96595
|
const config = context.services.agentContext?.config;
|
|
96608
96596
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
96609
|
-
if (authType !==
|
|
96597
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
96610
96598
|
return {
|
|
96611
96599
|
type: "message",
|
|
96612
96600
|
messageType: "error",
|
|
@@ -96776,7 +96764,7 @@ var BuiltinCommandLoader = class {
|
|
|
96776
96764
|
vimCommand,
|
|
96777
96765
|
setupGithubCommand,
|
|
96778
96766
|
terminalSetupCommand,
|
|
96779
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
96767
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
96780
96768
|
];
|
|
96781
96769
|
handle?.end();
|
|
96782
96770
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -96919,11 +96907,11 @@ var ShellProcessor = class {
|
|
|
96919
96907
|
},
|
|
96920
96908
|
void 0
|
|
96921
96909
|
);
|
|
96922
|
-
if (decision ===
|
|
96910
|
+
if (decision === "deny" /* DENY */) {
|
|
96923
96911
|
throw new Error(
|
|
96924
96912
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
96925
96913
|
);
|
|
96926
|
-
} else if (decision ===
|
|
96914
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
96927
96915
|
commandsToConfirm.add(command);
|
|
96928
96916
|
}
|
|
96929
96917
|
}
|
|
@@ -249987,8 +249987,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
249987
249987
|
var PointerVector = import_vector.default.PointerVector;
|
|
249988
249988
|
|
|
249989
249989
|
// packages/core/dist/src/generated/git-commit.js
|
|
249990
|
-
var GIT_COMMIT_INFO = "
|
|
249991
|
-
var CLI_VERSION = "0.36.0
|
|
249990
|
+
var GIT_COMMIT_INFO = "b6d9970af";
|
|
249991
|
+
var CLI_VERSION = "0.36.0";
|
|
249992
249992
|
|
|
249993
249993
|
// packages/core/dist/src/ide/detect-ide.js
|
|
249994
249994
|
var IDE_DEFINITIONS = {
|
|
@@ -275706,7 +275706,7 @@ function getVersion() {
|
|
|
275706
275706
|
}
|
|
275707
275707
|
versionPromise = (async () => {
|
|
275708
275708
|
const pkgJson = await getPackageJson(__dirname4);
|
|
275709
|
-
return "0.36.0
|
|
275709
|
+
return "0.36.0";
|
|
275710
275710
|
})();
|
|
275711
275711
|
return versionPromise;
|
|
275712
275712
|
}
|
|
@@ -327128,7 +327128,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
327128
327128
|
return provider;
|
|
327129
327129
|
}
|
|
327130
327130
|
case "oauth2": {
|
|
327131
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
327131
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-CAKFQRQV.js");
|
|
327132
327132
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
327133
327133
|
await provider.initialize();
|
|
327134
327134
|
return provider;
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
tokenLimit,
|
|
165
165
|
uiTelemetryService,
|
|
166
166
|
yellowBright
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-QVTX2M5J.js";
|
|
168
168
|
import {
|
|
169
169
|
ApprovalMode,
|
|
170
170
|
CoreEvent,
|
|
@@ -87735,7 +87735,7 @@ var authCommand = {
|
|
|
87735
87735
|
import process34 from "node:process";
|
|
87736
87736
|
|
|
87737
87737
|
// packages/cli/src/generated/git-commit.ts
|
|
87738
|
-
var GIT_COMMIT_INFO = "
|
|
87738
|
+
var GIT_COMMIT_INFO = "8b1e649c2";
|
|
87739
87739
|
|
|
87740
87740
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
87741
87741
|
import * as fsPromises2 from "node:fs/promises";
|
|
@@ -93136,7 +93136,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
93136
93136
|
type: "info",
|
|
93137
93137
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
93138
93138
|
});
|
|
93139
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
93139
|
+
const { MCPOAuthProvider } = await import("./dist-PYC2JXAJ.js");
|
|
93140
93140
|
let oauthConfig = server.oauth;
|
|
93141
93141
|
if (!oauthConfig) {
|
|
93142
93142
|
oauthConfig = { enabled: false };
|