@wowok/agent-mcp 2.7.5 → 2.7.7
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/dist/project/evaluation-fix.spec.d.ts +1 -0
- package/dist/project/evaluation-fix.spec.js +1 -0
- package/dist/project/evaluation.js +1 -1
- package/dist/project/index.js +1 -1
- package/dist/project/rollback-policy.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +9 -0
- package/dist/schema/call/arbitration.d.ts +10 -0
- package/dist/schema/call/contact.d.ts +10 -0
- package/dist/schema/call/demand.d.ts +10 -0
- package/dist/schema/call/machine.d.ts +10 -0
- package/dist/schema/call/order.d.ts +10 -0
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission.d.ts +10 -0
- package/dist/schema/call/progress.d.ts +10 -0
- package/dist/schema/call/repository.d.ts +10 -0
- package/dist/schema/call/reward.d.ts +16 -0
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +16 -0
- package/dist/schema/call/treasury.d.ts +16 -0
- package/dist/schema/common/index.d.ts +21 -0
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +68 -1
- package/dist/schema/operations.js +1 -1
- package/dist/schema/query/index.d.ts +5 -0
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +274 -7
- package/dist/schemas/onchain_operations_allocation.schema.json +12 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +20 -0
- package/dist/schemas/onchain_operations_contact.schema.json +20 -0
- package/dist/schemas/onchain_operations_demand.schema.json +20 -0
- package/dist/schemas/onchain_operations_machine.schema.json +20 -0
- package/dist/schemas/onchain_operations_order.schema.json +20 -0
- package/dist/schemas/onchain_operations_payment.schema.json +6 -7
- package/dist/schemas/onchain_operations_permission.schema.json +20 -0
- package/dist/schemas/onchain_operations_progress.schema.json +20 -0
- package/dist/schemas/onchain_operations_repository.schema.json +20 -0
- package/dist/schemas/onchain_operations_reward.schema.json +32 -0
- package/dist/schemas/onchain_operations_service.schema.json +32 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +32 -0
- package/dist/schemas/query_toolkit.output.json +20 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
|
@@ -590,6 +590,14 @@
|
|
|
590
590
|
},
|
|
591
591
|
"content_raw": {
|
|
592
592
|
"description": "Raw content data"
|
|
593
|
+
},
|
|
594
|
+
"version": {
|
|
595
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
596
|
+
"type": "string"
|
|
597
|
+
},
|
|
598
|
+
"digest": {
|
|
599
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
600
|
+
"type": "string"
|
|
593
601
|
}
|
|
594
602
|
},
|
|
595
603
|
"required": [
|
|
@@ -641,6 +649,18 @@
|
|
|
641
649
|
"payment": {
|
|
642
650
|
"type": "string",
|
|
643
651
|
"description": "Payment object ID"
|
|
652
|
+
},
|
|
653
|
+
"type": {
|
|
654
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
655
|
+
"type": "string"
|
|
656
|
+
},
|
|
657
|
+
"version": {
|
|
658
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
659
|
+
"type": "string"
|
|
660
|
+
},
|
|
661
|
+
"digest": {
|
|
662
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
663
|
+
"type": "string"
|
|
644
664
|
}
|
|
645
665
|
},
|
|
646
666
|
"required": [
|
|
@@ -238,6 +238,14 @@
|
|
|
238
238
|
},
|
|
239
239
|
"content_raw": {
|
|
240
240
|
"description": "Raw content data"
|
|
241
|
+
},
|
|
242
|
+
"version": {
|
|
243
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
"digest": {
|
|
247
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
248
|
+
"type": "string"
|
|
241
249
|
}
|
|
242
250
|
},
|
|
243
251
|
"required": [
|
|
@@ -289,6 +297,18 @@
|
|
|
289
297
|
"payment": {
|
|
290
298
|
"type": "string",
|
|
291
299
|
"description": "Payment object ID"
|
|
300
|
+
},
|
|
301
|
+
"type": {
|
|
302
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
303
|
+
"type": "string"
|
|
304
|
+
},
|
|
305
|
+
"version": {
|
|
306
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"digest": {
|
|
310
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
311
|
+
"type": "string"
|
|
292
312
|
}
|
|
293
313
|
},
|
|
294
314
|
"required": [
|
|
@@ -376,6 +376,14 @@
|
|
|
376
376
|
},
|
|
377
377
|
"content_raw": {
|
|
378
378
|
"description": "Raw content data"
|
|
379
|
+
},
|
|
380
|
+
"version": {
|
|
381
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"digest": {
|
|
385
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
386
|
+
"type": "string"
|
|
379
387
|
}
|
|
380
388
|
},
|
|
381
389
|
"required": [
|
|
@@ -427,6 +435,18 @@
|
|
|
427
435
|
"payment": {
|
|
428
436
|
"type": "string",
|
|
429
437
|
"description": "Payment object ID"
|
|
438
|
+
},
|
|
439
|
+
"type": {
|
|
440
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"version": {
|
|
444
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
445
|
+
"type": "string"
|
|
446
|
+
},
|
|
447
|
+
"digest": {
|
|
448
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
449
|
+
"type": "string"
|
|
430
450
|
}
|
|
431
451
|
},
|
|
432
452
|
"required": [
|
|
@@ -1067,6 +1067,14 @@
|
|
|
1067
1067
|
},
|
|
1068
1068
|
"content_raw": {
|
|
1069
1069
|
"description": "Raw content data"
|
|
1070
|
+
},
|
|
1071
|
+
"version": {
|
|
1072
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
1073
|
+
"type": "string"
|
|
1074
|
+
},
|
|
1075
|
+
"digest": {
|
|
1076
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
1077
|
+
"type": "string"
|
|
1070
1078
|
}
|
|
1071
1079
|
},
|
|
1072
1080
|
"required": [
|
|
@@ -1118,6 +1126,18 @@
|
|
|
1118
1126
|
"payment": {
|
|
1119
1127
|
"type": "string",
|
|
1120
1128
|
"description": "Payment object ID"
|
|
1129
|
+
},
|
|
1130
|
+
"type": {
|
|
1131
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
1132
|
+
"type": "string"
|
|
1133
|
+
},
|
|
1134
|
+
"version": {
|
|
1135
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
1136
|
+
"type": "string"
|
|
1137
|
+
},
|
|
1138
|
+
"digest": {
|
|
1139
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
1140
|
+
"type": "string"
|
|
1121
1141
|
}
|
|
1122
1142
|
},
|
|
1123
1143
|
"required": [
|
|
@@ -188,6 +188,14 @@
|
|
|
188
188
|
},
|
|
189
189
|
"content_raw": {
|
|
190
190
|
"description": "Raw content data"
|
|
191
|
+
},
|
|
192
|
+
"version": {
|
|
193
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"digest": {
|
|
197
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
198
|
+
"type": "string"
|
|
191
199
|
}
|
|
192
200
|
},
|
|
193
201
|
"required": [
|
|
@@ -239,6 +247,18 @@
|
|
|
239
247
|
"payment": {
|
|
240
248
|
"type": "string",
|
|
241
249
|
"description": "Payment object ID"
|
|
250
|
+
},
|
|
251
|
+
"type": {
|
|
252
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"version": {
|
|
256
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"digest": {
|
|
260
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
261
|
+
"type": "string"
|
|
242
262
|
}
|
|
243
263
|
},
|
|
244
264
|
"required": [
|
|
@@ -178,28 +178,27 @@
|
|
|
178
178
|
"type": "object",
|
|
179
179
|
"properties": {
|
|
180
180
|
"object": {
|
|
181
|
-
"
|
|
182
|
-
"
|
|
181
|
+
"description": "CoinWrapper object ID (0x...) or local name to unwrap. OPTIONAL: when omitted, AUTO-RECEIVE mode unwraps EVERY CoinWrapper currently owned by the caller in a single transaction — no need to look up IDs first. Find received CoinWrappers via query_toolkit with query_type='onchain_received'.",
|
|
182
|
+
"type": "string"
|
|
183
183
|
},
|
|
184
184
|
"receive": {
|
|
185
185
|
"type": "boolean",
|
|
186
186
|
"const": true,
|
|
187
|
-
"description": "Set to true to activate receive mode. CoinWrapper objects ARE transferred to recipients via transfer::public_transfer (they arrive as owned objects), but they are NOT spendable coins. This mode unwraps a CoinWrapper into actual coins in your wallet via payment::unwrap_to_myself. The caller must be the CoinWrapper's owner (the recipient specified in the Allocation's revenue split)."
|
|
187
|
+
"description": "Set to true to activate receive mode. CoinWrapper objects ARE transferred to recipients via transfer::public_transfer (they arrive as owned objects), but they are NOT spendable coins. This mode unwraps a CoinWrapper into actual coins in your wallet via payment::unwrap_to_myself. The caller must be the CoinWrapper's owner (the recipient specified in the Allocation's revenue split). When 'object' is omitted, every CoinWrapper owned by the caller is unwrapped at once."
|
|
188
188
|
},
|
|
189
189
|
"type_parameter": {
|
|
190
|
-
"description": "Coin type of the CoinWrapper, e.g. '0x2::wow::WOW'. OPTIONAL: when omitted it is auto-derived from the CoinWrapper's own on-chain type (the inner T of `CoinWrapper<T>`), so {object, receive:true} alone unwraps to spendable coins. Only provide it explicitly when auto-derivation fails.",
|
|
190
|
+
"description": "Coin type of the CoinWrapper, e.g. '0x2::wow::WOW'. OPTIONAL: when omitted it is auto-derived from the CoinWrapper's own on-chain type (the inner T of `CoinWrapper<T>`), so {object, receive:true} alone unwraps to spendable coins. Only provide it explicitly when auto-derivation fails. In AUTO-RECEIVE mode (no object) the type is always derived per-wrapper.",
|
|
191
191
|
"type": "string"
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
"required": [
|
|
195
|
-
"object",
|
|
196
195
|
"receive"
|
|
197
196
|
],
|
|
198
197
|
"additionalProperties": false,
|
|
199
|
-
"description": "Receive mode: unwrap a CoinWrapper to the caller's wallet. Use after Allocation's alloc_by_guard creates a Payment with your address as a revenue recipient. The CoinWrapper holds your share — call this to convert it to actual coins in your wallet."
|
|
198
|
+
"description": "Receive mode: unwrap a CoinWrapper to the caller's wallet. Use after Allocation's alloc_by_guard creates a Payment with your address as a revenue recipient. The CoinWrapper holds your share — call this to convert it to actual coins in your wallet. Provide 'object' to unwrap a specific CoinWrapper, or OMIT it to auto-unwrap every CoinWrapper owned by the caller."
|
|
200
199
|
}
|
|
201
200
|
],
|
|
202
|
-
"description": "On-chain Payment operations. TWO modes:\n(1) CREATE: Set 'object' with {name, type_parameter, ...}, 'revenue', and 'info' to create a new Payment.\n(2) RECEIVE: Set {
|
|
201
|
+
"description": "On-chain Payment operations. TWO modes:\n(1) CREATE: Set 'object' with {name, type_parameter, ...}, 'revenue', and 'info' to create a new Payment.\n(2) RECEIVE: Set {receive: true} to unwrap CoinWrappers to your wallet. Provide 'object' (<coinwrapper_id_or_name>) to unwrap a specific one, or OMIT it to auto-unwrap every CoinWrapper owned by the caller. type_parameter optional — auto-derived from the CoinWrapper's type."
|
|
203
202
|
},
|
|
204
203
|
"env": {
|
|
205
204
|
"type": "object",
|
|
@@ -672,6 +672,14 @@
|
|
|
672
672
|
},
|
|
673
673
|
"content_raw": {
|
|
674
674
|
"description": "Raw content data"
|
|
675
|
+
},
|
|
676
|
+
"version": {
|
|
677
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
"digest": {
|
|
681
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
682
|
+
"type": "string"
|
|
675
683
|
}
|
|
676
684
|
},
|
|
677
685
|
"required": [
|
|
@@ -723,6 +731,18 @@
|
|
|
723
731
|
"payment": {
|
|
724
732
|
"type": "string",
|
|
725
733
|
"description": "Payment object ID"
|
|
734
|
+
},
|
|
735
|
+
"type": {
|
|
736
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
737
|
+
"type": "string"
|
|
738
|
+
},
|
|
739
|
+
"version": {
|
|
740
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
741
|
+
"type": "string"
|
|
742
|
+
},
|
|
743
|
+
"digest": {
|
|
744
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
745
|
+
"type": "string"
|
|
726
746
|
}
|
|
727
747
|
},
|
|
728
748
|
"required": [
|
|
@@ -219,6 +219,14 @@
|
|
|
219
219
|
},
|
|
220
220
|
"content_raw": {
|
|
221
221
|
"description": "Raw content data"
|
|
222
|
+
},
|
|
223
|
+
"version": {
|
|
224
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"digest": {
|
|
228
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
229
|
+
"type": "string"
|
|
222
230
|
}
|
|
223
231
|
},
|
|
224
232
|
"required": [
|
|
@@ -270,6 +278,18 @@
|
|
|
270
278
|
"payment": {
|
|
271
279
|
"type": "string",
|
|
272
280
|
"description": "Payment object ID"
|
|
281
|
+
},
|
|
282
|
+
"type": {
|
|
283
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"version": {
|
|
287
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"digest": {
|
|
291
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
292
|
+
"type": "string"
|
|
273
293
|
}
|
|
274
294
|
},
|
|
275
295
|
"required": [
|
|
@@ -853,6 +853,14 @@
|
|
|
853
853
|
},
|
|
854
854
|
"content_raw": {
|
|
855
855
|
"description": "Raw content data"
|
|
856
|
+
},
|
|
857
|
+
"version": {
|
|
858
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
859
|
+
"type": "string"
|
|
860
|
+
},
|
|
861
|
+
"digest": {
|
|
862
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
863
|
+
"type": "string"
|
|
856
864
|
}
|
|
857
865
|
},
|
|
858
866
|
"required": [
|
|
@@ -904,6 +912,18 @@
|
|
|
904
912
|
"payment": {
|
|
905
913
|
"type": "string",
|
|
906
914
|
"description": "Payment object ID"
|
|
915
|
+
},
|
|
916
|
+
"type": {
|
|
917
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
918
|
+
"type": "string"
|
|
919
|
+
},
|
|
920
|
+
"version": {
|
|
921
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
922
|
+
"type": "string"
|
|
923
|
+
},
|
|
924
|
+
"digest": {
|
|
925
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
926
|
+
"type": "string"
|
|
907
927
|
}
|
|
908
928
|
},
|
|
909
929
|
"required": [
|
|
@@ -185,6 +185,18 @@
|
|
|
185
185
|
"payment": {
|
|
186
186
|
"type": "string",
|
|
187
187
|
"description": "Payment object ID"
|
|
188
|
+
},
|
|
189
|
+
"type": {
|
|
190
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"version": {
|
|
194
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"digest": {
|
|
198
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
199
|
+
"type": "string"
|
|
188
200
|
}
|
|
189
201
|
},
|
|
190
202
|
"required": [
|
|
@@ -399,6 +411,14 @@
|
|
|
399
411
|
},
|
|
400
412
|
"content_raw": {
|
|
401
413
|
"description": "Raw content data"
|
|
414
|
+
},
|
|
415
|
+
"version": {
|
|
416
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"digest": {
|
|
420
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
421
|
+
"type": "string"
|
|
402
422
|
}
|
|
403
423
|
},
|
|
404
424
|
"required": [
|
|
@@ -450,6 +470,18 @@
|
|
|
450
470
|
"payment": {
|
|
451
471
|
"type": "string",
|
|
452
472
|
"description": "Payment object ID"
|
|
473
|
+
},
|
|
474
|
+
"type": {
|
|
475
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
"version": {
|
|
479
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"digest": {
|
|
483
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
484
|
+
"type": "string"
|
|
453
485
|
}
|
|
454
486
|
},
|
|
455
487
|
"required": [
|
|
@@ -1219,6 +1219,18 @@
|
|
|
1219
1219
|
"payment": {
|
|
1220
1220
|
"type": "string",
|
|
1221
1221
|
"description": "Payment object ID"
|
|
1222
|
+
},
|
|
1223
|
+
"type": {
|
|
1224
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
1225
|
+
"type": "string"
|
|
1226
|
+
},
|
|
1227
|
+
"version": {
|
|
1228
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
1229
|
+
"type": "string"
|
|
1230
|
+
},
|
|
1231
|
+
"digest": {
|
|
1232
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
1233
|
+
"type": "string"
|
|
1222
1234
|
}
|
|
1223
1235
|
},
|
|
1224
1236
|
"required": [
|
|
@@ -1266,6 +1278,14 @@
|
|
|
1266
1278
|
},
|
|
1267
1279
|
"content_raw": {
|
|
1268
1280
|
"description": "Raw content data"
|
|
1281
|
+
},
|
|
1282
|
+
"version": {
|
|
1283
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
},
|
|
1286
|
+
"digest": {
|
|
1287
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
1288
|
+
"type": "string"
|
|
1269
1289
|
}
|
|
1270
1290
|
},
|
|
1271
1291
|
"required": [
|
|
@@ -1317,6 +1337,18 @@
|
|
|
1317
1337
|
"payment": {
|
|
1318
1338
|
"type": "string",
|
|
1319
1339
|
"description": "Payment object ID"
|
|
1340
|
+
},
|
|
1341
|
+
"type": {
|
|
1342
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"version": {
|
|
1346
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"digest": {
|
|
1350
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
1351
|
+
"type": "string"
|
|
1320
1352
|
}
|
|
1321
1353
|
},
|
|
1322
1354
|
"required": [
|
|
@@ -142,6 +142,18 @@
|
|
|
142
142
|
"payment": {
|
|
143
143
|
"type": "string",
|
|
144
144
|
"description": "Payment object ID"
|
|
145
|
+
},
|
|
146
|
+
"type": {
|
|
147
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"version": {
|
|
151
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"digest": {
|
|
155
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
156
|
+
"type": "string"
|
|
145
157
|
}
|
|
146
158
|
},
|
|
147
159
|
"required": [
|
|
@@ -755,6 +767,14 @@
|
|
|
755
767
|
},
|
|
756
768
|
"content_raw": {
|
|
757
769
|
"description": "Raw content data"
|
|
770
|
+
},
|
|
771
|
+
"version": {
|
|
772
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
773
|
+
"type": "string"
|
|
774
|
+
},
|
|
775
|
+
"digest": {
|
|
776
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
777
|
+
"type": "string"
|
|
758
778
|
}
|
|
759
779
|
},
|
|
760
780
|
"required": [
|
|
@@ -806,6 +826,18 @@
|
|
|
806
826
|
"payment": {
|
|
807
827
|
"type": "string",
|
|
808
828
|
"description": "Payment object ID"
|
|
829
|
+
},
|
|
830
|
+
"type": {
|
|
831
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
832
|
+
"type": "string"
|
|
833
|
+
},
|
|
834
|
+
"version": {
|
|
835
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
836
|
+
"type": "string"
|
|
837
|
+
},
|
|
838
|
+
"digest": {
|
|
839
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
840
|
+
"type": "string"
|
|
809
841
|
}
|
|
810
842
|
},
|
|
811
843
|
"required": [
|
|
@@ -15423,6 +15423,18 @@
|
|
|
15423
15423
|
"payment": {
|
|
15424
15424
|
"type": "string",
|
|
15425
15425
|
"description": "Payment object ID"
|
|
15426
|
+
},
|
|
15427
|
+
"type": {
|
|
15428
|
+
"description": "Type of the received object (or inner coin type); used for token_type detection",
|
|
15429
|
+
"type": "string"
|
|
15430
|
+
},
|
|
15431
|
+
"version": {
|
|
15432
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
15433
|
+
"type": "string"
|
|
15434
|
+
},
|
|
15435
|
+
"digest": {
|
|
15436
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
15437
|
+
"type": "string"
|
|
15426
15438
|
}
|
|
15427
15439
|
},
|
|
15428
15440
|
"required": [
|
|
@@ -15461,6 +15473,14 @@
|
|
|
15461
15473
|
},
|
|
15462
15474
|
"content_raw": {
|
|
15463
15475
|
"description": "Raw content data"
|
|
15476
|
+
},
|
|
15477
|
+
"version": {
|
|
15478
|
+
"description": "Object version, required to build a Receiving<T> argument for owner_receive",
|
|
15479
|
+
"type": "string"
|
|
15480
|
+
},
|
|
15481
|
+
"digest": {
|
|
15482
|
+
"description": "Object digest, required to build a Receiving<T> argument for owner_receive",
|
|
15483
|
+
"type": "string"
|
|
15464
15484
|
}
|
|
15465
15485
|
},
|
|
15466
15486
|
"required": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{listServices,getServiceInfo,toggle as
|
|
1
|
+
import{listServices,getServiceInfo,toggle as a353a,setEnabled as a353b,reset as a353c}from'../../config/index.js';import{strictParse}from'../../schema/index.js';import{ConfigOperationInputSchema}from'../../schema/config/index.js';export async function handleConfigOperation(a){const b=strictParse(ConfigOperationInputSchema,a,'config_operation\x20input'),{action:c,service:d}=b;let e;switch(c){case'list':e={'action':'list','services':listServices()};break;case'toggle':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20toggle');const f=d,g=getServiceInfo(f);if(!g)throw new Error('Unknown\x20service:\x20'+f+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');const h=a353a(f);e={'action':'toggle','service':f,'enabled':h,'reminder':g['reminder']};break;}case'enable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20enable');const i=d,j=getServiceInfo(i);if(!j)throw new Error('Unknown\x20service:\x20'+i+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a353b(i,!![]),e={'action':'enable','service':i,'enabled':!![],'reminder':j['reminder']};break;}case'disable':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20disable');const k=d,l=getServiceInfo(k);if(!l)throw new Error('Unknown\x20service:\x20'+k+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a353b(k,![]),e={'action':'disable','service':k,'enabled':![],'reminder':l['reminder']};break;}case'reset':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20reset');const m=d,n=getServiceInfo(m);if(!n)throw new Error('Unknown\x20service:\x20'+m+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');a353c(m),e={'action':'reset','service':m,'enabled':getServiceInfo(m)?.['enabled'],'reminder':n['reminder'],'reset':!![]};break;}case'info':{if(!d)throw new Error('\x27service\x27\x20param\x20is\x20required\x20for\x20info');const o=d,p=getServiceInfo(o);if(!p)throw new Error('Unknown\x20service:\x20'+o+'.\x20Use\x20action=\x27list\x27\x20to\x20see\x20all\x20valid\x20services.');e={'action':'info',...p};break;}default:throw new Error('Unknown\x20config_operation\x20action:\x20'+String(c));}return{'content':[{'type':'text','text':JSON['stringify']({'result':e})}],'structuredContent':{'result':e}};}
|