@google/gemini-cli-a2a-server 0.55.0-preview.2 → 0.55.0-preview.3
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 +9 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -220988,8 +220988,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
220988
220988
|
var init_git_commit = __esm({
|
|
220989
220989
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
220990
220990
|
"use strict";
|
|
220991
|
-
GIT_COMMIT_INFO = "
|
|
220992
|
-
CLI_VERSION = "0.55.0-preview.
|
|
220991
|
+
GIT_COMMIT_INFO = "da3710eb9";
|
|
220992
|
+
CLI_VERSION = "0.55.0-preview.3";
|
|
220993
220993
|
}
|
|
220994
220994
|
});
|
|
220995
220995
|
|
|
@@ -336689,7 +336689,7 @@ function getVersion() {
|
|
|
336689
336689
|
}
|
|
336690
336690
|
versionPromise = (async () => {
|
|
336691
336691
|
const pkgJson = await getPackageJson(__dirname4);
|
|
336692
|
-
return "0.55.0-preview.
|
|
336692
|
+
return "0.55.0-preview.3";
|
|
336693
336693
|
})();
|
|
336694
336694
|
return versionPromise;
|
|
336695
336695
|
}
|
|
@@ -414824,17 +414824,21 @@ var init_config4 = __esm({
|
|
|
414824
414824
|
if (!bucket.modelId || bucket.remainingFraction == null) {
|
|
414825
414825
|
continue;
|
|
414826
414826
|
}
|
|
414827
|
+
let modelId = bucket.modelId;
|
|
414828
|
+
if (modelId === SECONDARY_GEMINI_3_5_FLASH_MODEL) {
|
|
414829
|
+
modelId = DEFAULT_GEMINI_3_5_FLASH_MODEL;
|
|
414830
|
+
}
|
|
414827
414831
|
let remaining;
|
|
414828
414832
|
let limit;
|
|
414829
414833
|
if (bucket.remainingAmount) {
|
|
414830
414834
|
remaining = parseInt(bucket.remainingAmount, 10);
|
|
414831
|
-
limit = bucket.remainingFraction > 0 ? Math.round(remaining / bucket.remainingFraction) : this.modelQuotas.get(
|
|
414835
|
+
limit = bucket.remainingFraction > 0 ? Math.round(remaining / bucket.remainingFraction) : this.modelQuotas.get(modelId)?.limit ?? 0;
|
|
414832
414836
|
} else {
|
|
414833
414837
|
limit = 100;
|
|
414834
414838
|
remaining = Math.round(bucket.remainingFraction * limit);
|
|
414835
414839
|
}
|
|
414836
414840
|
if (!isNaN(remaining) && Number.isFinite(limit) && limit > 0) {
|
|
414837
|
-
this.modelQuotas.set(
|
|
414841
|
+
this.modelQuotas.set(modelId, {
|
|
414838
414842
|
remaining,
|
|
414839
414843
|
limit,
|
|
414840
414844
|
resetTime: bucket.resetTime
|