@letta-ai/letta-agent-sdk 0.3.1 → 0.3.3
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/AGENTS.md +47 -0
- package/README.md +17 -0
- package/dist/app-server-management.d.ts +58 -0
- package/dist/app-server-management.d.ts.map +1 -1
- package/dist/app-server-session.d.ts +5 -0
- package/dist/app-server-session.d.ts.map +1 -1
- package/dist/client-base.d.ts +7 -0
- package/dist/client-base.d.ts.map +1 -1
- package/dist/client-entry.js +1123 -776
- package/dist/client-entry.js.map +13 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/cloud-sandbox.d.ts +33 -0
- package/dist/cloud-sandbox.d.ts.map +1 -0
- package/dist/cloud-session.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1176 -791
- package/dist/index.js.map +17 -13
- package/dist/local-app-server-session.d.ts +1 -1
- package/dist/local-app-server-session.d.ts.map +1 -1
- package/dist/management.d.ts +7 -0
- package/dist/management.d.ts.map +1 -1
- package/dist/remote-client-session-core.d.ts +24 -93
- package/dist/remote-client-session-core.d.ts.map +1 -1
- package/dist/remote-session-protocol.d.ts +130 -0
- package/dist/remote-session-protocol.d.ts.map +1 -0
- package/dist/remote-turn-coordinator.d.ts +49 -0
- package/dist/remote-turn-coordinator.d.ts.map +1 -0
- package/dist/request-ids.d.ts +24 -0
- package/dist/request-ids.d.ts.map +1 -0
- package/dist/session.d.ts +10 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/types.d.ts +6 -20
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/app-server-management.ts +641 -0
- package/src/app-server-session.ts +948 -0
- package/src/cli-resolver.ts +46 -0
- package/src/client-base.ts +482 -0
- package/src/client-entry.ts +31 -0
- package/src/client.ts +138 -0
- package/src/cloud-management.ts +360 -0
- package/src/cloud-sandbox.ts +117 -0
- package/src/cloud-session.ts +1313 -0
- package/src/index.ts +440 -0
- package/src/interactiveToolPolicy.ts +62 -0
- package/src/local-app-server-session.ts +39 -0
- package/src/local-app-server.ts +137 -0
- package/src/management-types.ts +133 -0
- package/src/management.ts +206 -0
- package/src/protocol.ts +249 -0
- package/src/remote-client-session-core.ts +786 -0
- package/src/remote-session-protocol.ts +660 -0
- package/src/remote-turn-coordinator.ts +505 -0
- package/src/remote.ts +177 -0
- package/src/repositories.ts +340 -0
- package/src/request-ids.ts +33 -0
- package/src/session.ts +1638 -0
- package/src/stream-events.ts +88 -0
- package/src/tool-helpers.ts +147 -0
- package/src/transport.ts +484 -0
- package/src/types.ts +1328 -0
- package/src/validation.ts +223 -0
- package/src/websocket.ts +22 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Letta Agent SDK contributor map
|
|
2
|
+
|
|
3
|
+
## Canonical source
|
|
4
|
+
|
|
5
|
+
Work in `src/`. `dist/` is generated by `bun run build`, ignored by Git, and
|
|
6
|
+
published as a bundle. A repeated class or method in `dist/index.js` or
|
|
7
|
+
`dist/client-entry.js` can represent separate source-layer responsibilities
|
|
8
|
+
that Bun placed in one file; trace it back to `src/` before changing it.
|
|
9
|
+
|
|
10
|
+
## Session architecture
|
|
11
|
+
|
|
12
|
+
- `client-base.ts` selects the backend and constructs a session.
|
|
13
|
+
- Remote, Cloud, and the default local app-server path share
|
|
14
|
+
`remote-client-session-core.ts`.
|
|
15
|
+
- `remote-session-protocol.ts` owns portable protocol types, validation, and
|
|
16
|
+
wire-to-domain normalization.
|
|
17
|
+
- `remote-turn-coordinator.ts` owns active/queued turn correlation and the
|
|
18
|
+
`SDKMessage` stream queue.
|
|
19
|
+
- `app-server-session.ts` adapts an app-server connection to the runtime
|
|
20
|
+
controller used by the portable session core.
|
|
21
|
+
- `cloud-session.ts` resolves Cloud runtimes and managed sandboxes, then uses
|
|
22
|
+
the same runtime controller and portable session core.
|
|
23
|
+
- `session.ts` is the separate legacy stdio implementation used only when
|
|
24
|
+
`transport: "stdio"` is selected and by the historical agent-less
|
|
25
|
+
`createSession()` helper.
|
|
26
|
+
- `types.ts` defines the stable public SDK surface. Internal protocol types
|
|
27
|
+
belong beside their implementation rather than in the public type barrel.
|
|
28
|
+
|
|
29
|
+
For `session.listMessages()` on an app-server or Cloud session, the call path
|
|
30
|
+
is:
|
|
31
|
+
|
|
32
|
+
`RemoteClientSessionCore.listMessages` →
|
|
33
|
+
`RemoteClientRuntimeController.listMessages` →
|
|
34
|
+
the selected transport adapter.
|
|
35
|
+
|
|
36
|
+
Those methods operate at different layers and should not be combined merely
|
|
37
|
+
because they share a name.
|
|
38
|
+
|
|
39
|
+
## Change discipline
|
|
40
|
+
|
|
41
|
+
- Keep transport parsing out of the session facade.
|
|
42
|
+
- Keep turn correlation and stream buffering in `RemoteTurnCoordinator`.
|
|
43
|
+
- Preserve exports from the package root and `/client` unless a change is
|
|
44
|
+
explicitly intended to be breaking.
|
|
45
|
+
- Treat source-size exceptions in `scripts/check-source-size.ts` as debt
|
|
46
|
+
ceilings: reduce them when a file shrinks and do not raise them casually.
|
|
47
|
+
- Run `bun run check`, `bun test`, and `bun run build` before opening a PR.
|
package/README.md
CHANGED
|
@@ -108,6 +108,23 @@ await using session = client.createSession(agentId, {
|
|
|
108
108
|
});
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
+
### Managed Cloud sandbox repositories
|
|
112
|
+
|
|
113
|
+
Cloud sessions can clone up to 10 GitHub repositories into the managed
|
|
114
|
+
sandbox. Public repositories clone directly; private repositories require
|
|
115
|
+
access through the organization's GitHub integration.
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
await using session = client.createSession(agentId, {
|
|
119
|
+
sandbox: {
|
|
120
|
+
githubRepositories: [
|
|
121
|
+
{ owner: "letta-ai", repo: "letta-docs-md" },
|
|
122
|
+
{ owner: "letta-ai", repo: "letta-code" },
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
```
|
|
127
|
+
|
|
111
128
|
### Remote App Server
|
|
112
129
|
|
|
113
130
|
```ts
|
|
@@ -8,9 +8,51 @@ type OwnedConnection = {
|
|
|
8
8
|
export type AppServerManagementOptions = Partial<LettaCodeRemoteClientOptions> & {
|
|
9
9
|
url?: string;
|
|
10
10
|
connect?: () => Promise<OwnedConnection>;
|
|
11
|
+
/**
|
|
12
|
+
* How long (in milliseconds) an idle control connection lingers before it
|
|
13
|
+
* is released. Defaults to {@link DEFAULT_IDLE_LINGER_MS}.
|
|
14
|
+
*/
|
|
15
|
+
idleLingerMs?: number;
|
|
11
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Wait for every management transport targeting this app-server to release
|
|
19
|
+
* its control connection. The registry is process-wide so a session created
|
|
20
|
+
* by a different `LettaAgentClient` instance can still take the server's
|
|
21
|
+
* single control slot safely.
|
|
22
|
+
*/
|
|
23
|
+
export declare function releaseAppServerManagementConnections(url: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Management transport that speaks the app-server control protocol.
|
|
26
|
+
*
|
|
27
|
+
* Connection lifecycle: the Letta Code app-server currently accepts a single
|
|
28
|
+
* control client at a time — while one control socket is attached, additional
|
|
29
|
+
* control sockets are rejected with close code 1008
|
|
30
|
+
* `"control channel already connected"` (see letta-ai/letta-code
|
|
31
|
+
* `src/websocket/app-server.ts`). Sessions (`AppServerSession`) need that same
|
|
32
|
+
* control slot, so a management transport that holds an idle connection
|
|
33
|
+
* starves any later `resumeSession()`/`createSession()` from the same process
|
|
34
|
+
* (live-reproduced in the letta-mobile reference app, SDK-FEEDBACK.md #00).
|
|
35
|
+
*
|
|
36
|
+
* To stay out of the way, this transport pools a single lazily-connected
|
|
37
|
+
* client while requests are in flight (bursts share one connection and one
|
|
38
|
+
* request-id counter, so responses correlate correctly), then releases the
|
|
39
|
+
* connection shortly after it goes idle ({@link DEFAULT_IDLE_LINGER_MS}) and
|
|
40
|
+
* reconnects lazily on the next request. Before a session connects, all
|
|
41
|
+
* management transports registered for the same app-server URL relinquish
|
|
42
|
+
* their connections; the handoff waits for in-flight work and for the control
|
|
43
|
+
* socket's close event. The inverse contention — a management request issued
|
|
44
|
+
* while a session holds the control slot — cannot be solved client-side and
|
|
45
|
+
* still fails until the app-server allows multiple control clients.
|
|
46
|
+
*/
|
|
12
47
|
export declare class AppServerManagementTransport implements ManagementTransport {
|
|
13
48
|
private readonly options;
|
|
49
|
+
private connectionPromise;
|
|
50
|
+
private releasePromise;
|
|
51
|
+
private closingConnections;
|
|
52
|
+
private inFlightRequests;
|
|
53
|
+
private idleWaiters;
|
|
54
|
+
private idleTimer;
|
|
55
|
+
private readonly idleLingerMs;
|
|
14
56
|
constructor(options: AppServerManagementOptions);
|
|
15
57
|
listAgents(query: ManagementQuery): Promise<LettaAgent[]>;
|
|
16
58
|
retrieveAgent(agentId: string): Promise<LettaAgent>;
|
|
@@ -22,7 +64,23 @@ export declare class AppServerManagementTransport implements ManagementTransport
|
|
|
22
64
|
createConversation(body: Record<string, unknown>): Promise<LettaConversation>;
|
|
23
65
|
updateConversation(conversationId: string, body: Record<string, unknown>): Promise<LettaConversation>;
|
|
24
66
|
listConversationMessages(conversationId: string, query: ManagementQuery): Promise<ConversationMessagesResult>;
|
|
67
|
+
/**
|
|
68
|
+
* Release the pooled control connection instead of waiting out the idle
|
|
69
|
+
* linger. If requests are in flight, wait for them to settle first.
|
|
70
|
+
*
|
|
71
|
+
* The app-server accepts a single control client (see the class docs), so
|
|
72
|
+
* This is called before opening a session to hand the control slot over
|
|
73
|
+
* without a linger-sized or socket-close race window.
|
|
74
|
+
*/
|
|
75
|
+
releaseIdleConnection(): Promise<void>;
|
|
25
76
|
private request;
|
|
77
|
+
private releaseConnectionWhenIdle;
|
|
78
|
+
private acquireConnection;
|
|
79
|
+
private openConnection;
|
|
80
|
+
private discardConnection;
|
|
81
|
+
private trackClosingConnection;
|
|
82
|
+
private scheduleIdleRelease;
|
|
83
|
+
private clearIdleTimer;
|
|
26
84
|
}
|
|
27
85
|
export {};
|
|
28
86
|
//# sourceMappingURL=app-server-management.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-server-management.d.ts","sourceRoot":"","sources":["../src/app-server-management.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-server-management.d.ts","sourceRoot":"","sources":["../src/app-server-management.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EACV,0BAA0B,EAC1B,UAAU,EACV,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAEV,4BAA4B,EAC5B,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,KAAK,eAAe,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,IAAI,IAAI,CAAA;CAAE,CAAC;AAkCtD,MAAM,MAAM,0BAA0B,GACpC,OAAO,CAAC,4BAA4B,CAAC,GAAG;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IACzC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AA8DJ;;;;;GAKG;AACH,wBAAsB,qCAAqC,CACzD,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,IAAI,CAAC,CASf;AA8CD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,4BACX,YAAW,mBAAmB;IAUlB,OAAO,CAAC,QAAQ,CAAC,OAAO;IARpC,OAAO,CAAC,iBAAiB,CAA0C;IACnE,OAAO,CAAC,cAAc,CAA8B;IACpD,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,WAAW,CAAyB;IAC5C,OAAO,CAAC,SAAS,CAA8C;IAC/D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;gBAET,OAAO,EA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
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Internal handoff hook used to release a management connection owned by
|
|
22
|
+
* the same SDK client before this session opens its control socket.
|
|
23
|
+
*/
|
|
24
|
+
beforeConnect?: () => Promise<void>;
|
|
20
25
|
/** Whether SDK create-agent payloads should add the origin tag automatically. */
|
|
21
26
|
includeSdkOriginTag?: boolean;
|
|
22
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-server-session.d.ts","sourceRoot":"","sources":["../src/app-server-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gCAAgC,EAEtC,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"app-server-session.d.ts","sourceRoot":"","sources":["../src/app-server-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gCAAgC,EAEtC,MAAM,wCAAwC,CAAC;AAchD,OAAO,EACL,uBAAuB,EAKvB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,EAC5B,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAElB,8BAA8B,EAC9B,6BAA6B,EAC7B,WAAW,EACX,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAoDpB,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAIF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAChD,MAAM,EAAE,GAAG,SAAS,CAStB;AAED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IjD,OAAO,CACL,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAA;KAAO,GACtF,OAAO,CAAC,eAAe,CAAC;IAYrB,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC;IASvC,WAAW,CACf,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,iBAAiB,CAAC;IAYvB,uBAAuB,CAC3B,OAAO,EAAE,YAAY,EACrB,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,6BAA6B,CAAC;IAqBnC,YAAY,CAChB,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC;IAwC9B,KAAK,IAAI,IAAI;CAGd;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IAOzD,OAAO,CAAC,QAAQ,CAAC,aAAa;IANhC,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,yBAAyB,CAA6B;IAC9D,OAAO,CAAC,2BAA2B,CAA6B;gBAG7C,aAAa,EAAE,uBAAuB,EACvD,IAAI,EAAE,oBAAoB;cAYT,iBAAiB,CAAC,OAAO,EAAE,6BAA6B,GAAG,kBAAkB,GAAG,OAAO;cAKjF,2BAA2B,IAAI,OAAO,CAAC,kBAAkB,CAAC;cA4DhE,WAAW,IAAI,IAAI;YASxB,mBAAmB;YAenB,YAAY;YAMZ,wBAAwB;YAiExB,0BAA0B;CAoBzC"}
|
package/dist/client-base.d.ts
CHANGED
|
@@ -54,7 +54,14 @@ export declare class LettaAgentClientBase {
|
|
|
54
54
|
protected localBackendUnavailableError(): Error;
|
|
55
55
|
protected createLocalManagementTransport(): ManagementTransport;
|
|
56
56
|
private remoteOptions;
|
|
57
|
+
private appServerSessionOptions;
|
|
57
58
|
private getRepositoriesClient;
|
|
59
|
+
/**
|
|
60
|
+
* The app-server accepts a single control client at a time. Before a session
|
|
61
|
+
* connects, wait for this client's management work to settle and relinquish
|
|
62
|
+
* its pooled connection; management reconnects lazily on its next call.
|
|
63
|
+
*/
|
|
64
|
+
protected releaseIdleManagementConnection(): Promise<void>;
|
|
58
65
|
private getManagementTransport;
|
|
59
66
|
private cloudOptions;
|
|
60
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-base.d.ts","sourceRoot":"","sources":["../src/client-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"client-base.d.ts","sourceRoot":"","sources":["../src/client-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAcvD,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,6BAA6B,EAC7B,oBAAoB,EAIpB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACZ,MAAM,YAAY,CAAC;AAkDpB;;;;;;;;;GASG;AACH,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,SAAS,CAAC,QAAQ,CAAC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