@letta-ai/letta-agent-sdk 0.8.24 → 0.8.25

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/index.js CHANGED
@@ -34698,7 +34698,7 @@ class StreamableHTTPClientTransport {
34698
34698
  }
34699
34699
  var DEFAULT_CLIENT_INFO = {
34700
34700
  name: "letta-code",
34701
- version: "0.33.7"
34701
+ version: "0.33.8"
34702
34702
  };
34703
34703
  async function connectMcpServer(config2, options = {}) {
34704
34704
  let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
@@ -34787,7 +34787,7 @@ function createTransport(config2, options) {
34787
34787
  return new StreamableHTTPClientTransport(new URL(config2.url), {
34788
34788
  requestInit: headersRequestInit(headers),
34789
34789
  authProvider: options.oauth?.authProvider,
34790
- fetch: abortAwareFetch(options.signal)
34790
+ fetch: abortAwareFetch(options.signal, undefined, options.fetch)
34791
34791
  });
34792
34792
  }
34793
34793
  if (config2.transport === "sse") {
@@ -34796,7 +34796,7 @@ function createTransport(config2, options) {
34796
34796
  return new SSEClientTransport(new URL(config2.url), {
34797
34797
  requestInit,
34798
34798
  authProvider: options.oauth?.authProvider,
34799
- fetch: abortAwareFetch(options.signal, headers)
34799
+ fetch: abortAwareFetch(options.signal, headers, options.fetch)
34800
34800
  });
34801
34801
  }
34802
34802
  return new StdioClientTransport({
@@ -34807,13 +34807,14 @@ function createTransport(config2, options) {
34807
34807
  stderr: options.stderr ?? "inherit"
34808
34808
  });
34809
34809
  }
34810
- function abortAwareFetch(operationSignal, headers) {
34810
+ function abortAwareFetch(operationSignal, headers, fetchFn) {
34811
34811
  if (!operationSignal && !headers)
34812
- return;
34812
+ return fetchFn;
34813
+ const request = fetchFn ?? fetch;
34813
34814
  return (url2, init) => {
34814
34815
  const requestInit = headers ? mergeHeaders(init, headers) : { ...init };
34815
34816
  const requestSignal = requestInit.signal ?? undefined;
34816
- return fetch(url2, {
34817
+ return request(url2, {
34817
34818
  ...requestInit,
34818
34819
  signal: operationSignal && requestSignal ? AbortSignal.any([operationSignal, requestSignal]) : operationSignal ?? requestSignal
34819
34820
  });
@@ -35680,4 +35681,4 @@ export {
35680
35681
  CloudManagedSandboxExpiredError
35681
35682
  };
35682
35683
 
35683
- //# debugId=84FE29BEADD1679064756E2164756E21
35684
+ //# debugId=3C8B7D4D478DD10F64756E2164756E21