@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/client-entry.js +13 -7
- package/dist/client-entry.js.map +3 -3
- package/dist/index.js +14 -8
- package/dist/index.js.map +4 -4
- package/dist/remote-turn-coordinator.d.ts +2 -0
- package/dist/remote-turn-coordinator.d.ts.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/remote-turn-coordinator.ts +14 -6
- package/src/types.ts +3 -3
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
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
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.
|
|
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=
|
|
36430
|
+
//# debugId=4CD40C08118B97D164756E2164756E21
|