@google/gemini-cli 0.55.0-nightly.20260803.gf47d6c6f7 → 0.55.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-UGGIGHUY.js → chunk-3Q3RSCXS.js} +2 -2
- package/bundle/{chunk-TX2IYBFC.js → chunk-7LAM3MXG.js} +1 -1
- package/bundle/{chunk-JDIE4OGP.js → chunk-A7NLEV6J.js} +2 -2
- package/bundle/{chunk-247RTZ7E.js → chunk-AKJETY2D.js} +1 -1
- package/bundle/{chunk-EOZJKR7G.js → chunk-APDWRUAP.js} +156 -10
- package/bundle/{chunk-GBYUDBPY.js → chunk-DMPPAMW5.js} +1 -1
- package/bundle/{chunk-HBBAV4M2.js → chunk-F3GEJ37M.js} +1 -1
- package/bundle/{chunk-IZQHPXU3.js → chunk-G3NJ32VD.js} +1 -1
- package/bundle/{chunk-XOH64R7U.js → chunk-G4NBAJCP.js} +157 -8
- package/bundle/{chunk-LNBWFTWS.js → chunk-GL46CQLD.js} +7 -7
- package/bundle/{chunk-ZRW3QSPB.js → chunk-GPP3RO7B.js} +1 -1
- package/bundle/{chunk-L4DYZWIU.js → chunk-I535IUEN.js} +1 -1
- package/bundle/{chunk-GZMFT7VJ.js → chunk-IBEJG5F5.js} +7 -7
- package/bundle/{chunk-KPFJHUDT.js → chunk-KNRWWK34.js} +14418 -7632
- package/bundle/{chunk-GXX5CT3J.js → chunk-LXWZUVJW.js} +3 -3
- package/bundle/{chunk-YUPRTD4R.js → chunk-MWEFWYTU.js} +1 -1
- package/bundle/{chunk-AIQASXN2.js → chunk-O6HG25DV.js} +8 -9
- package/bundle/{chunk-5RLNQQRJ.js → chunk-QQVXLF7U.js} +3 -3
- package/bundle/{chunk-UVFOJGL4.js → chunk-RXENTUH3.js} +5 -8
- package/bundle/{chunk-IBDH3VVS.js → chunk-SEQ766WD.js} +1 -1
- package/bundle/{chunk-JFKV7Y3L.js → chunk-TQPJD4W5.js} +54 -67
- package/bundle/{chunk-QCPOXT4H.js → chunk-UM7AN6ZZ.js} +3 -3
- package/bundle/{chunk-QD74R34N.js → chunk-VHRT3UPF.js} +2 -2
- package/bundle/{chunk-R2LJ6YPL.js → chunk-YU5UI6S7.js} +1 -1
- package/bundle/{cleanup-BN6H5PAA.js → cleanup-2EQCXKR2.js} +2 -2
- package/bundle/{cleanup-JGN3SFC7.js → cleanup-CVITZEST.js} +2 -2
- package/bundle/{cleanup-XC53S3JH.js → cleanup-JPURY2FN.js} +2 -2
- package/bundle/{core-ERHR2CTL.js → core-2KFPOGVU.js} +3 -1
- package/bundle/{dist-56IFQ5K3.js → core-M7EWVE7C.js} +3 -1
- package/bundle/{devtoolsService-ODQFI4PA.js → devtoolsService-2PJHOM3Z.js} +2 -2
- package/bundle/{devtoolsService-55MCAJSX.js → devtoolsService-G4J2W6MV.js} +3 -4
- package/bundle/{devtoolsService-4OIIV5BP.js → devtoolsService-LTCUHAKD.js} +2 -2
- package/bundle/{dist-6WKTZS2H.js → dist-TXQI77ZL.js} +3 -1
- package/bundle/{gemini-NTZOFP32.js → gemini-4GL7B4FQ.js} +913 -332
- package/bundle/{gemini-SLZ3ZOKR.js → gemini-QFKS36ZW.js} +729 -132
- package/bundle/{gemini-M7QHYJWH.js → gemini-TOJXXBJZ.js} +728 -131
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-EJMPX4MW.js → interactiveCli-NWP4ENQW.js} +21 -15
- package/bundle/{interactiveCli-N2IGDK2U.js → interactiveCli-QFVYPM2G.js} +21 -15
- package/bundle/{interactiveCli-GGPTKD5W.js → interactiveCli-UPSM5SHZ.js} +309 -322
- package/bundle/{liteRtServerManager-44FSBMOC.js → liteRtServerManager-DILFQEEZ.js} +4 -4
- package/bundle/{liteRtServerManager-CQTJ4NOY.js → liteRtServerManager-MU2XFPN4.js} +4 -4
- package/bundle/{liteRtServerManager-E6IZFYJ5.js → liteRtServerManager-T2WZMOZK.js} +4 -4
- package/bundle/{oauth2-provider-GYDMYNIS.js → oauth2-provider-2QGZS53A.js} +1 -1
- package/bundle/{oauth2-provider-7VRZK5U2.js → oauth2-provider-QNQQSC5U.js} +72 -38
- package/bundle/{oauth2-provider-6MOANE35.js → oauth2-provider-VWRIMKTD.js} +1 -1
- package/bundle/{start-CJK225QU.js → start-M7PLRASE.js} +6 -6
- package/bundle/{start-I6WXOXBH.js → start-YV56XGWM.js} +6 -6
- package/bundle/{start-JCBZ6FM5.js → start-YWLQDUFC.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-EE7QY4PS.js +0 -1571
- package/bundle/chunk-JSPZEGH7.js +0 -398
- package/bundle/chunk-PAMPXP6A.js +0 -154
- package/bundle/chunk-PNVXTOJA.js +0 -102505
- package/bundle/chunk-UCC5NROX.js +0 -397085
- package/bundle/chunk-XSIWE56T.js +0 -17332
- package/bundle/chunk-YZN4CRWU.js +0 -512
- package/bundle/chunk-Z3G3DV2S.js +0 -118
- package/bundle/cleanup-Z5MW3NJW.js +0 -32
- package/bundle/devtoolsService-Z4ERPV3N.js +0 -4359
- package/bundle/dist-V6TGIRUP.js +0 -2170
- package/bundle/gemini-37YVXL6A.js +0 -16491
- package/bundle/interactiveCli-3YGPU4WV.js +0 -34906
- package/bundle/liteRtServerManager-NQ4JUZPC.js +0 -65
- package/bundle/oauth2-provider-STVHF7MC.js +0 -235
- package/bundle/start-U3R3REHE.js +0 -18
|
@@ -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-7LAM3MXG.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-APDWRUAP.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-MWEFWYTU.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G4NBAJCP.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -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-G4NBAJCP.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -252349,6 +252349,9 @@ function parseGoogleApiError(error40) {
|
|
|
252349
252349
|
if (!error40) {
|
|
252350
252350
|
return null;
|
|
252351
252351
|
}
|
|
252352
|
+
if (typeof error40 === "object" && error40 !== null && "name" in error40 && (error40.name === "TerminalQuotaError" || error40.name === "RetryableQuotaError" || error40.name === "ValidationRequiredError")) {
|
|
252353
|
+
return null;
|
|
252354
|
+
}
|
|
252352
252355
|
let errorObj = error40;
|
|
252353
252356
|
if (typeof errorObj === "string") {
|
|
252354
252357
|
try {
|
|
@@ -252363,7 +252366,7 @@ function parseGoogleApiError(error40) {
|
|
|
252363
252366
|
if (typeof errorObj !== "object" || errorObj === null) {
|
|
252364
252367
|
return null;
|
|
252365
252368
|
}
|
|
252366
|
-
let currentError = fromGaxiosError(errorObj) ?? fromApiError(errorObj);
|
|
252369
|
+
let currentError = fromGaxiosError(errorObj) ?? fromApiError(errorObj) ?? fromCauseError(errorObj);
|
|
252367
252370
|
let depth = 0;
|
|
252368
252371
|
const maxDepth = 10;
|
|
252369
252372
|
while (currentError && typeof currentError.message === "string" && depth < maxDepth) {
|
|
@@ -252482,6 +252485,52 @@ function fromApiError(errorObj) {
|
|
|
252482
252485
|
}
|
|
252483
252486
|
return outerError;
|
|
252484
252487
|
}
|
|
252488
|
+
function fromCauseError(errorObj) {
|
|
252489
|
+
const err2 = errorObj;
|
|
252490
|
+
if (!err2.cause)
|
|
252491
|
+
return void 0;
|
|
252492
|
+
const rawCode = err2.code ?? err2.status;
|
|
252493
|
+
const fallbackCode = typeof rawCode === "number" ? rawCode : typeof rawCode === "string" && rawCode.trim() !== "" && !isNaN(Number(rawCode)) ? Number(rawCode) : void 0;
|
|
252494
|
+
const resolveError = (resolved) => {
|
|
252495
|
+
if (!resolved)
|
|
252496
|
+
return void 0;
|
|
252497
|
+
const message = resolved.message;
|
|
252498
|
+
const details = resolved.details;
|
|
252499
|
+
const code = resolved.code ?? fallbackCode;
|
|
252500
|
+
return {
|
|
252501
|
+
...message !== void 0 ? { message } : {},
|
|
252502
|
+
...details !== void 0 ? { details } : {},
|
|
252503
|
+
...code !== void 0 ? { code } : {}
|
|
252504
|
+
};
|
|
252505
|
+
};
|
|
252506
|
+
if (typeof err2.cause === "object" && err2.cause !== null) {
|
|
252507
|
+
if ("error" in err2.cause && err2.cause.error && isErrorShape(err2.cause.error)) {
|
|
252508
|
+
return resolveError(err2.cause.error);
|
|
252509
|
+
}
|
|
252510
|
+
if ("message" in err2.cause && err2.cause.message) {
|
|
252511
|
+
if (typeof err2.cause.message === "string") {
|
|
252512
|
+
const parsed = fromApiError({ message: err2.cause.message });
|
|
252513
|
+
if (parsed)
|
|
252514
|
+
return resolveError(parsed);
|
|
252515
|
+
} else if (typeof err2.cause.message === "object" && err2.cause.message !== null) {
|
|
252516
|
+
const msgObj = err2.cause.message;
|
|
252517
|
+
if (msgObj.error && isErrorShape(msgObj.error)) {
|
|
252518
|
+
return resolveError(msgObj.error);
|
|
252519
|
+
}
|
|
252520
|
+
}
|
|
252521
|
+
}
|
|
252522
|
+
if (isErrorShape(err2.cause)) {
|
|
252523
|
+
return resolveError(err2.cause);
|
|
252524
|
+
}
|
|
252525
|
+
}
|
|
252526
|
+
if (typeof err2.cause === "string" && err2.cause.trim() !== "") {
|
|
252527
|
+
const parsed = fromApiError({ message: err2.cause }) ?? {
|
|
252528
|
+
message: err2.cause
|
|
252529
|
+
};
|
|
252530
|
+
return resolveError(parsed);
|
|
252531
|
+
}
|
|
252532
|
+
return void 0;
|
|
252533
|
+
}
|
|
252485
252534
|
|
|
252486
252535
|
// packages/core/dist/src/utils/errors.js
|
|
252487
252536
|
function isGaxiosError(error40) {
|
|
@@ -282510,8 +282559,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
282510
282559
|
}
|
|
282511
282560
|
|
|
282512
282561
|
// packages/core/dist/src/generated/git-commit.js
|
|
282513
|
-
var GIT_COMMIT_INFO = "
|
|
282514
|
-
var CLI_VERSION = "0.55.0-
|
|
282562
|
+
var GIT_COMMIT_INFO = "761f604c1";
|
|
282563
|
+
var CLI_VERSION = "0.55.0-preview.1";
|
|
282515
282564
|
|
|
282516
282565
|
// packages/core/dist/src/ide/detect-ide.js
|
|
282517
282566
|
var IDE_DEFINITIONS = {
|
|
@@ -285452,7 +285501,10 @@ var ChatRecordingService = class {
|
|
|
285452
285501
|
}
|
|
285453
285502
|
this.updateMetadata({ sessionId: this.sessionId });
|
|
285454
285503
|
} else {
|
|
285455
|
-
|
|
285504
|
+
debugLogger.warn("Failed to reload resumed session data from file; falling back to the in-memory conversation.");
|
|
285505
|
+
this.cachedConversation = resumedSessionData.conversation;
|
|
285506
|
+
this.projectHash = this.cachedConversation.projectHash;
|
|
285507
|
+
this.rewriteConversationFile(this.cachedConversation);
|
|
285456
285508
|
}
|
|
285457
285509
|
} else {
|
|
285458
285510
|
this.sessionId = this.context.promptId;
|
|
@@ -285522,6 +285574,57 @@ var ChatRecordingService = class {
|
|
|
285522
285574
|
}
|
|
285523
285575
|
}
|
|
285524
285576
|
}
|
|
285577
|
+
/**
|
|
285578
|
+
* Rewrites the session file from an in-memory record. Any existing
|
|
285579
|
+
* (unreadable) file is preserved alongside rather than destroyed, and the
|
|
285580
|
+
* new file is written atomically (temp file + rename).
|
|
285581
|
+
*/
|
|
285582
|
+
rewriteConversationFile(conversation) {
|
|
285583
|
+
if (!this.conversationFile)
|
|
285584
|
+
return;
|
|
285585
|
+
if (this.conversationFile.endsWith(".json")) {
|
|
285586
|
+
this.conversationFile = this.conversationFile + "l";
|
|
285587
|
+
}
|
|
285588
|
+
const { messages, memoryScratchpad, ...metadata2 } = conversation;
|
|
285589
|
+
const lines = [JSON.stringify(metadata2)];
|
|
285590
|
+
for (const msg of messages) {
|
|
285591
|
+
lines.push(JSON.stringify(msg));
|
|
285592
|
+
}
|
|
285593
|
+
if (memoryScratchpad) {
|
|
285594
|
+
lines.push(JSON.stringify({ $set: { memoryScratchpad } }));
|
|
285595
|
+
}
|
|
285596
|
+
const content = lines.join("\n") + "\n";
|
|
285597
|
+
try {
|
|
285598
|
+
fs30.mkdirSync(path27.dirname(this.conversationFile), { recursive: true });
|
|
285599
|
+
if (fs30.existsSync(this.conversationFile)) {
|
|
285600
|
+
const backup = `${this.conversationFile}.unreadable-${Date.now()}`;
|
|
285601
|
+
try {
|
|
285602
|
+
fs30.renameSync(this.conversationFile, backup);
|
|
285603
|
+
debugLogger.warn(`Preserved the unreadable session file at ${backup}.`);
|
|
285604
|
+
} catch (backupError) {
|
|
285605
|
+
debugLogger.error("Failed to preserve the unreadable session file.", backupError);
|
|
285606
|
+
}
|
|
285607
|
+
}
|
|
285608
|
+
const tempFile = `${this.conversationFile}.tmp-${process.pid}`;
|
|
285609
|
+
try {
|
|
285610
|
+
fs30.writeFileSync(tempFile, content);
|
|
285611
|
+
fs30.renameSync(tempFile, this.conversationFile);
|
|
285612
|
+
} catch (error40) {
|
|
285613
|
+
try {
|
|
285614
|
+
fs30.unlinkSync(tempFile);
|
|
285615
|
+
} catch {
|
|
285616
|
+
}
|
|
285617
|
+
throw error40;
|
|
285618
|
+
}
|
|
285619
|
+
} catch (error40) {
|
|
285620
|
+
if (isNodeError(error40) && error40.code === "ENOSPC") {
|
|
285621
|
+
this.conversationFile = null;
|
|
285622
|
+
debugLogger.warn(ENOSPC_WARNING_MESSAGE);
|
|
285623
|
+
} else {
|
|
285624
|
+
throw error40;
|
|
285625
|
+
}
|
|
285626
|
+
}
|
|
285627
|
+
}
|
|
285525
285628
|
updateMetadata(updates) {
|
|
285526
285629
|
if (!this.cachedConversation)
|
|
285527
285630
|
return;
|
|
@@ -305720,7 +305823,7 @@ function getVersion() {
|
|
|
305720
305823
|
}
|
|
305721
305824
|
versionPromise = (async () => {
|
|
305722
305825
|
const pkgJson = await getPackageJson(__dirname4);
|
|
305723
|
-
return "0.55.0-
|
|
305826
|
+
return "0.55.0-preview.1";
|
|
305724
305827
|
})();
|
|
305725
305828
|
return versionPromise;
|
|
305726
305829
|
}
|
|
@@ -306313,10 +306416,12 @@ var TerminalQuotaError = class extends Error {
|
|
|
306313
306416
|
cause;
|
|
306314
306417
|
retryDelayMs;
|
|
306315
306418
|
reason;
|
|
306419
|
+
status;
|
|
306316
306420
|
constructor(message, cause, retryDelaySeconds, reason) {
|
|
306317
306421
|
super(message);
|
|
306318
306422
|
this.cause = cause;
|
|
306319
306423
|
this.name = "TerminalQuotaError";
|
|
306424
|
+
this.status = cause?.code;
|
|
306320
306425
|
this.retryDelayMs = retryDelaySeconds ? retryDelaySeconds * 1e3 : void 0;
|
|
306321
306426
|
this.reason = reason;
|
|
306322
306427
|
}
|
|
@@ -306327,10 +306432,12 @@ var TerminalQuotaError = class extends Error {
|
|
|
306327
306432
|
var RetryableQuotaError = class extends Error {
|
|
306328
306433
|
cause;
|
|
306329
306434
|
retryDelayMs;
|
|
306435
|
+
status;
|
|
306330
306436
|
constructor(message, cause, retryDelaySeconds) {
|
|
306331
306437
|
super(message);
|
|
306332
306438
|
this.cause = cause;
|
|
306333
306439
|
this.name = "RetryableQuotaError";
|
|
306440
|
+
this.status = cause?.code;
|
|
306334
306441
|
this.retryDelayMs = retryDelaySeconds ? retryDelaySeconds * 1e3 : void 0;
|
|
306335
306442
|
}
|
|
306336
306443
|
};
|
|
@@ -306402,6 +306509,9 @@ function classifyValidationRequiredError(googleApiError) {
|
|
|
306402
306509
|
return new ValidationRequiredError(googleApiError.message, googleApiError, validationLink, validationDescription, learnMoreUrl);
|
|
306403
306510
|
}
|
|
306404
306511
|
function classifyGoogleError(error40) {
|
|
306512
|
+
if (error40 instanceof TerminalQuotaError || error40 instanceof RetryableQuotaError || error40 instanceof ValidationRequiredError || typeof error40 === "object" && error40 !== null && "name" in error40 && (error40.name === "TerminalQuotaError" || error40.name === "RetryableQuotaError" || error40.name === "ValidationRequiredError")) {
|
|
306513
|
+
return error40;
|
|
306514
|
+
}
|
|
306405
306515
|
const googleApiError = parseGoogleApiError(error40);
|
|
306406
306516
|
const status2 = googleApiError?.code ?? getErrorStatus(error40);
|
|
306407
306517
|
const errorMessage = googleApiError?.message || extractErrorMessage(error40);
|
|
@@ -309957,7 +310067,7 @@ function isStructuredError(error40) {
|
|
|
309957
310067
|
if (typeof error40.message !== "string") {
|
|
309958
310068
|
return false;
|
|
309959
310069
|
}
|
|
309960
|
-
if ("status" in error40 && typeof error40.status !== "number") {
|
|
310070
|
+
if ("status" in error40 && error40.status !== void 0 && typeof error40.status !== "number") {
|
|
309961
310071
|
return false;
|
|
309962
310072
|
}
|
|
309963
310073
|
return true;
|
|
@@ -330272,6 +330382,7 @@ var MID_STREAM_RETRY_OPTIONS = {
|
|
|
330272
330382
|
useExponentialBackoff: true
|
|
330273
330383
|
};
|
|
330274
330384
|
var SYNTHETIC_THOUGHT_SIGNATURE2 = "skip_thought_signature_validator";
|
|
330385
|
+
var INTERRUPTED_RESPONSE_PLACEHOLDER = "[The previous response was interrupted before it completed.]";
|
|
330275
330386
|
function isIndexedPart(part) {
|
|
330276
330387
|
return "callIndex" in part;
|
|
330277
330388
|
}
|
|
@@ -330456,6 +330567,9 @@ var GeminiChat = class {
|
|
|
330456
330567
|
this.sendPromise = streamDonePromise;
|
|
330457
330568
|
let userContent = createUserContent(message);
|
|
330458
330569
|
const isOriginalFunctionResponse = isFunctionResponse(userContent);
|
|
330570
|
+
if (!isOriginalFunctionResponse) {
|
|
330571
|
+
this.closeUnansweredToolResponseTurn();
|
|
330572
|
+
}
|
|
330459
330573
|
const { model } = this.context.config.modelConfigService.getResolvedConfig(modelConfigKey);
|
|
330460
330574
|
const isContextManagementEnabled = this.context.config.isContextManagementEnabled();
|
|
330461
330575
|
if (!isOriginalFunctionResponse) {
|
|
@@ -330623,6 +330737,24 @@ var GeminiChat = class {
|
|
|
330623
330737
|
};
|
|
330624
330738
|
return streamWithRetries.call(this);
|
|
330625
330739
|
}
|
|
330740
|
+
/**
|
|
330741
|
+
* Appends a closing model turn when history ends with an unanswered tool
|
|
330742
|
+
* response, so the next user message stays a turn of its own.
|
|
330743
|
+
*/
|
|
330744
|
+
closeUnansweredToolResponseTurn() {
|
|
330745
|
+
const turns = this.agentHistory.get();
|
|
330746
|
+
const last2 = turns[turns.length - 1];
|
|
330747
|
+
if (last2?.content.role !== "user" || !last2.content.parts?.some((part) => !!part.functionResponse)) {
|
|
330748
|
+
return;
|
|
330749
|
+
}
|
|
330750
|
+
this.agentHistory.push({
|
|
330751
|
+
id: randomUUID6(),
|
|
330752
|
+
content: {
|
|
330753
|
+
role: "model",
|
|
330754
|
+
parts: [{ text: INTERRUPTED_RESPONSE_PLACEHOLDER }]
|
|
330755
|
+
}
|
|
330756
|
+
});
|
|
330757
|
+
}
|
|
330626
330758
|
extractBinaryInjections(parts2) {
|
|
330627
330759
|
const binaryParts = [];
|
|
330628
330760
|
if (parts2) {
|
|
@@ -331249,11 +331381,24 @@ function stripThoughts2(history) {
|
|
|
331249
331381
|
if (!hasThought)
|
|
331250
331382
|
return turn;
|
|
331251
331383
|
const nonThoughtParts = turn.content.parts.filter((p) => p && !p.thought);
|
|
331384
|
+
let patchedFirstCall = false;
|
|
331385
|
+
const finalParts = turn.content.role === "model" ? nonThoughtParts.map((p) => {
|
|
331386
|
+
if (!patchedFirstCall && p.functionCall) {
|
|
331387
|
+
patchedFirstCall = true;
|
|
331388
|
+
if (!p.thoughtSignature) {
|
|
331389
|
+
return {
|
|
331390
|
+
...p,
|
|
331391
|
+
thoughtSignature: SYNTHETIC_THOUGHT_SIGNATURE2
|
|
331392
|
+
};
|
|
331393
|
+
}
|
|
331394
|
+
}
|
|
331395
|
+
return p;
|
|
331396
|
+
}) : nonThoughtParts;
|
|
331252
331397
|
return {
|
|
331253
331398
|
...turn,
|
|
331254
331399
|
content: {
|
|
331255
331400
|
...turn.content,
|
|
331256
|
-
parts:
|
|
331401
|
+
parts: finalParts
|
|
331257
331402
|
}
|
|
331258
331403
|
};
|
|
331259
331404
|
}).filter((turn) => !turn.content.parts || turn.content.parts.length > 0);
|
|
@@ -338405,7 +338550,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
338405
338550
|
return provider;
|
|
338406
338551
|
}
|
|
338407
338552
|
case "oauth2": {
|
|
338408
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
338553
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-VWRIMKTD.js");
|
|
338409
338554
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
338410
338555
|
await provider.initialize();
|
|
338411
338556
|
return provider;
|
|
@@ -391822,7 +391967,7 @@ var validateSerializable = (newContents) => {
|
|
|
391822
391967
|
};
|
|
391823
391968
|
|
|
391824
391969
|
// node_modules/execa/lib/io/output-sync.js
|
|
391825
|
-
import { writeFileSync as
|
|
391970
|
+
import { writeFileSync as writeFileSync5, appendFileSync as appendFileSync4 } from "node:fs";
|
|
391826
391971
|
|
|
391827
391972
|
// node_modules/execa/lib/verbose/output.js
|
|
391828
391973
|
var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type: type2, value }) => type2 === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type: type2 }) => TRANSFORM_TYPES.has(type2)));
|
|
@@ -391949,7 +392094,7 @@ var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
|
391949
392094
|
appendFileSync4(path113, serializedResult);
|
|
391950
392095
|
} else {
|
|
391951
392096
|
outputFiles.add(pathString);
|
|
391952
|
-
|
|
392097
|
+
writeFileSync5(path113, serializedResult);
|
|
391953
392098
|
}
|
|
391954
392099
|
}
|
|
391955
392100
|
};
|
|
@@ -396116,6 +396261,7 @@ export {
|
|
|
396116
396261
|
isCompletedAskUserTool,
|
|
396117
396262
|
StreamEventType,
|
|
396118
396263
|
SYNTHETIC_THOUGHT_SIGNATURE2 as SYNTHETIC_THOUGHT_SIGNATURE,
|
|
396264
|
+
INTERRUPTED_RESPONSE_PLACEHOLDER,
|
|
396119
396265
|
isValidNonThoughtTextPart,
|
|
396120
396266
|
InvalidStreamError,
|
|
396121
396267
|
AgentExecutionStoppedError,
|
|
@@ -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-7LAM3MXG.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-MWEFWYTU.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-SEQ766WD.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|