@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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_table_data.json",
|
|
4
|
+
"title": "On-chain Table Data Query",
|
|
5
|
+
"description": "Query dynamic table data of on-chain objects",
|
|
6
|
+
"$ref": "#/definitions/onchain_table_data",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"onchain_table_data": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"query_type": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"onchain_table",
|
|
15
|
+
"onchain_table_item_repository_data",
|
|
16
|
+
"onchain_table_item_permission_perm",
|
|
17
|
+
"onchain_table_item_entity_registrar",
|
|
18
|
+
"onchain_table_item_entity_linker",
|
|
19
|
+
"onchain_table_item_reward_record",
|
|
20
|
+
"onchain_table_item_demand_presenter",
|
|
21
|
+
"onchain_table_item_treasury_history",
|
|
22
|
+
"onchain_table_item_machine_node",
|
|
23
|
+
"onchain_table_item_progress_history",
|
|
24
|
+
"onchain_table_item_address_mark",
|
|
25
|
+
"onchain_table_item_generic"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"query_type"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/query_toolkit.json",
|
|
4
|
+
"title": "Data Query Toolkit",
|
|
5
|
+
"description": "Query local and on-chain data",
|
|
6
|
+
"$ref": "#/definitions/query_toolkit",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"query_toolkit": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"query_type": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"local_mark_list",
|
|
15
|
+
"account_list",
|
|
16
|
+
"local_info_list",
|
|
17
|
+
"token_list",
|
|
18
|
+
"account_balance",
|
|
19
|
+
"local_names",
|
|
20
|
+
"onchain_personal_profile",
|
|
21
|
+
"onchain_objects",
|
|
22
|
+
"onchain_received"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"query_type"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/schema_query.json",
|
|
4
|
+
"title": "Schema Query",
|
|
5
|
+
"description": "Query JSON schemas for all WoWok MCP tools and operations",
|
|
6
|
+
"$ref": "#/definitions/schema_query",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"schema_query": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"action": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"list",
|
|
15
|
+
"get",
|
|
16
|
+
"search",
|
|
17
|
+
"list_operations"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"query": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"action"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/wip_file.json",
|
|
4
|
+
"title": "WIP File Operations",
|
|
5
|
+
"description": "Generate, verify, sign, or convert WIP files",
|
|
6
|
+
"$ref": "#/definitions/wip_file",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"wip_file": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"type": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"generate",
|
|
15
|
+
"verify",
|
|
16
|
+
"sign",
|
|
17
|
+
"wip2html"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"type"
|
|
23
|
+
],
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/wowok_buildin_info.json",
|
|
4
|
+
"title": "WoWok Build-in Information",
|
|
5
|
+
"description": "Query WoWok protocol information",
|
|
6
|
+
"$ref": "#/definitions/wowok_buildin_info",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"wowok_buildin_info": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"info": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "constants"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"info"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"description": "Constants query"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"info": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"const": "built-in permissions"
|
|
30
|
+
},
|
|
31
|
+
"filter": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"objectType": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"Permission",
|
|
38
|
+
"Repository",
|
|
39
|
+
"Arb",
|
|
40
|
+
"Arbitration",
|
|
41
|
+
"Service",
|
|
42
|
+
"Machine",
|
|
43
|
+
"Order",
|
|
44
|
+
"Progress",
|
|
45
|
+
"Payment",
|
|
46
|
+
"Treasury",
|
|
47
|
+
"Guard",
|
|
48
|
+
"Demand",
|
|
49
|
+
"Passport",
|
|
50
|
+
"Allocation",
|
|
51
|
+
"Resource",
|
|
52
|
+
"Reward",
|
|
53
|
+
"Discount",
|
|
54
|
+
"EntityRegistrar",
|
|
55
|
+
"EntityLinker",
|
|
56
|
+
"Proof",
|
|
57
|
+
"WReceivedObject",
|
|
58
|
+
"Contact",
|
|
59
|
+
"TableItem_ProgressHistory",
|
|
60
|
+
"TableItem_PermissionPerm",
|
|
61
|
+
"TableItem_DemandPresenter",
|
|
62
|
+
"TableItem_MachineNode",
|
|
63
|
+
"TableItem_TreasuryHistory",
|
|
64
|
+
"TableItem_RepositoryData",
|
|
65
|
+
"TableItem_RewardRecord",
|
|
66
|
+
"TableItem_EntityLinker",
|
|
67
|
+
"TableItem_AddressMark",
|
|
68
|
+
"TableItem_EntityRegistrar"
|
|
69
|
+
],
|
|
70
|
+
"description": "Object type filter"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Name filter"
|
|
75
|
+
},
|
|
76
|
+
"index": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"description": "Index filter"
|
|
79
|
+
},
|
|
80
|
+
"description": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Description filter"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"description": "Filter for built-in permissions"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"info"
|
|
91
|
+
],
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"description": "Built-in permissions query"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"info": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"const": "guard instructions"
|
|
101
|
+
},
|
|
102
|
+
"filter": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Name filter (case-insensitive partial match)"
|
|
108
|
+
},
|
|
109
|
+
"id": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "integer"
|
|
113
|
+
},
|
|
114
|
+
"description": "ID array filter (OperatorType | ContextType | number)"
|
|
115
|
+
},
|
|
116
|
+
"returnType": {
|
|
117
|
+
"anyOf": [
|
|
118
|
+
{
|
|
119
|
+
"anyOf": [
|
|
120
|
+
{
|
|
121
|
+
"anyOf": [
|
|
122
|
+
{
|
|
123
|
+
"type": "number",
|
|
124
|
+
"const": 0,
|
|
125
|
+
"description": "Bool (0)"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "number",
|
|
129
|
+
"const": 1,
|
|
130
|
+
"description": "Address (1)"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "number",
|
|
134
|
+
"const": 2,
|
|
135
|
+
"description": "String (2)"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "number",
|
|
139
|
+
"const": 3,
|
|
140
|
+
"description": "U8 (3)"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "number",
|
|
144
|
+
"const": 4,
|
|
145
|
+
"description": "U16 (4)"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "number",
|
|
149
|
+
"const": 5,
|
|
150
|
+
"description": "U32 (5)"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "number",
|
|
154
|
+
"const": 6,
|
|
155
|
+
"description": "U64 (6)"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"type": "number",
|
|
159
|
+
"const": 7,
|
|
160
|
+
"description": "U128 (7)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "number",
|
|
164
|
+
"const": 8,
|
|
165
|
+
"description": "U256 (8)"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "number",
|
|
169
|
+
"const": 9,
|
|
170
|
+
"description": "VecBool (9)"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "number",
|
|
174
|
+
"const": 10,
|
|
175
|
+
"description": "VecAddress (10)"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "number",
|
|
179
|
+
"const": 11,
|
|
180
|
+
"description": "VecString (11)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "number",
|
|
184
|
+
"const": 12,
|
|
185
|
+
"description": "VecU8 (12)"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "number",
|
|
189
|
+
"const": 13,
|
|
190
|
+
"description": "VecU16 (13)"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "number",
|
|
194
|
+
"const": 14,
|
|
195
|
+
"description": "VecU32 (14)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "number",
|
|
199
|
+
"const": 15,
|
|
200
|
+
"description": "VecU64 (15)"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "number",
|
|
204
|
+
"const": 16,
|
|
205
|
+
"description": "VecU128 (16)"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "number",
|
|
209
|
+
"const": 17,
|
|
210
|
+
"description": "VecU256 (17)"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"type": "number",
|
|
214
|
+
"const": 18,
|
|
215
|
+
"description": "VecVecU8 (18)"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "string",
|
|
219
|
+
"const": "Bool",
|
|
220
|
+
"description": "Bool"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "string",
|
|
224
|
+
"const": "Address",
|
|
225
|
+
"description": "Address"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "string",
|
|
229
|
+
"const": "String",
|
|
230
|
+
"description": "String"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"type": "string",
|
|
234
|
+
"const": "U8",
|
|
235
|
+
"description": "U8"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "string",
|
|
239
|
+
"const": "U16",
|
|
240
|
+
"description": "U16"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"type": "string",
|
|
244
|
+
"const": "U32",
|
|
245
|
+
"description": "U32"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"const": "U64",
|
|
250
|
+
"description": "U64"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "string",
|
|
254
|
+
"const": "U128",
|
|
255
|
+
"description": "U128"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "string",
|
|
259
|
+
"const": "U256",
|
|
260
|
+
"description": "U256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "string",
|
|
264
|
+
"const": "VecBool",
|
|
265
|
+
"description": "VecBool"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"type": "string",
|
|
269
|
+
"const": "VecAddress",
|
|
270
|
+
"description": "VecAddress"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "VecString",
|
|
275
|
+
"description": "VecString"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "string",
|
|
279
|
+
"const": "VecU8",
|
|
280
|
+
"description": "VecU8"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "string",
|
|
284
|
+
"const": "VecU16",
|
|
285
|
+
"description": "VecU16"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "string",
|
|
289
|
+
"const": "VecU32",
|
|
290
|
+
"description": "VecU32"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "string",
|
|
294
|
+
"const": "VecU64",
|
|
295
|
+
"description": "VecU64"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "string",
|
|
299
|
+
"const": "VecU128",
|
|
300
|
+
"description": "VecU128"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "string",
|
|
304
|
+
"const": "VecU256",
|
|
305
|
+
"description": "VecU256"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "string",
|
|
309
|
+
"const": "VecVecU8",
|
|
310
|
+
"description": "VecVecU8"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "string",
|
|
314
|
+
"const": "bool",
|
|
315
|
+
"description": "bool"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "string",
|
|
319
|
+
"const": "address",
|
|
320
|
+
"description": "address"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "string",
|
|
324
|
+
"const": "string",
|
|
325
|
+
"description": "string"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "string",
|
|
329
|
+
"const": "u8",
|
|
330
|
+
"description": "u8"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "string",
|
|
334
|
+
"const": "u16",
|
|
335
|
+
"description": "u16"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"type": "string",
|
|
339
|
+
"const": "u32",
|
|
340
|
+
"description": "u32"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "string",
|
|
344
|
+
"const": "u64",
|
|
345
|
+
"description": "u64"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "string",
|
|
349
|
+
"const": "u128",
|
|
350
|
+
"description": "u128"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "string",
|
|
354
|
+
"const": "u256",
|
|
355
|
+
"description": "u256"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"type": "string",
|
|
359
|
+
"const": "vecbool",
|
|
360
|
+
"description": "vecbool"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "string",
|
|
364
|
+
"const": "vecaddress",
|
|
365
|
+
"description": "vecaddress"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "string",
|
|
369
|
+
"const": "vecstring",
|
|
370
|
+
"description": "vecstring"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "string",
|
|
374
|
+
"const": "vecu8",
|
|
375
|
+
"description": "vecu8"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"type": "string",
|
|
379
|
+
"const": "vecu16",
|
|
380
|
+
"description": "vecu16"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "string",
|
|
384
|
+
"const": "vecu32",
|
|
385
|
+
"description": "vecu32"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"type": "string",
|
|
389
|
+
"const": "vecu64",
|
|
390
|
+
"description": "vecu64"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"type": "string",
|
|
394
|
+
"const": "vecu128",
|
|
395
|
+
"description": "vecu128"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"type": "string",
|
|
399
|
+
"const": "vecu256",
|
|
400
|
+
"description": "vecu256"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "string",
|
|
404
|
+
"const": "vecvecu8",
|
|
405
|
+
"description": "vecvecu8"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "number",
|
|
412
|
+
"const": 19,
|
|
413
|
+
"description": "Value (19)"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "string",
|
|
420
|
+
"const": "Value",
|
|
421
|
+
"description": "Value"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"description": "Return type filter"
|
|
425
|
+
},
|
|
426
|
+
"paramCount": {
|
|
427
|
+
"type": "integer",
|
|
428
|
+
"description": "Parameter count filter"
|
|
429
|
+
},
|
|
430
|
+
"scope": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"enum": [
|
|
433
|
+
"instruct",
|
|
434
|
+
"object query",
|
|
435
|
+
"all"
|
|
436
|
+
],
|
|
437
|
+
"description": "Scope filter: instruct, object query, or all",
|
|
438
|
+
"default": "all"
|
|
439
|
+
},
|
|
440
|
+
"objectType": {
|
|
441
|
+
"$ref": "#/definitions/wowok_buildin_info/anyOf/1/properties/filter/properties/objectType",
|
|
442
|
+
"description": "Object type filter (only for object query scope)"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"additionalProperties": false,
|
|
446
|
+
"description": "Filter for guard instructions"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"required": [
|
|
450
|
+
"info"
|
|
451
|
+
],
|
|
452
|
+
"additionalProperties": false,
|
|
453
|
+
"description": "Guard instructions and wowok object queries"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": "object",
|
|
457
|
+
"properties": {
|
|
458
|
+
"info": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"const": "current network"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"required": [
|
|
464
|
+
"info"
|
|
465
|
+
],
|
|
466
|
+
"additionalProperties": false,
|
|
467
|
+
"description": "Current network entrypoint"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"info": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"const": "value types"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"required": [
|
|
478
|
+
"info"
|
|
479
|
+
],
|
|
480
|
+
"additionalProperties": false,
|
|
481
|
+
"description": "Value types query - returns all supported value types with their numeric and string representations"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"description": "WoWok Build-in infomation query"
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wowok/agent-mcp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"description": "Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,19 +31,21 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
|
-
"lodash": "^4.18.1",
|
|
35
34
|
"@wowok/wowok": "2.2.13",
|
|
35
|
+
"lodash": "^4.18.1",
|
|
36
36
|
"zod": "^3.25.76"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.19.
|
|
39
|
+
"@types/node": "^22.19.19",
|
|
40
40
|
"tsx": "^4.21.0",
|
|
41
|
-
"typescript": "^5.8.2"
|
|
41
|
+
"typescript": "^5.8.2",
|
|
42
|
+
"zod-to-json-schema": "^3.25.2"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
45
|
"clean": "rm -rf dist",
|
|
45
46
|
"build": "tsc",
|
|
46
47
|
"watch": "tsc --watch",
|
|
47
|
-
"start": "tsx src/index.ts"
|
|
48
|
+
"start": "tsx src/index.ts",
|
|
49
|
+
"generate:schemas": "tsx scripts/generate-json-schemas.ts"
|
|
48
50
|
}
|
|
49
51
|
}
|
package/dist/docs/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type { Document, DocumentCategory, DocumentIndex, SearchResult, SchemaInfo, ExampleInfo, LearnRequest, LearnResponse, LearnAction, } from "./types.js";
|
|
2
|
-
export { loadAllDocuments, isDocumentationAvailable, getDocStats, } from "./loader.js";
|
|
3
|
-
export { processLearnRequest, searchDocuments, getOperationSchema, getToolSchema, getExampleInfo, getGuide, listOperations, listExamples, } from "./search.js";
|
package/dist/docs/index.js
DELETED
package/dist/docs/loader.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Document, DocumentIndex } from "./types.js";
|
|
2
|
-
export declare function loadAllDocuments(): {
|
|
3
|
-
documents: Document[];
|
|
4
|
-
index: DocumentIndex;
|
|
5
|
-
};
|
|
6
|
-
export declare function isDocumentationAvailable(): boolean;
|
|
7
|
-
export declare function getDocStats(): {
|
|
8
|
-
total: number;
|
|
9
|
-
skills: number;
|
|
10
|
-
examples: number;
|
|
11
|
-
available: boolean;
|
|
12
|
-
};
|