@google/gemini-cli-a2a-server 0.29.2 → 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.
- package/dist/a2a-server.mjs +244 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -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 =
|
|
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 =
|
|
38590
|
+
var punycode = require_punycode();
|
|
38352
38591
|
var tr46 = require_tr46();
|
|
38353
38592
|
var specialSchemes = {
|
|
38354
38593
|
ftp: 21,
|
|
@@ -328956,7 +329195,7 @@ var __filename = fileURLToPath5(import.meta.url);
|
|
|
328956
329195
|
var __dirname3 = path22.dirname(__filename);
|
|
328957
329196
|
async function getVersion() {
|
|
328958
329197
|
const pkgJson = await getPackageJson(__dirname3);
|
|
328959
|
-
return "0.29.
|
|
329198
|
+
return "0.29.3";
|
|
328960
329199
|
}
|
|
328961
329200
|
|
|
328962
329201
|
// packages/core/dist/src/code_assist/experiments/client_metadata.js
|
|
@@ -332501,8 +332740,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
332501
332740
|
var PointerVector = import_vector.default.PointerVector;
|
|
332502
332741
|
|
|
332503
332742
|
// packages/core/dist/src/generated/git-commit.js
|
|
332504
|
-
var GIT_COMMIT_INFO = "
|
|
332505
|
-
var CLI_VERSION = "0.29.
|
|
332743
|
+
var GIT_COMMIT_INFO = "f581ebdd1";
|
|
332744
|
+
var CLI_VERSION = "0.29.3";
|
|
332506
332745
|
|
|
332507
332746
|
// packages/core/dist/src/ide/detect-ide.js
|
|
332508
332747
|
var IDE_DEFINITIONS = {
|