@google/gemini-cli-a2a-server 0.27.0-preview.3 → 0.27.0-preview.5

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.
@@ -326597,7 +326597,7 @@ var __filename = fileURLToPath5(import.meta.url);
326597
326597
  var __dirname3 = path20.dirname(__filename);
326598
326598
  async function getVersion() {
326599
326599
  const pkgJson = await getPackageJson(__dirname3);
326600
- return "0.27.0-preview.3";
326600
+ return "0.27.0-preview.5";
326601
326601
  }
326602
326602
 
326603
326603
  // packages/core/dist/src/code_assist/experiments/client_metadata.js
@@ -327198,6 +327198,14 @@ var ValidationCancelledError = class extends Error {
327198
327198
  super("User cancelled account validation");
327199
327199
  }
327200
327200
  };
327201
+ var IneligibleTierError = class extends Error {
327202
+ ineligibleTiers;
327203
+ constructor(ineligibleTiers) {
327204
+ const reasons = ineligibleTiers.map((t3) => t3.reasonMessage).join(", ");
327205
+ super(reasons);
327206
+ this.ineligibleTiers = ineligibleTiers;
327207
+ }
327208
+ };
327201
327209
  async function setupUser(client, validationHandler) {
327202
327210
  const projectId = process.env["GOOGLE_CLOUD_PROJECT"] || process.env["GOOGLE_CLOUD_PROJECT_ID"] || void 0;
327203
327211
  const caServer = new CodeAssistServer(client, projectId, {}, "", void 0, void 0);
@@ -327241,11 +327249,7 @@ async function setupUser(client, validationHandler) {
327241
327249
  userTierName: loadRes.currentTier.name
327242
327250
  };
327243
327251
  }
327244
- if (loadRes.ineligibleTiers && loadRes.ineligibleTiers.length > 0) {
327245
- const reasons = loadRes.ineligibleTiers.map((t3) => t3.reasonMessage).join(", ");
327246
- throw new Error(reasons);
327247
- }
327248
- throw new ProjectIdRequiredError();
327252
+ throwIneligibleOrProjectIdError(loadRes);
327249
327253
  }
327250
327254
  return {
327251
327255
  projectId: loadRes.cloudaicompanionProject,
@@ -327287,7 +327291,7 @@ async function setupUser(client, validationHandler) {
327287
327291
  userTierName: tier.name
327288
327292
  };
327289
327293
  }
327290
- throw new ProjectIdRequiredError();
327294
+ throwIneligibleOrProjectIdError(loadRes);
327291
327295
  }
327292
327296
  return {
327293
327297
  projectId: lroRes.response.cloudaicompanionProject.id,
@@ -327295,6 +327299,12 @@ async function setupUser(client, validationHandler) {
327295
327299
  userTierName: tier.name
327296
327300
  };
327297
327301
  }
327302
+ function throwIneligibleOrProjectIdError(res) {
327303
+ if (res.ineligibleTiers && res.ineligibleTiers.length > 0) {
327304
+ throw new IneligibleTierError(res.ineligibleTiers);
327305
+ }
327306
+ throw new ProjectIdRequiredError();
327307
+ }
327298
327308
  function getOnboardTier(res) {
327299
327309
  for (const tier of res.allowedTiers || []) {
327300
327310
  if (tier.isDefault) {
@@ -330003,8 +330013,8 @@ var Float64Vector = import_vector.default.Float64Vector;
330003
330013
  var PointerVector = import_vector.default.PointerVector;
330004
330014
 
330005
330015
  // packages/core/dist/src/generated/git-commit.js
330006
- var GIT_COMMIT_INFO = "09800ea74";
330007
- var CLI_VERSION = "0.27.0-preview.3";
330016
+ var GIT_COMMIT_INFO = "f55b52ab5";
330017
+ var CLI_VERSION = "0.27.0-preview.5";
330008
330018
 
330009
330019
  // packages/core/dist/src/ide/detect-ide.js
330010
330020
  var IDE_DEFINITIONS = {
@@ -371956,7 +371966,7 @@ function delay2(ms, signal) {
371956
371966
  // packages/core/dist/src/utils/retry.js
371957
371967
  init_debugLogger();
371958
371968
  var DEFAULT_RETRY_OPTIONS = {
371959
- maxAttempts: 10,
371969
+ maxAttempts: 3,
371960
371970
  initialDelayMs: 5e3,
371961
371971
  maxDelayMs: 3e4,
371962
371972
  // 30 seconds