@google/gemini-cli-a2a-server 0.29.0 → 0.29.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.
@@ -328283,7 +328283,8 @@ var FetchAdminControlsResponseSchema = external_exports.object({
328283
328283
  secureModeEnabled: external_exports.boolean().optional(),
328284
328284
  strictModeDisabled: external_exports.boolean().optional(),
328285
328285
  mcpSetting: McpSettingSchema.optional(),
328286
- cliFeatureSetting: CliFeatureSettingSchema.optional()
328286
+ cliFeatureSetting: CliFeatureSettingSchema.optional(),
328287
+ adminControlsApplicable: external_exports.boolean().optional()
328287
328288
  });
328288
328289
 
328289
328290
  // packages/core/dist/src/code_assist/server.js
@@ -328955,7 +328956,7 @@ var __filename = fileURLToPath5(import.meta.url);
328955
328956
  var __dirname3 = path22.dirname(__filename);
328956
328957
  async function getVersion() {
328957
328958
  const pkgJson = await getPackageJson(__dirname3);
328958
- return "0.29.0";
328959
+ return "0.29.2";
328959
328960
  }
328960
328961
 
328961
328962
  // packages/core/dist/src/code_assist/experiments/client_metadata.js
@@ -332500,8 +332501,8 @@ var Float64Vector = import_vector.default.Float64Vector;
332500
332501
  var PointerVector = import_vector.default.PointerVector;
332501
332502
 
332502
332503
  // packages/core/dist/src/generated/git-commit.js
332503
- var GIT_COMMIT_INFO = "9f864ccd2";
332504
- var CLI_VERSION = "0.29.0";
332504
+ var GIT_COMMIT_INFO = "7f9808ce6";
332505
+ var CLI_VERSION = "0.29.2";
332505
332506
 
332506
332507
  // packages/core/dist/src/ide/detect-ide.js
332507
332508
  var IDE_DEFINITIONS = {
@@ -405310,16 +405311,13 @@ function sanitizeAdminSettings(settings) {
405310
405311
  }
405311
405312
  };
405312
405313
  }
405313
- function isGaxiosError(error2) {
405314
- return typeof error2 === "object" && error2 !== null && "status" in error2 && typeof error2.status === "number";
405315
- }
405316
405314
  async function fetchAdminControls(server, cachedSettings, adminControlsEnabled, onSettingsChanged) {
405317
405315
  if (!server || !server.projectId || !adminControlsEnabled) {
405318
405316
  stopAdminControlsPolling();
405319
405317
  currentSettings = void 0;
405320
405318
  return {};
405321
405319
  }
405322
- if (cachedSettings) {
405320
+ if (cachedSettings && Object.keys(cachedSettings).length !== 0) {
405323
405321
  currentSettings = cachedSettings;
405324
405322
  startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405325
405323
  return cachedSettings;
@@ -405328,20 +405326,18 @@ async function fetchAdminControls(server, cachedSettings, adminControlsEnabled,
405328
405326
  const rawSettings = await server.fetchAdminControls({
405329
405327
  project: server.projectId
405330
405328
  });
405329
+ if (rawSettings.adminControlsApplicable !== true) {
405330
+ stopAdminControlsPolling();
405331
+ currentSettings = void 0;
405332
+ return {};
405333
+ }
405331
405334
  const sanitizedSettings = sanitizeAdminSettings(rawSettings);
405332
405335
  currentSettings = sanitizedSettings;
405333
405336
  startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405334
405337
  return sanitizedSettings;
405335
405338
  } catch (e3) {
405336
- if (isGaxiosError(e3) && e3.status === 403) {
405337
- stopAdminControlsPolling();
405338
- currentSettings = void 0;
405339
- return {};
405340
- }
405341
405339
  debugLogger.error("Failed to fetch admin controls: ", e3);
405342
- currentSettings = {};
405343
- startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405344
- return {};
405340
+ throw e3;
405345
405341
  }
405346
405342
  }
405347
405343
  async function fetchAdminControlsOnce(server, adminControlsEnabled) {
@@ -405352,13 +405348,13 @@ async function fetchAdminControlsOnce(server, adminControlsEnabled) {
405352
405348
  const rawSettings = await server.fetchAdminControls({
405353
405349
  project: server.projectId
405354
405350
  });
405355
- return sanitizeAdminSettings(rawSettings);
405356
- } catch (e3) {
405357
- if (isGaxiosError(e3) && e3.status === 403) {
405351
+ if (rawSettings.adminControlsApplicable !== true) {
405358
405352
  return {};
405359
405353
  }
405354
+ return sanitizeAdminSettings(rawSettings);
405355
+ } catch (e3) {
405360
405356
  debugLogger.error("Failed to fetch admin controls: ", e3 instanceof Error ? e3.message : e3);
405361
- return {};
405357
+ throw e3;
405362
405358
  }
405363
405359
  }
405364
405360
  function startAdminControlsPolling(server, project, onSettingsChanged) {
@@ -405368,17 +405364,17 @@ function startAdminControlsPolling(server, project, onSettingsChanged) {
405368
405364
  const rawSettings = await server.fetchAdminControls({
405369
405365
  project
405370
405366
  });
405367
+ if (rawSettings.adminControlsApplicable !== true) {
405368
+ stopAdminControlsPolling();
405369
+ currentSettings = void 0;
405370
+ return;
405371
+ }
405371
405372
  const newSettings = sanitizeAdminSettings(rawSettings);
405372
405373
  if (!isDeepStrictEqual(newSettings, currentSettings)) {
405373
405374
  currentSettings = newSettings;
405374
405375
  onSettingsChanged(newSettings);
405375
405376
  }
405376
405377
  } catch (e3) {
405377
- if (isGaxiosError(e3) && e3.status === 403) {
405378
- stopAdminControlsPolling();
405379
- currentSettings = void 0;
405380
- return;
405381
- }
405382
405378
  debugLogger.error("Failed to poll admin controls: ", e3);
405383
405379
  }
405384
405380
  }, 5 * 60 * 1e3);