@wowok/agent-mcp 2.4.3 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +1392 -6
  253. package/dist/schema/project/index.js +426 -2
  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 +1802 -313
  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 +584 -70
  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 +2 -1
  277. package/dist/schemas/onchain_operations_permission.schema.json +2 -1
  278. package/dist/schemas/onchain_operations_personal.schema.json +2 -1
  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 +879 -0
  287. package/dist/schemas/project_operation.schema.json +473 -2
  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 +258 -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 +55 -8
  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,1407 @@
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
+ warnings: z.ZodArray<z.ZodString, "many">;
593
+ }, "strict", z.ZodTypeAny, {
594
+ action: "analyze_intent";
595
+ warnings: string[];
596
+ puzzles: Record<string, {
597
+ puzzle: Record<string, unknown>;
598
+ completeness: Record<string, unknown>;
599
+ missing_dimensions: string[];
600
+ }>;
601
+ intent_parsed: {
602
+ industry: string;
603
+ primary_object: string;
604
+ secondary_objects: string[];
605
+ detected_scenes: {
606
+ object: string;
607
+ scene_id: string;
608
+ }[];
609
+ keyword_matches: {
610
+ category: string;
611
+ keyword: string;
612
+ matched_objects: string[];
613
+ required_level: "C" | "R" | "OPTIONAL";
614
+ match_count: number;
615
+ }[];
616
+ };
617
+ overall_completeness: "partial" | "complete" | "empty";
618
+ next_step: string;
619
+ }, {
620
+ action: "analyze_intent";
621
+ warnings: string[];
622
+ puzzles: Record<string, {
623
+ puzzle: Record<string, unknown>;
624
+ completeness: Record<string, unknown>;
625
+ missing_dimensions: string[];
626
+ }>;
627
+ intent_parsed: {
628
+ industry: string;
629
+ primary_object: string;
630
+ secondary_objects: string[];
631
+ detected_scenes: {
632
+ object: string;
633
+ scene_id: string;
634
+ }[];
635
+ keyword_matches: {
636
+ category: string;
637
+ keyword: string;
638
+ matched_objects: string[];
639
+ required_level: "C" | "R" | "OPTIONAL";
640
+ match_count: number;
641
+ }[];
642
+ };
643
+ overall_completeness: "partial" | "complete" | "empty";
644
+ next_step: string;
645
+ }>, z.ZodObject<{
646
+ action: z.ZodLiteral<"aggregate_risks">;
647
+ namespace: z.ZodObject<{
648
+ prefix: z.ZodString;
649
+ version: z.ZodString;
650
+ industry: z.ZodOptional<z.ZodString>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ version: string;
653
+ prefix: string;
654
+ industry?: string | undefined;
655
+ }, {
656
+ version: string;
657
+ prefix: string;
658
+ industry?: string | undefined;
659
+ }>;
660
+ findings: z.ZodArray<z.ZodObject<{
661
+ risk_rule_id: z.ZodString;
662
+ object_type: z.ZodString;
663
+ entry_id: z.ZodString;
664
+ severity: z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]>;
665
+ message: z.ZodString;
666
+ fix_suggestion: z.ZodString;
667
+ details: z.ZodOptional<z.ZodObject<{
668
+ field_path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
669
+ rule_source: z.ZodOptional<z.ZodOptional<z.ZodString>>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ field_path?: string | undefined;
672
+ rule_source?: string | undefined;
673
+ }, {
674
+ field_path?: string | undefined;
675
+ rule_source?: string | undefined;
676
+ }>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ message: string;
679
+ object_type: string;
680
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
681
+ entry_id: string;
682
+ risk_rule_id: string;
683
+ fix_suggestion: string;
684
+ details?: {
685
+ field_path?: string | undefined;
686
+ rule_source?: string | undefined;
687
+ } | undefined;
688
+ }, {
689
+ message: string;
690
+ object_type: string;
691
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
692
+ entry_id: string;
693
+ risk_rule_id: string;
694
+ fix_suggestion: string;
695
+ details?: {
696
+ field_path?: string | undefined;
697
+ rule_source?: string | undefined;
698
+ } | undefined;
699
+ }>, "many">;
700
+ severity_summary: z.ZodObject<{
701
+ CRITICAL: z.ZodNumber;
702
+ HIGH: z.ZodNumber;
703
+ MEDIUM: z.ZodNumber;
704
+ LOW: z.ZodNumber;
705
+ INFO: z.ZodNumber;
706
+ }, "strip", z.ZodTypeAny, {
707
+ CRITICAL: number;
708
+ HIGH: number;
709
+ MEDIUM: number;
710
+ LOW: number;
711
+ INFO: number;
712
+ }, {
713
+ CRITICAL: number;
714
+ HIGH: number;
715
+ MEDIUM: number;
716
+ LOW: number;
717
+ INFO: number;
718
+ }>;
719
+ status: z.ZodEnum<["RISK_PASSED", "RISK_BLOCKED", "RISK_PENDING_CONFIRM", "RISK_CANCELLED"]>;
720
+ pending_confirmations: z.ZodOptional<z.ZodArray<z.ZodObject<{
721
+ risk_rule_id: z.ZodString;
722
+ description: z.ZodString;
723
+ fix_suggestion: z.ZodString;
724
+ object_type: z.ZodString;
725
+ entry_id: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ object_type: string;
728
+ description: string;
729
+ entry_id: string;
730
+ risk_rule_id: string;
731
+ fix_suggestion: string;
732
+ }, {
733
+ object_type: string;
734
+ description: string;
735
+ entry_id: string;
736
+ risk_rule_id: string;
737
+ fix_suggestion: string;
738
+ }>, "many">>;
739
+ calibrated_at: z.ZodNumber;
740
+ warnings: z.ZodArray<z.ZodString, "many">;
741
+ can_proceed: z.ZodBoolean;
742
+ user_action_required: z.ZodString;
743
+ }, "strict", z.ZodTypeAny, {
744
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
745
+ action: "aggregate_risks";
746
+ warnings: string[];
747
+ user_action_required: string;
748
+ namespace: {
749
+ version: string;
750
+ prefix: string;
751
+ industry?: string | undefined;
752
+ };
753
+ findings: {
754
+ message: string;
755
+ object_type: string;
756
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
757
+ entry_id: string;
758
+ risk_rule_id: string;
759
+ fix_suggestion: string;
760
+ details?: {
761
+ field_path?: string | undefined;
762
+ rule_source?: string | undefined;
763
+ } | undefined;
764
+ }[];
765
+ severity_summary: {
766
+ CRITICAL: number;
767
+ HIGH: number;
768
+ MEDIUM: number;
769
+ LOW: number;
770
+ INFO: number;
771
+ };
772
+ calibrated_at: number;
773
+ can_proceed: boolean;
774
+ pending_confirmations?: {
775
+ object_type: string;
776
+ description: string;
777
+ entry_id: string;
778
+ risk_rule_id: string;
779
+ fix_suggestion: string;
780
+ }[] | undefined;
781
+ }, {
782
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
783
+ action: "aggregate_risks";
784
+ warnings: string[];
785
+ user_action_required: string;
786
+ namespace: {
787
+ version: string;
788
+ prefix: string;
789
+ industry?: string | undefined;
790
+ };
791
+ findings: {
792
+ message: string;
793
+ object_type: string;
794
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
795
+ entry_id: string;
796
+ risk_rule_id: string;
797
+ fix_suggestion: string;
798
+ details?: {
799
+ field_path?: string | undefined;
800
+ rule_source?: string | undefined;
801
+ } | undefined;
802
+ }[];
803
+ severity_summary: {
804
+ CRITICAL: number;
805
+ HIGH: number;
806
+ MEDIUM: number;
807
+ LOW: number;
808
+ INFO: number;
809
+ };
810
+ calibrated_at: number;
811
+ can_proceed: boolean;
812
+ pending_confirmations?: {
813
+ object_type: string;
814
+ description: string;
815
+ entry_id: string;
816
+ risk_rule_id: string;
817
+ fix_suggestion: string;
818
+ }[] | undefined;
819
+ }>, z.ZodObject<{
820
+ action: z.ZodLiteral<"generate_deployment_doc">;
821
+ markdown: z.ZodString;
822
+ meta: z.ZodObject<{
823
+ project_prefix: z.ZodString;
824
+ version: z.ZodString;
825
+ generated_at: z.ZodString;
826
+ object_count: z.ZodNumber;
827
+ step_count: z.ZodNumber;
828
+ }, "strip", z.ZodTypeAny, {
829
+ version: string;
830
+ project_prefix: string;
831
+ generated_at: string;
832
+ object_count: number;
833
+ step_count: number;
834
+ }, {
835
+ version: string;
836
+ project_prefix: string;
837
+ generated_at: string;
838
+ object_count: number;
839
+ step_count: number;
840
+ }>;
841
+ validation: z.ZodOptional<z.ZodObject<{
842
+ valid: z.ZodBoolean;
843
+ checks: z.ZodArray<z.ZodObject<{
844
+ check_id: z.ZodString;
845
+ description: z.ZodString;
846
+ status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
847
+ notes: z.ZodOptional<z.ZodString>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ status: "PASS" | "FAIL" | "WARN";
850
+ description: string;
851
+ check_id: string;
852
+ notes?: string | undefined;
853
+ }, {
854
+ status: "PASS" | "FAIL" | "WARN";
855
+ description: string;
856
+ check_id: string;
857
+ notes?: string | undefined;
858
+ }>, "many">;
859
+ errors: z.ZodArray<z.ZodString, "many">;
860
+ }, "strip", z.ZodTypeAny, {
861
+ valid: boolean;
862
+ errors: string[];
863
+ checks: {
864
+ status: "PASS" | "FAIL" | "WARN";
865
+ description: string;
866
+ check_id: string;
867
+ notes?: string | undefined;
868
+ }[];
869
+ }, {
870
+ valid: boolean;
871
+ errors: string[];
872
+ checks: {
873
+ status: "PASS" | "FAIL" | "WARN";
874
+ description: string;
875
+ check_id: string;
876
+ notes?: string | undefined;
877
+ }[];
878
+ }>>;
879
+ can_proceed: z.ZodBoolean;
880
+ user_action_required: z.ZodString;
881
+ }, "strict", z.ZodTypeAny, {
882
+ markdown: string;
883
+ meta: {
884
+ version: string;
885
+ project_prefix: string;
886
+ generated_at: string;
887
+ object_count: number;
888
+ step_count: number;
889
+ };
890
+ action: "generate_deployment_doc";
891
+ user_action_required: string;
892
+ can_proceed: boolean;
893
+ validation?: {
894
+ valid: boolean;
895
+ errors: string[];
896
+ checks: {
897
+ status: "PASS" | "FAIL" | "WARN";
898
+ description: string;
899
+ check_id: string;
900
+ notes?: string | undefined;
901
+ }[];
902
+ } | undefined;
903
+ }, {
904
+ markdown: string;
905
+ meta: {
906
+ version: string;
907
+ project_prefix: string;
908
+ generated_at: string;
909
+ object_count: number;
910
+ step_count: number;
911
+ };
912
+ action: "generate_deployment_doc";
913
+ user_action_required: string;
914
+ can_proceed: boolean;
915
+ validation?: {
916
+ valid: boolean;
917
+ errors: string[];
918
+ checks: {
919
+ status: "PASS" | "FAIL" | "WARN";
920
+ description: string;
921
+ check_id: string;
922
+ notes?: string | undefined;
923
+ }[];
924
+ } | undefined;
925
+ }>, z.ZodObject<{
926
+ action: z.ZodLiteral<"trace_substeps">;
927
+ namespace: z.ZodObject<{
928
+ prefix: z.ZodString;
929
+ version: z.ZodString;
930
+ }, "strip", z.ZodTypeAny, {
931
+ version: string;
932
+ prefix: string;
933
+ }, {
934
+ version: string;
935
+ prefix: string;
936
+ }>;
937
+ network: z.ZodEnum<["testnet", "mainnet"]>;
938
+ coherent: z.ZodBoolean;
939
+ dangling_inputs: z.ZodArray<z.ZodObject<{
940
+ substep_id: z.ZodString;
941
+ missing_ref: z.ZodString;
942
+ field_path: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ field_path: string;
945
+ substep_id: string;
946
+ missing_ref: string;
947
+ }, {
948
+ field_path: string;
949
+ substep_id: string;
950
+ missing_ref: string;
951
+ }>, "many">;
952
+ circular_refs: z.ZodArray<z.ZodObject<{
953
+ cycle: z.ZodArray<z.ZodString, "many">;
954
+ }, "strip", z.ZodTypeAny, {
955
+ cycle: string[];
956
+ }, {
957
+ cycle: string[];
958
+ }>, "many">;
959
+ missing_outputs: z.ZodArray<z.ZodObject<{
960
+ substep_id: z.ZodString;
961
+ expected_field: z.ZodString;
962
+ dependent_substeps: z.ZodArray<z.ZodString, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ substep_id: string;
965
+ expected_field: string;
966
+ dependent_substeps: string[];
967
+ }, {
968
+ substep_id: string;
969
+ expected_field: string;
970
+ dependent_substeps: string[];
971
+ }>, "many">;
972
+ cross_step_breaks: z.ZodArray<z.ZodObject<{
973
+ source_step: z.ZodString;
974
+ target_step: z.ZodString;
975
+ missing_field: z.ZodString;
976
+ }, "strip", z.ZodTypeAny, {
977
+ source_step: string;
978
+ target_step: string;
979
+ missing_field: string;
980
+ }, {
981
+ source_step: string;
982
+ target_step: string;
983
+ missing_field: string;
984
+ }>, "many">;
985
+ step_details: z.ZodArray<z.ZodObject<{
986
+ parent_step: z.ZodString;
987
+ total_substeps: z.ZodNumber;
988
+ successful: z.ZodNumber;
989
+ failed: z.ZodNumber;
990
+ pending: z.ZodNumber;
991
+ skipped: z.ZodNumber;
992
+ substep_ids: z.ZodArray<z.ZodString, "many">;
993
+ }, "strip", z.ZodTypeAny, {
994
+ failed: number;
995
+ pending: number;
996
+ parent_step: string;
997
+ total_substeps: number;
998
+ successful: number;
999
+ skipped: number;
1000
+ substep_ids: string[];
1001
+ }, {
1002
+ failed: number;
1003
+ pending: number;
1004
+ parent_step: string;
1005
+ total_substeps: number;
1006
+ successful: number;
1007
+ skipped: number;
1008
+ substep_ids: string[];
1009
+ }>, "many">;
1010
+ topological_order: z.ZodArray<z.ZodString, "many">;
1011
+ d10_check: z.ZodObject<{
1012
+ check_id: z.ZodLiteral<"D-10">;
1013
+ description: z.ZodString;
1014
+ status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ status: "PASS" | "FAIL" | "WARN";
1017
+ description: string;
1018
+ check_id: "D-10";
1019
+ }, {
1020
+ status: "PASS" | "FAIL" | "WARN";
1021
+ description: string;
1022
+ check_id: "D-10";
1023
+ }>;
1024
+ can_proceed: z.ZodBoolean;
1025
+ user_action_required: z.ZodString;
1026
+ }, "strict", z.ZodTypeAny, {
1027
+ network: "testnet" | "mainnet";
1028
+ action: "trace_substeps";
1029
+ user_action_required: string;
1030
+ topological_order: string[];
1031
+ namespace: {
1032
+ version: string;
1033
+ prefix: string;
1034
+ };
1035
+ can_proceed: boolean;
1036
+ coherent: boolean;
1037
+ dangling_inputs: {
1038
+ field_path: string;
1039
+ substep_id: string;
1040
+ missing_ref: string;
1041
+ }[];
1042
+ circular_refs: {
1043
+ cycle: string[];
1044
+ }[];
1045
+ missing_outputs: {
1046
+ substep_id: string;
1047
+ expected_field: string;
1048
+ dependent_substeps: string[];
1049
+ }[];
1050
+ cross_step_breaks: {
1051
+ source_step: string;
1052
+ target_step: string;
1053
+ missing_field: string;
1054
+ }[];
1055
+ step_details: {
1056
+ failed: number;
1057
+ pending: number;
1058
+ parent_step: string;
1059
+ total_substeps: number;
1060
+ successful: number;
1061
+ skipped: number;
1062
+ substep_ids: string[];
1063
+ }[];
1064
+ d10_check: {
1065
+ status: "PASS" | "FAIL" | "WARN";
1066
+ description: string;
1067
+ check_id: "D-10";
1068
+ };
1069
+ }, {
1070
+ network: "testnet" | "mainnet";
1071
+ action: "trace_substeps";
1072
+ user_action_required: string;
1073
+ topological_order: string[];
1074
+ namespace: {
1075
+ version: string;
1076
+ prefix: string;
1077
+ };
1078
+ can_proceed: boolean;
1079
+ coherent: boolean;
1080
+ dangling_inputs: {
1081
+ field_path: string;
1082
+ substep_id: string;
1083
+ missing_ref: string;
1084
+ }[];
1085
+ circular_refs: {
1086
+ cycle: string[];
1087
+ }[];
1088
+ missing_outputs: {
1089
+ substep_id: string;
1090
+ expected_field: string;
1091
+ dependent_substeps: string[];
1092
+ }[];
1093
+ cross_step_breaks: {
1094
+ source_step: string;
1095
+ target_step: string;
1096
+ missing_field: string;
1097
+ }[];
1098
+ step_details: {
1099
+ failed: number;
1100
+ pending: number;
1101
+ parent_step: string;
1102
+ total_substeps: number;
1103
+ successful: number;
1104
+ skipped: number;
1105
+ substep_ids: string[];
1106
+ }[];
1107
+ d10_check: {
1108
+ status: "PASS" | "FAIL" | "WARN";
1109
+ description: string;
1110
+ check_id: "D-10";
1111
+ };
1112
+ }>]>;
17
1113
  }, "strict", z.ZodTypeAny, {
18
- result?: any;
1114
+ result: {
1115
+ action: "analyze_intent";
1116
+ warnings: string[];
1117
+ puzzles: Record<string, {
1118
+ puzzle: Record<string, unknown>;
1119
+ completeness: Record<string, unknown>;
1120
+ missing_dimensions: string[];
1121
+ }>;
1122
+ intent_parsed: {
1123
+ industry: string;
1124
+ primary_object: string;
1125
+ secondary_objects: string[];
1126
+ detected_scenes: {
1127
+ object: string;
1128
+ scene_id: string;
1129
+ }[];
1130
+ keyword_matches: {
1131
+ category: string;
1132
+ keyword: string;
1133
+ matched_objects: string[];
1134
+ required_level: "C" | "R" | "OPTIONAL";
1135
+ match_count: number;
1136
+ }[];
1137
+ };
1138
+ overall_completeness: "partial" | "complete" | "empty";
1139
+ next_step: string;
1140
+ } | {
1141
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1142
+ action: "aggregate_risks";
1143
+ warnings: string[];
1144
+ user_action_required: string;
1145
+ namespace: {
1146
+ version: string;
1147
+ prefix: string;
1148
+ industry?: string | undefined;
1149
+ };
1150
+ findings: {
1151
+ message: string;
1152
+ object_type: string;
1153
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1154
+ entry_id: string;
1155
+ risk_rule_id: string;
1156
+ fix_suggestion: string;
1157
+ details?: {
1158
+ field_path?: string | undefined;
1159
+ rule_source?: string | undefined;
1160
+ } | undefined;
1161
+ }[];
1162
+ severity_summary: {
1163
+ CRITICAL: number;
1164
+ HIGH: number;
1165
+ MEDIUM: number;
1166
+ LOW: number;
1167
+ INFO: number;
1168
+ };
1169
+ calibrated_at: number;
1170
+ can_proceed: boolean;
1171
+ pending_confirmations?: {
1172
+ object_type: string;
1173
+ description: string;
1174
+ entry_id: string;
1175
+ risk_rule_id: string;
1176
+ fix_suggestion: string;
1177
+ }[] | undefined;
1178
+ } | {
1179
+ markdown: string;
1180
+ meta: {
1181
+ version: string;
1182
+ project_prefix: string;
1183
+ generated_at: string;
1184
+ object_count: number;
1185
+ step_count: number;
1186
+ };
1187
+ action: "generate_deployment_doc";
1188
+ user_action_required: string;
1189
+ can_proceed: boolean;
1190
+ validation?: {
1191
+ valid: boolean;
1192
+ errors: string[];
1193
+ checks: {
1194
+ status: "PASS" | "FAIL" | "WARN";
1195
+ description: string;
1196
+ check_id: string;
1197
+ notes?: string | undefined;
1198
+ }[];
1199
+ } | undefined;
1200
+ } | {
1201
+ network: "testnet" | "mainnet";
1202
+ action: "trace_substeps";
1203
+ user_action_required: string;
1204
+ topological_order: string[];
1205
+ namespace: {
1206
+ version: string;
1207
+ prefix: string;
1208
+ };
1209
+ can_proceed: boolean;
1210
+ coherent: boolean;
1211
+ dangling_inputs: {
1212
+ field_path: string;
1213
+ substep_id: string;
1214
+ missing_ref: string;
1215
+ }[];
1216
+ circular_refs: {
1217
+ cycle: string[];
1218
+ }[];
1219
+ missing_outputs: {
1220
+ substep_id: string;
1221
+ expected_field: string;
1222
+ dependent_substeps: string[];
1223
+ }[];
1224
+ cross_step_breaks: {
1225
+ source_step: string;
1226
+ target_step: string;
1227
+ missing_field: string;
1228
+ }[];
1229
+ step_details: {
1230
+ failed: number;
1231
+ pending: number;
1232
+ parent_step: string;
1233
+ total_substeps: number;
1234
+ successful: number;
1235
+ skipped: number;
1236
+ substep_ids: string[];
1237
+ }[];
1238
+ d10_check: {
1239
+ status: "PASS" | "FAIL" | "WARN";
1240
+ description: string;
1241
+ check_id: "D-10";
1242
+ };
1243
+ } | {
1244
+ action: string;
1245
+ items: Record<string, unknown>[];
1246
+ } | {
1247
+ action: "pre_publish_check";
1248
+ warnings: string[];
1249
+ } | {
1250
+ action: "graph_stats";
1251
+ stats: Record<string, unknown>;
1252
+ } | {
1253
+ path: string;
1254
+ action: "save_graph";
1255
+ saved: true;
1256
+ } | {
1257
+ action: "load_graph";
1258
+ loaded: boolean;
1259
+ };
19
1260
  }, {
20
- result?: any;
1261
+ result: {
1262
+ action: "analyze_intent";
1263
+ warnings: string[];
1264
+ puzzles: Record<string, {
1265
+ puzzle: Record<string, unknown>;
1266
+ completeness: Record<string, unknown>;
1267
+ missing_dimensions: string[];
1268
+ }>;
1269
+ intent_parsed: {
1270
+ industry: string;
1271
+ primary_object: string;
1272
+ secondary_objects: string[];
1273
+ detected_scenes: {
1274
+ object: string;
1275
+ scene_id: string;
1276
+ }[];
1277
+ keyword_matches: {
1278
+ category: string;
1279
+ keyword: string;
1280
+ matched_objects: string[];
1281
+ required_level: "C" | "R" | "OPTIONAL";
1282
+ match_count: number;
1283
+ }[];
1284
+ };
1285
+ overall_completeness: "partial" | "complete" | "empty";
1286
+ next_step: string;
1287
+ } | {
1288
+ status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1289
+ action: "aggregate_risks";
1290
+ warnings: string[];
1291
+ user_action_required: string;
1292
+ namespace: {
1293
+ version: string;
1294
+ prefix: string;
1295
+ industry?: string | undefined;
1296
+ };
1297
+ findings: {
1298
+ message: string;
1299
+ object_type: string;
1300
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1301
+ entry_id: string;
1302
+ risk_rule_id: string;
1303
+ fix_suggestion: string;
1304
+ details?: {
1305
+ field_path?: string | undefined;
1306
+ rule_source?: string | undefined;
1307
+ } | undefined;
1308
+ }[];
1309
+ severity_summary: {
1310
+ CRITICAL: number;
1311
+ HIGH: number;
1312
+ MEDIUM: number;
1313
+ LOW: number;
1314
+ INFO: number;
1315
+ };
1316
+ calibrated_at: number;
1317
+ can_proceed: boolean;
1318
+ pending_confirmations?: {
1319
+ object_type: string;
1320
+ description: string;
1321
+ entry_id: string;
1322
+ risk_rule_id: string;
1323
+ fix_suggestion: string;
1324
+ }[] | undefined;
1325
+ } | {
1326
+ markdown: string;
1327
+ meta: {
1328
+ version: string;
1329
+ project_prefix: string;
1330
+ generated_at: string;
1331
+ object_count: number;
1332
+ step_count: number;
1333
+ };
1334
+ action: "generate_deployment_doc";
1335
+ user_action_required: string;
1336
+ can_proceed: boolean;
1337
+ validation?: {
1338
+ valid: boolean;
1339
+ errors: string[];
1340
+ checks: {
1341
+ status: "PASS" | "FAIL" | "WARN";
1342
+ description: string;
1343
+ check_id: string;
1344
+ notes?: string | undefined;
1345
+ }[];
1346
+ } | undefined;
1347
+ } | {
1348
+ network: "testnet" | "mainnet";
1349
+ action: "trace_substeps";
1350
+ user_action_required: string;
1351
+ topological_order: string[];
1352
+ namespace: {
1353
+ version: string;
1354
+ prefix: string;
1355
+ };
1356
+ can_proceed: boolean;
1357
+ coherent: boolean;
1358
+ dangling_inputs: {
1359
+ field_path: string;
1360
+ substep_id: string;
1361
+ missing_ref: string;
1362
+ }[];
1363
+ circular_refs: {
1364
+ cycle: string[];
1365
+ }[];
1366
+ missing_outputs: {
1367
+ substep_id: string;
1368
+ expected_field: string;
1369
+ dependent_substeps: string[];
1370
+ }[];
1371
+ cross_step_breaks: {
1372
+ source_step: string;
1373
+ target_step: string;
1374
+ missing_field: string;
1375
+ }[];
1376
+ step_details: {
1377
+ failed: number;
1378
+ pending: number;
1379
+ parent_step: string;
1380
+ total_substeps: number;
1381
+ successful: number;
1382
+ skipped: number;
1383
+ substep_ids: string[];
1384
+ }[];
1385
+ d10_check: {
1386
+ status: "PASS" | "FAIL" | "WARN";
1387
+ description: string;
1388
+ check_id: "D-10";
1389
+ };
1390
+ } | {
1391
+ action: string;
1392
+ items: Record<string, unknown>[];
1393
+ } | {
1394
+ action: "pre_publish_check";
1395
+ warnings: string[];
1396
+ } | {
1397
+ action: "graph_stats";
1398
+ stats: Record<string, unknown>;
1399
+ } | {
1400
+ path: string;
1401
+ action: "save_graph";
1402
+ saved: true;
1403
+ } | {
1404
+ action: "load_graph";
1405
+ loaded: boolean;
1406
+ };
21
1407
  }>;