@google/gemini-cli 0.60.0-nightly.20260908.g85aca163f → 0.60.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-G4V32KTT.js → chunk-2CNCBL5E.js} +1 -1
- package/bundle/{chunk-3QU7MFQ7.js → chunk-2VRC3EDT.js} +8 -9
- package/bundle/{chunk-3CDPEGVA.js → chunk-32DXU4EF.js} +1 -1
- package/bundle/{chunk-TVCSMCKT.js → chunk-4IIDTAFR.js} +1 -1
- package/bundle/{chunk-FX53IMQ4.js → chunk-7QC7KWAE.js} +1 -1
- package/bundle/{chunk-L5DTYBPR.js → chunk-CMLALLX3.js} +7 -7
- package/bundle/{chunk-OSSPFBB5.js → chunk-D3BC6B5F.js} +1 -1
- package/bundle/{chunk-ACSEKHMC.js → chunk-E62PES2E.js} +2 -2
- package/bundle/{chunk-YMZA4EO3.js → chunk-GFHSA4BE.js} +1 -1
- package/bundle/{chunk-A6IXIFRW.js → chunk-GNCCSIBA.js} +7 -7
- package/bundle/{chunk-FYCX7S2H.js → chunk-JJLODN2F.js} +1 -1
- package/bundle/{chunk-VIXOL23X.js → chunk-KAXMFUK5.js} +1 -1
- package/bundle/{chunk-AXAX7FSE.js → chunk-M6NSK26M.js} +123 -104
- package/bundle/{chunk-FIESYQDV.js → chunk-MOYC3UGL.js} +127 -106
- package/bundle/{chunk-BOGYC66X.js → chunk-OCLZG6C5.js} +1 -1
- package/bundle/{chunk-OI5WY42W.js → chunk-P3SNRA43.js} +2 -2
- package/bundle/{chunk-XTLORUWQ.js → chunk-PJREBWY3.js} +2 -2
- package/bundle/{chunk-N7PUYZ2C.js → chunk-QRYVAS35.js} +3 -3
- package/bundle/{chunk-4YTSRQAI.js → chunk-RZALYEQN.js} +1 -1
- package/bundle/{chunk-J5XD2NH2.js → chunk-S7PDUHJI.js} +3 -3
- package/bundle/{chunk-JE7V5AAP.js → chunk-UEQMLKXK.js} +3 -3
- package/bundle/{chunk-GD2JGMGI.js → chunk-VCAJDPDX.js} +14699 -7842
- package/bundle/{chunk-CYA6LLPT.js → chunk-WRNJPSJG.js} +5 -8
- package/bundle/{chunk-AL25HEEO.js → chunk-XRNOQZLR.js} +54 -67
- package/bundle/{cleanup-4FION7X5.js → cleanup-HEQUL3UY.js} +2 -2
- package/bundle/{cleanup-GWIY2YES.js → cleanup-THNE7RD2.js} +2 -2
- package/bundle/{cleanup-SXOQFKSA.js → cleanup-XYVEFB7E.js} +2 -2
- package/bundle/{core-T6ZA3RPN.js → core-A6JH6DY6.js} +5 -1
- package/bundle/{dist-CUTV6FXO.js → core-PCNYIQML.js} +5 -1
- package/bundle/{devtoolsService-FPEN37GX.js → devtoolsService-J7SM2WQQ.js} +2 -2
- package/bundle/{devtoolsService-J5IMHON6.js → devtoolsService-TEWMGXKI.js} +2 -2
- package/bundle/{devtoolsService-HJR727UG.js → devtoolsService-YPPCMYGQ.js} +3 -4
- package/bundle/{dist-IYMU3MAT.js → dist-PD4ABRTS.js} +5 -1
- package/bundle/{gemini-RLSAAMB2.js → gemini-7INSUCPB.js} +318 -272
- package/bundle/{gemini-FPHQ6YA6.js → gemini-LUNNHKPJ.js} +134 -72
- package/bundle/{gemini-DM7UHG5I.js → gemini-ZTU7EMI3.js} +134 -72
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-BNCDBJK2.js → interactiveCli-COQJBPC2.js} +8 -8
- package/bundle/{interactiveCli-NC7ZBX74.js → interactiveCli-NQE3X2WY.js} +8 -8
- package/bundle/{interactiveCli-SWGF5F7W.js → interactiveCli-X63QLGIH.js} +296 -315
- package/bundle/{liteRtServerManager-6VWY6OO6.js → liteRtServerManager-5YXPHG3Q.js} +4 -4
- package/bundle/{liteRtServerManager-HE2FE4FH.js → liteRtServerManager-7W4APCRB.js} +4 -4
- package/bundle/{liteRtServerManager-JSW26OPJ.js → liteRtServerManager-PEAZFGHW.js} +4 -4
- package/bundle/{oauth2-provider-IGJGMQ4U.js → oauth2-provider-H2X6UMUS.js} +1 -1
- package/bundle/{oauth2-provider-I665TJQN.js → oauth2-provider-M3PIKLLI.js} +1 -1
- package/bundle/{oauth2-provider-T2HJJ7SP.js → oauth2-provider-WINJTB44.js} +72 -38
- package/bundle/{start-AA23VJDL.js → start-AH7HKN5D.js} +6 -6
- package/bundle/{start-EQIIZYZY.js → start-J5DOY6JW.js} +6 -6
- package/bundle/{start-QHU4R4ZE.js → start-QYNDA2U4.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-5AXHFT2M.js +0 -512
- package/bundle/chunk-JIOJKKRV.js +0 -1571
- package/bundle/chunk-JIXDRDKL.js +0 -17353
- package/bundle/chunk-M24MUPYL.js +0 -398992
- package/bundle/chunk-MI66NSWG.js +0 -154
- package/bundle/chunk-R55JHECT.js +0 -102670
- package/bundle/chunk-RRTGK7KM.js +0 -118
- package/bundle/chunk-WET7Q2Z2.js +0 -398
- package/bundle/cleanup-XSTC4XRT.js +0 -32
- package/bundle/devtoolsService-R3332TAT.js +0 -4359
- package/bundle/dist-VMLS7TDS.js +0 -2212
- package/bundle/gemini-ZT27CSNJ.js +0 -17370
- package/bundle/interactiveCli-WG2TABNS.js +0 -34983
- package/bundle/liteRtServerManager-Y7KT37QX.js +0 -65
- package/bundle/oauth2-provider-WUYROQ6O.js +0 -235
- package/bundle/start-WLQTESZU.js +0 -18
|
@@ -1,9 +1,6 @@
|
|
|
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,
|
|
7
4
|
DEFAULT_MODEL_CONFIGS,
|
|
8
5
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
9
6
|
EDITOR_OPTIONS,
|
|
@@ -33,7 +30,7 @@ import {
|
|
|
33
30
|
partListUnionToString,
|
|
34
31
|
require_strip_json_comments,
|
|
35
32
|
sanitizeFilenamePart
|
|
36
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VCAJDPDX.js";
|
|
37
34
|
import {
|
|
38
35
|
__commonJS,
|
|
39
36
|
__require,
|
|
@@ -10230,7 +10227,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10230
10227
|
args: tool.args,
|
|
10231
10228
|
description: tool.description || "",
|
|
10232
10229
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10233
|
-
status: tool.status === "success" ?
|
|
10230
|
+
status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
|
|
10234
10231
|
resultDisplay: tool.resultDisplay,
|
|
10235
10232
|
confirmationDetails: void 0
|
|
10236
10233
|
}))
|
|
@@ -16294,8 +16291,8 @@ var LoadedSettings = class {
|
|
|
16294
16291
|
// React will pass a listener fn into this subscribe fn
|
|
16295
16292
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16296
16293
|
subscribe(listener) {
|
|
16297
|
-
coreEvents.on(
|
|
16298
|
-
return () => coreEvents.off(
|
|
16294
|
+
coreEvents.on("settings-changed" /* SettingsChanged */, listener);
|
|
16295
|
+
return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
|
|
16299
16296
|
}
|
|
16300
16297
|
getSnapshot() {
|
|
16301
16298
|
return this._snapshot;
|
|
@@ -16439,7 +16436,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
16439
16436
|
}
|
|
16440
16437
|
}
|
|
16441
16438
|
let value = "cloudshell-gca";
|
|
16442
|
-
if (selectedAuthType ===
|
|
16439
|
+
if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
16443
16440
|
value = process2.env[USER_GCP_PROJECT];
|
|
16444
16441
|
}
|
|
16445
16442
|
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-JJLODN2F.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,22 +59,20 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-KAXMFUK5.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-E62PES2E.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-2VRC3EDT.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
73
73
|
AsyncFzf,
|
|
74
|
-
AuthType,
|
|
75
74
|
Config,
|
|
76
75
|
CoreEvent,
|
|
77
|
-
CoreToolCallStatus,
|
|
78
76
|
DiscoveredMCPTool,
|
|
79
77
|
ExtensionDisableEvent,
|
|
80
78
|
ExtensionEnableEvent,
|
|
@@ -85,31 +83,20 @@ import {
|
|
|
85
83
|
ExtensionUpdateEvent,
|
|
86
84
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
87
85
|
GEMINI_DIR,
|
|
88
|
-
HookType,
|
|
89
|
-
IDEConnectionStatus,
|
|
90
86
|
INITIAL_HISTORY_LENGTH,
|
|
91
87
|
IdeClient,
|
|
92
88
|
IdeConnectionEvent,
|
|
93
|
-
IdeConnectionType,
|
|
94
|
-
IntegrityDataStatus,
|
|
95
89
|
KeychainTokenStorage,
|
|
96
|
-
LlmRole,
|
|
97
|
-
MCPDiscoveryState,
|
|
98
90
|
MCPOAuthTokenStorage,
|
|
99
|
-
MCPServerStatus,
|
|
100
91
|
ModelSlashCommandEvent,
|
|
101
|
-
PolicyDecision,
|
|
102
92
|
ProjectIdRequiredError,
|
|
103
93
|
REFERENCE_CONTENT_END,
|
|
104
94
|
REFERENCE_CONTENT_START,
|
|
105
95
|
ReadManyFilesTool,
|
|
106
96
|
RewindEvent,
|
|
107
|
-
SessionEndReason,
|
|
108
|
-
SessionStartSource,
|
|
109
97
|
ShellExecutionService,
|
|
110
98
|
StartSessionEvent,
|
|
111
99
|
Storage,
|
|
112
|
-
TrustLevel,
|
|
113
100
|
UPGRADE_URL_PAGE,
|
|
114
101
|
UserAccountManager,
|
|
115
102
|
ValidationRequiredError,
|
|
@@ -244,7 +231,7 @@ import {
|
|
|
244
231
|
tokenLimit,
|
|
245
232
|
uiTelemetryService,
|
|
246
233
|
unescapePath
|
|
247
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-MOYC3UGL.js";
|
|
248
235
|
import {
|
|
249
236
|
require_src
|
|
250
237
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -60090,7 +60077,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
60090
60077
|
function useIdeTrustListener() {
|
|
60091
60078
|
const settings = useSettings();
|
|
60092
60079
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
60093
|
-
|
|
60080
|
+
"disconnected" /* Disconnected */
|
|
60094
60081
|
);
|
|
60095
60082
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
60096
60083
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -60120,7 +60107,7 @@ function useIdeTrustListener() {
|
|
|
60120
60107
|
};
|
|
60121
60108
|
}, []);
|
|
60122
60109
|
const getSnapshot = () => {
|
|
60123
|
-
if (connectionStatus !==
|
|
60110
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
60124
60111
|
return void 0;
|
|
60125
60112
|
}
|
|
60126
60113
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -60825,7 +60812,7 @@ async function initializeApp(config, settings) {
|
|
|
60825
60812
|
await ideClient.connect();
|
|
60826
60813
|
logIdeConnection(
|
|
60827
60814
|
config,
|
|
60828
|
-
new IdeConnectionEvent(
|
|
60815
|
+
new IdeConnectionEvent("start" /* START */)
|
|
60829
60816
|
);
|
|
60830
60817
|
}).catch((e) => {
|
|
60831
60818
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -60843,17 +60830,17 @@ async function initializeApp(config, settings) {
|
|
|
60843
60830
|
// packages/cli/src/config/auth.ts
|
|
60844
60831
|
async function validateAuthMethod(authMethod) {
|
|
60845
60832
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
60846
|
-
if (authMethod ===
|
|
60833
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
60847
60834
|
return null;
|
|
60848
60835
|
}
|
|
60849
|
-
if (authMethod ===
|
|
60836
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
60850
60837
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
60851
60838
|
if (!key) {
|
|
60852
60839
|
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)!";
|
|
60853
60840
|
}
|
|
60854
60841
|
return null;
|
|
60855
60842
|
}
|
|
60856
|
-
if (authMethod ===
|
|
60843
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
60857
60844
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
60858
60845
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
60859
60846
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -65379,7 +65366,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
65379
65366
|
const trustedFolders = loadTrustedFolders();
|
|
65380
65367
|
await trustedFolders.setValue(
|
|
65381
65368
|
this.workspaceDir,
|
|
65382
|
-
|
|
65369
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
65383
65370
|
);
|
|
65384
65371
|
} else {
|
|
65385
65372
|
throw new Error(
|
|
@@ -65565,7 +65552,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65565
65552
|
newExtensionConfig.version,
|
|
65566
65553
|
previousExtensionConfig.version,
|
|
65567
65554
|
installMetadata.type,
|
|
65568
|
-
|
|
65555
|
+
"success" /* Success */
|
|
65569
65556
|
)
|
|
65570
65557
|
);
|
|
65571
65558
|
if (newExtensionName !== previousName) {
|
|
@@ -65588,7 +65575,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65588
65575
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
65589
65576
|
newExtensionConfig.version,
|
|
65590
65577
|
installMetadata.type,
|
|
65591
|
-
|
|
65578
|
+
"success" /* Success */
|
|
65592
65579
|
)
|
|
65593
65580
|
);
|
|
65594
65581
|
await this.enableExtension(
|
|
@@ -65621,7 +65608,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65621
65608
|
newExtensionConfig?.version ?? "",
|
|
65622
65609
|
previousExtensionConfig.version,
|
|
65623
65610
|
installMetadata.type,
|
|
65624
|
-
|
|
65611
|
+
"error" /* Error */
|
|
65625
65612
|
)
|
|
65626
65613
|
);
|
|
65627
65614
|
} else {
|
|
@@ -65633,7 +65620,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65633
65620
|
extensionId ?? "",
|
|
65634
65621
|
newExtensionConfig?.version ?? "",
|
|
65635
65622
|
installMetadata.type,
|
|
65636
|
-
|
|
65623
|
+
"error" /* Error */
|
|
65637
65624
|
)
|
|
65638
65625
|
);
|
|
65639
65626
|
}
|
|
@@ -65664,7 +65651,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65664
65651
|
extension.name,
|
|
65665
65652
|
hashValue(extension.name),
|
|
65666
65653
|
extension.id,
|
|
65667
|
-
|
|
65654
|
+
"success" /* Success */
|
|
65668
65655
|
)
|
|
65669
65656
|
);
|
|
65670
65657
|
}
|
|
@@ -65926,7 +65913,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65926
65913
|
if (eventHooks) {
|
|
65927
65914
|
for (const definition of eventHooks) {
|
|
65928
65915
|
for (const hook of definition.hooks) {
|
|
65929
|
-
if (hook.type ===
|
|
65916
|
+
if (hook.type === "command" /* Command */) {
|
|
65930
65917
|
hook.env = { ...hook.env, ...hookEnv };
|
|
65931
65918
|
}
|
|
65932
65919
|
}
|
|
@@ -67029,7 +67016,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67029
67016
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67030
67017
|
name: `resources/read (${resource.serverName})`,
|
|
67031
67018
|
description: resource.uri,
|
|
67032
|
-
status:
|
|
67019
|
+
status: "success" /* Success */,
|
|
67033
67020
|
isClientInitiated: true,
|
|
67034
67021
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
67035
67022
|
confirmationDetails: void 0
|
|
@@ -67044,7 +67031,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67044
67031
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67045
67032
|
name: `resources/read (${resource.serverName})`,
|
|
67046
67033
|
description: resource.uri,
|
|
67047
|
-
status:
|
|
67034
|
+
status: "error" /* Error */,
|
|
67048
67035
|
isClientInitiated: true,
|
|
67049
67036
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
67050
67037
|
confirmationDetails: void 0
|
|
@@ -67069,7 +67056,7 @@ Content from @${result.uri}:
|
|
|
67069
67056
|
}
|
|
67070
67057
|
if (hasError) {
|
|
67071
67058
|
const firstError = displays.find(
|
|
67072
|
-
(d) => d.status ===
|
|
67059
|
+
(d) => d.status === "error" /* Error */
|
|
67073
67060
|
);
|
|
67074
67061
|
return {
|
|
67075
67062
|
parts: [],
|
|
@@ -67110,7 +67097,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
67110
67097
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67111
67098
|
name: readManyFilesTool.displayName,
|
|
67112
67099
|
description: invocation.getDescription(),
|
|
67113
|
-
status:
|
|
67100
|
+
status: "success" /* Success */,
|
|
67114
67101
|
isClientInitiated: true,
|
|
67115
67102
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
67116
67103
|
confirmationDetails: void 0
|
|
@@ -67157,7 +67144,7 @@ Content from @${displayPath}:
|
|
|
67157
67144
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67158
67145
|
name: readManyFilesTool.displayName,
|
|
67159
67146
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
67160
|
-
status:
|
|
67147
|
+
status: "error" /* Error */,
|
|
67161
67148
|
isClientInitiated: true,
|
|
67162
67149
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
67163
67150
|
confirmationDetails: void 0
|
|
@@ -70424,7 +70411,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
70424
70411
|
if (wasRaw) {
|
|
70425
70412
|
setRawMode?.(true);
|
|
70426
70413
|
}
|
|
70427
|
-
coreEvents.emit(
|
|
70414
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
70428
70415
|
}
|
|
70429
70416
|
}
|
|
70430
70417
|
|
|
@@ -73119,7 +73106,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
73119
73106
|
extension.name,
|
|
73120
73107
|
installMetadata
|
|
73121
73108
|
);
|
|
73122
|
-
if (status ===
|
|
73109
|
+
if (status === "invalid" /* INVALID */) {
|
|
73123
73110
|
throw new Error("Extension integrity cannot be verified");
|
|
73124
73111
|
}
|
|
73125
73112
|
} catch (e) {
|
|
@@ -74540,11 +74527,11 @@ var ShellProcessor = class {
|
|
|
74540
74527
|
},
|
|
74541
74528
|
void 0
|
|
74542
74529
|
);
|
|
74543
|
-
if (decision ===
|
|
74530
|
+
if (decision === "deny" /* DENY */) {
|
|
74544
74531
|
throw new Error(
|
|
74545
74532
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
74546
74533
|
);
|
|
74547
|
-
} else if (decision ===
|
|
74534
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
74548
74535
|
commandsToConfirm.add(command);
|
|
74549
74536
|
}
|
|
74550
74537
|
}
|
|
@@ -75662,7 +75649,7 @@ var MultiFolderTrustDialog = ({
|
|
|
75662
75649
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
75663
75650
|
await trustedFolders.setValue(
|
|
75664
75651
|
expandedPath,
|
|
75665
|
-
|
|
75652
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
75666
75653
|
);
|
|
75667
75654
|
}
|
|
75668
75655
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -77340,7 +77327,7 @@ var authCommand = {
|
|
|
77340
77327
|
import process29 from "node:process";
|
|
77341
77328
|
|
|
77342
77329
|
// packages/cli/src/generated/git-commit.ts
|
|
77343
|
-
var GIT_COMMIT_INFO = "
|
|
77330
|
+
var GIT_COMMIT_INFO = "bc6f7a5d3";
|
|
77344
77331
|
|
|
77345
77332
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77346
77333
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -77986,7 +77973,7 @@ var clearCommand = {
|
|
|
77986
77973
|
const config = context.services.agentContext?.config;
|
|
77987
77974
|
const hookSystem = config?.getHookSystem();
|
|
77988
77975
|
if (hookSystem) {
|
|
77989
|
-
await hookSystem.fireSessionEndEvent(
|
|
77976
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
77990
77977
|
}
|
|
77991
77978
|
config?.injectionService.clear();
|
|
77992
77979
|
let newSessionId;
|
|
@@ -78003,7 +77990,7 @@ var clearCommand = {
|
|
|
78003
77990
|
}
|
|
78004
77991
|
let result;
|
|
78005
77992
|
if (hookSystem) {
|
|
78006
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
77993
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
78007
77994
|
}
|
|
78008
77995
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
78009
77996
|
if (config) {
|
|
@@ -81002,7 +80989,7 @@ var Footer = () => {
|
|
|
81002
80989
|
case "auth": {
|
|
81003
80990
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
81004
80991
|
if (!authType) break;
|
|
81005
|
-
const displayStr = authType ===
|
|
80992
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
81006
80993
|
addCol(
|
|
81007
80994
|
id,
|
|
81008
80995
|
header,
|
|
@@ -82770,12 +82757,12 @@ import path29 from "node:path";
|
|
|
82770
82757
|
function getIdeStatusMessage(ideClient) {
|
|
82771
82758
|
const connection = ideClient.getConnectionStatus();
|
|
82772
82759
|
switch (connection.status) {
|
|
82773
|
-
case
|
|
82760
|
+
case "connected" /* Connected */:
|
|
82774
82761
|
return {
|
|
82775
82762
|
messageType: "info",
|
|
82776
82763
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
82777
82764
|
};
|
|
82778
|
-
case
|
|
82765
|
+
case "connecting" /* Connecting */:
|
|
82779
82766
|
return {
|
|
82780
82767
|
messageType: "info",
|
|
82781
82768
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82816,7 +82803,7 @@ ${infoMessage}`;
|
|
|
82816
82803
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
82817
82804
|
const connection = ideClient.getConnectionStatus();
|
|
82818
82805
|
switch (connection.status) {
|
|
82819
|
-
case
|
|
82806
|
+
case "connected" /* Connected */: {
|
|
82820
82807
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
82821
82808
|
const context = ideContextStore.get();
|
|
82822
82809
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -82828,7 +82815,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
82828
82815
|
content
|
|
82829
82816
|
};
|
|
82830
82817
|
}
|
|
82831
|
-
case
|
|
82818
|
+
case "connecting" /* Connecting */:
|
|
82832
82819
|
return {
|
|
82833
82820
|
messageType: "info",
|
|
82834
82821
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82850,7 +82837,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
82850
82837
|
const ideClient = await IdeClient.getInstance();
|
|
82851
82838
|
if (value) {
|
|
82852
82839
|
await ideClient.connect(options);
|
|
82853
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
82840
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
82854
82841
|
} else {
|
|
82855
82842
|
await ideClient.disconnect();
|
|
82856
82843
|
}
|
|
@@ -82938,7 +82925,7 @@ var ideCommand = async () => {
|
|
|
82938
82925
|
logToConsole: false
|
|
82939
82926
|
}
|
|
82940
82927
|
);
|
|
82941
|
-
if (ideClient.getConnectionStatus().status ===
|
|
82928
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
82942
82929
|
break;
|
|
82943
82930
|
}
|
|
82944
82931
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -83015,7 +83002,7 @@ var ideCommand = async () => {
|
|
|
83015
83002
|
}
|
|
83016
83003
|
};
|
|
83017
83004
|
const { status } = ideClient.getConnectionStatus();
|
|
83018
|
-
const isConnected = status ===
|
|
83005
|
+
const isConnected = status === "connected" /* Connected */;
|
|
83019
83006
|
if (isConnected) {
|
|
83020
83007
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
83021
83008
|
} else {
|
|
@@ -83115,13 +83102,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83115
83102
|
const displayListener = (message) => {
|
|
83116
83103
|
context.ui.addItem({ type: "info", text: message });
|
|
83117
83104
|
};
|
|
83118
|
-
coreEvents.on(
|
|
83105
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83119
83106
|
try {
|
|
83120
83107
|
context.ui.addItem({
|
|
83121
83108
|
type: "info",
|
|
83122
83109
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83123
83110
|
});
|
|
83124
|
-
const { MCPOAuthProvider } = await import("./
|
|
83111
|
+
const { MCPOAuthProvider } = await import("./core-PCNYIQML.js");
|
|
83125
83112
|
let oauthConfig = server.oauth;
|
|
83126
83113
|
if (!oauthConfig) {
|
|
83127
83114
|
oauthConfig = { enabled: false };
|
|
@@ -83158,7 +83145,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83158
83145
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
83159
83146
|
};
|
|
83160
83147
|
} finally {
|
|
83161
|
-
coreEvents.removeListener(
|
|
83148
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83162
83149
|
}
|
|
83163
83150
|
},
|
|
83164
83151
|
completion: async (context, partialArg) => {
|
|
@@ -83204,10 +83191,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
83204
83191
|
}
|
|
83205
83192
|
const serverNames = Object.keys(mcpServers);
|
|
83206
83193
|
const connectingServers = serverNames.filter(
|
|
83207
|
-
(name) => getMCPServerStatus(name) ===
|
|
83194
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
83208
83195
|
);
|
|
83209
83196
|
const discoveryState = getMCPDiscoveryState();
|
|
83210
|
-
const discoveryInProgress = discoveryState ===
|
|
83197
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
83211
83198
|
const allTools = toolRegistry.getAllTools();
|
|
83212
83199
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
83213
83200
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -98966,7 +98953,7 @@ Return a JSON object with:
|
|
|
98966
98953
|
},
|
|
98967
98954
|
abortSignal: new AbortController().signal,
|
|
98968
98955
|
promptId: "triage-duplicates",
|
|
98969
|
-
role:
|
|
98956
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
98970
98957
|
});
|
|
98971
98958
|
const rec = response;
|
|
98972
98959
|
let canonical;
|
|
@@ -99800,7 +99787,7 @@ Return a JSON object with:
|
|
|
99800
99787
|
},
|
|
99801
99788
|
abortSignal: abortControllerRef.current.signal,
|
|
99802
99789
|
promptId: "triage-issues",
|
|
99803
|
-
role:
|
|
99790
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
99804
99791
|
});
|
|
99805
99792
|
return response;
|
|
99806
99793
|
},
|
|
@@ -100374,8 +100361,8 @@ var planCommand = {
|
|
|
100374
100361
|
return;
|
|
100375
100362
|
}
|
|
100376
100363
|
const previousApprovalMode = config.getApprovalMode();
|
|
100377
|
-
config.setApprovalMode(
|
|
100378
|
-
if (previousApprovalMode !==
|
|
100364
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
100365
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
100379
100366
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
100380
100367
|
}
|
|
100381
100368
|
if (context.invocation?.args) {
|
|
@@ -100434,10 +100421,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
100434
100421
|
rules.forEach((rule) => {
|
|
100435
100422
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
100436
100423
|
const modeSet = new Set(modes);
|
|
100437
|
-
if (modeSet.has(
|
|
100438
|
-
if (modeSet.has(
|
|
100439
|
-
if (modeSet.has(
|
|
100440
|
-
if (modeSet.has(
|
|
100424
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
100425
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
100426
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
100427
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
100441
100428
|
});
|
|
100442
100429
|
return result;
|
|
100443
100430
|
};
|
|
@@ -101818,7 +101805,7 @@ var upgradeCommand = {
|
|
|
101818
101805
|
action: async (context) => {
|
|
101819
101806
|
const config = context.services.agentContext?.config;
|
|
101820
101807
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
101821
|
-
if (authType !==
|
|
101808
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
101822
101809
|
return {
|
|
101823
101810
|
type: "message",
|
|
101824
101811
|
messageType: "error",
|
|
@@ -102047,7 +102034,7 @@ var BuiltinCommandLoader = class {
|
|
|
102047
102034
|
setupGithubCommand,
|
|
102048
102035
|
terminalSetupCommand,
|
|
102049
102036
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
102050
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
102037
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
102051
102038
|
];
|
|
102052
102039
|
handle?.end();
|
|
102053
102040
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-32DXU4EF.js";
|
|
15
|
+
import "./chunk-VCAJDPDX.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-D3BC6B5F.js";
|
|
15
|
+
import "./chunk-MOYC3UGL.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-GFHSA4BE.js";
|
|
15
|
+
import "./chunk-M6NSK26M.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -770,6 +770,7 @@ import {
|
|
|
770
770
|
getVersion,
|
|
771
771
|
getWorktreePath,
|
|
772
772
|
handleFallback,
|
|
773
|
+
hasBlockedPathSegment,
|
|
773
774
|
hasCycleInSchema,
|
|
774
775
|
hasNetworkTransport,
|
|
775
776
|
hasRedirection,
|
|
@@ -1079,6 +1080,7 @@ import {
|
|
|
1079
1080
|
tokenLimit,
|
|
1080
1081
|
toolResultDisplayToDisplayContent,
|
|
1081
1082
|
translateEvent,
|
|
1083
|
+
trimTrailingSpacesAndDots,
|
|
1082
1084
|
truncateFastAckInput,
|
|
1083
1085
|
truncateString,
|
|
1084
1086
|
uiTelemetryService,
|
|
@@ -1099,7 +1101,7 @@ import {
|
|
|
1099
1101
|
wrapUntrusted,
|
|
1100
1102
|
writeToStderr,
|
|
1101
1103
|
writeToStdout
|
|
1102
|
-
} from "./chunk-
|
|
1104
|
+
} from "./chunk-VCAJDPDX.js";
|
|
1103
1105
|
import "./chunk-664ZODQF.js";
|
|
1104
1106
|
import {
|
|
1105
1107
|
SpanStatusCode,
|
|
@@ -1879,6 +1881,7 @@ export {
|
|
|
1879
1881
|
getVersion,
|
|
1880
1882
|
getWorktreePath,
|
|
1881
1883
|
handleFallback,
|
|
1884
|
+
hasBlockedPathSegment,
|
|
1882
1885
|
hasCycleInSchema,
|
|
1883
1886
|
hasNetworkTransport,
|
|
1884
1887
|
hasRedirection,
|
|
@@ -2189,6 +2192,7 @@ export {
|
|
|
2189
2192
|
tokenLimit,
|
|
2190
2193
|
toolResultDisplayToDisplayContent,
|
|
2191
2194
|
translateEvent,
|
|
2195
|
+
trimTrailingSpacesAndDots,
|
|
2192
2196
|
truncateFastAckInput,
|
|
2193
2197
|
truncateString,
|
|
2194
2198
|
uiTelemetryService,
|
|
@@ -770,6 +770,7 @@ import {
|
|
|
770
770
|
getVersion,
|
|
771
771
|
getWorktreePath,
|
|
772
772
|
handleFallback,
|
|
773
|
+
hasBlockedPathSegment,
|
|
773
774
|
hasCycleInSchema,
|
|
774
775
|
hasNetworkTransport,
|
|
775
776
|
hasRedirection,
|
|
@@ -1079,6 +1080,7 @@ import {
|
|
|
1079
1080
|
tokenLimit,
|
|
1080
1081
|
toolResultDisplayToDisplayContent,
|
|
1081
1082
|
translateEvent,
|
|
1083
|
+
trimTrailingSpacesAndDots,
|
|
1082
1084
|
truncateFastAckInput,
|
|
1083
1085
|
truncateString,
|
|
1084
1086
|
uiTelemetryService,
|
|
@@ -1099,7 +1101,7 @@ import {
|
|
|
1099
1101
|
wrapUntrusted,
|
|
1100
1102
|
writeToStderr,
|
|
1101
1103
|
writeToStdout
|
|
1102
|
-
} from "./chunk-
|
|
1104
|
+
} from "./chunk-MOYC3UGL.js";
|
|
1103
1105
|
import "./chunk-664ZODQF.js";
|
|
1104
1106
|
import {
|
|
1105
1107
|
SpanStatusCode,
|
|
@@ -1879,6 +1881,7 @@ export {
|
|
|
1879
1881
|
getVersion,
|
|
1880
1882
|
getWorktreePath,
|
|
1881
1883
|
handleFallback,
|
|
1884
|
+
hasBlockedPathSegment,
|
|
1882
1885
|
hasCycleInSchema,
|
|
1883
1886
|
hasNetworkTransport,
|
|
1884
1887
|
hasRedirection,
|
|
@@ -2189,6 +2192,7 @@ export {
|
|
|
2189
2192
|
tokenLimit,
|
|
2190
2193
|
toolResultDisplayToDisplayContent,
|
|
2191
2194
|
translateEvent,
|
|
2195
|
+
trimTrailingSpacesAndDots,
|
|
2192
2196
|
truncateFastAckInput,
|
|
2193
2197
|
truncateString,
|
|
2194
2198
|
uiTelemetryService,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CoreEvent,
|
|
4
4
|
coreEvents,
|
|
5
5
|
debugLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M6NSK26M.js";
|
|
7
7
|
import "./chunk-664ZODQF.js";
|
|
8
8
|
import "./chunk-IUUIT4SU.js";
|
|
9
9
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -4325,7 +4325,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
4325
4325
|
return;
|
|
4326
4326
|
}
|
|
4327
4327
|
try {
|
|
4328
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-
|
|
4328
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-PD4ABRTS.js");
|
|
4329
4329
|
const url = await startDevToolsServer(config);
|
|
4330
4330
|
if (shouldLaunchBrowser()) {
|
|
4331
4331
|
try {
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
coreEvents,
|
|
4
4
|
debugLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VCAJDPDX.js";
|
|
6
6
|
import "./chunk-664ZODQF.js";
|
|
7
7
|
import "./chunk-IUUIT4SU.js";
|
|
8
8
|
import "./chunk-TUDYL3X4.js";
|
|
@@ -4324,7 +4324,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
|
|
|
4324
4324
|
return;
|
|
4325
4325
|
}
|
|
4326
4326
|
try {
|
|
4327
|
-
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-
|
|
4327
|
+
const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-A6JH6DY6.js");
|
|
4328
4328
|
const url = await startDevToolsServer(config);
|
|
4329
4329
|
if (shouldLaunchBrowser()) {
|
|
4330
4330
|
try {
|