wowok_agent 1.6.6 → 2.1.8
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.
Potentially problematic release.
This version of wowok_agent might be problematic. Click here for more details.
- package/README.md +20 -40
- package/dist/index.d.ts +13528 -27
- package/dist/index.js +1026 -27
- package/dist/schema/call/allocation.d.ts +1370 -0
- package/dist/schema/call/allocation.js +27 -0
- package/dist/schema/call/arbitration.d.ts +1902 -0
- package/dist/schema/call/arbitration.js +106 -0
- package/dist/schema/call/base.d.ts +6381 -0
- package/dist/schema/call/base.js +152 -0
- package/dist/schema/call/contact.d.ts +898 -0
- package/dist/schema/call/contact.js +41 -0
- package/dist/schema/call/demand.d.ts +1193 -0
- package/dist/schema/call/demand.js +51 -0
- package/dist/schema/call/guard.d.ts +819 -0
- package/dist/schema/call/guard.js +67 -0
- package/dist/schema/call/handler.d.ts +80 -0
- package/dist/schema/call/handler.js +177 -0
- package/dist/schema/call/index.d.ts +18 -0
- package/dist/schema/call/index.js +19 -0
- package/dist/schema/call/machine.d.ts +3906 -0
- package/dist/schema/call/machine.js +164 -0
- package/dist/schema/call/order.d.ts +994 -0
- package/dist/schema/call/order.js +39 -0
- package/dist/schema/call/payment.d.ts +408 -0
- package/dist/schema/call/payment.js +20 -0
- package/dist/schema/call/permission.d.ts +2945 -0
- package/dist/schema/call/permission.js +118 -0
- package/dist/schema/call/personal.d.ts +1498 -0
- package/dist/schema/call/personal.js +81 -0
- package/dist/schema/call/progress.d.ts +847 -0
- package/dist/schema/call/progress.js +37 -0
- package/dist/schema/call/proof.d.ts +328 -0
- package/dist/schema/call/proof.js +27 -0
- package/dist/schema/call/repository.d.ts +2220 -0
- package/dist/schema/call/repository.js +85 -0
- package/dist/schema/call/reward.d.ts +1178 -0
- package/dist/schema/call/reward.js +46 -0
- package/dist/schema/call/service.d.ts +3534 -0
- package/dist/schema/call/service.js +87 -0
- package/dist/schema/call/treasury.d.ts +2399 -0
- package/dist/schema/call/treasury.js +76 -0
- package/dist/schema/common/index.d.ts +623 -0
- package/dist/schema/common/index.js +331 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.js +8 -0
- package/dist/schema/local/index.d.ts +7824 -0
- package/dist/schema/local/index.js +913 -0
- package/dist/schema/local/wip.d.ts +781 -0
- package/dist/schema/local/wip.js +229 -0
- package/dist/schema/messenger/index.d.ts +3624 -0
- package/dist/schema/messenger/index.js +407 -0
- package/dist/schema/query/index.d.ts +27176 -0
- package/dist/schema/query/index.js +1313 -0
- package/dist/schema/utils/guard-parser.d.ts +20 -0
- package/dist/schema/utils/guard-parser.js +410 -0
- package/dist/schema/utils/guard-query-utils.d.ts +5 -0
- package/dist/schema/utils/guard-query-utils.js +22 -0
- package/dist/schema/utils/node-parser.d.ts +59 -0
- package/dist/schema/utils/node-parser.js +382 -0
- package/dist/schema/utils/permission-index-utils.d.ts +2 -0
- package/dist/schema/utils/permission-index-utils.js +10 -0
- package/package.json +31 -49
- package/LICENSE +0 -201
- package/dist/call/arbitration.d.ts +0 -57
- package/dist/call/arbitration.d.ts.map +0 -1
- package/dist/call/arbitration.js +0 -245
- package/dist/call/arbitration.js.map +0 -1
- package/dist/call/base.d.ts +0 -85
- package/dist/call/base.d.ts.map +0 -1
- package/dist/call/base.js +0 -231
- package/dist/call/base.js.map +0 -1
- package/dist/call/call.d.ts +0 -95
- package/dist/call/call.d.ts.map +0 -1
- package/dist/call/call.js +0 -149
- package/dist/call/call.js.map +0 -1
- package/dist/call/demand.d.ts +0 -46
- package/dist/call/demand.d.ts.map +0 -1
- package/dist/call/demand.js +0 -201
- package/dist/call/demand.js.map +0 -1
- package/dist/call/guard.d.ts +0 -53
- package/dist/call/guard.d.ts.map +0 -1
- package/dist/call/guard.js +0 -386
- package/dist/call/guard.js.map +0 -1
- package/dist/call/machine.d.ts +0 -97
- package/dist/call/machine.d.ts.map +0 -1
- package/dist/call/machine.js +0 -342
- package/dist/call/machine.js.map +0 -1
- package/dist/call/object_permission.d.ts +0 -14
- package/dist/call/object_permission.d.ts.map +0 -1
- package/dist/call/object_permission.js +0 -59
- package/dist/call/object_permission.js.map +0 -1
- package/dist/call/permission.d.ts +0 -63
- package/dist/call/permission.d.ts.map +0 -1
- package/dist/call/permission.js +0 -137
- package/dist/call/permission.js.map +0 -1
- package/dist/call/personal.d.ts +0 -47
- package/dist/call/personal.d.ts.map +0 -1
- package/dist/call/personal.js +0 -119
- package/dist/call/personal.js.map +0 -1
- package/dist/call/repository.d.ts +0 -117
- package/dist/call/repository.d.ts.map +0 -1
- package/dist/call/repository.js +0 -408
- package/dist/call/repository.js.map +0 -1
- package/dist/call/service.d.ts +0 -115
- package/dist/call/service.d.ts.map +0 -1
- package/dist/call/service.js +0 -550
- package/dist/call/service.js.map +0 -1
- package/dist/call/treasury.d.ts +0 -46
- package/dist/call/treasury.d.ts.map +0 -1
- package/dist/call/treasury.js +0 -222
- package/dist/call/treasury.js.map +0 -1
- package/dist/common.d.ts +0 -12
- package/dist/common.d.ts.map +0 -1
- package/dist/common.js +0 -71
- package/dist/common.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/local/.d.ts +0 -20
- package/dist/local/.d.ts.map +0 -1
- package/dist/local/.js +0 -76
- package/dist/local/.js.map +0 -1
- package/dist/local/account.d.ts +0 -42
- package/dist/local/account.d.ts.map +0 -1
- package/dist/local/account.js +0 -335
- package/dist/local/account.js.map +0 -1
- package/dist/local/cache.d.ts +0 -32
- package/dist/local/cache.d.ts.map +0 -1
- package/dist/local/cache.js +0 -77
- package/dist/local/cache.js.map +0 -1
- package/dist/local/coin.d.ts +0 -22
- package/dist/local/coin.d.ts.map +0 -1
- package/dist/local/coin.js +0 -123
- package/dist/local/coin.js.map +0 -1
- package/dist/local/config.d.ts +0 -20
- package/dist/local/config.d.ts.map +0 -1
- package/dist/local/config.js +0 -75
- package/dist/local/config.js.map +0 -1
- package/dist/local/index.d.ts +0 -110
- package/dist/local/index.d.ts.map +0 -1
- package/dist/local/index.js +0 -122
- package/dist/local/index.js.map +0 -1
- package/dist/local/local.d.ts +0 -55
- package/dist/local/local.d.ts.map +0 -1
- package/dist/local/local.js +0 -248
- package/dist/local/local.js.map +0 -1
- package/dist/query/events.d.ts +0 -65
- package/dist/query/events.d.ts.map +0 -1
- package/dist/query/events.js +0 -75
- package/dist/query/events.js.map +0 -1
- package/dist/query/objects.d.ts +0 -346
- package/dist/query/objects.d.ts.map +0 -1
- package/dist/query/objects.js +0 -472
- package/dist/query/objects.js.map +0 -1
- package/dist/query/permission.d.ts +0 -15
- package/dist/query/permission.d.ts.map +0 -1
- package/dist/query/permission.js +0 -45
- package/dist/query/permission.js.map +0 -1
- package/dist/query/received.d.ts +0 -16
- package/dist/query/received.d.ts.map +0 -1
- package/dist/query/received.js +0 -16
- package/dist/query/received.js.map +0 -1
- package/dist/schema/call.d.ts +0 -13005
- package/dist/schema/call.d.ts.map +0 -1
- package/dist/schema/call.js +0 -997
- package/dist/schema/call.js.map +0 -1
- package/dist/schema/const.d.ts +0 -254
- package/dist/schema/const.d.ts.map +0 -1
- package/dist/schema/const.js +0 -305
- package/dist/schema/const.js.map +0 -1
- package/dist/schema/local.d.ts +0 -702
- package/dist/schema/local.d.ts.map +0 -1
- package/dist/schema/local.js +0 -150
- package/dist/schema/local.js.map +0 -1
- package/dist/schema/query.d.ts +0 -1465
- package/dist/schema/query.d.ts.map +0 -1
- package/dist/schema/query.js +0 -224
- package/dist/schema/query.js.map +0 -1
- package/dist/schema/util.d.ts +0 -71
- package/dist/schema/util.d.ts.map +0 -1
- package/dist/schema/util.js +0 -139
- package/dist/schema/util.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../src/schema/local.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOlD,e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AAC;AACxR,eAAO,MAAM,mBAAmB,gDAC9B,CAAC;AAEH,eAAO,MAAM,4BAA4B,wSAAwS,CAAC;AAClV,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,2BAA2B,4gBAIsF,CAAC;AAC/H,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAC;AACH,eAAO,MAAM,qBAAqB;;;;;CAEjC,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOiD,CAAC;AAElF,eAAO,MAAM,wBAAwB;;;;;CAEpC,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIwB,CAAC;AAEzD,eAAO,MAAM,wBAAwB;;;;;CAEpC,CAAA"}
|
package/dist/schema/local.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { BalanceOrCoin } from "../local/index.js";
|
|
3
|
-
import { LocalInfoNameDefault } from '../local/local.js';
|
|
4
|
-
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
5
|
-
import * as D from './const.js';
|
|
6
|
-
import { SessionSchema } from "./call.js";
|
|
7
|
-
export const QueryAccountSchemaDescription = `Query local account information, including on-chain address, token balance, and list of token object addresses.`;
|
|
8
|
-
export const QueryAccountSchema = z.object({
|
|
9
|
-
name_or_address: z.string().optional().describe("Your account name or address. undefined means default account."),
|
|
10
|
-
balance_or_coin: z.nativeEnum(BalanceOrCoin).optional().describe("Query the balance or coin objects of the account."),
|
|
11
|
-
token_type: z.string().optional().describe("Token type, default to the platform token if not specified."),
|
|
12
|
-
session: SessionSchema,
|
|
13
|
-
});
|
|
14
|
-
export const AccountOperationSchemaDescription = `Account operations, including generating new accounts, suspending/resume accounts, naming accounts,
|
|
15
|
-
swapping names of two accounts, and transferring tokens between accounts. Note that the 'name' or 'name_or_address' undefined or equal to '' means the 'default' account`;
|
|
16
|
-
export const AccountOperationSchema = z.object({
|
|
17
|
-
gen: z.object({
|
|
18
|
-
name: z.string().optional().describe("Account name"),
|
|
19
|
-
}).optional().describe("Generate a new account"),
|
|
20
|
-
suspend: z.object({
|
|
21
|
-
name_or_address: z.string().optional().describe("The name or address of the account to suspend"),
|
|
22
|
-
}).optional().describe("Suspend an account."),
|
|
23
|
-
resume: z.object({
|
|
24
|
-
address: z.string().describe("The address of the account to resume"),
|
|
25
|
-
name: z.string().optional().describe("The name to set for the account"),
|
|
26
|
-
}).optional().describe("Resume an account"),
|
|
27
|
-
name: z.object({
|
|
28
|
-
new_name: z.string().nonempty().describe("The name to set for the account"),
|
|
29
|
-
name_or_address: z.string().optional().describe("The name or address of the account to set the name for"),
|
|
30
|
-
}).optional().describe("Set the name of the account"),
|
|
31
|
-
swap_names: z.object({
|
|
32
|
-
name1: z.string().optional().describe("The name of the first account"),
|
|
33
|
-
name2: z.string().optional().describe("The name of the second account"),
|
|
34
|
-
}).optional().describe("Swap the names of two accounts"),
|
|
35
|
-
transfer: z.object({
|
|
36
|
-
name_or_address_from: z.string().optional().describe("The name or address of the account to transfer from"),
|
|
37
|
-
name_or_address_to: z.string().optional().describe("The name or address of the account to transfer to"),
|
|
38
|
-
amount: z.union([z.string(), z.number()]).describe("The amount to transfer. Must be a positive integer"),
|
|
39
|
-
token_type: z.string().optional().describe("Token type, default to the platform token if not specified"),
|
|
40
|
-
}).optional().describe("Transfer tokens from one account to another"),
|
|
41
|
-
faucet: z.boolean().optional().describe(D.Faucet)
|
|
42
|
-
});
|
|
43
|
-
export const AccountOperationSchemaInput = () => {
|
|
44
|
-
return zodToJsonSchema(AccountOperationSchema);
|
|
45
|
-
};
|
|
46
|
-
export const LocalMarkOperationSchemaDescription = `Local mark operations facilitate efficient object address management by assigning names and tags to addresses, enabling faster querying and organization.
|
|
47
|
-
Supported operations include adding/setting marks (with optional names and tags), removing specific tags, and removing all marks for addresses.`;
|
|
48
|
-
export const LocalMarkOperationSchema = z.object({
|
|
49
|
-
data: z.union([
|
|
50
|
-
z.object({ op: z.literal('removeall') }).describe("Remove all local marks."),
|
|
51
|
-
z.object({ op: z.literal('add'), data: z.array(z.object({
|
|
52
|
-
name: z.string().describe("The name of the mark."),
|
|
53
|
-
address: z.string().describe("The address to mark."),
|
|
54
|
-
tags: z.array(z.string()).optional().describe("The tags of the mark."),
|
|
55
|
-
useAddressIfNameExist: z.boolean().optional().describe("Whether to use the address if the name already exists. Otherwise, use this name and change the original name to its address."),
|
|
56
|
-
})) }).describe("Add or set local marks."),
|
|
57
|
-
z.object({ op: z.literal('remove'), data: z.array(z.string().describe('The name of the mark')) }).describe("Remove local marks."),
|
|
58
|
-
])
|
|
59
|
-
});
|
|
60
|
-
export const LocalMarkOperationSchemaInput = () => {
|
|
61
|
-
return zodToJsonSchema(LocalMarkOperationSchema);
|
|
62
|
-
};
|
|
63
|
-
export const LocalInfoOperationSchemaDescription = `Local info operations manage on-device storage of personal information (e.g., delivery addresses, phone numbers) for cryptographic processing and secure sharing with service providers. Supported operations include: adding info (requires name and content parameters), removing specific info entries by name, and updating existing entries with new content.`;
|
|
64
|
-
export const LocalInfoOperationSchema = z.object({
|
|
65
|
-
data: z.union([
|
|
66
|
-
z.object({
|
|
67
|
-
op: z.literal('removeall')
|
|
68
|
-
}).describe("Whether to remove all local info."),
|
|
69
|
-
z.object({
|
|
70
|
-
op: z.literal('add'),
|
|
71
|
-
data: z.array(z.object({
|
|
72
|
-
name: z.string().default(LocalInfoNameDefault).describe("The name of the local info."),
|
|
73
|
-
content: z.string().describe("The content of the local info."),
|
|
74
|
-
bdefault: z.boolean().optional().describe("Whether to set the content as default."),
|
|
75
|
-
}))
|
|
76
|
-
}).describe("Add local info."),
|
|
77
|
-
z.object({
|
|
78
|
-
op: z.literal('remove'),
|
|
79
|
-
data: z.array(z.string().describe('The name of the local info.'))
|
|
80
|
-
}).describe("Remove local info by name."),
|
|
81
|
-
])
|
|
82
|
-
});
|
|
83
|
-
export const LocalInfoOperationSchemaInput = () => {
|
|
84
|
-
return zodToJsonSchema(LocalInfoOperationSchema);
|
|
85
|
-
};
|
|
86
|
-
export const QueryLocalMarkSchemaDescription = `Query local mark by name. Accepts a local mark name (string) as input, and returns an object containing: address (on-chain object address), name (assigned human-readable name), and tags (array of string tags). Local marks enable faster address management by mapping addresses to memorable names and categorized tags for efficient querying.`;
|
|
87
|
-
export const QueryLocalMarkSchema = z.object({
|
|
88
|
-
name: z.string().describe("The name of the local mark."),
|
|
89
|
-
});
|
|
90
|
-
export const QueryLocalMarkSchemaInput = () => {
|
|
91
|
-
return zodToJsonSchema(QueryLocalMarkSchema);
|
|
92
|
-
};
|
|
93
|
-
export const QueryLocalInfoSchemaDescription = `Query local info by name. Local info allows storing personal information (e.g. addresses, phone numbers) on-device, which can be cryptographically processed and shared with service providers.`;
|
|
94
|
-
export const QueryLocalInfoSchema = z.object({
|
|
95
|
-
name: z.string().default(LocalInfoNameDefault).describe("The name of the local info."),
|
|
96
|
-
});
|
|
97
|
-
export const QueryLocalInfoSchemaInput = () => {
|
|
98
|
-
return zodToJsonSchema(QueryLocalInfoSchema);
|
|
99
|
-
};
|
|
100
|
-
export const localMarkListDescription = 'List local marks. Local marks facilitate efficient object address management by assigning names and tags to addresses, enabling faster querying and organization.';
|
|
101
|
-
export const LocalMarkFilterSchemaDescription = `Filter local marks by optional criteria: name (string), tags (array of strings), or object address (string). Parameters can be used individually or in combination for precise queries. Returns an array of local mark objects, each containing: address (on-chain object address), name (human-readable name), and tags (categorical tags). Local marks enhance address management efficiency through flexible multi-condition filtering.`;
|
|
102
|
-
export const LocalMarkFilterSchema = z.object({
|
|
103
|
-
name: z.string().optional().describe("The name of the local mark."),
|
|
104
|
-
tags: z.array(z.string()).optional().describe("The tags of the local mark."),
|
|
105
|
-
address: z.string().optional().describe("The object or address of the local mark."),
|
|
106
|
-
});
|
|
107
|
-
export const LocalInfoListSchemaDescription = `List local information entries. Local info enables on-device storage of personal data (e.g., addresses, phone numbers) structured as name-content pairs, supporting cryptographic processing and secure sharing with service providers.`;
|
|
108
|
-
export const LocalInfoListSchema = z.object({});
|
|
109
|
-
export const AccountListSchemaDescription = `List local accounts stored on the device. Accounts provide cryptographic signatures for on-chain operations and support management/operation of their owned on-chain objects and funds. If showSuspendedAccount is set to true (default: false), suspended accounts will be included in the result.`;
|
|
110
|
-
export const AccountListSchema = z.object({
|
|
111
|
-
showSuspendedAccount: z.boolean().optional().default(false).describe("Whether to display suspended accounts."),
|
|
112
|
-
});
|
|
113
|
-
export const QueryLocalSchemaDescription = `Local schema for querying accounts, address names/tags, and personal information stored on the device.
|
|
114
|
-
- **Accounts**: Manages local accounts used for signing on-chain transactions.
|
|
115
|
-
- **Address Marks**: Supports naming and tagging of addresses to enable object address retrieval by name.
|
|
116
|
-
- **Personal Information**: Stores private data (e.g., addresses, phone numbers) for on-chain usage.
|
|
117
|
-
Supports both collection-level queries (retrieving multiple entries) and individual item queries (fetching specific records).`;
|
|
118
|
-
export const QueryLocalSchema = z.object({
|
|
119
|
-
query: z.union([
|
|
120
|
-
z.object({ name: z.literal('account_list'), data: AccountListSchema }).describe(AccountListSchemaDescription),
|
|
121
|
-
z.object({ name: z.literal('info_list'), data: LocalInfoListSchema }).describe(LocalInfoListSchemaDescription),
|
|
122
|
-
z.object({ name: z.literal('mark_list'), data: LocalMarkFilterSchema }).describe(LocalMarkFilterSchemaDescription),
|
|
123
|
-
z.object({ name: z.literal('account'), data: QueryAccountSchema }).describe(QueryAccountSchemaDescription),
|
|
124
|
-
z.object({ name: z.literal('mark'), data: QueryLocalMarkSchema }).describe(QueryLocalMarkSchemaDescription),
|
|
125
|
-
z.object({ name: z.literal('info'), data: QueryLocalInfoSchema }).describe(QueryLocalInfoSchemaDescription),
|
|
126
|
-
])
|
|
127
|
-
});
|
|
128
|
-
export const QueryLocalSchemaInput = () => {
|
|
129
|
-
return zodToJsonSchema(QueryLocalSchema);
|
|
130
|
-
};
|
|
131
|
-
export const QueryCoinInfoSchema = z.object({
|
|
132
|
-
filter: z.union([z.object({
|
|
133
|
-
alias_or_name: z.string().optional().describe(`by alias or name`),
|
|
134
|
-
symbol: z.string().optional().describe(`by symbol`),
|
|
135
|
-
coinType: z.string().optional().describe(`by coin type(e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC)`),
|
|
136
|
-
}), z.literal('all fetched').describe('Query all the coin information that has been fetched')]),
|
|
137
|
-
session: SessionSchema
|
|
138
|
-
}).describe(`By specifying (all-satisfying) information, query coin information`);
|
|
139
|
-
export const QueryCoinInfoSchemaInput = () => {
|
|
140
|
-
return zodToJsonSchema(QueryCoinInfoSchema);
|
|
141
|
-
};
|
|
142
|
-
export const CoinInfoFetchSchema = z.object({
|
|
143
|
-
coinType: z.string().describe(`Coin type(e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC)`),
|
|
144
|
-
alias: z.string().optional().describe(`alias name`),
|
|
145
|
-
session: SessionSchema,
|
|
146
|
-
}).describe(`Fetch detailed information about the coin`);
|
|
147
|
-
export const CoinInfoFetchSchemaInput = () => {
|
|
148
|
-
return zodToJsonSchema(CoinInfoFetchSchema);
|
|
149
|
-
};
|
|
150
|
-
//# sourceMappingURL=local.js.map
|
package/dist/schema/local.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../src/schema/local.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,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