@google/gemini-cli-a2a-server 0.19.0-nightly.20251125.f6d97d448 → 0.19.0-nightly.20251126.03845198c

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.
@@ -307803,8 +307803,8 @@ var Float64Vector = import_vector.default.Float64Vector;
307803
307803
  var PointerVector = import_vector.default.PointerVector;
307804
307804
 
307805
307805
  // packages/core/dist/src/generated/git-commit.js
307806
- var GIT_COMMIT_INFO = "f6d97d448";
307807
- var CLI_VERSION = "0.19.0-nightly.20251125.f6d97d448";
307806
+ var GIT_COMMIT_INFO = "03845198c";
307807
+ var CLI_VERSION = "0.19.0-nightly.20251126.03845198c";
307808
307808
 
307809
307809
  // packages/core/dist/src/ide/detect-ide.js
307810
307810
  var IDE_DEFINITIONS = {
@@ -310706,7 +310706,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
310706
310706
  if (gcConfig.fakeResponses) {
310707
310707
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
310708
310708
  }
310709
- const version3 = "0.19.0-nightly.20251125.f6d97d448";
310709
+ const version3 = "0.19.0-nightly.20251126.03845198c";
310710
310710
  const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
310711
310711
  const baseHeaders = {
310712
310712
  "User-Agent": userAgent
@@ -357109,13 +357109,14 @@ async function handleFallback(config2, failedModel, authType, error) {
357109
357109
  if (error instanceof ModelNotFoundError && failedModel !== PREVIEW_GEMINI_MODEL) {
357110
357110
  return null;
357111
357111
  }
357112
- if (failedModel === PREVIEW_GEMINI_MODEL) {
357112
+ const shouldActivatePreviewFallback = failedModel === PREVIEW_GEMINI_MODEL && !(error instanceof TerminalQuotaError);
357113
+ if (shouldActivatePreviewFallback) {
357113
357114
  config2.setPreviewModelBypassMode(true);
357114
357115
  if (config2.isPreviewModelFallbackMode()) {
357115
357116
  return true;
357116
357117
  }
357117
357118
  }
357118
- const fallbackModel = failedModel === PREVIEW_GEMINI_MODEL ? DEFAULT_GEMINI_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
357119
+ const fallbackModel = shouldActivatePreviewFallback ? DEFAULT_GEMINI_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
357119
357120
  const fallbackModelHandler = config2.fallbackModelHandler;
357120
357121
  if (typeof fallbackModelHandler !== "function")
357121
357122
  return null;
@@ -357123,7 +357124,7 @@ async function handleFallback(config2, failedModel, authType, error) {
357123
357124
  const intent = await fallbackModelHandler(failedModel, fallbackModel, error);
357124
357125
  switch (intent) {
357125
357126
  case "retry_always":
357126
- if (failedModel === PREVIEW_GEMINI_MODEL) {
357127
+ if (shouldActivatePreviewFallback) {
357127
357128
  activatePreviewModelFallbackMode(config2);
357128
357129
  } else {
357129
357130
  activateFallbackMode(config2, authType);
@@ -357144,7 +357145,7 @@ async function handleFallback(config2, failedModel, authType, error) {
357144
357145
  throw new Error(`Unexpected fallback intent received from fallbackModelHandler: "${intent}"`);
357145
357146
  }
357146
357147
  } catch (handlerError) {
357147
- console.error("Fallback UI handler failed:", handlerError);
357148
+ debugLogger.error("Fallback UI handler failed:", handlerError);
357148
357149
  return null;
357149
357150
  }
357150
357151
  }
@@ -357422,7 +357423,7 @@ var GeminiChat = class {
357422
357423
  signal: generateContentConfig.abortSignal,
357423
357424
  maxAttempts: this.config.isPreviewModelFallbackMode() && model === PREVIEW_GEMINI_MODEL ? 1 : void 0
357424
357425
  });
357425
- return this.processStreamResponse(model, streamResponse);
357426
+ return this.processStreamResponse(effectiveModel, streamResponse);
357426
357427
  }
357427
357428
  /**
357428
357429
  * Returns the chat history.
@@ -369729,7 +369730,7 @@ async function getClientMetadata() {
369729
369730
  clientMetadataPromise = (async () => ({
369730
369731
  ideName: "IDE_UNSPECIFIED",
369731
369732
  pluginType: "GEMINI",
369732
- ideVersion: "0.19.0-nightly.20251125.f6d97d448",
369733
+ ideVersion: "0.19.0-nightly.20251126.03845198c",
369733
369734
  platform: getPlatform(),
369734
369735
  updateChannel: await getReleaseChannel(__dirname5)
369735
369736
  }))();
@@ -375248,6 +375249,7 @@ var Config = class {
375248
375249
  hookSystem;
375249
375250
  previewModelFallbackMode = false;
375250
375251
  previewModelBypassMode = false;
375252
+ enableModelAvailabilityService;
375251
375253
  constructor(params) {
375252
375254
  this.sessionId = params.sessionId;
375253
375255
  this.embeddingModel = params.embeddingModel ?? DEFAULT_GEMINI_EMBEDDING_MODEL;
@@ -375296,6 +375298,7 @@ var Config = class {
375296
375298
  this.fileDiscoveryService = params.fileDiscoveryService ?? null;
375297
375299
  this.bugCommand = params.bugCommand;
375298
375300
  this.model = params.model;
375301
+ this.enableModelAvailabilityService = params.enableModelAvailabilityService ?? false;
375299
375302
  this.previewFeatures = params.previewFeatures ?? void 0;
375300
375303
  this.maxSessionTurns = params.maxSessionTurns ?? -1;
375301
375304
  this.experimentalZedIntegration = params.experimentalZedIntegration ?? false;
@@ -375778,6 +375781,9 @@ var Config = class {
375778
375781
  getEnableExtensionReloading() {
375779
375782
  return this.enableExtensionReloading;
375780
375783
  }
375784
+ isModelAvailabilityServiceEnabled() {
375785
+ return this.enableModelAvailabilityService;
375786
+ }
375781
375787
  getNoBrowser() {
375782
375788
  return this.noBrowser;
375783
375789
  }