@google/gemini-cli-a2a-server 0.21.1 → 0.21.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.
@@ -311886,8 +311886,8 @@ var Float64Vector = import_vector.default.Float64Vector;
311886
311886
  var PointerVector = import_vector.default.PointerVector;
311887
311887
 
311888
311888
  // packages/core/dist/src/generated/git-commit.js
311889
- var GIT_COMMIT_INFO = "4bdf85f30";
311890
- var CLI_VERSION = "0.21.1";
311889
+ var GIT_COMMIT_INFO = "97eab144b";
311890
+ var CLI_VERSION = "0.21.2";
311891
311891
 
311892
311892
  // packages/core/dist/src/ide/detect-ide.js
311893
311893
  var IDE_DEFINITIONS = {
@@ -315061,7 +315061,7 @@ async function createContentGenerator(config3, gcConfig, sessionId2) {
315061
315061
  if (gcConfig.fakeResponses) {
315062
315062
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
315063
315063
  }
315064
- const version4 = "0.21.1";
315064
+ const version4 = "0.21.2";
315065
315065
  const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
315066
315066
  const userAgent = `GeminiCLI/${version4} (${process.platform}; ${process.arch})`;
315067
315067
  const customHeadersMap = parseCustomHeaders(customHeadersEnv);
@@ -382098,7 +382098,7 @@ async function getClientMetadata() {
382098
382098
  clientMetadataPromise = (async () => ({
382099
382099
  ideName: "IDE_UNSPECIFIED",
382100
382100
  pluginType: "GEMINI",
382101
- ideVersion: "0.21.1",
382101
+ ideVersion: "0.21.2",
382102
382102
  platform: getPlatform(),
382103
382103
  updateChannel: await getReleaseChannel(__dirname5)
382104
382104
  }))();
@@ -385424,7 +385424,6 @@ var Config = class {
385424
385424
  this.contentGenerator = await createContentGenerator(newContentGeneratorConfig, this, this.getSessionId());
385425
385425
  this.contentGeneratorConfig = newContentGeneratorConfig;
385426
385426
  this.baseLlmClient = new BaseLlmClient(this.contentGenerator, this);
385427
- const previewFeatures = this.getPreviewFeatures();
385428
385427
  const codeAssistServer = getCodeAssistServer(this);
385429
385428
  if (codeAssistServer) {
385430
385429
  if (codeAssistServer.projectId) {
@@ -385432,7 +385431,7 @@ var Config = class {
385432
385431
  }
385433
385432
  this.experimentsPromise = getExperiments(codeAssistServer).then((experiments) => {
385434
385433
  this.setExperiments(experiments);
385435
- if (previewFeatures === void 0) {
385434
+ if (this.getPreviewFeatures() === void 0) {
385436
385435
  const remotePreviewFeatures = experiments.flags[ExperimentFlags.ENABLE_PREVIEW]?.boolValue;
385437
385436
  if (remotePreviewFeatures === true) {
385438
385437
  this.setPreviewFeatures(remotePreviewFeatures);
@@ -385596,12 +385595,16 @@ var Config = class {
385596
385595
  return this.previewFeatures;
385597
385596
  }
385598
385597
  setPreviewFeatures(previewFeatures) {
385599
- if (this.previewFeatures && !previewFeatures) {
385600
- if (isPreviewModel(this.getModel())) {
385601
- this.setModel(DEFAULT_GEMINI_MODEL_AUTO);
385602
- }
385598
+ if (this.previewFeatures === previewFeatures) {
385599
+ return;
385603
385600
  }
385604
385601
  this.previewFeatures = previewFeatures;
385602
+ const currentModel = this.getModel();
385603
+ if (!previewFeatures && isPreviewModel(currentModel)) {
385604
+ this.setModel(DEFAULT_GEMINI_MODEL_AUTO);
385605
+ } else if (previewFeatures && currentModel === DEFAULT_GEMINI_MODEL_AUTO) {
385606
+ this.setModel(PREVIEW_GEMINI_MODEL_AUTO);
385607
+ }
385605
385608
  }
385606
385609
  getHasAccessToPreviewModel() {
385607
385610
  return this.hasAccessToPreviewModel;