@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/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 request/turn correlation. */
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 request/turn correlation. */
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 request/turn correlation. */
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 =