@google/gemini-cli-a2a-server 0.18.0-preview.2 → 0.18.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.
@@ -307590,8 +307590,8 @@ var Float64Vector = import_vector.default.Float64Vector;
307590
307590
  var PointerVector = import_vector.default.PointerVector;
307591
307591
 
307592
307592
  // packages/core/dist/src/generated/git-commit.js
307593
- var GIT_COMMIT_INFO = "843b019ce";
307594
- var CLI_VERSION = "0.18.0-preview.2";
307593
+ var GIT_COMMIT_INFO = "a640766f1";
307594
+ var CLI_VERSION = "0.18.0-preview.4";
307595
307595
 
307596
307596
  // packages/core/dist/src/ide/detect-ide.js
307597
307597
  var IDE_DEFINITIONS = {
@@ -310450,7 +310450,7 @@ async function createContentGenerator(config2, gcConfig, sessionId2) {
310450
310450
  if (gcConfig.fakeResponses) {
310451
310451
  return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
310452
310452
  }
310453
- const version3 = "0.18.0-preview.2";
310453
+ const version3 = "0.18.0-preview.4";
310454
310454
  const userAgent = `GeminiCLI/${version3} (${process.platform}; ${process.arch})`;
310455
310455
  const baseHeaders = {
310456
310456
  "User-Agent": userAgent
@@ -356820,13 +356820,14 @@ async function handleFallback(config2, failedModel, authType, error) {
356820
356820
  if (error instanceof ModelNotFoundError && failedModel !== PREVIEW_GEMINI_MODEL) {
356821
356821
  return null;
356822
356822
  }
356823
- if (failedModel === PREVIEW_GEMINI_MODEL) {
356823
+ const shouldActivatePreviewFallback = failedModel === PREVIEW_GEMINI_MODEL && !(error instanceof TerminalQuotaError);
356824
+ if (shouldActivatePreviewFallback) {
356824
356825
  config2.setPreviewModelBypassMode(true);
356825
356826
  if (config2.isPreviewModelFallbackMode()) {
356826
356827
  return true;
356827
356828
  }
356828
356829
  }
356829
- const fallbackModel = failedModel === PREVIEW_GEMINI_MODEL ? DEFAULT_GEMINI_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
356830
+ const fallbackModel = shouldActivatePreviewFallback ? DEFAULT_GEMINI_MODEL : DEFAULT_GEMINI_FLASH_MODEL;
356830
356831
  const fallbackModelHandler = config2.fallbackModelHandler;
356831
356832
  if (typeof fallbackModelHandler !== "function")
356832
356833
  return null;
@@ -356834,7 +356835,7 @@ async function handleFallback(config2, failedModel, authType, error) {
356834
356835
  const intent = await fallbackModelHandler(failedModel, fallbackModel, error);
356835
356836
  switch (intent) {
356836
356837
  case "retry_always":
356837
- if (failedModel === PREVIEW_GEMINI_MODEL) {
356838
+ if (shouldActivatePreviewFallback) {
356838
356839
  activatePreviewModelFallbackMode(config2);
356839
356840
  } else {
356840
356841
  activateFallbackMode(config2, authType);
@@ -367575,7 +367576,7 @@ async function getClientMetadata() {
367575
367576
  clientMetadataPromise = (async () => ({
367576
367577
  ideName: "IDE_UNSPECIFIED",
367577
367578
  pluginType: "GEMINI",
367578
- ideVersion: "0.18.0-preview.2",
367579
+ ideVersion: "0.18.0-preview.4",
367579
367580
  platform: getPlatform(),
367580
367581
  updateChannel: await getReleaseChannel(__dirname5)
367581
367582
  }))();