@google/gemini-cli 0.57.0-preview.0 → 0.57.0-preview.1
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-ACDZS2RE.js → chunk-3BVBON3V.js} +1 -1
- package/bundle/{chunk-2UGGPOEV.js → chunk-3NPMAHLX.js} +1 -1
- package/bundle/{chunk-QVDXZMEX.js → chunk-4ALCU2HQ.js} +1 -1
- package/bundle/{chunk-NXS624CI.js → chunk-4SNEOO5E.js} +2 -2
- package/bundle/{chunk-73OHVDUZ.js → chunk-65C235NM.js} +7 -7
- package/bundle/{chunk-HKTHSWSS.js → chunk-AKCYXG7C.js} +7 -7
- package/bundle/{chunk-IKGOC5B6.js → chunk-ALVDOQNA.js} +1 -1
- package/bundle/{chunk-OFFEM74O.js → chunk-EAK33LFP.js} +1 -1
- package/bundle/{chunk-3C6JYNPC.js → chunk-FHDRG5U4.js} +67 -54
- package/bundle/{chunk-2UICYJMD.js → chunk-G65GW52B.js} +107 -21
- package/bundle/{chunk-WH63Z45A.js → chunk-GK7NUJ35.js} +8 -5
- package/bundle/{chunk-SHIJDXMN.js → chunk-GMQ6QNZB.js} +1 -1
- package/bundle/chunk-LNXGFWGZ.js +17332 -0
- package/bundle/{chunk-O3QB4SVS.js → chunk-MBWROXYM.js} +2 -2
- package/bundle/{chunk-W4CY7TCG.js → chunk-NMMXRZ53.js} +2 -2
- package/bundle/{chunk-R3JDAZVL.js → chunk-NPOI4K6X.js} +7771 -14363
- package/bundle/{chunk-QB46S6FV.js → chunk-NQ4RH42O.js} +9 -8
- package/bundle/{chunk-FWGOOSQK.js → chunk-O7SBKM7M.js} +112 -20
- package/bundle/{chunk-M6E5CLIH.js → chunk-Q73BPF7A.js} +1 -1
- package/bundle/{chunk-XDJMDRLM.js → chunk-QJP6CMLN.js} +3 -3
- package/bundle/{chunk-EBKNEOAO.js → chunk-RLDNUS35.js} +1 -1
- package/bundle/{chunk-H2URGA7U.js → chunk-S5UX3QS5.js} +3 -3
- package/bundle/{chunk-XZF4EZOQ.js → chunk-SCBVGZXH.js} +1 -1
- package/bundle/chunk-SWQAIZEQ.js +102506 -0
- package/bundle/{chunk-6S4UF4JM.js → chunk-UMQE7UC6.js} +3 -3
- package/bundle/{chunk-ZY7Z5W6K.js → chunk-VBK54QCZ.js} +1 -1
- package/bundle/chunk-VGGWKRAC.js +154 -0
- package/bundle/chunk-W23OOD2C.js +118 -0
- package/bundle/chunk-WDFSF5L4.js +397601 -0
- package/bundle/chunk-XESAM7IL.js +512 -0
- package/bundle/chunk-Y3APL4PE.js +1571 -0
- package/bundle/chunk-ZMPGHLGO.js +398 -0
- package/bundle/{cleanup-JP2FD3CQ.js → cleanup-2W5DPMY3.js} +2 -2
- package/bundle/{cleanup-YFIFTNZ6.js → cleanup-OTHE7RNU.js} +2 -2
- package/bundle/{cleanup-Z65H2CUW.js → cleanup-SM67K64R.js} +2 -2
- package/bundle/cleanup-XAUT5CMD.js +32 -0
- package/bundle/{core-UBOS4Q6R.js → core-US34OW5M.js} +7 -1
- package/bundle/{devtoolsService-A34WT2MQ.js → devtoolsService-5J53UK6Z.js} +2 -2
- package/bundle/{devtoolsService-ACKZ7HRR.js → devtoolsService-GU2GQSOF.js} +2 -2
- package/bundle/{devtoolsService-BHG3WQEY.js → devtoolsService-JBFUXTCT.js} +4 -3
- package/bundle/devtoolsService-V46GUHRF.js +4359 -0
- package/bundle/{dist-B7OLK6PK.js → dist-5TYMQVIZ.js} +7 -1
- package/bundle/{core-EKXLT2AG.js → dist-OWKHVWTR.js} +7 -1
- package/bundle/dist-V5VJYW6J.js +2180 -0
- package/bundle/{gemini-3U3DNSSI.js → gemini-3M22N2C3.js} +13 -13
- package/bundle/{gemini-NJXFBFVJ.js → gemini-LSMTDETS.js} +214 -198
- package/bundle/gemini-OZOYJF22.js +17091 -0
- package/bundle/{gemini-7Z3ODIIX.js → gemini-W2B6CLJC.js} +13 -13
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-FIWFPOOG.js → interactiveCli-D6H37PJQ.js} +40 -18
- package/bundle/{interactiveCli-DNV4GCM5.js → interactiveCli-L3ZXOVEV.js} +347 -306
- package/bundle/{interactiveCli-LMXAWUCU.js → interactiveCli-LQJM6LRE.js} +40 -18
- package/bundle/interactiveCli-RGOYDSMH.js +34984 -0
- package/bundle/{liteRtServerManager-P62A6ZVG.js → liteRtServerManager-3BY6TBHG.js} +4 -4
- package/bundle/{liteRtServerManager-VBKDVKLU.js → liteRtServerManager-C5WZRQUF.js} +4 -4
- package/bundle/{liteRtServerManager-LQMOE7JK.js → liteRtServerManager-IGKUGGP4.js} +4 -4
- package/bundle/liteRtServerManager-IJ4I2PZA.js +65 -0
- package/bundle/{oauth2-provider-FWKP5A4D.js → oauth2-provider-KSRLPOK3.js} +1 -1
- package/bundle/{oauth2-provider-BKNKX6FS.js → oauth2-provider-RWKTMYJF.js} +1 -1
- package/bundle/{oauth2-provider-UPRM4Y2J.js → oauth2-provider-VHNLCU4Y.js} +38 -72
- package/bundle/oauth2-provider-ZT4OFVMK.js +235 -0
- package/bundle/{start-DG3DHS3K.js → start-EXAQFM4Y.js} +6 -6
- package/bundle/{start-Y2JKSYXK.js → start-IPZF32E3.js} +6 -6
- package/bundle/{start-BMBCT2CF.js → start-SVNTSNHV.js} +6 -6
- package/bundle/start-ZXU5BFZY.js +18 -0
- package/package.json +1 -1
|
@@ -282559,7 +282559,7 @@ function isValidToolName(name3, options = {}) {
|
|
|
282559
282559
|
}
|
|
282560
282560
|
|
|
282561
282561
|
// packages/core/dist/src/generated/git-commit.js
|
|
282562
|
-
var GIT_COMMIT_INFO = "
|
|
282562
|
+
var GIT_COMMIT_INFO = "3910b2093";
|
|
282563
282563
|
var CLI_VERSION = "0.57.0-preview.0";
|
|
282564
282564
|
|
|
282565
282565
|
// packages/core/dist/src/ide/detect-ide.js
|
|
@@ -305854,7 +305854,7 @@ function getVersion() {
|
|
|
305854
305854
|
}
|
|
305855
305855
|
versionPromise = (async () => {
|
|
305856
305856
|
const pkgJson = await getPackageJson(__dirname4);
|
|
305857
|
-
return "0.57.0-preview.
|
|
305857
|
+
return "0.57.0-preview.1";
|
|
305858
305858
|
})();
|
|
305859
305859
|
return versionPromise;
|
|
305860
305860
|
}
|
|
@@ -308120,8 +308120,8 @@ function getErrorReplaceResult(params, occurrences, finalOldString, finalNewStri
|
|
|
308120
308120
|
let error40 = void 0;
|
|
308121
308121
|
if (occurrences === 0) {
|
|
308122
308122
|
error40 = {
|
|
308123
|
-
display: `
|
|
308124
|
-
raw: `
|
|
308123
|
+
display: `Could not find an exact match for old_string in '${params.file_path}'.`,
|
|
308124
|
+
raw: `Could not find an exact match for 'old_string' in '${params.file_path}'. If previous edits modified the file or you are modifying lines outside your recent read window, please use ReadFile to inspect the target lines before retrying with an exact 'old_string'.`,
|
|
308125
308125
|
type: ToolErrorType.EDIT_NO_OCCURRENCE_FOUND
|
|
308126
308126
|
};
|
|
308127
308127
|
} else if (!params.allow_multiple && occurrences !== 1) {
|
|
@@ -308197,6 +308197,20 @@ var EditToolInvocation = class extends BaseToolInvocation {
|
|
|
308197
308197
|
};
|
|
308198
308198
|
}
|
|
308199
308199
|
async attemptSelfCorrection(params, currentContent, initialError, abortSignal, originalLineEnding) {
|
|
308200
|
+
if (!params.old_string || params.old_string.trim() === "") {
|
|
308201
|
+
return {
|
|
308202
|
+
currentContent,
|
|
308203
|
+
newContent: currentContent,
|
|
308204
|
+
occurrences: 0,
|
|
308205
|
+
isNewFile: false,
|
|
308206
|
+
error: {
|
|
308207
|
+
display: "Edit failed: 'old_string' cannot be empty.",
|
|
308208
|
+
raw: "The 'old_string' parameter is required. The Edit tool performs localized search-and-replace. If you are modifying a section of the file you have not viewed recently, call ReadFile on the target line range to inspect the current code, then provide the exact matching lines in 'old_string'.",
|
|
308209
|
+
type: ToolErrorType.INVALID_TOOL_PARAMS
|
|
308210
|
+
},
|
|
308211
|
+
originalLineEnding
|
|
308212
|
+
};
|
|
308213
|
+
}
|
|
308200
308214
|
let errorForLlmEditFixer = initialError.raw;
|
|
308201
308215
|
let contentForLlmEditFixer = currentContent;
|
|
308202
308216
|
const initialContentHash = hashContent(currentContent);
|
|
@@ -308535,7 +308549,7 @@ ${snippet2}`);
|
|
|
308535
308549
|
llmSuccessMessageParts.push(fuzzyFeedback);
|
|
308536
308550
|
}
|
|
308537
308551
|
if (this.params.modified_by_user) {
|
|
308538
|
-
llmSuccessMessageParts.push(`
|
|
308552
|
+
llmSuccessMessageParts.push(`The confirmation step modified the \`new_string\` content to be: ${this.params.new_string}.`);
|
|
308539
308553
|
}
|
|
308540
308554
|
const jitContext = await discoverJitContext(this.config, this.resolvedPath);
|
|
308541
308555
|
let llmContent = llmSuccessMessageParts.join(" ");
|
|
@@ -330568,6 +330582,46 @@ function extractCuratedHistory2(comprehensiveHistory) {
|
|
|
330568
330582
|
}
|
|
330569
330583
|
return curatedHistory;
|
|
330570
330584
|
}
|
|
330585
|
+
var THINKING_ONLY_NUDGE_MESSAGE = "[System: You previously generated thoughts but failed to provide a final user-facing response. Please ensure you provide your final answer or call a tool now.]";
|
|
330586
|
+
var NO_RESPONSE_TEXT_NUDGE_MESSAGE = "[System: You previously returned an empty response with no text or thoughts. Please ensure you provide your final answer or call a tool now.]";
|
|
330587
|
+
function applyRetryNudge(contents, nudgeMessage) {
|
|
330588
|
+
if (!nudgeMessage) {
|
|
330589
|
+
return contents;
|
|
330590
|
+
}
|
|
330591
|
+
const lastTurn = contents[contents.length - 1];
|
|
330592
|
+
const hasNudge = lastTurn?.parts?.some((p) => p.text?.includes(nudgeMessage));
|
|
330593
|
+
if (hasNudge) {
|
|
330594
|
+
return contents;
|
|
330595
|
+
}
|
|
330596
|
+
const cloned = contents.map((c4) => ({
|
|
330597
|
+
...c4,
|
|
330598
|
+
parts: c4.parts ? [...c4.parts] : []
|
|
330599
|
+
}));
|
|
330600
|
+
const clonedLastTurn = cloned[cloned.length - 1];
|
|
330601
|
+
const hasFunctionResponse = clonedLastTurn?.parts?.some((p) => p.functionResponse);
|
|
330602
|
+
if (clonedLastTurn?.role === "user" && hasFunctionResponse) {
|
|
330603
|
+
cloned.push({
|
|
330604
|
+
role: "model",
|
|
330605
|
+
parts: [{ text: "[Tool execution completed.]" }]
|
|
330606
|
+
});
|
|
330607
|
+
cloned.push({
|
|
330608
|
+
role: "user",
|
|
330609
|
+
parts: [{ text: nudgeMessage }]
|
|
330610
|
+
});
|
|
330611
|
+
} else if (clonedLastTurn?.role === "user") {
|
|
330612
|
+
if (!clonedLastTurn.parts) {
|
|
330613
|
+
clonedLastTurn.parts = [];
|
|
330614
|
+
}
|
|
330615
|
+
clonedLastTurn.parts.push({ text: `
|
|
330616
|
+
${nudgeMessage}` });
|
|
330617
|
+
} else {
|
|
330618
|
+
cloned.push({
|
|
330619
|
+
role: "user",
|
|
330620
|
+
parts: [{ text: nudgeMessage }]
|
|
330621
|
+
});
|
|
330622
|
+
}
|
|
330623
|
+
return cloned;
|
|
330624
|
+
}
|
|
330571
330625
|
var InvalidStreamError = class extends Error {
|
|
330572
330626
|
type;
|
|
330573
330627
|
constructor(message, type2) {
|
|
@@ -330956,23 +331010,19 @@ var GeminiChat = class {
|
|
|
330956
331010
|
tools: this.tools,
|
|
330957
331011
|
abortSignal
|
|
330958
331012
|
};
|
|
331013
|
+
let nudgeMessage = "";
|
|
330959
331014
|
if (modelConfigKey.isRetry && modelConfigKey.lastStreamError instanceof InvalidStreamError) {
|
|
330960
331015
|
const lastError = modelConfigKey.lastStreamError;
|
|
330961
|
-
let nudgeMessage = "";
|
|
330962
331016
|
if (lastError.type === "THINKING_ONLY_RESPONSE") {
|
|
330963
|
-
nudgeMessage =
|
|
331017
|
+
nudgeMessage = THINKING_ONLY_NUDGE_MESSAGE;
|
|
330964
331018
|
} else if (lastError.type === "NO_RESPONSE_TEXT") {
|
|
330965
|
-
nudgeMessage =
|
|
330966
|
-
}
|
|
330967
|
-
if (nudgeMessage) {
|
|
330968
|
-
if (typeof config2.systemInstruction === "string") {
|
|
330969
|
-
config2.systemInstruction += nudgeMessage;
|
|
330970
|
-
} else if (config2.systemInstruction === void 0) {
|
|
330971
|
-
config2.systemInstruction = nudgeMessage;
|
|
330972
|
-
}
|
|
331019
|
+
nudgeMessage = NO_RESPONSE_TEXT_NUDGE_MESSAGE;
|
|
330973
331020
|
}
|
|
330974
331021
|
}
|
|
330975
331022
|
let contentsToUse = supportsModernFeatures(modelToUse) || isGemini2Model(modelToUse) ? [...contentsForPreviewModel] : [...requestContents];
|
|
331023
|
+
if (nudgeMessage) {
|
|
331024
|
+
contentsToUse = applyRetryNudge(contentsToUse, nudgeMessage);
|
|
331025
|
+
}
|
|
330976
331026
|
const hookSystem = this.context.config.getHookSystem();
|
|
330977
331027
|
if (hookSystem) {
|
|
330978
331028
|
const beforeModelResult = await hookSystem.fireBeforeModelEvent({
|
|
@@ -330996,12 +331046,18 @@ var GeminiChat = class {
|
|
|
330996
331046
|
modelToUse = resolveModel(beforeModelResult.modifiedModel, useGemini3_1, false, hasAccessToPreview, this.context.config, this.context.config.hasGemini35FlashGAAccess?.() ?? false);
|
|
330997
331047
|
lastModelToUse = modelToUse;
|
|
330998
331048
|
contentsToUse = supportsModernFeatures(modelToUse) || isGemini2Model(modelToUse) ? [...contentsForPreviewModel] : [...requestContents];
|
|
331049
|
+
if (nudgeMessage) {
|
|
331050
|
+
contentsToUse = applyRetryNudge(contentsToUse, nudgeMessage);
|
|
331051
|
+
}
|
|
330999
331052
|
}
|
|
331000
331053
|
if (beforeModelResult.modifiedConfig) {
|
|
331001
331054
|
Object.assign(config2, beforeModelResult.modifiedConfig);
|
|
331002
331055
|
}
|
|
331003
331056
|
if (beforeModelResult.modifiedContents && Array.isArray(beforeModelResult.modifiedContents)) {
|
|
331004
331057
|
contentsToUse = beforeModelResult.modifiedContents;
|
|
331058
|
+
if (nudgeMessage) {
|
|
331059
|
+
contentsToUse = applyRetryNudge(contentsToUse, nudgeMessage);
|
|
331060
|
+
}
|
|
331005
331061
|
}
|
|
331006
331062
|
const toolSelectionResult = await hookSystem.fireBeforeToolSelectionEvent({
|
|
331007
331063
|
model: modelToUse,
|
|
@@ -331473,9 +331529,8 @@ function isInvalidArgumentError(errorMessage) {
|
|
|
331473
331529
|
return errorMessage.includes("Request contains an invalid argument");
|
|
331474
331530
|
}
|
|
331475
331531
|
function stripToolCallIdPrefixes(contents) {
|
|
331476
|
-
return contents.map((content) =>
|
|
331477
|
-
|
|
331478
|
-
parts: (content.parts || []).map((part) => {
|
|
331532
|
+
return contents.map((content) => {
|
|
331533
|
+
const parts2 = (content.parts || []).map((part) => {
|
|
331479
331534
|
const newPart = { ...part };
|
|
331480
331535
|
if (newPart.functionCall) {
|
|
331481
331536
|
const fc = newPart.functionCall;
|
|
@@ -331499,9 +331554,23 @@ function stripToolCallIdPrefixes(contents) {
|
|
|
331499
331554
|
};
|
|
331500
331555
|
}
|
|
331501
331556
|
}
|
|
331557
|
+
const hasOtherKeys = Object.keys(newPart).some((key) => key !== "text" && key !== "thought" && key !== "callIndex" && newPart[key] !== void 0);
|
|
331558
|
+
if (newPart.text !== void 0 && newPart.text === "" && hasOtherKeys) {
|
|
331559
|
+
delete newPart.text;
|
|
331560
|
+
}
|
|
331502
331561
|
return newPart;
|
|
331503
|
-
})
|
|
331504
|
-
|
|
331562
|
+
}).filter((part) => {
|
|
331563
|
+
const hasOtherKeys = Object.keys(part).some((key) => key !== "text" && key !== "thought" && key !== "callIndex" && part[key] !== void 0);
|
|
331564
|
+
if (part.text !== void 0 && part.text === "" && !hasOtherKeys) {
|
|
331565
|
+
return false;
|
|
331566
|
+
}
|
|
331567
|
+
return true;
|
|
331568
|
+
});
|
|
331569
|
+
return {
|
|
331570
|
+
...content,
|
|
331571
|
+
parts: parts2
|
|
331572
|
+
};
|
|
331573
|
+
});
|
|
331505
331574
|
}
|
|
331506
331575
|
function coalesceConsecutiveRoles(history) {
|
|
331507
331576
|
const result2 = [];
|
|
@@ -338716,7 +338785,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
338716
338785
|
return provider;
|
|
338717
338786
|
}
|
|
338718
338787
|
case "oauth2": {
|
|
338719
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
338788
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-ZT4OFVMK.js");
|
|
338720
338789
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
338721
338790
|
await provider.initialize();
|
|
338722
338791
|
return provider;
|
|
@@ -387316,6 +387385,7 @@ var LegacyAgentProtocol = class {
|
|
|
387316
387385
|
let currentDisplayContent = initialDisplayContent;
|
|
387317
387386
|
let turnCount = 0;
|
|
387318
387387
|
const maxTurns = this._config.getMaxSessionTurns();
|
|
387388
|
+
let isAfterToolResponse = false;
|
|
387319
387389
|
while (true) {
|
|
387320
387390
|
turnCount++;
|
|
387321
387391
|
if (maxTurns >= 0 && turnCount > maxTurns) {
|
|
@@ -387328,6 +387398,7 @@ var LegacyAgentProtocol = class {
|
|
|
387328
387398
|
}
|
|
387329
387399
|
const toolCallRequests = [];
|
|
387330
387400
|
let finishedReason = void 0;
|
|
387401
|
+
let hasVisibleText = false;
|
|
387331
387402
|
const responseStream = this._client.sendMessageStream(currentParts, this._abortController.signal, this._promptId, void 0, currentDisplayContent);
|
|
387332
387403
|
currentDisplayContent = void 0;
|
|
387333
387404
|
for await (const event of responseStream) {
|
|
@@ -387338,6 +387409,11 @@ var LegacyAgentProtocol = class {
|
|
|
387338
387409
|
if (event.type === GeminiEventType.ToolCallRequest) {
|
|
387339
387410
|
toolCallRequests.push(event.value);
|
|
387340
387411
|
}
|
|
387412
|
+
if (event.type === GeminiEventType.Content) {
|
|
387413
|
+
if (typeof event.value === "string" && event.value.trim() !== "") {
|
|
387414
|
+
hasVisibleText = true;
|
|
387415
|
+
}
|
|
387416
|
+
}
|
|
387341
387417
|
this._emit(translateEvent(event, this._translationState));
|
|
387342
387418
|
switch (event.type) {
|
|
387343
387419
|
case GeminiEventType.Error:
|
|
@@ -387362,6 +387438,12 @@ var LegacyAgentProtocol = class {
|
|
|
387362
387438
|
return;
|
|
387363
387439
|
}
|
|
387364
387440
|
if (toolCallRequests.length === 0) {
|
|
387441
|
+
if (isAfterToolResponse && !hasVisibleText) {
|
|
387442
|
+
const nudgeMessage = "[System: You successfully executed a tool but returned an empty response. Please analyze the tool output and explain your progress or final answer.]";
|
|
387443
|
+
currentParts = [{ text: nudgeMessage }];
|
|
387444
|
+
isAfterToolResponse = false;
|
|
387445
|
+
continue;
|
|
387446
|
+
}
|
|
387365
387447
|
if (finishedReason !== void 0) {
|
|
387366
387448
|
this._finishStream(mapFinishReason(finishedReason));
|
|
387367
387449
|
} else {
|
|
@@ -387419,6 +387501,7 @@ var LegacyAgentProtocol = class {
|
|
|
387419
387501
|
return;
|
|
387420
387502
|
}
|
|
387421
387503
|
currentParts = toolResponseParts;
|
|
387504
|
+
isAfterToolResponse = completedToolCalls.length > 0;
|
|
387422
387505
|
}
|
|
387423
387506
|
}
|
|
387424
387507
|
_emit(events) {
|
|
@@ -396547,6 +396630,9 @@ export {
|
|
|
396547
396630
|
SYNTHETIC_THOUGHT_SIGNATURE2 as SYNTHETIC_THOUGHT_SIGNATURE,
|
|
396548
396631
|
INTERRUPTED_RESPONSE_PLACEHOLDER,
|
|
396549
396632
|
isValidNonThoughtTextPart,
|
|
396633
|
+
THINKING_ONLY_NUDGE_MESSAGE,
|
|
396634
|
+
NO_RESPONSE_TEXT_NUDGE_MESSAGE,
|
|
396635
|
+
applyRetryNudge,
|
|
396550
396636
|
InvalidStreamError,
|
|
396551
396637
|
AgentExecutionStoppedError,
|
|
396552
396638
|
AgentExecutionBlockedError,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
AuthProviderType,
|
|
4
|
+
AuthType,
|
|
5
|
+
CoreEvent,
|
|
6
|
+
CoreToolCallStatus,
|
|
4
7
|
DEFAULT_MODEL_CONFIGS,
|
|
5
8
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
6
9
|
EDITOR_OPTIONS,
|
|
@@ -28,7 +31,7 @@ import {
|
|
|
28
31
|
partListUnionToString,
|
|
29
32
|
require_strip_json_comments,
|
|
30
33
|
sanitizeFilenamePart
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-G65GW52B.js";
|
|
32
35
|
import {
|
|
33
36
|
__commonJS,
|
|
34
37
|
__require,
|
|
@@ -10225,7 +10228,7 @@ function convertSessionToHistoryFormats(messages) {
|
|
|
10225
10228
|
args: tool.args,
|
|
10226
10229
|
description: tool.description || "",
|
|
10227
10230
|
renderOutputAsMarkdown: tool.renderOutputAsMarkdown ?? true,
|
|
10228
|
-
status: tool.status === "success" ?
|
|
10231
|
+
status: tool.status === "success" ? CoreToolCallStatus.Success : CoreToolCallStatus.Error,
|
|
10229
10232
|
resultDisplay: tool.resultDisplay,
|
|
10230
10233
|
confirmationDetails: void 0
|
|
10231
10234
|
}))
|
|
@@ -16289,8 +16292,8 @@ var LoadedSettings = class {
|
|
|
16289
16292
|
// React will pass a listener fn into this subscribe fn
|
|
16290
16293
|
// that listener fn will perform an object identity check on the snapshot and trigger a React re render if the snapshot has changed
|
|
16291
16294
|
subscribe(listener) {
|
|
16292
|
-
coreEvents.on(
|
|
16293
|
-
return () => coreEvents.off(
|
|
16295
|
+
coreEvents.on(CoreEvent.SettingsChanged, listener);
|
|
16296
|
+
return () => coreEvents.off(CoreEvent.SettingsChanged, listener);
|
|
16294
16297
|
}
|
|
16295
16298
|
getSnapshot() {
|
|
16296
16299
|
return this._snapshot;
|
|
@@ -16434,7 +16437,7 @@ function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selecte
|
|
|
16434
16437
|
}
|
|
16435
16438
|
}
|
|
16436
16439
|
let value = "cloudshell-gca";
|
|
16437
|
-
if (selectedAuthType ===
|
|
16440
|
+
if (selectedAuthType === AuthType.USE_VERTEX_AI) {
|
|
16438
16441
|
value = process2.env[USER_GCP_PROJECT];
|
|
16439
16442
|
}
|
|
16440
16443
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|