@google/gemini-cli 0.70.0 → 0.71.0-nightly.20261121.geecccfcd5
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-V4HIE5G5.js → chunk-3IQPEEFT.js} +1 -1
- package/bundle/{chunk-FHK4RNCX.js → chunk-3OVOJOQV.js} +7 -7
- package/bundle/{chunk-SPAMAY26.js → chunk-5J2X3GYT.js} +1 -1
- package/bundle/{chunk-UF44X63P.js → chunk-66M6QVYR.js} +782 -323
- package/bundle/{chunk-37D3S3FZ.js → chunk-6FOUJKOM.js} +878 -371
- package/bundle/{chunk-YOEWNBDC.js → chunk-74F5ZRXI.js} +12 -5
- package/bundle/{chunk-LMBUPWFC.js → chunk-7WYEB7FO.js} +8765 -15613
- package/bundle/{chunk-6IKD2NB3.js → chunk-A3SNIZ4K.js} +1 -1
- package/bundle/{chunk-AMHNNZY2.js → chunk-BVNLNGFD.js} +7 -7
- package/bundle/{chunk-5VFAWK3F.js → chunk-DC6NT336.js} +1 -1
- package/bundle/{chunk-CMKRWIX6.js → chunk-DKKO776D.js} +71 -58
- package/bundle/{chunk-WRWAVEME.js → chunk-EUUDSNXQ.js} +1 -1
- package/bundle/{chunk-KV6XIC2Z.js → chunk-GMYJWERY.js} +1 -1
- package/bundle/{chunk-EG2BSKPF.js → chunk-HQSLNBBU.js} +1 -1
- package/bundle/{chunk-LMNAB62M.js → chunk-JWRXMN7H.js} +12 -5
- package/bundle/{chunk-GFBMTAPD.js → chunk-L2ISE4LK.js} +18 -9
- package/bundle/chunk-LS3EWJTC.js +60338 -0
- package/bundle/{chunk-4BWP3TDK.js → chunk-NLZKOWER.js} +9 -8
- package/bundle/{chunk-BOIBJEIO.js → chunk-OM5Z3ZRO.js} +3 -3
- package/bundle/{chunk-7JS2T75Z.js → chunk-OQHA6SOK.js} +1 -1
- package/bundle/{chunk-FXAACYC3.js → chunk-QADAHCRT.js} +1 -1
- package/bundle/{chunk-VHXUWMGE.js → chunk-QVVBLU5B.js} +2 -2
- package/bundle/{chunk-CB37EK5Y.js → chunk-QWS2TBZG.js} +3 -3
- package/bundle/{chunk-3VGGGCOZ.js → chunk-RJEQTG6S.js} +2 -2
- package/bundle/chunk-S53XQOHZ.js +512 -0
- package/bundle/{chunk-QYKA4YD7.js → chunk-SLTPPXVT.js} +3 -3
- package/bundle/{chunk-G6SC5BOV.js → chunk-TE62WOO3.js} +1 -1
- package/bundle/chunk-V2F2BV3A.js +118 -0
- package/bundle/chunk-VTIY77BF.js +1571 -0
- package/bundle/chunk-XAXLQ5BJ.js +65 -0
- package/bundle/{chunk-JLKRLYZG.js → chunk-XPXAWJCB.js} +2 -2
- package/bundle/chunk-Y5DW673N.js +420386 -0
- package/bundle/chunk-YEEWGYBU.js +1962 -0
- package/bundle/chunk-YVHZS4VP.js +190 -0
- package/bundle/chunk-YVZ2JHAE.js +40031 -0
- package/bundle/{chunk-RFQXG324.js → chunk-YYWNIP3F.js} +1 -1
- package/bundle/{cleanup-BMYAIPAL.js → cleanup-3C2E3PSM.js} +2 -2
- package/bundle/{cleanup-CWOSCK57.js → cleanup-4IYCYTUB.js} +2 -2
- package/bundle/{cleanup-JTPRPYIQ.js → cleanup-NXI65SJI.js} +2 -2
- package/bundle/cleanup-UNQWTWUR.js +34 -0
- package/bundle/{core-XZECNCR2.js → core-DQSJHYG4.js} +31 -1
- package/bundle/{devtoolsService-ER22TM2Y.js → devtoolsService-4TYJS6M3.js} +2 -2
- package/bundle/{devtoolsService-O5VD5YWD.js → devtoolsService-5PXTVI7M.js} +4 -3
- package/bundle/{devtoolsService-WNJOZ7ZT.js → devtoolsService-NOXMAH56.js} +2 -2
- package/bundle/devtoolsService-UZFFGBEG.js +919 -0
- package/bundle/{core-HYVGBZPP.js → dist-VWT5M5DY.js} +31 -1
- package/bundle/{dist-75NDR3EX.js → dist-YHW4CPAY.js} +31 -1
- package/bundle/dist-YWJAC3IM.js +2372 -0
- package/bundle/docs/changelogs/index.md +46 -0
- package/bundle/docs/changelogs/latest.md +82 -100
- package/bundle/docs/changelogs/preview.md +82 -115
- package/bundle/{formatError-M4GLDFGE.js → formatError-PB6SEHWE.js} +2 -2
- package/bundle/{formatError-QOZLAZ32.js → formatError-QRSNJJ27.js} +2 -2
- package/bundle/{formatError-FYLLVZDF.js → formatError-UQIP4FYJ.js} +2 -2
- package/bundle/formatError-VMFHOWIU.js +14 -0
- package/bundle/{gemini-AYDYW6NZ.js → gemini-2SZFXE54.js} +18 -17
- package/bundle/{gemini-PG2FEK5D.js → gemini-OAKFBKMR.js} +227 -210
- package/bundle/{gemini-FRSP6LA3.js → gemini-TQYJRVJP.js} +18 -17
- package/bundle/gemini-XDU3J5JT.js +20021 -0
- package/bundle/gemini.js +8 -8
- package/bundle/{interactiveCli-76LAQB3B.js → interactiveCli-JWB6WIB2.js} +157 -32
- package/bundle/{interactiveCli-BYWR7IEK.js → interactiveCli-L5IOZTYF.js} +157 -32
- package/bundle/{interactiveCli-6TVFB4R5.js → interactiveCli-NBZDIAPD.js} +468 -324
- package/bundle/interactiveCli-W4IK4C6F.js +36447 -0
- package/bundle/{liteRtServerManager-GIRVSE6M.js → liteRtServerManager-GSYRGOB6.js} +4 -4
- package/bundle/{liteRtServerManager-KZ62KJW3.js → liteRtServerManager-I7YVNS3P.js} +4 -4
- package/bundle/{liteRtServerManager-BYJWS5BO.js → liteRtServerManager-OZPOFTLT.js} +4 -4
- package/bundle/liteRtServerManager-YUBDDMLI.js +65 -0
- package/bundle/{oauth2-provider-SFFQQ6OE.js → oauth2-provider-A6N22HUD.js} +1 -1
- package/bundle/{oauth2-provider-SRH6I6G7.js → oauth2-provider-JAYH53PG.js} +41 -79
- package/bundle/oauth2-provider-OUKCCXVS.js +273 -0
- package/bundle/{oauth2-provider-ZBFFAIQE.js → oauth2-provider-XADKJYM3.js} +1 -1
- package/bundle/{start-PLK5XHJC.js → start-7ZXOELXX.js} +6 -6
- package/bundle/{start-Q66LTS3Y.js → start-JF7ODMH2.js} +6 -6
- package/bundle/{start-OLEVDFQS.js → start-O7HDURUW.js} +6 -6
- package/bundle/start-X3ZAZW66.js +18 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EUUDSNXQ.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-A3SNIZ4K.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -69,16 +69,16 @@ import {
|
|
|
69
69
|
use_stdin_default,
|
|
70
70
|
use_stdout_default,
|
|
71
71
|
validateCustomTheme
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-74F5ZRXI.js";
|
|
73
73
|
import {
|
|
74
74
|
isDevelopment,
|
|
75
75
|
require_semver
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-YEEWGYBU.js";
|
|
77
77
|
import {
|
|
78
78
|
emptyIcon,
|
|
79
79
|
mapCoreStatusToDisplayStatus,
|
|
80
80
|
require_react
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-YYWNIP3F.js";
|
|
82
82
|
import {
|
|
83
83
|
ALL_EDITORS,
|
|
84
84
|
ApprovalMode,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
unescapePath,
|
|
257
257
|
validateUrlDestination,
|
|
258
258
|
wo
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-6FOUJKOM.js";
|
|
260
260
|
import {
|
|
261
261
|
require_src
|
|
262
262
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -35007,7 +35007,7 @@ var authCommand = {
|
|
|
35007
35007
|
import process12 from "node:process";
|
|
35008
35008
|
|
|
35009
35009
|
// packages/cli/src/generated/git-commit.ts
|
|
35010
|
-
var GIT_COMMIT_INFO = "
|
|
35010
|
+
var GIT_COMMIT_INFO = "eecccfcd5";
|
|
35011
35011
|
|
|
35012
35012
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
35013
35013
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -40829,7 +40829,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
40829
40829
|
type: "info",
|
|
40830
40830
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
40831
40831
|
});
|
|
40832
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
40832
|
+
const { MCPOAuthProvider } = await import("./core-DQSJHYG4.js");
|
|
40833
40833
|
let oauthConfig = server.oauth;
|
|
40834
40834
|
if (!oauthConfig) {
|
|
40835
40835
|
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-GMYJWERY.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -69,22 +69,24 @@ import {
|
|
|
69
69
|
use_stdin_default,
|
|
70
70
|
use_stdout_default,
|
|
71
71
|
validateCustomTheme
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-YVZ2JHAE.js";
|
|
73
73
|
import {
|
|
74
74
|
isDevelopment,
|
|
75
75
|
require_semver
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-QVVBLU5B.js";
|
|
77
77
|
import {
|
|
78
78
|
emptyIcon,
|
|
79
79
|
mapCoreStatusToDisplayStatus,
|
|
80
80
|
require_react
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-S53XQOHZ.js";
|
|
82
82
|
import {
|
|
83
83
|
ALL_EDITORS,
|
|
84
84
|
ApprovalMode,
|
|
85
85
|
AsyncFzf,
|
|
86
|
+
AuthType,
|
|
86
87
|
Config,
|
|
87
88
|
CoreEvent,
|
|
89
|
+
CoreToolCallStatus,
|
|
88
90
|
Cs,
|
|
89
91
|
DEFAULT_GEMINI_MODEL_AUTO,
|
|
90
92
|
DEFAULT_HEATMAP_WINDOW_DAYS,
|
|
@@ -103,22 +105,33 @@ import {
|
|
|
103
105
|
GEMINI_MODEL_ALIAS_FLASH,
|
|
104
106
|
GEMINI_MODEL_ALIAS_FLASH_LITE,
|
|
105
107
|
GEMINI_MODEL_ALIAS_PRO,
|
|
108
|
+
HookType,
|
|
109
|
+
IDEConnectionStatus,
|
|
106
110
|
INITIAL_HISTORY_LENGTH,
|
|
107
111
|
IdeClient,
|
|
108
112
|
IdeConnectionEvent,
|
|
113
|
+
IdeConnectionType,
|
|
114
|
+
IntegrityDataStatus,
|
|
109
115
|
KeychainTokenStorage,
|
|
116
|
+
LlmRole,
|
|
117
|
+
MCPDiscoveryState,
|
|
110
118
|
MCPOAuthTokenStorage,
|
|
119
|
+
MCPServerStatus,
|
|
111
120
|
ModelSlashCommandEvent,
|
|
112
121
|
PREVIEW_GEMINI_MODEL_AUTO,
|
|
122
|
+
PolicyDecision,
|
|
113
123
|
ProjectIdRequiredError,
|
|
114
124
|
REFERENCE_CONTENT_END,
|
|
115
125
|
REFERENCE_CONTENT_START,
|
|
116
126
|
ReadManyFilesTool,
|
|
117
127
|
RewindEvent,
|
|
118
128
|
SHELL_TOOL_NAME,
|
|
129
|
+
SessionEndReason,
|
|
130
|
+
SessionStartSource,
|
|
119
131
|
ShellExecutionService,
|
|
120
132
|
StartSessionEvent,
|
|
121
133
|
Storage,
|
|
134
|
+
TrustLevel,
|
|
122
135
|
UPGRADE_URL_PAGE,
|
|
123
136
|
UserAccountManager,
|
|
124
137
|
VALID_GEMINI_MODELS,
|
|
@@ -256,7 +269,7 @@ import {
|
|
|
256
269
|
unescapePath,
|
|
257
270
|
validateUrlDestination,
|
|
258
271
|
wo
|
|
259
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-7WYEB7FO.js";
|
|
260
273
|
import {
|
|
261
274
|
require_src
|
|
262
275
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -11221,17 +11234,17 @@ var require_core2 = __commonJS({
|
|
|
11221
11234
|
// packages/cli/src/config/auth.ts
|
|
11222
11235
|
async function validateAuthMethod(authMethod) {
|
|
11223
11236
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
11224
|
-
if (authMethod ===
|
|
11237
|
+
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
|
|
11225
11238
|
return null;
|
|
11226
11239
|
}
|
|
11227
|
-
if (authMethod ===
|
|
11240
|
+
if (authMethod === AuthType.USE_GEMINI) {
|
|
11228
11241
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
11229
11242
|
if (!key) {
|
|
11230
11243
|
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)!";
|
|
11231
11244
|
}
|
|
11232
11245
|
return null;
|
|
11233
11246
|
}
|
|
11234
|
-
if (authMethod ===
|
|
11247
|
+
if (authMethod === AuthType.USE_VERTEX_AI) {
|
|
11235
11248
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
11236
11249
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
11237
11250
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -16923,7 +16936,7 @@ var import_react8 = __toESM(require_react(), 1);
|
|
|
16923
16936
|
function useIdeTrustListener() {
|
|
16924
16937
|
const settings = useSettings();
|
|
16925
16938
|
const [connectionStatus, setConnectionStatus] = (0, import_react8.useState)(
|
|
16926
|
-
|
|
16939
|
+
IDEConnectionStatus.Disconnected
|
|
16927
16940
|
);
|
|
16928
16941
|
const previousTrust = (0, import_react8.useRef)(void 0);
|
|
16929
16942
|
const [restartReason, setRestartReason] = (0, import_react8.useState)("NONE");
|
|
@@ -16953,7 +16966,7 @@ function useIdeTrustListener() {
|
|
|
16953
16966
|
};
|
|
16954
16967
|
}, []);
|
|
16955
16968
|
const getSnapshot = () => {
|
|
16956
|
-
if (connectionStatus !==
|
|
16969
|
+
if (connectionStatus !== IDEConnectionStatus.Connected) {
|
|
16957
16970
|
return void 0;
|
|
16958
16971
|
}
|
|
16959
16972
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -17658,7 +17671,7 @@ async function initializeApp(config, settings) {
|
|
|
17658
17671
|
await ideClient.connect();
|
|
17659
17672
|
logIdeConnection(
|
|
17660
17673
|
config,
|
|
17661
|
-
new IdeConnectionEvent(
|
|
17674
|
+
new IdeConnectionEvent(IdeConnectionType.START)
|
|
17662
17675
|
);
|
|
17663
17676
|
}).catch((e) => {
|
|
17664
17677
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -22601,7 +22614,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
22601
22614
|
const trustedFolders = loadTrustedFolders();
|
|
22602
22615
|
await trustedFolders.setValue(
|
|
22603
22616
|
this.workspaceDir,
|
|
22604
|
-
|
|
22617
|
+
TrustLevel.TRUST_FOLDER
|
|
22605
22618
|
);
|
|
22606
22619
|
} else {
|
|
22607
22620
|
throw new Error(
|
|
@@ -22799,7 +22812,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
22799
22812
|
newExtensionConfig.version,
|
|
22800
22813
|
previousExtensionConfig.version,
|
|
22801
22814
|
installMetadata.type,
|
|
22802
|
-
|
|
22815
|
+
CoreToolCallStatus.Success
|
|
22803
22816
|
)
|
|
22804
22817
|
);
|
|
22805
22818
|
if (newExtensionName !== previousName) {
|
|
@@ -22822,7 +22835,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
22822
22835
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
22823
22836
|
newExtensionConfig.version,
|
|
22824
22837
|
installMetadata.type,
|
|
22825
|
-
|
|
22838
|
+
CoreToolCallStatus.Success
|
|
22826
22839
|
)
|
|
22827
22840
|
);
|
|
22828
22841
|
await this.enableExtension(
|
|
@@ -22870,7 +22883,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
22870
22883
|
newExtensionConfig?.version ?? "",
|
|
22871
22884
|
previousExtensionConfig.version,
|
|
22872
22885
|
installMetadata.type,
|
|
22873
|
-
|
|
22886
|
+
CoreToolCallStatus.Error
|
|
22874
22887
|
)
|
|
22875
22888
|
);
|
|
22876
22889
|
} else {
|
|
@@ -22882,7 +22895,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
22882
22895
|
extensionId ?? "",
|
|
22883
22896
|
newExtensionConfig?.version ?? "",
|
|
22884
22897
|
installMetadata.type,
|
|
22885
|
-
|
|
22898
|
+
CoreToolCallStatus.Error
|
|
22886
22899
|
)
|
|
22887
22900
|
);
|
|
22888
22901
|
}
|
|
@@ -22910,7 +22923,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
22910
22923
|
extension.name,
|
|
22911
22924
|
hashValue(extension.name),
|
|
22912
22925
|
extension.id,
|
|
22913
|
-
|
|
22926
|
+
CoreToolCallStatus.Success
|
|
22914
22927
|
)
|
|
22915
22928
|
);
|
|
22916
22929
|
}
|
|
@@ -23176,7 +23189,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
23176
23189
|
if (eventHooks) {
|
|
23177
23190
|
for (const definition of eventHooks) {
|
|
23178
23191
|
for (const hook of definition.hooks) {
|
|
23179
|
-
if (hook.type ===
|
|
23192
|
+
if (hook.type === HookType.Command) {
|
|
23180
23193
|
hook.env = { ...hook.env, ...hookEnv };
|
|
23181
23194
|
}
|
|
23182
23195
|
}
|
|
@@ -24339,7 +24352,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
24339
24352
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
24340
24353
|
name: `resources/read (${resource.serverName})`,
|
|
24341
24354
|
description: resource.uri,
|
|
24342
|
-
status:
|
|
24355
|
+
status: CoreToolCallStatus.Success,
|
|
24343
24356
|
isClientInitiated: true,
|
|
24344
24357
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
24345
24358
|
confirmationDetails: void 0
|
|
@@ -24354,7 +24367,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
24354
24367
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
24355
24368
|
name: `resources/read (${resource.serverName})`,
|
|
24356
24369
|
description: resource.uri,
|
|
24357
|
-
status:
|
|
24370
|
+
status: CoreToolCallStatus.Error,
|
|
24358
24371
|
isClientInitiated: true,
|
|
24359
24372
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
24360
24373
|
confirmationDetails: void 0
|
|
@@ -24379,7 +24392,7 @@ Content from @${result.uri}:
|
|
|
24379
24392
|
}
|
|
24380
24393
|
if (hasError) {
|
|
24381
24394
|
const firstError = displays.find(
|
|
24382
|
-
(d) => d.status ===
|
|
24395
|
+
(d) => d.status === CoreToolCallStatus.Error
|
|
24383
24396
|
);
|
|
24384
24397
|
return {
|
|
24385
24398
|
parts: [],
|
|
@@ -24418,7 +24431,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
24418
24431
|
callId: `client-read-${userMessageTimestamp}`,
|
|
24419
24432
|
name: readManyFilesTool.displayName,
|
|
24420
24433
|
description: invocation.getDescription(),
|
|
24421
|
-
status:
|
|
24434
|
+
status: CoreToolCallStatus.Success,
|
|
24422
24435
|
isClientInitiated: true,
|
|
24423
24436
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
24424
24437
|
confirmationDetails: void 0
|
|
@@ -24467,7 +24480,7 @@ Content from @${displayPath}:
|
|
|
24467
24480
|
callId: `client-read-${userMessageTimestamp}`,
|
|
24468
24481
|
name: readManyFilesTool.displayName,
|
|
24469
24482
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
24470
|
-
status:
|
|
24483
|
+
status: CoreToolCallStatus.Error,
|
|
24471
24484
|
isClientInitiated: true,
|
|
24472
24485
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
24473
24486
|
confirmationDetails: void 0
|
|
@@ -27734,7 +27747,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
27734
27747
|
if (wasRaw) {
|
|
27735
27748
|
setRawMode?.(true);
|
|
27736
27749
|
}
|
|
27737
|
-
coreEvents.emit(
|
|
27750
|
+
coreEvents.emit(CoreEvent.ExternalEditorClosed);
|
|
27738
27751
|
}
|
|
27739
27752
|
}
|
|
27740
27753
|
|
|
@@ -30428,7 +30441,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
30428
30441
|
extension.name,
|
|
30429
30442
|
installMetadata
|
|
30430
30443
|
);
|
|
30431
|
-
if (status ===
|
|
30444
|
+
if (status === IntegrityDataStatus.INVALID) {
|
|
30432
30445
|
throw new Error("Extension integrity cannot be verified");
|
|
30433
30446
|
}
|
|
30434
30447
|
} catch (e) {
|
|
@@ -31934,11 +31947,11 @@ var ShellProcessor = class {
|
|
|
31934
31947
|
},
|
|
31935
31948
|
void 0
|
|
31936
31949
|
);
|
|
31937
|
-
if (decision ===
|
|
31950
|
+
if (decision === PolicyDecision.DENY) {
|
|
31938
31951
|
throw new Error(
|
|
31939
31952
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
31940
31953
|
);
|
|
31941
|
-
} else if (decision ===
|
|
31954
|
+
} else if (decision === PolicyDecision.ASK_USER) {
|
|
31942
31955
|
commandsToConfirm.add(command);
|
|
31943
31956
|
}
|
|
31944
31957
|
}
|
|
@@ -33068,7 +33081,7 @@ var MultiFolderTrustDialog = ({
|
|
|
33068
33081
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
33069
33082
|
await trustedFolders.setValue(
|
|
33070
33083
|
expandedPath,
|
|
33071
|
-
|
|
33084
|
+
TrustLevel.TRUST_FOLDER
|
|
33072
33085
|
);
|
|
33073
33086
|
}
|
|
33074
33087
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -33399,10 +33412,10 @@ function isShellTool(name) {
|
|
|
33399
33412
|
return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
|
|
33400
33413
|
}
|
|
33401
33414
|
function isThisShellFocusable(name, status, config) {
|
|
33402
|
-
return !!(isShellTool(name) && status ===
|
|
33415
|
+
return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && config?.getEnableInteractiveShell());
|
|
33403
33416
|
}
|
|
33404
33417
|
function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
|
|
33405
|
-
return !!(isShellTool(name) && status ===
|
|
33418
|
+
return !!(isShellTool(name) && status === CoreToolCallStatus.Executing && ptyId === activeShellPtyId && embeddedShellFocused);
|
|
33406
33419
|
}
|
|
33407
33420
|
function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
|
|
33408
33421
|
const [userHasFocused, setUserHasFocused] = (0, import_react30.useState)(false);
|
|
@@ -33562,14 +33575,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
|
|
|
33562
33575
|
if (isTrackedToolCall(t)) {
|
|
33563
33576
|
return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
|
|
33564
33577
|
} else {
|
|
33565
|
-
return t.status !==
|
|
33578
|
+
return t.status !== CoreToolCallStatus.Success && t.status !== CoreToolCallStatus.Error && t.status !== CoreToolCallStatus.Cancelled;
|
|
33566
33579
|
}
|
|
33567
33580
|
});
|
|
33568
33581
|
const isEmbeddedShellFocused = toolsToInspect.some((t) => {
|
|
33569
33582
|
if (isTrackedToolCall(t)) {
|
|
33570
33583
|
return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
|
|
33571
33584
|
} else {
|
|
33572
|
-
return isShellTool(t.name) && t.status ===
|
|
33585
|
+
return isShellTool(t.name) && t.status === CoreToolCallStatus.Executing && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
|
|
33573
33586
|
}
|
|
33574
33587
|
});
|
|
33575
33588
|
const isShellCommand = toolsToInspect.some((t) => {
|
|
@@ -35007,7 +35020,7 @@ var authCommand = {
|
|
|
35007
35020
|
import process12 from "node:process";
|
|
35008
35021
|
|
|
35009
35022
|
// packages/cli/src/generated/git-commit.ts
|
|
35010
|
-
var GIT_COMMIT_INFO = "
|
|
35023
|
+
var GIT_COMMIT_INFO = "eecccfcd5";
|
|
35011
35024
|
|
|
35012
35025
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
35013
35026
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -35653,7 +35666,7 @@ var clearCommand = {
|
|
|
35653
35666
|
const config = context.services.agentContext?.config;
|
|
35654
35667
|
const hookSystem = config?.getHookSystem();
|
|
35655
35668
|
if (hookSystem) {
|
|
35656
|
-
await hookSystem.fireSessionEndEvent(
|
|
35669
|
+
await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
|
|
35657
35670
|
}
|
|
35658
35671
|
config?.injectionService.clear();
|
|
35659
35672
|
let newSessionId;
|
|
@@ -35670,7 +35683,7 @@ var clearCommand = {
|
|
|
35670
35683
|
}
|
|
35671
35684
|
let result;
|
|
35672
35685
|
if (hookSystem) {
|
|
35673
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
35686
|
+
result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
|
|
35674
35687
|
}
|
|
35675
35688
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
35676
35689
|
if (config) {
|
|
@@ -38679,7 +38692,7 @@ var Footer = () => {
|
|
|
38679
38692
|
case "auth": {
|
|
38680
38693
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
38681
38694
|
if (!authType) break;
|
|
38682
|
-
const displayStr = authType ===
|
|
38695
|
+
const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
|
|
38683
38696
|
addCol(
|
|
38684
38697
|
id,
|
|
38685
38698
|
header,
|
|
@@ -40478,12 +40491,12 @@ import path28 from "node:path";
|
|
|
40478
40491
|
function getIdeStatusMessage(ideClient) {
|
|
40479
40492
|
const connection = ideClient.getConnectionStatus();
|
|
40480
40493
|
switch (connection.status) {
|
|
40481
|
-
case
|
|
40494
|
+
case IDEConnectionStatus.Connected:
|
|
40482
40495
|
return {
|
|
40483
40496
|
messageType: "info",
|
|
40484
40497
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
40485
40498
|
};
|
|
40486
|
-
case
|
|
40499
|
+
case IDEConnectionStatus.Connecting:
|
|
40487
40500
|
return {
|
|
40488
40501
|
messageType: "info",
|
|
40489
40502
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -40524,7 +40537,7 @@ ${infoMessage}`;
|
|
|
40524
40537
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
40525
40538
|
const connection = ideClient.getConnectionStatus();
|
|
40526
40539
|
switch (connection.status) {
|
|
40527
|
-
case
|
|
40540
|
+
case IDEConnectionStatus.Connected: {
|
|
40528
40541
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
40529
40542
|
const context = ideContextStore.get();
|
|
40530
40543
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -40536,7 +40549,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
40536
40549
|
content
|
|
40537
40550
|
};
|
|
40538
40551
|
}
|
|
40539
|
-
case
|
|
40552
|
+
case IDEConnectionStatus.Connecting:
|
|
40540
40553
|
return {
|
|
40541
40554
|
messageType: "info",
|
|
40542
40555
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -40558,7 +40571,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
40558
40571
|
const ideClient = await IdeClient.getInstance();
|
|
40559
40572
|
if (value) {
|
|
40560
40573
|
await ideClient.connect(options);
|
|
40561
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
40574
|
+
logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
|
|
40562
40575
|
} else {
|
|
40563
40576
|
await ideClient.disconnect();
|
|
40564
40577
|
}
|
|
@@ -40646,7 +40659,7 @@ var ideCommand = async () => {
|
|
|
40646
40659
|
logToConsole: false
|
|
40647
40660
|
}
|
|
40648
40661
|
);
|
|
40649
|
-
if (ideClient.getConnectionStatus().status ===
|
|
40662
|
+
if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
|
|
40650
40663
|
break;
|
|
40651
40664
|
}
|
|
40652
40665
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -40723,7 +40736,7 @@ var ideCommand = async () => {
|
|
|
40723
40736
|
}
|
|
40724
40737
|
};
|
|
40725
40738
|
const { status } = ideClient.getConnectionStatus();
|
|
40726
|
-
const isConnected = status ===
|
|
40739
|
+
const isConnected = status === IDEConnectionStatus.Connected;
|
|
40727
40740
|
if (isConnected) {
|
|
40728
40741
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
40729
40742
|
} else {
|
|
@@ -40823,13 +40836,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
40823
40836
|
const displayListener = (message) => {
|
|
40824
40837
|
context.ui.addItem({ type: "info", text: message });
|
|
40825
40838
|
};
|
|
40826
|
-
coreEvents.on(
|
|
40839
|
+
coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
|
|
40827
40840
|
try {
|
|
40828
40841
|
context.ui.addItem({
|
|
40829
40842
|
type: "info",
|
|
40830
40843
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
40831
40844
|
});
|
|
40832
|
-
const { MCPOAuthProvider } = await import("./
|
|
40845
|
+
const { MCPOAuthProvider } = await import("./dist-YHW4CPAY.js");
|
|
40833
40846
|
let oauthConfig = server.oauth;
|
|
40834
40847
|
if (!oauthConfig) {
|
|
40835
40848
|
oauthConfig = { enabled: false };
|
|
@@ -40866,7 +40879,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
40866
40879
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
40867
40880
|
};
|
|
40868
40881
|
} finally {
|
|
40869
|
-
coreEvents.removeListener(
|
|
40882
|
+
coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
|
|
40870
40883
|
}
|
|
40871
40884
|
},
|
|
40872
40885
|
completion: async (context, partialArg) => {
|
|
@@ -40912,10 +40925,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
40912
40925
|
}
|
|
40913
40926
|
const serverNames = Object.keys(mcpServers);
|
|
40914
40927
|
const connectingServers = serverNames.filter(
|
|
40915
|
-
(name) => getMCPServerStatus(name) ===
|
|
40928
|
+
(name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
|
|
40916
40929
|
);
|
|
40917
40930
|
const discoveryState = getMCPDiscoveryState();
|
|
40918
|
-
const discoveryInProgress = discoveryState ===
|
|
40931
|
+
const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
|
|
40919
40932
|
const allTools = toolRegistry.getAllTools();
|
|
40920
40933
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
40921
40934
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -56742,7 +56755,7 @@ Return a JSON object with:
|
|
|
56742
56755
|
},
|
|
56743
56756
|
abortSignal: new AbortController().signal,
|
|
56744
56757
|
promptId: "triage-duplicates",
|
|
56745
|
-
role:
|
|
56758
|
+
role: LlmRole.UTILITY_TOOL
|
|
56746
56759
|
});
|
|
56747
56760
|
const rec = response;
|
|
56748
56761
|
let canonical;
|
|
@@ -57576,7 +57589,7 @@ Return a JSON object with:
|
|
|
57576
57589
|
},
|
|
57577
57590
|
abortSignal: abortControllerRef.current.signal,
|
|
57578
57591
|
promptId: "triage-issues",
|
|
57579
|
-
role:
|
|
57592
|
+
role: LlmRole.UTILITY_TOOL
|
|
57580
57593
|
});
|
|
57581
57594
|
return response;
|
|
57582
57595
|
},
|
|
@@ -58150,8 +58163,8 @@ var planCommand = {
|
|
|
58150
58163
|
return;
|
|
58151
58164
|
}
|
|
58152
58165
|
const previousApprovalMode = config.getApprovalMode();
|
|
58153
|
-
config.setApprovalMode(
|
|
58154
|
-
if (previousApprovalMode !==
|
|
58166
|
+
config.setApprovalMode(ApprovalMode.PLAN);
|
|
58167
|
+
if (previousApprovalMode !== ApprovalMode.PLAN) {
|
|
58155
58168
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
58156
58169
|
}
|
|
58157
58170
|
if (context.invocation?.args) {
|
|
@@ -58210,10 +58223,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
58210
58223
|
rules.forEach((rule) => {
|
|
58211
58224
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
58212
58225
|
const modeSet = new Set(modes);
|
|
58213
|
-
if (modeSet.has(
|
|
58214
|
-
if (modeSet.has(
|
|
58215
|
-
if (modeSet.has(
|
|
58216
|
-
if (modeSet.has(
|
|
58226
|
+
if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
|
|
58227
|
+
if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
|
|
58228
|
+
if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
|
|
58229
|
+
if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
|
|
58217
58230
|
});
|
|
58218
58231
|
return result;
|
|
58219
58232
|
};
|
|
@@ -59652,7 +59665,7 @@ var upgradeCommand = {
|
|
|
59652
59665
|
action: async (context) => {
|
|
59653
59666
|
const config = context.services.agentContext?.config;
|
|
59654
59667
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
59655
|
-
if (authType !==
|
|
59668
|
+
if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
|
|
59656
59669
|
return {
|
|
59657
59670
|
type: "message",
|
|
59658
59671
|
messageType: "error",
|
|
@@ -59881,7 +59894,7 @@ var BuiltinCommandLoader = class {
|
|
|
59881
59894
|
setupGithubCommand,
|
|
59882
59895
|
terminalSetupCommand,
|
|
59883
59896
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
59884
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
59897
|
+
...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
|
|
59885
59898
|
];
|
|
59886
59899
|
handle?.end();
|
|
59887
59900
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YVHZS4VP.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DC6NT336.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthProviderType,
|
|
7
7
|
AuthType,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
require_shell_quote,
|
|
39
39
|
require_strip_json_comments,
|
|
40
40
|
sanitizeFilenamePart
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Y5DW673N.js";
|
|
42
42
|
import {
|
|
43
43
|
__commonJS,
|
|
44
44
|
__export,
|
|
@@ -31691,9 +31691,16 @@ var SessionSelector = class {
|
|
|
31691
31691
|
if (sessions.length === 0) {
|
|
31692
31692
|
throw SessionError.noSessionsFound();
|
|
31693
31693
|
}
|
|
31694
|
-
sessions.sort(
|
|
31695
|
-
|
|
31696
|
-
|
|
31694
|
+
sessions.sort((a, b) => {
|
|
31695
|
+
const timeA = new Date(a.lastUpdated).getTime() || 0;
|
|
31696
|
+
const timeB = new Date(b.lastUpdated).getTime() || 0;
|
|
31697
|
+
if (timeA !== timeB) {
|
|
31698
|
+
return timeA - timeB;
|
|
31699
|
+
}
|
|
31700
|
+
const startA = new Date(a.startTime).getTime() || 0;
|
|
31701
|
+
const startB = new Date(b.startTime).getTime() || 0;
|
|
31702
|
+
return startA - startB;
|
|
31703
|
+
});
|
|
31697
31704
|
selectedSession = sessions[sessions.length - 1];
|
|
31698
31705
|
} else {
|
|
31699
31706
|
try {
|