@wowok/agent-mcp 2.2.21 → 2.3.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.
Files changed (62) hide show
  1. package/README.md +1 -3
  2. package/dist/index.d.ts +86 -126
  3. package/dist/index.js +4 -1
  4. package/dist/schema/call/allocation.d.ts +1 -1
  5. package/dist/schema/call/arbitration.d.ts +1 -1
  6. package/dist/schema/call/arbitration.js +1 -1
  7. package/dist/schema/call/base.d.ts +830 -830
  8. package/dist/schema/call/contact.d.ts +1 -1
  9. package/dist/schema/call/demand.d.ts +1 -1
  10. package/dist/schema/call/demand.js +1 -1
  11. package/dist/schema/call/guard.d.ts +3 -3
  12. package/dist/schema/call/machine.d.ts +4 -4
  13. package/dist/schema/call/machine.js +1 -1
  14. package/dist/schema/call/order.d.ts +15 -15
  15. package/dist/schema/call/order.js +1 -1
  16. package/dist/schema/call/payment.d.ts +1 -1
  17. package/dist/schema/call/permission.d.ts +1 -1
  18. package/dist/schema/call/permission.js +1 -1
  19. package/dist/schema/call/personal.d.ts +1 -1
  20. package/dist/schema/call/progress.d.ts +1 -1
  21. package/dist/schema/call/proof.d.ts +13 -98
  22. package/dist/schema/call/proof.js +3 -3
  23. package/dist/schema/call/repository.d.ts +79 -79
  24. package/dist/schema/call/repository.js +4 -3
  25. package/dist/schema/call/reward.d.ts +1 -1
  26. package/dist/schema/call/reward.js +1 -1
  27. package/dist/schema/call/service.d.ts +46 -46
  28. package/dist/schema/call/service.js +3 -3
  29. package/dist/schema/call/treasury.d.ts +9 -69
  30. package/dist/schema/call/treasury.js +1 -1
  31. package/dist/schema/common/index.d.ts +46 -46
  32. package/dist/schema/common/index.js +5 -3
  33. package/dist/schema/local/index.d.ts +1906 -1906
  34. package/dist/schema/local/index.js +12 -12
  35. package/dist/schema/local/wip.d.ts +16 -16
  36. package/dist/schema/local/wip.js +2 -2
  37. package/dist/schema/messenger/index.d.ts +1 -1
  38. package/dist/schema/query/index.d.ts +6918 -6918
  39. package/dist/schema/query/index.js +6 -6
  40. package/dist/schemas/account_operation.schema.json +4 -2
  41. package/dist/schemas/guard2file.schema.json +2 -1
  42. package/dist/schemas/index.json +1 -1
  43. package/dist/schemas/machineNode2file.schema.json +2 -1
  44. package/dist/schemas/messenger_operation.schema.json +2 -1
  45. package/dist/schemas/onchain_events.schema.json +6 -2
  46. package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
  47. package/dist/schemas/onchain_operations_arbitration.schema.json +3 -2
  48. package/dist/schemas/onchain_operations_contact.schema.json +2 -1
  49. package/dist/schemas/onchain_operations_demand.schema.json +3 -2
  50. package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
  51. package/dist/schemas/onchain_operations_guard.schema.json +2 -1
  52. package/dist/schemas/onchain_operations_machine.schema.json +10 -5
  53. package/dist/schemas/onchain_operations_order.schema.json +6 -5
  54. package/dist/schemas/onchain_operations_payment.schema.json +2 -1
  55. package/dist/schemas/onchain_operations_permission.schema.json +3 -2
  56. package/dist/schemas/onchain_operations_personal.schema.json +2 -1
  57. package/dist/schemas/onchain_operations_progress.schema.json +2 -1
  58. package/dist/schemas/onchain_operations_repository.schema.json +9 -5
  59. package/dist/schemas/onchain_operations_reward.schema.json +3 -2
  60. package/dist/schemas/onchain_operations_service.schema.json +6 -2
  61. package/dist/schemas/onchain_operations_treasury.schema.json +4 -3
  62. package/package.json +2 -2
@@ -121,7 +121,7 @@ export const ObjectOrderSchema = ObjectBaseSchema.extend({
121
121
  agent: z.array(z.string()).describe("Agent ID list. Agents handle all order operations except payment collection."),
122
122
  allocation: z.union([z.string(), z.null()]).describe("Order amount allocation object ID"),
123
123
  claimed_by: z.union([z.string(), z.null()]).describe("Order dispute object ID that has claimed order arbitration amount."),
124
- required_info: z.string().describe("Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."),
124
+ required_info: z.union([z.string(), z.null()]).describe("Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."),
125
125
  time: z.union([z.string(), z.number()]).describe("Order creation time"),
126
126
  });
127
127
  export const NamedOperatorSchema = z.object({
@@ -208,7 +208,7 @@ export const ObjectServiceSchema = ObjectBaseSchema.extend({
208
208
  arbitrations: z.array(z.string()).describe("List of Arbitration objects supported by service. When order user needs arbitration, they can apply for arbitration with any Arbitration object in the list."),
209
209
  compensation_fund: BalanceTypeSchema.describe("Compensation fund pool for arbitration results. Order users can receive compensation from this fund based on arbitration results."),
210
210
  paused_time: z.union([z.number(), z.null()]).describe("Service purchase pause time. If not paused, it is null."),
211
- compensation_lock_duration: z.union([z.string(), z.number()]).describe("Lock duration for arbitration result compensation. After service is paused for longer than this duration, service manager can retrieve compensation_fund. Default is at least 30 days."),
211
+ setting_lock_duration: z.union([z.string(), z.number(), z.bigint()]).describe("Lock duration for critical settings. After Service is published, modifications to 'order_allocators', 'rewards', 'arbitrations', 'machine', and withdrawal from 'compensation_fund' must exceed the 'setting_lock_duration' lock time."),
212
212
  order_allocators: z.union([AllocatorsSchema, z.null()]).describe("Order fund allocator list."),
213
213
  rewards: z.array(z.string()).describe("Reward object list"),
214
214
  um: z.union([z.string(), z.null()]).describe("Contact object"),
@@ -766,7 +766,7 @@ export const ObjectPaymentSchema = ObjectBaseSchema.extend({
766
766
  amount: BalanceTypeSchema,
767
767
  })).describe("Payment record list"),
768
768
  amount: BalanceTypeSchema.describe("Payment amount"),
769
- time: z.string().describe("Payment time"),
769
+ time: z.union([z.string(), z.number()]).describe("Payment time"),
770
770
  from_object: z.union([z.string(), z.null()]).optional().describe("Payment source object ID"),
771
771
  signer: z.string().describe("Payment signer ID"),
772
772
  info: PaymentInfoSchema,
@@ -923,7 +923,7 @@ export const TableAnswerSchema = z.object({
923
923
  items: z.array(TableAnswerItemSchema),
924
924
  nextCursor: z.union([z.string(), z.null()]),
925
925
  hasNextPage: z.boolean(),
926
- cache_expire: z.union([z.string(), z.number()]).optional(),
926
+ cache_expire: z.union([z.string(), z.null()]).optional(),
927
927
  });
928
928
  export const QueryTableItem_byAddressSchema = QueryEnvSchema.extend({
929
929
  parent: z.string().describe("Parent object ID of the data table to query"),
@@ -955,7 +955,7 @@ export const EventTypeSchema = z.union([
955
955
  z.string(),
956
956
  ]).describe("Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')");
957
957
  export const EventCursorSchema = z.object({
958
- eventSeq: z.string().describe("Event sequence number"),
958
+ eventSeq: z.union([z.string(), z.number()]).describe("Event sequence number"),
959
959
  txDigest: z.string().describe("Transaction digest"),
960
960
  }).describe("Event cursor");
961
961
  export const EventBaseSchema = z.object({
@@ -963,7 +963,7 @@ export const EventBaseSchema = z.object({
963
963
  sender: z.string().describe("Event sender ID"),
964
964
  type: EventTypeSchema,
965
965
  type_raw: z.string().describe("Raw event type"),
966
- time: z.string().describe("Event occurrence time"),
966
+ time: z.union([z.string(), z.number()]).describe("Event occurrence time"),
967
967
  parsedJson_raw: z.any().optional().describe("Raw parsed JSON data from the event"),
968
968
  }).describe("Event base information");
969
969
  export const ArbEventSchema = EventBaseSchema.extend({
@@ -45,7 +45,8 @@
45
45
  "type": "string",
46
46
  "enum": [
47
47
  "localnet",
48
- "testnet"
48
+ "testnet",
49
+ "devnet"
49
50
  ],
50
51
  "description": "Network entrypoint for Faucet: Specifies which network the operation occurs on"
51
52
  }
@@ -144,7 +145,8 @@
144
145
  "type": "string",
145
146
  "enum": [
146
147
  "localnet",
147
- "testnet"
148
+ "testnet",
149
+ "devnet"
148
150
  ],
149
151
  "description": "Network entrypoint: Specifies which network the operation occurs on"
150
152
  }
@@ -47,7 +47,8 @@
47
47
  "type": "string",
48
48
  "enum": [
49
49
  "localnet",
50
- "testnet"
50
+ "testnet",
51
+ "devnet"
51
52
  ],
52
53
  "description": "Network entrypoint: Specifies which network the operation occurs on"
53
54
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "WoWok MCP Schema Index",
4
4
  "description": "Index of all available JSON schemas for WoWok MCP tools",
5
- "generatedAt": "2026-05-26T13:10:57.419Z",
5
+ "generatedAt": "2026-06-07T12:46:41.764Z",
6
6
  "tools": [
7
7
  {
8
8
  "name": "onchain_operations",
@@ -47,7 +47,8 @@
47
47
  "type": "string",
48
48
  "enum": [
49
49
  "localnet",
50
- "testnet"
50
+ "testnet",
51
+ "devnet"
51
52
  ],
52
53
  "description": "Network entrypoint: Specifies which network the operation occurs on"
53
54
  },
@@ -892,7 +892,8 @@
892
892
  "type": "string",
893
893
  "enum": [
894
894
  "localnet",
895
- "testnet"
895
+ "testnet",
896
+ "devnet"
896
897
  ],
897
898
  "description": "Network to use for on-chain proof"
898
899
  }
@@ -46,7 +46,10 @@
46
46
  "type": "object",
47
47
  "properties": {
48
48
  "eventSeq": {
49
- "type": "string",
49
+ "type": [
50
+ "string",
51
+ "number"
52
+ ],
50
53
  "description": "Event sequence number"
51
54
  },
52
55
  "txDigest": {
@@ -98,7 +101,8 @@
98
101
  "type": "string",
99
102
  "enum": [
100
103
  "localnet",
101
- "testnet"
104
+ "testnet",
105
+ "devnet"
102
106
  ],
103
107
  "description": "Network to query: 'mainnet' or 'testnet'. Uses default network if not specified"
104
108
  }
@@ -390,7 +390,8 @@
390
390
  "type": "string",
391
391
  "enum": [
392
392
  "localnet",
393
- "testnet"
393
+ "testnet",
394
+ "devnet"
394
395
  ],
395
396
  "description": "Network entrypoint: Specifies which network the operation occurs on"
396
397
  },
@@ -610,7 +610,7 @@
610
610
  "type": "null"
611
611
  }
612
612
  ],
613
- "description": "Contact object."
613
+ "description": "Contact object ID or name."
614
614
  }
615
615
  },
616
616
  "required": [
@@ -642,7 +642,8 @@
642
642
  "type": "string",
643
643
  "enum": [
644
644
  "localnet",
645
- "testnet"
645
+ "testnet",
646
+ "devnet"
646
647
  ],
647
648
  "description": "Network entrypoint: Specifies which network the operation occurs on"
648
649
  },
@@ -329,7 +329,8 @@
329
329
  "type": "string",
330
330
  "enum": [
331
331
  "localnet",
332
- "testnet"
332
+ "testnet",
333
+ "devnet"
333
334
  ],
334
335
  "description": "Network entrypoint: Specifies which network the operation occurs on"
335
336
  },
@@ -428,7 +428,7 @@
428
428
  "type": "null"
429
429
  }
430
430
  ],
431
- "description": "Contact object."
431
+ "description": "Contact object ID or name."
432
432
  }
433
433
  },
434
434
  "required": [
@@ -460,7 +460,8 @@
460
460
  "type": "string",
461
461
  "enum": [
462
462
  "localnet",
463
- "testnet"
463
+ "testnet",
464
+ "devnet"
464
465
  ],
465
466
  "description": "Network entrypoint: Specifies which network the operation occurs on"
466
467
  },
@@ -575,7 +575,8 @@
575
575
  "type": "string",
576
576
  "enum": [
577
577
  "localnet",
578
- "testnet"
578
+ "testnet",
579
+ "devnet"
579
580
  ],
580
581
  "description": "Network entrypoint: Specifies which network the operation occurs on"
581
582
  },
@@ -617,7 +618,8 @@
617
618
  "type": "string",
618
619
  "enum": [
619
620
  "localnet",
620
- "testnet"
621
+ "testnet",
622
+ "devnet"
621
623
  ],
622
624
  "description": "Network entrypoint: Specifies which network the operation occurs on"
623
625
  },
@@ -189,7 +189,8 @@
189
189
  "type": "string",
190
190
  "enum": [
191
191
  "localnet",
192
- "testnet"
192
+ "testnet",
193
+ "devnet"
193
194
  ],
194
195
  "description": "Network entrypoint: Specifies which network the operation occurs on"
195
196
  },
@@ -748,11 +748,15 @@
748
748
  "description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
749
749
  },
750
750
  "um": {
751
- "type": [
752
- "string",
753
- "null"
751
+ "anyOf": [
752
+ {
753
+ "$ref": "#/definitions/data/properties/progress_new/properties/task/anyOf/0"
754
+ },
755
+ {
756
+ "type": "null"
757
+ }
754
758
  ],
755
- "description": "Contact object."
759
+ "description": "Contact object ID or name."
756
760
  }
757
761
  },
758
762
  "required": [
@@ -784,7 +788,8 @@
784
788
  "type": "string",
785
789
  "enum": [
786
790
  "localnet",
787
- "testnet"
791
+ "testnet",
792
+ "devnet"
788
793
  ],
789
794
  "description": "Network entrypoint: Specifies which network the operation occurs on"
790
795
  },
@@ -33,7 +33,7 @@
33
33
  "type": "string",
34
34
  "description": "Order object ID or name."
35
35
  },
36
- "agents": {
36
+ "agent": {
37
37
  "type": "object",
38
38
  "properties": {
39
39
  "entities": {
@@ -63,12 +63,12 @@
63
63
  "entities"
64
64
  ],
65
65
  "additionalProperties": false,
66
- "description": "Order agents. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."
66
+ "description": "Order agent. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."
67
67
  },
68
68
  "required_info": {
69
69
  "anyOf": [
70
70
  {
71
- "$ref": "#/definitions/data/properties/agents/properties/entities/items/properties/name_or_address"
71
+ "$ref": "#/definitions/data/properties/agent/properties/entities/items/properties/name_or_address"
72
72
  },
73
73
  {
74
74
  "type": "null"
@@ -273,7 +273,7 @@
273
273
  "description": "Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner"
274
274
  },
275
275
  "transfer_to": {
276
- "$ref": "#/definitions/data/properties/agents/properties/entities/items",
276
+ "$ref": "#/definitions/data/properties/agent/properties/entities/items",
277
277
  "description": "Set new owner of the order. Requires order owner permission to set."
278
278
  }
279
279
  },
@@ -306,7 +306,8 @@
306
306
  "type": "string",
307
307
  "enum": [
308
308
  "localnet",
309
- "testnet"
309
+ "testnet",
310
+ "devnet"
310
311
  ],
311
312
  "description": "Network entrypoint: Specifies which network the operation occurs on"
312
313
  },
@@ -193,7 +193,8 @@
193
193
  "type": "string",
194
194
  "enum": [
195
195
  "localnet",
196
- "testnet"
196
+ "testnet",
197
+ "devnet"
197
198
  ],
198
199
  "description": "Network entrypoint: Specifies which network the operation occurs on"
199
200
  },
@@ -535,7 +535,7 @@
535
535
  "type": "null"
536
536
  }
537
537
  ],
538
- "description": "Contact object."
538
+ "description": "Contact object ID or name."
539
539
  }
540
540
  },
541
541
  "additionalProperties": false,
@@ -564,7 +564,8 @@
564
564
  "type": "string",
565
565
  "enum": [
566
566
  "localnet",
567
- "testnet"
567
+ "testnet",
568
+ "devnet"
568
569
  ],
569
570
  "description": "Network entrypoint: Specifies which network the operation occurs on"
570
571
  },
@@ -758,7 +758,8 @@
758
758
  "type": "string",
759
759
  "enum": [
760
760
  "localnet",
761
- "testnet"
761
+ "testnet",
762
+ "devnet"
762
763
  ],
763
764
  "description": "Network entrypoint: Specifies which network the operation occurs on"
764
765
  },
@@ -227,7 +227,8 @@
227
227
  "type": "string",
228
228
  "enum": [
229
229
  "localnet",
230
- "testnet"
230
+ "testnet",
231
+ "devnet"
231
232
  ],
232
233
  "description": "Network entrypoint: Specifies which network the operation occurs on"
233
234
  },
@@ -751,13 +751,16 @@
751
751
  "id": {
752
752
  "anyOf": [
753
753
  {
754
- "$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0/anyOf/1/anyOf/0"
754
+ "type": "string"
755
+ },
756
+ {
757
+ "type": "number"
755
758
  },
756
759
  {
757
- "type": "integer"
760
+ "$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0/anyOf/1/anyOf/0"
758
761
  }
759
762
  ],
760
- "description": "Data item ID. If a number (such as time) is specified, it will be automatically converted to an address or ID type."
763
+ "description": "Data item ID. Supports: plain string(bigint), number (such as timestamp), or AccountOrMark_Address format."
761
764
  },
762
765
  "data": {
763
766
  "$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data"
@@ -1016,7 +1019,7 @@
1016
1019
  "type": "null"
1017
1020
  }
1018
1021
  ],
1019
- "description": "Contact object."
1022
+ "description": "Contact object ID or name."
1020
1023
  }
1021
1024
  },
1022
1025
  "required": [
@@ -1048,7 +1051,8 @@
1048
1051
  "type": "string",
1049
1052
  "enum": [
1050
1053
  "localnet",
1051
- "testnet"
1054
+ "testnet",
1055
+ "devnet"
1052
1056
  ],
1053
1057
  "description": "Network entrypoint: Specifies which network the operation occurs on"
1054
1058
  },
@@ -399,7 +399,7 @@
399
399
  "type": "null"
400
400
  }
401
401
  ],
402
- "description": "Contact object."
402
+ "description": "Contact object ID or name."
403
403
  }
404
404
  },
405
405
  "required": [
@@ -431,7 +431,8 @@
431
431
  "type": "string",
432
432
  "enum": [
433
433
  "localnet",
434
- "testnet"
434
+ "testnet",
435
+ "devnet"
435
436
  ],
436
437
  "description": "Network entrypoint: Specifies which network the operation occurs on"
437
438
  },
@@ -553,7 +553,10 @@
553
553
  "name",
554
554
  "discount_type",
555
555
  "discount_value",
556
- "recipient"
556
+ "time_ms_end",
557
+ "count",
558
+ "recipient",
559
+ "transferable"
557
560
  ],
558
561
  "additionalProperties": false,
559
562
  "description": "Issue discount."
@@ -887,7 +890,8 @@
887
890
  "type": "string",
888
891
  "enum": [
889
892
  "localnet",
890
- "testnet"
893
+ "testnet",
894
+ "devnet"
891
895
  ],
892
896
  "description": "Network entrypoint: Specifies which network the operation occurs on"
893
897
  },
@@ -593,13 +593,13 @@
593
593
  "um": {
594
594
  "anyOf": [
595
595
  {
596
- "$ref": "#/definitions/data/properties/deposit/properties/namedNewPayment"
596
+ "$ref": "#/definitions/data/properties/withdraw/properties/recipient/properties/name_or_address"
597
597
  },
598
598
  {
599
599
  "type": "null"
600
600
  }
601
601
  ],
602
- "description": "Contact object."
602
+ "description": "Contact object ID or name."
603
603
  }
604
604
  },
605
605
  "required": [
@@ -631,7 +631,8 @@
631
631
  "type": "string",
632
632
  "enum": [
633
633
  "localnet",
634
- "testnet"
634
+ "testnet",
635
+ "devnet"
635
636
  ],
636
637
  "description": "Network entrypoint: Specifies which network the operation occurs on"
637
638
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wowok/agent-mcp",
3
- "version": "2.2.21",
3
+ "version": "2.3.0",
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",
@@ -37,7 +37,7 @@
37
37
  "license": "Apache-2.0",
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "^1.29.0",
40
- "@wowok/wowok": "2.2.16",
40
+ "@wowok/wowok": "2.3.0",
41
41
  "lodash": "^4.18.1",
42
42
  "zod": "^3.25.76"
43
43
  },