@wowok/agent-mcp 2.6.0 → 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.
Files changed (186) hide show
  1. package/README.md +5 -3
  2. package/dist/customer/info-puzzle.d.ts +1 -1
  3. package/dist/customer/info-puzzle.js +4 -2
  4. package/dist/customer/risk-assessment.js +26 -4
  5. package/dist/customer/types.d.ts +2 -0
  6. package/dist/examples/guard-template-balance-check.json +38 -0
  7. package/dist/examples/guard-template-time-lock.json +39 -0
  8. package/dist/examples/machine-template-7node-rental.json +114 -0
  9. package/dist/examples/rental-ziroom-machine-create.json +137 -0
  10. package/dist/examples/rental-ziroom-permission-create.json +35 -0
  11. package/dist/examples/rental-ziroom-service-create.json +80 -0
  12. package/dist/examples/retail-myshop-service-create.json +88 -0
  13. package/dist/extensions/capability-manifest.d.ts +125 -0
  14. package/dist/extensions/capability-manifest.js +594 -0
  15. package/dist/extensions/constraint-registry.d.ts +24 -0
  16. package/dist/extensions/constraint-registry.js +196 -0
  17. package/dist/extensions/index.d.ts +12 -0
  18. package/dist/extensions/index.js +6 -0
  19. package/dist/extensions/metric-registry.d.ts +26 -0
  20. package/dist/extensions/metric-registry.js +257 -0
  21. package/dist/extensions/mode-evaluator.d.ts +15 -0
  22. package/dist/extensions/mode-evaluator.js +170 -0
  23. package/dist/extensions/modes.d.ts +2 -0
  24. package/dist/extensions/modes.js +493 -0
  25. package/dist/extensions/registry.d.ts +50 -0
  26. package/dist/extensions/registry.js +662 -0
  27. package/dist/extensions/types.d.ts +219 -0
  28. package/dist/extensions/types.js +1 -0
  29. package/dist/index.js +50 -0
  30. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  31. package/dist/knowledge/deployment-scanner.js +64 -3
  32. package/dist/knowledge/fund-layer.d.ts +72 -0
  33. package/dist/knowledge/fund-layer.js +420 -0
  34. package/dist/knowledge/guard-render.d.ts +57 -0
  35. package/dist/knowledge/guard-render.js +700 -0
  36. package/dist/knowledge/guard-risk.d.ts +13 -0
  37. package/dist/knowledge/guard-risk.js +57 -0
  38. package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
  39. package/dist/knowledge/guard-submission-prompt.js +171 -0
  40. package/dist/knowledge/guard-templates.js +278 -0
  41. package/dist/knowledge/machine-ledger.js +1 -1
  42. package/dist/knowledge/machine-render.d.ts +41 -0
  43. package/dist/knowledge/machine-render.js +565 -0
  44. package/dist/knowledge/machine-templates.js +24 -5
  45. package/dist/knowledge/reward-confirm.js +2 -2
  46. package/dist/knowledge/reward-puzzle.js +1 -1
  47. package/dist/knowledge/reward-risk.js +9 -9
  48. package/dist/knowledge/reward-templates.js +2 -2
  49. package/dist/knowledge/service-confirm.d.ts +15 -6
  50. package/dist/knowledge/service-confirm.js +119 -11
  51. package/dist/knowledge/service-context.js +1 -1
  52. package/dist/knowledge/service-ledger.js +1 -1
  53. package/dist/knowledge/service-risk.d.ts +1 -1
  54. package/dist/knowledge/service-risk.js +3 -3
  55. package/dist/knowledge/service-templates.js +2 -2
  56. package/dist/knowledge/service-translation.d.ts +1 -1
  57. package/dist/knowledge/service-translation.js +7 -7
  58. package/dist/knowledge/tool-constraints.js +6 -2
  59. package/dist/project/deployment-bridge.d.ts +1 -1
  60. package/dist/project/deployment-bridge.js +31 -7
  61. package/dist/project/deployment-doc.d.ts +3 -0
  62. package/dist/project/deployment-doc.js +76 -14
  63. package/dist/project/edit-planner.d.ts +123 -0
  64. package/dist/project/edit-planner.js +1371 -0
  65. package/dist/project/evaluation.d.ts +2 -0
  66. package/dist/project/evaluation.js +873 -88
  67. package/dist/project/graph-builder.d.ts +4 -1
  68. package/dist/project/graph-builder.js +132 -62
  69. package/dist/project/graph.d.ts +1 -0
  70. package/dist/project/handlers.d.ts +317 -6
  71. package/dist/project/handlers.js +1171 -19
  72. package/dist/project/stage-gate.d.ts +4 -0
  73. package/dist/project/stage-gate.js +64 -5
  74. package/dist/project/task-tracker.d.ts +26 -0
  75. package/dist/project/task-tracker.js +78 -0
  76. package/dist/safety/preview.js +16 -0
  77. package/dist/schema/call/allocation.d.ts +16 -16
  78. package/dist/schema/call/allocation.js +2 -2
  79. package/dist/schema/call/arbitration.js +19 -6
  80. package/dist/schema/call/base.d.ts +21 -13
  81. package/dist/schema/call/base.js +27 -6
  82. package/dist/schema/call/bridge.d.ts +5 -5
  83. package/dist/schema/call/bridge.js +3 -1
  84. package/dist/schema/call/contact.js +2 -2
  85. package/dist/schema/call/demand.d.ts +23 -31
  86. package/dist/schema/call/demand.js +2 -2
  87. package/dist/schema/call/guard.js +2 -2
  88. package/dist/schema/call/machine.d.ts +1976 -752
  89. package/dist/schema/call/machine.js +50 -4
  90. package/dist/schema/call/order.d.ts +149 -228
  91. package/dist/schema/call/order.js +4 -3
  92. package/dist/schema/call/payment.d.ts +183 -3
  93. package/dist/schema/call/payment.js +21 -3
  94. package/dist/schema/call/permission.js +2 -2
  95. package/dist/schema/call/personal.d.ts +241 -52
  96. package/dist/schema/call/progress.d.ts +53 -61
  97. package/dist/schema/call/progress.js +18 -4
  98. package/dist/schema/call/repository.d.ts +23 -31
  99. package/dist/schema/call/repository.js +2 -2
  100. package/dist/schema/call/reward.js +3 -3
  101. package/dist/schema/call/semantic.d.ts +1 -1
  102. package/dist/schema/call/semantic.js +37 -2
  103. package/dist/schema/call/service.d.ts +275 -127
  104. package/dist/schema/call/service.js +89 -13
  105. package/dist/schema/call/treasury.js +3 -3
  106. package/dist/schema/common/index.d.ts +13 -2
  107. package/dist/schema/common/index.js +80 -15
  108. package/dist/schema/local/index.d.ts +32 -35
  109. package/dist/schema/local/index.js +28 -6
  110. package/dist/schema/messenger/index.d.ts +274 -46
  111. package/dist/schema/operations.d.ts +1264 -544
  112. package/dist/schema/operations.js +65 -7
  113. package/dist/schema/project/index.d.ts +2846 -167
  114. package/dist/schema/project/index.js +570 -16
  115. package/dist/schema/query/index.d.ts +922 -349
  116. package/dist/schema/query/index.js +205 -42
  117. package/dist/schema/schema-query/index.d.ts +65 -3
  118. package/dist/schema/schema-query/index.js +38 -5
  119. package/dist/schema/utils/node-parser.js +20 -4
  120. package/dist/schema/utils/object-type-utils.d.ts +12 -0
  121. package/dist/schema/utils/object-type-utils.js +35 -0
  122. package/dist/schema/utils/permission-machine-check.d.ts +49 -0
  123. package/dist/schema/utils/permission-machine-check.js +121 -0
  124. package/dist/schema/utils/skills-recommendation.d.ts +2 -0
  125. package/dist/schema/utils/skills-recommendation.js +76 -0
  126. package/dist/schema-query/index.d.ts +20 -1
  127. package/dist/schema-query/index.js +306 -4
  128. package/dist/schemas/account_operation.output.json +7 -1
  129. package/dist/schemas/account_operation.schema.json +3 -3
  130. package/dist/schemas/bridge_operation.output.json +6 -0
  131. package/dist/schemas/bridge_operation.schema.json +1 -1
  132. package/dist/schemas/guard-templates.json +379 -0
  133. package/dist/schemas/guard2file.schema.json +1 -1
  134. package/dist/schemas/index.json +1 -1
  135. package/dist/schemas/local_info_operation.output.json +6 -0
  136. package/dist/schemas/local_mark_operation.output.json +7 -1
  137. package/dist/schemas/local_mark_operation.schema.json +1 -1
  138. package/dist/schemas/machineNode2file.schema.json +1 -1
  139. package/dist/schemas/messenger_operation.schema.json +4 -4
  140. package/dist/schemas/onchain_events.output.json +1 -1
  141. package/dist/schemas/onchain_operations.output.json +2820 -0
  142. package/dist/schemas/onchain_operations.schema.json +444 -330
  143. package/dist/schemas/onchain_operations_allocation.schema.json +37 -28
  144. package/dist/schemas/onchain_operations_arbitration.schema.json +16 -14
  145. package/dist/schemas/onchain_operations_contact.schema.json +10 -10
  146. package/dist/schemas/onchain_operations_demand.schema.json +10 -10
  147. package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -16
  148. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  149. package/dist/schemas/onchain_operations_guard.schema.json +2 -2
  150. package/dist/schemas/onchain_operations_machine.schema.json +43 -35
  151. package/dist/schemas/onchain_operations_order.schema.json +72 -78
  152. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  153. package/dist/schemas/onchain_operations_permission.schema.json +3 -3
  154. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  155. package/dist/schemas/onchain_operations_progress.schema.json +9 -9
  156. package/dist/schemas/onchain_operations_proof.schema.json +8 -8
  157. package/dist/schemas/onchain_operations_repository.schema.json +10 -10
  158. package/dist/schemas/onchain_operations_reward.schema.json +14 -14
  159. package/dist/schemas/onchain_operations_service.schema.json +119 -48
  160. package/dist/schemas/onchain_operations_treasury.schema.json +11 -11
  161. package/dist/schemas/onchain_table_data.output.json +33 -25
  162. package/dist/schemas/onchain_table_data.schema.json +22 -21
  163. package/dist/schemas/project_operation.output.json +2194 -23
  164. package/dist/schemas/project_operation.schema.json +84 -6
  165. package/dist/schemas/query_toolkit.output.json +108 -80
  166. package/dist/schemas/query_toolkit.schema.json +12 -12
  167. package/dist/schemas/schema_query.output.json +70 -3
  168. package/dist/schemas/schema_query.schema.json +18 -3
  169. package/dist/schemas/wowok_buildin_info.output.json +81 -8
  170. package/dist/schemas/wowok_buildin_info.schema.json +46 -2
  171. package/dist/tools/handlers/local.js +20 -5
  172. package/dist/tools/handlers/onchain.js +594 -6
  173. package/dist/tools/handlers/project.js +76 -4
  174. package/dist/tools/handlers/query.js +27 -0
  175. package/dist/tools/handlers/schema-query.js +43 -1
  176. package/dist/tools/handlers/task-status.d.ts +170 -0
  177. package/dist/tools/handlers/task-status.js +55 -0
  178. package/dist/tools/handlers/wip.js +47 -1
  179. package/dist/tools/index.d.ts +8 -0
  180. package/dist/tools/index.js +387 -12
  181. package/dist/tools/retry.d.ts +8 -0
  182. package/dist/tools/retry.js +85 -0
  183. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  184. package/dist/tools/wip-deploy-assist.js +278 -0
  185. package/package.json +2 -2
  186. package/dist/schemas/guard-node-examples.md +0 -199
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  export declare const ProjectObjectTypeEnum: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
3
3
  export declare const EdgeKindEnum: z.ZodEnum<["machine", "order_allocators", "arbitrations", "compensation_fund", "rewards", "buy_guard", "permission", "guard", "prev", "next", "forward", "parent", "service", "progress", "arbitration", "sub_order", "references"]>;
4
4
  export declare const ProjectOperationInputSchema: z.ZodObject<{
5
- action: z.ZodEnum<["list_projects", "create_project", "create_project_from_onchain", "update_project", "get_project_detail", "add_object", "remove_object", "update_object", "create_version", "build_graph", "get_graph", "evaluate_project", "save_evaluation", "compare_projects", "refresh_objects", "get_object_diff", "delete_project", "assemble_context", "generate_deployment_doc"]>;
5
+ action: z.ZodEnum<["list_projects", "create_project", "create_project_from_onchain", "update_project", "get_project_detail", "add_object", "remove_object", "update_object", "create_version", "build_graph", "get_graph", "evaluate_project", "save_evaluation", "compare_projects", "refresh_objects", "get_object_diff", "delete_project", "assemble_context", "get_machine_graph", "get_guard_graph", "generate_deployment_doc", "pre_evaluate_check", "verify_deployment", "clone_project_to_network", "migrate_network", "migrate_to_mainnet", "plan_object_edit", "apply_object_edit", "patch_machine_nodes", "patch_guard_tree"]>;
6
6
  project: z.ZodOptional<z.ZodString>;
7
7
  version: z.ZodOptional<z.ZodString>;
8
8
  context_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -13,13 +13,15 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
13
13
  filter_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
14
14
  project_name: z.ZodOptional<z.ZodString>;
15
15
  project_description: z.ZodOptional<z.ZodString>;
16
- project_industry: z.ZodOptional<z.ZodEnum<["general", "retail", "service", "rental", "freelance", "education", "travel", "subscription", "custom"]>>;
16
+ project_industry: z.ZodOptional<z.ZodEnum<["general", "retail", "retail_d2c", "service", "rental", "freelance", "education", "travel", "subscription", "custom"]>>;
17
17
  project_perspective: z.ZodOptional<z.ZodEnum<["producer", "consumer", "both"]>>;
18
18
  project_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
19
  service_address: z.ZodOptional<z.ZodString>;
20
20
  project_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
21
+ skip_templates: z.ZodOptional<z.ZodBoolean>;
21
22
  project_id: z.ZodOptional<z.ZodString>;
22
23
  project_status: z.ZodOptional<z.ZodEnum<["draft", "active", "inactive", "archived"]>>;
24
+ target_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
23
25
  object_address: z.ZodOptional<z.ZodString>;
24
26
  object_name_add: z.ZodOptional<z.ZodString>;
25
27
  object_type_add: z.ZodOptional<z.ZodEnum<["Service", "Machine", "Guard", "Permission", "Reward", "Arbitration", "Progress", "Treasury", "Demand", "Repository", "Contact", "Order", "Allocation", "Personal", "Payment", "Proof"]>>;
@@ -34,8 +36,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
34
36
  version_description: z.ZodOptional<z.ZodString>;
35
37
  fork_from_version: z.ZodOptional<z.ZodString>;
36
38
  max_depth: z.ZodOptional<z.ZodNumber>;
39
+ depth: z.ZodOptional<z.ZodNumber>;
37
40
  enable_registrar: z.ZodOptional<z.ZodBoolean>;
38
41
  enable_potential: z.ZodOptional<z.ZodBoolean>;
42
+ async_mode: z.ZodOptional<z.ZodBoolean>;
39
43
  evaluation_type: z.ZodOptional<z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>>;
40
44
  refresh_before_eval: z.ZodOptional<z.ZodBoolean>;
41
45
  eval_score: z.ZodOptional<z.ZodNumber>;
@@ -47,8 +51,15 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
47
51
  diff_to_time: z.ZodOptional<z.ZodNumber>;
48
52
  network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
49
53
  save: z.ZodOptional<z.ZodBoolean>;
54
+ detail_level: z.ZodOptional<z.ZodEnum<["summary", "detailed", "full"]>>;
55
+ object_kind: z.ZodOptional<z.ZodEnum<["machine", "guard"]>>;
56
+ edit_format: z.ZodOptional<z.ZodEnum<["tree_outline", "json"]>>;
57
+ edited_content: z.ZodOptional<z.ZodString>;
58
+ plan_id: z.ZodOptional<z.ZodString>;
59
+ expected_hash: z.ZodOptional<z.ZodString>;
60
+ patch_operations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50
61
  }, "strict", z.ZodTypeAny, {
51
- action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "generate_deployment_doc";
62
+ action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "get_machine_graph" | "get_guard_graph" | "generate_deployment_doc" | "pre_evaluate_check" | "verify_deployment" | "clone_project_to_network" | "migrate_network" | "migrate_to_mainnet" | "plan_object_edit" | "apply_object_edit" | "patch_machine_nodes" | "patch_guard_tree";
52
63
  version?: string | undefined;
53
64
  network?: "testnet" | "mainnet" | undefined;
54
65
  project?: string | undefined;
@@ -61,12 +72,14 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
61
72
  filter_network?: "testnet" | "mainnet" | undefined;
62
73
  project_name?: string | undefined;
63
74
  project_description?: string | undefined;
64
- project_industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
75
+ project_industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | "retail_d2c" | undefined;
65
76
  project_perspective?: "consumer" | "producer" | "both" | undefined;
66
77
  project_labels?: string[] | undefined;
67
78
  project_network?: "testnet" | "mainnet" | undefined;
79
+ skip_templates?: boolean | undefined;
68
80
  project_id?: string | undefined;
69
81
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
82
+ target_network?: "testnet" | "mainnet" | undefined;
70
83
  object_address?: string | undefined;
71
84
  object_name_add?: string | undefined;
72
85
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -81,8 +94,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
81
94
  version_description?: string | undefined;
82
95
  fork_from_version?: string | undefined;
83
96
  max_depth?: number | undefined;
97
+ depth?: number | undefined;
84
98
  enable_registrar?: boolean | undefined;
85
99
  enable_potential?: boolean | undefined;
100
+ async_mode?: boolean | undefined;
86
101
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
87
102
  refresh_before_eval?: boolean | undefined;
88
103
  eval_score?: number | undefined;
@@ -93,8 +108,15 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
93
108
  diff_from_time?: number | undefined;
94
109
  diff_to_time?: number | undefined;
95
110
  save?: boolean | undefined;
111
+ detail_level?: "summary" | "full" | "detailed" | undefined;
112
+ object_kind?: "guard" | "machine" | undefined;
113
+ edit_format?: "json" | "tree_outline" | undefined;
114
+ edited_content?: string | undefined;
115
+ plan_id?: string | undefined;
116
+ expected_hash?: string | undefined;
117
+ patch_operations?: string[] | undefined;
96
118
  }, {
97
- action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "generate_deployment_doc";
119
+ action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "get_machine_graph" | "get_guard_graph" | "generate_deployment_doc" | "pre_evaluate_check" | "verify_deployment" | "clone_project_to_network" | "migrate_network" | "migrate_to_mainnet" | "plan_object_edit" | "apply_object_edit" | "patch_machine_nodes" | "patch_guard_tree";
98
120
  version?: string | undefined;
99
121
  network?: "testnet" | "mainnet" | undefined;
100
122
  project?: string | undefined;
@@ -107,12 +129,14 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
107
129
  filter_network?: "testnet" | "mainnet" | undefined;
108
130
  project_name?: string | undefined;
109
131
  project_description?: string | undefined;
110
- project_industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
132
+ project_industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | "retail_d2c" | undefined;
111
133
  project_perspective?: "consumer" | "producer" | "both" | undefined;
112
134
  project_labels?: string[] | undefined;
113
135
  project_network?: "testnet" | "mainnet" | undefined;
136
+ skip_templates?: boolean | undefined;
114
137
  project_id?: string | undefined;
115
138
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
139
+ target_network?: "testnet" | "mainnet" | undefined;
116
140
  object_address?: string | undefined;
117
141
  object_name_add?: string | undefined;
118
142
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -127,8 +151,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
127
151
  version_description?: string | undefined;
128
152
  fork_from_version?: string | undefined;
129
153
  max_depth?: number | undefined;
154
+ depth?: number | undefined;
130
155
  enable_registrar?: boolean | undefined;
131
156
  enable_potential?: boolean | undefined;
157
+ async_mode?: boolean | undefined;
132
158
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
133
159
  refresh_before_eval?: boolean | undefined;
134
160
  eval_score?: number | undefined;
@@ -139,6 +165,13 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
139
165
  diff_from_time?: number | undefined;
140
166
  diff_to_time?: number | undefined;
141
167
  save?: boolean | undefined;
168
+ detail_level?: "summary" | "full" | "detailed" | undefined;
169
+ object_kind?: "guard" | "machine" | undefined;
170
+ edit_format?: "json" | "tree_outline" | undefined;
171
+ edited_content?: string | undefined;
172
+ plan_id?: string | undefined;
173
+ expected_hash?: string | undefined;
174
+ patch_operations?: string[] | undefined;
142
175
  }>;
143
176
  export declare const ProjectOperationOutputSchema: z.ZodObject<{
144
177
  result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
@@ -300,6 +333,50 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
300
333
  serviceAddress: string | null;
301
334
  defaultAccount: string | null;
302
335
  }>;
336
+ recommended_creation_order: z.ZodArray<z.ZodObject<{
337
+ step: z.ZodNumber;
338
+ object: z.ZodString;
339
+ reason: z.ZodString;
340
+ required: z.ZodBoolean;
341
+ }, "strict", z.ZodTypeAny, {
342
+ object: string;
343
+ reason: string;
344
+ required: boolean;
345
+ step: number;
346
+ }, {
347
+ object: string;
348
+ reason: string;
349
+ required: boolean;
350
+ step: number;
351
+ }>, "many">;
352
+ blueprint: z.ZodOptional<z.ZodObject<{
353
+ objects_count: z.ZodNumber;
354
+ edges_count: z.ZodNumber;
355
+ industry_source: z.ZodString;
356
+ applied_template: z.ZodString;
357
+ steps_count: z.ZodNumber;
358
+ scenarios_count: z.ZodNumber;
359
+ key_risk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ objects_count: number;
362
+ edges_count: number;
363
+ industry_source: string;
364
+ applied_template: string;
365
+ steps_count: number;
366
+ scenarios_count: number;
367
+ key_risk?: string | null | undefined;
368
+ }, {
369
+ objects_count: number;
370
+ edges_count: number;
371
+ industry_source: string;
372
+ applied_template: string;
373
+ steps_count: number;
374
+ scenarios_count: number;
375
+ key_risk?: string | null | undefined;
376
+ }>>;
377
+ blueprint_warning: z.ZodOptional<z.ZodString>;
378
+ blueprint_skipped: z.ZodOptional<z.ZodBoolean>;
379
+ hint: z.ZodOptional<z.ZodString>;
303
380
  }, "strict", z.ZodTypeAny, {
304
381
  action: "create_project";
305
382
  project: {
@@ -319,6 +396,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
319
396
  serviceAddress: string | null;
320
397
  defaultAccount: string | null;
321
398
  };
399
+ recommended_creation_order: {
400
+ object: string;
401
+ reason: string;
402
+ required: boolean;
403
+ step: number;
404
+ }[];
405
+ hint?: string | undefined;
406
+ blueprint?: {
407
+ objects_count: number;
408
+ edges_count: number;
409
+ industry_source: string;
410
+ applied_template: string;
411
+ steps_count: number;
412
+ scenarios_count: number;
413
+ key_risk?: string | null | undefined;
414
+ } | undefined;
415
+ blueprint_warning?: string | undefined;
416
+ blueprint_skipped?: boolean | undefined;
322
417
  }, {
323
418
  action: "create_project";
324
419
  project: {
@@ -338,6 +433,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
338
433
  serviceAddress: string | null;
339
434
  defaultAccount: string | null;
340
435
  };
436
+ recommended_creation_order: {
437
+ object: string;
438
+ reason: string;
439
+ required: boolean;
440
+ step: number;
441
+ }[];
442
+ hint?: string | undefined;
443
+ blueprint?: {
444
+ objects_count: number;
445
+ edges_count: number;
446
+ industry_source: string;
447
+ applied_template: string;
448
+ steps_count: number;
449
+ scenarios_count: number;
450
+ key_risk?: string | null | undefined;
451
+ } | undefined;
452
+ blueprint_warning?: string | undefined;
453
+ blueprint_skipped?: boolean | undefined;
341
454
  }>, z.ZodObject<{
342
455
  action: z.ZodLiteral<"create_project_from_onchain">;
343
456
  project: z.ZodObject<{
@@ -395,13 +508,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
395
508
  objectAddress: z.ZodString;
396
509
  objectType: z.ZodNullable<z.ZodString>;
397
510
  objectName: z.ZodNullable<z.ZodString>;
398
- role: z.ZodEnum<["core", "dependency", "reference"]>;
511
+ role: z.ZodString;
399
512
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
400
513
  addedAt: z.ZodNumber;
401
514
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
515
  }, "strict", z.ZodTypeAny, {
403
516
  id: string;
404
- role: "reference" | "dependency" | "core";
517
+ role: string;
405
518
  objectType: string | null;
406
519
  tags: string[] | null;
407
520
  projectId: string;
@@ -411,7 +524,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
411
524
  metadata: Record<string, unknown> | null;
412
525
  }, {
413
526
  id: string;
414
- role: "reference" | "dependency" | "core";
527
+ role: string;
415
528
  objectType: string | null;
416
529
  tags: string[] | null;
417
530
  projectId: string;
@@ -442,7 +555,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
442
555
  };
443
556
  objects: {
444
557
  id: string;
445
- role: "reference" | "dependency" | "core";
558
+ role: string;
446
559
  objectType: string | null;
447
560
  tags: string[] | null;
448
561
  projectId: string;
@@ -473,7 +586,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
473
586
  };
474
587
  objects: {
475
588
  id: string;
476
- role: "reference" | "dependency" | "core";
589
+ role: string;
477
590
  objectType: string | null;
478
591
  tags: string[] | null;
479
592
  projectId: string;
@@ -629,13 +742,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
629
742
  objectAddress: z.ZodString;
630
743
  objectType: z.ZodNullable<z.ZodString>;
631
744
  objectName: z.ZodNullable<z.ZodString>;
632
- role: z.ZodEnum<["core", "dependency", "reference"]>;
745
+ role: z.ZodString;
633
746
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
634
747
  addedAt: z.ZodNumber;
635
748
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
636
749
  }, "strict", z.ZodTypeAny, {
637
750
  id: string;
638
- role: "reference" | "dependency" | "core";
751
+ role: string;
639
752
  objectType: string | null;
640
753
  tags: string[] | null;
641
754
  projectId: string;
@@ -645,7 +758,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
645
758
  metadata: Record<string, unknown> | null;
646
759
  }, {
647
760
  id: string;
648
- role: "reference" | "dependency" | "core";
761
+ role: string;
649
762
  objectType: string | null;
650
763
  tags: string[] | null;
651
764
  projectId: string;
@@ -654,7 +767,271 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
654
767
  addedAt: number;
655
768
  metadata: Record<string, unknown> | null;
656
769
  }>, "many">;
770
+ objectGroups: z.ZodObject<{
771
+ core: z.ZodArray<z.ZodObject<{
772
+ id: z.ZodString;
773
+ projectId: z.ZodString;
774
+ objectAddress: z.ZodString;
775
+ objectType: z.ZodNullable<z.ZodString>;
776
+ objectName: z.ZodNullable<z.ZodString>;
777
+ role: z.ZodString;
778
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
779
+ addedAt: z.ZodNumber;
780
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
781
+ }, "strict", z.ZodTypeAny, {
782
+ id: string;
783
+ role: string;
784
+ objectType: string | null;
785
+ tags: string[] | null;
786
+ projectId: string;
787
+ objectAddress: string;
788
+ objectName: string | null;
789
+ addedAt: number;
790
+ metadata: Record<string, unknown> | null;
791
+ }, {
792
+ id: string;
793
+ role: string;
794
+ objectType: string | null;
795
+ tags: string[] | null;
796
+ projectId: string;
797
+ objectAddress: string;
798
+ objectName: string | null;
799
+ addedAt: number;
800
+ metadata: Record<string, unknown> | null;
801
+ }>, "many">;
802
+ dependency: z.ZodArray<z.ZodObject<{
803
+ id: z.ZodString;
804
+ projectId: z.ZodString;
805
+ objectAddress: z.ZodString;
806
+ objectType: z.ZodNullable<z.ZodString>;
807
+ objectName: z.ZodNullable<z.ZodString>;
808
+ role: z.ZodString;
809
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
810
+ addedAt: z.ZodNumber;
811
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
+ }, "strict", z.ZodTypeAny, {
813
+ id: string;
814
+ role: string;
815
+ objectType: string | null;
816
+ tags: string[] | null;
817
+ projectId: string;
818
+ objectAddress: string;
819
+ objectName: string | null;
820
+ addedAt: number;
821
+ metadata: Record<string, unknown> | null;
822
+ }, {
823
+ id: string;
824
+ role: string;
825
+ objectType: string | null;
826
+ tags: string[] | null;
827
+ projectId: string;
828
+ objectAddress: string;
829
+ objectName: string | null;
830
+ addedAt: number;
831
+ metadata: Record<string, unknown> | null;
832
+ }>, "many">;
833
+ reference: z.ZodArray<z.ZodObject<{
834
+ id: z.ZodString;
835
+ projectId: z.ZodString;
836
+ objectAddress: z.ZodString;
837
+ objectType: z.ZodNullable<z.ZodString>;
838
+ objectName: z.ZodNullable<z.ZodString>;
839
+ role: z.ZodString;
840
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
841
+ addedAt: z.ZodNumber;
842
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
843
+ }, "strict", z.ZodTypeAny, {
844
+ id: string;
845
+ role: string;
846
+ objectType: string | null;
847
+ tags: string[] | null;
848
+ projectId: string;
849
+ objectAddress: string;
850
+ objectName: string | null;
851
+ addedAt: number;
852
+ metadata: Record<string, unknown> | null;
853
+ }, {
854
+ id: string;
855
+ role: string;
856
+ objectType: string | null;
857
+ tags: string[] | null;
858
+ projectId: string;
859
+ objectAddress: string;
860
+ objectName: string | null;
861
+ addedAt: number;
862
+ metadata: Record<string, unknown> | null;
863
+ }>, "many">;
864
+ other: z.ZodArray<z.ZodObject<{
865
+ id: z.ZodString;
866
+ projectId: z.ZodString;
867
+ objectAddress: z.ZodString;
868
+ objectType: z.ZodNullable<z.ZodString>;
869
+ objectName: z.ZodNullable<z.ZodString>;
870
+ role: z.ZodString;
871
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
872
+ addedAt: z.ZodNumber;
873
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
+ }, "strict", z.ZodTypeAny, {
875
+ id: string;
876
+ role: string;
877
+ objectType: string | null;
878
+ tags: string[] | null;
879
+ projectId: string;
880
+ objectAddress: string;
881
+ objectName: string | null;
882
+ addedAt: number;
883
+ metadata: Record<string, unknown> | null;
884
+ }, {
885
+ id: string;
886
+ role: string;
887
+ objectType: string | null;
888
+ tags: string[] | null;
889
+ projectId: string;
890
+ objectAddress: string;
891
+ objectName: string | null;
892
+ addedAt: number;
893
+ metadata: Record<string, unknown> | null;
894
+ }>, "many">;
895
+ stats: z.ZodObject<{
896
+ total: z.ZodNumber;
897
+ core_count: z.ZodNumber;
898
+ dependency_count: z.ZodNumber;
899
+ reference_count: z.ZodNumber;
900
+ other_count: z.ZodNumber;
901
+ by_type: z.ZodRecord<z.ZodString, z.ZodNumber>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ total: number;
904
+ core_count: number;
905
+ dependency_count: number;
906
+ reference_count: number;
907
+ other_count: number;
908
+ by_type: Record<string, number>;
909
+ }, {
910
+ total: number;
911
+ core_count: number;
912
+ dependency_count: number;
913
+ reference_count: number;
914
+ other_count: number;
915
+ by_type: Record<string, number>;
916
+ }>;
917
+ }, "strict", z.ZodTypeAny, {
918
+ other: {
919
+ id: string;
920
+ role: string;
921
+ objectType: string | null;
922
+ tags: string[] | null;
923
+ projectId: string;
924
+ objectAddress: string;
925
+ objectName: string | null;
926
+ addedAt: number;
927
+ metadata: Record<string, unknown> | null;
928
+ }[];
929
+ reference: {
930
+ id: string;
931
+ role: string;
932
+ objectType: string | null;
933
+ tags: string[] | null;
934
+ projectId: string;
935
+ objectAddress: string;
936
+ objectName: string | null;
937
+ addedAt: number;
938
+ metadata: Record<string, unknown> | null;
939
+ }[];
940
+ dependency: {
941
+ id: string;
942
+ role: string;
943
+ objectType: string | null;
944
+ tags: string[] | null;
945
+ projectId: string;
946
+ objectAddress: string;
947
+ objectName: string | null;
948
+ addedAt: number;
949
+ metadata: Record<string, unknown> | null;
950
+ }[];
951
+ core: {
952
+ id: string;
953
+ role: string;
954
+ objectType: string | null;
955
+ tags: string[] | null;
956
+ projectId: string;
957
+ objectAddress: string;
958
+ objectName: string | null;
959
+ addedAt: number;
960
+ metadata: Record<string, unknown> | null;
961
+ }[];
962
+ stats: {
963
+ total: number;
964
+ core_count: number;
965
+ dependency_count: number;
966
+ reference_count: number;
967
+ other_count: number;
968
+ by_type: Record<string, number>;
969
+ };
970
+ }, {
971
+ other: {
972
+ id: string;
973
+ role: string;
974
+ objectType: string | null;
975
+ tags: string[] | null;
976
+ projectId: string;
977
+ objectAddress: string;
978
+ objectName: string | null;
979
+ addedAt: number;
980
+ metadata: Record<string, unknown> | null;
981
+ }[];
982
+ reference: {
983
+ id: string;
984
+ role: string;
985
+ objectType: string | null;
986
+ tags: string[] | null;
987
+ projectId: string;
988
+ objectAddress: string;
989
+ objectName: string | null;
990
+ addedAt: number;
991
+ metadata: Record<string, unknown> | null;
992
+ }[];
993
+ dependency: {
994
+ id: string;
995
+ role: string;
996
+ objectType: string | null;
997
+ tags: string[] | null;
998
+ projectId: string;
999
+ objectAddress: string;
1000
+ objectName: string | null;
1001
+ addedAt: number;
1002
+ metadata: Record<string, unknown> | null;
1003
+ }[];
1004
+ core: {
1005
+ id: string;
1006
+ role: string;
1007
+ objectType: string | null;
1008
+ tags: string[] | null;
1009
+ projectId: string;
1010
+ objectAddress: string;
1011
+ objectName: string | null;
1012
+ addedAt: number;
1013
+ metadata: Record<string, unknown> | null;
1014
+ }[];
1015
+ stats: {
1016
+ total: number;
1017
+ core_count: number;
1018
+ dependency_count: number;
1019
+ reference_count: number;
1020
+ other_count: number;
1021
+ by_type: Record<string, number>;
1022
+ };
1023
+ }>;
657
1024
  graphEdgeCount: z.ZodNumber;
1025
+ serviceStatus: z.ZodNullable<z.ZodObject<{
1026
+ published: z.ZodNullable<z.ZodBoolean>;
1027
+ paused: z.ZodNullable<z.ZodBoolean>;
1028
+ }, "strict", z.ZodTypeAny, {
1029
+ published: boolean | null;
1030
+ paused: boolean | null;
1031
+ }, {
1032
+ published: boolean | null;
1033
+ paused: boolean | null;
1034
+ }>>;
658
1035
  evaluations: z.ZodArray<z.ZodObject<{
659
1036
  id: z.ZodString;
660
1037
  evalType: z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>;
@@ -801,7 +1178,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
801
1178
  };
802
1179
  objects: {
803
1180
  id: string;
804
- role: "reference" | "dependency" | "core";
1181
+ role: string;
805
1182
  objectType: string | null;
806
1183
  tags: string[] | null;
807
1184
  projectId: string;
@@ -811,6 +1188,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
811
1188
  metadata: Record<string, unknown> | null;
812
1189
  }[];
813
1190
  graphEdgeCount: number;
1191
+ objectGroups: {
1192
+ other: {
1193
+ id: string;
1194
+ role: string;
1195
+ objectType: string | null;
1196
+ tags: string[] | null;
1197
+ projectId: string;
1198
+ objectAddress: string;
1199
+ objectName: string | null;
1200
+ addedAt: number;
1201
+ metadata: Record<string, unknown> | null;
1202
+ }[];
1203
+ reference: {
1204
+ id: string;
1205
+ role: string;
1206
+ objectType: string | null;
1207
+ tags: string[] | null;
1208
+ projectId: string;
1209
+ objectAddress: string;
1210
+ objectName: string | null;
1211
+ addedAt: number;
1212
+ metadata: Record<string, unknown> | null;
1213
+ }[];
1214
+ dependency: {
1215
+ id: string;
1216
+ role: string;
1217
+ objectType: string | null;
1218
+ tags: string[] | null;
1219
+ projectId: string;
1220
+ objectAddress: string;
1221
+ objectName: string | null;
1222
+ addedAt: number;
1223
+ metadata: Record<string, unknown> | null;
1224
+ }[];
1225
+ core: {
1226
+ id: string;
1227
+ role: string;
1228
+ objectType: string | null;
1229
+ tags: string[] | null;
1230
+ projectId: string;
1231
+ objectAddress: string;
1232
+ objectName: string | null;
1233
+ addedAt: number;
1234
+ metadata: Record<string, unknown> | null;
1235
+ }[];
1236
+ stats: {
1237
+ total: number;
1238
+ core_count: number;
1239
+ dependency_count: number;
1240
+ reference_count: number;
1241
+ other_count: number;
1242
+ by_type: Record<string, number>;
1243
+ };
1244
+ };
1245
+ serviceStatus: {
1246
+ published: boolean | null;
1247
+ paused: boolean | null;
1248
+ } | null;
814
1249
  evaluations: {
815
1250
  id: string;
816
1251
  summary: string | null;
@@ -859,7 +1294,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
859
1294
  };
860
1295
  objects: {
861
1296
  id: string;
862
- role: "reference" | "dependency" | "core";
1297
+ role: string;
863
1298
  objectType: string | null;
864
1299
  tags: string[] | null;
865
1300
  projectId: string;
@@ -869,6 +1304,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
869
1304
  metadata: Record<string, unknown> | null;
870
1305
  }[];
871
1306
  graphEdgeCount: number;
1307
+ objectGroups: {
1308
+ other: {
1309
+ id: string;
1310
+ role: string;
1311
+ objectType: string | null;
1312
+ tags: string[] | null;
1313
+ projectId: string;
1314
+ objectAddress: string;
1315
+ objectName: string | null;
1316
+ addedAt: number;
1317
+ metadata: Record<string, unknown> | null;
1318
+ }[];
1319
+ reference: {
1320
+ id: string;
1321
+ role: string;
1322
+ objectType: string | null;
1323
+ tags: string[] | null;
1324
+ projectId: string;
1325
+ objectAddress: string;
1326
+ objectName: string | null;
1327
+ addedAt: number;
1328
+ metadata: Record<string, unknown> | null;
1329
+ }[];
1330
+ dependency: {
1331
+ id: string;
1332
+ role: string;
1333
+ objectType: string | null;
1334
+ tags: string[] | null;
1335
+ projectId: string;
1336
+ objectAddress: string;
1337
+ objectName: string | null;
1338
+ addedAt: number;
1339
+ metadata: Record<string, unknown> | null;
1340
+ }[];
1341
+ core: {
1342
+ id: string;
1343
+ role: string;
1344
+ objectType: string | null;
1345
+ tags: string[] | null;
1346
+ projectId: string;
1347
+ objectAddress: string;
1348
+ objectName: string | null;
1349
+ addedAt: number;
1350
+ metadata: Record<string, unknown> | null;
1351
+ }[];
1352
+ stats: {
1353
+ total: number;
1354
+ core_count: number;
1355
+ dependency_count: number;
1356
+ reference_count: number;
1357
+ other_count: number;
1358
+ by_type: Record<string, number>;
1359
+ };
1360
+ };
1361
+ serviceStatus: {
1362
+ published: boolean | null;
1363
+ paused: boolean | null;
1364
+ } | null;
872
1365
  evaluations: {
873
1366
  id: string;
874
1367
  summary: string | null;
@@ -904,13 +1397,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
904
1397
  objectAddress: z.ZodString;
905
1398
  objectType: z.ZodNullable<z.ZodString>;
906
1399
  objectName: z.ZodNullable<z.ZodString>;
907
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1400
+ role: z.ZodString;
908
1401
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
909
1402
  addedAt: z.ZodNumber;
910
1403
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
911
1404
  }, "strict", z.ZodTypeAny, {
912
1405
  id: string;
913
- role: "reference" | "dependency" | "core";
1406
+ role: string;
914
1407
  objectType: string | null;
915
1408
  tags: string[] | null;
916
1409
  projectId: string;
@@ -920,7 +1413,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
920
1413
  metadata: Record<string, unknown> | null;
921
1414
  }, {
922
1415
  id: string;
923
- role: "reference" | "dependency" | "core";
1416
+ role: string;
924
1417
  objectType: string | null;
925
1418
  tags: string[] | null;
926
1419
  projectId: string;
@@ -932,7 +1425,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
932
1425
  }, "strict", z.ZodTypeAny, {
933
1426
  object: {
934
1427
  id: string;
935
- role: "reference" | "dependency" | "core";
1428
+ role: string;
936
1429
  objectType: string | null;
937
1430
  tags: string[] | null;
938
1431
  projectId: string;
@@ -945,7 +1438,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
945
1438
  }, {
946
1439
  object: {
947
1440
  id: string;
948
- role: "reference" | "dependency" | "core";
1441
+ role: string;
949
1442
  objectType: string | null;
950
1443
  tags: string[] | null;
951
1444
  projectId: string;
@@ -972,13 +1465,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
972
1465
  objectAddress: z.ZodString;
973
1466
  objectType: z.ZodNullable<z.ZodString>;
974
1467
  objectName: z.ZodNullable<z.ZodString>;
975
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1468
+ role: z.ZodString;
976
1469
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
977
1470
  addedAt: z.ZodNumber;
978
1471
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
1472
  }, "strict", z.ZodTypeAny, {
980
1473
  id: string;
981
- role: "reference" | "dependency" | "core";
1474
+ role: string;
982
1475
  objectType: string | null;
983
1476
  tags: string[] | null;
984
1477
  projectId: string;
@@ -988,7 +1481,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
988
1481
  metadata: Record<string, unknown> | null;
989
1482
  }, {
990
1483
  id: string;
991
- role: "reference" | "dependency" | "core";
1484
+ role: string;
992
1485
  objectType: string | null;
993
1486
  tags: string[] | null;
994
1487
  projectId: string;
@@ -1000,7 +1493,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1000
1493
  }, "strict", z.ZodTypeAny, {
1001
1494
  object: {
1002
1495
  id: string;
1003
- role: "reference" | "dependency" | "core";
1496
+ role: string;
1004
1497
  objectType: string | null;
1005
1498
  tags: string[] | null;
1006
1499
  projectId: string;
@@ -1013,7 +1506,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1013
1506
  }, {
1014
1507
  object: {
1015
1508
  id: string;
1016
- role: "reference" | "dependency" | "core";
1509
+ role: string;
1017
1510
  objectType: string | null;
1018
1511
  tags: string[] | null;
1019
1512
  projectId: string;
@@ -1054,25 +1547,133 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1054
1547
  action: "create_version";
1055
1548
  }>, z.ZodObject<{
1056
1549
  action: z.ZodLiteral<"build_graph">;
1057
- nodeCount: z.ZodNumber;
1058
- edgeCount: z.ZodNumber;
1059
- edgesBySource: z.ZodRecord<z.ZodString, z.ZodNumber>;
1060
- reputationCount: z.ZodNumber;
1061
- builtAt: z.ZodNumber;
1550
+ async_mode: z.ZodOptional<z.ZodBoolean>;
1551
+ task_id: z.ZodOptional<z.ZodString>;
1552
+ nodeCount: z.ZodOptional<z.ZodNumber>;
1553
+ edgeCount: z.ZodOptional<z.ZodNumber>;
1554
+ edgesBySource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1555
+ reputationCount: z.ZodOptional<z.ZodNumber>;
1556
+ builtAt: z.ZodOptional<z.ZodNumber>;
1557
+ binding_verification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1558
+ service: z.ZodString;
1559
+ bindings: z.ZodRecord<z.ZodString, z.ZodObject<{
1560
+ expected: z.ZodString;
1561
+ actual: z.ZodNullable<z.ZodString>;
1562
+ count: z.ZodOptional<z.ZodNumber>;
1563
+ verified: z.ZodBoolean;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ expected: string;
1566
+ actual: string | null;
1567
+ verified: boolean;
1568
+ count?: number | undefined;
1569
+ }, {
1570
+ expected: string;
1571
+ actual: string | null;
1572
+ verified: boolean;
1573
+ count?: number | undefined;
1574
+ }>>;
1575
+ all_verified: z.ZodBoolean;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ service: string;
1578
+ bindings: Record<string, {
1579
+ expected: string;
1580
+ actual: string | null;
1581
+ verified: boolean;
1582
+ count?: number | undefined;
1583
+ }>;
1584
+ all_verified: boolean;
1585
+ }, {
1586
+ service: string;
1587
+ bindings: Record<string, {
1588
+ expected: string;
1589
+ actual: string | null;
1590
+ verified: boolean;
1591
+ count?: number | undefined;
1592
+ }>;
1593
+ all_verified: boolean;
1594
+ }>>>;
1595
+ topEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1596
+ source: z.ZodString;
1597
+ target: z.ZodString;
1598
+ fieldName: z.ZodNullable<z.ZodString>;
1599
+ relationshipType: z.ZodString;
1600
+ weight: z.ZodNullable<z.ZodNumber>;
1601
+ verified: z.ZodBoolean;
1602
+ }, "strict", z.ZodTypeAny, {
1603
+ source: string;
1604
+ weight: number | null;
1605
+ target: string;
1606
+ verified: boolean;
1607
+ fieldName: string | null;
1608
+ relationshipType: string;
1609
+ }, {
1610
+ source: string;
1611
+ weight: number | null;
1612
+ target: string;
1613
+ verified: boolean;
1614
+ fieldName: string | null;
1615
+ relationshipType: string;
1616
+ }>, "many">>;
1617
+ visualization: z.ZodOptional<z.ZodString>;
1618
+ hint: z.ZodOptional<z.ZodString>;
1062
1619
  }, "strict", z.ZodTypeAny, {
1063
1620
  action: "build_graph";
1064
- nodeCount: number;
1065
- edgeCount: number;
1066
- edgesBySource: Record<string, number>;
1067
- reputationCount: number;
1068
- builtAt: number;
1621
+ hint?: string | undefined;
1622
+ async_mode?: boolean | undefined;
1623
+ task_id?: string | undefined;
1624
+ nodeCount?: number | undefined;
1625
+ edgeCount?: number | undefined;
1626
+ edgesBySource?: Record<string, number> | undefined;
1627
+ reputationCount?: number | undefined;
1628
+ builtAt?: number | undefined;
1629
+ binding_verification?: {
1630
+ service: string;
1631
+ bindings: Record<string, {
1632
+ expected: string;
1633
+ actual: string | null;
1634
+ verified: boolean;
1635
+ count?: number | undefined;
1636
+ }>;
1637
+ all_verified: boolean;
1638
+ } | null | undefined;
1639
+ topEdges?: {
1640
+ source: string;
1641
+ weight: number | null;
1642
+ target: string;
1643
+ verified: boolean;
1644
+ fieldName: string | null;
1645
+ relationshipType: string;
1646
+ }[] | undefined;
1647
+ visualization?: string | undefined;
1069
1648
  }, {
1070
1649
  action: "build_graph";
1071
- nodeCount: number;
1072
- edgeCount: number;
1073
- edgesBySource: Record<string, number>;
1074
- reputationCount: number;
1075
- builtAt: number;
1650
+ hint?: string | undefined;
1651
+ async_mode?: boolean | undefined;
1652
+ task_id?: string | undefined;
1653
+ nodeCount?: number | undefined;
1654
+ edgeCount?: number | undefined;
1655
+ edgesBySource?: Record<string, number> | undefined;
1656
+ reputationCount?: number | undefined;
1657
+ builtAt?: number | undefined;
1658
+ binding_verification?: {
1659
+ service: string;
1660
+ bindings: Record<string, {
1661
+ expected: string;
1662
+ actual: string | null;
1663
+ verified: boolean;
1664
+ count?: number | undefined;
1665
+ }>;
1666
+ all_verified: boolean;
1667
+ } | null | undefined;
1668
+ topEdges?: {
1669
+ source: string;
1670
+ weight: number | null;
1671
+ target: string;
1672
+ verified: boolean;
1673
+ fieldName: string | null;
1674
+ relationshipType: string;
1675
+ }[] | undefined;
1676
+ visualization?: string | undefined;
1076
1677
  }>, z.ZodObject<{
1077
1678
  action: z.ZodLiteral<"get_graph">;
1078
1679
  edges: z.ZodArray<z.ZodObject<{
@@ -1088,49 +1689,49 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1088
1689
  }, "strict", z.ZodTypeAny, {
1089
1690
  weight: number;
1090
1691
  direction: string | null;
1692
+ depth: number;
1693
+ verified: boolean;
1694
+ fieldName: string | null;
1695
+ relationshipType: string;
1091
1696
  sourceObject: string;
1092
1697
  targetObject: string;
1093
1698
  edgeSource: "registrar" | "internal" | "potential";
1094
- relationshipType: string;
1095
- fieldName: string | null;
1096
- depth: number;
1097
- verified: boolean;
1098
1699
  }, {
1099
1700
  weight: number;
1100
1701
  direction: string | null;
1702
+ depth: number;
1703
+ verified: boolean;
1704
+ fieldName: string | null;
1705
+ relationshipType: string;
1101
1706
  sourceObject: string;
1102
1707
  targetObject: string;
1103
1708
  edgeSource: "registrar" | "internal" | "potential";
1104
- relationshipType: string;
1105
- fieldName: string | null;
1106
- depth: number;
1107
- verified: boolean;
1108
1709
  }>, "many">;
1109
1710
  }, "strict", z.ZodTypeAny, {
1110
1711
  action: "get_graph";
1111
1712
  edges: {
1112
1713
  weight: number;
1113
1714
  direction: string | null;
1715
+ depth: number;
1716
+ verified: boolean;
1717
+ fieldName: string | null;
1718
+ relationshipType: string;
1114
1719
  sourceObject: string;
1115
1720
  targetObject: string;
1116
1721
  edgeSource: "registrar" | "internal" | "potential";
1117
- relationshipType: string;
1118
- fieldName: string | null;
1119
- depth: number;
1120
- verified: boolean;
1121
1722
  }[];
1122
1723
  }, {
1123
1724
  action: "get_graph";
1124
1725
  edges: {
1125
1726
  weight: number;
1126
1727
  direction: string | null;
1728
+ depth: number;
1729
+ verified: boolean;
1730
+ fieldName: string | null;
1731
+ relationshipType: string;
1127
1732
  sourceObject: string;
1128
1733
  targetObject: string;
1129
1734
  edgeSource: "registrar" | "internal" | "potential";
1130
- relationshipType: string;
1131
- fieldName: string | null;
1132
- depth: number;
1133
- verified: boolean;
1134
1735
  }[];
1135
1736
  }>, z.ZodObject<{
1136
1737
  action: z.ZodLiteral<"evaluate_project">;
@@ -1455,6 +2056,203 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1455
2056
  }[];
1456
2057
  }>;
1457
2058
  saved: z.ZodBoolean;
2059
+ detail_level: z.ZodEnum<["summary", "detailed", "full"]>;
2060
+ stage_gate: z.ZodObject<{
2061
+ stage: z.ZodNumber;
2062
+ passed: z.ZodBoolean;
2063
+ can_proceed: z.ZodBoolean;
2064
+ blocking_issues: z.ZodArray<z.ZodString, "many">;
2065
+ warnings: z.ZodArray<z.ZodString, "many">;
2066
+ checks: z.ZodArray<z.ZodObject<{
2067
+ dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
2068
+ status: z.ZodEnum<["PASS", "WARN", "FAIL"]>;
2069
+ message: z.ZodString;
2070
+ }, "strict", z.ZodTypeAny, {
2071
+ message: string;
2072
+ status: "PASS" | "FAIL" | "WARN";
2073
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2074
+ }, {
2075
+ message: string;
2076
+ status: "PASS" | "FAIL" | "WARN";
2077
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2078
+ }>, "many">;
2079
+ }, "strict", z.ZodTypeAny, {
2080
+ warnings: string[];
2081
+ stage: number;
2082
+ passed: boolean;
2083
+ checks: {
2084
+ message: string;
2085
+ status: "PASS" | "FAIL" | "WARN";
2086
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2087
+ }[];
2088
+ can_proceed: boolean;
2089
+ blocking_issues: string[];
2090
+ }, {
2091
+ warnings: string[];
2092
+ stage: number;
2093
+ passed: boolean;
2094
+ checks: {
2095
+ message: string;
2096
+ status: "PASS" | "FAIL" | "WARN";
2097
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2098
+ }[];
2099
+ can_proceed: boolean;
2100
+ blocking_issues: string[];
2101
+ }>;
2102
+ deployment_scan: z.ZodObject<{
2103
+ overall_readiness: z.ZodEnum<["ready", "blocked", "warnings"]>;
2104
+ critical_count: z.ZodNumber;
2105
+ warning_count: z.ZodNumber;
2106
+ findings: z.ZodArray<z.ZodObject<{
2107
+ check_id: z.ZodString;
2108
+ severity: z.ZodEnum<["critical", "warning", "info"]>;
2109
+ message: z.ZodString;
2110
+ location: z.ZodOptional<z.ZodString>;
2111
+ suggestion: z.ZodOptional<z.ZodString>;
2112
+ }, "strict", z.ZodTypeAny, {
2113
+ message: string;
2114
+ severity: "info" | "critical" | "warning";
2115
+ check_id: string;
2116
+ location?: string | undefined;
2117
+ suggestion?: string | undefined;
2118
+ }, {
2119
+ message: string;
2120
+ severity: "info" | "critical" | "warning";
2121
+ check_id: string;
2122
+ location?: string | undefined;
2123
+ suggestion?: string | undefined;
2124
+ }>, "many">;
2125
+ checks: z.ZodObject<{
2126
+ D01_object_defined: z.ZodEnum<["pass", "fail"]>;
2127
+ D02_dependency_complete: z.ZodEnum<["pass", "fail"]>;
2128
+ D03_scenario_covered: z.ZodEnum<["pass", "fail"]>;
2129
+ D04_testnet_topo_order: z.ZodEnum<["pass", "fail"]>;
2130
+ D05_testnet_network: z.ZodEnum<["pass", "fail"]>;
2131
+ D06_testnet_replace: z.ZodEnum<["pass", "fail"]>;
2132
+ D07_permission_index: z.ZodEnum<["pass", "fail"]>;
2133
+ D08_guard_gen_passport: z.ZodEnum<["pass", "fail"]>;
2134
+ D09_machine_node_count: z.ZodEnum<["pass", "fail"]>;
2135
+ D10_substep_coherence: z.ZodEnum<["pass", "fail"]>;
2136
+ D11_mainnet_testnet_match: z.ZodEnum<["pass", "fail"]>;
2137
+ D12_mainnet_network: z.ZodEnum<["pass", "fail"]>;
2138
+ D13_mainnet_replace: z.ZodEnum<["pass", "fail"]>;
2139
+ D14_testnet_verification: z.ZodEnum<["pass", "fail"]>;
2140
+ D15_mainnet_verification: z.ZodEnum<["pass", "fail"]>;
2141
+ D16_no_critical_risk: z.ZodEnum<["pass", "fail"]>;
2142
+ D17_no_high_risk: z.ZodEnum<["pass", "fail"]>;
2143
+ D18_completeness_checklist: z.ZodEnum<["pass", "fail"]>;
2144
+ D19_machine_entry_forward: z.ZodEnum<["pass", "fail"]>;
2145
+ D20_service_compensation_fund: z.ZodEnum<["pass", "fail"]>;
2146
+ }, "strict", z.ZodTypeAny, {
2147
+ D01_object_defined: "pass" | "fail";
2148
+ D02_dependency_complete: "pass" | "fail";
2149
+ D03_scenario_covered: "pass" | "fail";
2150
+ D04_testnet_topo_order: "pass" | "fail";
2151
+ D05_testnet_network: "pass" | "fail";
2152
+ D06_testnet_replace: "pass" | "fail";
2153
+ D07_permission_index: "pass" | "fail";
2154
+ D08_guard_gen_passport: "pass" | "fail";
2155
+ D09_machine_node_count: "pass" | "fail";
2156
+ D10_substep_coherence: "pass" | "fail";
2157
+ D11_mainnet_testnet_match: "pass" | "fail";
2158
+ D12_mainnet_network: "pass" | "fail";
2159
+ D13_mainnet_replace: "pass" | "fail";
2160
+ D14_testnet_verification: "pass" | "fail";
2161
+ D15_mainnet_verification: "pass" | "fail";
2162
+ D16_no_critical_risk: "pass" | "fail";
2163
+ D17_no_high_risk: "pass" | "fail";
2164
+ D18_completeness_checklist: "pass" | "fail";
2165
+ D19_machine_entry_forward: "pass" | "fail";
2166
+ D20_service_compensation_fund: "pass" | "fail";
2167
+ }, {
2168
+ D01_object_defined: "pass" | "fail";
2169
+ D02_dependency_complete: "pass" | "fail";
2170
+ D03_scenario_covered: "pass" | "fail";
2171
+ D04_testnet_topo_order: "pass" | "fail";
2172
+ D05_testnet_network: "pass" | "fail";
2173
+ D06_testnet_replace: "pass" | "fail";
2174
+ D07_permission_index: "pass" | "fail";
2175
+ D08_guard_gen_passport: "pass" | "fail";
2176
+ D09_machine_node_count: "pass" | "fail";
2177
+ D10_substep_coherence: "pass" | "fail";
2178
+ D11_mainnet_testnet_match: "pass" | "fail";
2179
+ D12_mainnet_network: "pass" | "fail";
2180
+ D13_mainnet_replace: "pass" | "fail";
2181
+ D14_testnet_verification: "pass" | "fail";
2182
+ D15_mainnet_verification: "pass" | "fail";
2183
+ D16_no_critical_risk: "pass" | "fail";
2184
+ D17_no_high_risk: "pass" | "fail";
2185
+ D18_completeness_checklist: "pass" | "fail";
2186
+ D19_machine_entry_forward: "pass" | "fail";
2187
+ D20_service_compensation_fund: "pass" | "fail";
2188
+ }>;
2189
+ }, "strict", z.ZodTypeAny, {
2190
+ critical_count: number;
2191
+ findings: {
2192
+ message: string;
2193
+ severity: "info" | "critical" | "warning";
2194
+ check_id: string;
2195
+ location?: string | undefined;
2196
+ suggestion?: string | undefined;
2197
+ }[];
2198
+ checks: {
2199
+ D01_object_defined: "pass" | "fail";
2200
+ D02_dependency_complete: "pass" | "fail";
2201
+ D03_scenario_covered: "pass" | "fail";
2202
+ D04_testnet_topo_order: "pass" | "fail";
2203
+ D05_testnet_network: "pass" | "fail";
2204
+ D06_testnet_replace: "pass" | "fail";
2205
+ D07_permission_index: "pass" | "fail";
2206
+ D08_guard_gen_passport: "pass" | "fail";
2207
+ D09_machine_node_count: "pass" | "fail";
2208
+ D10_substep_coherence: "pass" | "fail";
2209
+ D11_mainnet_testnet_match: "pass" | "fail";
2210
+ D12_mainnet_network: "pass" | "fail";
2211
+ D13_mainnet_replace: "pass" | "fail";
2212
+ D14_testnet_verification: "pass" | "fail";
2213
+ D15_mainnet_verification: "pass" | "fail";
2214
+ D16_no_critical_risk: "pass" | "fail";
2215
+ D17_no_high_risk: "pass" | "fail";
2216
+ D18_completeness_checklist: "pass" | "fail";
2217
+ D19_machine_entry_forward: "pass" | "fail";
2218
+ D20_service_compensation_fund: "pass" | "fail";
2219
+ };
2220
+ overall_readiness: "warnings" | "blocked" | "ready";
2221
+ warning_count: number;
2222
+ }, {
2223
+ critical_count: number;
2224
+ findings: {
2225
+ message: string;
2226
+ severity: "info" | "critical" | "warning";
2227
+ check_id: string;
2228
+ location?: string | undefined;
2229
+ suggestion?: string | undefined;
2230
+ }[];
2231
+ checks: {
2232
+ D01_object_defined: "pass" | "fail";
2233
+ D02_dependency_complete: "pass" | "fail";
2234
+ D03_scenario_covered: "pass" | "fail";
2235
+ D04_testnet_topo_order: "pass" | "fail";
2236
+ D05_testnet_network: "pass" | "fail";
2237
+ D06_testnet_replace: "pass" | "fail";
2238
+ D07_permission_index: "pass" | "fail";
2239
+ D08_guard_gen_passport: "pass" | "fail";
2240
+ D09_machine_node_count: "pass" | "fail";
2241
+ D10_substep_coherence: "pass" | "fail";
2242
+ D11_mainnet_testnet_match: "pass" | "fail";
2243
+ D12_mainnet_network: "pass" | "fail";
2244
+ D13_mainnet_replace: "pass" | "fail";
2245
+ D14_testnet_verification: "pass" | "fail";
2246
+ D15_mainnet_verification: "pass" | "fail";
2247
+ D16_no_critical_risk: "pass" | "fail";
2248
+ D17_no_high_risk: "pass" | "fail";
2249
+ D18_completeness_checklist: "pass" | "fail";
2250
+ D19_machine_entry_forward: "pass" | "fail";
2251
+ D20_service_compensation_fund: "pass" | "fail";
2252
+ };
2253
+ overall_readiness: "warnings" | "blocked" | "ready";
2254
+ warning_count: number;
2255
+ }>;
1458
2256
  }, "strict", z.ZodTypeAny, {
1459
2257
  validation: {
1460
2258
  valid: boolean;
@@ -1468,7 +2266,54 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1468
2266
  };
1469
2267
  markdown: string;
1470
2268
  action: "generate_deployment_doc";
2269
+ detail_level: "summary" | "full" | "detailed";
1471
2270
  saved: boolean;
2271
+ stage_gate: {
2272
+ warnings: string[];
2273
+ stage: number;
2274
+ passed: boolean;
2275
+ checks: {
2276
+ message: string;
2277
+ status: "PASS" | "FAIL" | "WARN";
2278
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2279
+ }[];
2280
+ can_proceed: boolean;
2281
+ blocking_issues: string[];
2282
+ };
2283
+ deployment_scan: {
2284
+ critical_count: number;
2285
+ findings: {
2286
+ message: string;
2287
+ severity: "info" | "critical" | "warning";
2288
+ check_id: string;
2289
+ location?: string | undefined;
2290
+ suggestion?: string | undefined;
2291
+ }[];
2292
+ checks: {
2293
+ D01_object_defined: "pass" | "fail";
2294
+ D02_dependency_complete: "pass" | "fail";
2295
+ D03_scenario_covered: "pass" | "fail";
2296
+ D04_testnet_topo_order: "pass" | "fail";
2297
+ D05_testnet_network: "pass" | "fail";
2298
+ D06_testnet_replace: "pass" | "fail";
2299
+ D07_permission_index: "pass" | "fail";
2300
+ D08_guard_gen_passport: "pass" | "fail";
2301
+ D09_machine_node_count: "pass" | "fail";
2302
+ D10_substep_coherence: "pass" | "fail";
2303
+ D11_mainnet_testnet_match: "pass" | "fail";
2304
+ D12_mainnet_network: "pass" | "fail";
2305
+ D13_mainnet_replace: "pass" | "fail";
2306
+ D14_testnet_verification: "pass" | "fail";
2307
+ D15_mainnet_verification: "pass" | "fail";
2308
+ D16_no_critical_risk: "pass" | "fail";
2309
+ D17_no_high_risk: "pass" | "fail";
2310
+ D18_completeness_checklist: "pass" | "fail";
2311
+ D19_machine_entry_forward: "pass" | "fail";
2312
+ D20_service_compensation_fund: "pass" | "fail";
2313
+ };
2314
+ overall_readiness: "warnings" | "blocked" | "ready";
2315
+ warning_count: number;
2316
+ };
1472
2317
  }, {
1473
2318
  validation: {
1474
2319
  valid: boolean;
@@ -1482,99 +2327,1179 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1482
2327
  };
1483
2328
  markdown: string;
1484
2329
  action: "generate_deployment_doc";
2330
+ detail_level: "summary" | "full" | "detailed";
1485
2331
  saved: boolean;
1486
- }>]>;
1487
- }, "strict", z.ZodTypeAny, {
1488
- result: {
1489
- action: "assemble_context";
1490
- objects: unknown[];
1491
- context_digest: string;
1492
- next_action: string;
1493
- events?: unknown[] | undefined;
1494
- semantic_summary?: unknown;
1495
- embedded_history?: Record<string, unknown> | undefined;
1496
- flywheel_collected?: {
1497
- signature_recorded: boolean;
1498
- proposal_created: boolean;
1499
- proposal_id?: string | undefined;
1500
- } | undefined;
1501
- } | {
1502
- action: "list_projects";
1503
- items: {
1504
- status: "active" | "inactive" | "draft" | "archived";
1505
- name: string;
1506
- description: string | null;
1507
- network: string;
2332
+ stage_gate: {
2333
+ warnings: string[];
2334
+ stage: number;
2335
+ passed: boolean;
2336
+ checks: {
2337
+ message: string;
2338
+ status: "PASS" | "FAIL" | "WARN";
2339
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2340
+ }[];
2341
+ can_proceed: boolean;
2342
+ blocking_issues: string[];
2343
+ };
2344
+ deployment_scan: {
2345
+ critical_count: number;
2346
+ findings: {
2347
+ message: string;
2348
+ severity: "info" | "critical" | "warning";
2349
+ check_id: string;
2350
+ location?: string | undefined;
2351
+ suggestion?: string | undefined;
2352
+ }[];
2353
+ checks: {
2354
+ D01_object_defined: "pass" | "fail";
2355
+ D02_dependency_complete: "pass" | "fail";
2356
+ D03_scenario_covered: "pass" | "fail";
2357
+ D04_testnet_topo_order: "pass" | "fail";
2358
+ D05_testnet_network: "pass" | "fail";
2359
+ D06_testnet_replace: "pass" | "fail";
2360
+ D07_permission_index: "pass" | "fail";
2361
+ D08_guard_gen_passport: "pass" | "fail";
2362
+ D09_machine_node_count: "pass" | "fail";
2363
+ D10_substep_coherence: "pass" | "fail";
2364
+ D11_mainnet_testnet_match: "pass" | "fail";
2365
+ D12_mainnet_network: "pass" | "fail";
2366
+ D13_mainnet_replace: "pass" | "fail";
2367
+ D14_testnet_verification: "pass" | "fail";
2368
+ D15_mainnet_verification: "pass" | "fail";
2369
+ D16_no_critical_risk: "pass" | "fail";
2370
+ D17_no_high_risk: "pass" | "fail";
2371
+ D18_completeness_checklist: "pass" | "fail";
2372
+ D19_machine_entry_forward: "pass" | "fail";
2373
+ D20_service_compensation_fund: "pass" | "fail";
2374
+ };
2375
+ overall_readiness: "warnings" | "blocked" | "ready";
2376
+ warning_count: number;
2377
+ };
2378
+ }>, z.ZodObject<{
2379
+ action: z.ZodLiteral<"pre_evaluate_check">;
2380
+ ready: z.ZodBoolean;
2381
+ missing: z.ZodArray<z.ZodObject<{
2382
+ id: z.ZodString;
2383
+ description: z.ZodString;
2384
+ impact: z.ZodString;
2385
+ }, "strict", z.ZodTypeAny, {
2386
+ description: string;
1508
2387
  id: string;
1509
- createdAt: number;
1510
- updatedAt: number;
1511
- industry: string | null;
1512
- metadata: Record<string, unknown> | null;
1513
- prefix: string;
1514
- perspective: "consumer" | "producer" | "both";
1515
- labels: string[] | null;
1516
- currentVersion: string | null;
1517
- serviceAddress: string | null;
1518
- defaultAccount: string | null;
1519
- objectCount: number;
1520
- evaluationCount: number;
1521
- objectTypes: string[];
2388
+ impact: string;
2389
+ }, {
2390
+ description: string;
2391
+ id: string;
2392
+ impact: string;
2393
+ }>, "many">;
2394
+ warnings: z.ZodArray<z.ZodObject<{
2395
+ id: z.ZodString;
2396
+ description: z.ZodString;
2397
+ impact: z.ZodString;
2398
+ }, "strict", z.ZodTypeAny, {
2399
+ description: string;
2400
+ id: string;
2401
+ impact: string;
2402
+ }, {
2403
+ description: string;
2404
+ id: string;
2405
+ impact: string;
2406
+ }>, "many">;
2407
+ summary: z.ZodString;
2408
+ counts: z.ZodObject<{
2409
+ objects: z.ZodNumber;
2410
+ edges: z.ZodNumber;
2411
+ uncached: z.ZodNumber;
2412
+ stale: z.ZodNumber;
2413
+ dangling_edges: z.ZodNumber;
2414
+ drafts: z.ZodNumber;
2415
+ }, "strict", z.ZodTypeAny, {
2416
+ objects: number;
2417
+ edges: number;
2418
+ uncached: number;
2419
+ stale: number;
2420
+ dangling_edges: number;
2421
+ drafts: number;
2422
+ }, {
2423
+ objects: number;
2424
+ edges: number;
2425
+ uncached: number;
2426
+ stale: number;
2427
+ dangling_edges: number;
2428
+ drafts: number;
2429
+ }>;
2430
+ }, "strict", z.ZodTypeAny, {
2431
+ summary: string;
2432
+ action: "pre_evaluate_check";
2433
+ warnings: {
2434
+ description: string;
2435
+ id: string;
2436
+ impact: string;
1522
2437
  }[];
1523
- total: number;
1524
- } | {
1525
- action: "create_project";
1526
- project: {
1527
- status: "active" | "inactive" | "draft" | "archived";
1528
- name: string;
1529
- description: string | null;
1530
- network: string;
2438
+ ready: boolean;
2439
+ missing: {
2440
+ description: string;
1531
2441
  id: string;
1532
- createdAt: number;
1533
- updatedAt: number;
1534
- industry: string | null;
1535
- metadata: Record<string, unknown> | null;
1536
- prefix: string;
1537
- perspective: "consumer" | "producer" | "both";
1538
- labels: string[] | null;
1539
- currentVersion: string | null;
1540
- serviceAddress: string | null;
1541
- defaultAccount: string | null;
2442
+ impact: string;
2443
+ }[];
2444
+ counts: {
2445
+ objects: number;
2446
+ edges: number;
2447
+ uncached: number;
2448
+ stale: number;
2449
+ dangling_edges: number;
2450
+ drafts: number;
1542
2451
  };
1543
- } | {
1544
- action: "create_project_from_onchain";
1545
- project: {
1546
- status: "active" | "inactive" | "draft" | "archived";
1547
- name: string;
1548
- description: string | null;
1549
- network: string;
2452
+ }, {
2453
+ summary: string;
2454
+ action: "pre_evaluate_check";
2455
+ warnings: {
2456
+ description: string;
1550
2457
  id: string;
1551
- createdAt: number;
1552
- updatedAt: number;
1553
- industry: string | null;
1554
- metadata: Record<string, unknown> | null;
1555
- prefix: string;
1556
- perspective: "consumer" | "producer" | "both";
1557
- labels: string[] | null;
1558
- currentVersion: string | null;
1559
- serviceAddress: string | null;
1560
- defaultAccount: string | null;
1561
- };
1562
- objects: {
2458
+ impact: string;
2459
+ }[];
2460
+ ready: boolean;
2461
+ missing: {
2462
+ description: string;
1563
2463
  id: string;
1564
- role: "reference" | "dependency" | "core";
1565
- objectType: string | null;
1566
- tags: string[] | null;
1567
- projectId: string;
1568
- objectAddress: string;
1569
- objectName: string | null;
1570
- addedAt: number;
1571
- metadata: Record<string, unknown> | null;
2464
+ impact: string;
1572
2465
  }[];
1573
- graphEdgeCount: number;
1574
- } | {
1575
- action: "update_project";
1576
- project: {
1577
- status: "active" | "inactive" | "draft" | "archived";
2466
+ counts: {
2467
+ objects: number;
2468
+ edges: number;
2469
+ uncached: number;
2470
+ stale: number;
2471
+ dangling_edges: number;
2472
+ drafts: number;
2473
+ };
2474
+ }>, z.ZodObject<{
2475
+ action: z.ZodLiteral<"verify_deployment">;
2476
+ verifiedCount: z.ZodNumber;
2477
+ matched: z.ZodNumber;
2478
+ mismatched: z.ZodNumber;
2479
+ missing: z.ZodNumber;
2480
+ unreachable: z.ZodNumber;
2481
+ results: z.ZodArray<z.ZodObject<{
2482
+ objectAddress: z.ZodString;
2483
+ objectName: z.ZodNullable<z.ZodString>;
2484
+ objectType: z.ZodNullable<z.ZodString>;
2485
+ status: z.ZodEnum<["matched", "mismatched", "missing", "unreachable"]>;
2486
+ differences: z.ZodOptional<z.ZodArray<z.ZodObject<{
2487
+ field: z.ZodString;
2488
+ sqlite: z.ZodUnknown;
2489
+ onchain: z.ZodUnknown;
2490
+ }, "strict", z.ZodTypeAny, {
2491
+ field: string;
2492
+ sqlite?: unknown;
2493
+ onchain?: unknown;
2494
+ }, {
2495
+ field: string;
2496
+ sqlite?: unknown;
2497
+ onchain?: unknown;
2498
+ }>, "many">>;
2499
+ bindings: z.ZodOptional<z.ZodObject<{
2500
+ machine: z.ZodBoolean;
2501
+ permission: z.ZodBoolean;
2502
+ buy_guard: z.ZodBoolean;
2503
+ order_allocators: z.ZodBoolean;
2504
+ }, "strict", z.ZodTypeAny, {
2505
+ permission: boolean;
2506
+ buy_guard: boolean;
2507
+ machine: boolean;
2508
+ order_allocators: boolean;
2509
+ }, {
2510
+ permission: boolean;
2511
+ buy_guard: boolean;
2512
+ machine: boolean;
2513
+ order_allocators: boolean;
2514
+ }>>;
2515
+ error: z.ZodOptional<z.ZodString>;
2516
+ }, "strict", z.ZodTypeAny, {
2517
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2518
+ objectType: string | null;
2519
+ objectAddress: string;
2520
+ objectName: string | null;
2521
+ error?: string | undefined;
2522
+ bindings?: {
2523
+ permission: boolean;
2524
+ buy_guard: boolean;
2525
+ machine: boolean;
2526
+ order_allocators: boolean;
2527
+ } | undefined;
2528
+ differences?: {
2529
+ field: string;
2530
+ sqlite?: unknown;
2531
+ onchain?: unknown;
2532
+ }[] | undefined;
2533
+ }, {
2534
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2535
+ objectType: string | null;
2536
+ objectAddress: string;
2537
+ objectName: string | null;
2538
+ error?: string | undefined;
2539
+ bindings?: {
2540
+ permission: boolean;
2541
+ buy_guard: boolean;
2542
+ machine: boolean;
2543
+ order_allocators: boolean;
2544
+ } | undefined;
2545
+ differences?: {
2546
+ field: string;
2547
+ sqlite?: unknown;
2548
+ onchain?: unknown;
2549
+ }[] | undefined;
2550
+ }>, "many">;
2551
+ summary: z.ZodString;
2552
+ }, "strict", z.ZodTypeAny, {
2553
+ summary: string;
2554
+ action: "verify_deployment";
2555
+ missing: number;
2556
+ verifiedCount: number;
2557
+ matched: number;
2558
+ mismatched: number;
2559
+ unreachable: number;
2560
+ results: {
2561
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2562
+ objectType: string | null;
2563
+ objectAddress: string;
2564
+ objectName: string | null;
2565
+ error?: string | undefined;
2566
+ bindings?: {
2567
+ permission: boolean;
2568
+ buy_guard: boolean;
2569
+ machine: boolean;
2570
+ order_allocators: boolean;
2571
+ } | undefined;
2572
+ differences?: {
2573
+ field: string;
2574
+ sqlite?: unknown;
2575
+ onchain?: unknown;
2576
+ }[] | undefined;
2577
+ }[];
2578
+ }, {
2579
+ summary: string;
2580
+ action: "verify_deployment";
2581
+ missing: number;
2582
+ verifiedCount: number;
2583
+ matched: number;
2584
+ mismatched: number;
2585
+ unreachable: number;
2586
+ results: {
2587
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2588
+ objectType: string | null;
2589
+ objectAddress: string;
2590
+ objectName: string | null;
2591
+ error?: string | undefined;
2592
+ bindings?: {
2593
+ permission: boolean;
2594
+ buy_guard: boolean;
2595
+ machine: boolean;
2596
+ order_allocators: boolean;
2597
+ } | undefined;
2598
+ differences?: {
2599
+ field: string;
2600
+ sqlite?: unknown;
2601
+ onchain?: unknown;
2602
+ }[] | undefined;
2603
+ }[];
2604
+ }>, z.ZodObject<{
2605
+ action: z.ZodLiteral<"get_machine_graph">;
2606
+ machineAddress: z.ZodString;
2607
+ machineName: z.ZodNullable<z.ZodString>;
2608
+ nodes: z.ZodArray<z.ZodObject<{
2609
+ name: z.ZodString;
2610
+ description: z.ZodNullable<z.ZodString>;
2611
+ }, "strict", z.ZodTypeAny, {
2612
+ name: string;
2613
+ description: string | null;
2614
+ }, {
2615
+ name: string;
2616
+ description: string | null;
2617
+ }>, "many">;
2618
+ edges: z.ZodArray<z.ZodObject<{
2619
+ from: z.ZodString;
2620
+ to: z.ZodString;
2621
+ threshold: z.ZodNumber;
2622
+ forwards: z.ZodArray<z.ZodObject<{
2623
+ name: z.ZodString;
2624
+ weight: z.ZodNumber;
2625
+ guard: z.ZodNullable<z.ZodString>;
2626
+ named_operator: z.ZodNullable<z.ZodString>;
2627
+ permission_index: z.ZodNullable<z.ZodNumber>;
2628
+ }, "strict", z.ZodTypeAny, {
2629
+ name: string;
2630
+ guard: string | null;
2631
+ weight: number;
2632
+ permission_index: number | null;
2633
+ named_operator: string | null;
2634
+ }, {
2635
+ name: string;
2636
+ guard: string | null;
2637
+ weight: number;
2638
+ permission_index: number | null;
2639
+ named_operator: string | null;
2640
+ }>, "many">;
2641
+ }, "strict", z.ZodTypeAny, {
2642
+ from: string;
2643
+ to: string;
2644
+ forwards: {
2645
+ name: string;
2646
+ guard: string | null;
2647
+ weight: number;
2648
+ permission_index: number | null;
2649
+ named_operator: string | null;
2650
+ }[];
2651
+ threshold: number;
2652
+ }, {
2653
+ from: string;
2654
+ to: string;
2655
+ forwards: {
2656
+ name: string;
2657
+ guard: string | null;
2658
+ weight: number;
2659
+ permission_index: number | null;
2660
+ named_operator: string | null;
2661
+ }[];
2662
+ threshold: number;
2663
+ }>, "many">;
2664
+ published: z.ZodNullable<z.ZodBoolean>;
2665
+ paused: z.ZodNullable<z.ZodBoolean>;
2666
+ mermaid: z.ZodString;
2667
+ tree_outline: z.ZodString;
2668
+ ascii_art: z.ZodString;
2669
+ markmap: z.ZodString;
2670
+ }, "strict", z.ZodTypeAny, {
2671
+ action: "get_machine_graph";
2672
+ published: boolean | null;
2673
+ nodes: {
2674
+ name: string;
2675
+ description: string | null;
2676
+ }[];
2677
+ paused: boolean | null;
2678
+ machineName: string | null;
2679
+ machineAddress: string;
2680
+ tree_outline: string;
2681
+ edges: {
2682
+ from: string;
2683
+ to: string;
2684
+ forwards: {
2685
+ name: string;
2686
+ guard: string | null;
2687
+ weight: number;
2688
+ permission_index: number | null;
2689
+ named_operator: string | null;
2690
+ }[];
2691
+ threshold: number;
2692
+ }[];
2693
+ mermaid: string;
2694
+ ascii_art: string;
2695
+ markmap: string;
2696
+ }, {
2697
+ action: "get_machine_graph";
2698
+ published: boolean | null;
2699
+ nodes: {
2700
+ name: string;
2701
+ description: string | null;
2702
+ }[];
2703
+ paused: boolean | null;
2704
+ machineName: string | null;
2705
+ machineAddress: string;
2706
+ tree_outline: string;
2707
+ edges: {
2708
+ from: string;
2709
+ to: string;
2710
+ forwards: {
2711
+ name: string;
2712
+ guard: string | null;
2713
+ weight: number;
2714
+ permission_index: number | null;
2715
+ named_operator: string | null;
2716
+ }[];
2717
+ threshold: number;
2718
+ }[];
2719
+ mermaid: string;
2720
+ ascii_art: string;
2721
+ markmap: string;
2722
+ }>, z.ZodObject<{
2723
+ action: z.ZodLiteral<"get_guard_graph">;
2724
+ guardAddress: z.ZodString;
2725
+ guardName: z.ZodNullable<z.ZodString>;
2726
+ root: z.ZodType<any, z.ZodTypeDef, any>;
2727
+ table: z.ZodArray<z.ZodObject<{
2728
+ identifier: z.ZodNumber;
2729
+ b_submission: z.ZodBoolean;
2730
+ value_type: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2731
+ value: z.ZodOptional<z.ZodUnknown>;
2732
+ name: z.ZodOptional<z.ZodString>;
2733
+ }, "strict", z.ZodTypeAny, {
2734
+ identifier: number;
2735
+ b_submission: boolean;
2736
+ value_type: string | number;
2737
+ value?: unknown;
2738
+ name?: string | undefined;
2739
+ }, {
2740
+ identifier: number;
2741
+ b_submission: boolean;
2742
+ value_type: string | number;
2743
+ value?: unknown;
2744
+ name?: string | undefined;
2745
+ }>, "many">;
2746
+ rely: z.ZodNullable<z.ZodObject<{
2747
+ guards: z.ZodArray<z.ZodString, "many">;
2748
+ logic_or: z.ZodOptional<z.ZodBoolean>;
2749
+ }, "strip", z.ZodTypeAny, {
2750
+ guards: string[];
2751
+ logic_or?: boolean | undefined;
2752
+ }, {
2753
+ guards: string[];
2754
+ logic_or?: boolean | undefined;
2755
+ }>>;
2756
+ immutable: z.ZodNullable<z.ZodBoolean>;
2757
+ mermaid: z.ZodString;
2758
+ tree_outline: z.ZodString;
2759
+ ascii_art: z.ZodString;
2760
+ markmap: z.ZodString;
2761
+ }, "strict", z.ZodTypeAny, {
2762
+ immutable: boolean | null;
2763
+ action: "get_guard_graph";
2764
+ table: {
2765
+ identifier: number;
2766
+ b_submission: boolean;
2767
+ value_type: string | number;
2768
+ value?: unknown;
2769
+ name?: string | undefined;
2770
+ }[];
2771
+ rely: {
2772
+ guards: string[];
2773
+ logic_or?: boolean | undefined;
2774
+ } | null;
2775
+ guardAddress: string;
2776
+ tree_outline: string;
2777
+ mermaid: string;
2778
+ ascii_art: string;
2779
+ markmap: string;
2780
+ guardName: string | null;
2781
+ root?: any;
2782
+ }, {
2783
+ immutable: boolean | null;
2784
+ action: "get_guard_graph";
2785
+ table: {
2786
+ identifier: number;
2787
+ b_submission: boolean;
2788
+ value_type: string | number;
2789
+ value?: unknown;
2790
+ name?: string | undefined;
2791
+ }[];
2792
+ rely: {
2793
+ guards: string[];
2794
+ logic_or?: boolean | undefined;
2795
+ } | null;
2796
+ guardAddress: string;
2797
+ tree_outline: string;
2798
+ mermaid: string;
2799
+ ascii_art: string;
2800
+ markmap: string;
2801
+ guardName: string | null;
2802
+ root?: any;
2803
+ }>, z.ZodObject<{
2804
+ action: z.ZodLiteral<"plan_object_edit">;
2805
+ plan_id: z.ZodString;
2806
+ object_kind: z.ZodEnum<["machine", "guard"]>;
2807
+ object_address: z.ZodString;
2808
+ object_name: z.ZodNullable<z.ZodString>;
2809
+ expected_hash: z.ZodString;
2810
+ diff: z.ZodObject<{
2811
+ added: z.ZodArray<z.ZodString, "many">;
2812
+ removed: z.ZodArray<z.ZodString, "many">;
2813
+ modified: z.ZodArray<z.ZodString, "many">;
2814
+ summary: z.ZodString;
2815
+ }, "strip", z.ZodTypeAny, {
2816
+ summary: string;
2817
+ modified: string[];
2818
+ removed: string[];
2819
+ added: string[];
2820
+ }, {
2821
+ summary: string;
2822
+ modified: string[];
2823
+ removed: string[];
2824
+ added: string[];
2825
+ }>;
2826
+ warnings: z.ZodArray<z.ZodObject<{
2827
+ id: z.ZodString;
2828
+ description: z.ZodString;
2829
+ impact: z.ZodString;
2830
+ }, "strip", z.ZodTypeAny, {
2831
+ description: string;
2832
+ id: string;
2833
+ impact: string;
2834
+ }, {
2835
+ description: string;
2836
+ id: string;
2837
+ impact: string;
2838
+ }>, "many">;
2839
+ blocking_errors: z.ZodArray<z.ZodObject<{
2840
+ id: z.ZodString;
2841
+ description: z.ZodString;
2842
+ impact: z.ZodString;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ description: string;
2845
+ id: string;
2846
+ impact: string;
2847
+ }, {
2848
+ description: string;
2849
+ id: string;
2850
+ impact: string;
2851
+ }>, "many">;
2852
+ can_apply: z.ZodBoolean;
2853
+ prepared_call: z.ZodNullable<z.ZodUnknown>;
2854
+ expires_at: z.ZodString;
2855
+ summary: z.ZodString;
2856
+ }, "strict", z.ZodTypeAny, {
2857
+ summary: string;
2858
+ action: "plan_object_edit";
2859
+ warnings: {
2860
+ description: string;
2861
+ id: string;
2862
+ impact: string;
2863
+ }[];
2864
+ object_address: string;
2865
+ object_kind: "guard" | "machine";
2866
+ plan_id: string;
2867
+ expected_hash: string;
2868
+ object_name: string | null;
2869
+ diff: {
2870
+ summary: string;
2871
+ modified: string[];
2872
+ removed: string[];
2873
+ added: string[];
2874
+ };
2875
+ blocking_errors: {
2876
+ description: string;
2877
+ id: string;
2878
+ impact: string;
2879
+ }[];
2880
+ can_apply: boolean;
2881
+ expires_at: string;
2882
+ prepared_call?: unknown;
2883
+ }, {
2884
+ summary: string;
2885
+ action: "plan_object_edit";
2886
+ warnings: {
2887
+ description: string;
2888
+ id: string;
2889
+ impact: string;
2890
+ }[];
2891
+ object_address: string;
2892
+ object_kind: "guard" | "machine";
2893
+ plan_id: string;
2894
+ expected_hash: string;
2895
+ object_name: string | null;
2896
+ diff: {
2897
+ summary: string;
2898
+ modified: string[];
2899
+ removed: string[];
2900
+ added: string[];
2901
+ };
2902
+ blocking_errors: {
2903
+ description: string;
2904
+ id: string;
2905
+ impact: string;
2906
+ }[];
2907
+ can_apply: boolean;
2908
+ expires_at: string;
2909
+ prepared_call?: unknown;
2910
+ }>, z.ZodObject<{
2911
+ action: z.ZodLiteral<"apply_object_edit">;
2912
+ plan_id: z.ZodString;
2913
+ applied: z.ZodBoolean;
2914
+ hash_match: z.ZodBoolean;
2915
+ prepared_call: z.ZodNullable<z.ZodUnknown>;
2916
+ error: z.ZodNullable<z.ZodString>;
2917
+ next_step: z.ZodString;
2918
+ }, "strict", z.ZodTypeAny, {
2919
+ error: string | null;
2920
+ action: "apply_object_edit";
2921
+ applied: boolean;
2922
+ plan_id: string;
2923
+ hash_match: boolean;
2924
+ next_step: string;
2925
+ prepared_call?: unknown;
2926
+ }, {
2927
+ error: string | null;
2928
+ action: "apply_object_edit";
2929
+ applied: boolean;
2930
+ plan_id: string;
2931
+ hash_match: boolean;
2932
+ next_step: string;
2933
+ prepared_call?: unknown;
2934
+ }>, z.ZodObject<{
2935
+ action: z.ZodLiteral<"patch_machine_nodes">;
2936
+ machine_address: z.ZodString;
2937
+ machine_name: z.ZodNullable<z.ZodString>;
2938
+ operations_applied: z.ZodNumber;
2939
+ operations_failed: z.ZodArray<z.ZodObject<{
2940
+ operation: z.ZodString;
2941
+ error: z.ZodString;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ error: string;
2944
+ operation: string;
2945
+ }, {
2946
+ error: string;
2947
+ operation: string;
2948
+ }>, "many">;
2949
+ patched_nodes: z.ZodArray<z.ZodUnknown, "many">;
2950
+ patched_edges: z.ZodArray<z.ZodUnknown, "many">;
2951
+ diff: z.ZodObject<{
2952
+ added: z.ZodArray<z.ZodString, "many">;
2953
+ removed: z.ZodArray<z.ZodString, "many">;
2954
+ modified: z.ZodArray<z.ZodString, "many">;
2955
+ summary: z.ZodString;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ summary: string;
2958
+ modified: string[];
2959
+ removed: string[];
2960
+ added: string[];
2961
+ }, {
2962
+ summary: string;
2963
+ modified: string[];
2964
+ removed: string[];
2965
+ added: string[];
2966
+ }>;
2967
+ warnings: z.ZodArray<z.ZodObject<{
2968
+ id: z.ZodString;
2969
+ description: z.ZodString;
2970
+ impact: z.ZodString;
2971
+ }, "strip", z.ZodTypeAny, {
2972
+ description: string;
2973
+ id: string;
2974
+ impact: string;
2975
+ }, {
2976
+ description: string;
2977
+ id: string;
2978
+ impact: string;
2979
+ }>, "many">;
2980
+ blocking_errors: z.ZodArray<z.ZodObject<{
2981
+ id: z.ZodString;
2982
+ description: z.ZodString;
2983
+ impact: z.ZodString;
2984
+ }, "strip", z.ZodTypeAny, {
2985
+ description: string;
2986
+ id: string;
2987
+ impact: string;
2988
+ }, {
2989
+ description: string;
2990
+ id: string;
2991
+ impact: string;
2992
+ }>, "many">;
2993
+ can_apply: z.ZodBoolean;
2994
+ prepared_call: z.ZodNullable<z.ZodUnknown>;
2995
+ summary: z.ZodString;
2996
+ }, "strict", z.ZodTypeAny, {
2997
+ summary: string;
2998
+ action: "patch_machine_nodes";
2999
+ warnings: {
3000
+ description: string;
3001
+ id: string;
3002
+ impact: string;
3003
+ }[];
3004
+ machine_address: string;
3005
+ diff: {
3006
+ summary: string;
3007
+ modified: string[];
3008
+ removed: string[];
3009
+ added: string[];
3010
+ };
3011
+ blocking_errors: {
3012
+ description: string;
3013
+ id: string;
3014
+ impact: string;
3015
+ }[];
3016
+ can_apply: boolean;
3017
+ machine_name: string | null;
3018
+ operations_applied: number;
3019
+ operations_failed: {
3020
+ error: string;
3021
+ operation: string;
3022
+ }[];
3023
+ patched_nodes: unknown[];
3024
+ patched_edges: unknown[];
3025
+ prepared_call?: unknown;
3026
+ }, {
3027
+ summary: string;
3028
+ action: "patch_machine_nodes";
3029
+ warnings: {
3030
+ description: string;
3031
+ id: string;
3032
+ impact: string;
3033
+ }[];
3034
+ machine_address: string;
3035
+ diff: {
3036
+ summary: string;
3037
+ modified: string[];
3038
+ removed: string[];
3039
+ added: string[];
3040
+ };
3041
+ blocking_errors: {
3042
+ description: string;
3043
+ id: string;
3044
+ impact: string;
3045
+ }[];
3046
+ can_apply: boolean;
3047
+ machine_name: string | null;
3048
+ operations_applied: number;
3049
+ operations_failed: {
3050
+ error: string;
3051
+ operation: string;
3052
+ }[];
3053
+ patched_nodes: unknown[];
3054
+ patched_edges: unknown[];
3055
+ prepared_call?: unknown;
3056
+ }>, z.ZodObject<{
3057
+ action: z.ZodLiteral<"patch_guard_tree">;
3058
+ guard_address: z.ZodString;
3059
+ guard_name: z.ZodNullable<z.ZodString>;
3060
+ operations_applied: z.ZodNumber;
3061
+ operations_failed: z.ZodArray<z.ZodObject<{
3062
+ operation: z.ZodString;
3063
+ error: z.ZodString;
3064
+ }, "strip", z.ZodTypeAny, {
3065
+ error: string;
3066
+ operation: string;
3067
+ }, {
3068
+ error: string;
3069
+ operation: string;
3070
+ }>, "many">;
3071
+ patched_root: z.ZodUnknown;
3072
+ patched_table: z.ZodArray<z.ZodUnknown, "many">;
3073
+ patched_rely: z.ZodNullable<z.ZodUnknown>;
3074
+ diff: z.ZodObject<{
3075
+ added: z.ZodArray<z.ZodString, "many">;
3076
+ removed: z.ZodArray<z.ZodString, "many">;
3077
+ modified: z.ZodArray<z.ZodString, "many">;
3078
+ summary: z.ZodString;
3079
+ }, "strip", z.ZodTypeAny, {
3080
+ summary: string;
3081
+ modified: string[];
3082
+ removed: string[];
3083
+ added: string[];
3084
+ }, {
3085
+ summary: string;
3086
+ modified: string[];
3087
+ removed: string[];
3088
+ added: string[];
3089
+ }>;
3090
+ warnings: z.ZodArray<z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ description: z.ZodString;
3093
+ impact: z.ZodString;
3094
+ }, "strip", z.ZodTypeAny, {
3095
+ description: string;
3096
+ id: string;
3097
+ impact: string;
3098
+ }, {
3099
+ description: string;
3100
+ id: string;
3101
+ impact: string;
3102
+ }>, "many">;
3103
+ blocking_errors: z.ZodArray<z.ZodObject<{
3104
+ id: z.ZodString;
3105
+ description: z.ZodString;
3106
+ impact: z.ZodString;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ description: string;
3109
+ id: string;
3110
+ impact: string;
3111
+ }, {
3112
+ description: string;
3113
+ id: string;
3114
+ impact: string;
3115
+ }>, "many">;
3116
+ can_apply: z.ZodBoolean;
3117
+ prepared_call: z.ZodNullable<z.ZodUnknown>;
3118
+ summary: z.ZodString;
3119
+ }, "strict", z.ZodTypeAny, {
3120
+ summary: string;
3121
+ action: "patch_guard_tree";
3122
+ warnings: {
3123
+ description: string;
3124
+ id: string;
3125
+ impact: string;
3126
+ }[];
3127
+ guard_address: string;
3128
+ diff: {
3129
+ summary: string;
3130
+ modified: string[];
3131
+ removed: string[];
3132
+ added: string[];
3133
+ };
3134
+ blocking_errors: {
3135
+ description: string;
3136
+ id: string;
3137
+ impact: string;
3138
+ }[];
3139
+ can_apply: boolean;
3140
+ operations_applied: number;
3141
+ operations_failed: {
3142
+ error: string;
3143
+ operation: string;
3144
+ }[];
3145
+ guard_name: string | null;
3146
+ patched_table: unknown[];
3147
+ prepared_call?: unknown;
3148
+ patched_root?: unknown;
3149
+ patched_rely?: unknown;
3150
+ }, {
3151
+ summary: string;
3152
+ action: "patch_guard_tree";
3153
+ warnings: {
3154
+ description: string;
3155
+ id: string;
3156
+ impact: string;
3157
+ }[];
3158
+ guard_address: string;
3159
+ diff: {
3160
+ summary: string;
3161
+ modified: string[];
3162
+ removed: string[];
3163
+ added: string[];
3164
+ };
3165
+ blocking_errors: {
3166
+ description: string;
3167
+ id: string;
3168
+ impact: string;
3169
+ }[];
3170
+ can_apply: boolean;
3171
+ operations_applied: number;
3172
+ operations_failed: {
3173
+ error: string;
3174
+ operation: string;
3175
+ }[];
3176
+ guard_name: string | null;
3177
+ patched_table: unknown[];
3178
+ prepared_call?: unknown;
3179
+ patched_root?: unknown;
3180
+ patched_rely?: unknown;
3181
+ }>, z.ZodObject<{
3182
+ action: z.ZodLiteral<"clone_project_to_network">;
3183
+ new_project_id: z.ZodString;
3184
+ new_prefix: z.ZodString;
3185
+ target_network: z.ZodEnum<["testnet", "mainnet"]>;
3186
+ cloned_objects_count: z.ZodNumber;
3187
+ message: z.ZodString;
3188
+ next_steps: z.ZodString;
3189
+ }, "strict", z.ZodTypeAny, {
3190
+ message: string;
3191
+ action: "clone_project_to_network";
3192
+ target_network: "testnet" | "mainnet";
3193
+ new_project_id: string;
3194
+ new_prefix: string;
3195
+ cloned_objects_count: number;
3196
+ next_steps: string;
3197
+ }, {
3198
+ message: string;
3199
+ action: "clone_project_to_network";
3200
+ target_network: "testnet" | "mainnet";
3201
+ new_project_id: string;
3202
+ new_prefix: string;
3203
+ cloned_objects_count: number;
3204
+ next_steps: string;
3205
+ }>, z.ZodObject<{
3206
+ action: z.ZodLiteral<"migrate_network">;
3207
+ new_project_id: z.ZodString;
3208
+ new_prefix: z.ZodString;
3209
+ target_network: z.ZodEnum<["testnet", "mainnet"]>;
3210
+ cloned_objects_count: z.ZodNumber;
3211
+ message: z.ZodString;
3212
+ next_steps: z.ZodString;
3213
+ }, "strict", z.ZodTypeAny, {
3214
+ message: string;
3215
+ action: "migrate_network";
3216
+ target_network: "testnet" | "mainnet";
3217
+ new_project_id: string;
3218
+ new_prefix: string;
3219
+ cloned_objects_count: number;
3220
+ next_steps: string;
3221
+ }, {
3222
+ message: string;
3223
+ action: "migrate_network";
3224
+ target_network: "testnet" | "mainnet";
3225
+ new_project_id: string;
3226
+ new_prefix: string;
3227
+ cloned_objects_count: number;
3228
+ next_steps: string;
3229
+ }>, z.ZodObject<{
3230
+ action: z.ZodLiteral<"migrate_to_mainnet">;
3231
+ migration_status: z.ZodString;
3232
+ source_project: z.ZodObject<{
3233
+ prefix: z.ZodString;
3234
+ network: z.ZodString;
3235
+ preserved: z.ZodBoolean;
3236
+ }, "strict", z.ZodTypeAny, {
3237
+ network: string;
3238
+ prefix: string;
3239
+ preserved: boolean;
3240
+ }, {
3241
+ network: string;
3242
+ prefix: string;
3243
+ preserved: boolean;
3244
+ }>;
3245
+ target_project: z.ZodObject<{
3246
+ prefix: z.ZodString;
3247
+ project_id: z.ZodString;
3248
+ network: z.ZodString;
3249
+ cloned_objects_count: z.ZodNumber;
3250
+ }, "strict", z.ZodTypeAny, {
3251
+ network: string;
3252
+ project_id: string;
3253
+ prefix: string;
3254
+ cloned_objects_count: number;
3255
+ }, {
3256
+ network: string;
3257
+ project_id: string;
3258
+ prefix: string;
3259
+ cloned_objects_count: number;
3260
+ }>;
3261
+ key_principle: z.ZodString;
3262
+ migration_plan: z.ZodArray<z.ZodObject<{
3263
+ step: z.ZodNumber;
3264
+ status: z.ZodEnum<["completed", "pending_user_action"]>;
3265
+ action: z.ZodString;
3266
+ description: z.ZodString;
3267
+ result: z.ZodOptional<z.ZodString>;
3268
+ deployment_plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
3269
+ order: z.ZodNumber;
3270
+ object_type: z.ZodString;
3271
+ object_name: z.ZodString;
3272
+ operation_type: z.ZodString;
3273
+ localmark_name: z.ZodString;
3274
+ note: z.ZodString;
3275
+ }, "strip", z.ZodTypeAny, {
3276
+ object_type: string;
3277
+ order: number;
3278
+ note: string;
3279
+ operation_type: string;
3280
+ object_name: string;
3281
+ localmark_name: string;
3282
+ }, {
3283
+ object_type: string;
3284
+ order: number;
3285
+ note: string;
3286
+ operation_type: string;
3287
+ object_name: string;
3288
+ localmark_name: string;
3289
+ }>, "many">>;
3290
+ names_to_register: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3291
+ critical_note: z.ZodOptional<z.ZodString>;
3292
+ }, "strict", z.ZodTypeAny, {
3293
+ status: "completed" | "pending_user_action";
3294
+ description: string;
3295
+ action: string;
3296
+ step: number;
3297
+ result?: string | undefined;
3298
+ deployment_plan?: {
3299
+ object_type: string;
3300
+ order: number;
3301
+ note: string;
3302
+ operation_type: string;
3303
+ object_name: string;
3304
+ localmark_name: string;
3305
+ }[] | undefined;
3306
+ names_to_register?: string[] | undefined;
3307
+ critical_note?: string | undefined;
3308
+ }, {
3309
+ status: "completed" | "pending_user_action";
3310
+ description: string;
3311
+ action: string;
3312
+ step: number;
3313
+ result?: string | undefined;
3314
+ deployment_plan?: {
3315
+ object_type: string;
3316
+ order: number;
3317
+ note: string;
3318
+ operation_type: string;
3319
+ object_name: string;
3320
+ localmark_name: string;
3321
+ }[] | undefined;
3322
+ names_to_register?: string[] | undefined;
3323
+ critical_note?: string | undefined;
3324
+ }>, "many">;
3325
+ summary: z.ZodString;
3326
+ }, "strict", z.ZodTypeAny, {
3327
+ summary: string;
3328
+ action: "migrate_to_mainnet";
3329
+ migration_status: string;
3330
+ source_project: {
3331
+ network: string;
3332
+ prefix: string;
3333
+ preserved: boolean;
3334
+ };
3335
+ target_project: {
3336
+ network: string;
3337
+ project_id: string;
3338
+ prefix: string;
3339
+ cloned_objects_count: number;
3340
+ };
3341
+ key_principle: string;
3342
+ migration_plan: {
3343
+ status: "completed" | "pending_user_action";
3344
+ description: string;
3345
+ action: string;
3346
+ step: number;
3347
+ result?: string | undefined;
3348
+ deployment_plan?: {
3349
+ object_type: string;
3350
+ order: number;
3351
+ note: string;
3352
+ operation_type: string;
3353
+ object_name: string;
3354
+ localmark_name: string;
3355
+ }[] | undefined;
3356
+ names_to_register?: string[] | undefined;
3357
+ critical_note?: string | undefined;
3358
+ }[];
3359
+ }, {
3360
+ summary: string;
3361
+ action: "migrate_to_mainnet";
3362
+ migration_status: string;
3363
+ source_project: {
3364
+ network: string;
3365
+ prefix: string;
3366
+ preserved: boolean;
3367
+ };
3368
+ target_project: {
3369
+ network: string;
3370
+ project_id: string;
3371
+ prefix: string;
3372
+ cloned_objects_count: number;
3373
+ };
3374
+ key_principle: string;
3375
+ migration_plan: {
3376
+ status: "completed" | "pending_user_action";
3377
+ description: string;
3378
+ action: string;
3379
+ step: number;
3380
+ result?: string | undefined;
3381
+ deployment_plan?: {
3382
+ object_type: string;
3383
+ order: number;
3384
+ note: string;
3385
+ operation_type: string;
3386
+ object_name: string;
3387
+ localmark_name: string;
3388
+ }[] | undefined;
3389
+ names_to_register?: string[] | undefined;
3390
+ critical_note?: string | undefined;
3391
+ }[];
3392
+ }>]>;
3393
+ skills_recommended: z.ZodOptional<z.ZodString>;
3394
+ }, "strict", z.ZodTypeAny, {
3395
+ result: {
3396
+ action: "assemble_context";
3397
+ objects: unknown[];
3398
+ context_digest: string;
3399
+ next_action: string;
3400
+ events?: unknown[] | undefined;
3401
+ semantic_summary?: unknown;
3402
+ embedded_history?: Record<string, unknown> | undefined;
3403
+ flywheel_collected?: {
3404
+ signature_recorded: boolean;
3405
+ proposal_created: boolean;
3406
+ proposal_id?: string | undefined;
3407
+ } | undefined;
3408
+ } | {
3409
+ action: "list_projects";
3410
+ items: {
3411
+ status: "active" | "inactive" | "draft" | "archived";
3412
+ name: string;
3413
+ description: string | null;
3414
+ network: string;
3415
+ id: string;
3416
+ createdAt: number;
3417
+ updatedAt: number;
3418
+ industry: string | null;
3419
+ metadata: Record<string, unknown> | null;
3420
+ prefix: string;
3421
+ perspective: "consumer" | "producer" | "both";
3422
+ labels: string[] | null;
3423
+ currentVersion: string | null;
3424
+ serviceAddress: string | null;
3425
+ defaultAccount: string | null;
3426
+ objectCount: number;
3427
+ evaluationCount: number;
3428
+ objectTypes: string[];
3429
+ }[];
3430
+ total: number;
3431
+ } | {
3432
+ action: "create_project";
3433
+ project: {
3434
+ status: "active" | "inactive" | "draft" | "archived";
3435
+ name: string;
3436
+ description: string | null;
3437
+ network: string;
3438
+ id: string;
3439
+ createdAt: number;
3440
+ updatedAt: number;
3441
+ industry: string | null;
3442
+ metadata: Record<string, unknown> | null;
3443
+ prefix: string;
3444
+ perspective: "consumer" | "producer" | "both";
3445
+ labels: string[] | null;
3446
+ currentVersion: string | null;
3447
+ serviceAddress: string | null;
3448
+ defaultAccount: string | null;
3449
+ };
3450
+ recommended_creation_order: {
3451
+ object: string;
3452
+ reason: string;
3453
+ required: boolean;
3454
+ step: number;
3455
+ }[];
3456
+ hint?: string | undefined;
3457
+ blueprint?: {
3458
+ objects_count: number;
3459
+ edges_count: number;
3460
+ industry_source: string;
3461
+ applied_template: string;
3462
+ steps_count: number;
3463
+ scenarios_count: number;
3464
+ key_risk?: string | null | undefined;
3465
+ } | undefined;
3466
+ blueprint_warning?: string | undefined;
3467
+ blueprint_skipped?: boolean | undefined;
3468
+ } | {
3469
+ action: "create_project_from_onchain";
3470
+ project: {
3471
+ status: "active" | "inactive" | "draft" | "archived";
3472
+ name: string;
3473
+ description: string | null;
3474
+ network: string;
3475
+ id: string;
3476
+ createdAt: number;
3477
+ updatedAt: number;
3478
+ industry: string | null;
3479
+ metadata: Record<string, unknown> | null;
3480
+ prefix: string;
3481
+ perspective: "consumer" | "producer" | "both";
3482
+ labels: string[] | null;
3483
+ currentVersion: string | null;
3484
+ serviceAddress: string | null;
3485
+ defaultAccount: string | null;
3486
+ };
3487
+ objects: {
3488
+ id: string;
3489
+ role: string;
3490
+ objectType: string | null;
3491
+ tags: string[] | null;
3492
+ projectId: string;
3493
+ objectAddress: string;
3494
+ objectName: string | null;
3495
+ addedAt: number;
3496
+ metadata: Record<string, unknown> | null;
3497
+ }[];
3498
+ graphEdgeCount: number;
3499
+ } | {
3500
+ action: "update_project";
3501
+ project: {
3502
+ status: "active" | "inactive" | "draft" | "archived";
1578
3503
  name: string;
1579
3504
  description: string | null;
1580
3505
  network: string;
@@ -1611,7 +3536,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1611
3536
  };
1612
3537
  objects: {
1613
3538
  id: string;
1614
- role: "reference" | "dependency" | "core";
3539
+ role: string;
1615
3540
  objectType: string | null;
1616
3541
  tags: string[] | null;
1617
3542
  projectId: string;
@@ -1621,6 +3546,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1621
3546
  metadata: Record<string, unknown> | null;
1622
3547
  }[];
1623
3548
  graphEdgeCount: number;
3549
+ objectGroups: {
3550
+ other: {
3551
+ id: string;
3552
+ role: string;
3553
+ objectType: string | null;
3554
+ tags: string[] | null;
3555
+ projectId: string;
3556
+ objectAddress: string;
3557
+ objectName: string | null;
3558
+ addedAt: number;
3559
+ metadata: Record<string, unknown> | null;
3560
+ }[];
3561
+ reference: {
3562
+ id: string;
3563
+ role: string;
3564
+ objectType: string | null;
3565
+ tags: string[] | null;
3566
+ projectId: string;
3567
+ objectAddress: string;
3568
+ objectName: string | null;
3569
+ addedAt: number;
3570
+ metadata: Record<string, unknown> | null;
3571
+ }[];
3572
+ dependency: {
3573
+ id: string;
3574
+ role: string;
3575
+ objectType: string | null;
3576
+ tags: string[] | null;
3577
+ projectId: string;
3578
+ objectAddress: string;
3579
+ objectName: string | null;
3580
+ addedAt: number;
3581
+ metadata: Record<string, unknown> | null;
3582
+ }[];
3583
+ core: {
3584
+ id: string;
3585
+ role: string;
3586
+ objectType: string | null;
3587
+ tags: string[] | null;
3588
+ projectId: string;
3589
+ objectAddress: string;
3590
+ objectName: string | null;
3591
+ addedAt: number;
3592
+ metadata: Record<string, unknown> | null;
3593
+ }[];
3594
+ stats: {
3595
+ total: number;
3596
+ core_count: number;
3597
+ dependency_count: number;
3598
+ reference_count: number;
3599
+ other_count: number;
3600
+ by_type: Record<string, number>;
3601
+ };
3602
+ };
3603
+ serviceStatus: {
3604
+ published: boolean | null;
3605
+ paused: boolean | null;
3606
+ } | null;
1624
3607
  evaluations: {
1625
3608
  id: string;
1626
3609
  summary: string | null;
@@ -1651,7 +3634,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1651
3634
  } | {
1652
3635
  object: {
1653
3636
  id: string;
1654
- role: "reference" | "dependency" | "core";
3637
+ role: string;
1655
3638
  objectType: string | null;
1656
3639
  tags: string[] | null;
1657
3640
  projectId: string;
@@ -1667,7 +3650,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1667
3650
  } | {
1668
3651
  object: {
1669
3652
  id: string;
1670
- role: "reference" | "dependency" | "core";
3653
+ role: string;
1671
3654
  objectType: string | null;
1672
3655
  tags: string[] | null;
1673
3656
  projectId: string;
@@ -1686,23 +3669,45 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1686
3669
  action: "create_version";
1687
3670
  } | {
1688
3671
  action: "build_graph";
1689
- nodeCount: number;
1690
- edgeCount: number;
1691
- edgesBySource: Record<string, number>;
1692
- reputationCount: number;
1693
- builtAt: number;
3672
+ hint?: string | undefined;
3673
+ async_mode?: boolean | undefined;
3674
+ task_id?: string | undefined;
3675
+ nodeCount?: number | undefined;
3676
+ edgeCount?: number | undefined;
3677
+ edgesBySource?: Record<string, number> | undefined;
3678
+ reputationCount?: number | undefined;
3679
+ builtAt?: number | undefined;
3680
+ binding_verification?: {
3681
+ service: string;
3682
+ bindings: Record<string, {
3683
+ expected: string;
3684
+ actual: string | null;
3685
+ verified: boolean;
3686
+ count?: number | undefined;
3687
+ }>;
3688
+ all_verified: boolean;
3689
+ } | null | undefined;
3690
+ topEdges?: {
3691
+ source: string;
3692
+ weight: number | null;
3693
+ target: string;
3694
+ verified: boolean;
3695
+ fieldName: string | null;
3696
+ relationshipType: string;
3697
+ }[] | undefined;
3698
+ visualization?: string | undefined;
1694
3699
  } | {
1695
3700
  action: "get_graph";
1696
3701
  edges: {
1697
3702
  weight: number;
1698
3703
  direction: string | null;
3704
+ depth: number;
3705
+ verified: boolean;
3706
+ fieldName: string | null;
3707
+ relationshipType: string;
1699
3708
  sourceObject: string;
1700
3709
  targetObject: string;
1701
3710
  edgeSource: "registrar" | "internal" | "potential";
1702
- relationshipType: string;
1703
- fieldName: string | null;
1704
- depth: number;
1705
- verified: boolean;
1706
3711
  }[];
1707
3712
  } | {
1708
3713
  summary: string;
@@ -1777,8 +3782,296 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1777
3782
  };
1778
3783
  markdown: string;
1779
3784
  action: "generate_deployment_doc";
3785
+ detail_level: "summary" | "full" | "detailed";
1780
3786
  saved: boolean;
3787
+ stage_gate: {
3788
+ warnings: string[];
3789
+ stage: number;
3790
+ passed: boolean;
3791
+ checks: {
3792
+ message: string;
3793
+ status: "PASS" | "FAIL" | "WARN";
3794
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
3795
+ }[];
3796
+ can_proceed: boolean;
3797
+ blocking_issues: string[];
3798
+ };
3799
+ deployment_scan: {
3800
+ critical_count: number;
3801
+ findings: {
3802
+ message: string;
3803
+ severity: "info" | "critical" | "warning";
3804
+ check_id: string;
3805
+ location?: string | undefined;
3806
+ suggestion?: string | undefined;
3807
+ }[];
3808
+ checks: {
3809
+ D01_object_defined: "pass" | "fail";
3810
+ D02_dependency_complete: "pass" | "fail";
3811
+ D03_scenario_covered: "pass" | "fail";
3812
+ D04_testnet_topo_order: "pass" | "fail";
3813
+ D05_testnet_network: "pass" | "fail";
3814
+ D06_testnet_replace: "pass" | "fail";
3815
+ D07_permission_index: "pass" | "fail";
3816
+ D08_guard_gen_passport: "pass" | "fail";
3817
+ D09_machine_node_count: "pass" | "fail";
3818
+ D10_substep_coherence: "pass" | "fail";
3819
+ D11_mainnet_testnet_match: "pass" | "fail";
3820
+ D12_mainnet_network: "pass" | "fail";
3821
+ D13_mainnet_replace: "pass" | "fail";
3822
+ D14_testnet_verification: "pass" | "fail";
3823
+ D15_mainnet_verification: "pass" | "fail";
3824
+ D16_no_critical_risk: "pass" | "fail";
3825
+ D17_no_high_risk: "pass" | "fail";
3826
+ D18_completeness_checklist: "pass" | "fail";
3827
+ D19_machine_entry_forward: "pass" | "fail";
3828
+ D20_service_compensation_fund: "pass" | "fail";
3829
+ };
3830
+ overall_readiness: "warnings" | "blocked" | "ready";
3831
+ warning_count: number;
3832
+ };
3833
+ } | {
3834
+ summary: string;
3835
+ action: "pre_evaluate_check";
3836
+ warnings: {
3837
+ description: string;
3838
+ id: string;
3839
+ impact: string;
3840
+ }[];
3841
+ ready: boolean;
3842
+ missing: {
3843
+ description: string;
3844
+ id: string;
3845
+ impact: string;
3846
+ }[];
3847
+ counts: {
3848
+ objects: number;
3849
+ edges: number;
3850
+ uncached: number;
3851
+ stale: number;
3852
+ dangling_edges: number;
3853
+ drafts: number;
3854
+ };
3855
+ } | {
3856
+ summary: string;
3857
+ action: "verify_deployment";
3858
+ missing: number;
3859
+ verifiedCount: number;
3860
+ matched: number;
3861
+ mismatched: number;
3862
+ unreachable: number;
3863
+ results: {
3864
+ status: "missing" | "matched" | "mismatched" | "unreachable";
3865
+ objectType: string | null;
3866
+ objectAddress: string;
3867
+ objectName: string | null;
3868
+ error?: string | undefined;
3869
+ bindings?: {
3870
+ permission: boolean;
3871
+ buy_guard: boolean;
3872
+ machine: boolean;
3873
+ order_allocators: boolean;
3874
+ } | undefined;
3875
+ differences?: {
3876
+ field: string;
3877
+ sqlite?: unknown;
3878
+ onchain?: unknown;
3879
+ }[] | undefined;
3880
+ }[];
3881
+ } | {
3882
+ action: "get_machine_graph";
3883
+ published: boolean | null;
3884
+ nodes: {
3885
+ name: string;
3886
+ description: string | null;
3887
+ }[];
3888
+ paused: boolean | null;
3889
+ machineName: string | null;
3890
+ machineAddress: string;
3891
+ tree_outline: string;
3892
+ edges: {
3893
+ from: string;
3894
+ to: string;
3895
+ forwards: {
3896
+ name: string;
3897
+ guard: string | null;
3898
+ weight: number;
3899
+ permission_index: number | null;
3900
+ named_operator: string | null;
3901
+ }[];
3902
+ threshold: number;
3903
+ }[];
3904
+ mermaid: string;
3905
+ ascii_art: string;
3906
+ markmap: string;
3907
+ } | {
3908
+ immutable: boolean | null;
3909
+ action: "get_guard_graph";
3910
+ table: {
3911
+ identifier: number;
3912
+ b_submission: boolean;
3913
+ value_type: string | number;
3914
+ value?: unknown;
3915
+ name?: string | undefined;
3916
+ }[];
3917
+ rely: {
3918
+ guards: string[];
3919
+ logic_or?: boolean | undefined;
3920
+ } | null;
3921
+ guardAddress: string;
3922
+ tree_outline: string;
3923
+ mermaid: string;
3924
+ ascii_art: string;
3925
+ markmap: string;
3926
+ guardName: string | null;
3927
+ root?: any;
3928
+ } | {
3929
+ summary: string;
3930
+ action: "plan_object_edit";
3931
+ warnings: {
3932
+ description: string;
3933
+ id: string;
3934
+ impact: string;
3935
+ }[];
3936
+ object_address: string;
3937
+ object_kind: "guard" | "machine";
3938
+ plan_id: string;
3939
+ expected_hash: string;
3940
+ object_name: string | null;
3941
+ diff: {
3942
+ summary: string;
3943
+ modified: string[];
3944
+ removed: string[];
3945
+ added: string[];
3946
+ };
3947
+ blocking_errors: {
3948
+ description: string;
3949
+ id: string;
3950
+ impact: string;
3951
+ }[];
3952
+ can_apply: boolean;
3953
+ expires_at: string;
3954
+ prepared_call?: unknown;
3955
+ } | {
3956
+ error: string | null;
3957
+ action: "apply_object_edit";
3958
+ applied: boolean;
3959
+ plan_id: string;
3960
+ hash_match: boolean;
3961
+ next_step: string;
3962
+ prepared_call?: unknown;
3963
+ } | {
3964
+ summary: string;
3965
+ action: "patch_machine_nodes";
3966
+ warnings: {
3967
+ description: string;
3968
+ id: string;
3969
+ impact: string;
3970
+ }[];
3971
+ machine_address: string;
3972
+ diff: {
3973
+ summary: string;
3974
+ modified: string[];
3975
+ removed: string[];
3976
+ added: string[];
3977
+ };
3978
+ blocking_errors: {
3979
+ description: string;
3980
+ id: string;
3981
+ impact: string;
3982
+ }[];
3983
+ can_apply: boolean;
3984
+ machine_name: string | null;
3985
+ operations_applied: number;
3986
+ operations_failed: {
3987
+ error: string;
3988
+ operation: string;
3989
+ }[];
3990
+ patched_nodes: unknown[];
3991
+ patched_edges: unknown[];
3992
+ prepared_call?: unknown;
3993
+ } | {
3994
+ summary: string;
3995
+ action: "patch_guard_tree";
3996
+ warnings: {
3997
+ description: string;
3998
+ id: string;
3999
+ impact: string;
4000
+ }[];
4001
+ guard_address: string;
4002
+ diff: {
4003
+ summary: string;
4004
+ modified: string[];
4005
+ removed: string[];
4006
+ added: string[];
4007
+ };
4008
+ blocking_errors: {
4009
+ description: string;
4010
+ id: string;
4011
+ impact: string;
4012
+ }[];
4013
+ can_apply: boolean;
4014
+ operations_applied: number;
4015
+ operations_failed: {
4016
+ error: string;
4017
+ operation: string;
4018
+ }[];
4019
+ guard_name: string | null;
4020
+ patched_table: unknown[];
4021
+ prepared_call?: unknown;
4022
+ patched_root?: unknown;
4023
+ patched_rely?: unknown;
4024
+ } | {
4025
+ message: string;
4026
+ action: "clone_project_to_network";
4027
+ target_network: "testnet" | "mainnet";
4028
+ new_project_id: string;
4029
+ new_prefix: string;
4030
+ cloned_objects_count: number;
4031
+ next_steps: string;
4032
+ } | {
4033
+ message: string;
4034
+ action: "migrate_network";
4035
+ target_network: "testnet" | "mainnet";
4036
+ new_project_id: string;
4037
+ new_prefix: string;
4038
+ cloned_objects_count: number;
4039
+ next_steps: string;
4040
+ } | {
4041
+ summary: string;
4042
+ action: "migrate_to_mainnet";
4043
+ migration_status: string;
4044
+ source_project: {
4045
+ network: string;
4046
+ prefix: string;
4047
+ preserved: boolean;
4048
+ };
4049
+ target_project: {
4050
+ network: string;
4051
+ project_id: string;
4052
+ prefix: string;
4053
+ cloned_objects_count: number;
4054
+ };
4055
+ key_principle: string;
4056
+ migration_plan: {
4057
+ status: "completed" | "pending_user_action";
4058
+ description: string;
4059
+ action: string;
4060
+ step: number;
4061
+ result?: string | undefined;
4062
+ deployment_plan?: {
4063
+ object_type: string;
4064
+ order: number;
4065
+ note: string;
4066
+ operation_type: string;
4067
+ object_name: string;
4068
+ localmark_name: string;
4069
+ }[] | undefined;
4070
+ names_to_register?: string[] | undefined;
4071
+ critical_note?: string | undefined;
4072
+ }[];
1781
4073
  };
4074
+ skills_recommended?: string | undefined;
1782
4075
  }, {
1783
4076
  result: {
1784
4077
  action: "assemble_context";
@@ -1835,6 +4128,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1835
4128
  serviceAddress: string | null;
1836
4129
  defaultAccount: string | null;
1837
4130
  };
4131
+ recommended_creation_order: {
4132
+ object: string;
4133
+ reason: string;
4134
+ required: boolean;
4135
+ step: number;
4136
+ }[];
4137
+ hint?: string | undefined;
4138
+ blueprint?: {
4139
+ objects_count: number;
4140
+ edges_count: number;
4141
+ industry_source: string;
4142
+ applied_template: string;
4143
+ steps_count: number;
4144
+ scenarios_count: number;
4145
+ key_risk?: string | null | undefined;
4146
+ } | undefined;
4147
+ blueprint_warning?: string | undefined;
4148
+ blueprint_skipped?: boolean | undefined;
1838
4149
  } | {
1839
4150
  action: "create_project_from_onchain";
1840
4151
  project: {
@@ -1856,7 +4167,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1856
4167
  };
1857
4168
  objects: {
1858
4169
  id: string;
1859
- role: "reference" | "dependency" | "core";
4170
+ role: string;
1860
4171
  objectType: string | null;
1861
4172
  tags: string[] | null;
1862
4173
  projectId: string;
@@ -1906,7 +4217,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1906
4217
  };
1907
4218
  objects: {
1908
4219
  id: string;
1909
- role: "reference" | "dependency" | "core";
4220
+ role: string;
1910
4221
  objectType: string | null;
1911
4222
  tags: string[] | null;
1912
4223
  projectId: string;
@@ -1916,6 +4227,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1916
4227
  metadata: Record<string, unknown> | null;
1917
4228
  }[];
1918
4229
  graphEdgeCount: number;
4230
+ objectGroups: {
4231
+ other: {
4232
+ id: string;
4233
+ role: string;
4234
+ objectType: string | null;
4235
+ tags: string[] | null;
4236
+ projectId: string;
4237
+ objectAddress: string;
4238
+ objectName: string | null;
4239
+ addedAt: number;
4240
+ metadata: Record<string, unknown> | null;
4241
+ }[];
4242
+ reference: {
4243
+ id: string;
4244
+ role: string;
4245
+ objectType: string | null;
4246
+ tags: string[] | null;
4247
+ projectId: string;
4248
+ objectAddress: string;
4249
+ objectName: string | null;
4250
+ addedAt: number;
4251
+ metadata: Record<string, unknown> | null;
4252
+ }[];
4253
+ dependency: {
4254
+ id: string;
4255
+ role: string;
4256
+ objectType: string | null;
4257
+ tags: string[] | null;
4258
+ projectId: string;
4259
+ objectAddress: string;
4260
+ objectName: string | null;
4261
+ addedAt: number;
4262
+ metadata: Record<string, unknown> | null;
4263
+ }[];
4264
+ core: {
4265
+ id: string;
4266
+ role: string;
4267
+ objectType: string | null;
4268
+ tags: string[] | null;
4269
+ projectId: string;
4270
+ objectAddress: string;
4271
+ objectName: string | null;
4272
+ addedAt: number;
4273
+ metadata: Record<string, unknown> | null;
4274
+ }[];
4275
+ stats: {
4276
+ total: number;
4277
+ core_count: number;
4278
+ dependency_count: number;
4279
+ reference_count: number;
4280
+ other_count: number;
4281
+ by_type: Record<string, number>;
4282
+ };
4283
+ };
4284
+ serviceStatus: {
4285
+ published: boolean | null;
4286
+ paused: boolean | null;
4287
+ } | null;
1919
4288
  evaluations: {
1920
4289
  id: string;
1921
4290
  summary: string | null;
@@ -1946,7 +4315,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1946
4315
  } | {
1947
4316
  object: {
1948
4317
  id: string;
1949
- role: "reference" | "dependency" | "core";
4318
+ role: string;
1950
4319
  objectType: string | null;
1951
4320
  tags: string[] | null;
1952
4321
  projectId: string;
@@ -1962,7 +4331,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1962
4331
  } | {
1963
4332
  object: {
1964
4333
  id: string;
1965
- role: "reference" | "dependency" | "core";
4334
+ role: string;
1966
4335
  objectType: string | null;
1967
4336
  tags: string[] | null;
1968
4337
  projectId: string;
@@ -1981,23 +4350,45 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1981
4350
  action: "create_version";
1982
4351
  } | {
1983
4352
  action: "build_graph";
1984
- nodeCount: number;
1985
- edgeCount: number;
1986
- edgesBySource: Record<string, number>;
1987
- reputationCount: number;
1988
- builtAt: number;
4353
+ hint?: string | undefined;
4354
+ async_mode?: boolean | undefined;
4355
+ task_id?: string | undefined;
4356
+ nodeCount?: number | undefined;
4357
+ edgeCount?: number | undefined;
4358
+ edgesBySource?: Record<string, number> | undefined;
4359
+ reputationCount?: number | undefined;
4360
+ builtAt?: number | undefined;
4361
+ binding_verification?: {
4362
+ service: string;
4363
+ bindings: Record<string, {
4364
+ expected: string;
4365
+ actual: string | null;
4366
+ verified: boolean;
4367
+ count?: number | undefined;
4368
+ }>;
4369
+ all_verified: boolean;
4370
+ } | null | undefined;
4371
+ topEdges?: {
4372
+ source: string;
4373
+ weight: number | null;
4374
+ target: string;
4375
+ verified: boolean;
4376
+ fieldName: string | null;
4377
+ relationshipType: string;
4378
+ }[] | undefined;
4379
+ visualization?: string | undefined;
1989
4380
  } | {
1990
4381
  action: "get_graph";
1991
4382
  edges: {
1992
4383
  weight: number;
1993
4384
  direction: string | null;
4385
+ depth: number;
4386
+ verified: boolean;
4387
+ fieldName: string | null;
4388
+ relationshipType: string;
1994
4389
  sourceObject: string;
1995
4390
  targetObject: string;
1996
4391
  edgeSource: "registrar" | "internal" | "potential";
1997
- relationshipType: string;
1998
- fieldName: string | null;
1999
- depth: number;
2000
- verified: boolean;
2001
4392
  }[];
2002
4393
  } | {
2003
4394
  summary: string;
@@ -2072,6 +4463,294 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
2072
4463
  };
2073
4464
  markdown: string;
2074
4465
  action: "generate_deployment_doc";
4466
+ detail_level: "summary" | "full" | "detailed";
2075
4467
  saved: boolean;
4468
+ stage_gate: {
4469
+ warnings: string[];
4470
+ stage: number;
4471
+ passed: boolean;
4472
+ checks: {
4473
+ message: string;
4474
+ status: "PASS" | "FAIL" | "WARN";
4475
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
4476
+ }[];
4477
+ can_proceed: boolean;
4478
+ blocking_issues: string[];
4479
+ };
4480
+ deployment_scan: {
4481
+ critical_count: number;
4482
+ findings: {
4483
+ message: string;
4484
+ severity: "info" | "critical" | "warning";
4485
+ check_id: string;
4486
+ location?: string | undefined;
4487
+ suggestion?: string | undefined;
4488
+ }[];
4489
+ checks: {
4490
+ D01_object_defined: "pass" | "fail";
4491
+ D02_dependency_complete: "pass" | "fail";
4492
+ D03_scenario_covered: "pass" | "fail";
4493
+ D04_testnet_topo_order: "pass" | "fail";
4494
+ D05_testnet_network: "pass" | "fail";
4495
+ D06_testnet_replace: "pass" | "fail";
4496
+ D07_permission_index: "pass" | "fail";
4497
+ D08_guard_gen_passport: "pass" | "fail";
4498
+ D09_machine_node_count: "pass" | "fail";
4499
+ D10_substep_coherence: "pass" | "fail";
4500
+ D11_mainnet_testnet_match: "pass" | "fail";
4501
+ D12_mainnet_network: "pass" | "fail";
4502
+ D13_mainnet_replace: "pass" | "fail";
4503
+ D14_testnet_verification: "pass" | "fail";
4504
+ D15_mainnet_verification: "pass" | "fail";
4505
+ D16_no_critical_risk: "pass" | "fail";
4506
+ D17_no_high_risk: "pass" | "fail";
4507
+ D18_completeness_checklist: "pass" | "fail";
4508
+ D19_machine_entry_forward: "pass" | "fail";
4509
+ D20_service_compensation_fund: "pass" | "fail";
4510
+ };
4511
+ overall_readiness: "warnings" | "blocked" | "ready";
4512
+ warning_count: number;
4513
+ };
4514
+ } | {
4515
+ summary: string;
4516
+ action: "pre_evaluate_check";
4517
+ warnings: {
4518
+ description: string;
4519
+ id: string;
4520
+ impact: string;
4521
+ }[];
4522
+ ready: boolean;
4523
+ missing: {
4524
+ description: string;
4525
+ id: string;
4526
+ impact: string;
4527
+ }[];
4528
+ counts: {
4529
+ objects: number;
4530
+ edges: number;
4531
+ uncached: number;
4532
+ stale: number;
4533
+ dangling_edges: number;
4534
+ drafts: number;
4535
+ };
4536
+ } | {
4537
+ summary: string;
4538
+ action: "verify_deployment";
4539
+ missing: number;
4540
+ verifiedCount: number;
4541
+ matched: number;
4542
+ mismatched: number;
4543
+ unreachable: number;
4544
+ results: {
4545
+ status: "missing" | "matched" | "mismatched" | "unreachable";
4546
+ objectType: string | null;
4547
+ objectAddress: string;
4548
+ objectName: string | null;
4549
+ error?: string | undefined;
4550
+ bindings?: {
4551
+ permission: boolean;
4552
+ buy_guard: boolean;
4553
+ machine: boolean;
4554
+ order_allocators: boolean;
4555
+ } | undefined;
4556
+ differences?: {
4557
+ field: string;
4558
+ sqlite?: unknown;
4559
+ onchain?: unknown;
4560
+ }[] | undefined;
4561
+ }[];
4562
+ } | {
4563
+ action: "get_machine_graph";
4564
+ published: boolean | null;
4565
+ nodes: {
4566
+ name: string;
4567
+ description: string | null;
4568
+ }[];
4569
+ paused: boolean | null;
4570
+ machineName: string | null;
4571
+ machineAddress: string;
4572
+ tree_outline: string;
4573
+ edges: {
4574
+ from: string;
4575
+ to: string;
4576
+ forwards: {
4577
+ name: string;
4578
+ guard: string | null;
4579
+ weight: number;
4580
+ permission_index: number | null;
4581
+ named_operator: string | null;
4582
+ }[];
4583
+ threshold: number;
4584
+ }[];
4585
+ mermaid: string;
4586
+ ascii_art: string;
4587
+ markmap: string;
4588
+ } | {
4589
+ immutable: boolean | null;
4590
+ action: "get_guard_graph";
4591
+ table: {
4592
+ identifier: number;
4593
+ b_submission: boolean;
4594
+ value_type: string | number;
4595
+ value?: unknown;
4596
+ name?: string | undefined;
4597
+ }[];
4598
+ rely: {
4599
+ guards: string[];
4600
+ logic_or?: boolean | undefined;
4601
+ } | null;
4602
+ guardAddress: string;
4603
+ tree_outline: string;
4604
+ mermaid: string;
4605
+ ascii_art: string;
4606
+ markmap: string;
4607
+ guardName: string | null;
4608
+ root?: any;
4609
+ } | {
4610
+ summary: string;
4611
+ action: "plan_object_edit";
4612
+ warnings: {
4613
+ description: string;
4614
+ id: string;
4615
+ impact: string;
4616
+ }[];
4617
+ object_address: string;
4618
+ object_kind: "guard" | "machine";
4619
+ plan_id: string;
4620
+ expected_hash: string;
4621
+ object_name: string | null;
4622
+ diff: {
4623
+ summary: string;
4624
+ modified: string[];
4625
+ removed: string[];
4626
+ added: string[];
4627
+ };
4628
+ blocking_errors: {
4629
+ description: string;
4630
+ id: string;
4631
+ impact: string;
4632
+ }[];
4633
+ can_apply: boolean;
4634
+ expires_at: string;
4635
+ prepared_call?: unknown;
4636
+ } | {
4637
+ error: string | null;
4638
+ action: "apply_object_edit";
4639
+ applied: boolean;
4640
+ plan_id: string;
4641
+ hash_match: boolean;
4642
+ next_step: string;
4643
+ prepared_call?: unknown;
4644
+ } | {
4645
+ summary: string;
4646
+ action: "patch_machine_nodes";
4647
+ warnings: {
4648
+ description: string;
4649
+ id: string;
4650
+ impact: string;
4651
+ }[];
4652
+ machine_address: string;
4653
+ diff: {
4654
+ summary: string;
4655
+ modified: string[];
4656
+ removed: string[];
4657
+ added: string[];
4658
+ };
4659
+ blocking_errors: {
4660
+ description: string;
4661
+ id: string;
4662
+ impact: string;
4663
+ }[];
4664
+ can_apply: boolean;
4665
+ machine_name: string | null;
4666
+ operations_applied: number;
4667
+ operations_failed: {
4668
+ error: string;
4669
+ operation: string;
4670
+ }[];
4671
+ patched_nodes: unknown[];
4672
+ patched_edges: unknown[];
4673
+ prepared_call?: unknown;
4674
+ } | {
4675
+ summary: string;
4676
+ action: "patch_guard_tree";
4677
+ warnings: {
4678
+ description: string;
4679
+ id: string;
4680
+ impact: string;
4681
+ }[];
4682
+ guard_address: string;
4683
+ diff: {
4684
+ summary: string;
4685
+ modified: string[];
4686
+ removed: string[];
4687
+ added: string[];
4688
+ };
4689
+ blocking_errors: {
4690
+ description: string;
4691
+ id: string;
4692
+ impact: string;
4693
+ }[];
4694
+ can_apply: boolean;
4695
+ operations_applied: number;
4696
+ operations_failed: {
4697
+ error: string;
4698
+ operation: string;
4699
+ }[];
4700
+ guard_name: string | null;
4701
+ patched_table: unknown[];
4702
+ prepared_call?: unknown;
4703
+ patched_root?: unknown;
4704
+ patched_rely?: unknown;
4705
+ } | {
4706
+ message: string;
4707
+ action: "clone_project_to_network";
4708
+ target_network: "testnet" | "mainnet";
4709
+ new_project_id: string;
4710
+ new_prefix: string;
4711
+ cloned_objects_count: number;
4712
+ next_steps: string;
4713
+ } | {
4714
+ message: string;
4715
+ action: "migrate_network";
4716
+ target_network: "testnet" | "mainnet";
4717
+ new_project_id: string;
4718
+ new_prefix: string;
4719
+ cloned_objects_count: number;
4720
+ next_steps: string;
4721
+ } | {
4722
+ summary: string;
4723
+ action: "migrate_to_mainnet";
4724
+ migration_status: string;
4725
+ source_project: {
4726
+ network: string;
4727
+ prefix: string;
4728
+ preserved: boolean;
4729
+ };
4730
+ target_project: {
4731
+ network: string;
4732
+ project_id: string;
4733
+ prefix: string;
4734
+ cloned_objects_count: number;
4735
+ };
4736
+ key_principle: string;
4737
+ migration_plan: {
4738
+ status: "completed" | "pending_user_action";
4739
+ description: string;
4740
+ action: string;
4741
+ step: number;
4742
+ result?: string | undefined;
4743
+ deployment_plan?: {
4744
+ object_type: string;
4745
+ order: number;
4746
+ note: string;
4747
+ operation_type: string;
4748
+ object_name: string;
4749
+ localmark_name: string;
4750
+ }[] | undefined;
4751
+ names_to_register?: string[] | undefined;
4752
+ critical_note?: string | undefined;
4753
+ }[];
2076
4754
  };
4755
+ skills_recommended?: string | undefined;
2077
4756
  }>;