@agether/sdk 2.6.1 → 2.8.0
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 +39 -27
- package/dist/cli.js +54 -36
- package/dist/index.d.mts +43 -14
- package/dist/index.d.ts +43 -14
- package/dist/index.js +65 -32
- package/dist/index.mjs +62 -32
- package/package.json +2 -2
- package/dist/cli.d.ts +0 -27
- package/dist/cli.d.ts.map +0 -1
- package/dist/clients/AgentIdentityClient.d.ts +0 -188
- package/dist/clients/AgentIdentityClient.d.ts.map +0 -1
- package/dist/clients/AgentIdentityClient.js +0 -337
- package/dist/clients/AgetherClient.d.ts +0 -74
- package/dist/clients/AgetherClient.d.ts.map +0 -1
- package/dist/clients/AgetherClient.js +0 -172
- package/dist/clients/MorphoClient.d.ts +0 -482
- package/dist/clients/MorphoClient.d.ts.map +0 -1
- package/dist/clients/MorphoClient.js +0 -1717
- package/dist/clients/ScoringClient.d.ts +0 -89
- package/dist/clients/ScoringClient.d.ts.map +0 -1
- package/dist/clients/ScoringClient.js +0 -93
- package/dist/clients/X402Client.d.ts +0 -168
- package/dist/clients/X402Client.d.ts.map +0 -1
- package/dist/clients/X402Client.js +0 -378
- package/dist/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -132
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -46
- package/dist/utils/abis.d.ts +0 -29
- package/dist/utils/abis.d.ts.map +0 -1
- package/dist/utils/abis.js +0 -139
- package/dist/utils/config.d.ts +0 -36
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -168
- package/dist/utils/format.d.ts +0 -44
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -75
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ScoringClient — Client for the Agether backend scoring API
|
|
3
|
-
*
|
|
4
|
-
* Endpoints:
|
|
5
|
-
* GET /score/:agentId — x402-gated, compute + submit score onchain
|
|
6
|
-
* GET /score/:agentId/current — free, read current onchain score
|
|
7
|
-
* GET /health — service health
|
|
8
|
-
* GET /status — detailed status
|
|
9
|
-
* GET /agents/:agentId/details — agent details
|
|
10
|
-
*/
|
|
11
|
-
import { ScoreResult } from '../types';
|
|
12
|
-
import { X402Config } from './X402Client';
|
|
13
|
-
export interface ScoringClientConfig {
|
|
14
|
-
/** Backend base URL (e.g. http://95.179.189.214:3001) */
|
|
15
|
-
endpoint: string;
|
|
16
|
-
/** x402 config for paid scoring calls (optional — if not set, paid calls will fail) */
|
|
17
|
-
x402?: X402Config;
|
|
18
|
-
}
|
|
19
|
-
export declare class ScoringClient {
|
|
20
|
-
private client;
|
|
21
|
-
private x402Client?;
|
|
22
|
-
private endpoint;
|
|
23
|
-
constructor(config: ScoringClientConfig);
|
|
24
|
-
/**
|
|
25
|
-
* Request a fresh score computation.
|
|
26
|
-
*
|
|
27
|
-
* This is x402-gated: the backend returns 402, the X402Client
|
|
28
|
-
* signs an EIP-3009 payment, and the backend computes + submits
|
|
29
|
-
* the score onchain via AgentReputation.submitScore().
|
|
30
|
-
*
|
|
31
|
-
* Returns the ScoreResult with breakdown and txHash.
|
|
32
|
-
*/
|
|
33
|
-
requestScore(agentId: string | bigint): Promise<ScoreResult>;
|
|
34
|
-
/**
|
|
35
|
-
* Get the current onchain score (free, no payment required).
|
|
36
|
-
*/
|
|
37
|
-
getCurrentScore(agentId: string | bigint): Promise<{
|
|
38
|
-
agentId: string;
|
|
39
|
-
score: number;
|
|
40
|
-
timestamp: number;
|
|
41
|
-
signer: string;
|
|
42
|
-
fresh: boolean;
|
|
43
|
-
age: number;
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* Get detailed agent info from backend.
|
|
47
|
-
*/
|
|
48
|
-
getAgentDetails(agentId: string | bigint): Promise<{
|
|
49
|
-
agentId: string;
|
|
50
|
-
owner: string;
|
|
51
|
-
account: string;
|
|
52
|
-
accountExists: boolean;
|
|
53
|
-
kyaApproved: boolean;
|
|
54
|
-
score: number;
|
|
55
|
-
scoreFresh: boolean;
|
|
56
|
-
eligible: boolean;
|
|
57
|
-
}>;
|
|
58
|
-
/**
|
|
59
|
-
* Health check.
|
|
60
|
-
*/
|
|
61
|
-
getHealth(): Promise<{
|
|
62
|
-
status: string;
|
|
63
|
-
timestamp: string;
|
|
64
|
-
}>;
|
|
65
|
-
/**
|
|
66
|
-
* Detailed status (contracts, signer, chain).
|
|
67
|
-
*/
|
|
68
|
-
getStatus(): Promise<{
|
|
69
|
-
status: string;
|
|
70
|
-
chain: {
|
|
71
|
-
id: number;
|
|
72
|
-
name: string;
|
|
73
|
-
};
|
|
74
|
-
contracts: Record<string, string>;
|
|
75
|
-
scoring: {
|
|
76
|
-
priceUsdc: string;
|
|
77
|
-
x402PayToAddress: string;
|
|
78
|
-
};
|
|
79
|
-
signer: string;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
* Agent count and list.
|
|
83
|
-
*/
|
|
84
|
-
getAgentCount(): Promise<{
|
|
85
|
-
totalAgents: number;
|
|
86
|
-
totalAccounts: number;
|
|
87
|
-
}>;
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=ScoringClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScoringClient.d.ts","sourceRoot":"","sources":["../../src/clients/ScoringClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;AACrD,OAAO,EAAc,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,uFAAuF;IACvF,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,UAAU,CAAC,CAAa;IAChC,OAAO,CAAC,QAAQ,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AAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;CAI/E"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ScoringClient — Client for the Agether backend scoring API
|
|
3
|
-
*
|
|
4
|
-
* Endpoints:
|
|
5
|
-
* GET /score/:agentId — x402-gated, compute + submit score onchain
|
|
6
|
-
* GET /score/:agentId/current — free, read current onchain score
|
|
7
|
-
* GET /health — service health
|
|
8
|
-
* GET /status — detailed status
|
|
9
|
-
* GET /agents/:agentId/details — agent details
|
|
10
|
-
*/
|
|
11
|
-
import axios from 'axios';
|
|
12
|
-
import { AgetherError } from '../types';
|
|
13
|
-
import { X402Client } from './X402Client';
|
|
14
|
-
export class ScoringClient {
|
|
15
|
-
constructor(config) {
|
|
16
|
-
this.endpoint = config.endpoint;
|
|
17
|
-
this.client = axios.create({
|
|
18
|
-
baseURL: config.endpoint,
|
|
19
|
-
headers: { 'Content-Type': 'application/json' },
|
|
20
|
-
timeout: 30000,
|
|
21
|
-
});
|
|
22
|
-
if (config.x402) {
|
|
23
|
-
this.x402Client = new X402Client(config.x402);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
// ════════════════════════════════════════════════════════
|
|
27
|
-
// Score (x402-gated — computes & submits onchain)
|
|
28
|
-
// ════════════════════════════════════════════════════════
|
|
29
|
-
/**
|
|
30
|
-
* Request a fresh score computation.
|
|
31
|
-
*
|
|
32
|
-
* This is x402-gated: the backend returns 402, the X402Client
|
|
33
|
-
* signs an EIP-3009 payment, and the backend computes + submits
|
|
34
|
-
* the score onchain via AgentReputation.submitScore().
|
|
35
|
-
*
|
|
36
|
-
* Returns the ScoreResult with breakdown and txHash.
|
|
37
|
-
*/
|
|
38
|
-
async requestScore(agentId) {
|
|
39
|
-
const id = agentId.toString();
|
|
40
|
-
if (!this.x402Client) {
|
|
41
|
-
throw new AgetherError('x402 config required for paid scoring. Provide x402 in ScoringClientConfig.', 'X402_NOT_CONFIGURED');
|
|
42
|
-
}
|
|
43
|
-
const result = await this.x402Client.get(`${this.endpoint}/score/${id}`);
|
|
44
|
-
if (!result.success || !result.data) {
|
|
45
|
-
throw new AgetherError(`Scoring request failed: ${result.error || 'unknown error'}`, 'SCORING_FAILED');
|
|
46
|
-
}
|
|
47
|
-
return result.data;
|
|
48
|
-
}
|
|
49
|
-
// ════════════════════════════════════════════════════════
|
|
50
|
-
// Current Score (free — reads onchain)
|
|
51
|
-
// ════════════════════════════════════════════════════════
|
|
52
|
-
/**
|
|
53
|
-
* Get the current onchain score (free, no payment required).
|
|
54
|
-
*/
|
|
55
|
-
async getCurrentScore(agentId) {
|
|
56
|
-
const response = await this.client.get(`/score/${agentId.toString()}/current`);
|
|
57
|
-
return response.data;
|
|
58
|
-
}
|
|
59
|
-
// ════════════════════════════════════════════════════════
|
|
60
|
-
// Agent Details
|
|
61
|
-
// ════════════════════════════════════════════════════════
|
|
62
|
-
/**
|
|
63
|
-
* Get detailed agent info from backend.
|
|
64
|
-
*/
|
|
65
|
-
async getAgentDetails(agentId) {
|
|
66
|
-
const response = await this.client.get(`/agents/${agentId.toString()}/details`);
|
|
67
|
-
return response.data;
|
|
68
|
-
}
|
|
69
|
-
// ════════════════════════════════════════════════════════
|
|
70
|
-
// Service Status
|
|
71
|
-
// ════════════════════════════════════════════════════════
|
|
72
|
-
/**
|
|
73
|
-
* Health check.
|
|
74
|
-
*/
|
|
75
|
-
async getHealth() {
|
|
76
|
-
const response = await this.client.get('/health');
|
|
77
|
-
return response.data;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Detailed status (contracts, signer, chain).
|
|
81
|
-
*/
|
|
82
|
-
async getStatus() {
|
|
83
|
-
const response = await this.client.get('/status');
|
|
84
|
-
return response.data;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Agent count and list.
|
|
88
|
-
*/
|
|
89
|
-
async getAgentCount() {
|
|
90
|
-
const response = await this.client.get('/agents/count');
|
|
91
|
-
return response.data;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* x402 HTTP Client — Make paid API calls via the x402 protocol (v2)
|
|
3
|
-
*
|
|
4
|
-
* Built on top of the official @x402/fetch + @x402/evm SDK.
|
|
5
|
-
* https://docs.x402.org/getting-started/quickstart-for-buyers
|
|
6
|
-
*
|
|
7
|
-
* Flow:
|
|
8
|
-
* 1. Client → Resource Server (normal request)
|
|
9
|
-
* 2. Resource Server → 402 with PAYMENT-REQUIRED header (base64 JSON)
|
|
10
|
-
* 3. @x402/fetch auto-picks PaymentRequirements, signs EIP-3009 via EVM scheme
|
|
11
|
-
* 4. Client → Resource Server (retries with PAYMENT-SIGNATURE header)
|
|
12
|
-
* 5. Resource Server → verifies via facilitator → settles → 200 + data
|
|
13
|
-
*
|
|
14
|
-
* Auto-Draw: When autoDraw is enabled and USDC balance is insufficient,
|
|
15
|
-
* the client automatically borrows from Morpho Blue before paying.
|
|
16
|
-
*
|
|
17
|
-
* Spending Limits: Optional daily spending cap (dailySpendLimitUsdc) and
|
|
18
|
-
* yield-limited spending (yieldLimitedSpending) to keep borrows within
|
|
19
|
-
* theoretical collateral yield.
|
|
20
|
-
*
|
|
21
|
-
* Chain support: Base (8453), Base Sepolia (84532), Ethereum (1).
|
|
22
|
-
*/
|
|
23
|
-
import type { WalletClient } from 'viem';
|
|
24
|
-
/**
|
|
25
|
-
* Convenience type alias for any viem-compatible WalletClient.
|
|
26
|
-
* Use this when declaring variables or parameters that accept
|
|
27
|
-
* viem WalletClient instances from Privy, Turnkey, MetaMask, etc.
|
|
28
|
-
*/
|
|
29
|
-
export type AgetherViemWallet = WalletClient;
|
|
30
|
-
/** Base configuration fields shared by both signing modes. */
|
|
31
|
-
interface X402BaseConfig {
|
|
32
|
-
rpcUrl: string;
|
|
33
|
-
backendUrl: string;
|
|
34
|
-
agentId?: string;
|
|
35
|
-
accountAddress?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Auto-draw: automatically borrow from Morpho Blue when USDC balance
|
|
38
|
-
* is insufficient for x402 payment. Requires agentId to be set.
|
|
39
|
-
* Default: false
|
|
40
|
-
*/
|
|
41
|
-
autoDraw?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Daily spending limit in USDC (e.g. '100' for $100/day).
|
|
44
|
-
* Tracks cumulative daily borrows and rejects auto-draw if exceeded.
|
|
45
|
-
*/
|
|
46
|
-
dailySpendLimitUsdc?: string;
|
|
47
|
-
/**
|
|
48
|
-
* When true, auto-calculates the daily spending limit based on
|
|
49
|
-
* theoretical yield of deposited collateral. Overrides dailySpendLimitUsdc.
|
|
50
|
-
*/
|
|
51
|
-
yieldLimitedSpending?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Safety margin: borrow this much extra beyond what's needed (in USDC, e.g. '1').
|
|
54
|
-
* Helps avoid rounding issues. Default: '0.5'
|
|
55
|
-
*/
|
|
56
|
-
autoDrawBuffer?: string;
|
|
57
|
-
/**
|
|
58
|
-
* ERC-7579 validator module address (e.g. Agether8004ValidationModule).
|
|
59
|
-
* Required for Safe7579 smart wallets so that `isValidSignature` calls
|
|
60
|
-
* are routed through the correct validator. The signature is prefixed
|
|
61
|
-
* with this 20-byte address before being sent.
|
|
62
|
-
*/
|
|
63
|
-
validatorModule?: string;
|
|
64
|
-
}
|
|
65
|
-
/** Config with SDK-managed private key (existing behavior). */
|
|
66
|
-
interface X402PrivateKeyConfig extends X402BaseConfig {
|
|
67
|
-
/** Raw hex private key (with or without '0x' prefix). SDK creates the wallet internally. */
|
|
68
|
-
privateKey: string;
|
|
69
|
-
walletClient?: never;
|
|
70
|
-
}
|
|
71
|
-
/** Config with caller-provided viem WalletClient (custody-agnostic). */
|
|
72
|
-
interface X402WalletClientConfig extends X402BaseConfig {
|
|
73
|
-
/**
|
|
74
|
-
* A viem WalletClient with an attached account (e.g. from Privy, Turnkey, MetaMask).
|
|
75
|
-
* The client **must** have an `account` property set. The SDK will use it for
|
|
76
|
-
* EIP-712 typed-data signing and will never recreate or reconnect the client.
|
|
77
|
-
*/
|
|
78
|
-
walletClient: WalletClient;
|
|
79
|
-
privateKey?: never;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* X402Client configuration.
|
|
83
|
-
*
|
|
84
|
-
* Provide **either** `privateKey` (SDK manages wallet) **or** `walletClient`
|
|
85
|
-
* (external custody provider). The two fields are mutually exclusive.
|
|
86
|
-
*/
|
|
87
|
-
export type X402Config = X402PrivateKeyConfig | X402WalletClientConfig;
|
|
88
|
-
export interface X402Response<T = unknown> {
|
|
89
|
-
success: boolean;
|
|
90
|
-
data?: T;
|
|
91
|
-
error?: string;
|
|
92
|
-
paymentInfo?: {
|
|
93
|
-
amount: string;
|
|
94
|
-
asset: string;
|
|
95
|
-
network: string;
|
|
96
|
-
txHash?: string;
|
|
97
|
-
};
|
|
98
|
-
autoDrawInfo?: {
|
|
99
|
-
borrowed: string;
|
|
100
|
-
borrowTx: string;
|
|
101
|
-
reason: string;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
/** One item inside the `accepts` array returned by the resource server */
|
|
105
|
-
export interface PaymentRequirements {
|
|
106
|
-
scheme: string;
|
|
107
|
-
network: string;
|
|
108
|
-
amount: string;
|
|
109
|
-
asset: string;
|
|
110
|
-
payTo: string;
|
|
111
|
-
maxTimeoutSeconds: number;
|
|
112
|
-
extra?: Record<string, unknown>;
|
|
113
|
-
}
|
|
114
|
-
/** Spending tracker — tracks cumulative daily borrows */
|
|
115
|
-
export interface SpendingTracker {
|
|
116
|
-
/** Date string (YYYY-MM-DD UTC) */
|
|
117
|
-
date: string;
|
|
118
|
-
/** Cumulative USDC borrowed today (6 decimal raw units) */
|
|
119
|
-
totalBorrowed: bigint;
|
|
120
|
-
/** Daily limit in raw units (6 decimals), 0 = unlimited */
|
|
121
|
-
dailyLimit: bigint;
|
|
122
|
-
}
|
|
123
|
-
export declare class X402Client {
|
|
124
|
-
private config;
|
|
125
|
-
private paidFetch;
|
|
126
|
-
private address;
|
|
127
|
-
private _spendingTracker;
|
|
128
|
-
constructor(config: X402Config);
|
|
129
|
-
get<T = unknown>(url: string, opts?: RequestInit): Promise<X402Response<T>>;
|
|
130
|
-
post<T = unknown>(url: string, body?: unknown, opts?: RequestInit): Promise<X402Response<T>>;
|
|
131
|
-
getAddress(): string;
|
|
132
|
-
/** Get the current spending tracker state */
|
|
133
|
-
getSpendingTracker(): SpendingTracker;
|
|
134
|
-
/** Get remaining daily spending allowance in USDC (human-readable) */
|
|
135
|
-
getRemainingDailyAllowance(): string;
|
|
136
|
-
/**
|
|
137
|
-
* Pay with auto-draw: Make an x402 request with automatic Morpho borrowing.
|
|
138
|
-
*
|
|
139
|
-
* Flow:
|
|
140
|
-
* 1. Check USDC balance on AgentAccount
|
|
141
|
-
* 2. Probe the URL to discover payment amount (if 402)
|
|
142
|
-
* 3. If insufficient USDC, calculate deficit
|
|
143
|
-
* 4. Check spending limit
|
|
144
|
-
* 5. Borrow from Morpho via MorphoClient
|
|
145
|
-
* 6. Proceed with x402 payment
|
|
146
|
-
*/
|
|
147
|
-
payWithAutoDraw<T = unknown>(url: string, opts?: RequestInit & {
|
|
148
|
-
morphoClient?: any;
|
|
149
|
-
}): Promise<X402Response<T>>;
|
|
150
|
-
private request;
|
|
151
|
-
/**
|
|
152
|
-
* Probe a URL to discover payment requirements without paying.
|
|
153
|
-
* Makes a request and parses the 402 PAYMENT-REQUIRED header.
|
|
154
|
-
* @returns Payment amount in raw USDC units (6 decimals), or null if not a 402.
|
|
155
|
-
*/
|
|
156
|
-
private _probePaymentAmount;
|
|
157
|
-
/** Reset spending tracker if it's a new day */
|
|
158
|
-
private _resetTrackerIfNewDay;
|
|
159
|
-
/** Track a new spending amount */
|
|
160
|
-
private _trackSpending;
|
|
161
|
-
/**
|
|
162
|
-
* Check if a borrow amount is within spending limits.
|
|
163
|
-
* Considers both fixed daily limits and yield-limited spending.
|
|
164
|
-
*/
|
|
165
|
-
private _checkSpendingLimit;
|
|
166
|
-
}
|
|
167
|
-
export {};
|
|
168
|
-
//# sourceMappingURL=X402Client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"X402Client.d.ts","sourceRoot":"","sources":["../../src/clients/X402Client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIzC;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE7C,8DAA8D;AAC9D,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,+DAA+D;AAC/D,UAAU,oBAAqB,SAAQ,cAAc;IACnD,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,wEAAwE;AACxE,UAAU,sBAAuB,SAAQ,cAAc;IACrD;;;;OAIG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAEvE,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,C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