@google/gemini-cli 0.61.0-preview.1 → 0.61.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-LZGP7KFI.js → chunk-2YTYPKEZ.js} +1 -1
- package/bundle/{chunk-4YQFFXRN.js → chunk-3BON7LO7.js} +1 -1
- package/bundle/{chunk-BHKACUMI.js → chunk-3YIQF3FY.js} +3 -3
- package/bundle/{chunk-MNBKYFEY.js → chunk-4DKTUBCF.js} +8 -9
- package/bundle/{chunk-MXQQJJNZ.js → chunk-4GP6HFBO.js} +7 -7
- package/bundle/{chunk-VSZD56FP.js → chunk-55E6VPR2.js} +54 -67
- package/bundle/{chunk-X63OLHR4.js → chunk-5FZXKDXH.js} +4 -4
- package/bundle/{chunk-O4KOWLVM.js → chunk-5V744PDA.js} +1 -1
- package/bundle/{chunk-BFB2YEJY.js → chunk-75COGLDC.js} +1 -1
- package/bundle/{chunk-PBNOO4UX.js → chunk-AMOGWHKC.js} +1 -1
- package/bundle/{chunk-TFQNPQHU.js → chunk-BS3JDRJQ.js} +1 -1
- package/bundle/{chunk-4D7PRDBS.js → chunk-DWY2O4BN.js} +1 -1
- package/bundle/{chunk-UEKG6P2N.js → chunk-DZZAUXYI.js} +5 -8
- package/bundle/{chunk-EM2O5AOZ.js → chunk-FJCIWVRV.js} +3 -3
- package/bundle/{chunk-KXVODVLE.js → chunk-HPLZM7PQ.js} +7 -7
- package/bundle/{chunk-HDPU5WOJ.js → chunk-JDPZ4CE3.js} +4 -4
- package/bundle/{chunk-GOOJJ7ZQ.js → chunk-RWXT3CQ6.js} +1 -1
- package/bundle/{chunk-OTWH6H2T.js → chunk-S2Z77X3K.js} +2 -2
- package/bundle/{chunk-FSZD7V6N.js → chunk-S7IITRXI.js} +2 -2
- package/bundle/{chunk-EUZJSBKR.js → chunk-TQ3FGGPE.js} +1 -1
- package/bundle/{chunk-SABJGE2G.js → chunk-VT3MBDD3.js} +3 -3
- package/bundle/{chunk-YD7YFB3H.js → chunk-W766PNZK.js} +2 -2
- package/bundle/{chunk-NQXTLK5U.js → chunk-Y2J3C62M.js} +14630 -7763
- package/bundle/{chunk-34PFYALD.js → chunk-YKD74FOF.js} +1 -1
- package/bundle/{cleanup-DGDWVDXX.js → cleanup-KRMS36ET.js} +2 -2
- package/bundle/{cleanup-ILJI4AEW.js → cleanup-PWFFQ2ZF.js} +2 -2
- package/bundle/{cleanup-QW4EQ3QR.js → cleanup-XO3PUOXN.js} +2 -2
- package/bundle/{core-HFCJBVEU.js → core-4U3AXZ3Y.js} +1 -1
- package/bundle/{dist-2BSGBE32.js → core-BYHFA5QC.js} +1 -1
- package/bundle/{devtoolsService-KXJDH42U.js → devtoolsService-4LLMXKZ3.js} +2 -2
- package/bundle/{devtoolsService-LWSF6JIT.js → devtoolsService-JTGAYMK3.js} +2 -2
- package/bundle/{devtoolsService-N3A5BSJN.js → devtoolsService-KPCAEWJX.js} +3 -4
- package/bundle/{dist-6YQ35ICZ.js → dist-3UYXETJU.js} +1 -1
- package/bundle/{gemini-ATQ3WGVL.js → gemini-3HFX2LNT.js} +14 -14
- package/bundle/{gemini-5UNXMZT3.js → gemini-4IF7D7UG.js} +198 -214
- package/bundle/{gemini-G7D5KPQ2.js → gemini-NPCD6A4N.js} +14 -14
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-WC6IXMOE.js → interactiveCli-4ZJLSCID.js} +8 -8
- package/bundle/{interactiveCli-EAB7PSHJ.js → interactiveCli-F3TDVF3E.js} +296 -315
- package/bundle/{interactiveCli-JYJNFC5D.js → interactiveCli-TRXNUIPM.js} +8 -8
- package/bundle/{liteRtServerManager-27LLIZ3H.js → liteRtServerManager-C5EQRV4O.js} +4 -4
- package/bundle/{liteRtServerManager-HB6JSWYM.js → liteRtServerManager-LQNV6EK2.js} +4 -4
- package/bundle/{liteRtServerManager-NSPOA7KV.js → liteRtServerManager-T6NSUQ7G.js} +4 -4
- package/bundle/{oauth2-provider-5CXK7KFQ.js → oauth2-provider-B67V2HIE.js} +1 -1
- package/bundle/{oauth2-provider-N7JBWITO.js → oauth2-provider-CIEE5U5B.js} +72 -38
- package/bundle/{oauth2-provider-FYIOQREN.js → oauth2-provider-UXWR2XFY.js} +1 -1
- package/bundle/{start-4CI64D6Q.js → start-4GM5UE3J.js} +6 -6
- package/bundle/{start-MHS6EQUA.js → start-7IHG7KRC.js} +6 -6
- package/bundle/{start-OO24SR5D.js → start-FBWB5XJU.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-7HAUMOMS.js +0 -102678
- package/bundle/chunk-H6SLDOAI.js +0 -398
- package/bundle/chunk-JKUZ4FYJ.js +0 -154
- package/bundle/chunk-NXDIRTLT.js +0 -512
- package/bundle/chunk-OO7JC2QX.js +0 -399635
- package/bundle/chunk-UST2ZL7P.js +0 -1571
- package/bundle/chunk-ZAUQFML4.js +0 -118
- package/bundle/chunk-ZXK7SZMG.js +0 -17368
- package/bundle/cleanup-R6YFTONK.js +0 -32
- package/bundle/devtoolsService-N4LL6WGD.js +0 -4359
- package/bundle/dist-C4IKSTQN.js +0 -2232
- package/bundle/gemini-RWMUQAJ6.js +0 -17764
- package/bundle/interactiveCli-KQPTYHND.js +0 -35029
- package/bundle/liteRtServerManager-WXCFUD52.js +0 -65
- package/bundle/oauth2-provider-Z7WSYKBF.js +0 -235
- package/bundle/start-WRVCTB7Z.js +0 -18
|
@@ -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
|
checkExhaustive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5FZXKDXH.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -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-TQ3FGGPE.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DZZAUXYI.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y2J3C62M.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -1,8 +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
|
-
CoreToolCallStatus,
|
|
4
3
|
checkExhaustive
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y2J3C62M.js";
|
|
6
5
|
import {
|
|
7
6
|
__commonJS,
|
|
8
7
|
__toESM
|
|
@@ -465,19 +464,19 @@ var require_react = __commonJS({
|
|
|
465
464
|
var import_react = __toESM(require_react(), 1);
|
|
466
465
|
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
467
466
|
switch (coreStatus) {
|
|
468
|
-
case
|
|
467
|
+
case "validating" /* Validating */:
|
|
469
468
|
return "Pending" /* Pending */;
|
|
470
|
-
case
|
|
469
|
+
case "awaiting_approval" /* AwaitingApproval */:
|
|
471
470
|
return "Confirming" /* Confirming */;
|
|
472
|
-
case
|
|
471
|
+
case "executing" /* Executing */:
|
|
473
472
|
return "Executing" /* Executing */;
|
|
474
|
-
case
|
|
473
|
+
case "success" /* Success */:
|
|
475
474
|
return "Success" /* Success */;
|
|
476
|
-
case
|
|
475
|
+
case "cancelled" /* Cancelled */:
|
|
477
476
|
return "Canceled" /* Canceled */;
|
|
478
|
-
case
|
|
477
|
+
case "error" /* Error */:
|
|
479
478
|
return "Error" /* Error */;
|
|
480
|
-
case
|
|
479
|
+
case "scheduled" /* Scheduled */:
|
|
481
480
|
return "Pending" /* Pending */;
|
|
482
481
|
default:
|
|
483
482
|
return checkExhaustive(coreStatus);
|
|
@@ -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-TQ3FGGPE.js";
|
|
6
6
|
import {
|
|
7
7
|
AppEvent,
|
|
8
8
|
appEvents
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
61
61
|
validateCustomTheme
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-DZZAUXYI.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-S2Z77X3K.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-4DKTUBCF.js";
|
|
70
70
|
import {
|
|
71
71
|
ALL_EDITORS,
|
|
72
72
|
ApprovalMode,
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
tokenLimit,
|
|
232
232
|
uiTelemetryService,
|
|
233
233
|
unescapePath
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-Y2J3C62M.js";
|
|
235
235
|
import {
|
|
236
236
|
require_src
|
|
237
237
|
} from "./chunk-TUDYL3X4.js";
|
|
@@ -77324,7 +77324,7 @@ var authCommand = {
|
|
|
77324
77324
|
import process29 from "node:process";
|
|
77325
77325
|
|
|
77326
77326
|
// packages/cli/src/generated/git-commit.ts
|
|
77327
|
-
var GIT_COMMIT_INFO = "
|
|
77327
|
+
var GIT_COMMIT_INFO = "cc0107ed2";
|
|
77328
77328
|
|
|
77329
77329
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77330
77330
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -83105,7 +83105,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83105
83105
|
type: "info",
|
|
83106
83106
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83107
83107
|
});
|
|
83108
|
-
const { MCPOAuthProvider } = await import("./core-
|
|
83108
|
+
const { MCPOAuthProvider } = await import("./core-BYHFA5QC.js");
|
|
83109
83109
|
let oauthConfig = server.oauth;
|
|
83110
83110
|
if (!oauthConfig) {
|
|
83111
83111
|
oauthConfig = { enabled: false };
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-75COGLDC.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-5V744PDA.js";
|
|
63
63
|
import {
|
|
64
64
|
isDevelopment
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-S7IITRXI.js";
|
|
66
66
|
import {
|
|
67
67
|
emptyIcon,
|
|
68
68
|
require_react
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-3BON7LO7.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-5FZXKDXH.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
|
}
|
|
@@ -75659,7 +75646,7 @@ var MultiFolderTrustDialog = ({
|
|
|
75659
75646
|
if (choice === 1 /* YES_AND_REMEMBER */) {
|
|
75660
75647
|
await trustedFolders.setValue(
|
|
75661
75648
|
expandedPath,
|
|
75662
|
-
|
|
75649
|
+
"TRUST_FOLDER" /* TRUST_FOLDER */
|
|
75663
75650
|
);
|
|
75664
75651
|
}
|
|
75665
75652
|
workspaceContext.addDirectory(expandedPath);
|
|
@@ -77337,7 +77324,7 @@ var authCommand = {
|
|
|
77337
77324
|
import process29 from "node:process";
|
|
77338
77325
|
|
|
77339
77326
|
// packages/cli/src/generated/git-commit.ts
|
|
77340
|
-
var GIT_COMMIT_INFO = "
|
|
77327
|
+
var GIT_COMMIT_INFO = "cc0107ed2";
|
|
77341
77328
|
|
|
77342
77329
|
// packages/cli/src/ui/utils/historyExportUtils.ts
|
|
77343
77330
|
import * as fsPromises from "node:fs/promises";
|
|
@@ -77983,7 +77970,7 @@ var clearCommand = {
|
|
|
77983
77970
|
const config = context.services.agentContext?.config;
|
|
77984
77971
|
const hookSystem = config?.getHookSystem();
|
|
77985
77972
|
if (hookSystem) {
|
|
77986
|
-
await hookSystem.fireSessionEndEvent(
|
|
77973
|
+
await hookSystem.fireSessionEndEvent("clear" /* Clear */);
|
|
77987
77974
|
}
|
|
77988
77975
|
config?.injectionService.clear();
|
|
77989
77976
|
let newSessionId;
|
|
@@ -78000,7 +77987,7 @@ var clearCommand = {
|
|
|
78000
77987
|
}
|
|
78001
77988
|
let result;
|
|
78002
77989
|
if (hookSystem) {
|
|
78003
|
-
result = await hookSystem.fireSessionStartEvent(
|
|
77990
|
+
result = await hookSystem.fireSessionStartEvent("clear" /* Clear */);
|
|
78004
77991
|
}
|
|
78005
77992
|
await new Promise((resolve9) => setImmediate(resolve9));
|
|
78006
77993
|
if (config) {
|
|
@@ -80999,7 +80986,7 @@ var Footer = () => {
|
|
|
80999
80986
|
case "auth": {
|
|
81000
80987
|
if (!settings.merged.ui.showUserIdentity) break;
|
|
81001
80988
|
if (!authType) break;
|
|
81002
|
-
const displayStr = authType ===
|
|
80989
|
+
const displayStr = authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? email ?? "google" : authType;
|
|
81003
80990
|
addCol(
|
|
81004
80991
|
id,
|
|
81005
80992
|
header,
|
|
@@ -82767,12 +82754,12 @@ import path29 from "node:path";
|
|
|
82767
82754
|
function getIdeStatusMessage(ideClient) {
|
|
82768
82755
|
const connection = ideClient.getConnectionStatus();
|
|
82769
82756
|
switch (connection.status) {
|
|
82770
|
-
case
|
|
82757
|
+
case "connected" /* Connected */:
|
|
82771
82758
|
return {
|
|
82772
82759
|
messageType: "info",
|
|
82773
82760
|
content: `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`
|
|
82774
82761
|
};
|
|
82775
|
-
case
|
|
82762
|
+
case "connecting" /* Connecting */:
|
|
82776
82763
|
return {
|
|
82777
82764
|
messageType: "info",
|
|
82778
82765
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82813,7 +82800,7 @@ ${infoMessage}`;
|
|
|
82813
82800
|
async function getIdeStatusMessageWithFiles(ideClient) {
|
|
82814
82801
|
const connection = ideClient.getConnectionStatus();
|
|
82815
82802
|
switch (connection.status) {
|
|
82816
|
-
case
|
|
82803
|
+
case "connected" /* Connected */: {
|
|
82817
82804
|
let content = `\u{1F7E2} Connected to ${ideClient.getDetectedIdeDisplayName()}`;
|
|
82818
82805
|
const context = ideContextStore.get();
|
|
82819
82806
|
const openFiles = context?.workspaceState?.openFiles;
|
|
@@ -82825,7 +82812,7 @@ async function getIdeStatusMessageWithFiles(ideClient) {
|
|
|
82825
82812
|
content
|
|
82826
82813
|
};
|
|
82827
82814
|
}
|
|
82828
|
-
case
|
|
82815
|
+
case "connecting" /* Connecting */:
|
|
82829
82816
|
return {
|
|
82830
82817
|
messageType: "info",
|
|
82831
82818
|
content: `\u{1F7E1} Connecting...`
|
|
@@ -82847,7 +82834,7 @@ async function setIdeModeAndSyncConnection(config, value, options = {}) {
|
|
|
82847
82834
|
const ideClient = await IdeClient.getInstance();
|
|
82848
82835
|
if (value) {
|
|
82849
82836
|
await ideClient.connect(options);
|
|
82850
|
-
logIdeConnection(config, new IdeConnectionEvent(
|
|
82837
|
+
logIdeConnection(config, new IdeConnectionEvent("session" /* SESSION */));
|
|
82851
82838
|
} else {
|
|
82852
82839
|
await ideClient.disconnect();
|
|
82853
82840
|
}
|
|
@@ -82935,7 +82922,7 @@ var ideCommand = async () => {
|
|
|
82935
82922
|
logToConsole: false
|
|
82936
82923
|
}
|
|
82937
82924
|
);
|
|
82938
|
-
if (ideClient.getConnectionStatus().status ===
|
|
82925
|
+
if (ideClient.getConnectionStatus().status === "connected" /* Connected */) {
|
|
82939
82926
|
break;
|
|
82940
82927
|
}
|
|
82941
82928
|
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
@@ -83012,7 +82999,7 @@ var ideCommand = async () => {
|
|
|
83012
82999
|
}
|
|
83013
83000
|
};
|
|
83014
83001
|
const { status } = ideClient.getConnectionStatus();
|
|
83015
|
-
const isConnected = status ===
|
|
83002
|
+
const isConnected = status === "connected" /* Connected */;
|
|
83016
83003
|
if (isConnected) {
|
|
83017
83004
|
ideSlashCommand.subCommands = [statusCommand2, disableCommand5];
|
|
83018
83005
|
} else {
|
|
@@ -83112,13 +83099,13 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83112
83099
|
const displayListener = (message) => {
|
|
83113
83100
|
context.ui.addItem({ type: "info", text: message });
|
|
83114
83101
|
};
|
|
83115
|
-
coreEvents.on(
|
|
83102
|
+
coreEvents.on("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83116
83103
|
try {
|
|
83117
83104
|
context.ui.addItem({
|
|
83118
83105
|
type: "info",
|
|
83119
83106
|
text: `Starting OAuth authentication for MCP server '${serverName}'...`
|
|
83120
83107
|
});
|
|
83121
|
-
const { MCPOAuthProvider } = await import("./
|
|
83108
|
+
const { MCPOAuthProvider } = await import("./core-4U3AXZ3Y.js");
|
|
83122
83109
|
let oauthConfig = server.oauth;
|
|
83123
83110
|
if (!oauthConfig) {
|
|
83124
83111
|
oauthConfig = { enabled: false };
|
|
@@ -83155,7 +83142,7 @@ Use /mcp auth <server-name> to authenticate.`
|
|
|
83155
83142
|
content: `Failed to authenticate with MCP server '${serverName}': ${getErrorMessage(error)}`
|
|
83156
83143
|
};
|
|
83157
83144
|
} finally {
|
|
83158
|
-
coreEvents.removeListener(
|
|
83145
|
+
coreEvents.removeListener("oauth-display-message" /* OauthDisplayMessage */, displayListener);
|
|
83159
83146
|
}
|
|
83160
83147
|
},
|
|
83161
83148
|
completion: async (context, partialArg) => {
|
|
@@ -83201,10 +83188,10 @@ var listAction2 = async (context, showDescriptions = false, showSchema = false,
|
|
|
83201
83188
|
}
|
|
83202
83189
|
const serverNames = Object.keys(mcpServers);
|
|
83203
83190
|
const connectingServers = serverNames.filter(
|
|
83204
|
-
(name) => getMCPServerStatus(name) ===
|
|
83191
|
+
(name) => getMCPServerStatus(name) === "connecting" /* CONNECTING */
|
|
83205
83192
|
);
|
|
83206
83193
|
const discoveryState = getMCPDiscoveryState();
|
|
83207
|
-
const discoveryInProgress = discoveryState ===
|
|
83194
|
+
const discoveryInProgress = discoveryState === "in_progress" /* IN_PROGRESS */ || connectingServers.length > 0;
|
|
83208
83195
|
const allTools = toolRegistry.getAllTools();
|
|
83209
83196
|
const mcpTools = allTools.filter((tool) => tool instanceof DiscoveredMCPTool);
|
|
83210
83197
|
const promptRegistry = config.getPromptRegistry();
|
|
@@ -98973,7 +98960,7 @@ Return a JSON object with:
|
|
|
98973
98960
|
},
|
|
98974
98961
|
abortSignal: new AbortController().signal,
|
|
98975
98962
|
promptId: "triage-duplicates",
|
|
98976
|
-
role:
|
|
98963
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
98977
98964
|
});
|
|
98978
98965
|
const rec = response;
|
|
98979
98966
|
let canonical;
|
|
@@ -99807,7 +99794,7 @@ Return a JSON object with:
|
|
|
99807
99794
|
},
|
|
99808
99795
|
abortSignal: abortControllerRef.current.signal,
|
|
99809
99796
|
promptId: "triage-issues",
|
|
99810
|
-
role:
|
|
99797
|
+
role: "utility_tool" /* UTILITY_TOOL */
|
|
99811
99798
|
});
|
|
99812
99799
|
return response;
|
|
99813
99800
|
},
|
|
@@ -100381,8 +100368,8 @@ var planCommand = {
|
|
|
100381
100368
|
return;
|
|
100382
100369
|
}
|
|
100383
100370
|
const previousApprovalMode = config.getApprovalMode();
|
|
100384
|
-
config.setApprovalMode(
|
|
100385
|
-
if (previousApprovalMode !==
|
|
100371
|
+
config.setApprovalMode("plan" /* PLAN */);
|
|
100372
|
+
if (previousApprovalMode !== "plan" /* PLAN */) {
|
|
100386
100373
|
coreEvents.emitFeedback("info", "Switched to Plan Mode.");
|
|
100387
100374
|
}
|
|
100388
100375
|
if (context.invocation?.args) {
|
|
@@ -100441,10 +100428,10 @@ var categorizeRulesByMode = (rules) => {
|
|
|
100441
100428
|
rules.forEach((rule) => {
|
|
100442
100429
|
const modes = rule.modes?.length ? rule.modes : ALL_MODES;
|
|
100443
100430
|
const modeSet = new Set(modes);
|
|
100444
|
-
if (modeSet.has(
|
|
100445
|
-
if (modeSet.has(
|
|
100446
|
-
if (modeSet.has(
|
|
100447
|
-
if (modeSet.has(
|
|
100431
|
+
if (modeSet.has("default" /* DEFAULT */)) result.normal.push(rule);
|
|
100432
|
+
if (modeSet.has("autoEdit" /* AUTO_EDIT */)) result.autoEdit.push(rule);
|
|
100433
|
+
if (modeSet.has("yolo" /* YOLO */)) result.yolo.push(rule);
|
|
100434
|
+
if (modeSet.has("plan" /* PLAN */)) result.plan.push(rule);
|
|
100448
100435
|
});
|
|
100449
100436
|
return result;
|
|
100450
100437
|
};
|
|
@@ -101825,7 +101812,7 @@ var upgradeCommand = {
|
|
|
101825
101812
|
action: async (context) => {
|
|
101826
101813
|
const config = context.services.agentContext?.config;
|
|
101827
101814
|
const authType = config?.getContentGeneratorConfig()?.authType;
|
|
101828
|
-
if (authType !==
|
|
101815
|
+
if (authType !== "oauth-personal" /* LOGIN_WITH_GOOGLE */) {
|
|
101829
101816
|
return {
|
|
101830
101817
|
type: "message",
|
|
101831
101818
|
messageType: "error",
|
|
@@ -102054,7 +102041,7 @@ var BuiltinCommandLoader = class {
|
|
|
102054
102041
|
setupGithubCommand,
|
|
102055
102042
|
terminalSetupCommand,
|
|
102056
102043
|
...this.config?.isVoiceModeEnabled() ? [voiceCommand] : [],
|
|
102057
|
-
...this.config?.getContentGeneratorConfig()?.authType ===
|
|
102044
|
+
...this.config?.getContentGeneratorConfig()?.authType === "oauth-personal" /* LOGIN_WITH_GOOGLE */ ? [upgradeCommand] : []
|
|
102058
102045
|
];
|
|
102059
102046
|
handle?.end();
|
|
102060
102047
|
return allDefinitions.filter((cmd) => cmd !== null);
|
|
@@ -283589,8 +283589,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
283589
283589
|
}
|
|
283590
283590
|
|
|
283591
283591
|
// packages/core/src/generated/git-commit.ts
|
|
283592
|
-
var GIT_COMMIT_INFO = "
|
|
283593
|
-
var CLI_VERSION = "0.61.0-preview.
|
|
283592
|
+
var GIT_COMMIT_INFO = "cc0107ed2";
|
|
283593
|
+
var CLI_VERSION = "0.61.0-preview.1";
|
|
283594
283594
|
|
|
283595
283595
|
// packages/core/src/ide/detect-ide.ts
|
|
283596
283596
|
var IDE_DEFINITIONS = {
|
|
@@ -307210,7 +307210,7 @@ function getVersion() {
|
|
|
307210
307210
|
}
|
|
307211
307211
|
versionPromise = (async () => {
|
|
307212
307212
|
const pkgJson = await getPackageJson(__dirname4);
|
|
307213
|
-
return "0.61.0-preview.
|
|
307213
|
+
return "0.61.0-preview.1";
|
|
307214
307214
|
})();
|
|
307215
307215
|
return versionPromise;
|
|
307216
307216
|
}
|
|
@@ -342930,7 +342930,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
342930
342930
|
return provider;
|
|
342931
342931
|
}
|
|
342932
342932
|
case "oauth2": {
|
|
342933
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
342933
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-CIEE5U5B.js");
|
|
342934
342934
|
const provider = new OAuth2AuthProvider(
|
|
342935
342935
|
authConfig,
|
|
342936
342936
|
options.agentName ?? "unknown",
|
|
@@ -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-BS3JDRJQ.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RWXT3CQ6.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|