@letta-ai/letta-agent-sdk 0.8.76 → 0.8.78

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
@@ -13576,6 +13576,7 @@ class RemoteTurnCoordinator {
13576
13576
  active.observedTurnEvidence = true;
13577
13577
  if (runId)
13578
13578
  active.runIds.add(runId);
13579
+ this.armTurnTimeout(active);
13579
13580
  }
13580
13581
  const sdkMessage = this.transformStreamDelta(delta);
13581
13582
  if (sdkMessage)
@@ -13641,12 +13642,17 @@ class RemoteTurnCoordinator {
13641
13642
  this.activeTurn = turn;
13642
13643
  turn.startedAt = Date.now();
13643
13644
  this._activeTurnStartedAt = turn.startedAt;
13644
- if (this.requestTimeoutMs !== undefined) {
13645
- turn.timeout = setTimeout(() => {
13646
- this.failTurn(turn, `Timed out waiting for ${this.label} turn`);
13647
- }, this.requestTimeoutMs);
13648
- turn.timeout.unref?.();
13649
- }
13645
+ this.armTurnTimeout(turn);
13646
+ }
13647
+ armTurnTimeout(turn) {
13648
+ if (this.requestTimeoutMs === undefined)
13649
+ return;
13650
+ if (turn.timeout)
13651
+ clearTimeout(turn.timeout);
13652
+ turn.timeout = setTimeout(() => {
13653
+ this.failTurn(turn, `Timed out waiting for ${this.label} turn`);
13654
+ }, this.requestTimeoutMs);
13655
+ turn.timeout.unref?.();
13650
13656
  }
13651
13657
  activateNextTurnFromProtocol() {
13652
13658
  if (this.activeTurn)
@@ -35393,7 +35399,7 @@ class StreamableHTTPClientTransport {
35393
35399
  }
35394
35400
  var DEFAULT_CLIENT_INFO = {
35395
35401
  name: "letta-code",
35396
- version: "0.34.47"
35402
+ version: "0.34.49"
35397
35403
  };
35398
35404
  async function connectMcpServer(config2, options = {}) {
35399
35405
  let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
@@ -36421,4 +36427,4 @@ export {
36421
36427
  CloudManagedSandboxExpiredError
36422
36428
  };
36423
36429
 
36424
- //# debugId=EA2558BFA6A3B64964756E2164756E21
36430
+ //# debugId=4CD40C08118B97D164756E2164756E21