@google/gemini-cli-a2a-server 0.22.0-preview.1 → 0.22.0-preview.2
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 +12 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -311904,8 +311904,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
311904
311904
|
var PointerVector = import_vector.default.PointerVector;
|
|
311905
311905
|
|
|
311906
311906
|
// packages/core/dist/src/generated/git-commit.js
|
|
311907
|
-
var GIT_COMMIT_INFO = "
|
|
311908
|
-
var CLI_VERSION = "0.22.0-preview.
|
|
311907
|
+
var GIT_COMMIT_INFO = "a585bfa99";
|
|
311908
|
+
var CLI_VERSION = "0.22.0-preview.2";
|
|
311909
311909
|
|
|
311910
311910
|
// packages/core/dist/src/ide/detect-ide.js
|
|
311911
311911
|
var IDE_DEFINITIONS = {
|
|
@@ -382240,7 +382240,7 @@ var __filename = fileURLToPath10(import.meta.url);
|
|
|
382240
382240
|
var __dirname5 = path60.dirname(__filename);
|
|
382241
382241
|
async function getVersion() {
|
|
382242
382242
|
const pkgJson = await getPackageJson(__dirname5);
|
|
382243
|
-
return "0.22.0-preview.
|
|
382243
|
+
return "0.22.0-preview.2";
|
|
382244
382244
|
}
|
|
382245
382245
|
|
|
382246
382246
|
// packages/core/dist/src/code_assist/experiments/client_metadata.js
|
|
@@ -385605,7 +385605,6 @@ var Config = class {
|
|
|
385605
385605
|
this.contentGenerator = await createContentGenerator(newContentGeneratorConfig, this, this.getSessionId());
|
|
385606
385606
|
this.contentGeneratorConfig = newContentGeneratorConfig;
|
|
385607
385607
|
this.baseLlmClient = new BaseLlmClient(this.contentGenerator, this);
|
|
385608
|
-
const previewFeatures = this.getPreviewFeatures();
|
|
385609
385608
|
const codeAssistServer = getCodeAssistServer(this);
|
|
385610
385609
|
if (codeAssistServer) {
|
|
385611
385610
|
if (codeAssistServer.projectId) {
|
|
@@ -385613,7 +385612,7 @@ var Config = class {
|
|
|
385613
385612
|
}
|
|
385614
385613
|
this.experimentsPromise = getExperiments(codeAssistServer).then((experiments) => {
|
|
385615
385614
|
this.setExperiments(experiments);
|
|
385616
|
-
if (
|
|
385615
|
+
if (this.getPreviewFeatures() === void 0) {
|
|
385617
385616
|
const remotePreviewFeatures = experiments.flags[ExperimentFlags.ENABLE_PREVIEW]?.boolValue;
|
|
385618
385617
|
if (remotePreviewFeatures === true) {
|
|
385619
385618
|
this.setPreviewFeatures(remotePreviewFeatures);
|
|
@@ -385777,12 +385776,16 @@ var Config = class {
|
|
|
385777
385776
|
return this.previewFeatures;
|
|
385778
385777
|
}
|
|
385779
385778
|
setPreviewFeatures(previewFeatures) {
|
|
385780
|
-
if (this.previewFeatures
|
|
385781
|
-
|
|
385782
|
-
this.setModel(DEFAULT_GEMINI_MODEL_AUTO);
|
|
385783
|
-
}
|
|
385779
|
+
if (this.previewFeatures === previewFeatures) {
|
|
385780
|
+
return;
|
|
385784
385781
|
}
|
|
385785
385782
|
this.previewFeatures = previewFeatures;
|
|
385783
|
+
const currentModel = this.getModel();
|
|
385784
|
+
if (!previewFeatures && isPreviewModel(currentModel)) {
|
|
385785
|
+
this.setModel(DEFAULT_GEMINI_MODEL_AUTO);
|
|
385786
|
+
} else if (previewFeatures && currentModel === DEFAULT_GEMINI_MODEL_AUTO) {
|
|
385787
|
+
this.setModel(PREVIEW_GEMINI_MODEL_AUTO);
|
|
385788
|
+
}
|
|
385786
385789
|
}
|
|
385787
385790
|
getHasAccessToPreviewModel() {
|
|
385788
385791
|
return this.hasAccessToPreviewModel;
|