@wowok/agent-mcp 2.7.10 → 3.0.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.
- package/dist/extensions/capability-manifest.d.ts +1 -82
- package/dist/extensions/capability-manifest.js +1 -1
- package/dist/extensions/constraint-registry.d.ts +6 -4
- package/dist/extensions/constraint-registry.js +1 -1
- package/dist/extensions/index.d.ts +4 -5
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/metric-registry.d.ts +6 -4
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +2 -3
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/registry.d.ts +3 -25
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/types.d.ts +0 -68
- package/dist/goal/GoalEngine.d.ts +36 -1
- package/dist/goal/GoalEngine.js +1 -1
- package/dist/goal/types.d.ts +4 -0
- package/dist/knowledge/account-marks.d.ts +1 -0
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +13 -9
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/goal-completion.js +1 -1
- package/dist/knowledge/guard-bindings.d.ts +21 -0
- package/dist/knowledge/guard-bindings.js +1 -0
- package/dist/knowledge/index.d.ts +5 -3
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +2 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-topology.d.ts +43 -0
- package/dist/knowledge/scenario-topology.js +1 -0
- package/dist/knowledge/supply-chain.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +35 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.d.ts +1 -0
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +2 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/ScopeResolver.js +1 -1
- package/dist/monitor/SuggestionBridge.d.ts +38 -0
- package/dist/monitor/SuggestionBridge.js +1 -0
- package/dist/participation/arbitrator-interest.d.ts +20 -0
- package/dist/participation/arbitrator-interest.js +1 -0
- package/dist/participation/demander-interest.d.ts +23 -0
- package/dist/participation/demander-interest.js +1 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +20 -0
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +30 -6
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.d.ts +2 -0
- package/dist/playbooks/service-build/relationship-profile.js +1 -0
- package/dist/playbooks/service-build/semantic-graph.d.ts +5 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/relationship/derivation.d.ts +88 -0
- package/dist/relationship/derivation.js +1 -0
- package/dist/relationship/incentive.d.ts +38 -0
- package/dist/relationship/incentive.js +1 -0
- package/dist/relationship/index.d.ts +4 -0
- package/dist/relationship/index.js +1 -0
- package/dist/relationship/registry.d.ts +13 -0
- package/dist/relationship/registry.js +1 -0
- package/dist/relationship/types.d.ts +45 -0
- package/dist/relationship/types.js +1 -0
- package/dist/review/progress.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/safety/preview.js +1 -1
- package/dist/schema/call/bridge.d.ts +25 -3
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +40 -14
- package/dist/schema/goal/index.js +1 -1
- package/dist/schema/goal/planning.d.ts +6 -6
- package/dist/schema/industry-pack/index.d.ts +58 -0
- package/dist/schema/industry-pack/index.js +1 -1
- package/dist/schema/industry-pack/modes.d.ts +59 -1
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +19 -19
- package/dist/schema/local/index.d.ts +11 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +58 -16
- package/dist/schema/persona/index.d.ts +1 -1
- package/dist/schema/query/bi.d.ts +145 -16
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +2 -2
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +29 -0
- package/dist/schemas/account_operation.schema.json +6 -2
- package/dist/schemas/bridge_operation.output.json +24 -1
- package/dist/schemas/bridge_operation.schema.json +73 -1
- package/dist/schemas/goal_operation.schema.json +76 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/industry_pack_operation.output.json +176 -1
- package/dist/schemas/industry_pack_operation.schema.json +19 -0
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +41 -41
- package/dist/schemas/onchain_operations_allocation.schema.json +4 -4
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_contact.schema.json +2 -2
- package/dist/schemas/onchain_operations_demand.schema.json +2 -2
- package/dist/schemas/onchain_operations_machine.schema.json +2 -2
- package/dist/schemas/onchain_operations_order.schema.json +2 -2
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +2 -2
- package/dist/schemas/onchain_operations_repository.schema.json +2 -2
- package/dist/schemas/onchain_operations_reward.schema.json +6 -6
- package/dist/schemas/onchain_operations_service.schema.json +7 -7
- package/dist/schemas/onchain_operations_treasury.schema.json +6 -6
- package/dist/schemas/onchain_table_data.output.json +53 -0
- package/dist/schemas/query_toolkit.output.json +240 -7
- package/dist/schemas/query_toolkit.schema.json +53 -0
- package/dist/task/ProcessStore.d.ts +18 -1
- package/dist/task/ProcessStore.js +1 -1
- package/dist/task/types.d.ts +24 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/goal.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/local.d.ts +4 -3
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/rules-hook.d.ts +1 -0
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
- package/dist/mode-market/index.d.ts +0 -3
- package/dist/mode-market/index.js +0 -1
- package/dist/mode-market/registry.d.ts +0 -53
- package/dist/mode-market/registry.js +0 -1
- package/dist/mode-market/review.d.ts +0 -27
- package/dist/mode-market/review.js +0 -1
- package/dist/mode-market/submission.d.ts +0 -25
- package/dist/mode-market/submission.js +0 -1
|
@@ -399,6 +399,82 @@
|
|
|
399
399
|
],
|
|
400
400
|
"additionalProperties": false
|
|
401
401
|
},
|
|
402
|
+
{
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {
|
|
405
|
+
"action": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"const": "suggestions"
|
|
408
|
+
},
|
|
409
|
+
"id": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"description": "Goal id (goal_…)."
|
|
412
|
+
},
|
|
413
|
+
"include_resolved": {
|
|
414
|
+
"description": "Also return confirmed/dismissed suggestions. Default false (pending only).",
|
|
415
|
+
"type": "boolean"
|
|
416
|
+
},
|
|
417
|
+
"network": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"enum": [
|
|
420
|
+
"mainnet",
|
|
421
|
+
"testnet"
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"required": [
|
|
426
|
+
"action",
|
|
427
|
+
"id"
|
|
428
|
+
],
|
|
429
|
+
"additionalProperties": false
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"type": "object",
|
|
433
|
+
"properties": {
|
|
434
|
+
"action": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"const": "suggestion_resolve"
|
|
437
|
+
},
|
|
438
|
+
"id": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Goal id (goal_…)."
|
|
441
|
+
},
|
|
442
|
+
"suggestion_id": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"description": "Suggestion id (sug_…)."
|
|
445
|
+
},
|
|
446
|
+
"decision": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"enum": [
|
|
449
|
+
"confirm",
|
|
450
|
+
"dismiss"
|
|
451
|
+
],
|
|
452
|
+
"description": "confirm = accept the suggestion; dismiss = reject it (recorded, one-shot either way)."
|
|
453
|
+
},
|
|
454
|
+
"apply": {
|
|
455
|
+
"description": "With decision=confirm: run the suggested move through the normal engine stations (advance_stage → advance; complete_goal → complete with chain verification; register_object → advance objects). Default false: acknowledge only. When applying fails the suggestion STAYS PENDING and apply_error explains why.",
|
|
456
|
+
"type": "boolean"
|
|
457
|
+
},
|
|
458
|
+
"note": {
|
|
459
|
+
"description": "Optional resolution note (audit).",
|
|
460
|
+
"type": "string"
|
|
461
|
+
},
|
|
462
|
+
"network": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"enum": [
|
|
465
|
+
"mainnet",
|
|
466
|
+
"testnet"
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"required": [
|
|
471
|
+
"action",
|
|
472
|
+
"id",
|
|
473
|
+
"suggestion_id",
|
|
474
|
+
"decision"
|
|
475
|
+
],
|
|
476
|
+
"additionalProperties": false
|
|
477
|
+
},
|
|
402
478
|
{
|
|
403
479
|
"type": "object",
|
|
404
480
|
"properties": {
|
package/dist/schemas/index.json
CHANGED
|
@@ -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-09-
|
|
5
|
+
"generatedAt": "2026-09-07T08:17:17.098Z",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "onchain_operations",
|
|
@@ -614,6 +614,93 @@
|
|
|
614
614
|
},
|
|
615
615
|
"description": "Keywords that triggered trait inference."
|
|
616
616
|
},
|
|
617
|
+
"strategy_intents": {
|
|
618
|
+
"type": "array",
|
|
619
|
+
"items": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"properties": {
|
|
622
|
+
"objective": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"enum": [
|
|
625
|
+
"sales_priority",
|
|
626
|
+
"profit_priority",
|
|
627
|
+
"buyer_screening",
|
|
628
|
+
"gross_margin_control"
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
"metrics": {
|
|
632
|
+
"type": "array",
|
|
633
|
+
"items": {
|
|
634
|
+
"type": "string"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"levers": {
|
|
638
|
+
"type": "array",
|
|
639
|
+
"items": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"enum": [
|
|
642
|
+
"discount",
|
|
643
|
+
"reward",
|
|
644
|
+
"buy_guard",
|
|
645
|
+
"machine_design"
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"target": {
|
|
650
|
+
"type": "string"
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
"required": [
|
|
654
|
+
"objective",
|
|
655
|
+
"metrics",
|
|
656
|
+
"levers",
|
|
657
|
+
"target"
|
|
658
|
+
],
|
|
659
|
+
"additionalProperties": false
|
|
660
|
+
},
|
|
661
|
+
"description": "Strategy intents resolved from the provided persona strategy statements (empty if none matched)."
|
|
662
|
+
},
|
|
663
|
+
"lever_suggestions": {
|
|
664
|
+
"type": "array",
|
|
665
|
+
"items": {
|
|
666
|
+
"type": "object",
|
|
667
|
+
"properties": {
|
|
668
|
+
"lever": {
|
|
669
|
+
"type": "string",
|
|
670
|
+
"enum": [
|
|
671
|
+
"discount",
|
|
672
|
+
"reward",
|
|
673
|
+
"buy_guard",
|
|
674
|
+
"machine_design"
|
|
675
|
+
]
|
|
676
|
+
},
|
|
677
|
+
"objective": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"enum": [
|
|
680
|
+
"sales_priority",
|
|
681
|
+
"profit_priority",
|
|
682
|
+
"buyer_screening",
|
|
683
|
+
"gross_margin_control"
|
|
684
|
+
]
|
|
685
|
+
},
|
|
686
|
+
"action": {
|
|
687
|
+
"type": "string",
|
|
688
|
+
"description": "Deterministic on-chain action that pulls the lever."
|
|
689
|
+
},
|
|
690
|
+
"target": {
|
|
691
|
+
"type": "string"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"required": [
|
|
695
|
+
"lever",
|
|
696
|
+
"objective",
|
|
697
|
+
"action",
|
|
698
|
+
"target"
|
|
699
|
+
],
|
|
700
|
+
"additionalProperties": false
|
|
701
|
+
},
|
|
702
|
+
"description": "Concrete lever suggestions for the resolved strategy intents."
|
|
703
|
+
},
|
|
617
704
|
"recommendations": {
|
|
618
705
|
"type": "array",
|
|
619
706
|
"items": {
|
|
@@ -662,6 +749,48 @@
|
|
|
662
749
|
"additionalProperties": false
|
|
663
750
|
},
|
|
664
751
|
"description": "Verified reference examples for this industry (top 3)."
|
|
752
|
+
},
|
|
753
|
+
"strategy_alignment": {
|
|
754
|
+
"description": "Present only when a strategy was provided: lever alignment of the industry mode.",
|
|
755
|
+
"type": "object",
|
|
756
|
+
"properties": {
|
|
757
|
+
"score": {
|
|
758
|
+
"type": "number",
|
|
759
|
+
"description": "Lever alignment 0-1 (matched / required levers)."
|
|
760
|
+
},
|
|
761
|
+
"matched_levers": {
|
|
762
|
+
"type": "array",
|
|
763
|
+
"items": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"enum": [
|
|
766
|
+
"discount",
|
|
767
|
+
"reward",
|
|
768
|
+
"buy_guard",
|
|
769
|
+
"machine_design"
|
|
770
|
+
]
|
|
771
|
+
},
|
|
772
|
+
"description": "Required levers this mode supports."
|
|
773
|
+
},
|
|
774
|
+
"missing_levers": {
|
|
775
|
+
"type": "array",
|
|
776
|
+
"items": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"enum": [
|
|
779
|
+
"discount",
|
|
780
|
+
"reward",
|
|
781
|
+
"buy_guard",
|
|
782
|
+
"machine_design"
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"description": "Required levers this mode lacks."
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"required": [
|
|
789
|
+
"score",
|
|
790
|
+
"matched_levers",
|
|
791
|
+
"missing_levers"
|
|
792
|
+
],
|
|
793
|
+
"additionalProperties": false
|
|
665
794
|
}
|
|
666
795
|
},
|
|
667
796
|
"required": [
|
|
@@ -672,7 +801,7 @@
|
|
|
672
801
|
],
|
|
673
802
|
"additionalProperties": false
|
|
674
803
|
},
|
|
675
|
-
"description": "Top-3 similar industries + reference examples."
|
|
804
|
+
"description": "Top-3 similar industries + reference examples (re-ranked by lever alignment when strategy provided)."
|
|
676
805
|
},
|
|
677
806
|
"hint": {
|
|
678
807
|
"type": "string",
|
|
@@ -685,6 +814,8 @@
|
|
|
685
814
|
"inferred_traits",
|
|
686
815
|
"inference_confidence",
|
|
687
816
|
"matched_keywords",
|
|
817
|
+
"strategy_intents",
|
|
818
|
+
"lever_suggestions",
|
|
688
819
|
"recommendations",
|
|
689
820
|
"hint"
|
|
690
821
|
],
|
|
@@ -1272,6 +1403,28 @@
|
|
|
1272
1403
|
],
|
|
1273
1404
|
"additionalProperties": false
|
|
1274
1405
|
},
|
|
1406
|
+
{
|
|
1407
|
+
"type": "object",
|
|
1408
|
+
"properties": {
|
|
1409
|
+
"action": {
|
|
1410
|
+
"type": "string",
|
|
1411
|
+
"const": "unregister_custom_metric"
|
|
1412
|
+
},
|
|
1413
|
+
"removed": {
|
|
1414
|
+
"type": "boolean",
|
|
1415
|
+
"const": true
|
|
1416
|
+
},
|
|
1417
|
+
"metric_id": {
|
|
1418
|
+
"type": "string"
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
"required": [
|
|
1422
|
+
"action",
|
|
1423
|
+
"removed",
|
|
1424
|
+
"metric_id"
|
|
1425
|
+
],
|
|
1426
|
+
"additionalProperties": false
|
|
1427
|
+
},
|
|
1275
1428
|
{
|
|
1276
1429
|
"type": "object",
|
|
1277
1430
|
"properties": {
|
|
@@ -1348,6 +1501,28 @@
|
|
|
1348
1501
|
],
|
|
1349
1502
|
"additionalProperties": false
|
|
1350
1503
|
},
|
|
1504
|
+
{
|
|
1505
|
+
"type": "object",
|
|
1506
|
+
"properties": {
|
|
1507
|
+
"action": {
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"const": "unregister_custom_constraint"
|
|
1510
|
+
},
|
|
1511
|
+
"removed": {
|
|
1512
|
+
"type": "boolean",
|
|
1513
|
+
"const": true
|
|
1514
|
+
},
|
|
1515
|
+
"constraint_id": {
|
|
1516
|
+
"type": "string"
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
"required": [
|
|
1520
|
+
"action",
|
|
1521
|
+
"removed",
|
|
1522
|
+
"constraint_id"
|
|
1523
|
+
],
|
|
1524
|
+
"additionalProperties": false
|
|
1525
|
+
},
|
|
1351
1526
|
{
|
|
1352
1527
|
"type": "object",
|
|
1353
1528
|
"properties": {
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"register_user_mode",
|
|
32
32
|
"unregister_user_mode",
|
|
33
33
|
"register_custom_metric",
|
|
34
|
+
"unregister_custom_metric",
|
|
34
35
|
"register_custom_constraint",
|
|
36
|
+
"unregister_custom_constraint",
|
|
35
37
|
"list_metrics_constraints"
|
|
36
38
|
],
|
|
37
39
|
"description": "Action: 'scaffold' = generate a pack template skeleton (requires name); 'list' = list registered packs; 'scan' = scan + register packs under the default directory; 'resolve' = return the industry root directory; 'list_files' = list files under the industry directory; 'read_file' = read a file under the industry directory (path required); 'write_file' = write content to a file under the industry directory (path + content required); 'get' = return registered layer data for an industry (name required; dispute/compliance/supply/rules/playbook); 'diff' = compare registered vs on-disk manifest version/layers (name required); 'reset' = restore a file or entire pack folder to its pristine annotated template (path required). 'delete_file' = delete a file or directory (path required). 'create_file' = create an empty file (path required; content optional). 'create_dir' = create a directory recursively (path required). 'copy' = copy a file or directory (from + to required). 'move' / 'rename' = move or rename a file or directory (from + to required). Mode registry (industry/scenario configuration): 'recommend_industry' = business intent → top-3 similar industries + reference examples; 'list_modes' = builtin + custom modes; 'derive_user_mode' = derive a custom mode from a builtin; 'evolve_user_mode' = iterate an existing custom mode; 'register_user_mode' = register a fully custom mode; 'unregister_user_mode' = delete a custom mode; 'register_custom_metric' / 'register_custom_constraint' = register global evaluation metric/constraint; 'list_metrics_constraints' = list metrics + constraints (filterable)."
|
|
@@ -61,6 +63,23 @@
|
|
|
61
63
|
"type": "string",
|
|
62
64
|
"maxLength": 2000
|
|
63
65
|
},
|
|
66
|
+
"strategy": {
|
|
67
|
+
"description": "Persona strategy statement(s) for recommend_industry (e.g. 'push sales volume first' / 'keep gross margin >= 30%'). Bridged into mode ranking: objectives resolve to deterministic infrastructure levers (discount / reward / buy_guard / machine_design) and re-rank the industry recommendations by lever alignment. Pass the persona's strategy[] entries here.",
|
|
68
|
+
"anyOf": [
|
|
69
|
+
{
|
|
70
|
+
"type": "string",
|
|
71
|
+
"maxLength": 2000
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"maxItems": 10,
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"maxLength": 2000
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
64
83
|
"mode_source": {
|
|
65
84
|
"description": "Source builtin mode name for derive_user_mode (e.g. 'freelance'). Call list_modes to see available modes.",
|
|
66
85
|
"type": "string"
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"type": "string"
|
|
501
501
|
}
|
|
502
502
|
],
|
|
503
|
-
"description": "A coin/balance amount. Accepts three formats: (1) DISPLAY FORMAT with token symbol: \"2.5WOW\", \"10USDC\", \"0.05WOW\" — auto-converted to smallest units via the Fund Processing Layer (token precision resolved from official registry → cache → on-chain). The symbol MUST match the token's type_parameter. (2) SMALLEST UNIT (numeric string): \"10000000000\" — used as-is, no conversion. (3) SMALLEST UNIT (number): 10000000000 — used as-is
|
|
503
|
+
"description": "A coin/balance amount. Accepts three formats: (1) DISPLAY FORMAT with token symbol: \"2.5WOW\", \"10USDC\", \"0.05WOW\" — auto-converted to smallest units via the Fund Processing Layer (token precision resolved from official registry → cache → on-chain). The symbol MUST match the token's type_parameter. (2) SMALLEST UNIT (numeric string): \"10000000000\" — used as-is, no conversion. (3) SMALLEST UNIT (number): 10000000000 — used as-is only within the safe integer range (±2^53); numbers outside it are REJECTED, use a numeric string instead. PRECISION RULE: for values exceeding 2^53 (9007199254740991), ALWAYS use format (1) or (2) — JS numbers lose integer precision silently and such inputs are blocked. Raw amounts must be plain non-negative integers; a decimal value without a token symbol (e.g. \"2.5\") is rejected — append the symbol (\"2.5WOW\") so the Fund Processing Layer converts it. Default token: WOW (9 decimals, 1 WOW = 10^9 MIST). For custom tokens: use display format with the token's symbol, or pass smallest units directly. MONEY CONFIRMATION: all monetary fields trigger user confirmation via the Fund Processing Layer, where the token's FULL type, decimals and raw amount are always visible. MULTIPLE ISSUERS: several on-chain tokens may legally share the same symbol (e.g. multiple \"USDT\" coins). When a bare symbol matches more than one token, the operation is BLOCKED and every candidate is listed with full details (type, name, decimals, verified tag) — present the list to the USER and let them choose (they may answer by number), then re-issue with the chosen token's FULL type string in type_parameter; never guess an issuer from the bare symbol. MISSING TOKEN INFO: when a token's precision cannot be resolved, the operation is REFUSED (raw u64 included — amount magnitude could not be verified). Recovery: provide the token's FULL type in package::module::Name form in type_parameter (a bare symbol like \"USDT\" cannot be resolved), and verify the WOW network is correct. Examples: \"2.5WOW\" (display → 2500000000), 10000000000 (number, smallest unit), \"50000000000\" (string, smallest unit). Used for: Service.sale.price, Service.compensation_fund_add balance, Treasury.deposit, Arbitration.fee, Reward.amount, stock quantities."
|
|
504
504
|
}
|
|
505
505
|
},
|
|
506
506
|
"required": [
|