@wowok/agent-mcp 2.2.11 → 2.2.13

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 (93) hide show
  1. package/dist/docs/index.d.ts +3 -0
  2. package/dist/docs/index.js +2 -0
  3. package/dist/docs/loader.d.ts +12 -0
  4. package/dist/docs/loader.js +177 -0
  5. package/dist/docs/search.d.ts +17 -0
  6. package/dist/docs/search.js +325 -0
  7. package/dist/docs/types.d.ts +55 -0
  8. package/dist/docs/types.js +1 -0
  9. package/dist/index.d.ts +12 -0
  10. package/dist/index.js +146 -39
  11. package/docs/README.md +249 -0
  12. package/docs/WIP.md +388 -0
  13. package/docs/WTS.md +536 -0
  14. package/docs/docs/account.md +914 -0
  15. package/docs/docs/allocation.md +635 -0
  16. package/docs/docs/arbitration.md +1804 -0
  17. package/docs/docs/arbitration_state_machine.md +270 -0
  18. package/docs/docs/contact.md +709 -0
  19. package/docs/docs/demand.md +948 -0
  20. package/docs/docs/guard.md +1465 -0
  21. package/docs/docs/localinfo.md +432 -0
  22. package/docs/docs/localmark.md +583 -0
  23. package/docs/docs/machine.md +2490 -0
  24. package/docs/docs/messenger.md +2098 -0
  25. package/docs/docs/onchain_events.md +267 -0
  26. package/docs/docs/order.md +1001 -0
  27. package/docs/docs/payment.md +512 -0
  28. package/docs/docs/permission.md +1438 -0
  29. package/docs/docs/personal.md +742 -0
  30. package/docs/docs/progress.md +1748 -0
  31. package/docs/docs/query.md +467 -0
  32. package/docs/docs/repository.md +1043 -0
  33. package/docs/docs/reward.md +833 -0
  34. package/docs/docs/service.md +2130 -0
  35. package/docs/docs/stage-01-introduction.md +243 -0
  36. package/docs/docs/stage-02-trust.md +302 -0
  37. package/docs/docs/stage-03-collaboration.md +337 -0
  38. package/docs/docs/stage-04-transaction.md +277 -0
  39. package/docs/docs/stage-05-business.md +151 -0
  40. package/docs/docs/stage-06-personal.md +203 -0
  41. package/docs/docs/stage-07-query.md +572 -0
  42. package/docs/docs/stage-08-examples.md +184 -0
  43. package/docs/docs/treasury.md +1149 -0
  44. package/docs/docs/wowok_buildin_info.md +740 -0
  45. package/docs/examples/Insurance/Insurance.md +594 -0
  46. package/docs/examples/Insurance/Insurance_TestResults.md +481 -0
  47. package/docs/examples/Insurance/insurance_complete_guard_v1.json +50 -0
  48. package/docs/examples/MyShop/MyShop.md +1353 -0
  49. package/docs/examples/MyShop/MyShop_TestResults.md +1003 -0
  50. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +1898 -0
  51. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +1297 -0
  52. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +743 -0
  53. package/docs/examples/MyShop_Advanced/machine_nodes.json +222 -0
  54. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +776 -0
  55. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +599 -0
  56. package/docs/examples/Travel/Travel.md +1157 -0
  57. package/docs/examples/Travel/Travel_TestResults.md +743 -0
  58. package/docs/examples/Travel/calc-weather-timestamps.js +8 -0
  59. package/docs/examples/Travel/travel_machine_v2_export.json +104 -0
  60. package/docs/examples/Travel/weather_check_guard_v1.json +51 -0
  61. package/docs/skills/WOWOK.md +650 -0
  62. package/docs/skills/onchain_operations/_common.md +406 -0
  63. package/docs/skills/onchain_operations/_index.md +196 -0
  64. package/docs/skills/onchain_operations/allocation.md +28 -0
  65. package/docs/skills/onchain_operations/arbitration.md +106 -0
  66. package/docs/skills/onchain_operations/contact.md +40 -0
  67. package/docs/skills/onchain_operations/demand.md +53 -0
  68. package/docs/skills/onchain_operations/gen_passport.md +23 -0
  69. package/docs/skills/onchain_operations/guard.md +56 -0
  70. package/docs/skills/onchain_operations/machine.md +89 -0
  71. package/docs/skills/onchain_operations/order.md +56 -0
  72. package/docs/skills/onchain_operations/payment.md +24 -0
  73. package/docs/skills/onchain_operations/permission.md +68 -0
  74. package/docs/skills/onchain_operations/personal.md +58 -0
  75. package/docs/skills/onchain_operations/progress.md +38 -0
  76. package/docs/skills/onchain_operations/repository.md +70 -0
  77. package/docs/skills/onchain_operations/reward.md +38 -0
  78. package/docs/skills/onchain_operations/service.md +78 -0
  79. package/docs/skills/onchain_operations/treasury.md +68 -0
  80. package/docs/skills/schema-account_operation.md +402 -0
  81. package/docs/skills/schema-guard2file.md +153 -0
  82. package/docs/skills/schema-local_info_operation.md +160 -0
  83. package/docs/skills/schema-local_mark_operation.md +148 -0
  84. package/docs/skills/schema-machineNode2file.md +155 -0
  85. package/docs/skills/schema-messenger_operation.md +547 -0
  86. package/docs/skills/schema-onchain_events.md +201 -0
  87. package/docs/skills/schema-onchain_table_data.md +334 -0
  88. package/docs/skills/schema-query_toolkit.md +395 -0
  89. package/docs/skills/schema-wip_file.md +240 -0
  90. package/docs/skills/schema-wowok_buildin_info.md +296 -0
  91. package/docs/wip-examples/three_body.html +57 -0
  92. package/docs/wip-examples/three_body.wip +30 -0
  93. package/package.json +3 -2
@@ -0,0 +1,8 @@
1
+
2
+ const now = Date.now();
3
+ const oneDay = 24 * 60 * 60 * 1000;
4
+
5
+ for (let i = 4; i >= 0; i--) {
6
+ const ts = now - i * oneDay;
7
+ console.log(`Day ${4 - i + 1}: ${ts}`);
8
+ }
@@ -0,0 +1,104 @@
1
+ [
2
+ {
3
+ "name": "Ice Scooting",
4
+ "pairs": [
5
+ {
6
+ "prev_node": "SPA",
7
+ "threshold": 1,
8
+ "forwards": [
9
+ {
10
+ "name": "complete_trip",
11
+ "weight": 1,
12
+ "namedOperator": null,
13
+ "permissionIndex": 1003,
14
+ "guard": {
15
+ "guard": "0xe00d9482b61fd7e7a4782f43d678a9fb19bd101737de92e453559b5e09565b51",
16
+ "retained_submission": []
17
+ }
18
+ },
19
+ {
20
+ "name": "cancel_trip",
21
+ "weight": 1,
22
+ "namedOperator": null,
23
+ "permissionIndex": 1004,
24
+ "guard": {
25
+ "guard": "0x831cb9cfe91f81cdcedef7811f4e9b48023cf95d25887c9639615613191e6595",
26
+ "retained_submission": []
27
+ }
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "name": "Start",
35
+ "pairs": [
36
+ {
37
+ "prev_node": "",
38
+ "threshold": 0,
39
+ "forwards": [
40
+ {
41
+ "name": "buy_insurance",
42
+ "weight": 1,
43
+ "namedOperator": null,
44
+ "permissionIndex": 1000
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "name": "Buy Insurance",
52
+ "pairs": [
53
+ {
54
+ "prev_node": "Start",
55
+ "threshold": 1,
56
+ "forwards": [
57
+ {
58
+ "name": "go_ice_scooting",
59
+ "weight": 1,
60
+ "namedOperator": null,
61
+ "permissionIndex": 1001
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "name": "Cancel",
69
+ "pairs": [
70
+ {
71
+ "prev_node": "Ice Scooting",
72
+ "threshold": 1,
73
+ "forwards": []
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "name": "Complete",
79
+ "pairs": [
80
+ {
81
+ "prev_node": "Ice Scooting",
82
+ "threshold": 1,
83
+ "forwards": []
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "SPA",
89
+ "pairs": [
90
+ {
91
+ "prev_node": "Buy Insurance",
92
+ "threshold": 1,
93
+ "forwards": [
94
+ {
95
+ "name": "go_ice_scooting",
96
+ "weight": 1,
97
+ "namedOperator": null,
98
+ "permissionIndex": 1002
99
+ }
100
+ ]
101
+ }
102
+ ]
103
+ }
104
+ ]
@@ -0,0 +1,51 @@
1
+ {
2
+ "namedNew": {
3
+ "name": "weather_check_guard_v1",
4
+ "tags": ["weather", "check", "travel"],
5
+ "replaceExistName": true
6
+ },
7
+ "description": "Weather check guard for ice scooting activity. Checks if weather data exists for the activity date.",
8
+ "table": [
9
+ {
10
+ "identifier": 0,
11
+ "b_submission": false,
12
+ "value_type": "Address",
13
+ "value": "weather_repo_v2",
14
+ "name": "Weather Repository address"
15
+ },
16
+ {
17
+ "identifier": 1,
18
+ "b_submission": false,
19
+ "value_type": "String",
20
+ "value": "Condition",
21
+ "name": "Repository policy name"
22
+ },
23
+ {
24
+ "identifier": 2,
25
+ "b_submission": true,
26
+ "value_type": "U64",
27
+ "value": 0,
28
+ "name": "Activity date timestamp (submitted at runtime)"
29
+ }
30
+ ],
31
+ "root": {
32
+ "type": "query",
33
+ "query": 1166,
34
+ "object": {
35
+ "identifier": 0
36
+ },
37
+ "parameters": [
38
+ {
39
+ "type": "identifier",
40
+ "identifier": 1
41
+ },
42
+ {
43
+ "type": "convert_number_address",
44
+ "node": {
45
+ "type": "identifier",
46
+ "identifier": 2
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ }