@letta-ai/letta-agent-sdk 0.8.77 → 0.8.79
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-base.d.ts +14 -2
- package/dist/client-base.d.ts.map +1 -1
- package/dist/client-entry.d.ts.map +1 -1
- package/dist/client-entry.js +77 -29
- package/dist/client-entry.js.map +6 -6
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/cloud-session.d.ts +8 -1
- package/dist/cloud-session.d.ts.map +1 -1
- package/dist/index.js +103 -33
- package/dist/index.js.map +8 -8
- package/dist/local-app-server.d.ts +3 -1
- package/dist/local-app-server.d.ts.map +1 -1
- package/dist/remote-turn-coordinator.d.ts +2 -0
- package/dist/remote-turn-coordinator.d.ts.map +1 -1
- package/dist/types.d.ts +12 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/client-base.ts +90 -45
- package/src/client-entry.ts +5 -0
- package/src/client.ts +45 -4
- package/src/cloud-session.ts +20 -0
- package/src/local-app-server.ts +9 -1
- package/src/remote-turn-coordinator.ts +14 -6
- package/src/types.ts +10 -3
package/src/types.ts
CHANGED
|
@@ -373,7 +373,7 @@ export interface LettaCodeLocalAppServerOptions {
|
|
|
373
373
|
harnessBackend?: "api" | "local";
|
|
374
374
|
/** Optional WebSocket constructor for tests/non-standard runtimes. */
|
|
375
375
|
WebSocket?: LettaCodeSocketConstructor;
|
|
376
|
-
/** Timeout for websocket protocol
|
|
376
|
+
/** Timeout for websocket protocol requests; for a turn, how long it may go without stream activity. */
|
|
377
377
|
requestTimeoutMs?: number;
|
|
378
378
|
/** Whether agents created through this app-server are added to Letta Code's global pinned-agent list. */
|
|
379
379
|
pinGlobalAgent?: boolean;
|
|
@@ -397,7 +397,7 @@ export interface LettaCodeRemoteClientOptions {
|
|
|
397
397
|
authToken?: string;
|
|
398
398
|
/** Optional WebSocket constructor for non-browser runtimes and tests. */
|
|
399
399
|
WebSocket?: LettaCodeSocketConstructor;
|
|
400
|
-
/** Timeout for websocket protocol
|
|
400
|
+
/** Timeout for websocket protocol requests; for a turn, how long it may go without stream activity. */
|
|
401
401
|
requestTimeoutMs?: number;
|
|
402
402
|
/** Whether agents created through this app-server are added to Letta Code's global pinned-agent list. */
|
|
403
403
|
pinGlobalAgent?: boolean;
|
|
@@ -415,7 +415,7 @@ export interface LettaCodeCloudClientOptions {
|
|
|
415
415
|
fetch?: typeof fetch;
|
|
416
416
|
/** Optional WebSocket constructor for non-browser runtimes and tests. */
|
|
417
417
|
WebSocket?: LettaCodeSocketConstructor;
|
|
418
|
-
/** Timeout for websocket protocol
|
|
418
|
+
/** Timeout for websocket protocol requests; for a turn, how long it may go without stream activity. */
|
|
419
419
|
requestTimeoutMs?: number;
|
|
420
420
|
/**
|
|
421
421
|
* WebSocket authentication style. Defaults to Authorization headers; set to
|
|
@@ -433,6 +433,13 @@ export interface LettaCodeCloudClientOptions {
|
|
|
433
433
|
environment?: LettaCodeEnvironment;
|
|
434
434
|
/** Options for SDK-managed sandboxes when no computer is selected. */
|
|
435
435
|
sandbox?: LettaCodeCloudSandboxOptions;
|
|
436
|
+
/**
|
|
437
|
+
* Register this machine as a computer with this name and run the client's
|
|
438
|
+
* sessions on it. The SDK starts a Letta Code app-server here, so tools from
|
|
439
|
+
* `client.registerTools()` run in this process, including on turns Letta
|
|
440
|
+
* Cloud delivers to this computer. Node.js only; excludes `computer`/`sandbox`.
|
|
441
|
+
*/
|
|
442
|
+
registerComputer?: { name: string };
|
|
436
443
|
}
|
|
437
444
|
|
|
438
445
|
export type LettaCodeClientOptions =
|