@google/gemini-cli 0.60.0-preview.0 → 0.61.0-nightly.20260909.ged2ac40df
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-ZX526LXA.js → chunk-3OTKJGN2.js} +7 -7
- package/bundle/{chunk-ZOCA7DR7.js → chunk-3P3BK2TC.js} +2 -2
- package/bundle/{chunk-CJ3F2CF4.js → chunk-4GFDY7WB.js} +2 -2
- package/bundle/{chunk-RY7G2LHR.js → chunk-6CG3PRXG.js} +1 -1
- package/bundle/{chunk-FZ5V6AOR.js → chunk-6SVZC6SZ.js} +1 -1
- package/bundle/{chunk-JO3EXXPQ.js → chunk-6TKDB4RW.js} +1 -1
- package/bundle/{chunk-WSRDZIEX.js → chunk-72RRXB4E.js} +8 -5
- package/bundle/{chunk-MHUSLH6Z.js → chunk-A6ULTOE7.js} +67 -54
- package/bundle/{chunk-HSV5XF4Y.js → chunk-AIOZQDNS.js} +1 -1
- package/bundle/{chunk-6JC2DFFV.js → chunk-CMP3WNPY.js} +7 -7
- package/bundle/{chunk-MOFAO64Q.js → chunk-DHG4ARAF.js} +1 -1
- package/bundle/chunk-ESBXUM66.js +399011 -0
- package/bundle/{chunk-3BBEM33B.js → chunk-G2HNVZYL.js} +1 -1
- package/bundle/{chunk-AS5HUHJQ.js → chunk-GSMKZNYD.js} +1 -1
- package/bundle/chunk-GXBVYRZC.js +1571 -0
- package/bundle/{chunk-B35ENJ4E.js → chunk-ICEYWU2S.js} +2 -2
- package/bundle/{chunk-GXZJHUYG.js → chunk-KG5DGMJV.js} +3 -3
- package/bundle/{chunk-QKQP4OAM.js → chunk-L4CU45UU.js} +7748 -14586
- package/bundle/{chunk-SZWITNYT.js → chunk-LNLXANUU.js} +1 -1
- package/bundle/{chunk-VWG6RSQF.js → chunk-NRI447XR.js} +3 -3
- package/bundle/{chunk-OXCETUAV.js → chunk-OFCWTOPE.js} +9 -8
- package/bundle/chunk-OGNWA4NU.js +17353 -0
- package/bundle/chunk-OHLLQDZK.js +102670 -0
- package/bundle/{chunk-MNWBDZEW.js → chunk-OZHDMU2F.js} +1 -1
- package/bundle/chunk-PGLYJVDY.js +398 -0
- package/bundle/chunk-QNFTNAZ3.js +512 -0
- package/bundle/{chunk-KJ3DSGP6.js → chunk-RRFXRV32.js} +7 -7
- package/bundle/{chunk-CBLSL3EM.js → chunk-V2DJ3GMS.js} +1 -1
- package/bundle/{chunk-Z3ZCNEN5.js → chunk-VT6H7JMR.js} +3 -3
- package/bundle/{chunk-IIXMDKNQ.js → chunk-W5JPEXLZ.js} +7 -7
- package/bundle/chunk-WGNTEF5G.js +154 -0
- package/bundle/chunk-YLYKYWW3.js +118 -0
- package/bundle/{cleanup-3NLZUFCB.js → cleanup-CQDZD6OH.js} +2 -2
- package/bundle/{cleanup-WA2HUZYP.js → cleanup-MJXZWPAB.js} +2 -2
- package/bundle/{cleanup-WSQUEKV4.js → cleanup-NE3WAKA7.js} +2 -2
- package/bundle/cleanup-W7HO5CNI.js +32 -0
- package/bundle/{core-X7B62CE3.js → core-TD3QT7YV.js} +1 -1
- package/bundle/{devtoolsService-IFCLCSNA.js → devtoolsService-5F6M45NJ.js} +2 -2
- package/bundle/{devtoolsService-4UGAYGLM.js → devtoolsService-HZ4GVNIF.js} +2 -2
- package/bundle/{devtoolsService-77KBSPWB.js → devtoolsService-IEHCU262.js} +4 -3
- package/bundle/devtoolsService-ZAAGYX2P.js +4359 -0
- package/bundle/{dist-VKHG4X3B.js → dist-5GW7SAKM.js} +1 -1
- package/bundle/{core-25XEBKOQ.js → dist-634QHCLR.js} +1 -1
- package/bundle/dist-S2NRVNNH.js +2216 -0
- package/bundle/docs/changelogs/index.md +12 -0
- package/bundle/docs/changelogs/latest.md +22 -32
- package/bundle/docs/changelogs/preview.md +54 -17
- package/bundle/{gemini-4L7IGTB3.js → gemini-EXHNC3P2.js} +14 -14
- package/bundle/{gemini-MPHWQGRY.js → gemini-UH4D7QQO.js} +214 -198
- package/bundle/{gemini-CXRDUIMP.js → gemini-ZMC7Y4M5.js} +14 -14
- package/bundle/gemini-ZYZPV75S.js +17432 -0
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-RJOWMONA.js → interactiveCli-DPNMRBAJ.js} +8 -8
- package/bundle/{interactiveCli-JODN5SQN.js → interactiveCli-K2X4WXE2.js} +8 -8
- package/bundle/{interactiveCli-DVEN62HN.js → interactiveCli-S4QZUDTB.js} +315 -296
- package/bundle/interactiveCli-SHWIRB7J.js +34983 -0
- package/bundle/{liteRtServerManager-4SSYZUK3.js → liteRtServerManager-2HEYKFZ4.js} +4 -4
- package/bundle/{liteRtServerManager-M3O7V7NG.js → liteRtServerManager-QHUT3M3M.js} +4 -4
- package/bundle/{liteRtServerManager-2BNWXU4Z.js → liteRtServerManager-TJZWOKLH.js} +4 -4
- package/bundle/liteRtServerManager-YKNVLCAP.js +65 -0
- package/bundle/{oauth2-provider-AB6H7OQC.js → oauth2-provider-4A2OGPBN.js} +1 -1
- package/bundle/{oauth2-provider-4YN5U44E.js → oauth2-provider-MKQTXOA2.js} +38 -72
- package/bundle/oauth2-provider-RGVHFZHN.js +235 -0
- package/bundle/{oauth2-provider-RN6EIMPY.js → oauth2-provider-UMQ4PPFM.js} +1 -1
- package/bundle/{start-GCL5I7SK.js → start-5UZF6OUJ.js} +6 -6
- package/bundle/{start-S3YRO6NU.js → start-JPSB6LGS.js} +6 -6
- package/bundle/{start-26ICYOUJ.js → start-OFOFQ2WO.js} +6 -6
- package/bundle/start-PQKM3CTE.js +18 -0
- package/package.json +1 -1
|
@@ -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-6SVZC6SZ.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-72RRXB4E.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PGLYJVDY.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-LNLXANUU.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
tokenLimit,
|
|
245
245
|
uiTelemetryService,
|
|
246
246
|
unescapePath
|
|
247
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-CMP3WNPY.js";
|
|
248
248
|
import {
|
|
249
249
|
require_src
|
|
250
250
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -77340,7 +77340,7 @@ var authCommand = {
|
|
|
77340
77340
|
import process29 from "node:process";
|
|
77341
77341
|
|
|
77342
77342
|
// packages/cli/src/generated/git-commit.ts
|
|
77343
|
-
var GIT_COMMIT_INFO = "
|
|
77343
|
+
var GIT_COMMIT_INFO = "ed2ac40df";
|
|
77344
77344
|
|
|
77345
77345
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77346
77346
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -83121,7 +83121,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83121
83121
|
type: "info",
|
|
83122
83122
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83123
83123
|
});
|
|
83124
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
83124
|
+
const { MCPOAuthProvider } = await import("./dist-S2NRVNNH.js");
|
|
83125
83125
|
let oauthConfig = server.oauth;
|
|
83126
83126
|
if (!oauthConfig) {
|
|
83127
83127
|
oauthConfig = { enabled: false };
|
|
@@ -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-WGNTEF5G.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L4CU45UU.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-OZHDMU2F.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRFXRV32.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-6TKDB4RW.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
AuthProviderType,
|
|
4
|
+
AuthType,
|
|
5
|
+
CoreEvent,
|
|
6
|
+
CoreToolCallStatus,
|
|
4
7
|
DEFAULT_MODEL_CONFIGS,
|
|
5
8
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
6
9
|
EDITOR_OPTIONS,
|
|
@@ -30,7 +33,7 @@ import {
|
|
|
30
33
|
partListUnionToString,
|
|
31
34
|
require_strip_json_comments,
|
|
32
35
|
sanitizeFilenamePart
|
|
33
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CMP3WNPY.js";
|
|
34
37
|
import {
|
|
35
38
|
__commonJS,
|
|
36
39
|
__require,
|
|
@@ -10227,7 +10230,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10227
10230
|
args: tool.args,
|
|
10228
10231
|
description: tool.description || "",
|
|
10229
10232
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10230
|
-
status: tool.status === "success" ?
|
|
10233
|
+
status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
|
|
10231
10234
|
resultDisplay: tool.resultDisplay,
|
|
10232
10235
|
confirmationDetails: void 0
|
|
10233
10236
|
}))
|
|
@@ -16291,8 +16294,8 @@ var LoadedSettings = class {
|
|
|
16291
16294
|
// React will pass a listener fn into this subscribe fn
|
|
16292
16295
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16293
16296
|
subscribe(listener) {
|
|
16294
|
-
coreEvents.on(
|
|
16295
|
-
return () => coreEvents.off(
|
|
16297
|
+
coreEvents.on(CoreEvent.SettingsChanged, listener);
|
|
16298
|
+
return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
|
|
16296
16299
|
}
|
|
16297
16300
|
getSnapshot() {
|
|
16298
16301
|
return this._snapshot;
|
|
@@ -16436,7 +16439,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
16436
16439
|
}
|
|
16437
16440
|
}
|
|
16438
16441
|
let value = "cloudshell-gca";
|
|
16439
|
-
if (selectedAuthType ===
|
|
16442
|
+
if (selectedAuthType === AuthType.USE_VERTEX_AI) {
|
|
16440
16443
|
value = process2.env[USER_GCP_PROJECT];
|
|
16441
16444
|
}
|
|
16442
16445
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|
|
@@ -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-GXBVYRZC.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,20 +59,22 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6CG3PRXG.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-ICEYWU2S.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-QNFTNAZ3.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
73
73
|
AsyncFzf,
|
|
74
|
+
AuthType,
|
|
74
75
|
Config,
|
|
75
76
|
CoreEvent,
|
|
77
|
+
CoreToolCallStatus,
|
|
76
78
|
DiscoveredMCPTool,
|
|
77
79
|
ExtensionDisableEvent,
|
|
78
80
|
ExtensionEnableEvent,
|
|
@@ -83,20 +85,31 @@ import {
|
|
|
83
85
|
ExtensionUpdateEvent,
|
|
84
86
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
85
87
|
GEMINI_DIR,
|
|
88
|
+
HookType,
|
|
89
|
+
IDEConnectionStatus,
|
|
86
90
|
INITIAL_HISTORY_LENGTH,
|
|
87
91
|
IdeClient,
|
|
88
92
|
IdeConnectionEvent,
|
|
93
|
+
IdeConnectionType,
|
|
94
|
+
IntegrityDataStatus,
|
|
89
95
|
KeychainTokenStorage,
|
|
96
|
+
LlmRole,
|
|
97
|
+
MCPDiscoveryState,
|
|
90
98
|
MCPOAuthTokenStorage,
|
|
99
|
+
MCPServerStatus,
|
|
91
100
|
ModelSlashCommandEvent,
|
|
101
|
+
PolicyDecision,
|
|
92
102
|
ProjectIdRequiredError,
|
|
93
103
|
REFERENCE_CONTENT_END,
|
|
94
104
|
REFERENCE_CONTENT_START,
|
|
95
105
|
ReadManyFilesTool,
|
|
96
106
|
RewindEvent,
|
|
107
|
+
SessionEndReason,
|
|
108
|
+
SessionStartSource,
|
|
97
109
|
ShellExecutionService,
|
|
98
110
|
StartSessionEvent,
|
|
99
111
|
Storage,
|
|
112
|
+
TrustLevel,
|
|
100
113
|
UPGRADE_URL_PAGE,
|
|
101
114
|
UserAccountManager,
|
|
102
115
|
ValidationRequiredError,
|
|
@@ -231,7 +244,7 @@ import {
|
|
|
231
244
|
tokenLimit,
|
|
232
245
|
uiTelemetryService,
|
|
233
246
|
unescapePath
|
|
234
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-ESBXUM66.js";
|
|
235
248
|
import {
|
|
236
249
|
require_src
|
|
237
250
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -60077,7 +60090,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
60077
60090
|
function useIdeTrustListener() {
|
|
60078
60091
|
const settings = useSettings();
|
|
60079
60092
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
60080
|
-
|
|
60093
|
+
IDEConnectionStatus.Disconnected
|
|
60081
60094
|
);
|
|
60082
60095
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
60083
60096
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -60107,7 +60120,7 @@ function useIdeTrustListener() {
|
|
|
60107
60120
|
};
|
|
60108
60121
|
}, []);
|
|
60109
60122
|
const getSnapshot = () => {
|
|
60110
|
-
if (connectionStatus !==
|
|
60123
|
+
if (connectionStatus !== IDEConnectionStatus.Connected) {
|
|
60111
60124
|
return void 0;
|
|
60112
60125
|
}
|
|
60113
60126
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -60812,7 +60825,7 @@ async function initializeApp(config, settings) {
|
|
|
60812
60825
|
await ideClient.connect();
|
|
60813
60826
|
logIdeConnection(
|
|
60814
60827
|
config,
|
|
60815
|
-
new IdeConnectionEvent(
|
|
60828
|
+
new IdeConnectionEvent(IdeConnectionType.START)
|
|
60816
60829
|
);
|
|
60817
60830
|
}).catch((e) => {
|
|
60818
60831
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -60830,17 +60843,17 @@ async function initializeApp(config, settings) {
|
|
|
60830
60843
|
// packages/cli/src/config/auth.ts
|
|
60831
60844
|
async function validateAuthMethod(authMethod) {
|
|
60832
60845
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
60833
|
-
if (authMethod ===
|
|
60846
|
+
if (authMethod === AuthType.LOGIN_WITH_GOOGLE || authMethod === AuthType.COMPUTE_ADC) {
|
|
60834
60847
|
return null;
|
|
60835
60848
|
}
|
|
60836
|
-
if (authMethod ===
|
|
60849
|
+
if (authMethod === AuthType.USE_GEMINI) {
|
|
60837
60850
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
60838
60851
|
if (!key) {
|
|
60839
60852
|
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)!";
|
|
60840
60853
|
}
|
|
60841
60854
|
return null;
|
|
60842
60855
|
}
|
|
60843
|
-
if (authMethod ===
|
|
60856
|
+
if (authMethod === AuthType.USE_VERTEX_AI) {
|
|
60844
60857
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
60845
60858
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
60846
60859
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -65366,7 +65379,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
65366
65379
|
const trustedFolders = loadTrustedFolders();
|
|
65367
65380
|
await trustedFolders.setValue(
|
|
65368
65381
|
this.workspaceDir,
|
|
65369
|
-
|
|
65382
|
+
TrustLevel.TRUST_FOLDER
|
|
65370
65383
|
);
|
|
65371
65384
|
} else {
|
|
65372
65385
|
throw new Error(
|
|
@@ -65552,7 +65565,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65552
65565
|
newExtensionConfig.version,
|
|
65553
65566
|
previousExtensionConfig.version,
|
|
65554
65567
|
installMetadata.type,
|
|
65555
|
-
|
|
65568
|
+
CoreToolCallStatus.Success
|
|
65556
65569
|
)
|
|
65557
65570
|
);
|
|
65558
65571
|
if (newExtensionName !== previousName) {
|
|
@@ -65575,7 +65588,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65575
65588
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
65576
65589
|
newExtensionConfig.version,
|
|
65577
65590
|
installMetadata.type,
|
|
65578
|
-
|
|
65591
|
+
CoreToolCallStatus.Success
|
|
65579
65592
|
)
|
|
65580
65593
|
);
|
|
65581
65594
|
await this.enableExtension(
|
|
@@ -65608,7 +65621,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65608
65621
|
newExtensionConfig?.version ?? "",
|
|
65609
65622
|
previousExtensionConfig.version,
|
|
65610
65623
|
installMetadata.type,
|
|
65611
|
-
|
|
65624
|
+
CoreToolCallStatus.Error
|
|
65612
65625
|
)
|
|
65613
65626
|
);
|
|
65614
65627
|
} else {
|
|
@@ -65620,7 +65633,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65620
65633
|
extensionId ?? "",
|
|
65621
65634
|
newExtensionConfig?.version ?? "",
|
|
65622
65635
|
installMetadata.type,
|
|
65623
|
-
|
|
65636
|
+
CoreToolCallStatus.Error
|
|
65624
65637
|
)
|
|
65625
65638
|
);
|
|
65626
65639
|
}
|
|
@@ -65651,7 +65664,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65651
65664
|
extension.name,
|
|
65652
65665
|
hashValue(extension.name),
|
|
65653
65666
|
extension.id,
|
|
65654
|
-
|
|
65667
|
+
CoreToolCallStatus.Success
|
|
65655
65668
|
)
|
|
65656
65669
|
);
|
|
65657
65670
|
}
|
|
@@ -65913,7 +65926,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65913
65926
|
if (eventHooks) {
|
|
65914
65927
|
for (const definition of eventHooks) {
|
|
65915
65928
|
for (const hook of definition.hooks) {
|
|
65916
|
-
if (hook.type ===
|
|
65929
|
+
if (hook.type === HookType.Command) {
|
|
65917
65930
|
hook.env = { ...hook.env, ...hookEnv };
|
|
65918
65931
|
}
|
|
65919
65932
|
}
|
|
@@ -67016,7 +67029,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67016
67029
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67017
67030
|
name: `resources/read (${resource.serverName})`,
|
|
67018
67031
|
description: resource.uri,
|
|
67019
|
-
status:
|
|
67032
|
+
status: CoreToolCallStatus.Success,
|
|
67020
67033
|
isClientInitiated: true,
|
|
67021
67034
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
67022
67035
|
confirmationDetails: void 0
|
|
@@ -67031,7 +67044,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67031
67044
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67032
67045
|
name: `resources/read (${resource.serverName})`,
|
|
67033
67046
|
description: resource.uri,
|
|
67034
|
-
status:
|
|
67047
|
+
status: CoreToolCallStatus.Error,
|
|
67035
67048
|
isClientInitiated: true,
|
|
67036
67049
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
67037
67050
|
confirmationDetails: void 0
|
|
@@ -67056,7 +67069,7 @@ Content from @${result.uri}:
|
|
|
67056
67069
|
}
|
|
67057
67070
|
if (hasError) {
|
|
67058
67071
|
const firstError = displays.find(
|
|
67059
|
-
(d) => d.status ===
|
|
67072
|
+
(d) => d.status === CoreToolCallStatus.Error
|
|
67060
67073
|
);
|
|
67061
67074
|
return {
|
|
67062
67075
|
parts: [],
|
|
@@ -67097,7 +67110,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
67097
67110
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67098
67111
|
name: readManyFilesTool.displayName,
|
|
67099
67112
|
description: invocation.getDescription(),
|
|
67100
|
-
status:
|
|
67113
|
+
status: CoreToolCallStatus.Success,
|
|
67101
67114
|
isClientInitiated: true,
|
|
67102
67115
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
67103
67116
|
confirmationDetails: void 0
|
|
@@ -67144,7 +67157,7 @@ Content from @${displayPath}:
|
|
|
67144
67157
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67145
67158
|
name: readManyFilesTool.displayName,
|
|
67146
67159
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
67147
|
-
status:
|
|
67160
|
+
status: CoreToolCallStatus.Error,
|
|
67148
67161
|
isClientInitiated: true,
|
|
67149
67162
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
67150
67163
|
confirmationDetails: void 0
|
|
@@ -70411,7 +70424,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
70411
70424
|
if (wasRaw) {
|
|
70412
70425
|
setRawMode?.(true);
|
|
70413
70426
|
}
|
|
70414
|
-
coreEvents.emit(
|
|
70427
|
+
coreEvents.emit(CoreEvent.ExternalEditorClosed);
|
|
70415
70428
|
}
|
|
70416
70429
|
}
|
|
70417
70430
|
|
|
@@ -73106,7 +73119,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
73106
73119
|
extension.name,
|
|
73107
73120
|
installMetadata
|
|
73108
73121
|
);
|
|
73109
|
-
if (status ===
|
|
73122
|
+
if (status === IntegrityDataStatus.INVALID) {
|
|
73110
73123
|
throw new Error("Extension integrity cannot be verified");
|
|
73111
73124
|
}
|
|
73112
73125
|
} catch (e) {
|
|
@@ -74527,11 +74540,11 @@ var ShellProcessor = class {
|
|
|
74527
74540
|
},
|
|
74528
74541
|
void 0
|
|
74529
74542
|
);
|
|
74530
|
-
if (decision ===
|
|
74543
|
+
if (decision === PolicyDecision.DENY) {
|
|
74531
74544
|
throw new Error(
|
|
74532
74545
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
74533
74546
|
);
|
|
74534
|
-
} else if (decision ===
|
|
74547
|
+
} else if (decision === PolicyDecision.ASK_USER) {
|
|
74535
74548
|
commandsToConfirm.add(command);
|
|
74536
74549
|
}
|
|
74537
74550
|
}
|
|
@@ -75649,7 +75662,7 @@ var MultiFolderTrustDialog = ({
|
|
|
75649
75662
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
75650
75663
|
await trustedFolders.setValue(
|
|
75651
75664
|
expandedPath,
|
|
75652
|
-
|
|
75665
|
+
TrustLevel.TRUST_FOLDER
|
|
75653
75666
|
);
|
|
75654
75667
|
}
|
|
75655
75668
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -77327,7 +77340,7 @@ var authCommand = {
|
|
|
77327
77340
|
import process29 from "node:process";
|
|
77328
77341
|
|
|
77329
77342
|
// packages/cli/src/generated/git-commit.ts
|
|
77330
|
-
var GIT_COMMIT_INFO = "
|
|
77343
|
+
var GIT_COMMIT_INFO = "de2448a4f";
|
|
77331
77344
|
|
|
77332
77345
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77333
77346
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -77973,7 +77986,7 @@ var clearCommand = {
|
|
|
77973
77986
|
const config = context.services.agentContext?.config;
|
|
77974
77987
|
const hookSystem = config?.getHookSystem();
|
|
77975
77988
|
if (hookSystem) {
|
|
77976
|
-
await hookSystem.fireSessionEndEvent(
|
|
77989
|
+
await hookSystem.fireSessionEndEvent(SessionEndReason.Clear);
|
|
77977
77990
|
}
|
|
77978
77991
|
config?.injectionService.clear();
|
|
77979
77992
|
let newSessionId;
|
|
@@ -77990,7 +78003,7 @@ var clearCommand = {
|
|
|
77990
78003
|
}
|
|
77991
78004
|
let result;
|
|
77992
78005
|
if (hookSystem) {
|
|
77993
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
78006
|
+
result = await hookSystem.fireSessionStartEvent(SessionStartSource.Clear);
|
|
77994
78007
|
}
|
|
77995
78008
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
77996
78009
|
if (config) {
|
|
@@ -80989,7 +81002,7 @@ var Footer = () => {
|
|
|
80989
81002
|
case "auth": {
|
|
80990
81003
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
80991
81004
|
if (!authType) break;
|
|
80992
|
-
const displayStr = authType ===
|
|
81005
|
+
const displayStr = authType === AuthType.LOGIN_WITH_GOOGLE ? email ?? "google" : authType;
|
|
80993
81006
|
addCol(
|
|
80994
81007
|
id,
|
|
80995
81008
|
header,
|
|
@@ -82757,12 +82770,12 @@ import path29 from "node:path";
|
|
|
82757
82770
|
function getIdeStatusMessage(ideClient) {
|
|
82758
82771
|
const connection = ideClient.getConnectionStatus();
|
|
82759
82772
|
switch (connection.status) {
|
|
82760
|
-
case
|
|
82773
|
+
case IDEConnectionStatus.Connected:
|
|
82761
82774
|
return {
|
|
82762
82775
|
messageType: "info",
|
|
82763
82776
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
82764
82777
|
};
|
|
82765
|
-
case
|
|
82778
|
+
case IDEConnectionStatus.Connecting:
|
|
82766
82779
|
return {
|
|
82767
82780
|
messageType: "info",
|
|
82768
82781
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82803,7 +82816,7 @@ ${infoMessage}`;
|
|
|
82803
82816
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
82804
82817
|
const connection = ideClient.getConnectionStatus();
|
|
82805
82818
|
switch (connection.status) {
|
|
82806
|
-
case
|
|
82819
|
+
case IDEConnectionStatus.Connected: {
|
|
82807
82820
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
82808
82821
|
const context = ideContextStore.get();
|
|
82809
82822
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -82815,7 +82828,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
82815
82828
|
content
|
|
82816
82829
|
};
|
|
82817
82830
|
}
|
|
82818
|
-
case
|
|
82831
|
+
case IDEConnectionStatus.Connecting:
|
|
82819
82832
|
return {
|
|
82820
82833
|
messageType: "info",
|
|
82821
82834
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82837,7 +82850,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
82837
82850
|
const ideClient = await IdeClient.getInstance();
|
|
82838
82851
|
if (value) {
|
|
82839
82852
|
await ideClient.connect(options);
|
|
82840
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
82853
|
+
logIdeConnection(config, new IdeConnectionEvent(IdeConnectionType.SESSION));
|
|
82841
82854
|
} else {
|
|
82842
82855
|
await ideClient.disconnect();
|
|
82843
82856
|
}
|
|
@@ -82925,7 +82938,7 @@ var ideCommand = async () => {
|
|
|
82925
82938
|
logToConsole: false
|
|
82926
82939
|
}
|
|
82927
82940
|
);
|
|
82928
|
-
if (ideClient.getConnectionStatus().status ===
|
|
82941
|
+
if (ideClient.getConnectionStatus().status === IDEConnectionStatus.Connected) {
|
|
82929
82942
|
break;
|
|
82930
82943
|
}
|
|
82931
82944
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -83002,7 +83015,7 @@ var ideCommand = async () => {
|
|
|
83002
83015
|
}
|
|
83003
83016
|
};
|
|
83004
83017
|
const { status } = ideClient.getConnectionStatus();
|
|
83005
|
-
const isConnected = status ===
|
|
83018
|
+
const isConnected = status === IDEConnectionStatus.Connected;
|
|
83006
83019
|
if (isConnected) {
|
|
83007
83020
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
83008
83021
|
} else {
|
|
@@ -83102,13 +83115,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83102
83115
|
const displayListener = (message) => {
|
|
83103
83116
|
context.ui.addItem({ type: "info", text: message });
|
|
83104
83117
|
};
|
|
83105
|
-
coreEvents.on(
|
|
83118
|
+
coreEvents.on(CoreEvent.OauthDisplayMessage, displayListener);
|
|
83106
83119
|
try {
|
|
83107
83120
|
context.ui.addItem({
|
|
83108
83121
|
type: "info",
|
|
83109
83122
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83110
83123
|
});
|
|
83111
|
-
const { MCPOAuthProvider } = await import("./
|
|
83124
|
+
const { MCPOAuthProvider } = await import("./dist-634QHCLR.js");
|
|
83112
83125
|
let oauthConfig = server.oauth;
|
|
83113
83126
|
if (!oauthConfig) {
|
|
83114
83127
|
oauthConfig = { enabled: false };
|
|
@@ -83145,7 +83158,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83145
83158
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
83146
83159
|
};
|
|
83147
83160
|
} finally {
|
|
83148
|
-
coreEvents.removeListener(
|
|
83161
|
+
coreEvents.removeListener(CoreEvent.OauthDisplayMessage, displayListener);
|
|
83149
83162
|
}
|
|
83150
83163
|
},
|
|
83151
83164
|
completion: async (context, partialArg) => {
|
|
@@ -83191,10 +83204,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
83191
83204
|
}
|
|
83192
83205
|
const serverNames = Object.keys(mcpServers);
|
|
83193
83206
|
const connectingServers = serverNames.filter(
|
|
83194
|
-
(name) => getMCPServerStatus(name) ===
|
|
83207
|
+
(name) => getMCPServerStatus(name) === MCPServerStatus.CONNECTING
|
|
83195
83208
|
);
|
|
83196
83209
|
const discoveryState = getMCPDiscoveryState();
|
|
83197
|
-
const discoveryInProgress = discoveryState ===
|
|
83210
|
+
const discoveryInProgress = discoveryState === MCPDiscoveryState.IN_PROGRESS || connectingServers.length > 0;
|
|
83198
83211
|
const allTools = toolRegistry.getAllTools();
|
|
83199
83212
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
83200
83213
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -98953,7 +98966,7 @@ Return a JSON object with:
|
|
|
98953
98966
|
},
|
|
98954
98967
|
abortSignal: new AbortController().signal,
|
|
98955
98968
|
promptId: "triage-duplicates",
|
|
98956
|
-
role:
|
|
98969
|
+
role: LlmRole.UTILITY_TOOL
|
|
98957
98970
|
});
|
|
98958
98971
|
const rec = response;
|
|
98959
98972
|
let canonical;
|
|
@@ -99787,7 +99800,7 @@ Return a JSON object with:
|
|
|
99787
99800
|
},
|
|
99788
99801
|
abortSignal: abortControllerRef.current.signal,
|
|
99789
99802
|
promptId: "triage-issues",
|
|
99790
|
-
role:
|
|
99803
|
+
role: LlmRole.UTILITY_TOOL
|
|
99791
99804
|
});
|
|
99792
99805
|
return response;
|
|
99793
99806
|
},
|
|
@@ -100361,8 +100374,8 @@ var planCommand = {
|
|
|
100361
100374
|
return;
|
|
100362
100375
|
}
|
|
100363
100376
|
const previousApprovalMode = config.getApprovalMode();
|
|
100364
|
-
config.setApprovalMode(
|
|
100365
|
-
if (previousApprovalMode !==
|
|
100377
|
+
config.setApprovalMode(ApprovalMode.PLAN);
|
|
100378
|
+
if (previousApprovalMode !== ApprovalMode.PLAN) {
|
|
100366
100379
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
100367
100380
|
}
|
|
100368
100381
|
if (context.invocation?.args) {
|
|
@@ -100421,10 +100434,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
100421
100434
|
rules.forEach((rule) => {
|
|
100422
100435
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
100423
100436
|
const modeSet = new Set(modes);
|
|
100424
|
-
if (modeSet.has(
|
|
100425
|
-
if (modeSet.has(
|
|
100426
|
-
if (modeSet.has(
|
|
100427
|
-
if (modeSet.has(
|
|
100437
|
+
if (modeSet.has(ApprovalMode.DEFAULT)) result.normal.push(rule);
|
|
100438
|
+
if (modeSet.has(ApprovalMode.AUTO_EDIT)) result.autoEdit.push(rule);
|
|
100439
|
+
if (modeSet.has(ApprovalMode.YOLO)) result.yolo.push(rule);
|
|
100440
|
+
if (modeSet.has(ApprovalMode.PLAN)) result.plan.push(rule);
|
|
100428
100441
|
});
|
|
100429
100442
|
return result;
|
|
100430
100443
|
};
|
|
@@ -101805,7 +101818,7 @@ var upgradeCommand = {
|
|
|
101805
101818
|
action: async (context) => {
|
|
101806
101819
|
const config = context.services.agentContext?.config;
|
|
101807
101820
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
101808
|
-
if (authType !==
|
|
101821
|
+
if (authType !== AuthType.LOGIN_WITH_GOOGLE) {
|
|
101809
101822
|
return {
|
|
101810
101823
|
type: "message",
|
|
101811
101824
|
messageType: "error",
|
|
@@ -102034,7 +102047,7 @@ var BuiltinCommandLoader = class {
|
|
|
102034
102047
|
setupGithubCommand,
|
|
102035
102048
|
terminalSetupCommand,
|
|
102036
102049
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
102037
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
102050
|
+
...this.config?.getContentGeneratorConfig()?.authType === AuthType.LOGIN_WITH_GOOGLE ? [upgradeCommand] : []
|
|
102038
102051
|
];
|
|
102039
102052
|
handle?.end();
|
|
102040
102053
|
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-WGNTEF5G.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|