@wowok/skills 1.1.9 → 1.1.11

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 (40) hide show
  1. package/LICENSE +36 -0
  2. package/README.md +1 -8
  3. package/dist/cli.js +4 -0
  4. package/dist/cli.js.map +1 -1
  5. package/dist/skills.d.ts.map +1 -1
  6. package/dist/skills.js +33 -0
  7. package/dist/skills.js.map +1 -1
  8. package/examples/Insurance/Insurance.md +218 -90
  9. package/examples/MyShop/MyShop.md +513 -245
  10. package/examples/MyShop/myshop_machine_nodes.json +87 -0
  11. package/examples/MyShop_Advanced/MyShop_Advanced.md +633 -228
  12. package/examples/ThreeBody_Signature/ThreeBody_Signature.md +195 -202
  13. package/examples/Travel/Travel.md +775 -487
  14. package/examples/Travel/calc-weather-timestamps.js +9 -5
  15. package/package.json +8 -3
  16. package/scripts/install.js +4 -0
  17. package/wowok-arbitrator/SKILL.md +542 -1
  18. package/wowok-auditor/SKILL.md +581 -0
  19. package/wowok-guard/SKILL.md +425 -1
  20. package/wowok-machine/SKILL.md +404 -1
  21. package/wowok-messenger/SKILL.md +551 -1
  22. package/wowok-onboard/SKILL.md +520 -0
  23. package/wowok-order/SKILL.md +528 -1
  24. package/wowok-output/SKILL.md +571 -0
  25. package/wowok-planner/SKILL.md +757 -0
  26. package/wowok-provider/SKILL.md +455 -1
  27. package/wowok-safety/SKILL.md +557 -0
  28. package/wowok-scenario/SKILL.md +585 -0
  29. package/wowok-tools/SKILL.md +423 -1
  30. package/examples/Insurance/Insurance_TestResults.md +0 -481
  31. package/examples/Insurance/insurance_complete_guard_v1.json +0 -50
  32. package/examples/MyShop/MyShop_TestResults.md +0 -1003
  33. package/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
  34. package/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
  35. package/examples/MyShop_Advanced/machine_nodes.json +0 -222
  36. package/examples/MyShop_Advanced/three_body_signature.wip +0 -30
  37. package/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
  38. package/examples/Travel/Travel_TestResults.md +0 -743
  39. package/examples/Travel/travel_machine_v2_export.json +0 -104
  40. package/examples/Travel/weather_check_guard_v1.json +0 -51
@@ -1,222 +0,0 @@
1
- [
2
- {
3
- "name": "Order Confirmed",
4
- "pairs": [
5
- {
6
- "prev_node": "",
7
- "threshold": 1,
8
- "forwards": [
9
- {
10
- "name": "Confirm Order",
11
- "permissionIndex": 1000,
12
- "weight": 1
13
- }
14
- ]
15
- }
16
- ]
17
- },
18
- {
19
- "name": "Order Cancel",
20
- "pairs": [
21
- {
22
- "prev_node": "Order Confirmed",
23
- "threshold": 1,
24
- "forwards": [
25
- {
26
- "name": "Cancel Order",
27
- "permissionIndex": 1000,
28
- "weight": 1
29
- }
30
- ]
31
- }
32
- ]
33
- },
34
- {
35
- "name": "Shipping",
36
- "pairs": [
37
- {
38
- "prev_node": "Order Confirmed",
39
- "threshold": 1,
40
- "forwards": [
41
- {
42
- "name": "Confirm Signature and Submit Merkle Root",
43
- "permissionIndex": 1001,
44
- "weight": 1,
45
- "guard": { "guard": "machine_service_order_v2" }
46
- }
47
- ]
48
- }
49
- ]
50
- },
51
- {
52
- "name": "Delivery Complete",
53
- "pairs": [
54
- {
55
- "prev_node": "Shipping",
56
- "threshold": 2,
57
- "forwards": [
58
- {
59
- "name": "Confirm Delivery with Merkle Root",
60
- "permissionIndex": 1001,
61
- "weight": 1,
62
- "guard": { "guard": "machine_merkle_root_v2" }
63
- },
64
- {
65
- "name": "Timeout Auto-Complete (10 days)",
66
- "permissionIndex": 1001,
67
- "weight": 1,
68
- "guard": { "guard": "machine_time_10d_v2" }
69
- }
70
- ]
71
- }
72
- ]
73
- },
74
- {
75
- "name": "Wonderful",
76
- "pairs": [
77
- {
78
- "prev_node": "Delivery Complete",
79
- "threshold": 1,
80
- "forwards": [
81
- {
82
- "name": "Rate as Wonderful",
83
- "namedOperator": "",
84
- "weight": 1
85
- }
86
- ]
87
- }
88
- ]
89
- },
90
- {
91
- "name": "Order Complete",
92
- "pairs": [
93
- {
94
- "prev_node": "Delivery Complete",
95
- "threshold": 1,
96
- "forwards": [
97
- {
98
- "name": "Complete Order",
99
- "permissionIndex": 1001,
100
- "weight": 1
101
- }
102
- ]
103
- }
104
- ]
105
- },
106
- {
107
- "name": "Lost",
108
- "pairs": [
109
- {
110
- "prev_node": "Shipping",
111
- "threshold": 1,
112
- "forwards": [
113
- {
114
- "name": "Report Lost",
115
- "namedOperator": "",
116
- "weight": 1
117
- }
118
- ]
119
- }
120
- ]
121
- },
122
- {
123
- "name": "Non-receipt Return",
124
- "pairs": [
125
- {
126
- "prev_node": "Shipping",
127
- "threshold": 2,
128
- "forwards": [
129
- {
130
- "name": "Request Return",
131
- "namedOperator": "",
132
- "weight": 1
133
- },
134
- {
135
- "name": "Confirm Return with Merkle Root",
136
- "permissionIndex": 1001,
137
- "weight": 1,
138
- "guard": { "guard": "machine_merkle_root_v2" }
139
- }
140
- ]
141
- }
142
- ]
143
- },
144
- {
145
- "name": "Receipt Return",
146
- "pairs": [
147
- {
148
- "prev_node": "Delivery Complete",
149
- "threshold": 2,
150
- "forwards": [
151
- {
152
- "name": "Request Return with Receipt",
153
- "namedOperator": "",
154
- "weight": 1
155
- },
156
- {
157
- "name": "Confirm Return Address with Merkle Root",
158
- "permissionIndex": 1001,
159
- "weight": 1,
160
- "guard": { "guard": "machine_merkle_root_v2" }
161
- }
162
- ]
163
- }
164
- ]
165
- },
166
- {
167
- "name": "Return Fail",
168
- "pairs": [
169
- {
170
- "prev_node": "Receipt Return",
171
- "threshold": 1,
172
- "forwards": [
173
- {
174
- "name": "Timeout Return Not Received",
175
- "permissionIndex": 1001,
176
- "weight": 1,
177
- "guard": { "guard": "machine_time_10d_v2" }
178
- }
179
- ]
180
- }
181
- ]
182
- },
183
- {
184
- "name": "Return Complete",
185
- "pairs": [
186
- {
187
- "prev_node": "Receipt Return",
188
- "threshold": 2,
189
- "forwards": [
190
- {
191
- "name": "Submit Return Merkle Root",
192
- "namedOperator": "",
193
- "weight": 1,
194
- "guard": { "guard": "machine_merkle_root_v2" }
195
- },
196
- {
197
- "name": "Confirm Return Received",
198
- "permissionIndex": 1001,
199
- "weight": 1
200
- }
201
- ]
202
- },
203
- {
204
- "prev_node": "Non-receipt Return",
205
- "threshold": 2,
206
- "forwards": [
207
- {
208
- "name": "Submit Return Merkle Root",
209
- "namedOperator": "",
210
- "weight": 1,
211
- "guard": { "guard": "machine_merkle_root_v2" }
212
- },
213
- {
214
- "name": "Confirm Return Received",
215
- "permissionIndex": 1001,
216
- "weight": 1
217
- }
218
- ]
219
- }
220
- ]
221
- }
222
- ]