@google/gemini-cli 0.59.0-nightly.20260902.g4963a4456 → 0.59.0

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.
Files changed (68) hide show
  1. package/bundle/{chunk-Q5JIA6GT.js → chunk-5MBZBBH2.js} +1 -1
  2. package/bundle/{chunk-HLKUJQDM.js → chunk-AB5FS4AA.js} +3 -3
  3. package/bundle/{chunk-T7ZX2IIA.js → chunk-CFD5V7JP.js} +1 -1
  4. package/bundle/{chunk-CPY5OHHN.js → chunk-CUTHWG3H.js} +8 -8
  5. package/bundle/{chunk-KWV4AQUZ.js → chunk-EXIGMSNQ.js} +8 -8
  6. package/bundle/{chunk-C6ZWHKCF.js → chunk-EZCKZ4FP.js} +8 -9
  7. package/bundle/{chunk-UEJPTQC6.js → chunk-HWQPEGPU.js} +3 -3
  8. package/bundle/{chunk-IA7Q3KXH.js → chunk-LZ4UWPZ4.js} +1 -1
  9. package/bundle/{chunk-IJEAUNNQ.js → chunk-MBUPFP25.js} +1 -1
  10. package/bundle/{chunk-IWRJCZ6U.js → chunk-NBDWOAFH.js} +1 -1
  11. package/bundle/{chunk-NMQMMCVT.js → chunk-NNFB47JH.js} +1 -1
  12. package/bundle/{chunk-GSIUURFM.js → chunk-NWWZRJGH.js} +1 -1
  13. package/bundle/{chunk-JHQHEMVA.js → chunk-O4TDK2BP.js} +2 -2
  14. package/bundle/{chunk-3VZPRWHY.js → chunk-OXQLGDKV.js} +1 -1
  15. package/bundle/{chunk-KKCOXPHQ.js → chunk-PC2G646B.js} +5 -8
  16. package/bundle/{chunk-TZIBDTO2.js → chunk-QEMQJ5WC.js} +55 -68
  17. package/bundle/{chunk-V6Z4ITCV.js → chunk-QTWDMFI7.js} +2 -2
  18. package/bundle/{chunk-YUQC6NAA.js → chunk-RSFMNCZQ.js} +3 -3
  19. package/bundle/{chunk-DIOSE3BS.js → chunk-S4PJ76PA.js} +83 -232
  20. package/bundle/{chunk-IGCPJWUF.js → chunk-SM627E5R.js} +14467 -7859
  21. package/bundle/{chunk-DASQGJ7I.js → chunk-WQ6KAW5H.js} +2 -2
  22. package/bundle/{chunk-6GUIIVVA.js → chunk-YINIG2CS.js} +1 -1
  23. package/bundle/{chunk-ER2BMKIS.js → chunk-YSBB75DZ.js} +80 -208
  24. package/bundle/{chunk-7JLIYXNU.js → chunk-ZEWQGTD3.js} +1 -1
  25. package/bundle/{cleanup-25YS5RTX.js → cleanup-V6FPOSLQ.js} +2 -2
  26. package/bundle/{cleanup-6GCA4T3P.js → cleanup-XITK52PU.js} +2 -2
  27. package/bundle/{cleanup-LZUO77TQ.js → cleanup-XLXFAFOM.js} +2 -2
  28. package/bundle/{core-2TCJDOL6.js → core-3RU5PE2Y.js} +1 -9
  29. package/bundle/{dist-U5EX4CQJ.js → core-W643DPU2.js} +1 -9
  30. package/bundle/{devtoolsService-2IXJHCHW.js → devtoolsService-6HD2JXSA.js} +2 -2
  31. package/bundle/{devtoolsService-CU22AZND.js → devtoolsService-MHCZCWFY.js} +2 -2
  32. package/bundle/{devtoolsService-BJMUO2XL.js → devtoolsService-QCWLN43R.js} +3 -4
  33. package/bundle/{dist-VR7BVPAT.js → dist-LLWWE5PU.js} +1 -9
  34. package/bundle/docs/reference/tools.md +4 -4
  35. package/bundle/docs/tools/web-fetch.md +3 -7
  36. package/bundle/{gemini-636YD7YV.js → gemini-CQYKWDIK.js} +14 -14
  37. package/bundle/{gemini-K4CRJOXJ.js → gemini-LLTPU73C.js} +198 -214
  38. package/bundle/{gemini-4QZGW7SH.js → gemini-OENNDR6N.js} +14 -14
  39. package/bundle/gemini.js +7 -7
  40. package/bundle/{interactiveCli-CS35GNLK.js → interactiveCli-7H2PS7RG.js} +8 -8
  41. package/bundle/{interactiveCli-2DBA2EUZ.js → interactiveCli-HHIJH7BL.js} +8 -8
  42. package/bundle/{interactiveCli-3JQSLUI7.js → interactiveCli-RIVGDZH4.js} +296 -315
  43. package/bundle/{liteRtServerManager-3TZXC7UK.js → liteRtServerManager-3QXIGTR3.js} +4 -4
  44. package/bundle/{liteRtServerManager-ACIGCEO2.js → liteRtServerManager-ALSWB4ZD.js} +4 -4
  45. package/bundle/{liteRtServerManager-HSGAX7EP.js → liteRtServerManager-XQKFTZNQ.js} +4 -4
  46. package/bundle/{oauth2-provider-JRSE3A7L.js → oauth2-provider-JV5L5XL4.js} +1 -1
  47. package/bundle/{oauth2-provider-7VIOBXML.js → oauth2-provider-KT5RTHDD.js} +1 -1
  48. package/bundle/{oauth2-provider-PYJGQTFU.js → oauth2-provider-NJUM2T72.js} +72 -38
  49. package/bundle/{start-6Q4QBVPO.js → start-AGMWAQ3H.js} +6 -6
  50. package/bundle/{start-HU7I3QO3.js → start-EKWDEYRS.js} +6 -6
  51. package/bundle/{start-MHK6JBHQ.js → start-LY3VMFGC.js} +6 -6
  52. package/package.json +1 -1
  53. package/bundle/chunk-BOFHLQOG.js +0 -17332
  54. package/bundle/chunk-F5IP5MHL.js +0 -398
  55. package/bundle/chunk-I4Y2QIDJ.js +0 -102506
  56. package/bundle/chunk-JPE4HCHY.js +0 -398010
  57. package/bundle/chunk-OGVFULXC.js +0 -1571
  58. package/bundle/chunk-OXMZP3AS.js +0 -118
  59. package/bundle/chunk-VIH2NMBW.js +0 -512
  60. package/bundle/chunk-XIHG4K2H.js +0 -154
  61. package/bundle/cleanup-NCHJS2BY.js +0 -32
  62. package/bundle/devtoolsService-VC3YH4D2.js +0 -4359
  63. package/bundle/dist-YZRGVHWZ.js +0 -2196
  64. package/bundle/gemini-PXW4RELH.js +0 -17337
  65. package/bundle/interactiveCli-FBKOZYFH.js +0 -34983
  66. package/bundle/liteRtServerManager-IOJ5CIAG.js +0 -65
  67. package/bundle/oauth2-provider-QEEGBDTU.js +0 -235
  68. package/bundle/start-NIWCTDHI.js +0 -18
@@ -16728,7 +16728,7 @@ var require_dist2 = __commonJS({
16728
16728
  };
16729
16729
  Object.defineProperty(exports2, "__esModule", { value: true });
16730
16730
  exports2.HttpProxyAgent = void 0;
16731
- var net3 = __importStar(__require("net"));
16731
+ var net2 = __importStar(__require("net"));
16732
16732
  var tls = __importStar(__require("tls"));
16733
16733
  var debug_1 = __importDefault(require_src());
16734
16734
  var events_1 = __require("events");
@@ -16801,7 +16801,7 @@ var require_dist2 = __commonJS({
16801
16801
  socket = tls.connect(this.connectOpts);
16802
16802
  } else {
16803
16803
  debug2("Creating `net.Socket`: %o", this.connectOpts);
16804
- socket = net3.connect(this.connectOpts);
16804
+ socket = net2.connect(this.connectOpts);
16805
16805
  }
16806
16806
  await (0, events_1.once)(socket, "connect");
16807
16807
  return socket;
@@ -28153,8 +28153,8 @@ var require_utils = __commonJS({
28153
28153
  var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
28154
28154
  var HOST_DELIM_RE = /[@/?#:]/g;
28155
28155
  var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
28156
- function reescapeHostDelimiters(host, isIP2) {
28157
- const re = isIP2 ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
28156
+ function reescapeHostDelimiters(host, isIP) {
28157
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
28158
28158
  re.lastIndex = 0;
28159
28159
  return host.replace(re, (ch) => HOST_DELIMS[ch]);
28160
28160
  }
@@ -28636,7 +28636,7 @@ var require_fast_uri = __commonJS({
28636
28636
  fragment: void 0
28637
28637
  };
28638
28638
  let malformedAuthorityOrPort = false;
28639
- let isIP2 = false;
28639
+ let isIP = false;
28640
28640
  if (options.reference === "suffix") {
28641
28641
  if (options.scheme) {
28642
28642
  uri = options.scheme + ":" + uri;
@@ -28666,9 +28666,9 @@ var require_fast_uri = __commonJS({
28666
28666
  if (ipv4result === false) {
28667
28667
  const ipv6result = normalizeIPv6(parsed.host);
28668
28668
  parsed.host = ipv6result.host.toLowerCase();
28669
- isIP2 = ipv6result.isIPV6;
28669
+ isIP = ipv6result.isIPV6;
28670
28670
  } else {
28671
- isIP2 = true;
28671
+ isIP = true;
28672
28672
  }
28673
28673
  }
28674
28674
  if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) {
@@ -28685,7 +28685,7 @@ var require_fast_uri = __commonJS({
28685
28685
  }
28686
28686
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
28687
28687
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
28688
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP2 === false && nonSimpleDomain(parsed.host)) {
28688
+ if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
28689
28689
  try {
28690
28690
  parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
28691
28691
  } catch (e2) {
@@ -28699,7 +28699,7 @@ var require_fast_uri = __commonJS({
28699
28699
  parsed.scheme = unescape(parsed.scheme);
28700
28700
  }
28701
28701
  if (parsed.host !== void 0) {
28702
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP2);
28702
+ parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
28703
28703
  }
28704
28704
  }
28705
28705
  if (parsed.path) {
@@ -58752,7 +58752,7 @@ var require_transport = __commonJS({
58752
58752
  var resolver_1 = require_resolver();
58753
58753
  var subchannel_address_1 = require_subchannel_address();
58754
58754
  var uri_parser_1 = require_uri_parser();
58755
- var net3 = __require("net");
58755
+ var net2 = __require("net");
58756
58756
  var subchannel_call_1 = require_subchannel_call();
58757
58757
  var call_number_1 = require_call_number();
58758
58758
  var TRACER_NAME2 = "transport";
@@ -59219,7 +59219,7 @@ var require_transport = __commonJS({
59219
59219
  const errorCallback = (error40) => {
59220
59220
  reject(error40);
59221
59221
  };
59222
- const socket = net3.connect(address, () => {
59222
+ const socket = net2.connect(address, () => {
59223
59223
  socket.removeListener("close", closeCallback);
59224
59224
  socket.removeListener("error", errorCallback);
59225
59225
  resolve29(socket);
@@ -113721,13 +113721,13 @@ var require_internet = __commonJS({
113721
113721
  var require_dockerSocket = __commonJS({
113722
113722
  "packages/core/node_modules/systeminformation/lib/dockerSocket.js"(exports2, module2) {
113723
113723
  "use strict";
113724
- var net3 = __require("net");
113724
+ var net2 = __require("net");
113725
113725
  var isWin2 = __require("os").type() === "Windows_NT";
113726
113726
  var socketPath = isWin2 ? "//./pipe/docker_engine" : "/var/run/docker.sock";
113727
113727
  var DockerSocket = class {
113728
113728
  getInfo(callback) {
113729
113729
  try {
113730
- let socket = net3.createConnection({ path: socketPath });
113730
+ let socket = net2.createConnection({ path: socketPath });
113731
113731
  let alldata = "";
113732
113732
  let data;
113733
113733
  socket.on("connect", () => {
@@ -113757,7 +113757,7 @@ var require_dockerSocket = __commonJS({
113757
113757
  }
113758
113758
  listImages(all2, callback) {
113759
113759
  try {
113760
- let socket = net3.createConnection({ path: socketPath });
113760
+ let socket = net2.createConnection({ path: socketPath });
113761
113761
  let alldata = "";
113762
113762
  let data;
113763
113763
  socket.on("connect", () => {
@@ -113789,7 +113789,7 @@ var require_dockerSocket = __commonJS({
113789
113789
  id = id || "";
113790
113790
  if (id) {
113791
113791
  try {
113792
- let socket = net3.createConnection({ path: socketPath });
113792
+ let socket = net2.createConnection({ path: socketPath });
113793
113793
  let alldata = "";
113794
113794
  let data;
113795
113795
  socket.on("connect", () => {
@@ -113822,7 +113822,7 @@ var require_dockerSocket = __commonJS({
113822
113822
  }
113823
113823
  listContainers(all2, callback) {
113824
113824
  try {
113825
- let socket = net3.createConnection({ path: socketPath });
113825
+ let socket = net2.createConnection({ path: socketPath });
113826
113826
  let alldata = "";
113827
113827
  let data;
113828
113828
  socket.on("connect", () => {
@@ -113854,7 +113854,7 @@ var require_dockerSocket = __commonJS({
113854
113854
  id = id || "";
113855
113855
  if (id) {
113856
113856
  try {
113857
- let socket = net3.createConnection({ path: socketPath });
113857
+ let socket = net2.createConnection({ path: socketPath });
113858
113858
  let alldata = "";
113859
113859
  let data;
113860
113860
  socket.on("connect", () => {
@@ -113889,7 +113889,7 @@ var require_dockerSocket = __commonJS({
113889
113889
  id = id || "";
113890
113890
  if (id) {
113891
113891
  try {
113892
- let socket = net3.createConnection({ path: socketPath });
113892
+ let socket = net2.createConnection({ path: socketPath });
113893
113893
  let alldata = "";
113894
113894
  let data;
113895
113895
  socket.on("connect", () => {
@@ -113924,7 +113924,7 @@ var require_dockerSocket = __commonJS({
113924
113924
  id = id || "";
113925
113925
  if (id) {
113926
113926
  try {
113927
- let socket = net3.createConnection({ path: socketPath });
113927
+ let socket = net2.createConnection({ path: socketPath });
113928
113928
  let alldata = "";
113929
113929
  let data;
113930
113930
  socket.on("connect", () => {
@@ -113957,7 +113957,7 @@ var require_dockerSocket = __commonJS({
113957
113957
  }
113958
113958
  listVolumes(callback) {
113959
113959
  try {
113960
- let socket = net3.createConnection({ path: socketPath });
113960
+ let socket = net2.createConnection({ path: socketPath });
113961
113961
  let alldata = "";
113962
113962
  let data;
113963
113963
  socket.on("connect", () => {
@@ -210580,7 +210580,7 @@ var require_util20 = __commonJS({
210580
210580
  var { kDestroyed, kBodyUsed, kListeners, kBody } = require_symbols();
210581
210581
  var { IncomingMessage } = __require("node:http");
210582
210582
  var stream2 = __require("node:stream");
210583
- var net3 = __require("node:net");
210583
+ var net2 = __require("node:net");
210584
210584
  var { Blob: Blob2 } = __require("node:buffer");
210585
210585
  var nodeUtil = __require("node:util");
210586
210586
  var { stringify: stringify3 } = __require("node:querystring");
@@ -210726,7 +210726,7 @@ var require_util20 = __commonJS({
210726
210726
  }
210727
210727
  assert3(typeof host === "string");
210728
210728
  const servername = getHostname(host);
210729
- if (net3.isIP(servername)) {
210729
+ if (net2.isIP(servername)) {
210730
210730
  return "";
210731
210731
  }
210732
210732
  return servername;
@@ -212038,7 +212038,7 @@ var require_dispatcher_base = __commonJS({
212038
212038
  var require_connect = __commonJS({
212039
212039
  "packages/core/node_modules/undici/lib/core/connect.js"(exports2, module2) {
212040
212040
  "use strict";
212041
- var net3 = __require("node:net");
212041
+ var net2 = __require("node:net");
212042
212042
  var assert3 = __require("node:assert");
212043
212043
  var util4 = require_util20();
212044
212044
  var { InvalidArgumentError } = require_errors6();
@@ -212092,7 +212092,7 @@ var require_connect = __commonJS({
212092
212092
  }
212093
212093
  };
212094
212094
  }
212095
- function buildConnector2({ allowH2, maxCachedSessions, socketPath, timeout, session: customSession, ...opts }) {
212095
+ function buildConnector({ allowH2, maxCachedSessions, socketPath, timeout, session: customSession, ...opts }) {
212096
212096
  if (maxCachedSessions != null && (!Number.isInteger(maxCachedSessions) || maxCachedSessions < 0)) {
212097
212097
  throw new InvalidArgumentError("maxCachedSessions must be a positive integer or zero");
212098
212098
  }
@@ -212130,7 +212130,7 @@ var require_connect = __commonJS({
212130
212130
  } else {
212131
212131
  assert3(!httpSocket, "httpSocket can only be sent on TLS update");
212132
212132
  port = port || 80;
212133
- socket = net3.connect({
212133
+ socket = net2.connect({
212134
212134
  highWaterMark: 64 * 1024,
212135
212135
  // Same as nodejs fs streams.
212136
212136
  ...options,
@@ -212162,7 +212162,7 @@ var require_connect = __commonJS({
212162
212162
  return socket;
212163
212163
  };
212164
212164
  }
212165
- module2.exports = buildConnector2;
212165
+ module2.exports = buildConnector;
212166
212166
  }
212167
212167
  });
212168
212168
 
@@ -217276,7 +217276,7 @@ var require_client2 = __commonJS({
217276
217276
  "packages/core/node_modules/undici/lib/dispatcher/client.js"(exports2, module2) {
217277
217277
  "use strict";
217278
217278
  var assert3 = __require("node:assert");
217279
- var net3 = __require("node:net");
217279
+ var net2 = __require("node:net");
217280
217280
  var http3 = __require("node:http");
217281
217281
  var util4 = require_util20();
217282
217282
  var { ClientStats } = require_stats();
@@ -217288,7 +217288,7 @@ var require_client2 = __commonJS({
217288
217288
  InformationalError,
217289
217289
  ClientDestroyedError
217290
217290
  } = require_errors6();
217291
- var buildConnector2 = require_connect();
217291
+ var buildConnector = require_connect();
217292
217292
  var {
217293
217293
  kUrl,
217294
217294
  kServerName,
@@ -217423,7 +217423,7 @@ var require_client2 = __commonJS({
217423
217423
  if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
217424
217424
  throw new InvalidArgumentError("maxRequestsPerClient must be a positive number");
217425
217425
  }
217426
- if (localAddress != null && (typeof localAddress !== "string" || net3.isIP(localAddress) === 0)) {
217426
+ if (localAddress != null && (typeof localAddress !== "string" || net2.isIP(localAddress) === 0)) {
217427
217427
  throw new InvalidArgumentError("localAddress must be valid string IP address");
217428
217428
  }
217429
217429
  if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {
@@ -217440,7 +217440,7 @@ var require_client2 = __commonJS({
217440
217440
  }
217441
217441
  super();
217442
217442
  if (typeof connect2 !== "function") {
217443
- connect2 = buildConnector2({
217443
+ connect2 = buildConnector({
217444
217444
  ...tls,
217445
217445
  maxCachedSessions,
217446
217446
  allowH2,
@@ -217578,7 +217578,7 @@ var require_client2 = __commonJS({
217578
217578
  const idx = hostname3.indexOf("]");
217579
217579
  assert3(idx !== -1);
217580
217580
  const ip = hostname3.substring(1, idx);
217581
- assert3(net3.isIPv6(ip));
217581
+ assert3(net2.isIPv6(ip));
217582
217582
  hostname3 = ip;
217583
217583
  }
217584
217584
  client[kConnecting] = true;
@@ -218013,7 +218013,7 @@ var require_pool2 = __commonJS({
218013
218013
  } = require_errors6();
218014
218014
  var util4 = require_util20();
218015
218015
  var { kUrl } = require_symbols();
218016
- var buildConnector2 = require_connect();
218016
+ var buildConnector = require_connect();
218017
218017
  var kOptions = Symbol("options");
218018
218018
  var kConnections = Symbol("connections");
218019
218019
  var kFactory = Symbol("factory");
@@ -218046,7 +218046,7 @@ var require_pool2 = __commonJS({
218046
218046
  }
218047
218047
  super();
218048
218048
  if (typeof connect !== "function") {
218049
- connect = buildConnector2({
218049
+ connect = buildConnector({
218050
218050
  ...tls,
218051
218051
  maxCachedSessions,
218052
218052
  allowH2,
@@ -218361,7 +218361,7 @@ var require_proxy_agent = __commonJS({
218361
218361
  var Pool = require_pool2();
218362
218362
  var DispatcherBase = require_dispatcher_base();
218363
218363
  var { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = require_errors6();
218364
- var buildConnector2 = require_connect();
218364
+ var buildConnector = require_connect();
218365
218365
  var Client3 = require_client2();
218366
218366
  var kAgent = Symbol("proxy agent");
218367
218367
  var kClient = Symbol("proxy client");
@@ -218459,8 +218459,8 @@ var require_proxy_agent = __commonJS({
218459
218459
  }
218460
218460
  return new Client3(origin2, options);
218461
218461
  } : void 0;
218462
- const connect = buildConnector2({ ...opts.proxyTls });
218463
- this[kConnectEndpoint] = buildConnector2({ ...opts.requestTls });
218462
+ const connect = buildConnector({ ...opts.proxyTls });
218463
+ this[kConnectEndpoint] = buildConnector({ ...opts.requestTls });
218464
218464
  this[kClient] = clientFactory(url3, { connect, factory });
218465
218465
  this[kTunnelProxy] = proxyTunnel;
218466
218466
  this[kAgent] = new Agent2({
@@ -221841,7 +221841,7 @@ var require_dump = __commonJS({
221841
221841
  var require_dns = __commonJS({
221842
221842
  "packages/core/node_modules/undici/lib/interceptor/dns.js"(exports2, module2) {
221843
221843
  "use strict";
221844
- var { isIP: isIP2 } = __require("node:net");
221844
+ var { isIP } = __require("node:net");
221845
221845
  var { lookup: lookup3 } = __require("node:dns");
221846
221846
  var DecoratorHandler = require_decorator_handler();
221847
221847
  var { InvalidArgumentError, InformationalError } = require_errors6();
@@ -222140,7 +222140,7 @@ var require_dns = __commonJS({
222140
222140
  return (dispatch) => {
222141
222141
  return function dnsInterceptor(origDispatchOpts, handler) {
222142
222142
  const origin = origDispatchOpts.origin.constructor === URL ? origDispatchOpts.origin : new URL(origDispatchOpts.origin);
222143
- if (isIP2(origin.hostname) !== 0) {
222143
+ if (isIP(origin.hostname) !== 0) {
222144
222144
  return dispatch(origDispatchOpts, handler);
222145
222145
  }
222146
222146
  instance2.runLookup(origin, origDispatchOpts, (err2, newOrigin) => {
@@ -230250,7 +230250,7 @@ var require_undici = __commonJS({
230250
230250
  var util4 = require_util20();
230251
230251
  var { InvalidArgumentError } = errors;
230252
230252
  var api = require_api2();
230253
- var buildConnector2 = require_connect();
230253
+ var buildConnector = require_connect();
230254
230254
  var MockClient = require_mock_client();
230255
230255
  var { MockCallHistory, MockCallHistoryLog } = require_mock_call_history();
230256
230256
  var MockAgent = require_mock_agent();
@@ -230286,7 +230286,7 @@ var require_undici = __commonJS({
230286
230286
  };
230287
230287
  var SqliteCacheStore = require_sqlite_cache_store();
230288
230288
  module2.exports.cacheStores.SqliteCacheStore = SqliteCacheStore;
230289
- module2.exports.buildConnector = buildConnector2;
230289
+ module2.exports.buildConnector = buildConnector;
230290
230290
  module2.exports.errors = errors;
230291
230291
  module2.exports.util = {
230292
230292
  parseHeaders: util4.parseHeaders,
@@ -282634,8 +282634,8 @@ function isValidToolName(name3, options = {}) {
282634
282634
  }
282635
282635
 
282636
282636
  // packages/core/dist/src/generated/git-commit.js
282637
- var GIT_COMMIT_INFO = "4963a4456";
282638
- var CLI_VERSION = "0.59.0-nightly.20260825.g812f7a2bc";
282637
+ var GIT_COMMIT_INFO = "45e486b03";
282638
+ var CLI_VERSION = "0.59.0";
282639
282639
 
282640
282640
  // packages/core/dist/src/ide/detect-ide.js
282641
282641
  var IDE_DEFINITIONS = {
@@ -305929,7 +305929,7 @@ function getVersion() {
305929
305929
  }
305930
305930
  versionPromise = (async () => {
305931
305931
  const pkgJson = await getPackageJson(__dirname4);
305932
- return "0.59.0-nightly.20260825.g812f7a2bc";
305932
+ return "0.59.0";
305933
305933
  })();
305934
305934
  return versionPromise;
305935
305935
  }
@@ -324200,10 +324200,9 @@ var ShellTool = class _ShellTool extends BaseDeclarativeTool {
324200
324200
  };
324201
324201
 
324202
324202
  // packages/core/dist/src/utils/fetch.js
324203
- var undici = __toESM(require_undici(), 1);
324203
+ var import_undici2 = __toESM(require_undici(), 1);
324204
324204
  var import_ipaddr = __toESM(require_ipaddr(), 1);
324205
324205
  import { URL as URL5 } from "node:url";
324206
- import * as net2 from "node:net";
324207
324206
  import { lookup } from "node:dns/promises";
324208
324207
  var FetchError = class extends Error {
324209
324208
  code;
@@ -324222,93 +324221,7 @@ var PrivateIpError = class extends Error {
324222
324221
  var defaultHeadersTimeout = 6e4;
324223
324222
  var defaultBodyTimeout = 3e5;
324224
324223
  var currentProxy = void 0;
324225
- function getBuildConnector() {
324226
- try {
324227
- const fn = undici.buildConnector;
324228
- return typeof fn === "function" ? fn : void 0;
324229
- } catch {
324230
- return void 0;
324231
- }
324232
- }
324233
- function safeLookup(hostname3, options, callback) {
324234
- const sanitized = sanitizeHostname(hostname3);
324235
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
324236
- callback(new PrivateIpError(`Access to internal host ${sanitized} is blocked`), "");
324237
- return;
324238
- }
324239
- if (net2.isIP(sanitized)) {
324240
- if (isAddressPrivate(sanitized)) {
324241
- callback(new PrivateIpError(`Access to private IP ${sanitized} is blocked`), "");
324242
- return;
324243
- }
324244
- if (options?.all) {
324245
- callback(null, [{ address: sanitized, family: net2.isIP(sanitized) }]);
324246
- } else {
324247
- callback(null, sanitized, net2.isIP(sanitized));
324248
- }
324249
- return;
324250
- }
324251
- lookup(sanitized, { all: true }).then((addresses) => {
324252
- if (!addresses || addresses.length === 0) {
324253
- callback(new Error(`getaddrinfo ENOTFOUND ${sanitized}`), "");
324254
- return;
324255
- }
324256
- for (const addr2 of addresses) {
324257
- if (isAddressPrivate(addr2.address)) {
324258
- callback(new PrivateIpError(`Access to private IP ${addr2.address} (resolved from ${sanitized}) is blocked`), "");
324259
- return;
324260
- }
324261
- }
324262
- if (options?.all) {
324263
- callback(null, addresses);
324264
- } else {
324265
- const family = options?.family;
324266
- const match2 = family ? addresses.find((a2) => a2.family === family) || addresses[0] : addresses[0];
324267
- callback(null, match2.address, match2.family);
324268
- }
324269
- }).catch((err2) => {
324270
- callback(err2 instanceof Error ? err2 : new Error(String(err2)), "");
324271
- });
324272
- }
324273
- function createSafeConnector(connectorOpts, customDefaultConnector) {
324274
- const buildConnectorFn = getBuildConnector();
324275
- const safeConnectorOpts = {
324276
- ...connectorOpts,
324277
- lookup: safeLookup
324278
- };
324279
- const defaultConnector = customDefaultConnector ?? (buildConnectorFn ? buildConnectorFn(safeConnectorOpts) : void 0);
324280
- return function safeConnect(opts, callback) {
324281
- if (!defaultConnector) {
324282
- callback(new Error("Connector is unavailable"), null);
324283
- return;
324284
- }
324285
- const rawHostname = opts.hostname;
324286
- const sanitized = sanitizeHostname(rawHostname);
324287
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
324288
- callback(new PrivateIpError(`Access to internal host ${sanitized} is blocked`), null);
324289
- return;
324290
- }
324291
- if (net2.isIP(sanitized) && isAddressPrivate(sanitized)) {
324292
- callback(new PrivateIpError(`Access to private IP ${sanitized} is blocked`), null);
324293
- return;
324294
- }
324295
- defaultConnector(opts, callback);
324296
- };
324297
- }
324298
- function createSafeAgent(options) {
324299
- const buildConnectorFn = getBuildConnector();
324300
- if (!buildConnectorFn) {
324301
- throw new Error("Security initialization failed: undici.buildConnector is not available.");
324302
- }
324303
- const connect = createSafeConnector();
324304
- return new undici.Agent({
324305
- headersTimeout: options?.headersTimeout ?? defaultHeadersTimeout,
324306
- bodyTimeout: options?.bodyTimeout ?? defaultBodyTimeout,
324307
- connect
324308
- });
324309
- }
324310
- var defaultSafeAgent = createSafeAgent();
324311
- undici.setGlobalDispatcher(new undici.Agent({
324224
+ (0, import_undici2.setGlobalDispatcher)(new import_undici2.Agent({
324312
324225
  headersTimeout: defaultHeadersTimeout,
324313
324226
  bodyTimeout: defaultBodyTimeout
324314
324227
  }));
@@ -324317,14 +324230,10 @@ function updateGlobalFetchTimeouts(timeoutMs) {
324317
324230
  throw new RangeError(`Invalid timeout value: ${timeoutMs}. Must be a positive finite number.`);
324318
324231
  }
324319
324232
  defaultHeadersTimeout = timeoutMs;
324320
- defaultSafeAgent = createSafeAgent({
324321
- headersTimeout: defaultHeadersTimeout,
324322
- bodyTimeout: defaultBodyTimeout
324323
- });
324324
324233
  if (currentProxy) {
324325
324234
  setGlobalProxy(currentProxy);
324326
324235
  } else {
324327
- undici.setGlobalDispatcher(new undici.Agent({
324236
+ (0, import_undici2.setGlobalDispatcher)(new import_undici2.Agent({
324328
324237
  headersTimeout: defaultHeadersTimeout,
324329
324238
  bodyTimeout: defaultBodyTimeout
324330
324239
  }));
@@ -324337,6 +324246,14 @@ function isLoopbackHost(hostname3) {
324337
324246
  const sanitized = sanitizeHostname(hostname3);
324338
324247
  return sanitized === "localhost" || sanitized === "127.0.0.1" || sanitized === "::1";
324339
324248
  }
324249
+ function isPrivateIp(url3) {
324250
+ try {
324251
+ const hostname3 = new URL5(url3).hostname;
324252
+ return isAddressPrivate(hostname3);
324253
+ } catch {
324254
+ return false;
324255
+ }
324256
+ }
324340
324257
  var IANA_BENCHMARK_RANGE = import_ipaddr.default.parseCIDR("198.18.0.0/15");
324341
324258
  function isBenchmarkAddress(addr2) {
324342
324259
  const [rangeAddr, rangeMask] = IANA_BENCHMARK_RANGE;
@@ -324344,7 +324261,7 @@ function isBenchmarkAddress(addr2) {
324344
324261
  }
324345
324262
  function isAddressPrivate(address) {
324346
324263
  const sanitized = sanitizeHostname(address);
324347
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
324264
+ if (sanitized === "localhost") {
324348
324265
  return true;
324349
324266
  }
324350
324267
  try {
@@ -324364,53 +324281,27 @@ function isAddressPrivate(address) {
324364
324281
  }
324365
324282
  }
324366
324283
  async function isPrivateIpAsync(url3) {
324367
- let parsedUrl;
324368
324284
  try {
324369
- parsedUrl = new URL5(url3);
324370
- } catch (error40) {
324371
- if (error40 instanceof TypeError) {
324285
+ const parsedUrl = new URL5(url3);
324286
+ const hostname3 = parsedUrl.hostname;
324287
+ if (isLoopbackHost(hostname3)) {
324372
324288
  return false;
324373
324289
  }
324374
- throw error40;
324375
- }
324376
- const hostname3 = sanitizeHostname(parsedUrl.hostname);
324377
- if (hostname3 === "localhost" || hostname3.endsWith(".localhost") || hostname3.endsWith(".local") || hostname3.endsWith(".internal")) {
324378
- return true;
324379
- }
324380
- if (net2.isIP(hostname3)) {
324381
- return isAddressPrivate(hostname3);
324382
- }
324383
- try {
324384
324290
  const addresses = await lookup(hostname3, { all: true });
324385
- if (!addresses || addresses.length === 0) {
324386
- return true;
324387
- }
324388
324291
  return addresses.some((addr2) => isAddressPrivate(addr2.address));
324389
324292
  } catch (error40) {
324293
+ if (error40 instanceof TypeError) {
324294
+ return false;
324295
+ }
324390
324296
  throw new Error("Failed to verify if URL resolves to private IP", {
324391
324297
  cause: error40
324392
324298
  });
324393
324299
  }
324394
324300
  }
324395
- async function isPrivateIp(url3) {
324396
- try {
324397
- return await isPrivateIpAsync(url3);
324398
- } catch {
324399
- return true;
324400
- }
324401
- }
324402
- async function validateUrlDestination(url3) {
324403
- try {
324404
- const isPrivate = await isPrivateIp(url3);
324405
- return !isPrivate;
324406
- } catch {
324407
- return false;
324408
- }
324409
- }
324410
324301
  function createSafeProxyAgent(proxyUrl) {
324411
324302
  const trimmedProxy = proxyUrl.trim();
324412
324303
  const noProxy = (process.env["NO_PROXY"] ?? process.env["no_proxy"] ?? "")?.trim();
324413
- return new undici.EnvHttpProxyAgent({
324304
+ return new import_undici2.EnvHttpProxyAgent({
324414
324305
  httpProxy: trimmedProxy,
324415
324306
  httpsProxy: trimmedProxy,
324416
324307
  noProxy,
@@ -324419,9 +324310,6 @@ function createSafeProxyAgent(proxyUrl) {
324419
324310
  });
324420
324311
  }
324421
324312
  async function fetchWithTimeout(url3, timeout, options) {
324422
- if (await isPrivateIp(url3)) {
324423
- throw new PrivateIpError(`Access to blocked or private host ${url3} is not allowed.`);
324424
- }
324425
324313
  const controller = new AbortController();
324426
324314
  const timeoutId = setTimeout(() => controller.abort(), timeout);
324427
324315
  if (options?.signal) {
@@ -324434,14 +324322,10 @@ async function fetchWithTimeout(url3, timeout, options) {
324434
324322
  }
324435
324323
  }
324436
324324
  try {
324437
- const fetchOptions = {
324325
+ const response = await fetch(url3, {
324438
324326
  ...options,
324439
324327
  signal: controller.signal
324440
- };
324441
- if (!fetchOptions.dispatcher) {
324442
- fetchOptions.dispatcher = currentProxy ? createSafeProxyAgent(currentProxy) : defaultSafeAgent;
324443
- }
324444
- const response = await fetch(url3, fetchOptions);
324328
+ });
324445
324329
  return response;
324446
324330
  } catch (error40) {
324447
324331
  if (isAbortError(error40)) {
@@ -324450,14 +324334,6 @@ async function fetchWithTimeout(url3, timeout, options) {
324450
324334
  }
324451
324335
  throw new FetchError(`Request timed out after ${timeout}ms`, "ETIMEDOUT");
324452
324336
  }
324453
- if (error40 instanceof PrivateIpError) {
324454
- throw error40;
324455
- }
324456
- if (error40 && typeof error40 === "object" && "cause" in error40) {
324457
- if (error40.cause instanceof PrivateIpError) {
324458
- throw error40.cause;
324459
- }
324460
- }
324461
324337
  throw new FetchError(getErrorMessage(error40), void 0, { cause: error40 });
324462
324338
  } finally {
324463
324339
  clearTimeout(timeoutId);
@@ -324467,7 +324343,7 @@ function setGlobalProxy(proxy2) {
324467
324343
  const trimmedProxy = proxy2.trim();
324468
324344
  currentProxy = trimmedProxy;
324469
324345
  const noProxy = (process.env["NO_PROXY"] ?? process.env["no_proxy"] ?? "")?.trim();
324470
- undici.setGlobalDispatcher(new undici.EnvHttpProxyAgent({
324346
+ (0, import_undici2.setGlobalDispatcher)(new import_undici2.EnvHttpProxyAgent({
324471
324347
  httpProxy: trimmedProxy,
324472
324348
  httpsProxy: trimmedProxy,
324473
324349
  noProxy,
@@ -329520,21 +329396,21 @@ var WebFetchToolInvocation = class extends BaseToolInvocation {
329520
329396
  });
329521
329397
  logNetworkRetryAttempt(this.context.config, new NetworkRetryAttemptEvent(attempt, maxAttempts, errorType, delayMs, modelName));
329522
329398
  }
329523
- async isBlockedHost(urlStr) {
329399
+ isBlockedHost(urlStr) {
329524
329400
  try {
329525
329401
  const url3 = new URL(urlStr);
329526
329402
  const hostname3 = url3.hostname.toLowerCase();
329527
- if (hostname3 === "localhost" || hostname3 === "127.0.0.1" || hostname3.endsWith(".localhost") || hostname3.endsWith(".local") || hostname3.endsWith(".internal")) {
329403
+ if (hostname3 === "localhost" || hostname3 === "127.0.0.1") {
329528
329404
  return true;
329529
329405
  }
329530
- return await isPrivateIp(urlStr);
329406
+ return isPrivateIp(urlStr);
329531
329407
  } catch {
329532
329408
  return true;
329533
329409
  }
329534
329410
  }
329535
329411
  async executeFallbackForUrl(urlStr, signal) {
329536
329412
  const url3 = convertGithubUrlToRaw(urlStr);
329537
- if (await this.isBlockedHost(url3)) {
329413
+ if (this.isBlockedHost(url3)) {
329538
329414
  debugLogger.warn(`[WebFetchTool] Blocked access to host: ${url3}`);
329539
329415
  throw new Error(`Access to blocked or private host ${url3} is not allowed.`);
329540
329416
  }
@@ -329576,12 +329452,12 @@ var WebFetchToolInvocation = class extends BaseToolInvocation {
329576
329452
  }
329577
329453
  return textContent2;
329578
329454
  }
329579
- async filterAndValidateUrls(urls) {
329455
+ filterAndValidateUrls(urls) {
329580
329456
  const uniqueUrls = [...new Set(urls.map(normalizeUrl))];
329581
329457
  const toFetch = [];
329582
329458
  const skipped = [];
329583
329459
  for (const url3 of uniqueUrls) {
329584
- if (await this.isBlockedHost(url3)) {
329460
+ if (this.isBlockedHost(url3)) {
329585
329461
  debugLogger.warn(`[WebFetchTool] Skipped private or local host: ${url3}`);
329586
329462
  logWebFetchFallbackAttempt(this.context.config, new WebFetchFallbackAttemptEvent("private_ip_skipped"));
329587
329463
  skipped.push(`[Blocked Host] ${url3}`);
@@ -329771,7 +329647,7 @@ ${aggregatedContent}
329771
329647
  };
329772
329648
  }
329773
329649
  url3 = convertGithubUrlToRaw(url3);
329774
- if (await this.isBlockedHost(url3)) {
329650
+ if (this.isBlockedHost(url3)) {
329775
329651
  const errorMessage = `Access to blocked or private host ${url3} is not allowed.`;
329776
329652
  debugLogger.warn(`[WebFetchTool] Blocked experimental fetch to host: ${url3}`);
329777
329653
  return {
@@ -329885,7 +329761,7 @@ Response: ${rawResponseText}`;
329885
329761
  }
329886
329762
  const userPrompt = this.params.prompt;
329887
329763
  const { validUrls } = parsePrompt(userPrompt);
329888
- const { toFetch, skipped } = await this.filterAndValidateUrls(validUrls);
329764
+ const { toFetch, skipped } = this.filterAndValidateUrls(validUrls);
329889
329765
  if (toFetch.length === 0 && skipped.length > 0) {
329890
329766
  const errorMessage = `All requested URLs were skipped: ${skipped.join(", ")}`;
329891
329767
  debugLogger.error(`[WebFetchTool] ${errorMessage}`);
@@ -339160,7 +339036,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
339160
339036
  return provider;
339161
339037
  }
339162
339038
  case "oauth2": {
339163
- const { OAuth2AuthProvider } = await import("./oauth2-provider-QEEGBDTU.js");
339039
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-KT5RTHDD.js");
339164
339040
  const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
339165
339041
  await provider.initialize();
339166
339042
  return provider;
@@ -366349,7 +366225,7 @@ var SSEClientTransport = class {
366349
366225
  };
366350
366226
 
366351
366227
  // packages/core/dist/src/tools/mcp-client.js
366352
- var import_undici2 = __toESM(require_undici(), 1);
366228
+ var import_undici3 = __toESM(require_undici(), 1);
366353
366229
  var import_shell_quote7 = __toESM(require_shell_quote(), 1);
366354
366230
 
366355
366231
  // packages/core/dist/src/mcp/google-auth-provider.js
@@ -368630,7 +368506,7 @@ async function connectToMcpServer(clientVersion, mcpServerName, mcpServerConfig,
368630
368506
  }
368631
368507
  function createUrlTransport(mcpServerName, mcpServerConfig, transportOptions) {
368632
368508
  const noProxy = process.env["NO_PROXY"] || process.env["no_proxy"];
368633
- const agent = new import_undici2.EnvHttpProxyAgent({ noProxy });
368509
+ const agent = new import_undici3.EnvHttpProxyAgent({ noProxy });
368634
368510
  const baseFetch = transportOptions.fetch ?? globalThis.fetch;
368635
368511
  const httpOptions = {
368636
368512
  ...transportOptions,
@@ -376807,7 +376683,7 @@ function v43(options, buf, offset) {
376807
376683
  var v4_default3 = v43;
376808
376684
 
376809
376685
  // packages/core/dist/src/agents/a2a-client-manager.js
376810
- var import_undici3 = __toESM(require_undici(), 1);
376686
+ var import_undici4 = __toESM(require_undici(), 1);
376811
376687
  var A2A_TIMEOUT = 18e5;
376812
376688
  var A2AClientManager = class {
376813
376689
  config;
@@ -376824,12 +376700,12 @@ var A2AClientManager = class {
376824
376700
  bodyTimeout: A2A_TIMEOUT
376825
376701
  };
376826
376702
  if (proxyUrl) {
376827
- this.a2aDispatcher = new import_undici3.ProxyAgent({
376703
+ this.a2aDispatcher = new import_undici4.ProxyAgent({
376828
376704
  uri: proxyUrl,
376829
376705
  ...agentOptions
376830
376706
  });
376831
376707
  } else {
376832
- this.a2aDispatcher = new import_undici3.Agent(agentOptions);
376708
+ this.a2aDispatcher = new import_undici4.Agent(agentOptions);
376833
376709
  }
376834
376710
  this.a2aFetch = (input, init2) => fetch(input, { ...init2, dispatcher: this.a2aDispatcher });
376835
376711
  }
@@ -397011,16 +396887,12 @@ export {
397011
396887
  ShellTool,
397012
396888
  FetchError,
397013
396889
  PrivateIpError,
397014
- safeLookup,
397015
- createSafeConnector,
397016
- createSafeAgent,
397017
396890
  updateGlobalFetchTimeouts,
397018
396891
  sanitizeHostname,
397019
396892
  isLoopbackHost,
396893
+ isPrivateIp,
397020
396894
  isAddressPrivate,
397021
396895
  isPrivateIpAsync,
397022
- isPrivateIp,
397023
- validateUrlDestination,
397024
396896
  createSafeProxyAgent,
397025
396897
  fetchWithTimeout,
397026
396898
  setGlobalProxy,