@letta-ai/letta-agent-sdk 0.8.73 → 0.8.74
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/README.md +69 -0
- package/dist/app-server-session.d.ts +28 -7
- package/dist/app-server-session.d.ts.map +1 -1
- package/dist/client-base.d.ts +17 -0
- package/dist/client-base.d.ts.map +1 -1
- package/dist/client-entry.d.ts +1 -0
- package/dist/client-entry.d.ts.map +1 -1
- package/dist/client-entry.js +480 -77
- package/dist/client-entry.js.map +15 -12
- package/dist/client.d.ts +9 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/cloud-session.d.ts.map +1 -1
- package/dist/cloud-status-transport.d.ts.map +1 -1
- package/dist/external-tools.d.ts +11 -0
- package/dist/external-tools.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +508 -102
- package/dist/index.js.map +16 -13
- package/dist/remote-client-session-core.d.ts.map +1 -1
- package/dist/remote-session-protocol.d.ts +3 -1
- package/dist/remote-session-protocol.d.ts.map +1 -1
- package/dist/remote-turn-coordinator.d.ts +14 -0
- package/dist/remote-turn-coordinator.d.ts.map +1 -1
- package/dist/runtime-tool-policy.d.ts +57 -0
- package/dist/runtime-tool-policy.d.ts.map +1 -0
- package/dist/structured-output-session.d.ts.map +1 -1
- package/dist/tool-registration.d.ts +67 -0
- package/dist/tool-registration.d.ts.map +1 -0
- package/dist/types.d.ts +30 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app-server-session.ts +104 -60
- package/src/client-base.ts +57 -14
- package/src/client-entry.ts +1 -0
- package/src/client.ts +6 -2
- package/src/cloud-session.ts +12 -3
- package/src/cloud-status-transport.ts +4 -0
- package/src/external-tools.ts +69 -0
- package/src/index.ts +3 -0
- package/src/remote-client-session-core.ts +4 -4
- package/src/remote-session-protocol.ts +3 -0
- package/src/remote-turn-coordinator.ts +80 -15
- package/src/runtime-tool-policy.ts +114 -0
- package/src/structured-output-session.ts +2 -1
- package/src/tool-registration.ts +311 -0
- package/src/types.ts +39 -1
package/README.md
CHANGED
|
@@ -88,6 +88,75 @@ stored configuration.
|
|
|
88
88
|
Cloud queries require an explicit connected computer. Local and remote clients
|
|
89
89
|
run the conversation through their App Server.
|
|
90
90
|
|
|
91
|
+
### Turns the agent starts on its own
|
|
92
|
+
|
|
93
|
+
A conversation can also run turns that no `send()` started: a background task
|
|
94
|
+
finishing, a cron prompt, or another client's message. `stream()` yields those
|
|
95
|
+
turns as they run, and their `result` carries an `origin` such as
|
|
96
|
+
`"task_notification"` or `"cron"`. Only the result of your own turn ends the
|
|
97
|
+
`stream()` pass, so existing `send()` and `stream()` loops keep working.
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
for await (const message of session.stream()) {
|
|
101
|
+
if (message.type === "result" && message.origin) {
|
|
102
|
+
console.log(`${message.origin} turn finished: ${message.result}`);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
A session's `allowedTools` and `toolset` apply to those turns too, for as long
|
|
108
|
+
as the session is open.
|
|
109
|
+
|
|
110
|
+
### Tools for many conversations
|
|
111
|
+
|
|
112
|
+
To serve client tools to many conversations at once, register them on the
|
|
113
|
+
client instead of opening a session per conversation. One connection carries
|
|
114
|
+
every registration, calls are routed to the tools registered for the calling
|
|
115
|
+
conversation, and registrations are restored after a reconnect:
|
|
116
|
+
|
|
117
|
+
```typescript
|
|
118
|
+
const client = new LettaAgentClient({ backend: "local" });
|
|
119
|
+
|
|
120
|
+
await using registration = await client.registerTools({
|
|
121
|
+
conversations: [plannerConversationId, reviewerConversationId],
|
|
122
|
+
tools: [lookupCustomer],
|
|
123
|
+
allowedTools: ["lookup_customer", "Read", "Grep"],
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
// Sessions on a registered conversation inherit its tools and allowedTools.
|
|
127
|
+
await using session = client.resumeSession(plannerConversationId);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
A tool's `execute` receives a context as its last argument, `{ toolCallId,
|
|
131
|
+
agentId, conversationId }`, so one tool instance can serve every conversation
|
|
132
|
+
and keep per-conversation state keyed on `conversationId`:
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
const lookupCustomer: AnyAgentTool = {
|
|
136
|
+
// name, label, description, parameters ...
|
|
137
|
+
execute: async (toolCallId, args, signal, onUpdate, context) => {
|
|
138
|
+
const notes = notesFor(context?.conversationId);
|
|
139
|
+
// ...
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Call `registerTools()` once per tool set; each call can bind its own tool
|
|
145
|
+
implementations to its own conversations. It requires the `local` or `remote`
|
|
146
|
+
backend, and `allowedTools` or `toolset` require a Letta Code release that
|
|
147
|
+
advertises runtime tool policies.
|
|
148
|
+
|
|
149
|
+
A session opened with `resumeSession()` on a registered conversation uses the
|
|
150
|
+
registration's `tools`, `allowedTools` and `toolset`, and picks up
|
|
151
|
+
`registration.update()` while it is open, so you set them in one place. Options
|
|
152
|
+
you pass to the session can add and narrow but not widen:
|
|
153
|
+
|
|
154
|
+
- `tools` are added on top of the registered tools; reusing a registered name
|
|
155
|
+
is an error.
|
|
156
|
+
- `allowedTools` narrows the registered allowlist. Names outside it are
|
|
157
|
+
dropped unless they are the session's own tools.
|
|
158
|
+
- `toolset` is only accepted when the registration has none or the same one.
|
|
159
|
+
|
|
91
160
|
Set `LETTA_API_KEY` for the cloud backend. See the [quickstart](https://docs.letta.com/agent-sdk/quickstart) for the local and self-hosted paths.
|
|
92
161
|
|
|
93
162
|
## Where your agents run
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { type AppServerClient
|
|
1
|
+
import { type AppServerClient } from "@letta-ai/letta-code/app-server-client";
|
|
2
|
+
import { type InheritedToolSource, type SessionToolSelection } from "./runtime-tool-policy.js";
|
|
2
3
|
import { RemoteClientSessionCore, type ProtocolMessage, type RemoteClientRuntimeController, type RuntimeSendTurnOptions, type RuntimeScope, type RuntimeSessionInit, type RuntimeSessionMode } from "./remote-client-session-core.js";
|
|
3
|
-
import type {
|
|
4
|
+
import type { CanUseToolContext, CanUseToolResponse, ClientToolsetConfig, CreateAgentOptions, LettaCodeRemoteClientOptions, LettaCodeClientSessionOptions, ListModelsResult, ListMessagesOptions, ListMessagesResult, RecoverPendingApprovalsOptions, RecoverPendingApprovalsResult, SendMessage, UpdateModelResult } from "./types.js";
|
|
4
5
|
type UpdateModelPayload = {
|
|
5
6
|
model_id?: string;
|
|
6
7
|
model_handle?: string;
|
|
@@ -21,8 +22,6 @@ export type AppServerSessionOptions = Partial<LettaCodeRemoteClientOptions> & {
|
|
|
21
22
|
requireLocalConversationCapability?: boolean;
|
|
22
23
|
};
|
|
23
24
|
export type AppServerSessionMode = RuntimeSessionMode;
|
|
24
|
-
export declare function externalToolGroups(tools: AnyAgentTool[] | undefined): Array<Record<string, unknown>> | undefined;
|
|
25
|
-
export declare function createExternalToolCallHandler(externalTools: Map<string, AnyAgentTool>): AppServerExternalToolCallHandler;
|
|
26
25
|
type AppServerApprovalOptions = LettaCodeClientSessionOptions | CreateAgentOptions;
|
|
27
26
|
type AppServerApprovalResponseDecision = {
|
|
28
27
|
behavior: "allow";
|
|
@@ -43,9 +42,19 @@ export declare function registerAppServerControlRequestHandler(config: {
|
|
|
43
42
|
export declare class AppServerRuntimeController implements RemoteClientRuntimeController {
|
|
44
43
|
private readonly client;
|
|
45
44
|
private readonly options;
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
|
|
45
|
+
private clientToolAllowlist?;
|
|
46
|
+
private clientToolset?;
|
|
47
|
+
/** The listener applies runtime_start's tool_policy to every turn. */
|
|
48
|
+
private readonly toolPolicyApplied;
|
|
49
|
+
constructor(client: AppServerClient, options: AppServerSessionOptions, clientToolAllowlist?: readonly string[] | undefined, clientToolset?: ClientToolsetConfig | undefined,
|
|
50
|
+
/** The listener applies runtime_start's tool_policy to every turn. */
|
|
51
|
+
toolPolicyApplied?: boolean);
|
|
52
|
+
/**
|
|
53
|
+
* Replace this connection's tools and policy for the runtime, as when a
|
|
54
|
+
* `registerTools()` registration the session inherits changes. Older
|
|
55
|
+
* listeners get the tools here and the selection with each message.
|
|
56
|
+
*/
|
|
57
|
+
updateToolSelection(runtime: RuntimeScope, selection: SessionToolSelection): Promise<void>;
|
|
49
58
|
onMessage(handler: (message: ProtocolMessage, channel?: string) => void): () => void;
|
|
50
59
|
send(command: Record<string, unknown>): void;
|
|
51
60
|
sendTurnMessage(runtime: RuntimeScope, message: SendMessage, options: RuntimeSendTurnOptions): void;
|
|
@@ -68,7 +77,19 @@ export declare class AppServerSession extends RemoteClientSessionCore {
|
|
|
68
77
|
private mcpCleanup;
|
|
69
78
|
private removeExternalToolHandler;
|
|
70
79
|
private removeControlRequestHandler;
|
|
80
|
+
private inheritedTools;
|
|
81
|
+
private removeInheritedListener;
|
|
82
|
+
/** This session's own selection, after MCP tools and wildcards resolve. */
|
|
83
|
+
private ownSelection;
|
|
71
84
|
constructor(remoteOptions: AppServerSessionOptions, mode: AppServerSessionMode);
|
|
85
|
+
/**
|
|
86
|
+
* Use the tools and policy of the `registerTools()` registration covering
|
|
87
|
+
* this conversation, and follow its updates while the session is open.
|
|
88
|
+
*/
|
|
89
|
+
inheritTools(source: InheritedToolSource): void;
|
|
90
|
+
/** Rebuild the effective tool map in place; call handlers hold the map. */
|
|
91
|
+
private applyToolSelection;
|
|
92
|
+
private refreshInheritedTools;
|
|
72
93
|
protected shouldEnableMemfs(options: LettaCodeClientSessionOptions | CreateAgentOptions): boolean;
|
|
73
94
|
protected initializeRuntimeController(): Promise<RuntimeSessionInit>;
|
|
74
95
|
protected onCoreClose(): void;
|
|
@@ -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,
|
|
1
|
+
{"version":3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OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,SAAS,CAA8B;IAC/C,OAAO,CAAC,UAAU,CAAoC;IACtD,OAAO,CAAC,yBAAyB,CAA6B;IAC9D,OAAO,CAAC,2BAA2B,CAA6B;IAChE,OAAO,CAAC,cAAc,CAAoC;IAC1D,OAAO,CAAC,uBAAuB,CAA6B;IAC5D,2EAA2E;IAC3E,OAAO,CAAC,YAAY,CAAqC;gBAGtC,aAAa,EAAE,uBAAuB,EACvD,IAAI,EAAE,oBAAoB;IAY5B;;;OAGG;IACH,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAO/C,2EAA2E;IAC3E,OAAO,CAAC,kBAAkB;YAUZ,qBAAqB;cAMhB,iBAAiB,CAAC,OAAO,EAAE,6BAA6B,GAAG,kBAAkB,GAAG,OAAO;cAKjF,2BAA2B,IAAI,OAAO,CAAC,kBAAkB,CAAC;cAsHhE,WAAW,IAAI,IAAI;cAcb,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxD,OAAO,CAAC,cAAc;YAOR,mBAAmB;YAenB,YAAY;YAQZ,wBAAwB;YAsHxB,0BAA0B;CAqBzC"}
|
package/dist/client-base.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { RepositoriesClient } from "./repositories.js";
|
|
2
2
|
import { type SkillNodeSupport } from "./skill-loading.js";
|
|
3
|
+
import { type AppServerSessionOptions } from "./app-server-session.js";
|
|
3
4
|
import { type ComputerSelector, type ComputersClient } from "./computers.js";
|
|
4
5
|
import { type ManagementTransport } from "./management.js";
|
|
5
6
|
import type { AgentsClient, ConversationsClient, ModelsClient } from "./management-types.js";
|
|
7
|
+
import { type RegisterToolsOptions, type ToolRegistration } from "./tool-registration.js";
|
|
6
8
|
import type { Query, QueryOptions, QueryParams } from "./query-types.js";
|
|
7
9
|
import type { CreateAgentOptions, LettaCodeBackend, LettaCodeClientOptions, LettaCodeClientSessionOptions, LettaCodeEnvironment, LettaCodeSession, SDKResultMessage, SendMessage } from "./types.js";
|
|
8
10
|
/**
|
|
@@ -29,6 +31,7 @@ export declare class LettaAgentClientBase implements AsyncDisposable {
|
|
|
29
31
|
private agentRepositoriesClient;
|
|
30
32
|
private cloudClient;
|
|
31
33
|
private managementTransport;
|
|
34
|
+
private toolRegistry;
|
|
32
35
|
private closed;
|
|
33
36
|
private closePromise;
|
|
34
37
|
constructor(options?: LettaCodeClientOptions);
|
|
@@ -53,6 +56,11 @@ export declare class LettaAgentClientBase implements AsyncDisposable {
|
|
|
53
56
|
*
|
|
54
57
|
* `options.environment` overrides the client's default execution target for
|
|
55
58
|
* Letta Cloud sessions. Remote app-server URLs already select the runtime.
|
|
59
|
+
*
|
|
60
|
+
* If `client.registerTools()` covers this conversation, the session uses the
|
|
61
|
+
* registration's tools, `allowedTools` and `toolset` and follows its
|
|
62
|
+
* updates. Session `tools` are added on top, and session `allowedTools` can
|
|
63
|
+
* only narrow the registration's.
|
|
56
64
|
*/
|
|
57
65
|
resumeSession(id: string, options?: LettaCodeClientSessionOptions): LettaCodeSession;
|
|
58
66
|
/**
|
|
@@ -84,6 +92,15 @@ export declare class LettaAgentClientBase implements AsyncDisposable {
|
|
|
84
92
|
private getCloudManagementTransport;
|
|
85
93
|
private getCloudClient;
|
|
86
94
|
private getManagementTransport;
|
|
95
|
+
/**
|
|
96
|
+
* Register client tools for many conversations over one long-lived
|
|
97
|
+
* connection. Every turn in those conversations can call them, including
|
|
98
|
+
* turns the runtime starts itself, such as task notifications and cron
|
|
99
|
+
* prompts, with or without an open session.
|
|
100
|
+
*/
|
|
101
|
+
registerTools(options: RegisterToolsOptions): Promise<ToolRegistration>;
|
|
102
|
+
/** How the local backend reaches its App Server; overridden by the Node client. */
|
|
103
|
+
protected localAppServerConnection(): AppServerSessionOptions;
|
|
87
104
|
/**
|
|
88
105
|
* Release resources owned directly by this client, including its pooled
|
|
89
106
|
* management connection. The Node client also stops its shared local App
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-base.d.ts","sourceRoot":"","sources":["../src/client-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"client-base.d.ts","sourceRoot":"","sources":["../src/client-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG9E,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAC;AAOxB,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAEV,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,KAAK,EACL,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,kBAAkB,EAElB,gBAAgB,EAChB,sBAAsB,EACtB,6BAA6B,EAC7B,oBAAoB,EAIpB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACZ,MAAM,YAAY,CAAC;AAsFpB;;;;;;;;;GASG;AACH,qBAAa,oBAAqB,YAAW,eAAe;IAC1D,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,kCAAkC;IAClC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,GAAG,SAAS,CAAC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BAAgB,GAAG,SAAS;IAI1D,SAAS,CAAC,kBAAkB,CAC1B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,6BAA6B,GACtC,gBAAgB;IAInB,SAAS,CAAC,uBAAuB,CAC/B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,6BAA6B,GAC7C,gBAAgB;IAInB,SAAS,CAAC,kBAAkB,CAC1B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,6BAA6B,GACtC,gBAAgB;IAInB,SAAS,CAAC,4BAA4B,IAAI,KAAK;IAM/C,SAAS,CAAC,8BAA8B,IAAI,mBAAmB;IAI/D,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,0BAA0B;IAYlC,OAAO,CAAC,2BAA2B;IAQnC,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,sBAAsB;IAiB9B;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAavE,mFAAmF;IACnF,SAAS,CAAC,wBAAwB,IAAI,uBAAuB;IAI7D;;;;OAIG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYtB,wCAAwC;IAClC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,YAAY;CAMrB"}
|
package/dist/client-entry.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class LettaAgentClient extends LettaAgentClientBase {
|
|
|
13
13
|
export { CloudManagedSandboxExpiredError } from "./cloud-session.js";
|
|
14
14
|
export { ConversationForkHydrationError } from "./management-errors.js";
|
|
15
15
|
export { RepositoriesClient } from "./repositories.js";
|
|
16
|
+
export type { RegisterToolsOptions, ToolRegistration } from "./tool-registration.js";
|
|
16
17
|
export type * from "./sandbox-files.js";
|
|
17
18
|
export type { Computer, ComputerMetadata, ComputerSelector, ComputersClient, ListComputersOptions, ListComputersResult, ResolvedComputer, } from "./computers.js";
|
|
18
19
|
export type * from "./management-types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-entry.d.ts","sourceRoot":"","sources":["../src/client-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EACV,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,+BAA+B,GACvC,4BAA4B,GAC5B,2BAA2B,CAAC;AAEhC;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,oBAAoB;gBAC5C,OAAO,EAAE,+BAA+B;CAMrD;AAED,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,mBAAmB,oBAAoB,CAAC;AACxC,YAAY,EACV,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,mBAAmB,uBAAuB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qCAAqC,EAAE,MAAM,gBAAgB,CAAC;AACvE,mBAAmB,YAAY,C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