@google/gemini-cli-a2a-server 0.30.0-preview.3 → 0.30.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 +19 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -131345,7 +131345,7 @@ function getVersion() {
|
|
|
131345
131345
|
}
|
|
131346
131346
|
versionPromise = (async () => {
|
|
131347
131347
|
const pkgJson = await getPackageJson(__dirname3);
|
|
131348
|
-
return "0.30.0-preview.
|
|
131348
|
+
return "0.30.0-preview.4";
|
|
131349
131349
|
})();
|
|
131350
131350
|
return versionPromise;
|
|
131351
131351
|
}
|
|
@@ -208745,8 +208745,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
208745
208745
|
var init_git_commit = __esm({
|
|
208746
208746
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
208747
208747
|
"use strict";
|
|
208748
|
-
GIT_COMMIT_INFO = "
|
|
208749
|
-
CLI_VERSION = "0.30.0-preview.
|
|
208748
|
+
GIT_COMMIT_INFO = "09c6514d7";
|
|
208749
|
+
CLI_VERSION = "0.30.0-preview.4";
|
|
208750
208750
|
}
|
|
208751
208751
|
});
|
|
208752
208752
|
|
|
@@ -355361,7 +355361,11 @@ var init_errorClassification = __esm({
|
|
|
355361
355361
|
// packages/core/dist/src/availability/policyCatalog.js
|
|
355362
355362
|
function getModelPolicyChain(options) {
|
|
355363
355363
|
if (options.previewEnabled) {
|
|
355364
|
-
|
|
355364
|
+
const previewModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useCustomToolModel);
|
|
355365
|
+
return [
|
|
355366
|
+
definePolicy({ model: previewModel }),
|
|
355367
|
+
definePolicy({ model: PREVIEW_GEMINI_FLASH_MODEL, isLastResort: true })
|
|
355368
|
+
];
|
|
355365
355369
|
}
|
|
355366
355370
|
return cloneChain(DEFAULT_CHAIN);
|
|
355367
355371
|
}
|
|
@@ -355395,7 +355399,7 @@ function clonePolicy(policy) {
|
|
|
355395
355399
|
function cloneChain(chain2) {
|
|
355396
355400
|
return chain2.map(clonePolicy);
|
|
355397
355401
|
}
|
|
355398
|
-
var DEFAULT_ACTIONS, SILENT_ACTIONS, DEFAULT_STATE, DEFAULT_CHAIN,
|
|
355402
|
+
var DEFAULT_ACTIONS, SILENT_ACTIONS, DEFAULT_STATE, DEFAULT_CHAIN, FLASH_LITE_CHAIN;
|
|
355399
355403
|
var init_policyCatalog = __esm({
|
|
355400
355404
|
"packages/core/dist/src/availability/policyCatalog.js"() {
|
|
355401
355405
|
"use strict";
|
|
@@ -355422,10 +355426,6 @@ var init_policyCatalog = __esm({
|
|
|
355422
355426
|
definePolicy({ model: DEFAULT_GEMINI_MODEL }),
|
|
355423
355427
|
definePolicy({ model: DEFAULT_GEMINI_FLASH_MODEL, isLastResort: true })
|
|
355424
355428
|
];
|
|
355425
|
-
PREVIEW_CHAIN = [
|
|
355426
|
-
definePolicy({ model: PREVIEW_GEMINI_MODEL }),
|
|
355427
|
-
definePolicy({ model: PREVIEW_GEMINI_FLASH_MODEL, isLastResort: true })
|
|
355428
|
-
];
|
|
355429
355429
|
FLASH_LITE_CHAIN = [
|
|
355430
355430
|
definePolicy({
|
|
355431
355431
|
model: DEFAULT_GEMINI_FLASH_LITE_MODEL,
|
|
@@ -355449,7 +355449,9 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
|
|
|
355449
355449
|
const modelFromConfig = preferredModel ?? config3.getActiveModel?.() ?? config3.getModel();
|
|
355450
355450
|
const configuredModel = config3.getModel();
|
|
355451
355451
|
let chain2;
|
|
355452
|
-
const
|
|
355452
|
+
const useGemini31 = config3.getGemini31LaunchedSync?.() ?? false;
|
|
355453
|
+
const useCustomToolModel = useGemini31 && config3.getContentGeneratorConfig?.()?.authType === AuthType2.USE_GEMINI;
|
|
355454
|
+
const resolvedModel = resolveModel(modelFromConfig, useGemini31, useCustomToolModel);
|
|
355453
355455
|
const isAutoPreferred = preferredModel ? isAutoModel(preferredModel) : false;
|
|
355454
355456
|
const isAutoConfigured = isAutoModel(configuredModel);
|
|
355455
355457
|
const hasAccessToPreview = config3.getHasAccessToPreviewModel?.() ?? true;
|
|
@@ -355460,12 +355462,16 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
|
|
|
355460
355462
|
const previewEnabled = isGemini3Model(resolvedModel) || preferredModel === PREVIEW_GEMINI_MODEL_AUTO || configuredModel === PREVIEW_GEMINI_MODEL_AUTO;
|
|
355461
355463
|
chain2 = getModelPolicyChain({
|
|
355462
355464
|
previewEnabled,
|
|
355463
|
-
userTier: config3.getUserTier()
|
|
355465
|
+
userTier: config3.getUserTier(),
|
|
355466
|
+
useGemini31,
|
|
355467
|
+
useCustomToolModel
|
|
355464
355468
|
});
|
|
355465
355469
|
} else {
|
|
355466
355470
|
return getModelPolicyChain({
|
|
355467
355471
|
previewEnabled: false,
|
|
355468
|
-
userTier: config3.getUserTier()
|
|
355472
|
+
userTier: config3.getUserTier(),
|
|
355473
|
+
useGemini31,
|
|
355474
|
+
useCustomToolModel
|
|
355469
355475
|
});
|
|
355470
355476
|
}
|
|
355471
355477
|
} else {
|
|
@@ -355550,6 +355556,7 @@ function applyAvailabilityTransition(getContext, failureKind) {
|
|
|
355550
355556
|
var init_policyHelpers = __esm({
|
|
355551
355557
|
"packages/core/dist/src/availability/policyHelpers.js"() {
|
|
355552
355558
|
"use strict";
|
|
355559
|
+
init_contentGenerator();
|
|
355553
355560
|
init_policyCatalog();
|
|
355554
355561
|
init_models();
|
|
355555
355562
|
}
|