@wowok/agent-mcp 2.2.13 → 2.2.15
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 +19 -11
- package/dist/index.js +44 -100
- package/dist/schema/query/index.js +1 -1
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +7 -5
- package/dist/docs/index.d.ts +0 -3
- package/dist/docs/index.js +0 -2
- package/dist/docs/loader.d.ts +0 -12
- package/dist/docs/loader.js +0 -177
- package/dist/docs/search.d.ts +0 -17
- package/dist/docs/search.js +0 -325
- package/dist/docs/types.d.ts +0 -55
- package/dist/docs/types.js +0 -1
- package/docs/README.md +0 -249
- package/docs/WIP.md +0 -388
- package/docs/WTS.md +0 -536
- package/docs/docs/account.md +0 -914
- package/docs/docs/allocation.md +0 -635
- package/docs/docs/arbitration.md +0 -1804
- package/docs/docs/arbitration_state_machine.md +0 -270
- package/docs/docs/contact.md +0 -709
- package/docs/docs/demand.md +0 -948
- package/docs/docs/guard.md +0 -1465
- package/docs/docs/localinfo.md +0 -432
- package/docs/docs/localmark.md +0 -583
- package/docs/docs/machine.md +0 -2490
- package/docs/docs/messenger.md +0 -2098
- package/docs/docs/onchain_events.md +0 -267
- package/docs/docs/order.md +0 -1001
- package/docs/docs/payment.md +0 -512
- package/docs/docs/permission.md +0 -1438
- package/docs/docs/personal.md +0 -742
- package/docs/docs/progress.md +0 -1748
- package/docs/docs/query.md +0 -467
- package/docs/docs/repository.md +0 -1043
- package/docs/docs/reward.md +0 -833
- package/docs/docs/service.md +0 -2130
- package/docs/docs/stage-01-introduction.md +0 -243
- package/docs/docs/stage-02-trust.md +0 -302
- package/docs/docs/stage-03-collaboration.md +0 -337
- package/docs/docs/stage-04-transaction.md +0 -277
- package/docs/docs/stage-05-business.md +0 -151
- package/docs/docs/stage-06-personal.md +0 -203
- package/docs/docs/stage-07-query.md +0 -572
- package/docs/docs/stage-08-examples.md +0 -184
- package/docs/docs/treasury.md +0 -1149
- package/docs/docs/wowok_buildin_info.md +0 -740
- package/docs/examples/Insurance/Insurance.md +0 -594
- package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
- package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
- package/docs/examples/MyShop/MyShop.md +0 -1353
- package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
- package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
- package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
- package/docs/examples/Travel/Travel.md +0 -1157
- package/docs/examples/Travel/Travel_TestResults.md +0 -743
- package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
- package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
- package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
- package/docs/skills/WOWOK.md +0 -650
- package/docs/skills/onchain_operations/_common.md +0 -406
- package/docs/skills/onchain_operations/_index.md +0 -196
- package/docs/skills/onchain_operations/allocation.md +0 -28
- package/docs/skills/onchain_operations/arbitration.md +0 -106
- package/docs/skills/onchain_operations/contact.md +0 -40
- package/docs/skills/onchain_operations/demand.md +0 -53
- package/docs/skills/onchain_operations/gen_passport.md +0 -23
- package/docs/skills/onchain_operations/guard.md +0 -56
- package/docs/skills/onchain_operations/machine.md +0 -89
- package/docs/skills/onchain_operations/order.md +0 -56
- package/docs/skills/onchain_operations/payment.md +0 -24
- package/docs/skills/onchain_operations/permission.md +0 -68
- package/docs/skills/onchain_operations/personal.md +0 -58
- package/docs/skills/onchain_operations/progress.md +0 -38
- package/docs/skills/onchain_operations/repository.md +0 -70
- package/docs/skills/onchain_operations/reward.md +0 -38
- package/docs/skills/onchain_operations/service.md +0 -78
- package/docs/skills/onchain_operations/treasury.md +0 -68
- package/docs/skills/schema-account_operation.md +0 -402
- package/docs/skills/schema-guard2file.md +0 -153
- package/docs/skills/schema-local_info_operation.md +0 -160
- package/docs/skills/schema-local_mark_operation.md +0 -148
- package/docs/skills/schema-machineNode2file.md +0 -155
- package/docs/skills/schema-messenger_operation.md +0 -547
- package/docs/skills/schema-onchain_events.md +0 -201
- package/docs/skills/schema-onchain_table_data.md +0 -334
- package/docs/skills/schema-query_toolkit.md +0 -395
- package/docs/skills/schema-wip_file.md +0 -240
- package/docs/skills/schema-wowok_buildin_info.md +0 -296
- package/docs/wip-examples/three_body.html +0 -57
- package/docs/wip-examples/three_body.wip +0 -30
package/docs/docs/localmark.md
DELETED
|
@@ -1,583 +0,0 @@
|
|
|
1
|
-
# LocalMark Component (📇 Local Marking)
|
|
2
|
-
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Component Overview
|
|
6
|
-
|
|
7
|
-
The LocalMark component manages local address book entries, storing ID names and tags exclusively on the local device. Users can use names to reference and operate on user addresses and object IDs.
|
|
8
|
-
|
|
9
|
-
> **Note**: Use the `watch_and_query` tool to query all or filtered marks.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Function List
|
|
14
|
-
|
|
15
|
-
| Function Name | Purpose | Usage Scenario | Significance |
|
|
16
|
-
|---------------|---------|----------------|-------------|
|
|
17
|
-
| **Add Marks** | Create local address-book entries | Save frequently used addresses with names/tags | Enables human-readable references for addresses/objects |
|
|
18
|
-
| **Remove Marks** | Delete local marks by name/address | Clean up outdated or incorrect entries | Maintains address book accuracy |
|
|
19
|
-
| **Clear All Marks** | Delete all local marks | Reset address book, privacy protection | Provides bulk cleanup capability |
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Schema Tree (4-Level Structure)
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
local_mark_operation
|
|
27
|
-
├── add
|
|
28
|
-
│ └── op: "add"
|
|
29
|
-
│ └── data (array)
|
|
30
|
-
│ └── [mark_param]
|
|
31
|
-
│ ├── name (object, optional)
|
|
32
|
-
│ │ ├── value (string)
|
|
33
|
-
│ │ └── replaceExistName (boolean, optional)
|
|
34
|
-
│ ├── address (string)
|
|
35
|
-
│ └── tags (array of strings, optional)
|
|
36
|
-
├── remove
|
|
37
|
-
│ └── op: "remove"
|
|
38
|
-
│ └── names (array of strings)
|
|
39
|
-
└── clear
|
|
40
|
-
└── op: "clear"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Constraint Constants
|
|
46
|
-
|
|
47
|
-
| Constant Name | Value | Description |
|
|
48
|
-
|---------------|-------|-------------|
|
|
49
|
-
| `nameMaxLength` | 64 | Maximum mark name length (BCS characters) |
|
|
50
|
-
| `tagMaxLength` | 64 | Maximum tag length (BCS characters) |
|
|
51
|
-
| `tagMaxCount` | 50 | Maximum number of tags per mark |
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## Sub-function 1: Add Marks (add)
|
|
56
|
-
|
|
57
|
-
### Function Description
|
|
58
|
-
|
|
59
|
-
Add one or more local marks. Each mark includes name, address, and tags for local identification and classification of accounts or object IDs.
|
|
60
|
-
|
|
61
|
-
### Parameter Description
|
|
62
|
-
|
|
63
|
-
| Parameter | Type | Required | Description | Constraints |
|
|
64
|
-
|-----------|------|----------|-------------|-------------|
|
|
65
|
-
| `add.op` | string | Yes | Operation type | Fixed value "add" |
|
|
66
|
-
| `add.data` | array | Yes | Mark data array | At least 1 element |
|
|
67
|
-
| `add.data[].name` | object | No | Mark name configuration | - |
|
|
68
|
-
| `add.data[].name.value` | string | No | Mark name | Max 64 BCS characters |
|
|
69
|
-
| `add.data[].name.replaceExistName` | boolean | No | Whether to replace existing name | true=replace; false=error (default) |
|
|
70
|
-
| `add.data[].address` | string | Yes | Account or object address | WowAddress format: 0x + 64 hex characters |
|
|
71
|
-
| `add.data[].tags` | array | No | Tag list | Max 50 tags, each max 64 BCS characters |
|
|
72
|
-
|
|
73
|
-
### Examples
|
|
74
|
-
|
|
75
|
-
#### Example 1.1: Add Minimal Mark (Address Only)
|
|
76
|
-
|
|
77
|
-
**Prompt:** Add a mark for an address without a name or tags.
|
|
78
|
-
|
|
79
|
-
```json
|
|
80
|
-
{
|
|
81
|
-
"add": {
|
|
82
|
-
"op": "add",
|
|
83
|
-
"data": [
|
|
84
|
-
{ "address": "0xe639a6382527a57e9213ad08b65f6b6cbd6fcc827356a2ab34f63f42c7c32e82" }
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Execution Result:**
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"add": [
|
|
94
|
-
{
|
|
95
|
-
"address": "0xe639...2e82",
|
|
96
|
-
"createdAt": 1776658023742,
|
|
97
|
-
"updatedAt": 1776658023742
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
#### Example 1.2: Add Mark with Name
|
|
104
|
-
|
|
105
|
-
**Prompt:** Add a mark with name "alice" for address. Do not replace existing name if it already exists.
|
|
106
|
-
|
|
107
|
-
```json
|
|
108
|
-
{
|
|
109
|
-
"add": {
|
|
110
|
-
"op": "add",
|
|
111
|
-
"data": [
|
|
112
|
-
{
|
|
113
|
-
"name": { "value": "alice" },
|
|
114
|
-
"address": "0x531a921e6ec7ea894ee293f94ae03d586b167ed53ff4877599e41522ad92be66"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
**Execution Result:**
|
|
122
|
-
```json
|
|
123
|
-
{
|
|
124
|
-
"add": [
|
|
125
|
-
{
|
|
126
|
-
"name": "alice",
|
|
127
|
-
"address": "0x531a...be66",
|
|
128
|
-
"createdAt": 1776658030346,
|
|
129
|
-
"updatedAt": 1776658030346
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
#### Example 1.3: Add Mark with Tags
|
|
136
|
-
|
|
137
|
-
**Prompt:** Add a mark with tags ["friend", "designer"] for address, without a name.
|
|
138
|
-
|
|
139
|
-
```json
|
|
140
|
-
{
|
|
141
|
-
"add": {
|
|
142
|
-
"op": "add",
|
|
143
|
-
"data": [
|
|
144
|
-
{
|
|
145
|
-
"address": "0x24008bde7867f17fc210785b5195f5de8ac605cc9d5269eaebb99002944ae3b3",
|
|
146
|
-
"tags": ["friend", "designer"]
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Execution Result:**
|
|
154
|
-
```json
|
|
155
|
-
{
|
|
156
|
-
"add": [
|
|
157
|
-
{
|
|
158
|
-
"address": "0x2400...e3b3",
|
|
159
|
-
"tags": ["friend", "designer"],
|
|
160
|
-
"createdAt": 1776658033799,
|
|
161
|
-
"updatedAt": 1776658033799
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
#### Example 1.4: Add Complete Mark (Name + Address + Tags)
|
|
168
|
-
|
|
169
|
-
**Prompt:** Add a complete mark with name "bob", address, and tags ["friend", "designer", "colleague"].
|
|
170
|
-
|
|
171
|
-
```json
|
|
172
|
-
{
|
|
173
|
-
"add": {
|
|
174
|
-
"op": "add",
|
|
175
|
-
"data": [
|
|
176
|
-
{
|
|
177
|
-
"name": { "value": "bob" },
|
|
178
|
-
"address": "0x2bce0d2c3060e426ed93f65d0a7afbc7a0653e2813b972c088faaab9ce504937",
|
|
179
|
-
"tags": ["friend", "designer", "colleague"]
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
**Execution Result:**
|
|
187
|
-
```json
|
|
188
|
-
{
|
|
189
|
-
"add": [
|
|
190
|
-
{
|
|
191
|
-
"name": "bob",
|
|
192
|
-
"address": "0x2bce...4937",
|
|
193
|
-
"tags": ["friend", "designer", "colleague"],
|
|
194
|
-
"createdAt": 1776658036962,
|
|
195
|
-
"updatedAt": 1776658036962
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
#### Example 1.5: Add Mark and Replace Existing Name
|
|
202
|
-
|
|
203
|
-
**Prompt:** Add a mark with name "alice", address, and tags ["vip"]. Replace the existing name if it already exists.
|
|
204
|
-
|
|
205
|
-
```json
|
|
206
|
-
{
|
|
207
|
-
"add": {
|
|
208
|
-
"op": "add",
|
|
209
|
-
"data": [
|
|
210
|
-
{
|
|
211
|
-
"name": { "value": "alice", "replaceExistName": true },
|
|
212
|
-
"address": "0x03174f2f61766b2135c9822039fddd1ec0f5e11661e0805f1618fca08288b606",
|
|
213
|
-
"tags": ["vip"]
|
|
214
|
-
}
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
**Execution Result:**
|
|
221
|
-
```json
|
|
222
|
-
{
|
|
223
|
-
"add": [
|
|
224
|
-
{
|
|
225
|
-
"name": "alice",
|
|
226
|
-
"address": "0x0317...b606",
|
|
227
|
-
"tags": ["vip"],
|
|
228
|
-
"createdAt": 1776658040182,
|
|
229
|
-
"updatedAt": 1776658040182
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
#### Example 1.6: Batch Add Multiple Marks
|
|
236
|
-
|
|
237
|
-
**Prompt:** Add three marks in one call: 1) name "charlie" with tags ["friend"], 2) name "dave" with tags ["colleague", "developer"], 3) address-only without name or tags.
|
|
238
|
-
|
|
239
|
-
```json
|
|
240
|
-
{
|
|
241
|
-
"add": {
|
|
242
|
-
"op": "add",
|
|
243
|
-
"data": [
|
|
244
|
-
{
|
|
245
|
-
"name": { "value": "charlie" },
|
|
246
|
-
"address": "0x499773f65060e35c1b8acee9452083b2ee078155f02c39b30ec12ab4692bbb7a",
|
|
247
|
-
"tags": ["friend"]
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": { "value": "dave" },
|
|
251
|
-
"address": "0xef686f7f13ce876f498b4fb293046620bf3754cc82541d7b06909ec53b479b3d",
|
|
252
|
-
"tags": ["colleague", "developer"]
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"address": "0xa5396433f8ea8802dc338d9eba91da916bfeb1eb8ce76adc44e3a32a5635063f"
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
**Execution Result:**
|
|
263
|
-
```json
|
|
264
|
-
{
|
|
265
|
-
"add": [
|
|
266
|
-
{
|
|
267
|
-
"name": "charlie",
|
|
268
|
-
"address": "0x4997...bb7a",
|
|
269
|
-
"tags": ["friend"],
|
|
270
|
-
"createdAt": 1776658044403,
|
|
271
|
-
"updatedAt": 1776658044403
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "dave",
|
|
275
|
-
"address": "0xef68...9b3d",
|
|
276
|
-
"tags": ["colleague", "developer"],
|
|
277
|
-
"createdAt": 1776658044403,
|
|
278
|
-
"updatedAt": 1776658044403
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"address": "0xa539...063f",
|
|
282
|
-
"createdAt": 1776658044403,
|
|
283
|
-
"updatedAt": 1776658044403
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
#### Example 1.7: Add Mark Without Name but With Tags
|
|
290
|
-
|
|
291
|
-
**Prompt:** Add a mark for address with tags ["contract", "important"], but without a name.
|
|
292
|
-
|
|
293
|
-
```json
|
|
294
|
-
{
|
|
295
|
-
"add": {
|
|
296
|
-
"op": "add",
|
|
297
|
-
"data": [
|
|
298
|
-
{
|
|
299
|
-
"address": "0xfe9262f13c663112a17b6ad17252e4fd1aa75d4c4e8ea3d805e20ff63eb1aa35",
|
|
300
|
-
"tags": ["contract", "important"]
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
**Execution Result:**
|
|
308
|
-
```json
|
|
309
|
-
{
|
|
310
|
-
"add": [
|
|
311
|
-
{
|
|
312
|
-
"address": "0xfe92...aa35",
|
|
313
|
-
"tags": ["contract", "important"],
|
|
314
|
-
"createdAt": 1776658047449,
|
|
315
|
-
"updatedAt": 1776658047449
|
|
316
|
-
}
|
|
317
|
-
]
|
|
318
|
-
}
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
---
|
|
322
|
-
|
|
323
|
-
## Sub-function 2: Remove Marks (remove)
|
|
324
|
-
|
|
325
|
-
### Function Description
|
|
326
|
-
|
|
327
|
-
Remove one or more local marks by name or address.
|
|
328
|
-
|
|
329
|
-
### Parameter Description
|
|
330
|
-
|
|
331
|
-
| Parameter | Type | Required | Description | Constraints |
|
|
332
|
-
|-----------|------|----------|-------------|-------------|
|
|
333
|
-
| `remove.op` | string | Yes | Operation type | Fixed value "remove" |
|
|
334
|
-
| `remove.names` | array | Yes | Name or address array to remove | At least 1 element, string type |
|
|
335
|
-
|
|
336
|
-
### Examples
|
|
337
|
-
|
|
338
|
-
#### Example 2.1: Remove Single Mark by Name
|
|
339
|
-
|
|
340
|
-
**Prompt:** Remove the mark named "alice".
|
|
341
|
-
|
|
342
|
-
```json
|
|
343
|
-
{
|
|
344
|
-
"remove": {
|
|
345
|
-
"op": "remove",
|
|
346
|
-
"names": ["alice"]
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
**Execution Result:**
|
|
352
|
-
```json
|
|
353
|
-
{
|
|
354
|
-
"remove": [
|
|
355
|
-
{
|
|
356
|
-
"name": "alice",
|
|
357
|
-
"address": "0x0317...b606",
|
|
358
|
-
"tags": ["vip"],
|
|
359
|
-
"createdAt": 1776658040182,
|
|
360
|
-
"updatedAt": 1776658040182
|
|
361
|
-
}
|
|
362
|
-
]
|
|
363
|
-
}
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
#### Example 2.2: Remove Single Mark by Address
|
|
367
|
-
|
|
368
|
-
**Prompt:** Remove the mark by address.
|
|
369
|
-
|
|
370
|
-
```json
|
|
371
|
-
{
|
|
372
|
-
"remove": {
|
|
373
|
-
"op": "remove",
|
|
374
|
-
"names": ["0xe639a6382527a57e9213ad08b65f6b6cbd6fcc827356a2ab34f63f42c7c32e82"]
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
**Execution Result:**
|
|
380
|
-
```json
|
|
381
|
-
{
|
|
382
|
-
"remove": [
|
|
383
|
-
{
|
|
384
|
-
"address": "0xe639...2e82",
|
|
385
|
-
"createdAt": 1776658023742,
|
|
386
|
-
"updatedAt": 1776658023742
|
|
387
|
-
}
|
|
388
|
-
]
|
|
389
|
-
}
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
#### Example 2.3: Batch Remove Multiple Marks (Mixed Names and Addresses)
|
|
393
|
-
|
|
394
|
-
**Prompt:** Remove three marks in one call: "bob", address, and "charlie".
|
|
395
|
-
|
|
396
|
-
```json
|
|
397
|
-
{
|
|
398
|
-
"remove": {
|
|
399
|
-
"op": "remove",
|
|
400
|
-
"names": [
|
|
401
|
-
"bob",
|
|
402
|
-
"0x24008bde7867f17fc210785b5195f5de8ac605cc9d5269eaebb99002944ae3b3",
|
|
403
|
-
"charlie"
|
|
404
|
-
]
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
**Execution Result:**
|
|
410
|
-
```json
|
|
411
|
-
{
|
|
412
|
-
"remove": [
|
|
413
|
-
{
|
|
414
|
-
"address": "0x2400...e3b3",
|
|
415
|
-
"tags": ["friend", "designer"],
|
|
416
|
-
"createdAt": 1776658033799,
|
|
417
|
-
"updatedAt": 1776658033799
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
"name": "bob",
|
|
421
|
-
"address": "0x2bce...4937",
|
|
422
|
-
"tags": ["friend", "designer", "colleague"],
|
|
423
|
-
"createdAt": 1776658036962,
|
|
424
|
-
"updatedAt": 1776658036962
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "charlie",
|
|
428
|
-
"address": "0x4997...bb7a",
|
|
429
|
-
"tags": ["friend"],
|
|
430
|
-
"createdAt": 1776658044403,
|
|
431
|
-
"updatedAt": 1776658044403
|
|
432
|
-
}
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
#### Example 2.4: Batch Remove Multiple Names
|
|
438
|
-
|
|
439
|
-
**Prompt:** Remove the mark by name "dave".
|
|
440
|
-
|
|
441
|
-
```json
|
|
442
|
-
{
|
|
443
|
-
"remove": {
|
|
444
|
-
"op": "remove",
|
|
445
|
-
"names": ["dave"]
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
**Execution Result:**
|
|
451
|
-
```json
|
|
452
|
-
{
|
|
453
|
-
"remove": [
|
|
454
|
-
{
|
|
455
|
-
"name": "dave",
|
|
456
|
-
"address": "0xef68...9b3d",
|
|
457
|
-
"tags": ["colleague", "developer"],
|
|
458
|
-
"createdAt": 1776658044403,
|
|
459
|
-
"updatedAt": 1776658044403
|
|
460
|
-
}
|
|
461
|
-
]
|
|
462
|
-
}
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
#### Example 2.5: Batch Remove Multiple Addresses
|
|
466
|
-
|
|
467
|
-
**Prompt:** Remove two marks by their addresses.
|
|
468
|
-
|
|
469
|
-
```json
|
|
470
|
-
{
|
|
471
|
-
"remove": {
|
|
472
|
-
"op": "remove",
|
|
473
|
-
"names": [
|
|
474
|
-
"0xa5396433f8ea8802dc338d9eba91da916bfeb1eb8ce76adc44e3a32a5635063f",
|
|
475
|
-
"0xfe9262f13c663112a17b6ad17252e4fd1aa75d4c4e8ea3d805e20ff63eb1aa35"
|
|
476
|
-
]
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
**Execution Result:**
|
|
482
|
-
```json
|
|
483
|
-
{
|
|
484
|
-
"remove": [
|
|
485
|
-
{
|
|
486
|
-
"address": "0xa539...063f",
|
|
487
|
-
"createdAt": 1776658044403,
|
|
488
|
-
"updatedAt": 1776658044403
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"address": "0xfe92...aa35",
|
|
492
|
-
"tags": ["contract", "important"],
|
|
493
|
-
"createdAt": 1776658047449,
|
|
494
|
-
"updatedAt": 1776658047449
|
|
495
|
-
}
|
|
496
|
-
]
|
|
497
|
-
}
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
---
|
|
501
|
-
|
|
502
|
-
## Sub-function 3: Clear All Marks (clear)
|
|
503
|
-
|
|
504
|
-
### Function Description
|
|
505
|
-
|
|
506
|
-
Remove all local marks. This operation is irreversible, use with caution.
|
|
507
|
-
|
|
508
|
-
### Parameter Description
|
|
509
|
-
|
|
510
|
-
| Parameter | Type | Required | Description | Constraints |
|
|
511
|
-
|-----------|------|----------|-------------|-------------|
|
|
512
|
-
| `clear.op` | string | Yes | Operation type | Fixed value "clear" |
|
|
513
|
-
|
|
514
|
-
### Example
|
|
515
|
-
|
|
516
|
-
#### Example 3.1: Clear All Marks
|
|
517
|
-
|
|
518
|
-
**Prompt:** Remove all local marks. This operation cannot be undone.
|
|
519
|
-
|
|
520
|
-
```json
|
|
521
|
-
{
|
|
522
|
-
"clear": {
|
|
523
|
-
"op": "clear"
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
**Execution Result:**
|
|
529
|
-
```json
|
|
530
|
-
{
|
|
531
|
-
"clear": true
|
|
532
|
-
}
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
---
|
|
536
|
-
|
|
537
|
-
## Query Local Mark List
|
|
538
|
-
|
|
539
|
-
```json
|
|
540
|
-
{
|
|
541
|
-
"query_type": "local_mark_list"
|
|
542
|
-
}
|
|
543
|
-
```
|
|
544
|
-
|
|
545
|
-
## Query with Filter
|
|
546
|
-
|
|
547
|
-
```json
|
|
548
|
-
{
|
|
549
|
-
"query_type": "local_mark_list",
|
|
550
|
-
"filter": {
|
|
551
|
-
"tags": ["friend"]
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
---
|
|
557
|
-
|
|
558
|
-
## Best Practices
|
|
559
|
-
|
|
560
|
-
### 1. Use Meaningful Names
|
|
561
|
-
Use easily recognizable names to mark addresses.
|
|
562
|
-
|
|
563
|
-
### 2. Use Tags for Classification
|
|
564
|
-
Use tags to classify and filter marks.
|
|
565
|
-
|
|
566
|
-
### 3. Don't Include Sensitive Information in Tags
|
|
567
|
-
Tags are for local classification only.
|
|
568
|
-
|
|
569
|
-
---
|
|
570
|
-
|
|
571
|
-
## Important Notes
|
|
572
|
-
|
|
573
|
-
⚠️ **Only stored on local device!**
|
|
574
|
-
|
|
575
|
-
---
|
|
576
|
-
|
|
577
|
-
## Related Components
|
|
578
|
-
|
|
579
|
-
| Component | Description |
|
|
580
|
-
|-----------|-------------|
|
|
581
|
-
| **[LocalInfo](localinfo.md)** | Private information management |
|
|
582
|
-
| **[Account](account.md)** | Local wallet management |
|
|
583
|
-
| **[Personal](personal.md)** | Personal on-chain portal |
|