@google/gemini-cli-a2a-server 0.29.1 → 0.29.3

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.
@@ -38176,6 +38176,245 @@ var require_utils4 = __commonJS({
38176
38176
  }
38177
38177
  });
38178
38178
 
38179
+ // node_modules/punycode/punycode.js
38180
+ var require_punycode = __commonJS({
38181
+ "node_modules/punycode/punycode.js"(exports2, module2) {
38182
+ "use strict";
38183
+ var maxInt = 2147483647;
38184
+ var base = 36;
38185
+ var tMin = 1;
38186
+ var tMax = 26;
38187
+ var skew = 38;
38188
+ var damp = 700;
38189
+ var initialBias = 72;
38190
+ var initialN = 128;
38191
+ var delimiter3 = "-";
38192
+ var regexPunycode = /^xn--/;
38193
+ var regexNonASCII = /[^\0-\x7F]/;
38194
+ var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
38195
+ var errors = {
38196
+ "overflow": "Overflow: input needs wider integers to process",
38197
+ "not-basic": "Illegal input >= 0x80 (not a basic code point)",
38198
+ "invalid-input": "Invalid input"
38199
+ };
38200
+ var baseMinusTMin = base - tMin;
38201
+ var floor = Math.floor;
38202
+ var stringFromCharCode = String.fromCharCode;
38203
+ function error2(type2) {
38204
+ throw new RangeError(errors[type2]);
38205
+ }
38206
+ function map3(array2, callback) {
38207
+ const result2 = [];
38208
+ let length = array2.length;
38209
+ while (length--) {
38210
+ result2[length] = callback(array2[length]);
38211
+ }
38212
+ return result2;
38213
+ }
38214
+ function mapDomain(domain, callback) {
38215
+ const parts2 = domain.split("@");
38216
+ let result2 = "";
38217
+ if (parts2.length > 1) {
38218
+ result2 = parts2[0] + "@";
38219
+ domain = parts2[1];
38220
+ }
38221
+ domain = domain.replace(regexSeparators, ".");
38222
+ const labels = domain.split(".");
38223
+ const encoded = map3(labels, callback).join(".");
38224
+ return result2 + encoded;
38225
+ }
38226
+ function ucs2decode(string4) {
38227
+ const output = [];
38228
+ let counter = 0;
38229
+ const length = string4.length;
38230
+ while (counter < length) {
38231
+ const value = string4.charCodeAt(counter++);
38232
+ if (value >= 55296 && value <= 56319 && counter < length) {
38233
+ const extra = string4.charCodeAt(counter++);
38234
+ if ((extra & 64512) == 56320) {
38235
+ output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
38236
+ } else {
38237
+ output.push(value);
38238
+ counter--;
38239
+ }
38240
+ } else {
38241
+ output.push(value);
38242
+ }
38243
+ }
38244
+ return output;
38245
+ }
38246
+ var ucs2encode = (codePoints) => String.fromCodePoint(...codePoints);
38247
+ var basicToDigit = function(codePoint) {
38248
+ if (codePoint >= 48 && codePoint < 58) {
38249
+ return 26 + (codePoint - 48);
38250
+ }
38251
+ if (codePoint >= 65 && codePoint < 91) {
38252
+ return codePoint - 65;
38253
+ }
38254
+ if (codePoint >= 97 && codePoint < 123) {
38255
+ return codePoint - 97;
38256
+ }
38257
+ return base;
38258
+ };
38259
+ var digitToBasic = function(digit, flag) {
38260
+ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
38261
+ };
38262
+ var adapt = function(delta, numPoints, firstTime) {
38263
+ let k = 0;
38264
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
38265
+ delta += floor(delta / numPoints);
38266
+ for (; delta > baseMinusTMin * tMax >> 1; k += base) {
38267
+ delta = floor(delta / baseMinusTMin);
38268
+ }
38269
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
38270
+ };
38271
+ var decode3 = function(input) {
38272
+ const output = [];
38273
+ const inputLength = input.length;
38274
+ let i4 = 0;
38275
+ let n3 = initialN;
38276
+ let bias = initialBias;
38277
+ let basic = input.lastIndexOf(delimiter3);
38278
+ if (basic < 0) {
38279
+ basic = 0;
38280
+ }
38281
+ for (let j = 0; j < basic; ++j) {
38282
+ if (input.charCodeAt(j) >= 128) {
38283
+ error2("not-basic");
38284
+ }
38285
+ output.push(input.charCodeAt(j));
38286
+ }
38287
+ for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
38288
+ const oldi = i4;
38289
+ for (let w = 1, k = base; ; k += base) {
38290
+ if (index >= inputLength) {
38291
+ error2("invalid-input");
38292
+ }
38293
+ const digit = basicToDigit(input.charCodeAt(index++));
38294
+ if (digit >= base) {
38295
+ error2("invalid-input");
38296
+ }
38297
+ if (digit > floor((maxInt - i4) / w)) {
38298
+ error2("overflow");
38299
+ }
38300
+ i4 += digit * w;
38301
+ const t3 = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
38302
+ if (digit < t3) {
38303
+ break;
38304
+ }
38305
+ const baseMinusT = base - t3;
38306
+ if (w > floor(maxInt / baseMinusT)) {
38307
+ error2("overflow");
38308
+ }
38309
+ w *= baseMinusT;
38310
+ }
38311
+ const out2 = output.length + 1;
38312
+ bias = adapt(i4 - oldi, out2, oldi == 0);
38313
+ if (floor(i4 / out2) > maxInt - n3) {
38314
+ error2("overflow");
38315
+ }
38316
+ n3 += floor(i4 / out2);
38317
+ i4 %= out2;
38318
+ output.splice(i4++, 0, n3);
38319
+ }
38320
+ return String.fromCodePoint(...output);
38321
+ };
38322
+ var encode3 = function(input) {
38323
+ const output = [];
38324
+ input = ucs2decode(input);
38325
+ const inputLength = input.length;
38326
+ let n3 = initialN;
38327
+ let delta = 0;
38328
+ let bias = initialBias;
38329
+ for (const currentValue of input) {
38330
+ if (currentValue < 128) {
38331
+ output.push(stringFromCharCode(currentValue));
38332
+ }
38333
+ }
38334
+ const basicLength = output.length;
38335
+ let handledCPCount = basicLength;
38336
+ if (basicLength) {
38337
+ output.push(delimiter3);
38338
+ }
38339
+ while (handledCPCount < inputLength) {
38340
+ let m2 = maxInt;
38341
+ for (const currentValue of input) {
38342
+ if (currentValue >= n3 && currentValue < m2) {
38343
+ m2 = currentValue;
38344
+ }
38345
+ }
38346
+ const handledCPCountPlusOne = handledCPCount + 1;
38347
+ if (m2 - n3 > floor((maxInt - delta) / handledCPCountPlusOne)) {
38348
+ error2("overflow");
38349
+ }
38350
+ delta += (m2 - n3) * handledCPCountPlusOne;
38351
+ n3 = m2;
38352
+ for (const currentValue of input) {
38353
+ if (currentValue < n3 && ++delta > maxInt) {
38354
+ error2("overflow");
38355
+ }
38356
+ if (currentValue === n3) {
38357
+ let q = delta;
38358
+ for (let k = base; ; k += base) {
38359
+ const t3 = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
38360
+ if (q < t3) {
38361
+ break;
38362
+ }
38363
+ const qMinusT = q - t3;
38364
+ const baseMinusT = base - t3;
38365
+ output.push(
38366
+ stringFromCharCode(digitToBasic(t3 + qMinusT % baseMinusT, 0))
38367
+ );
38368
+ q = floor(qMinusT / baseMinusT);
38369
+ }
38370
+ output.push(stringFromCharCode(digitToBasic(q, 0)));
38371
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
38372
+ delta = 0;
38373
+ ++handledCPCount;
38374
+ }
38375
+ }
38376
+ ++delta;
38377
+ ++n3;
38378
+ }
38379
+ return output.join("");
38380
+ };
38381
+ var toUnicode = function(input) {
38382
+ return mapDomain(input, function(string4) {
38383
+ return regexPunycode.test(string4) ? decode3(string4.slice(4).toLowerCase()) : string4;
38384
+ });
38385
+ };
38386
+ var toASCII = function(input) {
38387
+ return mapDomain(input, function(string4) {
38388
+ return regexNonASCII.test(string4) ? "xn--" + encode3(string4) : string4;
38389
+ });
38390
+ };
38391
+ var punycode = {
38392
+ /**
38393
+ * A string representing the current Punycode.js version number.
38394
+ * @memberOf punycode
38395
+ * @type String
38396
+ */
38397
+ "version": "2.3.1",
38398
+ /**
38399
+ * An object of methods to convert from JavaScript's internal character
38400
+ * representation (UCS-2) to Unicode code points, and back.
38401
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
38402
+ * @memberOf punycode
38403
+ * @type Object
38404
+ */
38405
+ "ucs2": {
38406
+ "decode": ucs2decode,
38407
+ "encode": ucs2encode
38408
+ },
38409
+ "decode": decode3,
38410
+ "encode": encode3,
38411
+ "toASCII": toASCII,
38412
+ "toUnicode": toUnicode
38413
+ };
38414
+ module2.exports = punycode;
38415
+ }
38416
+ });
38417
+
38179
38418
  // node_modules/node-fetch/node_modules/tr46/lib/mappingTable.json
38180
38419
  var require_mappingTable = __commonJS({
38181
38420
  "node_modules/node-fetch/node_modules/tr46/lib/mappingTable.json"(exports2, module2) {
@@ -38187,7 +38426,7 @@ var require_mappingTable = __commonJS({
38187
38426
  var require_tr46 = __commonJS({
38188
38427
  "node_modules/node-fetch/node_modules/tr46/index.js"(exports2, module2) {
38189
38428
  "use strict";
38190
- var punycode = __require("punycode");
38429
+ var punycode = require_punycode();
38191
38430
  var mappingTable = require_mappingTable();
38192
38431
  var PROCESSING_OPTIONS = {
38193
38432
  TRANSITIONAL: 0,
@@ -38348,7 +38587,7 @@ var require_tr46 = __commonJS({
38348
38587
  var require_url_state_machine = __commonJS({
38349
38588
  "node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js"(exports2, module2) {
38350
38589
  "use strict";
38351
- var punycode = __require("punycode");
38590
+ var punycode = require_punycode();
38352
38591
  var tr46 = require_tr46();
38353
38592
  var specialSchemes = {
38354
38593
  ftp: 21,
@@ -328283,7 +328522,8 @@ var FetchAdminControlsResponseSchema = external_exports.object({
328283
328522
  secureModeEnabled: external_exports.boolean().optional(),
328284
328523
  strictModeDisabled: external_exports.boolean().optional(),
328285
328524
  mcpSetting: McpSettingSchema.optional(),
328286
- cliFeatureSetting: CliFeatureSettingSchema.optional()
328525
+ cliFeatureSetting: CliFeatureSettingSchema.optional(),
328526
+ adminControlsApplicable: external_exports.boolean().optional()
328287
328527
  });
328288
328528
 
328289
328529
  // packages/core/dist/src/code_assist/server.js
@@ -328955,7 +329195,7 @@ var __filename = fileURLToPath5(import.meta.url);
328955
329195
  var __dirname3 = path22.dirname(__filename);
328956
329196
  async function getVersion() {
328957
329197
  const pkgJson = await getPackageJson(__dirname3);
328958
- return "0.29.1";
329198
+ return "0.29.3";
328959
329199
  }
328960
329200
 
328961
329201
  // packages/core/dist/src/code_assist/experiments/client_metadata.js
@@ -332500,8 +332740,8 @@ var Float64Vector = import_vector.default.Float64Vector;
332500
332740
  var PointerVector = import_vector.default.PointerVector;
332501
332741
 
332502
332742
  // packages/core/dist/src/generated/git-commit.js
332503
- var GIT_COMMIT_INFO = "9a947f554";
332504
- var CLI_VERSION = "0.29.1";
332743
+ var GIT_COMMIT_INFO = "f581ebdd1";
332744
+ var CLI_VERSION = "0.29.3";
332505
332745
 
332506
332746
  // packages/core/dist/src/ide/detect-ide.js
332507
332747
  var IDE_DEFINITIONS = {
@@ -405310,16 +405550,13 @@ function sanitizeAdminSettings(settings) {
405310
405550
  }
405311
405551
  };
405312
405552
  }
405313
- function isGaxiosError(error2) {
405314
- return typeof error2 === "object" && error2 !== null && "status" in error2 && typeof error2.status === "number";
405315
- }
405316
405553
  async function fetchAdminControls(server, cachedSettings, adminControlsEnabled, onSettingsChanged) {
405317
405554
  if (!server || !server.projectId || !adminControlsEnabled) {
405318
405555
  stopAdminControlsPolling();
405319
405556
  currentSettings = void 0;
405320
405557
  return {};
405321
405558
  }
405322
- if (cachedSettings) {
405559
+ if (cachedSettings && Object.keys(cachedSettings).length !== 0) {
405323
405560
  currentSettings = cachedSettings;
405324
405561
  startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405325
405562
  return cachedSettings;
@@ -405328,20 +405565,18 @@ async function fetchAdminControls(server, cachedSettings, adminControlsEnabled,
405328
405565
  const rawSettings = await server.fetchAdminControls({
405329
405566
  project: server.projectId
405330
405567
  });
405568
+ if (rawSettings.adminControlsApplicable !== true) {
405569
+ stopAdminControlsPolling();
405570
+ currentSettings = void 0;
405571
+ return {};
405572
+ }
405331
405573
  const sanitizedSettings = sanitizeAdminSettings(rawSettings);
405332
405574
  currentSettings = sanitizedSettings;
405333
405575
  startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405334
405576
  return sanitizedSettings;
405335
405577
  } catch (e3) {
405336
- if (isGaxiosError(e3) && e3.status === 403) {
405337
- stopAdminControlsPolling();
405338
- currentSettings = void 0;
405339
- return {};
405340
- }
405341
405578
  debugLogger.error("Failed to fetch admin controls: ", e3);
405342
- currentSettings = {};
405343
- startAdminControlsPolling(server, server.projectId, onSettingsChanged);
405344
- return {};
405579
+ throw e3;
405345
405580
  }
405346
405581
  }
405347
405582
  async function fetchAdminControlsOnce(server, adminControlsEnabled) {
@@ -405352,13 +405587,13 @@ async function fetchAdminControlsOnce(server, adminControlsEnabled) {
405352
405587
  const rawSettings = await server.fetchAdminControls({
405353
405588
  project: server.projectId
405354
405589
  });
405355
- return sanitizeAdminSettings(rawSettings);
405356
- } catch (e3) {
405357
- if (isGaxiosError(e3) && e3.status === 403) {
405590
+ if (rawSettings.adminControlsApplicable !== true) {
405358
405591
  return {};
405359
405592
  }
405593
+ return sanitizeAdminSettings(rawSettings);
405594
+ } catch (e3) {
405360
405595
  debugLogger.error("Failed to fetch admin controls: ", e3 instanceof Error ? e3.message : e3);
405361
- return {};
405596
+ throw e3;
405362
405597
  }
405363
405598
  }
405364
405599
  function startAdminControlsPolling(server, project, onSettingsChanged) {
@@ -405368,17 +405603,17 @@ function startAdminControlsPolling(server, project, onSettingsChanged) {
405368
405603
  const rawSettings = await server.fetchAdminControls({
405369
405604
  project
405370
405605
  });
405606
+ if (rawSettings.adminControlsApplicable !== true) {
405607
+ stopAdminControlsPolling();
405608
+ currentSettings = void 0;
405609
+ return;
405610
+ }
405371
405611
  const newSettings = sanitizeAdminSettings(rawSettings);
405372
405612
  if (!isDeepStrictEqual(newSettings, currentSettings)) {
405373
405613
  currentSettings = newSettings;
405374
405614
  onSettingsChanged(newSettings);
405375
405615
  }
405376
405616
  } catch (e3) {
405377
- if (isGaxiosError(e3) && e3.status === 403) {
405378
- stopAdminControlsPolling();
405379
- currentSettings = void 0;
405380
- return;
405381
- }
405382
405617
  debugLogger.error("Failed to poll admin controls: ", e3);
405383
405618
  }
405384
405619
  }, 5 * 60 * 1e3);