@wowok/agent-mcp 2.6.1 → 2.6.3
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/customer/info-puzzle.d.ts +1 -1
- package/dist/customer/info-puzzle.js +4 -2
- package/dist/customer/risk-assessment.js +26 -4
- package/dist/customer/types.d.ts +2 -0
- package/dist/examples/guard-template-balance-check.json +38 -0
- package/dist/examples/guard-template-time-lock.json +39 -0
- package/dist/examples/machine-template-7node-rental.json +114 -0
- package/dist/examples/rental-ziroom-machine-create.json +137 -0
- package/dist/examples/rental-ziroom-permission-create.json +35 -0
- package/dist/examples/rental-ziroom-service-create.json +80 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/extensions/capability-manifest.js +24 -24
- package/dist/extensions/constraint-registry.js +18 -18
- package/dist/extensions/metric-registry.js +14 -14
- package/dist/extensions/mode-evaluator.js +16 -16
- package/dist/extensions/modes.js +131 -45
- package/dist/extensions/registry.d.ts +2 -0
- package/dist/extensions/registry.js +63 -30
- package/dist/extensions/types.d.ts +1 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +72 -0
- package/dist/knowledge/fund-layer.js +420 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-templates.js +4 -4
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/service-confirm.d.ts +1 -1
- package/dist/knowledge/service-confirm.js +3 -3
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/project/deployment-bridge.js +6 -5
- package/dist/project/deployment-doc.js +5 -5
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1371 -0
- package/dist/project/evaluation.js +314 -14
- package/dist/project/graph-builder.js +6 -1
- package/dist/project/handlers.d.ts +99 -2
- package/dist/project/handlers.js +358 -16
- package/dist/project/stage-gate.js +4 -4
- package/dist/schema/call/allocation.js +2 -2
- package/dist/schema/call/arbitration.js +19 -6
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +1975 -777
- package/dist/schema/call/machine.js +50 -4
- package/dist/schema/call/order.js +3 -6
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.js +7 -1
- package/dist/schema/call/service.d.ts +180 -8
- package/dist/schema/call/service.js +82 -27
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +2 -0
- package/dist/schema/common/index.js +46 -10
- package/dist/schema/local/index.js +5 -1
- package/dist/schema/operations.d.ts +755 -176
- package/dist/schema/operations.js +43 -7
- package/dist/schema/project/index.d.ts +969 -6
- package/dist/schema/project/index.js +268 -4
- package/dist/schema/query/index.d.ts +217 -0
- package/dist/schema/query/index.js +63 -33
- package/dist/schema/schema-query/index.d.ts +53 -3
- package/dist/schema/schema-query/index.js +17 -2
- package/dist/schema/utils/node-parser.js +13 -0
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +76 -0
- package/dist/schema-query/index.d.ts +14 -1
- package/dist/schema-query/index.js +104 -2
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +115 -53
- package/dist/schemas/onchain_operations_allocation.schema.json +5 -5
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -7
- package/dist/schemas/onchain_operations_contact.schema.json +3 -3
- package/dist/schemas/onchain_operations_demand.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +4 -4
- package/dist/schemas/onchain_operations_order.schema.json +3 -3
- 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 +1 -1
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +3 -3
- package/dist/schemas/onchain_operations_reward.schema.json +6 -6
- package/dist/schemas/onchain_operations_service.schema.json +77 -17
- package/dist/schemas/onchain_operations_treasury.schema.json +4 -4
- package/dist/schemas/onchain_table_data.output.json +1 -1
- package/dist/schemas/onchain_table_data.schema.json +10 -9
- package/dist/schemas/project_operation.output.json +1026 -7
- package/dist/schemas/project_operation.schema.json +46 -4
- package/dist/schemas/query_toolkit.output.json +15 -15
- package/dist/schemas/query_toolkit.schema.json +3 -3
- package/dist/schemas/schema_query.output.json +64 -1
- package/dist/schemas/schema_query.schema.json +3 -2
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/onchain.js +571 -6
- package/dist/tools/handlers/project.js +25 -2
- package/dist/tools/handlers/schema-query.js +24 -1
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +177 -6
- package/package.json +2 -2
|
@@ -1965,7 +1965,7 @@
|
|
|
1965
1965
|
"checks"
|
|
1966
1966
|
],
|
|
1967
1967
|
"additionalProperties": false,
|
|
1968
|
-
"description": "Stage gate validation (GLM6 5-stage lifecycle
|
|
1968
|
+
"description": "Stage gate validation (GLM6 5-stage lifecycle handoff). Validates Stage 3 risk score threshold (>=80 PASS, >=50 WARN, <50 FAIL) and Stage 4 deployment doc generation prerequisite."
|
|
1969
1969
|
},
|
|
1970
1970
|
"deployment_scan": {
|
|
1971
1971
|
"type": "object",
|
|
@@ -2607,16 +2607,868 @@
|
|
|
2607
2607
|
"null"
|
|
2608
2608
|
],
|
|
2609
2609
|
"description": "Whether the Machine is paused (not generating new Progress). null = unknown."
|
|
2610
|
+
},
|
|
2611
|
+
"mermaid": {
|
|
2612
|
+
"type": "string",
|
|
2613
|
+
"description": "Mermaid stateDiagram-v2 string visualizing the directed graph. Entry nodes start from [*]. Edge labels include forward name + threshold + guard info. Cycles (revision loops) are rendered as normal edges. Includes a color legend comment block + BehaviorTree.CPP-style color annotations (entry=green, terminal=red, revision=amber, normal=blue). Renderable in markdown viewers."
|
|
2614
|
+
},
|
|
2615
|
+
"tree_outline": {
|
|
2616
|
+
"type": "string",
|
|
2617
|
+
"description": "Indented Markdown outline of the directed graph (human-editable format). Lists edges as outline entries with forwards nested under each edge. Includes a Backrefs section consolidating incoming edges per node (editing aid — answers 'who transitions INTO node X?'). Bidirectional with parseMachineTreeIndented(). Includes JSON code block for round-trip safety. Use this for the download -> edit -> republish workflow."
|
|
2618
|
+
},
|
|
2619
|
+
"ascii_art": {
|
|
2620
|
+
"type": "string",
|
|
2621
|
+
"description": "ASCII art directed graph visualization using arrow notation (A -forward-> B). Cycle (revision loop) and terminal annotations included. Terminal-friendly, avoids JSON escaping issues that affect multi-line Mermaid strings. Use when rendering in plain-text contexts."
|
|
2622
|
+
},
|
|
2623
|
+
"markmap": {
|
|
2624
|
+
"type": "string",
|
|
2625
|
+
"description": "Markmap-compatible Markdown string (heading levels represent hierarchy). Edge-centric layout with forwards nested under edges. Renderable by VS Code Markmap extension or markmap.js. Provides an interactive mind-map view of the workflow."
|
|
2626
|
+
}
|
|
2627
|
+
},
|
|
2628
|
+
"required": [
|
|
2629
|
+
"action",
|
|
2630
|
+
"machineAddress",
|
|
2631
|
+
"machineName",
|
|
2632
|
+
"nodes",
|
|
2633
|
+
"edges",
|
|
2634
|
+
"published",
|
|
2635
|
+
"paused",
|
|
2636
|
+
"mermaid",
|
|
2637
|
+
"tree_outline",
|
|
2638
|
+
"ascii_art",
|
|
2639
|
+
"markmap"
|
|
2640
|
+
],
|
|
2641
|
+
"additionalProperties": false
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"type": "object",
|
|
2645
|
+
"properties": {
|
|
2646
|
+
"action": {
|
|
2647
|
+
"type": "string",
|
|
2648
|
+
"const": "get_guard_graph"
|
|
2649
|
+
},
|
|
2650
|
+
"guardAddress": {
|
|
2651
|
+
"type": "string",
|
|
2652
|
+
"description": "The Guard object address."
|
|
2653
|
+
},
|
|
2654
|
+
"guardName": {
|
|
2655
|
+
"type": [
|
|
2656
|
+
"string",
|
|
2657
|
+
"null"
|
|
2658
|
+
],
|
|
2659
|
+
"description": "The Guard's local name (from LocalMark) if available."
|
|
2660
|
+
},
|
|
2661
|
+
"root": {
|
|
2662
|
+
"type": "object",
|
|
2663
|
+
"properties": {
|
|
2664
|
+
"type": {
|
|
2665
|
+
"type": "string",
|
|
2666
|
+
"description": "Guard node type (logic_and, query, identifier, context, calc_*, convert_*, vec_*, etc.)."
|
|
2667
|
+
},
|
|
2668
|
+
"nodes": {
|
|
2669
|
+
"type": "array",
|
|
2670
|
+
"items": {
|
|
2671
|
+
"type": "object",
|
|
2672
|
+
"properties": {
|
|
2673
|
+
"type": {
|
|
2674
|
+
"type": "string",
|
|
2675
|
+
"description": "Guard node type (logic_and, query, identifier, context, calc_*, convert_*, vec_*, etc.)."
|
|
2676
|
+
},
|
|
2677
|
+
"nodes": {
|
|
2678
|
+
"type": "array",
|
|
2679
|
+
"items": {
|
|
2680
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items"
|
|
2681
|
+
},
|
|
2682
|
+
"description": "Child nodes (for logic_and/or, calc_*, vec_contains_*, etc.)."
|
|
2683
|
+
},
|
|
2684
|
+
"node": {
|
|
2685
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2686
|
+
"description": "Single child (for logic_not, convert_*, value_type)."
|
|
2687
|
+
},
|
|
2688
|
+
"nodeLeft": {
|
|
2689
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2690
|
+
"description": "Left child (for vec_indexof_*)."
|
|
2691
|
+
},
|
|
2692
|
+
"nodeRight": {
|
|
2693
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2694
|
+
"description": "Right child (for vec_indexof_*)."
|
|
2695
|
+
},
|
|
2696
|
+
"query": {
|
|
2697
|
+
"type": [
|
|
2698
|
+
"number",
|
|
2699
|
+
"string"
|
|
2700
|
+
],
|
|
2701
|
+
"description": "Query instruction ID or name (for query nodes)."
|
|
2702
|
+
},
|
|
2703
|
+
"object": {
|
|
2704
|
+
"type": "object",
|
|
2705
|
+
"properties": {
|
|
2706
|
+
"identifier": {
|
|
2707
|
+
"type": "number"
|
|
2708
|
+
},
|
|
2709
|
+
"convert_witness": {
|
|
2710
|
+
"type": "number"
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
"additionalProperties": false,
|
|
2714
|
+
"description": "Query target object reference."
|
|
2715
|
+
},
|
|
2716
|
+
"parameters": {
|
|
2717
|
+
"type": "array",
|
|
2718
|
+
"items": {
|
|
2719
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items"
|
|
2720
|
+
},
|
|
2721
|
+
"description": "Query parameters."
|
|
2722
|
+
},
|
|
2723
|
+
"identifier": {
|
|
2724
|
+
"type": "number",
|
|
2725
|
+
"description": "Table entry index (for identifier nodes)."
|
|
2726
|
+
},
|
|
2727
|
+
"context": {
|
|
2728
|
+
"type": "string",
|
|
2729
|
+
"description": "Context type: Signer, Clock, or Guard."
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
"required": [
|
|
2733
|
+
"type"
|
|
2734
|
+
],
|
|
2735
|
+
"additionalProperties": false
|
|
2736
|
+
},
|
|
2737
|
+
"description": "Child nodes (for logic_and/or, calc_*, vec_contains_*, etc.)."
|
|
2738
|
+
},
|
|
2739
|
+
"node": {
|
|
2740
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2741
|
+
"description": "Single child (for logic_not, convert_*, value_type)."
|
|
2742
|
+
},
|
|
2743
|
+
"nodeLeft": {
|
|
2744
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2745
|
+
"description": "Left child (for vec_indexof_*)."
|
|
2746
|
+
},
|
|
2747
|
+
"nodeRight": {
|
|
2748
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items",
|
|
2749
|
+
"description": "Right child (for vec_indexof_*)."
|
|
2750
|
+
},
|
|
2751
|
+
"query": {
|
|
2752
|
+
"type": [
|
|
2753
|
+
"number",
|
|
2754
|
+
"string"
|
|
2755
|
+
],
|
|
2756
|
+
"description": "Query instruction ID or name (for query nodes)."
|
|
2757
|
+
},
|
|
2758
|
+
"object": {
|
|
2759
|
+
"type": "object",
|
|
2760
|
+
"properties": {
|
|
2761
|
+
"identifier": {
|
|
2762
|
+
"type": "number"
|
|
2763
|
+
},
|
|
2764
|
+
"convert_witness": {
|
|
2765
|
+
"type": "number"
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
"additionalProperties": false,
|
|
2769
|
+
"description": "Query target object reference."
|
|
2770
|
+
},
|
|
2771
|
+
"parameters": {
|
|
2772
|
+
"type": "array",
|
|
2773
|
+
"items": {
|
|
2774
|
+
"$ref": "#/definitions/project_operation/properties/result/anyOf/22/properties/root/properties/nodes/items"
|
|
2775
|
+
},
|
|
2776
|
+
"description": "Query parameters."
|
|
2777
|
+
},
|
|
2778
|
+
"identifier": {
|
|
2779
|
+
"type": "number",
|
|
2780
|
+
"description": "Table entry index (for identifier nodes)."
|
|
2781
|
+
},
|
|
2782
|
+
"context": {
|
|
2783
|
+
"type": "string",
|
|
2784
|
+
"description": "Context type: Signer, Clock, or Guard."
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
"required": [
|
|
2788
|
+
"type"
|
|
2789
|
+
],
|
|
2790
|
+
"additionalProperties": false,
|
|
2791
|
+
"description": "Root computation node (returns Bool). The tree is recursive — each node may have children."
|
|
2792
|
+
},
|
|
2793
|
+
"table": {
|
|
2794
|
+
"type": "array",
|
|
2795
|
+
"items": {
|
|
2796
|
+
"type": "object",
|
|
2797
|
+
"properties": {
|
|
2798
|
+
"identifier": {
|
|
2799
|
+
"type": "number",
|
|
2800
|
+
"description": "Table entry index (0-255)."
|
|
2801
|
+
},
|
|
2802
|
+
"b_submission": {
|
|
2803
|
+
"type": "boolean",
|
|
2804
|
+
"description": "Whether this entry is submitted at runtime."
|
|
2805
|
+
},
|
|
2806
|
+
"value_type": {
|
|
2807
|
+
"type": [
|
|
2808
|
+
"number",
|
|
2809
|
+
"string"
|
|
2810
|
+
],
|
|
2811
|
+
"description": "Value type (numeric code or name)."
|
|
2812
|
+
},
|
|
2813
|
+
"value": {
|
|
2814
|
+
"description": "Constant value (if b_submission=false)."
|
|
2815
|
+
},
|
|
2816
|
+
"name": {
|
|
2817
|
+
"type": "string",
|
|
2818
|
+
"description": "Human-readable name/description."
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": [
|
|
2822
|
+
"identifier",
|
|
2823
|
+
"b_submission",
|
|
2824
|
+
"value_type"
|
|
2825
|
+
],
|
|
2826
|
+
"additionalProperties": false
|
|
2827
|
+
},
|
|
2828
|
+
"description": "Guard data table entries (constants + submission slots)."
|
|
2829
|
+
},
|
|
2830
|
+
"rely": {
|
|
2831
|
+
"anyOf": [
|
|
2832
|
+
{
|
|
2833
|
+
"type": "object",
|
|
2834
|
+
"properties": {
|
|
2835
|
+
"guards": {
|
|
2836
|
+
"type": "array",
|
|
2837
|
+
"items": {
|
|
2838
|
+
"type": "string"
|
|
2839
|
+
}
|
|
2840
|
+
},
|
|
2841
|
+
"logic_or": {
|
|
2842
|
+
"type": "boolean"
|
|
2843
|
+
}
|
|
2844
|
+
},
|
|
2845
|
+
"required": [
|
|
2846
|
+
"guards"
|
|
2847
|
+
],
|
|
2848
|
+
"additionalProperties": false
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"type": "null"
|
|
2852
|
+
}
|
|
2853
|
+
],
|
|
2854
|
+
"description": "Rely dependencies (other Guards this Guard depends on). null = no rely."
|
|
2855
|
+
},
|
|
2856
|
+
"immutable": {
|
|
2857
|
+
"type": [
|
|
2858
|
+
"boolean",
|
|
2859
|
+
"null"
|
|
2860
|
+
],
|
|
2861
|
+
"description": "Whether the Guard is immutable (frozen for verification). null = unknown."
|
|
2862
|
+
},
|
|
2863
|
+
"mermaid": {
|
|
2864
|
+
"type": "string",
|
|
2865
|
+
"description": "Mermaid flowchart TD string visualizing the tree. Node shapes: {}=decision (logic_*), []=computation/query, ([])=leaf (identifier), {{}}=context. Includes a color legend comment block + BehaviorTree.CPP-style color annotations (control=blue, decision=amber, computation=purple, query=cyan, leaf=gray, context=green)."
|
|
2866
|
+
},
|
|
2867
|
+
"tree_outline": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"description": "Indented Markdown outline of the tree (human-editable format). Bidirectional with parseGuardTreeIndented(). Includes JSON code block for round-trip safety."
|
|
2870
|
+
},
|
|
2871
|
+
"ascii_art": {
|
|
2872
|
+
"type": "string",
|
|
2873
|
+
"description": "ASCII art tree visualization using box-drawing characters (+-- --, |). Table summary appended. Terminal-friendly, avoids JSON escaping issues that affect multi-line Mermaid strings."
|
|
2874
|
+
},
|
|
2875
|
+
"markmap": {
|
|
2876
|
+
"type": "string",
|
|
2877
|
+
"description": "Markmap-compatible Markdown string (heading levels represent tree depth). Root -> branches -> leaves hierarchy. Renderable by VS Code Markmap extension or markmap.js. Provides an interactive mind-map view of the Guard tree."
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
"required": [
|
|
2881
|
+
"action",
|
|
2882
|
+
"guardAddress",
|
|
2883
|
+
"guardName",
|
|
2884
|
+
"root",
|
|
2885
|
+
"table",
|
|
2886
|
+
"rely",
|
|
2887
|
+
"immutable",
|
|
2888
|
+
"mermaid",
|
|
2889
|
+
"tree_outline",
|
|
2890
|
+
"ascii_art",
|
|
2891
|
+
"markmap"
|
|
2892
|
+
],
|
|
2893
|
+
"additionalProperties": false
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"type": "object",
|
|
2897
|
+
"properties": {
|
|
2898
|
+
"action": {
|
|
2899
|
+
"type": "string",
|
|
2900
|
+
"const": "plan_object_edit"
|
|
2901
|
+
},
|
|
2902
|
+
"plan_id": {
|
|
2903
|
+
"type": "string",
|
|
2904
|
+
"description": "Unique plan ID (UUID). Pass to apply_object_edit within 10 minutes to execute."
|
|
2905
|
+
},
|
|
2906
|
+
"object_kind": {
|
|
2907
|
+
"type": "string",
|
|
2908
|
+
"enum": [
|
|
2909
|
+
"machine",
|
|
2910
|
+
"guard"
|
|
2911
|
+
],
|
|
2912
|
+
"description": "The object kind that was edited."
|
|
2913
|
+
},
|
|
2914
|
+
"object_address": {
|
|
2915
|
+
"type": "string",
|
|
2916
|
+
"description": "The on-chain object address being edited."
|
|
2917
|
+
},
|
|
2918
|
+
"object_name": {
|
|
2919
|
+
"type": [
|
|
2920
|
+
"string",
|
|
2921
|
+
"null"
|
|
2922
|
+
],
|
|
2923
|
+
"description": "The object's local name (from LocalMark) if available."
|
|
2924
|
+
},
|
|
2925
|
+
"expected_hash": {
|
|
2926
|
+
"type": "string",
|
|
2927
|
+
"description": "SHA-256 hash of (current_onchain_state + edited_content). Pass to apply_object_edit as expected_hash for stale-edit detection."
|
|
2928
|
+
},
|
|
2929
|
+
"diff": {
|
|
2930
|
+
"type": "object",
|
|
2931
|
+
"properties": {
|
|
2932
|
+
"added": {
|
|
2933
|
+
"type": "array",
|
|
2934
|
+
"items": {
|
|
2935
|
+
"type": "string"
|
|
2936
|
+
},
|
|
2937
|
+
"description": "List of added items (node names, edge 'from->to', table identifiers, etc.)."
|
|
2938
|
+
},
|
|
2939
|
+
"removed": {
|
|
2940
|
+
"type": "array",
|
|
2941
|
+
"items": {
|
|
2942
|
+
"type": "string"
|
|
2943
|
+
},
|
|
2944
|
+
"description": "List of removed items."
|
|
2945
|
+
},
|
|
2946
|
+
"modified": {
|
|
2947
|
+
"type": "array",
|
|
2948
|
+
"items": {
|
|
2949
|
+
"type": "string"
|
|
2950
|
+
},
|
|
2951
|
+
"description": "List of modified items with a brief description of the change."
|
|
2952
|
+
},
|
|
2953
|
+
"summary": {
|
|
2954
|
+
"type": "string",
|
|
2955
|
+
"description": "Human-readable one-line diff summary (e.g. '2 nodes added, 1 edge removed, 3 forwards modified')."
|
|
2956
|
+
}
|
|
2957
|
+
},
|
|
2958
|
+
"required": [
|
|
2959
|
+
"added",
|
|
2960
|
+
"removed",
|
|
2961
|
+
"modified",
|
|
2962
|
+
"summary"
|
|
2963
|
+
],
|
|
2964
|
+
"additionalProperties": false,
|
|
2965
|
+
"description": "Structured diff between current on-chain state and edited content."
|
|
2966
|
+
},
|
|
2967
|
+
"warnings": {
|
|
2968
|
+
"type": "array",
|
|
2969
|
+
"items": {
|
|
2970
|
+
"type": "object",
|
|
2971
|
+
"properties": {
|
|
2972
|
+
"id": {
|
|
2973
|
+
"type": "string",
|
|
2974
|
+
"description": "Warning identifier (e.g. 'W-01')."
|
|
2975
|
+
},
|
|
2976
|
+
"description": {
|
|
2977
|
+
"type": "string",
|
|
2978
|
+
"description": "What the warning is about."
|
|
2979
|
+
},
|
|
2980
|
+
"impact": {
|
|
2981
|
+
"type": "string",
|
|
2982
|
+
"description": "Potential impact if ignored."
|
|
2983
|
+
}
|
|
2984
|
+
},
|
|
2985
|
+
"required": [
|
|
2986
|
+
"id",
|
|
2987
|
+
"description",
|
|
2988
|
+
"impact"
|
|
2989
|
+
],
|
|
2990
|
+
"additionalProperties": false
|
|
2991
|
+
},
|
|
2992
|
+
"description": "Non-blocking warnings (the edit can still proceed, but review is recommended)."
|
|
2993
|
+
},
|
|
2994
|
+
"blocking_errors": {
|
|
2995
|
+
"type": "array",
|
|
2996
|
+
"items": {
|
|
2997
|
+
"type": "object",
|
|
2998
|
+
"properties": {
|
|
2999
|
+
"id": {
|
|
3000
|
+
"type": "string",
|
|
3001
|
+
"description": "Error identifier (e.g. 'E-01')."
|
|
3002
|
+
},
|
|
3003
|
+
"description": {
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"description": "What the error is."
|
|
3006
|
+
},
|
|
3007
|
+
"impact": {
|
|
3008
|
+
"type": "string",
|
|
3009
|
+
"description": "Why this blocks execution."
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
"required": [
|
|
3013
|
+
"id",
|
|
3014
|
+
"description",
|
|
3015
|
+
"impact"
|
|
3016
|
+
],
|
|
3017
|
+
"additionalProperties": false
|
|
3018
|
+
},
|
|
3019
|
+
"description": "Blocking errors (the edit CANNOT proceed until these are fixed)."
|
|
3020
|
+
},
|
|
3021
|
+
"can_apply": {
|
|
3022
|
+
"type": "boolean",
|
|
3023
|
+
"description": "Whether apply_object_edit can proceed. false if blocking_errors is non-empty."
|
|
3024
|
+
},
|
|
3025
|
+
"prepared_call": {
|
|
3026
|
+
"anyOf": [
|
|
3027
|
+
{},
|
|
3028
|
+
{
|
|
3029
|
+
"type": "null"
|
|
3030
|
+
}
|
|
3031
|
+
],
|
|
3032
|
+
"description": "The prepared onchain_operations call data (operation_type + data). null if can_apply=false. Pass this to onchain_operations to execute the edit."
|
|
3033
|
+
},
|
|
3034
|
+
"expires_at": {
|
|
3035
|
+
"type": "string",
|
|
3036
|
+
"description": "ISO timestamp when the plan expires (10 minutes from creation). After expiry, apply_object_edit will refuse to proceed."
|
|
3037
|
+
},
|
|
3038
|
+
"summary": {
|
|
3039
|
+
"type": "string",
|
|
3040
|
+
"description": "Human-readable one-line plan summary."
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
"required": [
|
|
3044
|
+
"action",
|
|
3045
|
+
"plan_id",
|
|
3046
|
+
"object_kind",
|
|
3047
|
+
"object_address",
|
|
3048
|
+
"object_name",
|
|
3049
|
+
"expected_hash",
|
|
3050
|
+
"diff",
|
|
3051
|
+
"warnings",
|
|
3052
|
+
"blocking_errors",
|
|
3053
|
+
"can_apply",
|
|
3054
|
+
"expires_at",
|
|
3055
|
+
"summary"
|
|
3056
|
+
],
|
|
3057
|
+
"additionalProperties": false
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
"type": "object",
|
|
3061
|
+
"properties": {
|
|
3062
|
+
"action": {
|
|
3063
|
+
"type": "string",
|
|
3064
|
+
"const": "apply_object_edit"
|
|
3065
|
+
},
|
|
3066
|
+
"plan_id": {
|
|
3067
|
+
"type": "string",
|
|
3068
|
+
"description": "The plan ID that was applied."
|
|
3069
|
+
},
|
|
3070
|
+
"applied": {
|
|
3071
|
+
"type": "boolean",
|
|
3072
|
+
"description": "Whether the plan was successfully applied (hash matched and plan was fresh)."
|
|
3073
|
+
},
|
|
3074
|
+
"hash_match": {
|
|
3075
|
+
"type": "boolean",
|
|
3076
|
+
"description": "Whether the expected_hash matched the stored plan hash. false = stale edit detected."
|
|
3077
|
+
},
|
|
3078
|
+
"prepared_call": {
|
|
3079
|
+
"anyOf": [
|
|
3080
|
+
{},
|
|
3081
|
+
{
|
|
3082
|
+
"type": "null"
|
|
3083
|
+
}
|
|
3084
|
+
],
|
|
3085
|
+
"description": "The prepared onchain_operations call data. Pass this to onchain_operations to execute the edit on-chain. null if applied=false."
|
|
3086
|
+
},
|
|
3087
|
+
"error": {
|
|
3088
|
+
"type": [
|
|
3089
|
+
"string",
|
|
3090
|
+
"null"
|
|
3091
|
+
],
|
|
3092
|
+
"description": "Error message if applied=false (e.g. 'Plan not found', 'Hash mismatch — on-chain state changed', 'Plan expired'). null on success."
|
|
3093
|
+
},
|
|
3094
|
+
"next_step": {
|
|
3095
|
+
"type": "string",
|
|
3096
|
+
"description": "Instructions for the next step (typically 'Pass prepared_call to onchain_operations to execute the edit on-chain')."
|
|
3097
|
+
}
|
|
3098
|
+
},
|
|
3099
|
+
"required": [
|
|
3100
|
+
"action",
|
|
3101
|
+
"plan_id",
|
|
3102
|
+
"applied",
|
|
3103
|
+
"hash_match",
|
|
3104
|
+
"error",
|
|
3105
|
+
"next_step"
|
|
3106
|
+
],
|
|
3107
|
+
"additionalProperties": false
|
|
3108
|
+
},
|
|
3109
|
+
{
|
|
3110
|
+
"type": "object",
|
|
3111
|
+
"properties": {
|
|
3112
|
+
"action": {
|
|
3113
|
+
"type": "string",
|
|
3114
|
+
"const": "patch_machine_nodes"
|
|
3115
|
+
},
|
|
3116
|
+
"machine_address": {
|
|
3117
|
+
"type": "string",
|
|
3118
|
+
"description": "The Machine object address being patched."
|
|
3119
|
+
},
|
|
3120
|
+
"machine_name": {
|
|
3121
|
+
"type": [
|
|
3122
|
+
"string",
|
|
3123
|
+
"null"
|
|
3124
|
+
],
|
|
3125
|
+
"description": "The Machine's local name (from LocalMark) if available."
|
|
3126
|
+
},
|
|
3127
|
+
"operations_applied": {
|
|
3128
|
+
"type": "number",
|
|
3129
|
+
"description": "Number of patch operations successfully applied."
|
|
3130
|
+
},
|
|
3131
|
+
"operations_failed": {
|
|
3132
|
+
"type": "array",
|
|
3133
|
+
"items": {
|
|
3134
|
+
"type": "object",
|
|
3135
|
+
"properties": {
|
|
3136
|
+
"operation": {
|
|
3137
|
+
"type": "string",
|
|
3138
|
+
"description": "The original operation string."
|
|
3139
|
+
},
|
|
3140
|
+
"error": {
|
|
3141
|
+
"type": "string",
|
|
3142
|
+
"description": "Why the operation failed."
|
|
3143
|
+
}
|
|
3144
|
+
},
|
|
3145
|
+
"required": [
|
|
3146
|
+
"operation",
|
|
3147
|
+
"error"
|
|
3148
|
+
],
|
|
3149
|
+
"additionalProperties": false
|
|
3150
|
+
},
|
|
3151
|
+
"description": "Operations that failed parse/apply (not applied). Also surfaced as E-OP entries in blocking_errors for schema symmetry with plan_object_edit."
|
|
3152
|
+
},
|
|
3153
|
+
"patched_nodes": {
|
|
3154
|
+
"type": "array",
|
|
3155
|
+
"items": {},
|
|
3156
|
+
"description": "The patched Machine nodes (after applying all successful operations)."
|
|
3157
|
+
},
|
|
3158
|
+
"patched_edges": {
|
|
3159
|
+
"type": "array",
|
|
3160
|
+
"items": {},
|
|
3161
|
+
"description": "The patched Machine edges (after applying all successful operations)."
|
|
3162
|
+
},
|
|
3163
|
+
"diff": {
|
|
3164
|
+
"type": "object",
|
|
3165
|
+
"properties": {
|
|
3166
|
+
"added": {
|
|
3167
|
+
"type": "array",
|
|
3168
|
+
"items": {
|
|
3169
|
+
"type": "string"
|
|
3170
|
+
},
|
|
3171
|
+
"description": "List of added items."
|
|
3172
|
+
},
|
|
3173
|
+
"removed": {
|
|
3174
|
+
"type": "array",
|
|
3175
|
+
"items": {
|
|
3176
|
+
"type": "string"
|
|
3177
|
+
},
|
|
3178
|
+
"description": "List of removed items."
|
|
3179
|
+
},
|
|
3180
|
+
"modified": {
|
|
3181
|
+
"type": "array",
|
|
3182
|
+
"items": {
|
|
3183
|
+
"type": "string"
|
|
3184
|
+
},
|
|
3185
|
+
"description": "List of modified items."
|
|
3186
|
+
},
|
|
3187
|
+
"summary": {
|
|
3188
|
+
"type": "string",
|
|
3189
|
+
"description": "Human-readable one-line diff summary."
|
|
3190
|
+
}
|
|
3191
|
+
},
|
|
3192
|
+
"required": [
|
|
3193
|
+
"added",
|
|
3194
|
+
"removed",
|
|
3195
|
+
"modified",
|
|
3196
|
+
"summary"
|
|
3197
|
+
],
|
|
3198
|
+
"additionalProperties": false,
|
|
3199
|
+
"description": "Diff between original and patched Machine."
|
|
3200
|
+
},
|
|
3201
|
+
"warnings": {
|
|
3202
|
+
"type": "array",
|
|
3203
|
+
"items": {
|
|
3204
|
+
"type": "object",
|
|
3205
|
+
"properties": {
|
|
3206
|
+
"id": {
|
|
3207
|
+
"type": "string",
|
|
3208
|
+
"description": "Warning identifier (e.g. 'W-01' unreachable node, 'W-02' self-loop)."
|
|
3209
|
+
},
|
|
3210
|
+
"description": {
|
|
3211
|
+
"type": "string",
|
|
3212
|
+
"description": "What the warning is about."
|
|
3213
|
+
},
|
|
3214
|
+
"impact": {
|
|
3215
|
+
"type": "string",
|
|
3216
|
+
"description": "Potential impact if ignored."
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3219
|
+
"required": [
|
|
3220
|
+
"id",
|
|
3221
|
+
"description",
|
|
3222
|
+
"impact"
|
|
3223
|
+
],
|
|
3224
|
+
"additionalProperties": false
|
|
3225
|
+
},
|
|
3226
|
+
"description": "Non-blocking warnings from validateMachine (W-01 unreachable, W-02 self-loop)."
|
|
3227
|
+
},
|
|
3228
|
+
"blocking_errors": {
|
|
3229
|
+
"type": "array",
|
|
3230
|
+
"items": {
|
|
3231
|
+
"type": "object",
|
|
3232
|
+
"properties": {
|
|
3233
|
+
"id": {
|
|
3234
|
+
"type": "string",
|
|
3235
|
+
"description": "Error identifier (e.g. 'E-01' no entry forward, 'E-02' orphan endpoint, 'E-03' too many nodes, 'E-OP' operation failed)."
|
|
3236
|
+
},
|
|
3237
|
+
"description": {
|
|
3238
|
+
"type": "string",
|
|
3239
|
+
"description": "What the error is."
|
|
3240
|
+
},
|
|
3241
|
+
"impact": {
|
|
3242
|
+
"type": "string",
|
|
3243
|
+
"description": "Why this blocks execution."
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
"required": [
|
|
3247
|
+
"id",
|
|
3248
|
+
"description",
|
|
3249
|
+
"impact"
|
|
3250
|
+
],
|
|
3251
|
+
"additionalProperties": false
|
|
3252
|
+
},
|
|
3253
|
+
"description": "Blocking errors (operation failures + structural validation). The patch CANNOT proceed until these are fixed. Empty array when can_apply=true."
|
|
3254
|
+
},
|
|
3255
|
+
"can_apply": {
|
|
3256
|
+
"type": "boolean",
|
|
3257
|
+
"description": "Whether the patch can be applied on-chain. false if any blocking_errors exist (operation failures or validateMachine blocking errors)."
|
|
3258
|
+
},
|
|
3259
|
+
"prepared_call": {
|
|
3260
|
+
"anyOf": [
|
|
3261
|
+
{},
|
|
3262
|
+
{
|
|
3263
|
+
"type": "null"
|
|
3264
|
+
}
|
|
3265
|
+
],
|
|
3266
|
+
"description": "The prepared onchain_operations call data. null if can_apply=false."
|
|
3267
|
+
},
|
|
3268
|
+
"summary": {
|
|
3269
|
+
"type": "string",
|
|
3270
|
+
"description": "Human-readable one-line patch summary."
|
|
2610
3271
|
}
|
|
2611
3272
|
},
|
|
2612
3273
|
"required": [
|
|
2613
3274
|
"action",
|
|
2614
|
-
"
|
|
2615
|
-
"
|
|
2616
|
-
"
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
3275
|
+
"machine_address",
|
|
3276
|
+
"machine_name",
|
|
3277
|
+
"operations_applied",
|
|
3278
|
+
"operations_failed",
|
|
3279
|
+
"patched_nodes",
|
|
3280
|
+
"patched_edges",
|
|
3281
|
+
"diff",
|
|
3282
|
+
"warnings",
|
|
3283
|
+
"blocking_errors",
|
|
3284
|
+
"can_apply",
|
|
3285
|
+
"summary"
|
|
3286
|
+
],
|
|
3287
|
+
"additionalProperties": false
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
"type": "object",
|
|
3291
|
+
"properties": {
|
|
3292
|
+
"action": {
|
|
3293
|
+
"type": "string",
|
|
3294
|
+
"const": "patch_guard_tree"
|
|
3295
|
+
},
|
|
3296
|
+
"guard_address": {
|
|
3297
|
+
"type": "string",
|
|
3298
|
+
"description": "The Guard object address being patched."
|
|
3299
|
+
},
|
|
3300
|
+
"guard_name": {
|
|
3301
|
+
"type": [
|
|
3302
|
+
"string",
|
|
3303
|
+
"null"
|
|
3304
|
+
],
|
|
3305
|
+
"description": "The Guard's local name (from LocalMark) if available."
|
|
3306
|
+
},
|
|
3307
|
+
"operations_applied": {
|
|
3308
|
+
"type": "number",
|
|
3309
|
+
"description": "Number of Guard patch operations successfully applied."
|
|
3310
|
+
},
|
|
3311
|
+
"operations_failed": {
|
|
3312
|
+
"type": "array",
|
|
3313
|
+
"items": {
|
|
3314
|
+
"type": "object",
|
|
3315
|
+
"properties": {
|
|
3316
|
+
"operation": {
|
|
3317
|
+
"type": "string",
|
|
3318
|
+
"description": "The original operation string."
|
|
3319
|
+
},
|
|
3320
|
+
"error": {
|
|
3321
|
+
"type": "string",
|
|
3322
|
+
"description": "Why the operation failed."
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
"required": [
|
|
3326
|
+
"operation",
|
|
3327
|
+
"error"
|
|
3328
|
+
],
|
|
3329
|
+
"additionalProperties": false
|
|
3330
|
+
},
|
|
3331
|
+
"description": "Operations that failed parse/apply (not applied). Also surfaced as E-OP entries in blocking_errors."
|
|
3332
|
+
},
|
|
3333
|
+
"patched_root": {
|
|
3334
|
+
"description": "The patched Guard root node (after applying all successful operations). For set_root, this is the new root; otherwise the original root unchanged."
|
|
3335
|
+
},
|
|
3336
|
+
"patched_table": {
|
|
3337
|
+
"type": "array",
|
|
3338
|
+
"items": {},
|
|
3339
|
+
"description": "The patched Guard table entries (after applying all successful table operations)."
|
|
3340
|
+
},
|
|
3341
|
+
"patched_rely": {
|
|
3342
|
+
"anyOf": [
|
|
3343
|
+
{},
|
|
3344
|
+
{
|
|
3345
|
+
"type": "null"
|
|
3346
|
+
}
|
|
3347
|
+
],
|
|
3348
|
+
"description": "The patched rely field (cross-guard composition). null if rely was cleared or never set. Shape: { guards: string[], logic_or?: boolean }."
|
|
3349
|
+
},
|
|
3350
|
+
"diff": {
|
|
3351
|
+
"type": "object",
|
|
3352
|
+
"properties": {
|
|
3353
|
+
"added": {
|
|
3354
|
+
"type": "array",
|
|
3355
|
+
"items": {
|
|
3356
|
+
"type": "string"
|
|
3357
|
+
},
|
|
3358
|
+
"description": "List of added items (table entries, tree nodes)."
|
|
3359
|
+
},
|
|
3360
|
+
"removed": {
|
|
3361
|
+
"type": "array",
|
|
3362
|
+
"items": {
|
|
3363
|
+
"type": "string"
|
|
3364
|
+
},
|
|
3365
|
+
"description": "List of removed items."
|
|
3366
|
+
},
|
|
3367
|
+
"modified": {
|
|
3368
|
+
"type": "array",
|
|
3369
|
+
"items": {
|
|
3370
|
+
"type": "string"
|
|
3371
|
+
},
|
|
3372
|
+
"description": "List of modified items with a brief description of the change."
|
|
3373
|
+
},
|
|
3374
|
+
"summary": {
|
|
3375
|
+
"type": "string",
|
|
3376
|
+
"description": "Human-readable one-line diff summary."
|
|
3377
|
+
}
|
|
3378
|
+
},
|
|
3379
|
+
"required": [
|
|
3380
|
+
"added",
|
|
3381
|
+
"removed",
|
|
3382
|
+
"modified",
|
|
3383
|
+
"summary"
|
|
3384
|
+
],
|
|
3385
|
+
"additionalProperties": false,
|
|
3386
|
+
"description": "Diff between original and patched Guard (root tree + table)."
|
|
3387
|
+
},
|
|
3388
|
+
"warnings": {
|
|
3389
|
+
"type": "array",
|
|
3390
|
+
"items": {
|
|
3391
|
+
"type": "object",
|
|
3392
|
+
"properties": {
|
|
3393
|
+
"id": {
|
|
3394
|
+
"type": "string",
|
|
3395
|
+
"description": "Warning identifier (e.g. 'W-01' dead submission slot, 'W-02' orphan table entry, 'W-03' deep nesting)."
|
|
3396
|
+
},
|
|
3397
|
+
"description": {
|
|
3398
|
+
"type": "string",
|
|
3399
|
+
"description": "What the warning is about."
|
|
3400
|
+
},
|
|
3401
|
+
"impact": {
|
|
3402
|
+
"type": "string",
|
|
3403
|
+
"description": "Potential impact if ignored."
|
|
3404
|
+
}
|
|
3405
|
+
},
|
|
3406
|
+
"required": [
|
|
3407
|
+
"id",
|
|
3408
|
+
"description",
|
|
3409
|
+
"impact"
|
|
3410
|
+
],
|
|
3411
|
+
"additionalProperties": false
|
|
3412
|
+
},
|
|
3413
|
+
"description": "Non-blocking warnings from validateGuard (W-01 dead submission slot, W-02 orphan table entry, W-03 deep nesting > 16)."
|
|
3414
|
+
},
|
|
3415
|
+
"blocking_errors": {
|
|
3416
|
+
"type": "array",
|
|
3417
|
+
"items": {
|
|
3418
|
+
"type": "object",
|
|
3419
|
+
"properties": {
|
|
3420
|
+
"id": {
|
|
3421
|
+
"type": "string",
|
|
3422
|
+
"description": "Error identifier (e.g. 'E-01' no root, 'E-02' identifier not in table, 'E-03' table too large, 'E-OP' operation failed)."
|
|
3423
|
+
},
|
|
3424
|
+
"description": {
|
|
3425
|
+
"type": "string",
|
|
3426
|
+
"description": "What the error is."
|
|
3427
|
+
},
|
|
3428
|
+
"impact": {
|
|
3429
|
+
"type": "string",
|
|
3430
|
+
"description": "Why this blocks execution."
|
|
3431
|
+
}
|
|
3432
|
+
},
|
|
3433
|
+
"required": [
|
|
3434
|
+
"id",
|
|
3435
|
+
"description",
|
|
3436
|
+
"impact"
|
|
3437
|
+
],
|
|
3438
|
+
"additionalProperties": false
|
|
3439
|
+
},
|
|
3440
|
+
"description": "Blocking errors (operation failures + structural validation). The patch CANNOT proceed until these are fixed. Empty array when can_apply=true."
|
|
3441
|
+
},
|
|
3442
|
+
"can_apply": {
|
|
3443
|
+
"type": "boolean",
|
|
3444
|
+
"description": "Whether the patch can be applied on-chain. false if any blocking_errors exist."
|
|
3445
|
+
},
|
|
3446
|
+
"prepared_call": {
|
|
3447
|
+
"anyOf": [
|
|
3448
|
+
{},
|
|
3449
|
+
{
|
|
3450
|
+
"type": "null"
|
|
3451
|
+
}
|
|
3452
|
+
],
|
|
3453
|
+
"description": "The prepared onchain_operations call data (operation_type='guard'). null if can_apply=false."
|
|
3454
|
+
},
|
|
3455
|
+
"summary": {
|
|
3456
|
+
"type": "string",
|
|
3457
|
+
"description": "Human-readable one-line patch summary."
|
|
3458
|
+
}
|
|
3459
|
+
},
|
|
3460
|
+
"required": [
|
|
3461
|
+
"action",
|
|
3462
|
+
"guard_address",
|
|
3463
|
+
"guard_name",
|
|
3464
|
+
"operations_applied",
|
|
3465
|
+
"operations_failed",
|
|
3466
|
+
"patched_table",
|
|
3467
|
+
"diff",
|
|
3468
|
+
"warnings",
|
|
3469
|
+
"blocking_errors",
|
|
3470
|
+
"can_apply",
|
|
3471
|
+
"summary"
|
|
2620
3472
|
],
|
|
2621
3473
|
"additionalProperties": false
|
|
2622
3474
|
},
|
|
@@ -2713,9 +3565,176 @@
|
|
|
2713
3565
|
"next_steps"
|
|
2714
3566
|
],
|
|
2715
3567
|
"additionalProperties": false
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"type": "object",
|
|
3571
|
+
"properties": {
|
|
3572
|
+
"action": {
|
|
3573
|
+
"type": "string",
|
|
3574
|
+
"const": "migrate_to_mainnet"
|
|
3575
|
+
},
|
|
3576
|
+
"migration_status": {
|
|
3577
|
+
"type": "string",
|
|
3578
|
+
"description": "Overall migration status (e.g. 'step_1_complete_steps_2_5_pending_user_action')."
|
|
3579
|
+
},
|
|
3580
|
+
"source_project": {
|
|
3581
|
+
"type": "object",
|
|
3582
|
+
"properties": {
|
|
3583
|
+
"prefix": {
|
|
3584
|
+
"type": "string"
|
|
3585
|
+
},
|
|
3586
|
+
"network": {
|
|
3587
|
+
"type": "string"
|
|
3588
|
+
},
|
|
3589
|
+
"preserved": {
|
|
3590
|
+
"type": "boolean",
|
|
3591
|
+
"description": "Whether the source project is preserved unchanged (always true)."
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3594
|
+
"required": [
|
|
3595
|
+
"prefix",
|
|
3596
|
+
"network",
|
|
3597
|
+
"preserved"
|
|
3598
|
+
],
|
|
3599
|
+
"additionalProperties": false
|
|
3600
|
+
},
|
|
3601
|
+
"target_project": {
|
|
3602
|
+
"type": "object",
|
|
3603
|
+
"properties": {
|
|
3604
|
+
"prefix": {
|
|
3605
|
+
"type": "string"
|
|
3606
|
+
},
|
|
3607
|
+
"project_id": {
|
|
3608
|
+
"type": "string"
|
|
3609
|
+
},
|
|
3610
|
+
"network": {
|
|
3611
|
+
"type": "string"
|
|
3612
|
+
},
|
|
3613
|
+
"cloned_objects_count": {
|
|
3614
|
+
"type": "number"
|
|
3615
|
+
}
|
|
3616
|
+
},
|
|
3617
|
+
"required": [
|
|
3618
|
+
"prefix",
|
|
3619
|
+
"project_id",
|
|
3620
|
+
"network",
|
|
3621
|
+
"cloned_objects_count"
|
|
3622
|
+
],
|
|
3623
|
+
"additionalProperties": false
|
|
3624
|
+
},
|
|
3625
|
+
"key_principle": {
|
|
3626
|
+
"type": "string",
|
|
3627
|
+
"description": "Explains that testnet/mainnet are different projects with different addresses for same names."
|
|
3628
|
+
},
|
|
3629
|
+
"migration_plan": {
|
|
3630
|
+
"type": "array",
|
|
3631
|
+
"items": {
|
|
3632
|
+
"type": "object",
|
|
3633
|
+
"properties": {
|
|
3634
|
+
"step": {
|
|
3635
|
+
"type": "number",
|
|
3636
|
+
"description": "Step number (1-5)."
|
|
3637
|
+
},
|
|
3638
|
+
"status": {
|
|
3639
|
+
"type": "string",
|
|
3640
|
+
"enum": [
|
|
3641
|
+
"completed",
|
|
3642
|
+
"pending_user_action"
|
|
3643
|
+
],
|
|
3644
|
+
"description": "Whether this step is done or awaits user action."
|
|
3645
|
+
},
|
|
3646
|
+
"action": {
|
|
3647
|
+
"type": "string",
|
|
3648
|
+
"description": "The action to perform (e.g. 'clone_project_to_network', 'onchain_operations', 'local_mark_operation', 'update_project', 'build_graph')."
|
|
3649
|
+
},
|
|
3650
|
+
"description": {
|
|
3651
|
+
"type": "string",
|
|
3652
|
+
"description": "Human-readable description of what this step does."
|
|
3653
|
+
},
|
|
3654
|
+
"result": {
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"description": "Result of this step (only present when status='completed')."
|
|
3657
|
+
},
|
|
3658
|
+
"deployment_plan": {
|
|
3659
|
+
"type": "array",
|
|
3660
|
+
"items": {
|
|
3661
|
+
"type": "object",
|
|
3662
|
+
"properties": {
|
|
3663
|
+
"order": {
|
|
3664
|
+
"type": "number"
|
|
3665
|
+
},
|
|
3666
|
+
"object_type": {
|
|
3667
|
+
"type": "string"
|
|
3668
|
+
},
|
|
3669
|
+
"object_name": {
|
|
3670
|
+
"type": "string"
|
|
3671
|
+
},
|
|
3672
|
+
"operation_type": {
|
|
3673
|
+
"type": "string"
|
|
3674
|
+
},
|
|
3675
|
+
"localmark_name": {
|
|
3676
|
+
"type": "string"
|
|
3677
|
+
},
|
|
3678
|
+
"note": {
|
|
3679
|
+
"type": "string"
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
"required": [
|
|
3683
|
+
"order",
|
|
3684
|
+
"object_type",
|
|
3685
|
+
"object_name",
|
|
3686
|
+
"operation_type",
|
|
3687
|
+
"localmark_name",
|
|
3688
|
+
"note"
|
|
3689
|
+
],
|
|
3690
|
+
"additionalProperties": false
|
|
3691
|
+
},
|
|
3692
|
+
"description": "Deployment plan for step 2 (on-chain deployment). Only present for step 2."
|
|
3693
|
+
},
|
|
3694
|
+
"names_to_register": {
|
|
3695
|
+
"type": "array",
|
|
3696
|
+
"items": {
|
|
3697
|
+
"type": "string"
|
|
3698
|
+
},
|
|
3699
|
+
"description": "LocalMark names to re-register on mainnet. Only present for step 3."
|
|
3700
|
+
},
|
|
3701
|
+
"critical_note": {
|
|
3702
|
+
"type": "string",
|
|
3703
|
+
"description": "Critical note for this step."
|
|
3704
|
+
}
|
|
3705
|
+
},
|
|
3706
|
+
"required": [
|
|
3707
|
+
"step",
|
|
3708
|
+
"status",
|
|
3709
|
+
"action",
|
|
3710
|
+
"description"
|
|
3711
|
+
],
|
|
3712
|
+
"additionalProperties": false
|
|
3713
|
+
},
|
|
3714
|
+
"description": "5-step migration plan. Step 1 is completed; steps 2-5 require user action."
|
|
3715
|
+
},
|
|
3716
|
+
"summary": {
|
|
3717
|
+
"type": "string",
|
|
3718
|
+
"description": "Human-readable summary of the migration."
|
|
3719
|
+
}
|
|
3720
|
+
},
|
|
3721
|
+
"required": [
|
|
3722
|
+
"action",
|
|
3723
|
+
"migration_status",
|
|
3724
|
+
"source_project",
|
|
3725
|
+
"target_project",
|
|
3726
|
+
"key_principle",
|
|
3727
|
+
"migration_plan",
|
|
3728
|
+
"summary"
|
|
3729
|
+
],
|
|
3730
|
+
"additionalProperties": false
|
|
2716
3731
|
}
|
|
2717
3732
|
],
|
|
2718
3733
|
"description": "Query result — shape depends on action"
|
|
3734
|
+
},
|
|
3735
|
+
"skills_recommended": {
|
|
3736
|
+
"type": "string",
|
|
3737
|
+
"description": "Skills recommendation hint (F-10). Informational only — MCP executes independently of skills. Present when the action benefits from skills' business-semantic guidance (e.g. service/machine/guard/evaluation). Users without skills installed can ignore this field."
|
|
2719
3738
|
}
|
|
2720
3739
|
},
|
|
2721
3740
|
"required": [
|