@google/gemini-cli 0.67.0-nightly.20261104.g89e9d25d6 → 0.68.0-preview.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-7SSKD5HN.js → chunk-44PCK4QK.js} +1 -1
- package/bundle/{chunk-3DAQUNXR.js → chunk-6A5BTTNC.js} +6 -8
- package/bundle/{chunk-5WHCLVFH.js → chunk-BKVNBJ5C.js} +57 -70
- package/bundle/{chunk-ORXIIXSA.js → chunk-G7EMTV2Q.js} +7 -7
- package/bundle/{chunk-TAYMSEDM.js → chunk-KKKD4FID.js} +2 -2
- package/bundle/{chunk-DKKEYKSG.js → chunk-L57AYV6U.js} +3 -3
- package/bundle/{chunk-NOMIJA6W.js → chunk-LQDISFTJ.js} +2 -2
- package/bundle/{chunk-AT7K3IZG.js → chunk-ODU7Z2RJ.js} +1 -1
- package/bundle/{chunk-XBEZPOEF.js → chunk-OZOUOK43.js} +1 -1
- package/bundle/{chunk-HU3K5KGK.js → chunk-VCO4TMD6.js} +2 -2
- package/bundle/{chunk-H3WGFU7D.js → chunk-WEP47ZZU.js} +1 -1
- package/bundle/{chunk-2VRD7O3N.js → chunk-XPTXBYQQ.js} +3 -3
- package/bundle/{chunk-R7UEKGMB.js → chunk-XVNEFQR3.js} +1 -1
- package/bundle/{chunk-NMKJ47HQ.js → chunk-YPPJDFYP.js} +3 -3
- package/bundle/{chunk-WY3X2UP2.js → chunk-ZEK4UYYW.js} +8 -9
- package/bundle/{chunk-VLYI5NP4.js → chunk-ZZOOHVBL.js} +15140 -7964
- package/bundle/{cleanup-3ALSKRBJ.js → cleanup-CCR2EOHA.js} +2 -2
- package/bundle/{cleanup-6DVNSRQY.js → cleanup-T24OFMOA.js} +2 -2
- package/bundle/{dist-LJVRZOCO.js → core-UIPNZ5VU.js} +1 -1
- package/bundle/{devtoolsService-E6I4WSAL.js → devtoolsService-3G5ZA3JV.js} +3 -4
- package/bundle/{devtoolsService-64TPRUWQ.js → devtoolsService-V3OEHE5V.js} +2 -2
- package/bundle/{dist-QYTQZ6QW.js → dist-OYZDNSTI.js} +1 -1
- package/bundle/{gemini-7USJ6MGR.js → gemini-2P73372G.js} +14 -14
- package/bundle/{gemini-QAVNR7N4.js → gemini-FSHMUCSM.js} +199 -215
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-ELN2VGHK.js → interactiveCli-F5RRE2VJ.js} +8 -8
- package/bundle/{interactiveCli-XN43CGES.js → interactiveCli-I75IWUIA.js} +299 -318
- package/bundle/{liteRtServerManager-ENSSU4TN.js → liteRtServerManager-JTOIS4KU.js} +4 -4
- package/bundle/{liteRtServerManager-TYCQMNCE.js → liteRtServerManager-UVQ2I6NL.js} +4 -4
- package/bundle/{oauth2-provider-NLSE3P5W.js → oauth2-provider-AYO4BU7A.js} +1 -1
- package/bundle/{oauth2-provider-ZIZQIT7D.js → oauth2-provider-NCQY7TJE.js} +79 -41
- package/bundle/{start-OHBUJSIL.js → start-IXQ2E7L6.js} +6 -6
- package/bundle/{start-V3EP7MBL.js → start-YEKGRZVH.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-674DJGDU.js +0 -512
- package/bundle/chunk-ILNZCTNC.js +0 -80453
- package/bundle/chunk-L77QEOSK.js +0 -118
- package/bundle/chunk-M4REEHDQ.js +0 -185
- package/bundle/chunk-Q3OUSMTD.js +0 -39405
- package/bundle/chunk-T6YNV33L.js +0 -1571
- package/bundle/chunk-TB5I5645.js +0 -1956
- package/bundle/chunk-YTSRA7S6.js +0 -403181
- package/bundle/cleanup-HRNPECKR.js +0 -34
- package/bundle/devtoolsService-PG47POWV.js +0 -4422
- package/bundle/dist-L5NYU7FF.js +0 -2298
- package/bundle/gemini-QVVNPYKF.js +0 -19271
- package/bundle/interactiveCli-3VTQP4GH.js +0 -35871
- package/bundle/liteRtServerManager-E4PDEWY3.js +0 -65
- package/bundle/oauth2-provider-3MJNDLJF.js +0 -273
- package/bundle/start-B63MUWDV.js +0 -18
|
@@ -1,12 +1,10 @@
|
|
|
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-ZEK4UYYW.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthProviderType,
|
|
7
7
|
AuthType,
|
|
8
|
-
CoreEvent,
|
|
9
|
-
CoreToolCallStatus,
|
|
10
8
|
DEFAULT_MODEL_CONFIGS,
|
|
11
9
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
12
10
|
EDITOR_OPTIONS,
|
|
@@ -37,7 +35,7 @@ import {
|
|
|
37
35
|
partListUnionToString,
|
|
38
36
|
require_strip_json_comments,
|
|
39
37
|
sanitizeFilenamePart
|
|
40
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZZOOHVBL.js";
|
|
41
39
|
import {
|
|
42
40
|
__commonJS,
|
|
43
41
|
__export,
|
|
@@ -31795,7 +31793,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
31795
31793
|
args: tool.args,
|
|
31796
31794
|
description: tool.description || "",
|
|
31797
31795
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
31798
|
-
status: tool.status === "success" ?
|
|
31796
|
+
status: tool.status === "success" ? "success" /* Success */ : "error" /* Error */,
|
|
31799
31797
|
resultDisplay: tool.resultDisplay,
|
|
31800
31798
|
confirmationDetails: void 0
|
|
31801
31799
|
}))
|
|
@@ -37974,8 +37972,8 @@ var LoadedSettings = class {
|
|
|
37974
37972
|
// React will pass a listener fn into this subscribe fn
|
|
37975
37973
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
37976
37974
|
subscribe(listener) {
|
|
37977
|
-
coreEvents.on(
|
|
37978
|
-
return () => coreEvents.off(
|
|
37975
|
+
coreEvents.on("settings-changed" /* SettingsChanged */, listener);
|
|
37976
|
+
return () => coreEvents.off("settings-changed" /* SettingsChanged */, listener);
|
|
37979
37977
|
}
|
|
37980
37978
|
getSnapshot() {
|
|
37981
37979
|
return this._snapshot;
|
|
@@ -38124,7 +38122,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
38124
38122
|
}
|
|
38125
38123
|
}
|
|
38126
38124
|
let value = "cloudshell-gca";
|
|
38127
|
-
if (selectedAuthType ===
|
|
38125
|
+
if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
38128
38126
|
value = process19.env[USER_GCP_PROJECT];
|
|
38129
38127
|
}
|
|
38130
38128
|
if (envFilePath && fs9.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-XVNEFQR3.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -69,24 +69,22 @@ import {
|
|
|
69
69
|
use_stdin_default,
|
|
70
70
|
use_stdout_default,
|
|
71
71
|
validateCustomTheme
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6A5BTTNC.js";
|
|
73
73
|
import {
|
|
74
74
|
isDevelopment,
|
|
75
75
|
require_semver
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-LQDISFTJ.js";
|
|
77
77
|
import {
|
|
78
78
|
emptyIcon,
|
|
79
79
|
mapCoreStatusToDisplayStatus,
|
|
80
80
|
require_react
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-ZEK4UYYW.js";
|
|
82
82
|
import {
|
|
83
83
|
ALL_EDITORS,
|
|
84
84
|
ApprovalMode,
|
|
85
85
|
AsyncFzf,
|
|
86
|
-
AuthType,
|
|
87
86
|
Config,
|
|
88
87
|
CoreEvent,
|
|
89
|
-
CoreToolCallStatus,
|
|
90
88
|
DiscoveredMCPTool,
|
|
91
89
|
ExtensionDisableEvent,
|
|
92
90
|
ExtensionEnableEvent,
|
|
@@ -97,32 +95,21 @@ import {
|
|
|
97
95
|
ExtensionUpdateEvent,
|
|
98
96
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
99
97
|
GEMINI_DIR,
|
|
100
|
-
HookType,
|
|
101
|
-
IDEConnectionStatus,
|
|
102
98
|
INITIAL_HISTORY_LENGTH,
|
|
103
99
|
IdeClient,
|
|
104
100
|
IdeConnectionEvent,
|
|
105
|
-
IdeConnectionType,
|
|
106
|
-
IntegrityDataStatus,
|
|
107
101
|
KeychainTokenStorage,
|
|
108
|
-
LlmRole,
|
|
109
|
-
MCPDiscoveryState,
|
|
110
102
|
MCPOAuthTokenStorage,
|
|
111
|
-
MCPServerStatus,
|
|
112
103
|
ModelSlashCommandEvent,
|
|
113
|
-
PolicyDecision,
|
|
114
104
|
ProjectIdRequiredError,
|
|
115
105
|
REFERENCE_CONTENT_END,
|
|
116
106
|
REFERENCE_CONTENT_START,
|
|
117
107
|
ReadManyFilesTool,
|
|
118
108
|
RewindEvent,
|
|
119
109
|
SHELL_TOOL_NAME,
|
|
120
|
-
SessionEndReason,
|
|
121
|
-
SessionStartSource,
|
|
122
110
|
ShellExecutionService,
|
|
123
111
|
StartSessionEvent,
|
|
124
112
|
Storage,
|
|
125
|
-
TrustLevel,
|
|
126
113
|
UPGRADE_URL_PAGE,
|
|
127
114
|
UserAccountManager,
|
|
128
115
|
ValidationRequiredError,
|
|
@@ -253,7 +240,7 @@ import {
|
|
|
253
240
|
uiTelemetryService,
|
|
254
241
|
unescapePath,
|
|
255
242
|
validateUrlDestination
|
|
256
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-ZZOOHVBL.js";
|
|
257
244
|
import {
|
|
258
245
|
require_src
|
|
259
246
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -37261,7 +37248,7 @@ var import_react8 = __toESM(require_react(), 1);
|
|
|
37261
37248
|
function useIdeTrustListener() {
|
|
37262
37249
|
const settings = useSettings();
|
|
37263
37250
|
const [connectionStatus, setConnectionStatus] = (0, import_react8.useState)(
|
|
37264
|
-
|
|
37251
|
+
"disconnected" /* Disconnected */
|
|
37265
37252
|
);
|
|
37266
37253
|
const previousTrust = (0, import_react8.useRef)(void 0);
|
|
37267
37254
|
const [restartReason, setRestartReason] = (0, import_react8.useState)("NONE");
|
|
@@ -37291,7 +37278,7 @@ function useIdeTrustListener() {
|
|
|
37291
37278
|
};
|
|
37292
37279
|
}, []);
|
|
37293
37280
|
const getSnapshot = () => {
|
|
37294
|
-
if (connectionStatus !==
|
|
37281
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
37295
37282
|
return void 0;
|
|
37296
37283
|
}
|
|
37297
37284
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -37996,7 +37983,7 @@ async function initializeApp(config, settings) {
|
|
|
37996
37983
|
await ideClient.connect();
|
|
37997
37984
|
logIdeConnection(
|
|
37998
37985
|
config,
|
|
37999
|
-
new IdeConnectionEvent(
|
|
37986
|
+
new IdeConnectionEvent("start" /* START */)
|
|
38000
37987
|
);
|
|
38001
37988
|
}).catch((e) => {
|
|
38002
37989
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -38014,17 +38001,17 @@ async function initializeApp(config, settings) {
|
|
|
38014
38001
|
// packages/cli/src/config/auth.ts
|
|
38015
38002
|
async function validateAuthMethod(authMethod) {
|
|
38016
38003
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
38017
|
-
if (authMethod ===
|
|
38004
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
38018
38005
|
return null;
|
|
38019
38006
|
}
|
|
38020
|
-
if (authMethod ===
|
|
38007
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
38021
38008
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
38022
38009
|
if (!key) {
|
|
38023
38010
|
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)!";
|
|
38024
38011
|
}
|
|
38025
38012
|
return null;
|
|
38026
38013
|
}
|
|
38027
|
-
if (authMethod ===
|
|
38014
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
38028
38015
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
38029
38016
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
38030
38017
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -42852,7 +42839,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
42852
42839
|
const trustedFolders = loadTrustedFolders();
|
|
42853
42840
|
await trustedFolders.setValue(
|
|
42854
42841
|
this.workspaceDir,
|
|
42855
|
-
|
|
42842
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
42856
42843
|
);
|
|
42857
42844
|
} else {
|
|
42858
42845
|
throw new Error(
|
|
@@ -43047,7 +43034,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43047
43034
|
newExtensionConfig.version,
|
|
43048
43035
|
previousExtensionConfig.version,
|
|
43049
43036
|
installMetadata.type,
|
|
43050
|
-
|
|
43037
|
+
"success" /* Success */
|
|
43051
43038
|
)
|
|
43052
43039
|
);
|
|
43053
43040
|
if (newExtensionName !== previousName) {
|
|
@@ -43070,7 +43057,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43070
43057
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
43071
43058
|
newExtensionConfig.version,
|
|
43072
43059
|
installMetadata.type,
|
|
43073
|
-
|
|
43060
|
+
"success" /* Success */
|
|
43074
43061
|
)
|
|
43075
43062
|
);
|
|
43076
43063
|
await this.enableExtension(
|
|
@@ -43118,7 +43105,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43118
43105
|
newExtensionConfig?.version ?? "",
|
|
43119
43106
|
previousExtensionConfig.version,
|
|
43120
43107
|
installMetadata.type,
|
|
43121
|
-
|
|
43108
|
+
"error" /* Error */
|
|
43122
43109
|
)
|
|
43123
43110
|
);
|
|
43124
43111
|
} else {
|
|
@@ -43130,7 +43117,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43130
43117
|
extensionId ?? "",
|
|
43131
43118
|
newExtensionConfig?.version ?? "",
|
|
43132
43119
|
installMetadata.type,
|
|
43133
|
-
|
|
43120
|
+
"error" /* Error */
|
|
43134
43121
|
)
|
|
43135
43122
|
);
|
|
43136
43123
|
}
|
|
@@ -43158,7 +43145,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43158
43145
|
extension.name,
|
|
43159
43146
|
hashValue(extension.name),
|
|
43160
43147
|
extension.id,
|
|
43161
|
-
|
|
43148
|
+
"success" /* Success */
|
|
43162
43149
|
)
|
|
43163
43150
|
);
|
|
43164
43151
|
}
|
|
@@ -43424,7 +43411,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
43424
43411
|
if (eventHooks) {
|
|
43425
43412
|
for (const definition of eventHooks) {
|
|
43426
43413
|
for (const hook of definition.hooks) {
|
|
43427
|
-
if (hook.type ===
|
|
43414
|
+
if (hook.type === "command" /* Command */) {
|
|
43428
43415
|
hook.env = { ...hook.env, ...hookEnv };
|
|
43429
43416
|
}
|
|
43430
43417
|
}
|
|
@@ -44587,7 +44574,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
44587
44574
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
44588
44575
|
name: `resources/read (${resource.serverName})`,
|
|
44589
44576
|
description: resource.uri,
|
|
44590
|
-
status:
|
|
44577
|
+
status: "success" /* Success */,
|
|
44591
44578
|
isClientInitiated: true,
|
|
44592
44579
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
44593
44580
|
confirmationDetails: void 0
|
|
@@ -44602,7 +44589,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
44602
44589
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
44603
44590
|
name: `resources/read (${resource.serverName})`,
|
|
44604
44591
|
description: resource.uri,
|
|
44605
|
-
status:
|
|
44592
|
+
status: "error" /* Error */,
|
|
44606
44593
|
isClientInitiated: true,
|
|
44607
44594
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
44608
44595
|
confirmationDetails: void 0
|
|
@@ -44627,7 +44614,7 @@ Content from @${result.uri}:
|
|
|
44627
44614
|
}
|
|
44628
44615
|
if (hasError) {
|
|
44629
44616
|
const firstError = displays.find(
|
|
44630
|
-
(d) => d.status ===
|
|
44617
|
+
(d) => d.status === "error" /* Error */
|
|
44631
44618
|
);
|
|
44632
44619
|
return {
|
|
44633
44620
|
parts: [],
|
|
@@ -44666,7 +44653,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
44666
44653
|
callId: `client-read-${userMessageTimestamp}`,
|
|
44667
44654
|
name: readManyFilesTool.displayName,
|
|
44668
44655
|
description: invocation.getDescription(),
|
|
44669
|
-
status:
|
|
44656
|
+
status: "success" /* Success */,
|
|
44670
44657
|
isClientInitiated: true,
|
|
44671
44658
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
44672
44659
|
confirmationDetails: void 0
|
|
@@ -44713,7 +44700,7 @@ Content from @${displayPath}:
|
|
|
44713
44700
|
callId: `client-read-${userMessageTimestamp}`,
|
|
44714
44701
|
name: readManyFilesTool.displayName,
|
|
44715
44702
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
44716
|
-
status:
|
|
44703
|
+
status: "error" /* Error */,
|
|
44717
44704
|
isClientInitiated: true,
|
|
44718
44705
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
44719
44706
|
confirmationDetails: void 0
|
|
@@ -47980,7 +47967,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
47980
47967
|
if (wasRaw) {
|
|
47981
47968
|
setRawMode?.(true);
|
|
47982
47969
|
}
|
|
47983
|
-
coreEvents.emit(
|
|
47970
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
47984
47971
|
}
|
|
47985
47972
|
}
|
|
47986
47973
|
|
|
@@ -50674,7 +50661,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
50674
50661
|
extension.name,
|
|
50675
50662
|
installMetadata
|
|
50676
50663
|
);
|
|
50677
|
-
if (status ===
|
|
50664
|
+
if (status === "invalid" /* INVALID */) {
|
|
50678
50665
|
throw new Error("Extension integrity cannot be verified");
|
|
50679
50666
|
}
|
|
50680
50667
|
} catch (e) {
|
|
@@ -52170,11 +52157,11 @@ var ShellProcessor = class {
|
|
|
52170
52157
|
},
|
|
52171
52158
|
void 0
|
|
52172
52159
|
);
|
|
52173
|
-
if (decision ===
|
|
52160
|
+
if (decision === "deny" /* DENY */) {
|
|
52174
52161
|
throw new Error(
|
|
52175
52162
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
52176
52163
|
);
|
|
52177
|
-
} else if (decision ===
|
|
52164
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
52178
52165
|
commandsToConfirm.add(command);
|
|
52179
52166
|
}
|
|
52180
52167
|
}
|
|
@@ -53304,7 +53291,7 @@ var MultiFolderTrustDialog = ({
|
|
|
53304
53291
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
53305
53292
|
await trustedFolders.setValue(
|
|
53306
53293
|
expandedPath,
|
|
53307
|
-
|
|
53294
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
53308
53295
|
);
|
|
53309
53296
|
}
|
|
53310
53297
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -53635,10 +53622,10 @@ function isShellTool(name) {
|
|
|
53635
53622
|
return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
|
|
53636
53623
|
}
|
|
53637
53624
|
function isThisShellFocusable(name, status, config) {
|
|
53638
|
-
return !!(isShellTool(name) && status ===
|
|
53625
|
+
return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
|
|
53639
53626
|
}
|
|
53640
53627
|
function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
|
|
53641
|
-
return !!(isShellTool(name) && status ===
|
|
53628
|
+
return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
|
|
53642
53629
|
}
|
|
53643
53630
|
function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
|
|
53644
53631
|
const [userHasFocused, setUserHasFocused] = (0, import_react30.useState)(false);
|
|
@@ -53798,14 +53785,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
|
|
|
53798
53785
|
if (isTrackedToolCall(t)) {
|
|
53799
53786
|
return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
|
|
53800
53787
|
} else {
|
|
53801
|
-
return t.status !==
|
|
53788
|
+
return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
|
|
53802
53789
|
}
|
|
53803
53790
|
});
|
|
53804
53791
|
const isEmbeddedShellFocused = toolsToInspect.some((t) => {
|
|
53805
53792
|
if (isTrackedToolCall(t)) {
|
|
53806
53793
|
return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
|
|
53807
53794
|
} else {
|
|
53808
|
-
return isShellTool(t.name) && t.status ===
|
|
53795
|
+
return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
|
|
53809
53796
|
}
|
|
53810
53797
|
});
|
|
53811
53798
|
const isShellCommand = toolsToInspect.some((t) => {
|
|
@@ -55889,7 +55876,7 @@ var clearCommand = {
|
|
|
55889
55876
|
const config = context.services.agentContext?.config;
|
|
55890
55877
|
const hookSystem = config?.getHookSystem();
|
|
55891
55878
|
if (hookSystem) {
|
|
55892
|
-
await hookSystem.fireSessionEndEvent(
|
|
55879
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
55893
55880
|
}
|
|
55894
55881
|
config?.injectionService.clear();
|
|
55895
55882
|
let newSessionId;
|
|
@@ -55906,7 +55893,7 @@ var clearCommand = {
|
|
|
55906
55893
|
}
|
|
55907
55894
|
let result;
|
|
55908
55895
|
if (hookSystem) {
|
|
55909
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
55896
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
55910
55897
|
}
|
|
55911
55898
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
55912
55899
|
if (config) {
|
|
@@ -58915,7 +58902,7 @@ var Footer = () => {
|
|
|
58915
58902
|
case "auth": {
|
|
58916
58903
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
58917
58904
|
if (!authType) break;
|
|
58918
|
-
const displayStr = authType ===
|
|
58905
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
58919
58906
|
addCol(
|
|
58920
58907
|
id,
|
|
58921
58908
|
header,
|
|
@@ -60708,12 +60695,12 @@ import path28 from "node:path";
|
|
|
60708
60695
|
function getIdeStatusMessage(ideClient) {
|
|
60709
60696
|
const connection = ideClient.getConnectionStatus();
|
|
60710
60697
|
switch (connection.status) {
|
|
60711
|
-
case
|
|
60698
|
+
case "connected" /* Connected */:
|
|
60712
60699
|
return {
|
|
60713
60700
|
messageType: "info",
|
|
60714
60701
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
60715
60702
|
};
|
|
60716
|
-
case
|
|
60703
|
+
case "connecting" /* Connecting */:
|
|
60717
60704
|
return {
|
|
60718
60705
|
messageType: "info",
|
|
60719
60706
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60754,7 +60741,7 @@ ${infoMessage}`;
|
|
|
60754
60741
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
60755
60742
|
const connection = ideClient.getConnectionStatus();
|
|
60756
60743
|
switch (connection.status) {
|
|
60757
|
-
case
|
|
60744
|
+
case "connected" /* Connected */: {
|
|
60758
60745
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
60759
60746
|
const context = ideContextStore.get();
|
|
60760
60747
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -60766,7 +60753,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
60766
60753
|
content
|
|
60767
60754
|
};
|
|
60768
60755
|
}
|
|
60769
|
-
case
|
|
60756
|
+
case "connecting" /* Connecting */:
|
|
60770
60757
|
return {
|
|
60771
60758
|
messageType: "info",
|
|
60772
60759
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -60788,7 +60775,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
60788
60775
|
const ideClient = await IdeClient.getInstance();
|
|
60789
60776
|
if (value) {
|
|
60790
60777
|
await ideClient.connect(options);
|
|
60791
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
60778
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
60792
60779
|
} else {
|
|
60793
60780
|
await ideClient.disconnect();
|
|
60794
60781
|
}
|
|
@@ -60876,7 +60863,7 @@ var ideCommand = async () => {
|
|
|
60876
60863
|
logToConsole: false
|
|
60877
60864
|
}
|
|
60878
60865
|
);
|
|
60879
|
-
if (ideClient.getConnectionStatus().status ===
|
|
60866
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
60880
60867
|
break;
|
|
60881
60868
|
}
|
|
60882
60869
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -60953,7 +60940,7 @@ var ideCommand = async () => {
|
|
|
60953
60940
|
}
|
|
60954
60941
|
};
|
|
60955
60942
|
const { status } = ideClient.getConnectionStatus();
|
|
60956
|
-
const isConnected = status ===
|
|
60943
|
+
const isConnected = status === "connected" /* Connected */;
|
|
60957
60944
|
if (isConnected) {
|
|
60958
60945
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
60959
60946
|
} else {
|
|
@@ -61053,13 +61040,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
61053
61040
|
const displayListener = (message) => {
|
|
61054
61041
|
context.ui.addItem({ type: "info", text: message });
|
|
61055
61042
|
};
|
|
61056
|
-
coreEvents.on(
|
|
61043
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
61057
61044
|
try {
|
|
61058
61045
|
context.ui.addItem({
|
|
61059
61046
|
type: "info",
|
|
61060
61047
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
61061
61048
|
});
|
|
61062
|
-
const { MCPOAuthProvider } = await import("./
|
|
61049
|
+
const { MCPOAuthProvider } = await import("./core-UIPNZ5VU.js");
|
|
61063
61050
|
let oauthConfig = server.oauth;
|
|
61064
61051
|
if (!oauthConfig) {
|
|
61065
61052
|
oauthConfig = { enabled: false };
|
|
@@ -61096,7 +61083,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
61096
61083
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
61097
61084
|
};
|
|
61098
61085
|
} finally {
|
|
61099
|
-
coreEvents.removeListener(
|
|
61086
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
61100
61087
|
}
|
|
61101
61088
|
},
|
|
61102
61089
|
completion: async (context, partialArg) => {
|
|
@@ -61142,10 +61129,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
61142
61129
|
}
|
|
61143
61130
|
const serverNames = Object.keys(mcpServers);
|
|
61144
61131
|
const connectingServers = serverNames.filter(
|
|
61145
|
-
(name) => getMCPServerStatus(name) ===
|
|
61132
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
61146
61133
|
);
|
|
61147
61134
|
const discoveryState = getMCPDiscoveryState();
|
|
61148
|
-
const discoveryInProgress = discoveryState ===
|
|
61135
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
61149
61136
|
const allTools = toolRegistry.getAllTools();
|
|
61150
61137
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
61151
61138
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -76923,7 +76910,7 @@ Return a JSON object with:
|
|
|
76923
76910
|
},
|
|
76924
76911
|
abortSignal: new AbortController().signal,
|
|
76925
76912
|
promptId: "triage-duplicates",
|
|
76926
|
-
role:
|
|
76913
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
76927
76914
|
});
|
|
76928
76915
|
const rec = response;
|
|
76929
76916
|
let canonical;
|
|
@@ -77757,7 +77744,7 @@ Return a JSON object with:
|
|
|
77757
77744
|
},
|
|
77758
77745
|
abortSignal: abortControllerRef.current.signal,
|
|
77759
77746
|
promptId: "triage-issues",
|
|
77760
|
-
role:
|
|
77747
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
77761
77748
|
});
|
|
77762
77749
|
return response;
|
|
77763
77750
|
},
|
|
@@ -78331,8 +78318,8 @@ var planCommand = {
|
|
|
78331
78318
|
return;
|
|
78332
78319
|
}
|
|
78333
78320
|
const previousApprovalMode = config.getApprovalMode();
|
|
78334
|
-
config.setApprovalMode(
|
|
78335
|
-
if (previousApprovalMode !==
|
|
78321
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
78322
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
78336
78323
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
78337
78324
|
}
|
|
78338
78325
|
if (context.invocation?.args) {
|
|
@@ -78391,10 +78378,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
78391
78378
|
rules.forEach((rule) => {
|
|
78392
78379
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
78393
78380
|
const modeSet = new Set(modes);
|
|
78394
|
-
if (modeSet.has(
|
|
78395
|
-
if (modeSet.has(
|
|
78396
|
-
if (modeSet.has(
|
|
78397
|
-
if (modeSet.has(
|
|
78381
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
78382
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
78383
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
78384
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
78398
78385
|
});
|
|
78399
78386
|
return result;
|
|
78400
78387
|
};
|
|
@@ -79775,7 +79762,7 @@ var upgradeCommand = {
|
|
|
79775
79762
|
action: async (context) => {
|
|
79776
79763
|
const config = context.services.agentContext?.config;
|
|
79777
79764
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
79778
|
-
if (authType !==
|
|
79765
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
79779
79766
|
return {
|
|
79780
79767
|
type: "message",
|
|
79781
79768
|
messageType: "error",
|
|
@@ -80004,7 +79991,7 @@ var BuiltinCommandLoader = class {
|
|
|
80004
79991
|
setupGithubCommand,
|
|
80005
79992
|
terminalSetupCommand,
|
|
80006
79993
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
80007
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
79994
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
80008
79995
|
];
|
|
80009
79996
|
handle?.end();
|
|
80010
79997
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -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-ODU7Z2RJ.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-VCO4TMD6.js";
|
|
73
73
|
import {
|
|
74
74
|
isDevelopment,
|
|
75
75
|
require_semver
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-KKKD4FID.js";
|
|
77
77
|
import {
|
|
78
78
|
emptyIcon,
|
|
79
79
|
mapCoreStatusToDisplayStatus,
|
|
80
80
|
require_react
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-44PCK4QK.js";
|
|
82
82
|
import {
|
|
83
83
|
ALL_EDITORS,
|
|
84
84
|
ApprovalMode,
|
|
@@ -253,7 +253,7 @@ import {
|
|
|
253
253
|
uiTelemetryService,
|
|
254
254
|
unescapePath,
|
|
255
255
|
validateUrlDestination
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-L57AYV6U.js";
|
|
257
257
|
import {
|
|
258
258
|
require_src
|
|
259
259
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -55243,7 +55243,7 @@ var authCommand = {
|
|
|
55243
55243
|
import process12 from "node:process";
|
|
55244
55244
|
|
|
55245
55245
|
// packages/cli/src/generated/git-commit.ts
|
|
55246
|
-
var GIT_COMMIT_INFO = "
|
|
55246
|
+
var GIT_COMMIT_INFO = "6ee817519";
|
|
55247
55247
|
|
|
55248
55248
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
55249
55249
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -61059,7 +61059,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
61059
61059
|
type: "info",
|
|
61060
61060
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
61061
61061
|
});
|
|
61062
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
61062
|
+
const { MCPOAuthProvider } = await import("./dist-OYZDNSTI.js");
|
|
61063
61063
|
let oauthConfig = server.oauth;
|
|
61064
61064
|
if (!oauthConfig) {
|
|
61065
61065
|
oauthConfig = { enabled: false };
|
|
@@ -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-WEP47ZZU.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_re,
|
|
18
18
|
require_semver,
|
|
19
19
|
require_valid
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L57AYV6U.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|
|
@@ -283872,7 +283872,7 @@ function isValidToolName(name3, options = {}) {
|
|
|
283872
283872
|
|
|
283873
283873
|
// packages/core/dist/src/generated/git-commit.js
|
|
283874
283874
|
var GIT_COMMIT_INFO = "89e9d25d6";
|
|
283875
|
-
var CLI_VERSION = "0.
|
|
283875
|
+
var CLI_VERSION = "0.68.0-preview.0";
|
|
283876
283876
|
|
|
283877
283877
|
// packages/core/dist/src/ide/detect-ide.js
|
|
283878
283878
|
var IDE_DEFINITIONS = {
|
|
@@ -308141,7 +308141,7 @@ function getVersion() {
|
|
|
308141
308141
|
}
|
|
308142
308142
|
versionPromise = (async () => {
|
|
308143
308143
|
const pkgJson = await getPackageJson(__dirname4);
|
|
308144
|
-
return "0.
|
|
308144
|
+
return "0.68.0-preview.0";
|
|
308145
308145
|
})();
|
|
308146
308146
|
return versionPromise;
|
|
308147
308147
|
}
|
|
@@ -343161,7 +343161,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
343161
343161
|
return provider;
|
|
343162
343162
|
}
|
|
343163
343163
|
case "oauth2": {
|
|
343164
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
343164
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-AYO4BU7A.js");
|
|
343165
343165
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
343166
343166
|
await provider.initialize();
|
|
343167
343167
|
return provider;
|
|
@@ -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-OZOUOK43.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_re,
|
|
18
18
|
require_semver,
|
|
19
19
|
require_valid
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZZOOHVBL.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|
|
@@ -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-WEP47ZZU.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|