@google/gemini-cli-a2a-server 0.38.0-preview.0 → 0.38.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/dist/a2a-server.mjs +36 -27
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -208731,8 +208731,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
208731
208731
|
var init_git_commit = __esm({
|
|
208732
208732
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
208733
208733
|
"use strict";
|
|
208734
|
-
GIT_COMMIT_INFO = "
|
|
208735
|
-
CLI_VERSION = "0.38.
|
|
208734
|
+
GIT_COMMIT_INFO = "2a28cf2cb";
|
|
208735
|
+
CLI_VERSION = "0.38.1";
|
|
208736
208736
|
}
|
|
208737
208737
|
});
|
|
208738
208738
|
|
|
@@ -324307,33 +324307,41 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
|
|
|
324307
324307
|
if (!chain2) {
|
|
324308
324308
|
chain2 = createSingleModelChain(modelFromConfig);
|
|
324309
324309
|
}
|
|
324310
|
-
|
|
324311
|
-
}
|
|
324312
|
-
|
|
324313
|
-
|
|
324314
|
-
|
|
324315
|
-
|
|
324316
|
-
|
|
324317
|
-
|
|
324318
|
-
|
|
324319
|
-
|
|
324320
|
-
|
|
324321
|
-
|
|
324322
|
-
|
|
324323
|
-
|
|
324310
|
+
chain2 = applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
|
|
324311
|
+
} else {
|
|
324312
|
+
if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
|
|
324313
|
+
chain2 = getFlashLitePolicyChain();
|
|
324314
|
+
} else if (isGemini3Model(resolvedModel, config3) || isAutoPreferred || isAutoConfigured) {
|
|
324315
|
+
if (hasAccessToPreview) {
|
|
324316
|
+
const previewEnabled = isGemini3Model(resolvedModel, config3) || preferredModel === PREVIEW_GEMINI_MODEL_AUTO || configuredModel === PREVIEW_GEMINI_MODEL_AUTO;
|
|
324317
|
+
chain2 = getModelPolicyChain({
|
|
324318
|
+
previewEnabled,
|
|
324319
|
+
userTier: config3.getUserTier(),
|
|
324320
|
+
useGemini31,
|
|
324321
|
+
useGemini31FlashLite,
|
|
324322
|
+
useCustomToolModel
|
|
324323
|
+
});
|
|
324324
|
+
} else {
|
|
324325
|
+
chain2 = getModelPolicyChain({
|
|
324326
|
+
previewEnabled: false,
|
|
324327
|
+
userTier: config3.getUserTier(),
|
|
324328
|
+
useGemini31,
|
|
324329
|
+
useGemini31FlashLite,
|
|
324330
|
+
useCustomToolModel
|
|
324331
|
+
});
|
|
324332
|
+
}
|
|
324324
324333
|
} else {
|
|
324325
|
-
chain2 =
|
|
324326
|
-
previewEnabled: false,
|
|
324327
|
-
userTier: config3.getUserTier(),
|
|
324328
|
-
useGemini31,
|
|
324329
|
-
useGemini31FlashLite,
|
|
324330
|
-
useCustomToolModel
|
|
324331
|
-
});
|
|
324334
|
+
chain2 = createSingleModelChain(modelFromConfig);
|
|
324332
324335
|
}
|
|
324333
|
-
|
|
324334
|
-
chain2 = createSingleModelChain(modelFromConfig);
|
|
324336
|
+
chain2 = applyDynamicSlicing(chain2, resolvedModel, wrapsAround);
|
|
324335
324337
|
}
|
|
324336
|
-
|
|
324338
|
+
if (config3?.getApprovalMode?.() === ApprovalMode.PLAN) {
|
|
324339
|
+
return chain2.map((policy) => ({
|
|
324340
|
+
...policy,
|
|
324341
|
+
actions: { ...SILENT_ACTIONS }
|
|
324342
|
+
}));
|
|
324343
|
+
}
|
|
324344
|
+
return chain2;
|
|
324337
324345
|
}
|
|
324338
324346
|
function applyDynamicSlicing(chain2, resolvedModel, wrapsAround) {
|
|
324339
324347
|
const activeIndex = chain2.findIndex((policy) => policy.model === resolvedModel);
|
|
@@ -324419,6 +324427,7 @@ var init_policyHelpers = __esm({
|
|
|
324419
324427
|
"use strict";
|
|
324420
324428
|
init_policyCatalog();
|
|
324421
324429
|
init_models();
|
|
324430
|
+
init_types2();
|
|
324422
324431
|
}
|
|
324423
324432
|
});
|
|
324424
324433
|
|
|
@@ -331876,7 +331885,7 @@ function getVersion() {
|
|
|
331876
331885
|
}
|
|
331877
331886
|
versionPromise = (async () => {
|
|
331878
331887
|
const pkgJson = await getPackageJson(__dirname4);
|
|
331879
|
-
return "0.38.
|
|
331888
|
+
return "0.38.1";
|
|
331880
331889
|
})();
|
|
331881
331890
|
return versionPromise;
|
|
331882
331891
|
}
|