agents 0.0.0-cebd0de → 0.0.0-ced3b22
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 +157 -27
- package/dist/ai-chat-agent.d.ts +56 -7
- package/dist/ai-chat-agent.js +276 -93
- package/dist/ai-chat-agent.js.map +1 -1
- package/dist/ai-chat-v5-migration.d.ts +152 -0
- package/dist/ai-chat-v5-migration.js +19 -0
- package/dist/ai-react.d.ts +71 -67
- package/dist/ai-react.js +180 -66
- package/dist/ai-react.js.map +1 -1
- package/dist/ai-types.d.ts +40 -18
- package/dist/ai-types.js +6 -0
- package/dist/chunk-AVYJQSLW.js +17 -0
- package/dist/chunk-AVYJQSLW.js.map +1 -0
- package/dist/chunk-LL2AFX7V.js +109 -0
- package/dist/chunk-LL2AFX7V.js.map +1 -0
- package/dist/chunk-MH46VMM4.js +612 -0
- package/dist/chunk-MH46VMM4.js.map +1 -0
- package/dist/chunk-QEVM4BVL.js +116 -0
- package/dist/chunk-QEVM4BVL.js.map +1 -0
- package/dist/chunk-UJVEAURM.js +150 -0
- package/dist/chunk-UJVEAURM.js.map +1 -0
- package/dist/chunk-YDUDMOL6.js +1296 -0
- package/dist/chunk-YDUDMOL6.js.map +1 -0
- package/dist/client-CvaJdLQA.d.ts +5015 -0
- package/dist/client.d.ts +16 -2
- package/dist/client.js +7 -126
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +282 -26
- package/dist/index.js +17 -8
- package/dist/mcp/client.d.ts +11 -714
- package/dist/mcp/client.js +3 -465
- package/dist/mcp/client.js.map +1 -1
- package/dist/mcp/do-oauth-client-provider.d.ts +42 -0
- package/dist/mcp/do-oauth-client-provider.js +7 -0
- package/dist/mcp/do-oauth-client-provider.js.map +1 -0
- package/dist/mcp/index.d.ts +83 -30
- package/dist/mcp/index.js +949 -260
- package/dist/mcp/index.js.map +1 -1
- package/dist/observability/index.d.ts +46 -0
- package/dist/observability/index.js +11 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/react.d.ts +89 -5
- package/dist/react.js +40 -26
- package/dist/react.js.map +1 -1
- package/dist/schedule.d.ts +81 -7
- package/dist/schedule.js +19 -8
- package/dist/schedule.js.map +1 -1
- package/dist/serializable.d.ts +32 -0
- package/dist/serializable.js +1 -0
- package/dist/serializable.js.map +1 -0
- package/package.json +88 -52
- package/src/index.ts +1184 -156
- package/dist/chunk-HMLY7DHA.js +0 -16
- package/dist/chunk-YMUU7QHV.js +0 -595
- package/dist/chunk-YMUU7QHV.js.map +0 -1
- /package/dist/{chunk-HMLY7DHA.js.map → ai-chat-v5-migration.js.map} +0 -0
package/dist/ai-types.d.ts
CHANGED
|
@@ -1,42 +1,59 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIMessage } from "ai";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Enum for message types to improve type safety and maintainability
|
|
5
|
+
*/
|
|
6
|
+
declare enum MessageType {
|
|
7
|
+
CF_AGENT_CHAT_MESSAGES = "cf_agent_chat_messages",
|
|
8
|
+
CF_AGENT_USE_CHAT_REQUEST = "cf_agent_use_chat_request",
|
|
9
|
+
CF_AGENT_USE_CHAT_RESPONSE = "cf_agent_use_chat_response",
|
|
10
|
+
CF_AGENT_CHAT_CLEAR = "cf_agent_chat_clear",
|
|
11
|
+
CF_AGENT_CHAT_REQUEST_CANCEL = "cf_agent_chat_request_cancel",
|
|
12
|
+
CF_AGENT_MCP_SERVERS = "cf_agent_mcp_servers",
|
|
13
|
+
CF_AGENT_STATE = "cf_agent_state",
|
|
14
|
+
RPC = "rpc"
|
|
15
|
+
}
|
|
3
16
|
/**
|
|
4
17
|
* Types of messages sent from the Agent to clients
|
|
5
18
|
*/
|
|
6
|
-
type OutgoingMessage =
|
|
19
|
+
type OutgoingMessage<ChatMessage extends UIMessage = UIMessage> =
|
|
20
|
+
| {
|
|
21
|
+
/** Indicates this message is a command to clear chat history */
|
|
22
|
+
type: MessageType.CF_AGENT_CHAT_CLEAR;
|
|
23
|
+
}
|
|
7
24
|
| {
|
|
8
25
|
/** Indicates this message contains updated chat messages */
|
|
9
|
-
type:
|
|
26
|
+
type: MessageType.CF_AGENT_CHAT_MESSAGES;
|
|
10
27
|
/** Array of chat messages */
|
|
11
|
-
messages:
|
|
28
|
+
messages: ChatMessage[];
|
|
12
29
|
}
|
|
13
30
|
| {
|
|
14
31
|
/** Indicates this message is a response to a chat request */
|
|
15
|
-
type:
|
|
32
|
+
type: MessageType.CF_AGENT_USE_CHAT_RESPONSE;
|
|
16
33
|
/** Unique ID of the request this response corresponds to */
|
|
17
34
|
id: string;
|
|
18
35
|
/** Content body of the response */
|
|
19
36
|
body: string;
|
|
20
37
|
/** Whether this is the final chunk of the response */
|
|
21
38
|
done: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** Indicates this message contains updated chat messages */
|
|
25
|
-
type: "cf_agent_chat_messages";
|
|
26
|
-
/** Array of chat messages */
|
|
27
|
-
messages: Message[];
|
|
39
|
+
/** Whether this response contains an error */
|
|
40
|
+
error?: boolean;
|
|
28
41
|
}
|
|
29
42
|
| {
|
|
30
43
|
/** Indicates this message is a command to clear chat history */
|
|
31
|
-
type:
|
|
44
|
+
type: MessageType.CF_AGENT_CHAT_CLEAR;
|
|
32
45
|
};
|
|
33
46
|
/**
|
|
34
47
|
* Types of messages sent from clients to the Agent
|
|
35
48
|
*/
|
|
36
|
-
type IncomingMessage =
|
|
49
|
+
type IncomingMessage<ChatMessage extends UIMessage = UIMessage> =
|
|
50
|
+
| {
|
|
51
|
+
/** Indicates this message is a command to clear chat history */
|
|
52
|
+
type: MessageType.CF_AGENT_CHAT_CLEAR;
|
|
53
|
+
}
|
|
37
54
|
| {
|
|
38
55
|
/** Indicates this message is a request to the chat API */
|
|
39
|
-
type:
|
|
56
|
+
type: MessageType.CF_AGENT_USE_CHAT_REQUEST;
|
|
40
57
|
/** Unique ID for this request */
|
|
41
58
|
id: string;
|
|
42
59
|
/** Request initialization options */
|
|
@@ -57,13 +74,18 @@ type IncomingMessage =
|
|
|
57
74
|
}
|
|
58
75
|
| {
|
|
59
76
|
/** Indicates this message is a command to clear chat history */
|
|
60
|
-
type:
|
|
77
|
+
type: MessageType.CF_AGENT_CHAT_CLEAR;
|
|
61
78
|
}
|
|
62
79
|
| {
|
|
63
80
|
/** Indicates this message contains updated chat messages */
|
|
64
|
-
type:
|
|
81
|
+
type: MessageType.CF_AGENT_CHAT_MESSAGES;
|
|
65
82
|
/** Array of chat messages */
|
|
66
|
-
messages:
|
|
83
|
+
messages: ChatMessage[];
|
|
84
|
+
}
|
|
85
|
+
| {
|
|
86
|
+
/** Indicates the user wants to stop generation of this message */
|
|
87
|
+
type: MessageType.CF_AGENT_CHAT_REQUEST_CANCEL;
|
|
88
|
+
id: string;
|
|
67
89
|
};
|
|
68
90
|
|
|
69
|
-
export type
|
|
91
|
+
export { type IncomingMessage, MessageType, type OutgoingMessage };
|
package/dist/ai-types.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/ai-types.ts
|
|
2
|
+
var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
3
|
+
MessageType2["CF_AGENT_CHAT_MESSAGES"] = "cf_agent_chat_messages";
|
|
4
|
+
MessageType2["CF_AGENT_USE_CHAT_REQUEST"] = "cf_agent_use_chat_request";
|
|
5
|
+
MessageType2["CF_AGENT_USE_CHAT_RESPONSE"] = "cf_agent_use_chat_response";
|
|
6
|
+
MessageType2["CF_AGENT_CHAT_CLEAR"] = "cf_agent_chat_clear";
|
|
7
|
+
MessageType2["CF_AGENT_CHAT_REQUEST_CANCEL"] = "cf_agent_chat_request_cancel";
|
|
8
|
+
MessageType2["CF_AGENT_MCP_SERVERS"] = "cf_agent_mcp_servers";
|
|
9
|
+
MessageType2["CF_AGENT_STATE"] = "cf_agent_state";
|
|
10
|
+
MessageType2["RPC"] = "rpc";
|
|
11
|
+
return MessageType2;
|
|
12
|
+
})(MessageType || {});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
MessageType
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=chunk-AVYJQSLW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ai-types.ts"],"sourcesContent":["import type { UIMessage } from \"ai\";\n\n/**\n * Enum for message types to improve type safety and maintainability\n */\nexport enum MessageType {\n CF_AGENT_CHAT_MESSAGES = \"cf_agent_chat_messages\",\n CF_AGENT_USE_CHAT_REQUEST = \"cf_agent_use_chat_request\",\n CF_AGENT_USE_CHAT_RESPONSE = \"cf_agent_use_chat_response\",\n CF_AGENT_CHAT_CLEAR = \"cf_agent_chat_clear\",\n CF_AGENT_CHAT_REQUEST_CANCEL = \"cf_agent_chat_request_cancel\",\n\n CF_AGENT_MCP_SERVERS = \"cf_agent_mcp_servers\",\n CF_AGENT_STATE = \"cf_agent_state\",\n RPC = \"rpc\"\n}\n\n/**\n * Types of messages sent from the Agent to clients\n */\nexport type OutgoingMessage<ChatMessage extends UIMessage = UIMessage> =\n | {\n /** Indicates this message is a command to clear chat history */\n type: MessageType.CF_AGENT_CHAT_CLEAR;\n }\n | {\n /** Indicates this message contains updated chat messages */\n type: MessageType.CF_AGENT_CHAT_MESSAGES;\n /** Array of chat messages */\n messages: ChatMessage[];\n }\n | {\n /** Indicates this message is a response to a chat request */\n type: MessageType.CF_AGENT_USE_CHAT_RESPONSE;\n /** Unique ID of the request this response corresponds to */\n id: string;\n /** Content body of the response */\n body: string;\n /** Whether this is the final chunk of the response */\n done: boolean;\n /** Whether this response contains an error */\n error?: boolean;\n }\n | {\n /** Indicates this message is a command to clear chat history */\n type: MessageType.CF_AGENT_CHAT_CLEAR;\n };\n\n/**\n * Types of messages sent from clients to the Agent\n */\nexport type IncomingMessage<ChatMessage extends UIMessage = UIMessage> =\n | {\n /** Indicates this message is a command to clear chat history */\n type: MessageType.CF_AGENT_CHAT_CLEAR;\n }\n | {\n /** Indicates this message is a request to the chat API */\n type: MessageType.CF_AGENT_USE_CHAT_REQUEST;\n /** Unique ID for this request */\n id: string;\n /** Request initialization options */\n init: Pick<\n RequestInit,\n | \"method\"\n | \"keepalive\"\n | \"headers\"\n | \"body\"\n | \"redirect\"\n | \"integrity\"\n | \"credentials\"\n | \"mode\"\n | \"referrer\"\n | \"referrerPolicy\"\n | \"window\"\n >;\n }\n | {\n /** Indicates this message is a command to clear chat history */\n type: MessageType.CF_AGENT_CHAT_CLEAR;\n }\n | {\n /** Indicates this message contains updated chat messages */\n type: MessageType.CF_AGENT_CHAT_MESSAGES;\n /** Array of chat messages */\n messages: ChatMessage[];\n }\n | {\n /** Indicates the user wants to stop generation of this message */\n type: MessageType.CF_AGENT_CHAT_REQUEST_CANCEL;\n id: string;\n };\n"],"mappings":";AAKO,IAAK,cAAL,kBAAKA,iBAAL;AACL,EAAAA,aAAA,4BAAyB;AACzB,EAAAA,aAAA,+BAA4B;AAC5B,EAAAA,aAAA,gCAA6B;AAC7B,EAAAA,aAAA,yBAAsB;AACtB,EAAAA,aAAA,kCAA+B;AAE/B,EAAAA,aAAA,0BAAuB;AACvB,EAAAA,aAAA,oBAAiB;AACjB,EAAAA,aAAA,SAAM;AATI,SAAAA;AAAA,GAAA;","names":["MessageType"]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// src/mcp/do-oauth-client-provider.ts
|
|
2
|
+
var DurableObjectOAuthClientProvider = class {
|
|
3
|
+
constructor(storage, clientName, baseRedirectUrl) {
|
|
4
|
+
this.storage = storage;
|
|
5
|
+
this.clientName = clientName;
|
|
6
|
+
this.baseRedirectUrl = baseRedirectUrl;
|
|
7
|
+
}
|
|
8
|
+
get clientMetadata() {
|
|
9
|
+
return {
|
|
10
|
+
client_name: this.clientName,
|
|
11
|
+
client_uri: this.clientUri,
|
|
12
|
+
grant_types: ["authorization_code", "refresh_token"],
|
|
13
|
+
redirect_uris: [this.redirectUrl],
|
|
14
|
+
response_types: ["code"],
|
|
15
|
+
token_endpoint_auth_method: "none"
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
get clientUri() {
|
|
19
|
+
return new URL(this.redirectUrl).origin;
|
|
20
|
+
}
|
|
21
|
+
get redirectUrl() {
|
|
22
|
+
return `${this.baseRedirectUrl}/${this.serverId}`;
|
|
23
|
+
}
|
|
24
|
+
get clientId() {
|
|
25
|
+
if (!this._clientId_) {
|
|
26
|
+
throw new Error("Trying to access clientId before it was set");
|
|
27
|
+
}
|
|
28
|
+
return this._clientId_;
|
|
29
|
+
}
|
|
30
|
+
set clientId(clientId_) {
|
|
31
|
+
this._clientId_ = clientId_;
|
|
32
|
+
}
|
|
33
|
+
get serverId() {
|
|
34
|
+
if (!this._serverId_) {
|
|
35
|
+
throw new Error("Trying to access serverId before it was set");
|
|
36
|
+
}
|
|
37
|
+
return this._serverId_;
|
|
38
|
+
}
|
|
39
|
+
set serverId(serverId_) {
|
|
40
|
+
this._serverId_ = serverId_;
|
|
41
|
+
}
|
|
42
|
+
keyPrefix(clientId) {
|
|
43
|
+
return `/${this.clientName}/${this.serverId}/${clientId}`;
|
|
44
|
+
}
|
|
45
|
+
clientInfoKey(clientId) {
|
|
46
|
+
return `${this.keyPrefix(clientId)}/client_info/`;
|
|
47
|
+
}
|
|
48
|
+
async clientInformation() {
|
|
49
|
+
if (!this._clientId_) {
|
|
50
|
+
return void 0;
|
|
51
|
+
}
|
|
52
|
+
return await this.storage.get(
|
|
53
|
+
this.clientInfoKey(this.clientId)
|
|
54
|
+
) ?? void 0;
|
|
55
|
+
}
|
|
56
|
+
async saveClientInformation(clientInformation) {
|
|
57
|
+
await this.storage.put(
|
|
58
|
+
this.clientInfoKey(clientInformation.client_id),
|
|
59
|
+
clientInformation
|
|
60
|
+
);
|
|
61
|
+
this.clientId = clientInformation.client_id;
|
|
62
|
+
}
|
|
63
|
+
tokenKey(clientId) {
|
|
64
|
+
return `${this.keyPrefix(clientId)}/token`;
|
|
65
|
+
}
|
|
66
|
+
async tokens() {
|
|
67
|
+
if (!this._clientId_) {
|
|
68
|
+
return void 0;
|
|
69
|
+
}
|
|
70
|
+
return await this.storage.get(this.tokenKey(this.clientId)) ?? void 0;
|
|
71
|
+
}
|
|
72
|
+
async saveTokens(tokens) {
|
|
73
|
+
await this.storage.put(this.tokenKey(this.clientId), tokens);
|
|
74
|
+
}
|
|
75
|
+
get authUrl() {
|
|
76
|
+
return this._authUrl_;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Because this operates on the server side (but we need browser auth), we send this url back to the user
|
|
80
|
+
* and require user interact to initiate the redirect flow
|
|
81
|
+
*/
|
|
82
|
+
async redirectToAuthorization(authUrl) {
|
|
83
|
+
const client_id = authUrl.searchParams.get("client_id");
|
|
84
|
+
if (client_id) {
|
|
85
|
+
authUrl.searchParams.append("state", client_id);
|
|
86
|
+
}
|
|
87
|
+
this._authUrl_ = authUrl.toString();
|
|
88
|
+
}
|
|
89
|
+
codeVerifierKey(clientId) {
|
|
90
|
+
return `${this.keyPrefix(clientId)}/code_verifier`;
|
|
91
|
+
}
|
|
92
|
+
async saveCodeVerifier(verifier) {
|
|
93
|
+
await this.storage.put(this.codeVerifierKey(this.clientId), verifier);
|
|
94
|
+
}
|
|
95
|
+
async codeVerifier() {
|
|
96
|
+
const codeVerifier = await this.storage.get(
|
|
97
|
+
this.codeVerifierKey(this.clientId)
|
|
98
|
+
);
|
|
99
|
+
if (!codeVerifier) {
|
|
100
|
+
throw new Error("No code verifier found");
|
|
101
|
+
}
|
|
102
|
+
return codeVerifier;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
DurableObjectOAuthClientProvider
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=chunk-LL2AFX7V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/mcp/do-oauth-client-provider.ts"],"sourcesContent":["import type { OAuthClientProvider } from \"@modelcontextprotocol/sdk/client/auth.js\";\nimport type {\n OAuthClientInformation,\n OAuthClientInformationFull,\n OAuthClientMetadata,\n OAuthTokens\n} from \"@modelcontextprotocol/sdk/shared/auth.js\";\n\n// A slight extension to the standard OAuthClientProvider interface because `redirectToAuthorization` doesn't give us the interface we need\n// This allows us to track authentication for a specific server and associated dynamic client registration\nexport interface AgentsOAuthProvider extends OAuthClientProvider {\n authUrl: string | undefined;\n clientId: string | undefined;\n serverId: string | undefined;\n}\n\nexport class DurableObjectOAuthClientProvider implements AgentsOAuthProvider {\n private _authUrl_: string | undefined;\n private _serverId_: string | undefined;\n private _clientId_: string | undefined;\n\n constructor(\n public storage: DurableObjectStorage,\n public clientName: string,\n public baseRedirectUrl: string\n ) {}\n\n get clientMetadata(): OAuthClientMetadata {\n return {\n client_name: this.clientName,\n client_uri: this.clientUri,\n grant_types: [\"authorization_code\", \"refresh_token\"],\n redirect_uris: [this.redirectUrl],\n response_types: [\"code\"],\n token_endpoint_auth_method: \"none\"\n };\n }\n\n get clientUri() {\n return new URL(this.redirectUrl).origin;\n }\n\n get redirectUrl() {\n return `${this.baseRedirectUrl}/${this.serverId}`;\n }\n\n get clientId() {\n if (!this._clientId_) {\n throw new Error(\"Trying to access clientId before it was set\");\n }\n return this._clientId_;\n }\n\n set clientId(clientId_: string) {\n this._clientId_ = clientId_;\n }\n\n get serverId() {\n if (!this._serverId_) {\n throw new Error(\"Trying to access serverId before it was set\");\n }\n return this._serverId_;\n }\n\n set serverId(serverId_: string) {\n this._serverId_ = serverId_;\n }\n\n keyPrefix(clientId: string) {\n return `/${this.clientName}/${this.serverId}/${clientId}`;\n }\n\n clientInfoKey(clientId: string) {\n return `${this.keyPrefix(clientId)}/client_info/`;\n }\n\n async clientInformation(): Promise<OAuthClientInformation | undefined> {\n if (!this._clientId_) {\n return undefined;\n }\n return (\n (await this.storage.get<OAuthClientInformation>(\n this.clientInfoKey(this.clientId)\n )) ?? undefined\n );\n }\n\n async saveClientInformation(\n clientInformation: OAuthClientInformationFull\n ): Promise<void> {\n await this.storage.put(\n this.clientInfoKey(clientInformation.client_id),\n clientInformation\n );\n this.clientId = clientInformation.client_id;\n }\n\n tokenKey(clientId: string) {\n return `${this.keyPrefix(clientId)}/token`;\n }\n\n async tokens(): Promise<OAuthTokens | undefined> {\n if (!this._clientId_) {\n return undefined;\n }\n return (\n (await this.storage.get<OAuthTokens>(this.tokenKey(this.clientId))) ??\n undefined\n );\n }\n\n async saveTokens(tokens: OAuthTokens): Promise<void> {\n await this.storage.put(this.tokenKey(this.clientId), tokens);\n }\n\n get authUrl() {\n return this._authUrl_;\n }\n\n /**\n * Because this operates on the server side (but we need browser auth), we send this url back to the user\n * and require user interact to initiate the redirect flow\n */\n async redirectToAuthorization(authUrl: URL): Promise<void> {\n // We want to track the client ID in state here because the typescript SSE client sometimes does\n // a dynamic client registration AFTER generating this redirect URL.\n const client_id = authUrl.searchParams.get(\"client_id\");\n if (client_id) {\n authUrl.searchParams.append(\"state\", client_id);\n }\n this._authUrl_ = authUrl.toString();\n }\n\n codeVerifierKey(clientId: string) {\n return `${this.keyPrefix(clientId)}/code_verifier`;\n }\n\n async saveCodeVerifier(verifier: string): Promise<void> {\n await this.storage.put(this.codeVerifierKey(this.clientId), verifier);\n }\n\n async codeVerifier(): Promise<string> {\n const codeVerifier = await this.storage.get<string>(\n this.codeVerifierKey(this.clientId)\n );\n if (!codeVerifier) {\n throw new Error(\"No code verifier found\");\n }\n return codeVerifier;\n }\n}\n"],"mappings":";AAgBO,IAAM,mCAAN,MAAsE;AAAA,EAK3E,YACS,SACA,YACA,iBACP;AAHO;AACA;AACA;AAAA,EACN;AAAA,EAEH,IAAI,iBAAsC;AACxC,WAAO;AAAA,MACL,aAAa,KAAK;AAAA,MAClB,YAAY,KAAK;AAAA,MACjB,aAAa,CAAC,sBAAsB,eAAe;AAAA,MACnD,eAAe,CAAC,KAAK,WAAW;AAAA,MAChC,gBAAgB,CAAC,MAAM;AAAA,MACvB,4BAA4B;AAAA,IAC9B;AAAA,EACF;AAAA,EAEA,IAAI,YAAY;AACd,W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