@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,
@@ -282909,8 +282909,8 @@ function isValidToolName(name3, options = {}) {
282909
282909
  }
282910
282910
 
282911
282911
  // packages/core/src/generated/git-commit.ts
282912
- var GIT_COMMIT_INFO = "4963a4456";
282913
- var CLI_VERSION = "0.59.0-nightly.20260825.g812f7a2bc";
282912
+ var GIT_COMMIT_INFO = "45e486b03";
282913
+ var CLI_VERSION = "0.59.0";
282914
282914
 
282915
282915
  // packages/core/src/ide/detect-ide.ts
282916
282916
  var IDE_DEFINITIONS = {
@@ -306530,7 +306530,7 @@ function getVersion() {
306530
306530
  }
306531
306531
  versionPromise = (async () => {
306532
306532
  const pkgJson = await getPackageJson(__dirname4);
306533
- return "0.59.0-nightly.20260825.g812f7a2bc";
306533
+ return "0.59.0";
306534
306534
  })();
306535
306535
  return versionPromise;
306536
306536
  }
@@ -326310,10 +326310,9 @@ var ShellTool = class _ShellTool extends BaseDeclarativeTool {
326310
326310
  };
326311
326311
 
326312
326312
  // packages/core/src/utils/fetch.ts
326313
- var undici = __toESM(require_undici(), 1);
326313
+ var import_undici2 = __toESM(require_undici(), 1);
326314
326314
  var import_ipaddr = __toESM(require_ipaddr(), 1);
326315
326315
  import { URL as URL5 } from "node:url";
326316
- import * as net2 from "node:net";
326317
326316
  import { lookup } from "node:dns/promises";
326318
326317
  var FetchError = class extends Error {
326319
326318
  constructor(message, code, options) {
@@ -326331,113 +326330,8 @@ var PrivateIpError = class extends Error {
326331
326330
  var defaultHeadersTimeout = 6e4;
326332
326331
  var defaultBodyTimeout = 3e5;
326333
326332
  var currentProxy = void 0;
326334
- function getBuildConnector() {
326335
- try {
326336
- const fn = undici.buildConnector;
326337
- return typeof fn === "function" ? fn : void 0;
326338
- } catch {
326339
- return void 0;
326340
- }
326341
- }
326342
- function safeLookup(hostname3, options, callback) {
326343
- const sanitized = sanitizeHostname(hostname3);
326344
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
326345
- callback(
326346
- new PrivateIpError(`Access to internal host ${sanitized} is blocked`),
326347
- ""
326348
- );
326349
- return;
326350
- }
326351
- if (net2.isIP(sanitized)) {
326352
- if (isAddressPrivate(sanitized)) {
326353
- callback(
326354
- new PrivateIpError(`Access to private IP ${sanitized} is blocked`),
326355
- ""
326356
- );
326357
- return;
326358
- }
326359
- if (options?.all) {
326360
- callback(null, [{ address: sanitized, family: net2.isIP(sanitized) }]);
326361
- } else {
326362
- callback(null, sanitized, net2.isIP(sanitized));
326363
- }
326364
- return;
326365
- }
326366
- lookup(sanitized, { all: true }).then((addresses) => {
326367
- if (!addresses || addresses.length === 0) {
326368
- callback(new Error(`getaddrinfo ENOTFOUND ${sanitized}`), "");
326369
- return;
326370
- }
326371
- for (const addr2 of addresses) {
326372
- if (isAddressPrivate(addr2.address)) {
326373
- callback(
326374
- new PrivateIpError(
326375
- `Access to private IP ${addr2.address} (resolved from ${sanitized}) is blocked`
326376
- ),
326377
- ""
326378
- );
326379
- return;
326380
- }
326381
- }
326382
- if (options?.all) {
326383
- callback(null, addresses);
326384
- } else {
326385
- const family = options?.family;
326386
- const match2 = family ? addresses.find((a2) => a2.family === family) || addresses[0] : addresses[0];
326387
- callback(null, match2.address, match2.family);
326388
- }
326389
- }).catch((err2) => {
326390
- callback(err2 instanceof Error ? err2 : new Error(String(err2)), "");
326391
- });
326392
- }
326393
- function createSafeConnector(connectorOpts, customDefaultConnector) {
326394
- const buildConnectorFn = getBuildConnector();
326395
- const safeConnectorOpts = {
326396
- ...connectorOpts,
326397
- lookup: safeLookup
326398
- };
326399
- const defaultConnector = customDefaultConnector ?? (buildConnectorFn ? buildConnectorFn(safeConnectorOpts) : void 0);
326400
- return function safeConnect(opts, callback) {
326401
- if (!defaultConnector) {
326402
- callback(new Error("Connector is unavailable"), null);
326403
- return;
326404
- }
326405
- const rawHostname = opts.hostname;
326406
- const sanitized = sanitizeHostname(rawHostname);
326407
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
326408
- callback(
326409
- new PrivateIpError(`Access to internal host ${sanitized} is blocked`),
326410
- null
326411
- );
326412
- return;
326413
- }
326414
- if (net2.isIP(sanitized) && isAddressPrivate(sanitized)) {
326415
- callback(
326416
- new PrivateIpError(`Access to private IP ${sanitized} is blocked`),
326417
- null
326418
- );
326419
- return;
326420
- }
326421
- defaultConnector(opts, callback);
326422
- };
326423
- }
326424
- function createSafeAgent(options) {
326425
- const buildConnectorFn = getBuildConnector();
326426
- if (!buildConnectorFn) {
326427
- throw new Error(
326428
- "Security initialization failed: undici.buildConnector is not available."
326429
- );
326430
- }
326431
- const connect = createSafeConnector();
326432
- return new undici.Agent({
326433
- headersTimeout: options?.headersTimeout ?? defaultHeadersTimeout,
326434
- bodyTimeout: options?.bodyTimeout ?? defaultBodyTimeout,
326435
- connect
326436
- });
326437
- }
326438
- var defaultSafeAgent = createSafeAgent();
326439
- undici.setGlobalDispatcher(
326440
- new undici.Agent({
326333
+ (0, import_undici2.setGlobalDispatcher)(
326334
+ new import_undici2.Agent({
326441
326335
  headersTimeout: defaultHeadersTimeout,
326442
326336
  bodyTimeout: defaultBodyTimeout
326443
326337
  })
@@ -326449,15 +326343,11 @@ function updateGlobalFetchTimeouts(timeoutMs) {
326449
326343
  );
326450
326344
  }
326451
326345
  defaultHeadersTimeout = timeoutMs;
326452
- defaultSafeAgent = createSafeAgent({
326453
- headersTimeout: defaultHeadersTimeout,
326454
- bodyTimeout: defaultBodyTimeout
326455
- });
326456
326346
  if (currentProxy) {
326457
326347
  setGlobalProxy(currentProxy);
326458
326348
  } else {
326459
- undici.setGlobalDispatcher(
326460
- new undici.Agent({
326349
+ (0, import_undici2.setGlobalDispatcher)(
326350
+ new import_undici2.Agent({
326461
326351
  headersTimeout: defaultHeadersTimeout,
326462
326352
  bodyTimeout: defaultBodyTimeout
326463
326353
  })
@@ -326471,6 +326361,14 @@ function isLoopbackHost(hostname3) {
326471
326361
  const sanitized = sanitizeHostname(hostname3);
326472
326362
  return sanitized === "localhost" || sanitized === "127.0.0.1" || sanitized === "::1";
326473
326363
  }
326364
+ function isPrivateIp(url3) {
326365
+ try {
326366
+ const hostname3 = new URL5(url3).hostname;
326367
+ return isAddressPrivate(hostname3);
326368
+ } catch {
326369
+ return false;
326370
+ }
326371
+ }
326474
326372
  var IANA_BENCHMARK_RANGE = import_ipaddr.default.parseCIDR("198.18.0.0/15");
326475
326373
  function isBenchmarkAddress(addr2) {
326476
326374
  const [rangeAddr, rangeMask] = IANA_BENCHMARK_RANGE;
@@ -326478,7 +326376,7 @@ function isBenchmarkAddress(addr2) {
326478
326376
  }
326479
326377
  function isAddressPrivate(address) {
326480
326378
  const sanitized = sanitizeHostname(address);
326481
- if (sanitized === "localhost" || sanitized.endsWith(".localhost") || sanitized.endsWith(".local") || sanitized.endsWith(".internal")) {
326379
+ if (sanitized === "localhost") {
326482
326380
  return true;
326483
326381
  }
326484
326382
  try {
@@ -326498,53 +326396,27 @@ function isAddressPrivate(address) {
326498
326396
  }
326499
326397
  }
326500
326398
  async function isPrivateIpAsync(url3) {
326501
- let parsedUrl;
326502
326399
  try {
326503
- parsedUrl = new URL5(url3);
326504
- } catch (error40) {
326505
- if (error40 instanceof TypeError) {
326400
+ const parsedUrl = new URL5(url3);
326401
+ const hostname3 = parsedUrl.hostname;
326402
+ if (isLoopbackHost(hostname3)) {
326506
326403
  return false;
326507
326404
  }
326508
- throw error40;
326509
- }
326510
- const hostname3 = sanitizeHostname(parsedUrl.hostname);
326511
- if (hostname3 === "localhost" || hostname3.endsWith(".localhost") || hostname3.endsWith(".local") || hostname3.endsWith(".internal")) {
326512
- return true;
326513
- }
326514
- if (net2.isIP(hostname3)) {
326515
- return isAddressPrivate(hostname3);
326516
- }
326517
- try {
326518
326405
  const addresses = await lookup(hostname3, { all: true });
326519
- if (!addresses || addresses.length === 0) {
326520
- return true;
326521
- }
326522
326406
  return addresses.some((addr2) => isAddressPrivate(addr2.address));
326523
326407
  } catch (error40) {
326408
+ if (error40 instanceof TypeError) {
326409
+ return false;
326410
+ }
326524
326411
  throw new Error("Failed to verify if URL resolves to private IP", {
326525
326412
  cause: error40
326526
326413
  });
326527
326414
  }
326528
326415
  }
326529
- async function isPrivateIp(url3) {
326530
- try {
326531
- return await isPrivateIpAsync(url3);
326532
- } catch {
326533
- return true;
326534
- }
326535
- }
326536
- async function validateUrlDestination(url3) {
326537
- try {
326538
- const isPrivate = await isPrivateIp(url3);
326539
- return !isPrivate;
326540
- } catch {
326541
- return false;
326542
- }
326543
- }
326544
326416
  function createSafeProxyAgent(proxyUrl) {
326545
326417
  const trimmedProxy = proxyUrl.trim();
326546
326418
  const noProxy = (process.env["NO_PROXY"] ?? process.env["no_proxy"] ?? "")?.trim();
326547
- return new undici.EnvHttpProxyAgent({
326419
+ return new import_undici2.EnvHttpProxyAgent({
326548
326420
  httpProxy: trimmedProxy,
326549
326421
  httpsProxy: trimmedProxy,
326550
326422
  noProxy,
@@ -326553,11 +326425,6 @@ function createSafeProxyAgent(proxyUrl) {
326553
326425
  });
326554
326426
  }
326555
326427
  async function fetchWithTimeout(url3, timeout, options) {
326556
- if (await isPrivateIp(url3)) {
326557
- throw new PrivateIpError(
326558
- `Access to blocked or private host ${url3} is not allowed.`
326559
- );
326560
- }
326561
326428
  const controller = new AbortController();
326562
326429
  const timeoutId = setTimeout(() => controller.abort(), timeout);
326563
326430
  if (options?.signal) {
@@ -326570,14 +326437,10 @@ async function fetchWithTimeout(url3, timeout, options) {
326570
326437
  }
326571
326438
  }
326572
326439
  try {
326573
- const fetchOptions = {
326440
+ const response = await fetch(url3, {
326574
326441
  ...options,
326575
326442
  signal: controller.signal
326576
- };
326577
- if (!fetchOptions.dispatcher) {
326578
- fetchOptions.dispatcher = currentProxy ? createSafeProxyAgent(currentProxy) : defaultSafeAgent;
326579
- }
326580
- const response = await fetch(url3, fetchOptions);
326443
+ });
326581
326444
  return response;
326582
326445
  } catch (error40) {
326583
326446
  if (isAbortError(error40)) {
@@ -326586,14 +326449,6 @@ async function fetchWithTimeout(url3, timeout, options) {
326586
326449
  }
326587
326450
  throw new FetchError(`Request timed out after ${timeout}ms`, "ETIMEDOUT");
326588
326451
  }
326589
- if (error40 instanceof PrivateIpError) {
326590
- throw error40;
326591
- }
326592
- if (error40 && typeof error40 === "object" && "cause" in error40) {
326593
- if (error40.cause instanceof PrivateIpError) {
326594
- throw error40.cause;
326595
- }
326596
- }
326597
326452
  throw new FetchError(getErrorMessage(error40), void 0, { cause: error40 });
326598
326453
  } finally {
326599
326454
  clearTimeout(timeoutId);
@@ -326603,8 +326458,8 @@ function setGlobalProxy(proxy2) {
326603
326458
  const trimmedProxy = proxy2.trim();
326604
326459
  currentProxy = trimmedProxy;
326605
326460
  const noProxy = (process.env["NO_PROXY"] ?? process.env["no_proxy"] ?? "")?.trim();
326606
- undici.setGlobalDispatcher(
326607
- new undici.EnvHttpProxyAgent({
326461
+ (0, import_undici2.setGlobalDispatcher)(
326462
+ new import_undici2.EnvHttpProxyAgent({
326608
326463
  httpProxy: trimmedProxy,
326609
326464
  httpsProxy: trimmedProxy,
326610
326465
  noProxy,
@@ -331676,21 +331531,21 @@ var WebFetchToolInvocation = class extends BaseToolInvocation {
331676
331531
  )
331677
331532
  );
331678
331533
  }
331679
- async isBlockedHost(urlStr) {
331534
+ isBlockedHost(urlStr) {
331680
331535
  try {
331681
331536
  const url3 = new URL(urlStr);
331682
331537
  const hostname3 = url3.hostname.toLowerCase();
331683
- if (hostname3 === "localhost" || hostname3 === "127.0.0.1" || hostname3.endsWith(".localhost") || hostname3.endsWith(".local") || hostname3.endsWith(".internal")) {
331538
+ if (hostname3 === "localhost" || hostname3 === "127.0.0.1") {
331684
331539
  return true;
331685
331540
  }
331686
- return await isPrivateIp(urlStr);
331541
+ return isPrivateIp(urlStr);
331687
331542
  } catch {
331688
331543
  return true;
331689
331544
  }
331690
331545
  }
331691
331546
  async executeFallbackForUrl(urlStr, signal) {
331692
331547
  const url3 = convertGithubUrlToRaw(urlStr);
331693
- if (await this.isBlockedHost(url3)) {
331548
+ if (this.isBlockedHost(url3)) {
331694
331549
  debugLogger.warn(`[WebFetchTool] Blocked access to host: ${url3}`);
331695
331550
  throw new Error(
331696
331551
  `Access to blocked or private host ${url3} is not allowed.`
@@ -331746,12 +331601,12 @@ var WebFetchToolInvocation = class extends BaseToolInvocation {
331746
331601
  }
331747
331602
  return textContent2;
331748
331603
  }
331749
- async filterAndValidateUrls(urls) {
331604
+ filterAndValidateUrls(urls) {
331750
331605
  const uniqueUrls = [...new Set(urls.map(normalizeUrl))];
331751
331606
  const toFetch = [];
331752
331607
  const skipped = [];
331753
331608
  for (const url3 of uniqueUrls) {
331754
- if (await this.isBlockedHost(url3)) {
331609
+ if (this.isBlockedHost(url3)) {
331755
331610
  debugLogger.warn(
331756
331611
  `[WebFetchTool] Skipped private or local host: ${url3}`
331757
331612
  );
@@ -331967,7 +331822,7 @@ ${aggregatedContent}
331967
331822
  };
331968
331823
  }
331969
331824
  url3 = convertGithubUrlToRaw(url3);
331970
- if (await this.isBlockedHost(url3)) {
331825
+ if (this.isBlockedHost(url3)) {
331971
331826
  const errorMessage = `Access to blocked or private host ${url3} is not allowed.`;
331972
331827
  debugLogger.warn(
331973
331828
  `[WebFetchTool] Blocked experimental fetch to host: ${url3}`
@@ -332101,7 +331956,7 @@ Response: ${rawResponseText}`;
332101
331956
  }
332102
331957
  const userPrompt = this.params.prompt;
332103
331958
  const { validUrls } = parsePrompt(userPrompt);
332104
- const { toFetch, skipped } = await this.filterAndValidateUrls(validUrls);
331959
+ const { toFetch, skipped } = this.filterAndValidateUrls(validUrls);
332105
331960
  if (toFetch.length === 0 && skipped.length > 0) {
332106
331961
  const errorMessage = `All requested URLs were skipped: ${skipped.join(", ")}`;
332107
331962
  debugLogger.error(`[WebFetchTool] ${errorMessage}`);
@@ -341933,7 +341788,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
341933
341788
  return provider;
341934
341789
  }
341935
341790
  case "oauth2": {
341936
- const { OAuth2AuthProvider } = await import("./oauth2-provider-JRSE3A7L.js");
341791
+ const { OAuth2AuthProvider } = await import("./oauth2-provider-JV5L5XL4.js");
341937
341792
  const provider = new OAuth2AuthProvider(
341938
341793
  authConfig,
341939
341794
  options.agentName ?? "unknown",
@@ -371642,7 +371497,7 @@ var SSEClientTransport = class {
371642
371497
  };
371643
371498
 
371644
371499
  // packages/core/src/tools/mcp-client.ts
371645
- var import_undici2 = __toESM(require_undici(), 1);
371500
+ var import_undici3 = __toESM(require_undici(), 1);
371646
371501
  var import_shell_quote7 = __toESM(require_shell_quote(), 1);
371647
371502
 
371648
371503
  // packages/core/src/mcp/google-auth-provider.ts
@@ -374425,7 +374280,7 @@ async function connectToMcpServer(clientVersion, mcpServerName, mcpServerConfig,
374425
374280
  }
374426
374281
  function createUrlTransport(mcpServerName, mcpServerConfig, transportOptions) {
374427
374282
  const noProxy = process.env["NO_PROXY"] || process.env["no_proxy"];
374428
- const agent = new import_undici2.EnvHttpProxyAgent({ noProxy });
374283
+ const agent = new import_undici3.EnvHttpProxyAgent({ noProxy });
374429
374284
  const baseFetch = transportOptions.fetch ?? globalThis.fetch;
374430
374285
  const httpOptions = {
374431
374286
  ...transportOptions,
@@ -382717,7 +382572,7 @@ function v43(options, buf, offset) {
382717
382572
  var v4_default3 = v43;
382718
382573
 
382719
382574
  // packages/core/src/agents/a2a-client-manager.ts
382720
- var import_undici3 = __toESM(require_undici(), 1);
382575
+ var import_undici4 = __toESM(require_undici(), 1);
382721
382576
  var A2A_TIMEOUT = 18e5;
382722
382577
  var A2AClientManager = class {
382723
382578
  constructor(config2) {
@@ -382728,12 +382583,12 @@ var A2AClientManager = class {
382728
382583
  bodyTimeout: A2A_TIMEOUT
382729
382584
  };
382730
382585
  if (proxyUrl) {
382731
- this.a2aDispatcher = new import_undici3.ProxyAgent({
382586
+ this.a2aDispatcher = new import_undici4.ProxyAgent({
382732
382587
  uri: proxyUrl,
382733
382588
  ...agentOptions
382734
382589
  });
382735
382590
  } else {
382736
- this.a2aDispatcher = new import_undici3.Agent(agentOptions);
382591
+ this.a2aDispatcher = new import_undici4.Agent(agentOptions);
382737
382592
  }
382738
382593
  this.a2aFetch = (input, init2) => fetch(input, { ...init2, dispatcher: this.a2aDispatcher });
382739
382594
  }
@@ -403768,16 +403623,12 @@ export {
403768
403623
  ShellTool,
403769
403624
  FetchError,
403770
403625
  PrivateIpError,
403771
- safeLookup,
403772
- createSafeConnector,
403773
- createSafeAgent,
403774
403626
  updateGlobalFetchTimeouts,
403775
403627
  sanitizeHostname,
403776
403628
  isLoopbackHost,
403629
+ isPrivateIp,
403777
403630
  isAddressPrivate,
403778
403631
  isPrivateIpAsync,
403779
- isPrivateIp,
403780
- validateUrlDestination,
403781
403632
  createSafeProxyAgent,
403782
403633
  fetchWithTimeout,
403783
403634
  setGlobalProxy,