@google/gemini-cli-a2a-server 0.12.0-preview.2 → 0.12.0-preview.4
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/dist/a2a-server.mjs +5 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -288967,8 +288967,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
288967
288967
|
var PointerVector = import_vector.default.PointerVector;
|
|
288968
288968
|
|
|
288969
288969
|
// packages/core/dist/src/generated/git-commit.js
|
|
288970
|
-
var GIT_COMMIT_INFO = "
|
|
288971
|
-
var CLI_VERSION = "0.12.0-preview.
|
|
288970
|
+
var GIT_COMMIT_INFO = "66b61a13";
|
|
288971
|
+
var CLI_VERSION = "0.12.0-preview.4";
|
|
288972
288972
|
|
|
288973
288973
|
// packages/core/dist/src/ide/detect-ide.js
|
|
288974
288974
|
var IDE_DEFINITIONS = {
|
|
@@ -291688,7 +291688,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
|
|
|
291688
291688
|
if (gcConfig.fakeResponses) {
|
|
291689
291689
|
return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
|
|
291690
291690
|
}
|
|
291691
|
-
const version3 = "0.12.0-preview.
|
|
291691
|
+
const version3 = "0.12.0-preview.4";
|
|
291692
291692
|
const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
|
|
291693
291693
|
const baseHeaders = {
|
|
291694
291694
|
"User-Agent": userAgent
|
|
@@ -341124,7 +341124,7 @@ var LoopDetectionService = class {
|
|
|
341124
341124
|
};
|
|
341125
341125
|
|
|
341126
341126
|
// packages/core/dist/src/services/chatCompressionService.js
|
|
341127
|
-
var
|
|
341127
|
+
var DEFAULT_COMPRESSION_TOKEN_THRESHOLD = 0.2;
|
|
341128
341128
|
var COMPRESSION_PRESERVE_THRESHOLD = 0.3;
|
|
341129
341129
|
function findCompressSplitPoint(contents, fraction) {
|
|
341130
341130
|
if (fraction <= 0 || fraction >= 1) {
|
|
@@ -341165,9 +341165,8 @@ var ChatCompressionService = class {
|
|
|
341165
341165
|
};
|
|
341166
341166
|
}
|
|
341167
341167
|
const originalTokenCount = uiTelemetryService.getLastPromptTokenCount();
|
|
341168
|
-
const contextPercentageThreshold = config2.getChatCompression()?.contextPercentageThreshold;
|
|
341169
341168
|
if (!force) {
|
|
341170
|
-
const threshold = contextPercentageThreshold ??
|
|
341169
|
+
const threshold = config2.getChatCompression()?.contextPercentageThreshold ?? DEFAULT_COMPRESSION_TOKEN_THRESHOLD;
|
|
341171
341170
|
if (originalTokenCount < threshold * tokenLimit(model)) {
|
|
341172
341171
|
return {
|
|
341173
341172
|
newHistory: null,
|