@google/gemini-cli 0.63.0-nightly.20260929.gfe6350238 → 0.63.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-D5PWWG7J.js → chunk-2V7FO5QV.js} +17 -14
- package/bundle/{chunk-MZZCBSEG.js → chunk-4M3FMNYW.js} +1 -1
- package/bundle/{chunk-ZZX34ZSC.js → chunk-63XA5K4A.js} +2 -2
- package/bundle/{chunk-2CWWUJ6L.js → chunk-6NM3GGUQ.js} +3 -3
- package/bundle/{chunk-3DZUGKXM.js → chunk-AM7DMDAW.js} +2 -2
- package/bundle/{chunk-XQAX2S72.js → chunk-ED56GFWH.js} +7 -7
- package/bundle/{chunk-FKRRUV32.js → chunk-ER445ATE.js} +1 -1
- package/bundle/{chunk-IAERXNI3.js → chunk-G4LSSABK.js} +1 -1
- package/bundle/{chunk-JWDJCBM5.js → chunk-HFRGWL72.js} +1 -1
- package/bundle/{chunk-VXHX5F3S.js → chunk-IVQKNOQE.js} +14809 -7826
- package/bundle/{chunk-KNHHXARR.js → chunk-JEJU2SSS.js} +1 -1
- package/bundle/{chunk-HRWA24MZ.js → chunk-OT76K4ZH.js} +3 -3
- package/bundle/{chunk-LD6UITWV.js → chunk-PBTA3JQ7.js} +1 -1
- package/bundle/{chunk-LHLQX2PG.js → chunk-POA4QAXA.js} +1 -1
- package/bundle/{chunk-3HRSVYTB.js → chunk-QFT2HRLF.js} +8 -9
- package/bundle/{chunk-SWV7ZVKH.js → chunk-RWBXO4OP.js} +17 -14
- package/bundle/{chunk-LKUDEIDP.js → chunk-SXGHDMQJ.js} +3 -3
- package/bundle/{chunk-VNZAVVNG.js → chunk-T6JVRMWQ.js} +5 -7
- package/bundle/{chunk-VD7SEMKX.js → chunk-U7XUX2JM.js} +1 -1
- package/bundle/{chunk-JECE262D.js → chunk-WDXWXGEI.js} +1 -1
- package/bundle/{chunk-C6UCL757.js → chunk-WFNHZELD.js} +58 -71
- package/bundle/{chunk-OR7RMH2H.js → chunk-WVIEQIJL.js} +1 -1
- package/bundle/{chunk-N2UNFTPP.js → chunk-XVUCVIMX.js} +2 -2
- package/bundle/{chunk-BFGTH5UC.js → chunk-Z6ZYLUTY.js} +7 -7
- package/bundle/{cleanup-6BMNXRVK.js → cleanup-3X3LXGSD.js} +2 -2
- package/bundle/{cleanup-EGCQDHCG.js → cleanup-5SERLJ6F.js} +2 -2
- package/bundle/{cleanup-WWBXF54B.js → cleanup-I3EZCS7H.js} +2 -2
- package/bundle/{core-TO2WCWVS.js → core-AELQHLEH.js} +1 -1
- package/bundle/{dist-EVVKUMWU.js → core-DQ33KNDF.js} +1 -1
- package/bundle/{devtoolsService-CD4BXQCU.js → devtoolsService-J7U7KJF3.js} +2 -2
- package/bundle/{devtoolsService-HLTYHXUC.js → devtoolsService-K5JNOPRE.js} +2 -2
- package/bundle/{devtoolsService-KKKGHFGU.js → devtoolsService-ZWL6J2QQ.js} +3 -4
- package/bundle/{dist-FPQFVRXW.js → dist-TZPQ7QYY.js} +1 -1
- package/bundle/{gemini-G4M56PGH.js → gemini-6YZTUGIX.js} +14 -14
- package/bundle/{gemini-D67CLDN3.js → gemini-O7LOMBXL.js} +14 -14
- package/bundle/{gemini-XYSZEME4.js → gemini-TIPFO7CW.js} +198 -214
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-LQ34I3IK.js → interactiveCli-I2CP4PIR.js} +8 -8
- package/bundle/{interactiveCli-5NAM6QNF.js → interactiveCli-I5OVF5KN.js} +8 -8
- package/bundle/{interactiveCli-DFBCP7YU.js → interactiveCli-MDJW5F3B.js} +292 -311
- package/bundle/{liteRtServerManager-DJ5BH4NI.js → liteRtServerManager-IDOOSG4Q.js} +4 -4
- package/bundle/{liteRtServerManager-DPX4VZQK.js → liteRtServerManager-LCAVI6PR.js} +4 -4
- package/bundle/{liteRtServerManager-FZHISVS5.js → liteRtServerManager-VF5GHIIE.js} +4 -4
- package/bundle/{oauth2-provider-XJKOJRHQ.js → oauth2-provider-CSFBMKNT.js} +1 -1
- package/bundle/{oauth2-provider-M3NSZVV6.js → oauth2-provider-LVULCANS.js} +1 -1
- package/bundle/{oauth2-provider-YGR7H7R6.js → oauth2-provider-X4VQX6TA.js} +72 -38
- package/bundle/{start-C5JP5VOP.js → start-P3SVMDEG.js} +6 -6
- package/bundle/{start-DW7QL3JX.js → start-QCD2SBKP.js} +6 -6
- package/bundle/{start-L7BD6NSX.js → start-TCWFLMYQ.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-4CCACYHM.js +0 -17446
- package/bundle/chunk-JEV44LLO.js +0 -154
- package/bundle/chunk-KQGP4BDM.js +0 -512
- package/bundle/chunk-MQKYUKCB.js +0 -118
- package/bundle/chunk-PPMXIVFB.js +0 -102951
- package/bundle/chunk-T44PFUON.js +0 -425
- package/bundle/chunk-WW6NERPJ.js +0 -400532
- package/bundle/chunk-YZ4YJMJW.js +0 -1571
- package/bundle/cleanup-XVPMDKAM.js +0 -32
- package/bundle/devtoolsService-O2VAV2XX.js +0 -4359
- package/bundle/dist-LKEXVAFT.js +0 -2250
- package/bundle/gemini-MZC4D7WM.js +0 -17863
- package/bundle/interactiveCli-UWZ7QXHW.js +0 -34915
- package/bundle/liteRtServerManager-QB4LEL42.js +0 -65
- package/bundle/oauth2-provider-Z5IRKTFU.js +0 -235
- package/bundle/start-ZH2DHESZ.js +0 -18
|
@@ -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-JEJU2SSS.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -63,23 +63,21 @@ import {
|
|
|
63
63
|
stripUnsafeCharacters,
|
|
64
64
|
toCodePoints,
|
|
65
65
|
validateCustomTheme
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-T6JVRMWQ.js";
|
|
67
67
|
import {
|
|
68
68
|
isDevelopment
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-XVUCVIMX.js";
|
|
70
70
|
import {
|
|
71
71
|
emptyIcon,
|
|
72
72
|
mapCoreStatusToDisplayStatus,
|
|
73
73
|
require_react
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QFT2HRLF.js";
|
|
75
75
|
import {
|
|
76
76
|
ALL_EDITORS,
|
|
77
77
|
ApprovalMode,
|
|
78
78
|
AsyncFzf,
|
|
79
|
-
AuthType,
|
|
80
79
|
Config,
|
|
81
80
|
CoreEvent,
|
|
82
|
-
CoreToolCallStatus,
|
|
83
81
|
DiscoveredMCPTool,
|
|
84
82
|
ExtensionDisableEvent,
|
|
85
83
|
ExtensionEnableEvent,
|
|
@@ -90,32 +88,21 @@ import {
|
|
|
90
88
|
ExtensionUpdateEvent,
|
|
91
89
|
GEMINI_CLI_COMPANION_EXTENSION_NAME,
|
|
92
90
|
GEMINI_DIR,
|
|
93
|
-
HookType,
|
|
94
|
-
IDEConnectionStatus,
|
|
95
91
|
INITIAL_HISTORY_LENGTH,
|
|
96
92
|
IdeClient,
|
|
97
93
|
IdeConnectionEvent,
|
|
98
|
-
IdeConnectionType,
|
|
99
|
-
IntegrityDataStatus,
|
|
100
94
|
KeychainTokenStorage,
|
|
101
|
-
LlmRole,
|
|
102
|
-
MCPDiscoveryState,
|
|
103
95
|
MCPOAuthTokenStorage,
|
|
104
|
-
MCPServerStatus,
|
|
105
96
|
ModelSlashCommandEvent,
|
|
106
|
-
PolicyDecision,
|
|
107
97
|
ProjectIdRequiredError,
|
|
108
98
|
REFERENCE_CONTENT_END,
|
|
109
99
|
REFERENCE_CONTENT_START,
|
|
110
100
|
ReadManyFilesTool,
|
|
111
101
|
RewindEvent,
|
|
112
102
|
SHELL_TOOL_NAME,
|
|
113
|
-
SessionEndReason,
|
|
114
|
-
SessionStartSource,
|
|
115
103
|
ShellExecutionService,
|
|
116
104
|
StartSessionEvent,
|
|
117
105
|
Storage,
|
|
118
|
-
TrustLevel,
|
|
119
106
|
UPGRADE_URL_PAGE,
|
|
120
107
|
UserAccountManager,
|
|
121
108
|
ValidationRequiredError,
|
|
@@ -251,7 +238,7 @@ import {
|
|
|
251
238
|
tokenLimit,
|
|
252
239
|
uiTelemetryService,
|
|
253
240
|
unescapePath
|
|
254
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-2V7FO5QV.js";
|
|
255
242
|
import {
|
|
256
243
|
require_src
|
|
257
244
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -60106,7 +60093,7 @@ var import_react34 = __toESM(require_react(), 1);
|
|
|
60106
60093
|
function useIdeTrustListener() {
|
|
60107
60094
|
const settings = useSettings();
|
|
60108
60095
|
const [connectionStatus, setConnectionStatus] = (0, import_react34.useState)(
|
|
60109
|
-
|
|
60096
|
+
"disconnected" /* Disconnected */
|
|
60110
60097
|
);
|
|
60111
60098
|
const previousTrust = (0, import_react34.useRef)(void 0);
|
|
60112
60099
|
const [restartReason, setRestartReason] = (0, import_react34.useState)("NONE");
|
|
@@ -60136,7 +60123,7 @@ function useIdeTrustListener() {
|
|
|
60136
60123
|
};
|
|
60137
60124
|
}, []);
|
|
60138
60125
|
const getSnapshot = () => {
|
|
60139
|
-
if (connectionStatus !==
|
|
60126
|
+
if (connectionStatus !== "connected" /* Connected */) {
|
|
60140
60127
|
return void 0;
|
|
60141
60128
|
}
|
|
60142
60129
|
return ideContextStore.get()?.workspaceState?.isTrusted;
|
|
@@ -60841,7 +60828,7 @@ async function initializeApp(config, settings) {
|
|
|
60841
60828
|
await ideClient.connect();
|
|
60842
60829
|
logIdeConnection(
|
|
60843
60830
|
config,
|
|
60844
|
-
new IdeConnectionEvent(
|
|
60831
|
+
new IdeConnectionEvent("start" /* START */)
|
|
60845
60832
|
);
|
|
60846
60833
|
}).catch((e) => {
|
|
60847
60834
|
debugLogger.error("Failed to initialize IDE client:", e);
|
|
@@ -60859,17 +60846,17 @@ async function initializeApp(config, settings) {
|
|
|
60859
60846
|
// packages/cli/src/config/auth.ts
|
|
60860
60847
|
async function validateAuthMethod(authMethod) {
|
|
60861
60848
|
loadEnvironment(loadSettings().merged, process.cwd());
|
|
60862
|
-
if (authMethod ===
|
|
60849
|
+
if (authMethod === "oauth-personal" /* LOGIN_WITH_GOOGLE */ || authMethod === "compute-default-credentials" /* COMPUTE_ADC */) {
|
|
60863
60850
|
return null;
|
|
60864
60851
|
}
|
|
60865
|
-
if (authMethod ===
|
|
60852
|
+
if (authMethod === "gemini-api-key" /* USE_GEMINI */) {
|
|
60866
60853
|
const key = process.env["GEMINI_API_KEY"] || await loadApiKey();
|
|
60867
60854
|
if (!key) {
|
|
60868
60855
|
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)!";
|
|
60869
60856
|
}
|
|
60870
60857
|
return null;
|
|
60871
60858
|
}
|
|
60872
|
-
if (authMethod ===
|
|
60859
|
+
if (authMethod === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
60873
60860
|
const hasVertexProjectLocationConfig = !!process.env["GOOGLE_CLOUD_PROJECT"] && !!process.env["GOOGLE_CLOUD_LOCATION"];
|
|
60874
60861
|
const hasGoogleApiKey = !!process.env["GOOGLE_API_KEY"];
|
|
60875
60862
|
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
|
|
@@ -65395,7 +65382,7 @@ var ExtensionManager = class extends ExtensionLoader {
|
|
|
65395
65382
|
const trustedFolders = loadTrustedFolders();
|
|
65396
65383
|
await trustedFolders.setValue(
|
|
65397
65384
|
this.workspaceDir,
|
|
65398
|
-
|
|
65385
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
65399
65386
|
);
|
|
65400
65387
|
} else {
|
|
65401
65388
|
throw new Error(
|
|
@@ -65581,7 +65568,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65581
65568
|
newExtensionConfig.version,
|
|
65582
65569
|
previousExtensionConfig.version,
|
|
65583
65570
|
installMetadata.type,
|
|
65584
|
-
|
|
65571
|
+
"success" /* Success */
|
|
65585
65572
|
)
|
|
65586
65573
|
);
|
|
65587
65574
|
if (newExtensionName !== previousName) {
|
|
@@ -65604,7 +65591,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65604
65591
|
getExtensionId(newExtensionConfig, installMetadata),
|
|
65605
65592
|
newExtensionConfig.version,
|
|
65606
65593
|
installMetadata.type,
|
|
65607
|
-
|
|
65594
|
+
"success" /* Success */
|
|
65608
65595
|
)
|
|
65609
65596
|
);
|
|
65610
65597
|
await this.enableExtension(
|
|
@@ -65637,7 +65624,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65637
65624
|
newExtensionConfig?.version ?? "",
|
|
65638
65625
|
previousExtensionConfig.version,
|
|
65639
65626
|
installMetadata.type,
|
|
65640
|
-
|
|
65627
|
+
"error" /* Error */
|
|
65641
65628
|
)
|
|
65642
65629
|
);
|
|
65643
65630
|
} else {
|
|
@@ -65649,7 +65636,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65649
65636
|
extensionId ?? "",
|
|
65650
65637
|
newExtensionConfig?.version ?? "",
|
|
65651
65638
|
installMetadata.type,
|
|
65652
|
-
|
|
65639
|
+
"error" /* Error */
|
|
65653
65640
|
)
|
|
65654
65641
|
);
|
|
65655
65642
|
}
|
|
@@ -65680,7 +65667,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65680
65667
|
extension.name,
|
|
65681
65668
|
hashValue(extension.name),
|
|
65682
65669
|
extension.id,
|
|
65683
|
-
|
|
65670
|
+
"success" /* Success */
|
|
65684
65671
|
)
|
|
65685
65672
|
);
|
|
65686
65673
|
}
|
|
@@ -65942,7 +65929,7 @@ Would you like to attempt to install via "git clone" instead?`
|
|
|
65942
65929
|
if (eventHooks) {
|
|
65943
65930
|
for (const definition of eventHooks) {
|
|
65944
65931
|
for (const hook of definition.hooks) {
|
|
65945
|
-
if (hook.type ===
|
|
65932
|
+
if (hook.type === "command" /* Command */) {
|
|
65946
65933
|
hook.env = { ...hook.env, ...hookEnv };
|
|
65947
65934
|
}
|
|
65948
65935
|
}
|
|
@@ -67070,7 +67057,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67070
67057
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67071
67058
|
name: `resources/read (${resource.serverName})`,
|
|
67072
67059
|
description: resource.uri,
|
|
67073
|
-
status:
|
|
67060
|
+
status: "success" /* Success */,
|
|
67074
67061
|
isClientInitiated: true,
|
|
67075
67062
|
resultDisplay: `Successfully read resource ${resource.uri}`,
|
|
67076
67063
|
confirmationDetails: void 0
|
|
@@ -67085,7 +67072,7 @@ async function readMcpResources(resourceParts, config, signal) {
|
|
|
67085
67072
|
callId: `mcp-resource-${resource.serverName}-${resource.uri}`,
|
|
67086
67073
|
name: `resources/read (${resource.serverName})`,
|
|
67087
67074
|
description: resource.uri,
|
|
67088
|
-
status:
|
|
67075
|
+
status: "error" /* Error */,
|
|
67089
67076
|
isClientInitiated: true,
|
|
67090
67077
|
resultDisplay: `Error reading resource ${resource.uri}: ${getErrorMessage(error)}`,
|
|
67091
67078
|
confirmationDetails: void 0
|
|
@@ -67110,7 +67097,7 @@ Content from @${result.uri}:
|
|
|
67110
67097
|
}
|
|
67111
67098
|
if (hasError) {
|
|
67112
67099
|
const firstError = displays.find(
|
|
67113
|
-
(d) => d.status ===
|
|
67100
|
+
(d) => d.status === "error" /* Error */
|
|
67114
67101
|
);
|
|
67115
67102
|
return {
|
|
67116
67103
|
parts: [],
|
|
@@ -67151,7 +67138,7 @@ async function readLocalFiles(resolvedFiles, config, signal, userMessageTimestam
|
|
|
67151
67138
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67152
67139
|
name: readManyFilesTool.displayName,
|
|
67153
67140
|
description: invocation.getDescription(),
|
|
67154
|
-
status:
|
|
67141
|
+
status: "success" /* Success */,
|
|
67155
67142
|
isClientInitiated: true,
|
|
67156
67143
|
resultDisplay: result.returnDisplay || `Successfully read: ${fileLabelsForDisplay.join(", ")}`,
|
|
67157
67144
|
confirmationDetails: void 0
|
|
@@ -67198,7 +67185,7 @@ Content from @${displayPath}:
|
|
|
67198
67185
|
callId: `client-read-${userMessageTimestamp}`,
|
|
67199
67186
|
name: readManyFilesTool.displayName,
|
|
67200
67187
|
description: invocation?.getDescription() ?? "Error attempting to execute tool to read files",
|
|
67201
|
-
status:
|
|
67188
|
+
status: "error" /* Error */,
|
|
67202
67189
|
isClientInitiated: true,
|
|
67203
67190
|
resultDisplay: `Error reading files (${fileLabelsForDisplay.join(", ")}): ${getErrorMessage(error)}`,
|
|
67204
67191
|
confirmationDetails: void 0
|
|
@@ -70465,7 +70452,7 @@ async function openFileInEditor(filePath, stdin, setRawMode, preferredEditorType
|
|
|
70465
70452
|
if (wasRaw) {
|
|
70466
70453
|
setRawMode?.(true);
|
|
70467
70454
|
}
|
|
70468
|
-
coreEvents.emit(
|
|
70455
|
+
coreEvents.emit("external-editor-closed" /* ExternalEditorClosed */);
|
|
70469
70456
|
}
|
|
70470
70457
|
}
|
|
70471
70458
|
|
|
@@ -73160,7 +73147,7 @@ async function updateExtension(extension, extensionManager, currentState, dispat
|
|
|
73160
73147
|
extension.name,
|
|
73161
73148
|
installMetadata
|
|
73162
73149
|
);
|
|
73163
|
-
if (status ===
|
|
73150
|
+
if (status === "invalid" /* INVALID */) {
|
|
73164
73151
|
throw new Error("Extension integrity cannot be verified");
|
|
73165
73152
|
}
|
|
73166
73153
|
} catch (e) {
|
|
@@ -74581,11 +74568,11 @@ var ShellProcessor = class {
|
|
|
74581
74568
|
},
|
|
74582
74569
|
void 0
|
|
74583
74570
|
);
|
|
74584
|
-
if (decision ===
|
|
74571
|
+
if (decision === "deny" /* DENY */) {
|
|
74585
74572
|
throw new Error(
|
|
74586
74573
|
`${this.commandName} cannot be run. Blocked command: "${command}". Reason: Blocked by policy.`
|
|
74587
74574
|
);
|
|
74588
|
-
} else if (decision ===
|
|
74575
|
+
} else if (decision === "ask_user" /* ASK_USER */) {
|
|
74589
74576
|
commandsToConfirm.add(command);
|
|
74590
74577
|
}
|
|
74591
74578
|
}
|
|
@@ -75700,7 +75687,7 @@ var MultiFolderTrustDialog = ({
|
|
|
75700
75687
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
75701
75688
|
await trustedFolders.setValue(
|
|
75702
75689
|
expandedPath,
|
|
75703
|
-
|
|
75690
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
75704
75691
|
);
|
|
75705
75692
|
}
|
|
75706
75693
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -75986,10 +75973,10 @@ function isShellTool(name) {
|
|
|
75986
75973
|
return name === SHELL_COMMAND_NAME || name === SHELL_NAME || name === SHELL_TOOL_NAME || normalized === "shell";
|
|
75987
75974
|
}
|
|
75988
75975
|
function isThisShellFocusable(name, status, config) {
|
|
75989
|
-
return !!(isShellTool(name) && status ===
|
|
75976
|
+
return !!(isShellTool(name) && status === "executing" /* Executing */ && config?.getEnableInteractiveShell());
|
|
75990
75977
|
}
|
|
75991
75978
|
function isThisShellFocused(name, status, ptyId, activeShellPtyId, embeddedShellFocused) {
|
|
75992
|
-
return !!(isShellTool(name) && status ===
|
|
75979
|
+
return !!(isShellTool(name) && status === "executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused);
|
|
75993
75980
|
}
|
|
75994
75981
|
function useFocusHint(isThisShellFocusable2, isThisShellFocused2, resultDisplay) {
|
|
75995
75982
|
const [userHasFocused, setUserHasFocused] = (0, import_react56.useState)(false);
|
|
@@ -76149,14 +76136,14 @@ function getToolGroupBorderAppearance(item, activeShellPtyId, embeddedShellFocus
|
|
|
76149
76136
|
if (isTrackedToolCall(t)) {
|
|
76150
76137
|
return t.status !== "success" && t.status !== "error" && t.status !== "cancelled";
|
|
76151
76138
|
} else {
|
|
76152
|
-
return t.status !==
|
|
76139
|
+
return t.status !== "success" /* Success */ && t.status !== "error" /* Error */ && t.status !== "cancelled" /* Cancelled */;
|
|
76153
76140
|
}
|
|
76154
76141
|
});
|
|
76155
76142
|
const isEmbeddedShellFocused = toolsToInspect.some((t) => {
|
|
76156
76143
|
if (isTrackedToolCall(t)) {
|
|
76157
76144
|
return isShellTool(t.request.name) && t.status === "executing" && t.pid === activeShellPtyId && !!embeddedShellFocused;
|
|
76158
76145
|
} else {
|
|
76159
|
-
return isShellTool(t.name) && t.status ===
|
|
76146
|
+
return isShellTool(t.name) && t.status === "executing" /* Executing */ && t.ptyId === activeShellPtyId && !!embeddedShellFocused;
|
|
76160
76147
|
}
|
|
76161
76148
|
});
|
|
76162
76149
|
const isShellCommand = toolsToInspect.some((t) => {
|
|
@@ -77594,7 +77581,7 @@ var authCommand = {
|
|
|
77594
77581
|
import process29 from "node:process";
|
|
77595
77582
|
|
|
77596
77583
|
// packages/cli/src/generated/git-commit.ts
|
|
77597
|
-
var GIT_COMMIT_INFO = "
|
|
77584
|
+
var GIT_COMMIT_INFO = "910b7cede";
|
|
77598
77585
|
|
|
77599
77586
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77600
77587
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -78240,7 +78227,7 @@ var clearCommand = {
|
|
|
78240
78227
|
const config = context.services.agentContext?.config;
|
|
78241
78228
|
const hookSystem = config?.getHookSystem();
|
|
78242
78229
|
if (hookSystem) {
|
|
78243
|
-
await hookSystem.fireSessionEndEvent(
|
|
78230
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
78244
78231
|
}
|
|
78245
78232
|
config?.injectionService.clear();
|
|
78246
78233
|
let newSessionId;
|
|
@@ -78257,7 +78244,7 @@ var clearCommand = {
|
|
|
78257
78244
|
}
|
|
78258
78245
|
let result;
|
|
78259
78246
|
if (hookSystem) {
|
|
78260
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
78247
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
78261
78248
|
}
|
|
78262
78249
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
78263
78250
|
if (config) {
|
|
@@ -81256,7 +81243,7 @@ var Footer = () => {
|
|
|
81256
81243
|
case "auth": {
|
|
81257
81244
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
81258
81245
|
if (!authType) break;
|
|
81259
|
-
const displayStr = authType ===
|
|
81246
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
81260
81247
|
addCol(
|
|
81261
81248
|
id,
|
|
81262
81249
|
header,
|
|
@@ -83024,12 +83011,12 @@ import path29 from "node:path";
|
|
|
83024
83011
|
function getIdeStatusMessage(ideClient) {
|
|
83025
83012
|
const connection = ideClient.getConnectionStatus();
|
|
83026
83013
|
switch (connection.status) {
|
|
83027
|
-
case
|
|
83014
|
+
case "connected" /* Connected */:
|
|
83028
83015
|
return {
|
|
83029
83016
|
messageType: "info",
|
|
83030
83017
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
83031
83018
|
};
|
|
83032
|
-
case
|
|
83019
|
+
case "connecting" /* Connecting */:
|
|
83033
83020
|
return {
|
|
83034
83021
|
messageType: "info",
|
|
83035
83022
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -83070,7 +83057,7 @@ ${infoMessage}`;
|
|
|
83070
83057
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
83071
83058
|
const connection = ideClient.getConnectionStatus();
|
|
83072
83059
|
switch (connection.status) {
|
|
83073
|
-
case
|
|
83060
|
+
case "connected" /* Connected */: {
|
|
83074
83061
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
83075
83062
|
const context = ideContextStore.get();
|
|
83076
83063
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -83082,7 +83069,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
83082
83069
|
content
|
|
83083
83070
|
};
|
|
83084
83071
|
}
|
|
83085
|
-
case
|
|
83072
|
+
case "connecting" /* Connecting */:
|
|
83086
83073
|
return {
|
|
83087
83074
|
messageType: "info",
|
|
83088
83075
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -83104,7 +83091,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
83104
83091
|
const ideClient = await IdeClient.getInstance();
|
|
83105
83092
|
if (value) {
|
|
83106
83093
|
await ideClient.connect(options);
|
|
83107
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
83094
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
83108
83095
|
} else {
|
|
83109
83096
|
await ideClient.disconnect();
|
|
83110
83097
|
}
|
|
@@ -83192,7 +83179,7 @@ var ideCommand = async () => {
|
|
|
83192
83179
|
logToConsole: false
|
|
83193
83180
|
}
|
|
83194
83181
|
);
|
|
83195
|
-
if (ideClient.getConnectionStatus().status ===
|
|
83182
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
83196
83183
|
break;
|
|
83197
83184
|
}
|
|
83198
83185
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -83269,7 +83256,7 @@ var ideCommand = async () => {
|
|
|
83269
83256
|
}
|
|
83270
83257
|
};
|
|
83271
83258
|
const { status } = ideClient.getConnectionStatus();
|
|
83272
|
-
const isConnected = status ===
|
|
83259
|
+
const isConnected = status === "connected" /* Connected */;
|
|
83273
83260
|
if (isConnected) {
|
|
83274
83261
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
83275
83262
|
} else {
|
|
@@ -83369,13 +83356,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83369
83356
|
const displayListener = (message) => {
|
|
83370
83357
|
context.ui.addItem({ type: "info", text: message });
|
|
83371
83358
|
};
|
|
83372
|
-
coreEvents.on(
|
|
83359
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83373
83360
|
try {
|
|
83374
83361
|
context.ui.addItem({
|
|
83375
83362
|
type: "info",
|
|
83376
83363
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83377
83364
|
});
|
|
83378
|
-
const { MCPOAuthProvider } = await import("./
|
|
83365
|
+
const { MCPOAuthProvider } = await import("./core-DQ33KNDF.js");
|
|
83379
83366
|
let oauthConfig = server.oauth;
|
|
83380
83367
|
if (!oauthConfig) {
|
|
83381
83368
|
oauthConfig = { enabled: false };
|
|
@@ -83412,7 +83399,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83412
83399
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
83413
83400
|
};
|
|
83414
83401
|
} finally {
|
|
83415
|
-
coreEvents.removeListener(
|
|
83402
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83416
83403
|
}
|
|
83417
83404
|
},
|
|
83418
83405
|
completion: async (context, partialArg) => {
|
|
@@ -83458,10 +83445,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
83458
83445
|
}
|
|
83459
83446
|
const serverNames = Object.keys(mcpServers);
|
|
83460
83447
|
const connectingServers = serverNames.filter(
|
|
83461
|
-
(name) => getMCPServerStatus(name) ===
|
|
83448
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
83462
83449
|
);
|
|
83463
83450
|
const discoveryState = getMCPDiscoveryState();
|
|
83464
|
-
const discoveryInProgress = discoveryState ===
|
|
83451
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
83465
83452
|
const allTools = toolRegistry.getAllTools();
|
|
83466
83453
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
83467
83454
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -99233,7 +99220,7 @@ Return a JSON object with:
|
|
|
99233
99220
|
},
|
|
99234
99221
|
abortSignal: new AbortController().signal,
|
|
99235
99222
|
promptId: "triage-duplicates",
|
|
99236
|
-
role:
|
|
99223
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
99237
99224
|
});
|
|
99238
99225
|
const rec = response;
|
|
99239
99226
|
let canonical;
|
|
@@ -100067,7 +100054,7 @@ Return a JSON object with:
|
|
|
100067
100054
|
},
|
|
100068
100055
|
abortSignal: abortControllerRef.current.signal,
|
|
100069
100056
|
promptId: "triage-issues",
|
|
100070
|
-
role:
|
|
100057
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
100071
100058
|
});
|
|
100072
100059
|
return response;
|
|
100073
100060
|
},
|
|
@@ -100641,8 +100628,8 @@ var planCommand = {
|
|
|
100641
100628
|
return;
|
|
100642
100629
|
}
|
|
100643
100630
|
const previousApprovalMode = config.getApprovalMode();
|
|
100644
|
-
config.setApprovalMode(
|
|
100645
|
-
if (previousApprovalMode !==
|
|
100631
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
100632
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
100646
100633
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
100647
100634
|
}
|
|
100648
100635
|
if (context.invocation?.args) {
|
|
@@ -100701,10 +100688,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
100701
100688
|
rules.forEach((rule) => {
|
|
100702
100689
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
100703
100690
|
const modeSet = new Set(modes);
|
|
100704
|
-
if (modeSet.has(
|
|
100705
|
-
if (modeSet.has(
|
|
100706
|
-
if (modeSet.has(
|
|
100707
|
-
if (modeSet.has(
|
|
100691
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
100692
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
100693
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
100694
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
100708
100695
|
});
|
|
100709
100696
|
return result;
|
|
100710
100697
|
};
|
|
@@ -102085,7 +102072,7 @@ var upgradeCommand = {
|
|
|
102085
102072
|
action: async (context) => {
|
|
102086
102073
|
const config = context.services.agentContext?.config;
|
|
102087
102074
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
102088
|
-
if (authType !==
|
|
102075
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
102089
102076
|
return {
|
|
102090
102077
|
type: "message",
|
|
102091
102078
|
messageType: "error",
|
|
@@ -102314,7 +102301,7 @@ var BuiltinCommandLoader = class {
|
|
|
102314
102301
|
setupGithubCommand,
|
|
102315
102302
|
terminalSetupCommand,
|
|
102316
102303
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
102317
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
102304
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
102318
102305
|
];
|
|
102319
102306
|
handle?.end();
|
|
102320
102307
|
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-WDXWXGEI.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-POA4QAXA.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2V7FO5QV.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-WVIEQIJL.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -63,15 +63,15 @@ import {
|
|
|
63
63
|
stripUnsafeCharacters,
|
|
64
64
|
toCodePoints,
|
|
65
65
|
validateCustomTheme
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-HFRGWL72.js";
|
|
67
67
|
import {
|
|
68
68
|
isDevelopment
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-AM7DMDAW.js";
|
|
70
70
|
import {
|
|
71
71
|
emptyIcon,
|
|
72
72
|
mapCoreStatusToDisplayStatus,
|
|
73
73
|
require_react
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ER445ATE.js";
|
|
75
75
|
import {
|
|
76
76
|
ALL_EDITORS,
|
|
77
77
|
ApprovalMode,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
tokenLimit,
|
|
252
252
|
uiTelemetryService,
|
|
253
253
|
unescapePath
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-RWBXO4OP.js";
|
|
255
255
|
import {
|
|
256
256
|
require_src
|
|
257
257
|
} from "./chunk-L6PII3GR.js";
|
|
@@ -77594,7 +77594,7 @@ var authCommand = {
|
|
|
77594
77594
|
import process29 from "node:process";
|
|
77595
77595
|
|
|
77596
77596
|
// packages/cli/src/generated/git-commit.ts
|
|
77597
|
-
var GIT_COMMIT_INFO = "
|
|
77597
|
+
var GIT_COMMIT_INFO = "573846625";
|
|
77598
77598
|
|
|
77599
77599
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77600
77600
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -83375,7 +83375,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83375
83375
|
type: "info",
|
|
83376
83376
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83377
83377
|
});
|
|
83378
|
-
const { MCPOAuthProvider } = await import("./dist-
|
|
83378
|
+
const { MCPOAuthProvider } = await import("./dist-TZPQ7QYY.js");
|
|
83379
83379
|
let oauthConfig = server.oauth;
|
|
83380
83380
|
if (!oauthConfig) {
|
|
83381
83381
|
oauthConfig = { enabled: false };
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-WDXWXGEI.js";
|
|
15
|
+
import "./chunk-RWBXO4OP.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-L6PII3GR.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-POA4QAXA.js";
|
|
15
|
+
import "./chunk-2V7FO5QV.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-L6PII3GR.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runSyncCleanup,
|
|
12
12
|
setupSignalHandlers,
|
|
13
13
|
setupTtyCheck
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-U7XUX2JM.js";
|
|
15
|
+
import "./chunk-IVQKNOQE.js";
|
|
16
16
|
import "./chunk-664ZODQF.js";
|
|
17
17
|
import "./chunk-IUUIT4SU.js";
|
|
18
18
|
import "./chunk-L6PII3GR.js";
|
|
@@ -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-IVQKNOQE.js";
|
|
6
6
|
import "./chunk-664ZODQF.js";
|
|
7
7
|
import "./chunk-IUUIT4SU.js";
|
|
8
8
|
import "./chunk-L6PII3GR.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-AELQHLEH.js");
|
|
4328
4328
|
const url = await startDevToolsServer(config);
|
|
4329
4329
|
if (shouldLaunchBrowser()) {
|
|
4330
4330
|
try {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CoreEvent,
|
|
4
4
|
coreEvents,
|
|
5
5
|
debugLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RWBXO4OP.js";
|
|
7
7
|
import "./chunk-664ZODQF.js";
|
|
8
8
|
import "./chunk-IUUIT4SU.js";
|
|
9
9
|
import "./chunk-L6PII3GR.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-TZPQ7QYY.js");
|
|
4329
4329
|
const url = await startDevToolsServer(config);
|
|
4330
4330
|
if (shouldLaunchBrowser()) {
|
|
4331
4331
|
try {
|