@wowok/agent-mcp 2.4.3 → 2.5.1

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 (317) hide show
  1. package/dist/config/runtime.d.ts +4 -0
  2. package/dist/config/runtime.js +29 -5
  3. package/dist/harness/auto-escalation.d.ts +27 -0
  4. package/dist/harness/auto-escalation.js +68 -0
  5. package/dist/index.js +21 -0
  6. package/dist/knowledge/allocation-confirm.d.ts +115 -0
  7. package/dist/knowledge/allocation-confirm.js +534 -0
  8. package/dist/knowledge/allocation-context.d.ts +58 -0
  9. package/dist/knowledge/allocation-context.js +249 -0
  10. package/dist/knowledge/allocation-ledger.d.ts +67 -0
  11. package/dist/knowledge/allocation-ledger.js +463 -0
  12. package/dist/knowledge/allocation-puzzle.d.ts +135 -0
  13. package/dist/knowledge/allocation-puzzle.js +298 -0
  14. package/dist/knowledge/allocation-risk.d.ts +78 -0
  15. package/dist/knowledge/allocation-risk.js +568 -0
  16. package/dist/knowledge/allocation-templates.d.ts +38 -0
  17. package/dist/knowledge/allocation-templates.js +970 -0
  18. package/dist/knowledge/allocation-translation.d.ts +72 -0
  19. package/dist/knowledge/allocation-translation.js +585 -0
  20. package/dist/knowledge/arb-risk.d.ts +37 -0
  21. package/dist/knowledge/arb-risk.js +210 -0
  22. package/dist/knowledge/arbitration-confirm.d.ts +135 -0
  23. package/dist/knowledge/arbitration-confirm.js +559 -0
  24. package/dist/knowledge/arbitration-context.d.ts +81 -0
  25. package/dist/knowledge/arbitration-context.js +505 -0
  26. package/dist/knowledge/arbitration-ledger.d.ts +62 -0
  27. package/dist/knowledge/arbitration-ledger.js +521 -0
  28. package/dist/knowledge/arbitration-puzzle.d.ts +84 -0
  29. package/dist/knowledge/arbitration-puzzle.js +304 -0
  30. package/dist/knowledge/arbitration-risk.d.ts +112 -0
  31. package/dist/knowledge/arbitration-risk.js +433 -0
  32. package/dist/knowledge/arbitration-templates.d.ts +38 -0
  33. package/dist/knowledge/arbitration-templates.js +276 -0
  34. package/dist/knowledge/arbitration-translation.d.ts +91 -0
  35. package/dist/knowledge/arbitration-translation.js +487 -0
  36. package/dist/knowledge/bridge-risk.d.ts +36 -0
  37. package/dist/knowledge/bridge-risk.js +263 -0
  38. package/dist/knowledge/contact-risk.d.ts +32 -0
  39. package/dist/knowledge/contact-risk.js +200 -0
  40. package/dist/knowledge/demand-confirm.d.ts +32 -0
  41. package/dist/knowledge/demand-confirm.js +206 -0
  42. package/dist/knowledge/demand-risk.d.ts +30 -0
  43. package/dist/knowledge/demand-risk.js +240 -0
  44. package/dist/knowledge/demand-translation.d.ts +55 -0
  45. package/dist/knowledge/demand-translation.js +354 -0
  46. package/dist/knowledge/deployment-scanner.d.ts +63 -0
  47. package/dist/knowledge/deployment-scanner.js +762 -0
  48. package/dist/knowledge/examples-scanner-cli.d.ts +1 -0
  49. package/dist/knowledge/examples-scanner-cli.js +26 -0
  50. package/dist/knowledge/examples-scanner.d.ts +121 -0
  51. package/dist/knowledge/examples-scanner.js +825 -0
  52. package/dist/knowledge/flywheel-loop.d.ts +3 -0
  53. package/dist/knowledge/flywheel-loop.js +32 -3
  54. package/dist/knowledge/glossary.js +3 -1
  55. package/dist/knowledge/guard-confirm.d.ts +86 -0
  56. package/dist/knowledge/guard-confirm.js +406 -0
  57. package/dist/knowledge/guard-context.d.ts +56 -0
  58. package/dist/knowledge/guard-context.js +287 -0
  59. package/dist/knowledge/guard-design-patterns.d.ts +37 -0
  60. package/dist/knowledge/guard-design-patterns.js +257 -0
  61. package/dist/knowledge/guard-puzzle.js +3 -2
  62. package/dist/knowledge/guard-risk.d.ts +1 -1
  63. package/dist/knowledge/guard-risk.js +12 -14
  64. package/dist/knowledge/guard-templates.js +1 -1
  65. package/dist/knowledge/guard-translation.js +6 -5
  66. package/dist/knowledge/index.d.ts +342 -0
  67. package/dist/knowledge/index.js +344 -0
  68. package/dist/knowledge/machine-confirm.d.ts +102 -0
  69. package/dist/knowledge/machine-confirm.js +559 -0
  70. package/dist/knowledge/machine-context.d.ts +160 -0
  71. package/dist/knowledge/machine-context.js +812 -0
  72. package/dist/knowledge/machine-ledger.d.ts +41 -0
  73. package/dist/knowledge/machine-ledger.js +315 -0
  74. package/dist/knowledge/machine-puzzle.d.ts +206 -0
  75. package/dist/knowledge/machine-puzzle.js +494 -0
  76. package/dist/knowledge/machine-risk.d.ts +75 -0
  77. package/dist/knowledge/machine-risk.js +644 -0
  78. package/dist/knowledge/machine-templates.d.ts +92 -0
  79. package/dist/knowledge/machine-templates.js +1592 -0
  80. package/dist/knowledge/machine-topology.d.ts +57 -0
  81. package/dist/knowledge/machine-topology.js +234 -0
  82. package/dist/knowledge/machine-translation.d.ts +96 -0
  83. package/dist/knowledge/machine-translation.js +513 -0
  84. package/dist/knowledge/mcp-schema-audit-cli.d.ts +1 -0
  85. package/dist/knowledge/mcp-schema-audit-cli.js +45 -0
  86. package/dist/knowledge/mcp-schema-audit.d.ts +90 -0
  87. package/dist/knowledge/mcp-schema-audit.js +772 -0
  88. package/dist/knowledge/onchain-constants.d.ts +4 -0
  89. package/dist/knowledge/onchain-constants.js +35 -0
  90. package/dist/knowledge/order-confirm.d.ts +115 -0
  91. package/dist/knowledge/order-confirm.js +573 -0
  92. package/dist/knowledge/order-context.d.ts +66 -0
  93. package/dist/knowledge/order-context.js +390 -0
  94. package/dist/knowledge/order-ledger.d.ts +69 -0
  95. package/dist/knowledge/order-ledger.js +341 -0
  96. package/dist/knowledge/order-puzzle.d.ts +159 -0
  97. package/dist/knowledge/order-puzzle.js +255 -0
  98. package/dist/knowledge/order-risk.d.ts +66 -0
  99. package/dist/knowledge/order-risk.js +653 -0
  100. package/dist/knowledge/order-templates.d.ts +50 -0
  101. package/dist/knowledge/order-templates.js +368 -0
  102. package/dist/knowledge/order-translation.d.ts +78 -0
  103. package/dist/knowledge/order-translation.js +550 -0
  104. package/dist/knowledge/passport-confirm.d.ts +130 -0
  105. package/dist/knowledge/passport-confirm.js +531 -0
  106. package/dist/knowledge/passport-context.d.ts +59 -0
  107. package/dist/knowledge/passport-context.js +306 -0
  108. package/dist/knowledge/passport-ledger.d.ts +48 -0
  109. package/dist/knowledge/passport-ledger.js +282 -0
  110. package/dist/knowledge/passport-puzzle.d.ts +108 -0
  111. package/dist/knowledge/passport-puzzle.js +333 -0
  112. package/dist/knowledge/passport-risk.d.ts +70 -0
  113. package/dist/knowledge/passport-risk.js +450 -0
  114. package/dist/knowledge/passport-templates.d.ts +40 -0
  115. package/dist/knowledge/passport-templates.js +568 -0
  116. package/dist/knowledge/passport-translation.d.ts +68 -0
  117. package/dist/knowledge/passport-translation.js +516 -0
  118. package/dist/knowledge/payment-risk.d.ts +33 -0
  119. package/dist/knowledge/payment-risk.js +182 -0
  120. package/dist/knowledge/permission-confirm.d.ts +110 -0
  121. package/dist/knowledge/permission-confirm.js +426 -0
  122. package/dist/knowledge/permission-context.d.ts +58 -0
  123. package/dist/knowledge/permission-context.js +224 -0
  124. package/dist/knowledge/permission-ledger.d.ts +38 -0
  125. package/dist/knowledge/permission-ledger.js +403 -0
  126. package/dist/knowledge/permission-puzzle.d.ts +122 -0
  127. package/dist/knowledge/permission-puzzle.js +173 -0
  128. package/dist/knowledge/permission-risk.d.ts +76 -0
  129. package/dist/knowledge/permission-risk.js +411 -0
  130. package/dist/knowledge/permission-templates.d.ts +38 -0
  131. package/dist/knowledge/permission-templates.js +234 -0
  132. package/dist/knowledge/permission-translation.d.ts +57 -0
  133. package/dist/knowledge/permission-translation.js +350 -0
  134. package/dist/knowledge/personal-risk.d.ts +36 -0
  135. package/dist/knowledge/personal-risk.js +212 -0
  136. package/dist/knowledge/progress-confirm.d.ts +108 -0
  137. package/dist/knowledge/progress-confirm.js +456 -0
  138. package/dist/knowledge/progress-context.d.ts +123 -0
  139. package/dist/knowledge/progress-context.js +452 -0
  140. package/dist/knowledge/progress-ledger.d.ts +63 -0
  141. package/dist/knowledge/progress-ledger.js +327 -0
  142. package/dist/knowledge/progress-puzzle.d.ts +82 -0
  143. package/dist/knowledge/progress-puzzle.js +219 -0
  144. package/dist/knowledge/progress-risk.d.ts +74 -0
  145. package/dist/knowledge/progress-risk.js +461 -0
  146. package/dist/knowledge/progress-templates.d.ts +38 -0
  147. package/dist/knowledge/progress-templates.js +228 -0
  148. package/dist/knowledge/progress-translation.d.ts +52 -0
  149. package/dist/knowledge/progress-translation.js +401 -0
  150. package/dist/knowledge/proof-confirm.d.ts +31 -0
  151. package/dist/knowledge/proof-confirm.js +187 -0
  152. package/dist/knowledge/proof-risk.d.ts +33 -0
  153. package/dist/knowledge/proof-risk.js +207 -0
  154. package/dist/knowledge/proof-translation.d.ts +52 -0
  155. package/dist/knowledge/proof-translation.js +283 -0
  156. package/dist/knowledge/registrar-risk.d.ts +34 -0
  157. package/dist/knowledge/registrar-risk.js +217 -0
  158. package/dist/knowledge/repository-confirm.d.ts +36 -0
  159. package/dist/knowledge/repository-confirm.js +242 -0
  160. package/dist/knowledge/repository-risk.d.ts +40 -0
  161. package/dist/knowledge/repository-risk.js +312 -0
  162. package/dist/knowledge/repository-translation.d.ts +58 -0
  163. package/dist/knowledge/repository-translation.js +422 -0
  164. package/dist/knowledge/resource-risk.d.ts +32 -0
  165. package/dist/knowledge/resource-risk.js +157 -0
  166. package/dist/knowledge/reward-confirm.d.ts +113 -0
  167. package/dist/knowledge/reward-confirm.js +496 -0
  168. package/dist/knowledge/reward-context.d.ts +127 -0
  169. package/dist/knowledge/reward-context.js +504 -0
  170. package/dist/knowledge/reward-ledger.d.ts +96 -0
  171. package/dist/knowledge/reward-ledger.js +502 -0
  172. package/dist/knowledge/reward-puzzle.d.ts +97 -0
  173. package/dist/knowledge/reward-puzzle.js +288 -0
  174. package/dist/knowledge/reward-risk.d.ts +84 -0
  175. package/dist/knowledge/reward-risk.js +545 -0
  176. package/dist/knowledge/reward-translation.d.ts +58 -0
  177. package/dist/knowledge/reward-translation.js +501 -0
  178. package/dist/knowledge/safety-rules.js +11 -3
  179. package/dist/knowledge/scenario-modes.d.ts +53 -0
  180. package/dist/knowledge/scenario-modes.js +302 -0
  181. package/dist/knowledge/service-confirm.d.ts +152 -0
  182. package/dist/knowledge/service-confirm.js +699 -0
  183. package/dist/knowledge/service-context.d.ts +66 -0
  184. package/dist/knowledge/service-context.js +403 -0
  185. package/dist/knowledge/service-ledger.d.ts +71 -0
  186. package/dist/knowledge/service-ledger.js +609 -0
  187. package/dist/knowledge/service-puzzle.d.ts +158 -0
  188. package/dist/knowledge/service-puzzle.js +236 -0
  189. package/dist/knowledge/service-risk.d.ts +108 -0
  190. package/dist/knowledge/service-risk.js +615 -0
  191. package/dist/knowledge/service-templates.d.ts +39 -0
  192. package/dist/knowledge/service-templates.js +418 -0
  193. package/dist/knowledge/service-translation.d.ts +103 -0
  194. package/dist/knowledge/service-translation.js +622 -0
  195. package/dist/knowledge/tools-reference.d.ts +17 -0
  196. package/dist/knowledge/tools-reference.js +151 -0
  197. package/dist/knowledge/treasury-confirm.d.ts +133 -0
  198. package/dist/knowledge/treasury-confirm.js +512 -0
  199. package/dist/knowledge/treasury-context.d.ts +64 -0
  200. package/dist/knowledge/treasury-context.js +363 -0
  201. package/dist/knowledge/treasury-ledger.d.ts +42 -0
  202. package/dist/knowledge/treasury-ledger.js +300 -0
  203. package/dist/knowledge/treasury-puzzle.d.ts +163 -0
  204. package/dist/knowledge/treasury-puzzle.js +216 -0
  205. package/dist/knowledge/treasury-risk.d.ts +86 -0
  206. package/dist/knowledge/treasury-risk.js +440 -0
  207. package/dist/knowledge/treasury-templates.d.ts +38 -0
  208. package/dist/knowledge/treasury-templates.js +316 -0
  209. package/dist/knowledge/treasury-translation.d.ts +78 -0
  210. package/dist/knowledge/treasury-translation.js +498 -0
  211. package/dist/knowledge/util-risk.d.ts +30 -0
  212. package/dist/knowledge/util-risk.js +135 -0
  213. package/dist/project/business-puzzle.d.ts +47 -0
  214. package/dist/project/business-puzzle.js +372 -0
  215. package/dist/project/deployment-doc.d.ts +61 -0
  216. package/dist/project/deployment-doc.js +432 -0
  217. package/dist/project/risk-aggregator.d.ts +50 -0
  218. package/dist/project/risk-aggregator.js +280 -0
  219. package/dist/project/substep-trace.d.ts +130 -0
  220. package/dist/project/substep-trace.js +332 -0
  221. package/dist/schema/call/allocation.d.ts +34 -34
  222. package/dist/schema/call/arbitration.d.ts +141 -141
  223. package/dist/schema/call/base.d.ts +386 -386
  224. package/dist/schema/call/base.js +3 -3
  225. package/dist/schema/call/bridge-handler.d.ts +5 -2
  226. package/dist/schema/call/bridge.d.ts +159 -159
  227. package/dist/schema/call/contact.d.ts +110 -110
  228. package/dist/schema/call/demand.d.ts +76 -76
  229. package/dist/schema/call/handler.d.ts +2 -3
  230. package/dist/schema/call/handler.js +1 -1
  231. package/dist/schema/call/machine.d.ts +58 -58
  232. package/dist/schema/call/order.d.ts +98 -110
  233. package/dist/schema/call/permission-handler.d.ts +5 -0
  234. package/dist/schema/call/permission-handler.js +54 -0
  235. package/dist/schema/call/permission.d.ts +108 -108
  236. package/dist/schema/call/personal.d.ts +14 -14
  237. package/dist/schema/call/progress.d.ts +57 -72
  238. package/dist/schema/call/progress.js +7 -4
  239. package/dist/schema/call/proof.d.ts +18 -18
  240. package/dist/schema/call/proof.js +12 -7
  241. package/dist/schema/call/repository.d.ts +154 -154
  242. package/dist/schema/call/reward.d.ts +55 -55
  243. package/dist/schema/call/service.d.ts +231 -231
  244. package/dist/schema/call/treasury.d.ts +93 -93
  245. package/dist/schema/config/index.d.ts +178 -5
  246. package/dist/schema/config/index.js +52 -1
  247. package/dist/schema/local/index.d.ts +3554 -836
  248. package/dist/schema/local/index.js +2 -1
  249. package/dist/schema/messenger/index.d.ts +162 -162
  250. package/dist/schema/operations.d.ts +1058 -1074
  251. package/dist/schema/operations.js +7 -1
  252. package/dist/schema/project/index.d.ts +1412 -6
  253. package/dist/schema/project/index.js +441 -3
  254. package/dist/schema/query/index.d.ts +672 -672
  255. package/dist/schema/schema-query/index.d.ts +23 -3
  256. package/dist/schema/schema-query/index.js +13 -2
  257. package/dist/schema/sync-layer4.d.ts +21 -0
  258. package/dist/schema/sync-layer4.js +261 -0
  259. package/dist/schema/trust/index.d.ts +26 -26
  260. package/dist/schemas/account_operation.output.json +718 -0
  261. package/dist/schemas/config_operation.output.json +173 -0
  262. package/dist/schemas/index.json +9 -1
  263. package/dist/schemas/local_info_operation.output.json +718 -0
  264. package/dist/schemas/local_mark_operation.output.json +718 -0
  265. package/dist/schemas/onchain_operations.output.json +3 -2
  266. package/dist/schemas/onchain_operations.schema.json +1809 -336
  267. package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
  268. package/dist/schemas/onchain_operations_arbitration.schema.json +2 -1
  269. package/dist/schemas/onchain_operations_contact.schema.json +2 -1
  270. package/dist/schemas/onchain_operations_demand.schema.json +2 -1
  271. package/dist/schemas/onchain_operations_gen_passport.schema.json +878 -872
  272. package/dist/schemas/onchain_operations_gen_proof.schema.json +273 -0
  273. package/dist/schemas/onchain_operations_guard.schema.json +578 -579
  274. package/dist/schemas/onchain_operations_machine.schema.json +2 -1
  275. package/dist/schemas/onchain_operations_order.schema.json +13 -9
  276. package/dist/schemas/onchain_operations_payment.schema.json +0 -514
  277. package/dist/schemas/onchain_operations_permission.schema.json +0 -514
  278. package/dist/schemas/onchain_operations_personal.schema.json +0 -514
  279. package/dist/schemas/onchain_operations_progress.schema.json +14 -10
  280. package/dist/schemas/onchain_operations_proof.schema.json +699 -0
  281. package/dist/schemas/onchain_operations_repository.schema.json +2 -1
  282. package/dist/schemas/onchain_operations_reward.schema.json +2 -1
  283. package/dist/schemas/onchain_operations_service.schema.json +2 -1
  284. package/dist/schemas/onchain_operations_treasury.schema.json +2 -1
  285. package/dist/schemas/onchain_table_data.schema.json +32 -1
  286. package/dist/schemas/project_operation.output.json +918 -0
  287. package/dist/schemas/project_operation.schema.json +474 -3
  288. package/dist/schemas/query_toolkit.output.json +14906 -6
  289. package/dist/schemas/schema_query.output.json +38 -1
  290. package/dist/telemetry/index.d.ts +1 -1
  291. package/dist/tools/handlers/config.d.ts +1 -1
  292. package/dist/tools/handlers/config.js +21 -18
  293. package/dist/tools/handlers/file-export.d.ts +2 -2
  294. package/dist/tools/handlers/local.d.ts +3 -30
  295. package/dist/tools/handlers/local.js +14 -3
  296. package/dist/tools/handlers/messenger.d.ts +1 -1
  297. package/dist/tools/handlers/messenger.js +2 -1
  298. package/dist/tools/handlers/onchain.d.ts +1 -1
  299. package/dist/tools/handlers/onchain.js +24 -22
  300. package/dist/tools/handlers/project.d.ts +1 -1
  301. package/dist/tools/handlers/project.js +262 -18
  302. package/dist/tools/handlers/query.d.ts +4 -4
  303. package/dist/tools/handlers/schema-query.d.ts +1 -1
  304. package/dist/tools/handlers/schema-query.js +21 -20
  305. package/dist/tools/handlers/trust.d.ts +1 -1
  306. package/dist/tools/handlers/trust.js +2 -2
  307. package/dist/tools/handlers/wip.d.ts +1 -1
  308. package/dist/tools/handlers/wip.js +1 -1
  309. package/dist/tools/index.d.ts +1 -1
  310. package/dist/tools/index.js +96 -25
  311. package/dist/tools/rules-hook.d.ts +1 -1
  312. package/dist/tools/rules-hook.js +3 -2
  313. package/dist/tools/shared.d.ts +13 -22
  314. package/dist/tools/types.d.ts +5 -5
  315. package/dist/tools/wrap.d.ts +10 -2
  316. package/dist/tools/wrap.js +212 -0
  317. package/package.json +3 -3
@@ -1,21 +1,1427 @@
1
1
  import { z } from "zod";
2
+ export declare const ProjectObjectTypeEnum: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
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"]>;
2
4
  export declare const ProjectOperationInputSchema: z.ZodObject<{
3
- action: z.ZodEnum<["list_projects", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph"]>;
5
+ action: z.ZodEnum<["list_projects", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph", "analyze_intent", "aggregate_risks", "generate_deployment_doc", "trace_substeps"]>;
4
6
  project: z.ZodOptional<z.ZodString>;
7
+ version: z.ZodOptional<z.ZodString>;
5
8
  object: z.ZodOptional<z.ZodString>;
9
+ user_intent: z.ZodOptional<z.ZodString>;
10
+ industry: z.ZodOptional<z.ZodEnum<["general", "retail", "service", "rental", "freelance", "education", "travel", "subscription", "custom"]>>;
11
+ target_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ puzzles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
13
+ puzzle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ completeness: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ missing_dimensions: z.ZodArray<z.ZodString, "many">;
16
+ }, "strict", z.ZodTypeAny, {
17
+ puzzle: Record<string, unknown>;
18
+ completeness: Record<string, unknown>;
19
+ missing_dimensions: string[];
20
+ }, {
21
+ puzzle: Record<string, unknown>;
22
+ completeness: Record<string, unknown>;
23
+ missing_dimensions: string[];
24
+ }>>>;
25
+ severity_threshold: z.ZodOptional<z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]>>;
26
+ user_confirmed_high_risks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ business_intent: z.ZodOptional<z.ZodString>;
28
+ author: z.ZodOptional<z.ZodString>;
29
+ objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
30
+ entry_id: z.ZodString;
31
+ object_type: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
32
+ name: z.ZodString;
33
+ reused_from: z.ZodOptional<z.ZodString>;
34
+ publish_required: z.ZodBoolean;
35
+ description: z.ZodOptional<z.ZodString>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ name: string;
38
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
39
+ entry_id: string;
40
+ publish_required: boolean;
41
+ description?: string | undefined;
42
+ reused_from?: string | undefined;
43
+ }, {
44
+ name: string;
45
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
46
+ entry_id: string;
47
+ publish_required: boolean;
48
+ description?: string | undefined;
49
+ reused_from?: string | undefined;
50
+ }>, "many">>;
51
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ from: z.ZodString;
53
+ to: z.ZodString;
54
+ edge_kind: z.ZodEnum<["machine", "order_allocators", "arbitrations", "compensation_fund", "rewards", "buy_guard", "permission", "guard", "prev", "next", "forward", "parent", "service", "progress", "arbitration", "sub_order", "references"]>;
55
+ field_path: z.ZodString;
56
+ required_at_publish: z.ZodBoolean;
57
+ }, "strict", z.ZodTypeAny, {
58
+ from: string;
59
+ to: string;
60
+ edge_kind: "parent" | "permission" | "guard" | "compensation_fund" | "buy_guard" | "service" | "machine" | "order_allocators" | "arbitration" | "progress" | "rewards" | "arbitrations" | "forward" | "prev" | "next" | "references" | "sub_order";
61
+ field_path: string;
62
+ required_at_publish: boolean;
63
+ }, {
64
+ from: string;
65
+ to: string;
66
+ edge_kind: "parent" | "permission" | "guard" | "compensation_fund" | "buy_guard" | "service" | "machine" | "order_allocators" | "arbitration" | "progress" | "rewards" | "arbitrations" | "forward" | "prev" | "next" | "references" | "sub_order";
67
+ field_path: string;
68
+ required_at_publish: boolean;
69
+ }>, "many">>;
70
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
+ step: z.ZodNumber;
72
+ object_type: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
73
+ operation: z.ZodString;
74
+ substep_count: z.ZodNumber;
75
+ depends_on: z.ZodArray<z.ZodNumber, "many">;
76
+ entry_id: z.ZodString;
77
+ network_phase: z.ZodEnum<["testnet", "mainnet", "both"]>;
78
+ }, "strict", z.ZodTypeAny, {
79
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
80
+ operation: string;
81
+ step: number;
82
+ entry_id: string;
83
+ substep_count: number;
84
+ depends_on: number[];
85
+ network_phase: "testnet" | "mainnet" | "both";
86
+ }, {
87
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
88
+ operation: string;
89
+ step: number;
90
+ entry_id: string;
91
+ substep_count: number;
92
+ depends_on: number[];
93
+ network_phase: "testnet" | "mainnet" | "both";
94
+ }>, "many">>;
95
+ scenarios: z.ZodOptional<z.ZodArray<z.ZodObject<{
96
+ scenario_id: z.ZodString;
97
+ description: z.ZodString;
98
+ primary_object: z.ZodString;
99
+ supporting_objects: z.ZodArray<z.ZodString, "many">;
100
+ test_step_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ }, "strict", z.ZodTypeAny, {
102
+ description: string;
103
+ scenario_id: string;
104
+ primary_object: string;
105
+ supporting_objects: string[];
106
+ test_step_refs?: string[] | undefined;
107
+ }, {
108
+ description: string;
109
+ scenario_id: string;
110
+ primary_object: string;
111
+ supporting_objects: string[];
112
+ test_step_refs?: string[] | undefined;
113
+ }>, "many">>;
114
+ risk_status: z.ZodOptional<z.ZodEnum<["RISK_PASSED", "RISK_BLOCKED", "RISK_PENDING_CONFIRM", "RISK_CANCELLED"]>>;
115
+ risk_critical_count: z.ZodOptional<z.ZodNumber>;
116
+ risk_high_count: z.ZodOptional<z.ZodNumber>;
117
+ run_scanner: z.ZodOptional<z.ZodBoolean>;
118
+ network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
119
+ substeps: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ step_id: z.ZodString;
121
+ parent_step: z.ZodString;
122
+ object_type: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
123
+ entry_id: z.ZodString;
124
+ operation_type: z.ZodString;
125
+ network: z.ZodEnum<["testnet", "mainnet"]>;
126
+ input: z.ZodObject<{
127
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
128
+ input_refs: z.ZodArray<z.ZodString, "many">;
129
+ }, "strip", z.ZodTypeAny, {
130
+ data: Record<string, unknown>;
131
+ input_refs: string[];
132
+ }, {
133
+ data: Record<string, unknown>;
134
+ input_refs: string[];
135
+ }>;
136
+ output: z.ZodOptional<z.ZodObject<{
137
+ object_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
138
+ tx_digest: z.ZodOptional<z.ZodOptional<z.ZodString>>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ object_id?: string | undefined;
141
+ tx_digest?: string | undefined;
142
+ }, {
143
+ object_id?: string | undefined;
144
+ tx_digest?: string | undefined;
145
+ }>>;
146
+ timestamp: z.ZodNumber;
147
+ status: z.ZodEnum<["PENDING", "SUCCESS", "FAILED", "SKIPPED"]>;
148
+ failure_reason: z.ZodOptional<z.ZodString>;
149
+ dependencies: z.ZodObject<{
150
+ input_refs: z.ZodArray<z.ZodString, "many">;
151
+ output_refs: z.ZodArray<z.ZodObject<{
152
+ substep_id: z.ZodString;
153
+ field_path: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ field_path: string;
156
+ substep_id: string;
157
+ }, {
158
+ field_path: string;
159
+ substep_id: string;
160
+ }>, "many">;
161
+ }, "strip", z.ZodTypeAny, {
162
+ input_refs: string[];
163
+ output_refs: {
164
+ field_path: string;
165
+ substep_id: string;
166
+ }[];
167
+ }, {
168
+ input_refs: string[];
169
+ output_refs: {
170
+ field_path: string;
171
+ substep_id: string;
172
+ }[];
173
+ }>;
174
+ retry_info: z.ZodOptional<z.ZodObject<{
175
+ original_step_id: z.ZodString;
176
+ retry_count: z.ZodNumber;
177
+ retry_reason: z.ZodString;
178
+ }, "strip", z.ZodTypeAny, {
179
+ original_step_id: string;
180
+ retry_count: number;
181
+ retry_reason: string;
182
+ }, {
183
+ original_step_id: string;
184
+ retry_count: number;
185
+ retry_reason: string;
186
+ }>>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ status: "PENDING" | "SUCCESS" | "FAILED" | "SKIPPED";
189
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
190
+ network: "testnet" | "mainnet";
191
+ dependencies: {
192
+ input_refs: string[];
193
+ output_refs: {
194
+ field_path: string;
195
+ substep_id: string;
196
+ }[];
197
+ };
198
+ input: {
199
+ data: Record<string, unknown>;
200
+ input_refs: string[];
201
+ };
202
+ timestamp: number;
203
+ operation_type: string;
204
+ entry_id: string;
205
+ step_id: string;
206
+ parent_step: string;
207
+ output?: {
208
+ object_id?: string | undefined;
209
+ tx_digest?: string | undefined;
210
+ } | undefined;
211
+ failure_reason?: string | undefined;
212
+ retry_info?: {
213
+ original_step_id: string;
214
+ retry_count: number;
215
+ retry_reason: string;
216
+ } | undefined;
217
+ }, {
218
+ status: "PENDING" | "SUCCESS" | "FAILED" | "SKIPPED";
219
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
220
+ network: "testnet" | "mainnet";
221
+ dependencies: {
222
+ input_refs: string[];
223
+ output_refs: {
224
+ field_path: string;
225
+ substep_id: string;
226
+ }[];
227
+ };
228
+ input: {
229
+ data: Record<string, unknown>;
230
+ input_refs: string[];
231
+ };
232
+ timestamp: number;
233
+ operation_type: string;
234
+ entry_id: string;
235
+ step_id: string;
236
+ parent_step: string;
237
+ output?: {
238
+ object_id?: string | undefined;
239
+ tx_digest?: string | undefined;
240
+ } | undefined;
241
+ failure_reason?: string | undefined;
242
+ retry_info?: {
243
+ original_step_id: string;
244
+ retry_count: number;
245
+ retry_reason: string;
246
+ } | undefined;
247
+ }>, "many">>;
6
248
  }, "strict", z.ZodTypeAny, {
7
- action: "dependencies" | "list_projects" | "list_objects" | "shareable" | "referenced_by" | "pre_publish_check" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph";
249
+ action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps";
8
250
  object?: string | undefined;
251
+ version?: string | undefined;
252
+ network?: "testnet" | "mainnet" | undefined;
9
253
  project?: string | undefined;
254
+ objects?: {
255
+ name: string;
256
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
257
+ entry_id: string;
258
+ publish_required: boolean;
259
+ description?: string | undefined;
260
+ reused_from?: string | undefined;
261
+ }[] | undefined;
262
+ industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
263
+ user_intent?: string | undefined;
264
+ target_objects?: string[] | undefined;
265
+ puzzles?: Record<string, {
266
+ puzzle: Record<string, unknown>;
267
+ completeness: Record<string, unknown>;
268
+ missing_dimensions: string[];
269
+ }> | undefined;
270
+ severity_threshold?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO" | undefined;
271
+ user_confirmed_high_risks?: string[] | undefined;
272
+ business_intent?: string | undefined;
273
+ author?: string | undefined;
274
+ edges?: {
275
+ from: string;
276
+ to: string;
277
+ edge_kind: "parent" | "permission" | "guard" | "compensation_fund" | "buy_guard" | "service" | "machine" | "order_allocators" | "arbitration" | "progress" | "rewards" | "arbitrations" | "forward" | "prev" | "next" | "references" | "sub_order";
278
+ field_path: string;
279
+ required_at_publish: boolean;
280
+ }[] | undefined;
281
+ steps?: {
282
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
283
+ operation: string;
284
+ step: number;
285
+ entry_id: string;
286
+ substep_count: number;
287
+ depends_on: number[];
288
+ network_phase: "testnet" | "mainnet" | "both";
289
+ }[] | undefined;
290
+ scenarios?: {
291
+ description: string;
292
+ scenario_id: string;
293
+ primary_object: string;
294
+ supporting_objects: string[];
295
+ test_step_refs?: string[] | undefined;
296
+ }[] | undefined;
297
+ risk_status?: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED" | undefined;
298
+ risk_critical_count?: number | undefined;
299
+ risk_high_count?: number | undefined;
300
+ run_scanner?: boolean | undefined;
301
+ substeps?: {
302
+ status: "PENDING" | "SUCCESS" | "FAILED" | "SKIPPED";
303
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
304
+ network: "testnet" | "mainnet";
305
+ dependencies: {
306
+ input_refs: string[];
307
+ output_refs: {
308
+ field_path: string;
309
+ substep_id: string;
310
+ }[];
311
+ };
312
+ input: {
313
+ data: Record<string, unknown>;
314
+ input_refs: string[];
315
+ };
316
+ timestamp: number;
317
+ operation_type: string;
318
+ entry_id: string;
319
+ step_id: string;
320
+ parent_step: string;
321
+ output?: {
322
+ object_id?: string | undefined;
323
+ tx_digest?: string | undefined;
324
+ } | undefined;
325
+ failure_reason?: string | undefined;
326
+ retry_info?: {
327
+ original_step_id: string;
328
+ retry_count: number;
329
+ retry_reason: string;
330
+ } | undefined;
331
+ }[] | undefined;
10
332
  }, {
11
- action: "dependencies" | "list_projects" | "list_objects" | "shareable" | "referenced_by" | "pre_publish_check" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph";
333
+ action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps";
12
334
  object?: string | undefined;
335
+ version?: string | undefined;
336
+ network?: "testnet" | "mainnet" | undefined;
13
337
  project?: string | undefined;
338
+ objects?: {
339
+ name: string;
340
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
341
+ entry_id: string;
342
+ publish_required: boolean;
343
+ description?: string | undefined;
344
+ reused_from?: string | undefined;
345
+ }[] | undefined;
346
+ industry?: "custom" | "service" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general" | undefined;
347
+ user_intent?: string | undefined;
348
+ target_objects?: string[] | undefined;
349
+ puzzles?: Record<string, {
350
+ puzzle: Record<string, unknown>;
351
+ completeness: Record<string, unknown>;
352
+ missing_dimensions: string[];
353
+ }> | undefined;
354
+ severity_threshold?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO" | undefined;
355
+ user_confirmed_high_risks?: string[] | undefined;
356
+ business_intent?: string | undefined;
357
+ author?: string | undefined;
358
+ edges?: {
359
+ from: string;
360
+ to: string;
361
+ edge_kind: "parent" | "permission" | "guard" | "compensation_fund" | "buy_guard" | "service" | "machine" | "order_allocators" | "arbitration" | "progress" | "rewards" | "arbitrations" | "forward" | "prev" | "next" | "references" | "sub_order";
362
+ field_path: string;
363
+ required_at_publish: boolean;
364
+ }[] | undefined;
365
+ steps?: {
366
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
367
+ operation: string;
368
+ step: number;
369
+ entry_id: string;
370
+ substep_count: number;
371
+ depends_on: number[];
372
+ network_phase: "testnet" | "mainnet" | "both";
373
+ }[] | undefined;
374
+ scenarios?: {
375
+ description: string;
376
+ scenario_id: string;
377
+ primary_object: string;
378
+ supporting_objects: string[];
379
+ test_step_refs?: string[] | undefined;
380
+ }[] | undefined;
381
+ risk_status?: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED" | undefined;
382
+ risk_critical_count?: number | undefined;
383
+ risk_high_count?: number | undefined;
384
+ run_scanner?: boolean | undefined;
385
+ substeps?: {
386
+ status: "PENDING" | "SUCCESS" | "FAILED" | "SKIPPED";
387
+ object_type: "payment" | "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "treasury" | "order" | "demand" | "progress" | "arb" | "repository" | "contact" | "personal" | "proof";
388
+ network: "testnet" | "mainnet";
389
+ dependencies: {
390
+ input_refs: string[];
391
+ output_refs: {
392
+ field_path: string;
393
+ substep_id: string;
394
+ }[];
395
+ };
396
+ input: {
397
+ data: Record<string, unknown>;
398
+ input_refs: string[];
399
+ };
400
+ timestamp: number;
401
+ operation_type: string;
402
+ entry_id: string;
403
+ step_id: string;
404
+ parent_step: string;
405
+ output?: {
406
+ object_id?: string | undefined;
407
+ tx_digest?: string | undefined;
408
+ } | undefined;
409
+ failure_reason?: string | undefined;
410
+ retry_info?: {
411
+ original_step_id: string;
412
+ retry_count: number;
413
+ retry_reason: string;
414
+ } | undefined;
415
+ }[] | undefined;
14
416
  }>;
15
417
  export declare const ProjectOperationOutputSchema: z.ZodObject<{
16
- result: z.ZodAny;
418
+ result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
419
+ action: z.ZodLiteral<string>;
420
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
421
+ }, "strip", z.ZodTypeAny, {
422
+ action: string;
423
+ items: Record<string, unknown>[];
424
+ }, {
425
+ action: string;
426
+ items: Record<string, unknown>[];
427
+ }>, z.ZodObject<{
428
+ action: z.ZodLiteral<string>;
429
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
430
+ }, "strip", z.ZodTypeAny, {
431
+ action: string;
432
+ items: Record<string, unknown>[];
433
+ }, {
434
+ action: string;
435
+ items: Record<string, unknown>[];
436
+ }>, z.ZodObject<{
437
+ action: z.ZodLiteral<string>;
438
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
439
+ }, "strip", z.ZodTypeAny, {
440
+ action: string;
441
+ items: Record<string, unknown>[];
442
+ }, {
443
+ action: string;
444
+ items: Record<string, unknown>[];
445
+ }>, z.ZodObject<{
446
+ action: z.ZodLiteral<string>;
447
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
448
+ }, "strip", z.ZodTypeAny, {
449
+ action: string;
450
+ items: Record<string, unknown>[];
451
+ }, {
452
+ action: string;
453
+ items: Record<string, unknown>[];
454
+ }>, z.ZodObject<{
455
+ action: z.ZodLiteral<string>;
456
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
457
+ }, "strip", z.ZodTypeAny, {
458
+ action: string;
459
+ items: Record<string, unknown>[];
460
+ }, {
461
+ action: string;
462
+ items: Record<string, unknown>[];
463
+ }>, z.ZodObject<{
464
+ action: z.ZodLiteral<"pre_publish_check">;
465
+ warnings: z.ZodArray<z.ZodString, "many">;
466
+ }, "strip", z.ZodTypeAny, {
467
+ action: "pre_publish_check";
468
+ warnings: string[];
469
+ }, {
470
+ action: "pre_publish_check";
471
+ warnings: string[];
472
+ }>, z.ZodObject<{
473
+ action: z.ZodLiteral<string>;
474
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
475
+ }, "strip", z.ZodTypeAny, {
476
+ action: string;
477
+ items: Record<string, unknown>[];
478
+ }, {
479
+ action: string;
480
+ items: Record<string, unknown>[];
481
+ }>, z.ZodObject<{
482
+ action: z.ZodLiteral<"graph_stats">;
483
+ stats: z.ZodRecord<z.ZodString, z.ZodUnknown>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ action: "graph_stats";
486
+ stats: Record<string, unknown>;
487
+ }, {
488
+ action: "graph_stats";
489
+ stats: Record<string, unknown>;
490
+ }>, z.ZodObject<{
491
+ action: z.ZodLiteral<"save_graph">;
492
+ saved: z.ZodLiteral<true>;
493
+ path: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ path: string;
496
+ action: "save_graph";
497
+ saved: true;
498
+ }, {
499
+ path: string;
500
+ action: "save_graph";
501
+ saved: true;
502
+ }>, z.ZodObject<{
503
+ action: z.ZodLiteral<"load_graph">;
504
+ loaded: z.ZodBoolean;
505
+ }, "strip", z.ZodTypeAny, {
506
+ action: "load_graph";
507
+ loaded: boolean;
508
+ }, {
509
+ action: "load_graph";
510
+ loaded: boolean;
511
+ }>, z.ZodObject<{
512
+ action: z.ZodLiteral<"analyze_intent">;
513
+ intent_parsed: z.ZodObject<{
514
+ primary_object: z.ZodString;
515
+ secondary_objects: z.ZodArray<z.ZodString, "many">;
516
+ detected_scenes: z.ZodArray<z.ZodObject<{
517
+ object: z.ZodString;
518
+ scene_id: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ object: string;
521
+ scene_id: string;
522
+ }, {
523
+ object: string;
524
+ scene_id: string;
525
+ }>, "many">;
526
+ industry: z.ZodString;
527
+ keyword_matches: z.ZodArray<z.ZodObject<{
528
+ keyword: z.ZodString;
529
+ category: z.ZodString;
530
+ matched_objects: z.ZodArray<z.ZodString, "many">;
531
+ required_level: z.ZodEnum<["R", "C", "OPTIONAL"]>;
532
+ match_count: z.ZodNumber;
533
+ }, "strip", z.ZodTypeAny, {
534
+ category: string;
535
+ keyword: string;
536
+ matched_objects: string[];
537
+ required_level: "C" | "R" | "OPTIONAL";
538
+ match_count: number;
539
+ }, {
540
+ category: string;
541
+ keyword: string;
542
+ matched_objects: string[];
543
+ required_level: "C" | "R" | "OPTIONAL";
544
+ match_count: number;
545
+ }>, "many">;
546
+ }, "strip", z.ZodTypeAny, {
547
+ industry: string;
548
+ primary_object: string;
549
+ secondary_objects: string[];
550
+ detected_scenes: {
551
+ object: string;
552
+ scene_id: string;
553
+ }[];
554
+ keyword_matches: {
555
+ category: string;
556
+ keyword: string;
557
+ matched_objects: string[];
558
+ required_level: "C" | "R" | "OPTIONAL";
559
+ match_count: number;
560
+ }[];
561
+ }, {
562
+ industry: string;
563
+ primary_object: string;
564
+ secondary_objects: string[];
565
+ detected_scenes: {
566
+ object: string;
567
+ scene_id: string;
568
+ }[];
569
+ keyword_matches: {
570
+ category: string;
571
+ keyword: string;
572
+ matched_objects: string[];
573
+ required_level: "C" | "R" | "OPTIONAL";
574
+ match_count: number;
575
+ }[];
576
+ }>;
577
+ puzzles: z.ZodRecord<z.ZodString, z.ZodObject<{
578
+ puzzle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
579
+ completeness: z.ZodRecord<z.ZodString, z.ZodUnknown>;
580
+ missing_dimensions: z.ZodArray<z.ZodString, "many">;
581
+ }, "strict", z.ZodTypeAny, {
582
+ puzzle: Record<string, unknown>;
583
+ completeness: Record<string, unknown>;
584
+ missing_dimensions: string[];
585
+ }, {
586
+ puzzle: Record<string, unknown>;
587
+ completeness: Record<string, unknown>;
588
+ missing_dimensions: string[];
589
+ }>>;
590
+ overall_completeness: z.ZodEnum<["complete", "partial", "empty"]>;
591
+ next_step: z.ZodString;
592
+ next_action: z.ZodEnum<["aggregate_risks", "none"]>;
593
+ warnings: z.ZodArray<z.ZodString, "many">;
594
+ }, "strict", z.ZodTypeAny, {
595
+ action: "analyze_intent";
596
+ warnings: string[];
597
+ puzzles: Record<string, {
598
+ puzzle: Record<string, unknown>;
599
+ completeness: Record<string, unknown>;
600
+ missing_dimensions: string[];
601
+ }>;
602
+ intent_parsed: {
603
+ industry: string;
604
+ primary_object: string;
605
+ secondary_objects: string[];
606
+ detected_scenes: {
607
+ object: string;
608
+ scene_id: string;
609
+ }[];
610
+ keyword_matches: {
611
+ category: string;
612
+ keyword: string;
613
+ matched_objects: string[];
614
+ required_level: "C" | "R" | "OPTIONAL";
615
+ match_count: number;
616
+ }[];
617
+ };
618
+ overall_completeness: "partial" | "complete" | "empty";
619
+ next_step: string;
620
+ next_action: "none" | "aggregate_risks";
621
+ }, {
622
+ action: "analyze_intent";
623
+ warnings: string[];
624
+ puzzles: Record<string, {
625
+ puzzle: Record<string, unknown>;
626
+ completeness: Record<string, unknown>;
627
+ missing_dimensions: string[];
628
+ }>;
629
+ intent_parsed: {
630
+ industry: string;
631
+ primary_object: string;
632
+ secondary_objects: string[];
633
+ detected_scenes: {
634
+ object: string;
635
+ scene_id: string;
636
+ }[];
637
+ keyword_matches: {
638
+ category: string;
639
+ keyword: string;
640
+ matched_objects: string[];
641
+ required_level: "C" | "R" | "OPTIONAL";
642
+ match_count: number;
643
+ }[];
644
+ };
645
+ overall_completeness: "partial" | "complete" | "empty";
646
+ next_step: string;
647
+ next_action: "none" | "aggregate_risks";
648
+ }>, z.ZodObject<{
649
+ action: z.ZodLiteral<"aggregate_risks">;
650
+ namespace: z.ZodObject<{
651
+ prefix: z.ZodString;
652
+ version: z.ZodString;
653
+ industry: z.ZodOptional<z.ZodString>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ version: string;
656
+ prefix: string;
657
+ industry?: string | undefined;
658
+ }, {
659
+ version: string;
660
+ prefix: string;
661
+ industry?: string | undefined;
662
+ }>;
663
+ findings: z.ZodArray<z.ZodObject<{
664
+ risk_rule_id: z.ZodString;
665
+ object_type: z.ZodString;
666
+ entry_id: z.ZodString;
667
+ severity: z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]>;
668
+ message: z.ZodString;
669
+ fix_suggestion: z.ZodString;
670
+ details: z.ZodOptional<z.ZodObject<{
671
+ field_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
672
+ rule_source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ field_path?: string | undefined;
675
+ rule_source?: string | undefined;
676
+ }, {
677
+ field_path?: string | undefined;
678
+ rule_source?: string | undefined;
679
+ }>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ message: string;
682
+ object_type: string;
683
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
684
+ entry_id: string;
685
+ risk_rule_id: string;
686
+ fix_suggestion: string;
687
+ details?: {
688
+ field_path?: string | undefined;
689
+ rule_source?: string | undefined;
690
+ } | undefined;
691
+ }, {
692
+ message: string;
693
+ object_type: string;
694
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
695
+ entry_id: string;
696
+ risk_rule_id: string;
697
+ fix_suggestion: string;
698
+ details?: {
699
+ field_path?: string | undefined;
700
+ rule_source?: string | undefined;
701
+ } | undefined;
702
+ }>, "many">;
703
+ severity_summary: z.ZodObject<{
704
+ CRITICAL: z.ZodNumber;
705
+ HIGH: z.ZodNumber;
706
+ MEDIUM: z.ZodNumber;
707
+ LOW: z.ZodNumber;
708
+ INFO: z.ZodNumber;
709
+ }, "strip", z.ZodTypeAny, {
710
+ CRITICAL: number;
711
+ HIGH: number;
712
+ MEDIUM: number;
713
+ LOW: number;
714
+ INFO: number;
715
+ }, {
716
+ CRITICAL: number;
717
+ HIGH: number;
718
+ MEDIUM: number;
719
+ LOW: number;
720
+ INFO: number;
721
+ }>;
722
+ status: z.ZodEnum<["RISK_PASSED", "RISK_BLOCKED", "RISK_PENDING_CONFIRM", "RISK_CANCELLED"]>;
723
+ pending_confirmations: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
+ risk_rule_id: z.ZodString;
725
+ description: z.ZodString;
726
+ fix_suggestion: z.ZodString;
727
+ object_type: z.ZodString;
728
+ entry_id: z.ZodString;
729
+ }, "strip", z.ZodTypeAny, {
730
+ object_type: string;
731
+ description: string;
732
+ entry_id: string;
733
+ risk_rule_id: string;
734
+ fix_suggestion: string;
735
+ }, {
736
+ object_type: string;
737
+ description: string;
738
+ entry_id: string;
739
+ risk_rule_id: string;
740
+ fix_suggestion: string;
741
+ }>, "many">>;
742
+ calibrated_at: z.ZodNumber;
743
+ warnings: z.ZodArray<z.ZodString, "many">;
744
+ can_proceed: z.ZodBoolean;
745
+ next_action: z.ZodEnum<["generate_deployment_doc", "fix_risks", "none"]>;
746
+ user_action_required: z.ZodString;
747
+ }, "strict", z.ZodTypeAny, {
748
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
749
+ action: "aggregate_risks";
750
+ warnings: string[];
751
+ user_action_required: string;
752
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
753
+ namespace: {
754
+ version: string;
755
+ prefix: string;
756
+ industry?: string | undefined;
757
+ };
758
+ findings: {
759
+ message: string;
760
+ object_type: string;
761
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
762
+ entry_id: string;
763
+ risk_rule_id: string;
764
+ fix_suggestion: string;
765
+ details?: {
766
+ field_path?: string | undefined;
767
+ rule_source?: string | undefined;
768
+ } | undefined;
769
+ }[];
770
+ severity_summary: {
771
+ CRITICAL: number;
772
+ HIGH: number;
773
+ MEDIUM: number;
774
+ LOW: number;
775
+ INFO: number;
776
+ };
777
+ calibrated_at: number;
778
+ can_proceed: boolean;
779
+ pending_confirmations?: {
780
+ object_type: string;
781
+ description: string;
782
+ entry_id: string;
783
+ risk_rule_id: string;
784
+ fix_suggestion: string;
785
+ }[] | undefined;
786
+ }, {
787
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
788
+ action: "aggregate_risks";
789
+ warnings: string[];
790
+ user_action_required: string;
791
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
792
+ namespace: {
793
+ version: string;
794
+ prefix: string;
795
+ industry?: string | undefined;
796
+ };
797
+ findings: {
798
+ message: string;
799
+ object_type: string;
800
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
801
+ entry_id: string;
802
+ risk_rule_id: string;
803
+ fix_suggestion: string;
804
+ details?: {
805
+ field_path?: string | undefined;
806
+ rule_source?: string | undefined;
807
+ } | undefined;
808
+ }[];
809
+ severity_summary: {
810
+ CRITICAL: number;
811
+ HIGH: number;
812
+ MEDIUM: number;
813
+ LOW: number;
814
+ INFO: number;
815
+ };
816
+ calibrated_at: number;
817
+ can_proceed: boolean;
818
+ pending_confirmations?: {
819
+ object_type: string;
820
+ description: string;
821
+ entry_id: string;
822
+ risk_rule_id: string;
823
+ fix_suggestion: string;
824
+ }[] | undefined;
825
+ }>, z.ZodObject<{
826
+ action: z.ZodLiteral<"generate_deployment_doc">;
827
+ markdown: z.ZodString;
828
+ meta: z.ZodObject<{
829
+ project_prefix: z.ZodString;
830
+ version: z.ZodString;
831
+ generated_at: z.ZodString;
832
+ object_count: z.ZodNumber;
833
+ step_count: z.ZodNumber;
834
+ }, "strip", z.ZodTypeAny, {
835
+ version: string;
836
+ project_prefix: string;
837
+ generated_at: string;
838
+ object_count: number;
839
+ step_count: number;
840
+ }, {
841
+ version: string;
842
+ project_prefix: string;
843
+ generated_at: string;
844
+ object_count: number;
845
+ step_count: number;
846
+ }>;
847
+ validation: z.ZodOptional<z.ZodObject<{
848
+ valid: z.ZodBoolean;
849
+ checks: z.ZodArray<z.ZodObject<{
850
+ check_id: z.ZodString;
851
+ description: z.ZodString;
852
+ status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
853
+ notes: z.ZodOptional<z.ZodString>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ status: "PASS" | "FAIL" | "WARN";
856
+ description: string;
857
+ check_id: string;
858
+ notes?: string | undefined;
859
+ }, {
860
+ status: "PASS" | "FAIL" | "WARN";
861
+ description: string;
862
+ check_id: string;
863
+ notes?: string | undefined;
864
+ }>, "many">;
865
+ errors: z.ZodArray<z.ZodString, "many">;
866
+ }, "strip", z.ZodTypeAny, {
867
+ valid: boolean;
868
+ errors: string[];
869
+ checks: {
870
+ status: "PASS" | "FAIL" | "WARN";
871
+ description: string;
872
+ check_id: string;
873
+ notes?: string | undefined;
874
+ }[];
875
+ }, {
876
+ valid: boolean;
877
+ errors: string[];
878
+ checks: {
879
+ status: "PASS" | "FAIL" | "WARN";
880
+ description: string;
881
+ check_id: string;
882
+ notes?: string | undefined;
883
+ }[];
884
+ }>>;
885
+ can_proceed: z.ZodBoolean;
886
+ next_action: z.ZodEnum<["trace_substeps", "fix_doc_errors", "none"]>;
887
+ user_action_required: z.ZodString;
888
+ }, "strict", z.ZodTypeAny, {
889
+ markdown: string;
890
+ meta: {
891
+ version: string;
892
+ project_prefix: string;
893
+ generated_at: string;
894
+ object_count: number;
895
+ step_count: number;
896
+ };
897
+ action: "generate_deployment_doc";
898
+ user_action_required: string;
899
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
900
+ can_proceed: boolean;
901
+ validation?: {
902
+ valid: boolean;
903
+ errors: string[];
904
+ checks: {
905
+ status: "PASS" | "FAIL" | "WARN";
906
+ description: string;
907
+ check_id: string;
908
+ notes?: string | undefined;
909
+ }[];
910
+ } | undefined;
911
+ }, {
912
+ markdown: string;
913
+ meta: {
914
+ version: string;
915
+ project_prefix: string;
916
+ generated_at: string;
917
+ object_count: number;
918
+ step_count: number;
919
+ };
920
+ action: "generate_deployment_doc";
921
+ user_action_required: string;
922
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
923
+ can_proceed: boolean;
924
+ validation?: {
925
+ valid: boolean;
926
+ errors: string[];
927
+ checks: {
928
+ status: "PASS" | "FAIL" | "WARN";
929
+ description: string;
930
+ check_id: string;
931
+ notes?: string | undefined;
932
+ }[];
933
+ } | undefined;
934
+ }>, z.ZodObject<{
935
+ action: z.ZodLiteral<"trace_substeps">;
936
+ namespace: z.ZodObject<{
937
+ prefix: z.ZodString;
938
+ version: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ version: string;
941
+ prefix: string;
942
+ }, {
943
+ version: string;
944
+ prefix: string;
945
+ }>;
946
+ network: z.ZodEnum<["testnet", "mainnet"]>;
947
+ coherent: z.ZodBoolean;
948
+ dangling_inputs: z.ZodArray<z.ZodObject<{
949
+ substep_id: z.ZodString;
950
+ missing_ref: z.ZodString;
951
+ field_path: z.ZodString;
952
+ }, "strip", z.ZodTypeAny, {
953
+ field_path: string;
954
+ substep_id: string;
955
+ missing_ref: string;
956
+ }, {
957
+ field_path: string;
958
+ substep_id: string;
959
+ missing_ref: string;
960
+ }>, "many">;
961
+ circular_refs: z.ZodArray<z.ZodObject<{
962
+ cycle: z.ZodArray<z.ZodString, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ cycle: string[];
965
+ }, {
966
+ cycle: string[];
967
+ }>, "many">;
968
+ missing_outputs: z.ZodArray<z.ZodObject<{
969
+ substep_id: z.ZodString;
970
+ expected_field: z.ZodString;
971
+ dependent_substeps: z.ZodArray<z.ZodString, "many">;
972
+ }, "strip", z.ZodTypeAny, {
973
+ substep_id: string;
974
+ expected_field: string;
975
+ dependent_substeps: string[];
976
+ }, {
977
+ substep_id: string;
978
+ expected_field: string;
979
+ dependent_substeps: string[];
980
+ }>, "many">;
981
+ cross_step_breaks: z.ZodArray<z.ZodObject<{
982
+ source_step: z.ZodString;
983
+ target_step: z.ZodString;
984
+ missing_field: z.ZodString;
985
+ }, "strip", z.ZodTypeAny, {
986
+ source_step: string;
987
+ target_step: string;
988
+ missing_field: string;
989
+ }, {
990
+ source_step: string;
991
+ target_step: string;
992
+ missing_field: string;
993
+ }>, "many">;
994
+ step_details: z.ZodArray<z.ZodObject<{
995
+ parent_step: z.ZodString;
996
+ total_substeps: z.ZodNumber;
997
+ successful: z.ZodNumber;
998
+ failed: z.ZodNumber;
999
+ pending: z.ZodNumber;
1000
+ skipped: z.ZodNumber;
1001
+ substep_ids: z.ZodArray<z.ZodString, "many">;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ failed: number;
1004
+ pending: number;
1005
+ parent_step: string;
1006
+ total_substeps: number;
1007
+ successful: number;
1008
+ skipped: number;
1009
+ substep_ids: string[];
1010
+ }, {
1011
+ failed: number;
1012
+ pending: number;
1013
+ parent_step: string;
1014
+ total_substeps: number;
1015
+ successful: number;
1016
+ skipped: number;
1017
+ substep_ids: string[];
1018
+ }>, "many">;
1019
+ topological_order: z.ZodArray<z.ZodString, "many">;
1020
+ d10_check: z.ZodObject<{
1021
+ check_id: z.ZodLiteral<"D-10">;
1022
+ description: z.ZodString;
1023
+ status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ status: "PASS" | "FAIL" | "WARN";
1026
+ description: string;
1027
+ check_id: "D-10";
1028
+ }, {
1029
+ status: "PASS" | "FAIL" | "WARN";
1030
+ description: string;
1031
+ check_id: "D-10";
1032
+ }>;
1033
+ can_proceed: z.ZodBoolean;
1034
+ next_action: z.ZodEnum<["deploy", "fix_substeps", "none"]>;
1035
+ user_action_required: z.ZodString;
1036
+ }, "strict", z.ZodTypeAny, {
1037
+ network: "testnet" | "mainnet";
1038
+ action: "trace_substeps";
1039
+ user_action_required: string;
1040
+ topological_order: string[];
1041
+ next_action: "none" | "deploy" | "fix_substeps";
1042
+ namespace: {
1043
+ version: string;
1044
+ prefix: string;
1045
+ };
1046
+ can_proceed: boolean;
1047
+ coherent: boolean;
1048
+ dangling_inputs: {
1049
+ field_path: string;
1050
+ substep_id: string;
1051
+ missing_ref: string;
1052
+ }[];
1053
+ circular_refs: {
1054
+ cycle: string[];
1055
+ }[];
1056
+ missing_outputs: {
1057
+ substep_id: string;
1058
+ expected_field: string;
1059
+ dependent_substeps: string[];
1060
+ }[];
1061
+ cross_step_breaks: {
1062
+ source_step: string;
1063
+ target_step: string;
1064
+ missing_field: string;
1065
+ }[];
1066
+ step_details: {
1067
+ failed: number;
1068
+ pending: number;
1069
+ parent_step: string;
1070
+ total_substeps: number;
1071
+ successful: number;
1072
+ skipped: number;
1073
+ substep_ids: string[];
1074
+ }[];
1075
+ d10_check: {
1076
+ status: "PASS" | "FAIL" | "WARN";
1077
+ description: string;
1078
+ check_id: "D-10";
1079
+ };
1080
+ }, {
1081
+ network: "testnet" | "mainnet";
1082
+ action: "trace_substeps";
1083
+ user_action_required: string;
1084
+ topological_order: string[];
1085
+ next_action: "none" | "deploy" | "fix_substeps";
1086
+ namespace: {
1087
+ version: string;
1088
+ prefix: string;
1089
+ };
1090
+ can_proceed: boolean;
1091
+ coherent: boolean;
1092
+ dangling_inputs: {
1093
+ field_path: string;
1094
+ substep_id: string;
1095
+ missing_ref: string;
1096
+ }[];
1097
+ circular_refs: {
1098
+ cycle: string[];
1099
+ }[];
1100
+ missing_outputs: {
1101
+ substep_id: string;
1102
+ expected_field: string;
1103
+ dependent_substeps: string[];
1104
+ }[];
1105
+ cross_step_breaks: {
1106
+ source_step: string;
1107
+ target_step: string;
1108
+ missing_field: string;
1109
+ }[];
1110
+ step_details: {
1111
+ failed: number;
1112
+ pending: number;
1113
+ parent_step: string;
1114
+ total_substeps: number;
1115
+ successful: number;
1116
+ skipped: number;
1117
+ substep_ids: string[];
1118
+ }[];
1119
+ d10_check: {
1120
+ status: "PASS" | "FAIL" | "WARN";
1121
+ description: string;
1122
+ check_id: "D-10";
1123
+ };
1124
+ }>]>;
17
1125
  }, "strict", z.ZodTypeAny, {
18
- result?: any;
1126
+ result: {
1127
+ action: "analyze_intent";
1128
+ warnings: string[];
1129
+ puzzles: Record<string, {
1130
+ puzzle: Record<string, unknown>;
1131
+ completeness: Record<string, unknown>;
1132
+ missing_dimensions: string[];
1133
+ }>;
1134
+ intent_parsed: {
1135
+ industry: string;
1136
+ primary_object: string;
1137
+ secondary_objects: string[];
1138
+ detected_scenes: {
1139
+ object: string;
1140
+ scene_id: string;
1141
+ }[];
1142
+ keyword_matches: {
1143
+ category: string;
1144
+ keyword: string;
1145
+ matched_objects: string[];
1146
+ required_level: "C" | "R" | "OPTIONAL";
1147
+ match_count: number;
1148
+ }[];
1149
+ };
1150
+ overall_completeness: "partial" | "complete" | "empty";
1151
+ next_step: string;
1152
+ next_action: "none" | "aggregate_risks";
1153
+ } | {
1154
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1155
+ action: "aggregate_risks";
1156
+ warnings: string[];
1157
+ user_action_required: string;
1158
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
1159
+ namespace: {
1160
+ version: string;
1161
+ prefix: string;
1162
+ industry?: string | undefined;
1163
+ };
1164
+ findings: {
1165
+ message: string;
1166
+ object_type: string;
1167
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1168
+ entry_id: string;
1169
+ risk_rule_id: string;
1170
+ fix_suggestion: string;
1171
+ details?: {
1172
+ field_path?: string | undefined;
1173
+ rule_source?: string | undefined;
1174
+ } | undefined;
1175
+ }[];
1176
+ severity_summary: {
1177
+ CRITICAL: number;
1178
+ HIGH: number;
1179
+ MEDIUM: number;
1180
+ LOW: number;
1181
+ INFO: number;
1182
+ };
1183
+ calibrated_at: number;
1184
+ can_proceed: boolean;
1185
+ pending_confirmations?: {
1186
+ object_type: string;
1187
+ description: string;
1188
+ entry_id: string;
1189
+ risk_rule_id: string;
1190
+ fix_suggestion: string;
1191
+ }[] | undefined;
1192
+ } | {
1193
+ markdown: string;
1194
+ meta: {
1195
+ version: string;
1196
+ project_prefix: string;
1197
+ generated_at: string;
1198
+ object_count: number;
1199
+ step_count: number;
1200
+ };
1201
+ action: "generate_deployment_doc";
1202
+ user_action_required: string;
1203
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
1204
+ can_proceed: boolean;
1205
+ validation?: {
1206
+ valid: boolean;
1207
+ errors: string[];
1208
+ checks: {
1209
+ status: "PASS" | "FAIL" | "WARN";
1210
+ description: string;
1211
+ check_id: string;
1212
+ notes?: string | undefined;
1213
+ }[];
1214
+ } | undefined;
1215
+ } | {
1216
+ network: "testnet" | "mainnet";
1217
+ action: "trace_substeps";
1218
+ user_action_required: string;
1219
+ topological_order: string[];
1220
+ next_action: "none" | "deploy" | "fix_substeps";
1221
+ namespace: {
1222
+ version: string;
1223
+ prefix: string;
1224
+ };
1225
+ can_proceed: boolean;
1226
+ coherent: boolean;
1227
+ dangling_inputs: {
1228
+ field_path: string;
1229
+ substep_id: string;
1230
+ missing_ref: string;
1231
+ }[];
1232
+ circular_refs: {
1233
+ cycle: string[];
1234
+ }[];
1235
+ missing_outputs: {
1236
+ substep_id: string;
1237
+ expected_field: string;
1238
+ dependent_substeps: string[];
1239
+ }[];
1240
+ cross_step_breaks: {
1241
+ source_step: string;
1242
+ target_step: string;
1243
+ missing_field: string;
1244
+ }[];
1245
+ step_details: {
1246
+ failed: number;
1247
+ pending: number;
1248
+ parent_step: string;
1249
+ total_substeps: number;
1250
+ successful: number;
1251
+ skipped: number;
1252
+ substep_ids: string[];
1253
+ }[];
1254
+ d10_check: {
1255
+ status: "PASS" | "FAIL" | "WARN";
1256
+ description: string;
1257
+ check_id: "D-10";
1258
+ };
1259
+ } | {
1260
+ action: string;
1261
+ items: Record<string, unknown>[];
1262
+ } | {
1263
+ action: "pre_publish_check";
1264
+ warnings: string[];
1265
+ } | {
1266
+ action: "graph_stats";
1267
+ stats: Record<string, unknown>;
1268
+ } | {
1269
+ path: string;
1270
+ action: "save_graph";
1271
+ saved: true;
1272
+ } | {
1273
+ action: "load_graph";
1274
+ loaded: boolean;
1275
+ };
19
1276
  }, {
20
- result?: any;
1277
+ result: {
1278
+ action: "analyze_intent";
1279
+ warnings: string[];
1280
+ puzzles: Record<string, {
1281
+ puzzle: Record<string, unknown>;
1282
+ completeness: Record<string, unknown>;
1283
+ missing_dimensions: string[];
1284
+ }>;
1285
+ intent_parsed: {
1286
+ industry: string;
1287
+ primary_object: string;
1288
+ secondary_objects: string[];
1289
+ detected_scenes: {
1290
+ object: string;
1291
+ scene_id: string;
1292
+ }[];
1293
+ keyword_matches: {
1294
+ category: string;
1295
+ keyword: string;
1296
+ matched_objects: string[];
1297
+ required_level: "C" | "R" | "OPTIONAL";
1298
+ match_count: number;
1299
+ }[];
1300
+ };
1301
+ overall_completeness: "partial" | "complete" | "empty";
1302
+ next_step: string;
1303
+ next_action: "none" | "aggregate_risks";
1304
+ } | {
1305
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1306
+ action: "aggregate_risks";
1307
+ warnings: string[];
1308
+ user_action_required: string;
1309
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
1310
+ namespace: {
1311
+ version: string;
1312
+ prefix: string;
1313
+ industry?: string | undefined;
1314
+ };
1315
+ findings: {
1316
+ message: string;
1317
+ object_type: string;
1318
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1319
+ entry_id: string;
1320
+ risk_rule_id: string;
1321
+ fix_suggestion: string;
1322
+ details?: {
1323
+ field_path?: string | undefined;
1324
+ rule_source?: string | undefined;
1325
+ } | undefined;
1326
+ }[];
1327
+ severity_summary: {
1328
+ CRITICAL: number;
1329
+ HIGH: number;
1330
+ MEDIUM: number;
1331
+ LOW: number;
1332
+ INFO: number;
1333
+ };
1334
+ calibrated_at: number;
1335
+ can_proceed: boolean;
1336
+ pending_confirmations?: {
1337
+ object_type: string;
1338
+ description: string;
1339
+ entry_id: string;
1340
+ risk_rule_id: string;
1341
+ fix_suggestion: string;
1342
+ }[] | undefined;
1343
+ } | {
1344
+ markdown: string;
1345
+ meta: {
1346
+ version: string;
1347
+ project_prefix: string;
1348
+ generated_at: string;
1349
+ object_count: number;
1350
+ step_count: number;
1351
+ };
1352
+ action: "generate_deployment_doc";
1353
+ user_action_required: string;
1354
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
1355
+ can_proceed: boolean;
1356
+ validation?: {
1357
+ valid: boolean;
1358
+ errors: string[];
1359
+ checks: {
1360
+ status: "PASS" | "FAIL" | "WARN";
1361
+ description: string;
1362
+ check_id: string;
1363
+ notes?: string | undefined;
1364
+ }[];
1365
+ } | undefined;
1366
+ } | {
1367
+ network: "testnet" | "mainnet";
1368
+ action: "trace_substeps";
1369
+ user_action_required: string;
1370
+ topological_order: string[];
1371
+ next_action: "none" | "deploy" | "fix_substeps";
1372
+ namespace: {
1373
+ version: string;
1374
+ prefix: string;
1375
+ };
1376
+ can_proceed: boolean;
1377
+ coherent: boolean;
1378
+ dangling_inputs: {
1379
+ field_path: string;
1380
+ substep_id: string;
1381
+ missing_ref: string;
1382
+ }[];
1383
+ circular_refs: {
1384
+ cycle: string[];
1385
+ }[];
1386
+ missing_outputs: {
1387
+ substep_id: string;
1388
+ expected_field: string;
1389
+ dependent_substeps: string[];
1390
+ }[];
1391
+ cross_step_breaks: {
1392
+ source_step: string;
1393
+ target_step: string;
1394
+ missing_field: string;
1395
+ }[];
1396
+ step_details: {
1397
+ failed: number;
1398
+ pending: number;
1399
+ parent_step: string;
1400
+ total_substeps: number;
1401
+ successful: number;
1402
+ skipped: number;
1403
+ substep_ids: string[];
1404
+ }[];
1405
+ d10_check: {
1406
+ status: "PASS" | "FAIL" | "WARN";
1407
+ description: string;
1408
+ check_id: "D-10";
1409
+ };
1410
+ } | {
1411
+ action: string;
1412
+ items: Record<string, unknown>[];
1413
+ } | {
1414
+ action: "pre_publish_check";
1415
+ warnings: string[];
1416
+ } | {
1417
+ action: "graph_stats";
1418
+ stats: Record<string, unknown>;
1419
+ } | {
1420
+ path: string;
1421
+ action: "save_graph";
1422
+ saved: true;
1423
+ } | {
1424
+ action: "load_graph";
1425
+ loaded: boolean;
1426
+ };
21
1427
  }>;