@wowok/agent-mcp 2.7.8 → 2.7.10

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 (334) hide show
  1. package/README.md +2 -2
  2. package/dist/config/runtime.d.ts +1 -1
  3. package/dist/config/runtime.js +1 -1
  4. package/dist/examples/rental-ziroom-machine-create.json +1 -2
  5. package/dist/examples/rental-ziroom-permission-create.json +1 -2
  6. package/dist/examples/rental-ziroom-service-create.json +1 -2
  7. package/dist/experience/experience-reuse.js +1 -1
  8. package/dist/experience/index.d.ts +2 -1
  9. package/dist/experience/index.js +1 -1
  10. package/dist/experience/persistence-config.d.ts +6 -0
  11. package/dist/experience/persistence-config.js +1 -0
  12. package/dist/experience/persistence.d.ts +21 -0
  13. package/dist/experience/persistence.js +1 -0
  14. package/dist/experience/realtime-feedback.js +1 -1
  15. package/dist/experience/user-profile.js +1 -1
  16. package/dist/extensions/business-modules.d.ts +1 -1
  17. package/dist/extensions/capability-manifest.d.ts +1 -1
  18. package/dist/extensions/types.d.ts +1 -1
  19. package/dist/goal/GoalClassifier.d.ts +17 -0
  20. package/dist/goal/GoalClassifier.js +1 -0
  21. package/dist/goal/GoalEngine.d.ts +120 -0
  22. package/dist/goal/GoalEngine.js +1 -0
  23. package/dist/goal/GoalStore.d.ts +27 -0
  24. package/dist/goal/GoalStore.js +1 -0
  25. package/dist/goal/plan-approval.d.ts +5 -0
  26. package/dist/goal/plan-approval.js +1 -0
  27. package/dist/goal/types.d.ts +76 -0
  28. package/dist/goal/types.js +1 -0
  29. package/dist/harness/index.d.ts +2 -7
  30. package/dist/harness/index.js +1 -1
  31. package/dist/harness/plan.d.ts +1 -1
  32. package/dist/harness/types.d.ts +0 -35
  33. package/dist/index.js +1 -1
  34. package/dist/knowledge/account-marks.d.ts +35 -0
  35. package/dist/knowledge/account-marks.js +1 -0
  36. package/dist/knowledge/audit-rules.d.ts +3 -1
  37. package/dist/knowledge/audit-rules.js +1 -1
  38. package/dist/knowledge/examples-scanner-cli.js +1 -1
  39. package/dist/knowledge/examples-scanner.js +1 -1
  40. package/dist/knowledge/goal-completion.d.ts +19 -0
  41. package/dist/knowledge/goal-completion.js +1 -0
  42. package/dist/knowledge/guard-translation.js +1 -1
  43. package/dist/knowledge/index.d.ts +3 -2
  44. package/dist/knowledge/index.js +1 -1
  45. package/dist/knowledge/industry-registry.js +1 -1
  46. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  47. package/dist/knowledge/mcp-schema-audit.js +1 -1
  48. package/dist/knowledge/operation-dictionary.js +1 -1
  49. package/dist/knowledge/passport-confirm.js +1 -1
  50. package/dist/knowledge/passport-puzzle.js +1 -1
  51. package/dist/knowledge/passport-translation.js +1 -1
  52. package/dist/knowledge/proof-risk.js +1 -1
  53. package/dist/knowledge/safety-rules.js +1 -1
  54. package/dist/knowledge/service-translation.js +1 -1
  55. package/dist/knowledge/template-registry.js +1 -1
  56. package/dist/knowledge/tools-reference.js +1 -1
  57. package/dist/knowledge/workflow-guidance.d.ts +1 -0
  58. package/dist/knowledge/workflow-guidance.js +1 -1
  59. package/dist/knowledge/workspace-lists.d.ts +56 -0
  60. package/dist/knowledge/workspace-lists.js +1 -0
  61. package/dist/loop-engineering/context-collect.d.ts +1 -1
  62. package/dist/monitor/EventRouter.d.ts +10 -0
  63. package/dist/monitor/EventRouter.js +1 -0
  64. package/dist/monitor/EventStore.d.ts +32 -12
  65. package/dist/monitor/EventStore.js +1 -1
  66. package/dist/monitor/MonitorLoop.d.ts +79 -0
  67. package/dist/monitor/MonitorLoop.js +1 -0
  68. package/dist/monitor/ProblemBridge.d.ts +32 -0
  69. package/dist/monitor/ProblemBridge.js +1 -0
  70. package/dist/monitor/ScopeResolver.d.ts +59 -0
  71. package/dist/monitor/ScopeResolver.js +1 -0
  72. package/dist/monitor/SubscriptionStore.d.ts +13 -0
  73. package/dist/monitor/SubscriptionStore.js +1 -0
  74. package/dist/monitor/normalize.d.ts +8 -0
  75. package/dist/monitor/normalize.js +1 -0
  76. package/dist/monitor/types.d.ts +89 -0
  77. package/dist/monitor/types.js +1 -0
  78. package/dist/persona/address-format.d.ts +1 -1
  79. package/dist/persona/address-format.js +1 -1
  80. package/dist/persona/distill-goal.d.ts +20 -0
  81. package/dist/persona/distill-goal.js +1 -0
  82. package/dist/persona/index.d.ts +2 -0
  83. package/dist/persona/index.js +1 -1
  84. package/dist/persona/model.js +1 -1
  85. package/dist/playbooks/service-build/business-puzzle.js +1 -0
  86. package/dist/{project → playbooks/service-build}/context-assembly.d.ts +9 -4
  87. package/dist/playbooks/service-build/context-assembly.js +1 -0
  88. package/dist/{project → playbooks/service-build}/game-theory.d.ts +1 -1
  89. package/dist/playbooks/service-build/index.d.ts +14 -0
  90. package/dist/playbooks/service-build/index.js +1 -0
  91. package/dist/{project → playbooks/service-build}/intent-analyzer.d.ts +1 -1
  92. package/dist/playbooks/service-build/intent-analyzer.js +1 -0
  93. package/dist/{project → playbooks/service-build}/machine-panorama.d.ts +5 -3
  94. package/dist/playbooks/service-build/machine-panorama.js +1 -0
  95. package/dist/{project → playbooks/service-build}/merchant-guide.d.ts +1 -1
  96. package/dist/playbooks/service-build/merchant-guide.js +1 -0
  97. package/dist/{project → playbooks/service-build}/mode-actions.d.ts +2 -2
  98. package/dist/playbooks/service-build/mode-actions.js +1 -0
  99. package/dist/playbooks/service-build/namespace.d.ts +2 -0
  100. package/dist/playbooks/service-build/namespace.js +1 -0
  101. package/dist/{project → playbooks/service-build}/object-panorama.d.ts +2 -3
  102. package/dist/playbooks/service-build/object-panorama.js +1 -0
  103. package/dist/{project → playbooks/service-build}/participation-radar.d.ts +4 -5
  104. package/dist/playbooks/service-build/participation-radar.js +1 -0
  105. package/dist/{project → playbooks/service-build}/pipeline-actions.d.ts +9 -9
  106. package/dist/playbooks/service-build/pipeline-actions.js +1 -0
  107. package/dist/playbooks/service-build/process.d.ts +6 -0
  108. package/dist/playbooks/service-build/process.js +1 -0
  109. package/dist/playbooks/service-build/risk-aggregator.js +1 -0
  110. package/dist/{project → playbooks/service-build}/semantic-graph.d.ts +2 -2
  111. package/dist/{project → playbooks/service-build}/service-panorama.d.ts +3 -19
  112. package/dist/playbooks/service-build/service-panorama.js +1 -0
  113. package/dist/review/arb.d.ts +6 -0
  114. package/dist/review/arb.js +1 -0
  115. package/dist/review/demand.d.ts +3 -0
  116. package/dist/review/demand.js +1 -0
  117. package/dist/review/index.d.ts +3 -0
  118. package/dist/review/index.js +1 -0
  119. package/dist/review/machine.d.ts +3 -0
  120. package/dist/review/machine.js +1 -0
  121. package/dist/review/order.d.ts +9 -0
  122. package/dist/review/order.js +1 -0
  123. package/dist/review/progress.d.ts +3 -0
  124. package/dist/review/progress.js +1 -0
  125. package/dist/review/repository.d.ts +3 -0
  126. package/dist/review/repository.js +1 -0
  127. package/dist/review/service.d.ts +5 -0
  128. package/dist/review/service.js +1 -0
  129. package/dist/review/types.d.ts +156 -0
  130. package/dist/review/types.js +1 -0
  131. package/dist/rules.d.ts +2 -2
  132. package/dist/rules.js +1 -1
  133. package/dist/safety/confirm-gate.js +1 -1
  134. package/dist/safety/index.d.ts +1 -1
  135. package/dist/safety/index.js +1 -1
  136. package/dist/safety/preview.d.ts +1 -0
  137. package/dist/safety/preview.js +1 -1
  138. package/dist/schema/call/allocation.d.ts +1 -1
  139. package/dist/schema/call/arbitration.d.ts +1 -1
  140. package/dist/schema/call/base.d.ts +1 -1
  141. package/dist/schema/call/base.js +1 -1
  142. package/dist/schema/call/bridge.d.ts +4 -4
  143. package/dist/schema/call/contact.d.ts +1 -1
  144. package/dist/schema/call/contact.js +1 -1
  145. package/dist/schema/call/demand.d.ts +1 -1
  146. package/dist/schema/call/demand.js +1 -1
  147. package/dist/schema/call/guard.d.ts +3 -3
  148. package/dist/schema/call/handler.d.ts +0 -3
  149. package/dist/schema/call/handler.js +1 -1
  150. package/dist/schema/call/machine.d.ts +2 -2
  151. package/dist/schema/call/order.d.ts +1 -1
  152. package/dist/schema/call/payment.d.ts +1 -1
  153. package/dist/schema/call/permission.d.ts +1 -1
  154. package/dist/schema/call/personal.d.ts +1 -1
  155. package/dist/schema/call/progress.d.ts +1 -1
  156. package/dist/schema/call/proof.d.ts +2 -2
  157. package/dist/schema/call/repository.d.ts +1 -1
  158. package/dist/schema/call/repository.js +1 -1
  159. package/dist/schema/call/reward.d.ts +1 -1
  160. package/dist/schema/call/semantic.js +1 -1
  161. package/dist/schema/call/service.d.ts +1 -1
  162. package/dist/schema/call/service.js +1 -1
  163. package/dist/schema/call/treasury.d.ts +1 -1
  164. package/dist/schema/common/index.js +1 -1
  165. package/dist/schema/goal/index.d.ts +317 -0
  166. package/dist/schema/goal/index.js +1 -0
  167. package/dist/schema/goal/planning.d.ts +465 -0
  168. package/dist/schema/goal/planning.js +1 -0
  169. package/dist/schema/index.d.ts +1 -2
  170. package/dist/schema/index.js +1 -1
  171. package/dist/schema/industry-pack/index.d.ts +265 -1
  172. package/dist/schema/industry-pack/index.js +1 -1
  173. package/dist/schema/industry-pack/modes.d.ts +268 -0
  174. package/dist/schema/industry-pack/modes.js +1 -0
  175. package/dist/schema/local/index.js +1 -1
  176. package/dist/schema/operations.d.ts +216 -19
  177. package/dist/schema/operations.js +1 -1
  178. package/dist/schema/permission/index.d.ts +1 -0
  179. package/dist/schema/permission/index.js +1 -1
  180. package/dist/schema/persona/index.d.ts +40 -0
  181. package/dist/schema/persona/index.js +1 -1
  182. package/dist/schema/query/bi.d.ts +783 -0
  183. package/dist/schema/query/bi.js +1 -0
  184. package/dist/schema/query/index.d.ts +661 -0
  185. package/dist/schema/query/index.js +1 -1
  186. package/dist/schema/schema-version.js +1 -1
  187. package/dist/schema/utils/skills-recommendation.d.ts +0 -1
  188. package/dist/schema/utils/skills-recommendation.js +1 -1
  189. package/dist/schema-query-impl/index.js +1 -1
  190. package/dist/schemas/account_operation.output.json +3 -3
  191. package/dist/schemas/account_operation.schema.json +2 -2
  192. package/dist/schemas/bridge_operation.output.json +2 -2
  193. package/dist/schemas/bridge_operation.schema.json +12 -12
  194. package/dist/schemas/config_operation.output.json +1 -1
  195. package/dist/schemas/config_operation.schema.json +1 -1
  196. package/dist/schemas/goal_operation.schema.json +1016 -0
  197. package/dist/schemas/guard2file.schema.json +3 -3
  198. package/dist/schemas/index.json +12 -13
  199. package/dist/schemas/industry_pack_operation.output.json +898 -0
  200. package/dist/schemas/industry_pack_operation.schema.json +217 -2
  201. package/dist/schemas/local_info_operation.output.json +2 -2
  202. package/dist/schemas/local_mark_operation.output.json +2 -2
  203. package/dist/schemas/machineNode2file.schema.json +3 -3
  204. package/dist/schemas/messenger_operation.output.json +2 -2
  205. package/dist/schemas/monitor_events.output.json +78 -3
  206. package/dist/schemas/monitor_events.schema.json +24 -1
  207. package/dist/schemas/monitor_subscription.output.json +1462 -0
  208. package/dist/schemas/monitor_subscription.schema.json +327 -0
  209. package/dist/schemas/onchain_events.output.json +4 -4
  210. package/dist/schemas/onchain_operations.output.json +2 -2
  211. package/dist/schemas/onchain_operations.schema.json +59 -59
  212. package/dist/schemas/onchain_operations_allocation.schema.json +3 -3
  213. package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
  214. package/dist/schemas/onchain_operations_contact.schema.json +4 -4
  215. package/dist/schemas/onchain_operations_demand.schema.json +4 -4
  216. package/dist/schemas/onchain_operations_gen_passport.schema.json +3 -3
  217. package/dist/schemas/onchain_operations_gen_proof.schema.json +3 -3
  218. package/dist/schemas/onchain_operations_guard.schema.json +3 -3
  219. package/dist/schemas/onchain_operations_machine.schema.json +3 -3
  220. package/dist/schemas/onchain_operations_order.schema.json +3 -3
  221. package/dist/schemas/onchain_operations_payment.schema.json +3 -3
  222. package/dist/schemas/onchain_operations_permission.schema.json +3 -3
  223. package/dist/schemas/onchain_operations_personal.schema.json +3 -3
  224. package/dist/schemas/onchain_operations_progress.schema.json +3 -3
  225. package/dist/schemas/onchain_operations_proof.schema.json +3 -3
  226. package/dist/schemas/onchain_operations_repository.schema.json +5 -5
  227. package/dist/schemas/onchain_operations_reward.schema.json +3 -3
  228. package/dist/schemas/onchain_operations_service.schema.json +4 -4
  229. package/dist/schemas/onchain_operations_treasury.schema.json +3 -3
  230. package/dist/schemas/onchain_table_data.output.json +346 -2
  231. package/dist/schemas/onchain_table_data.schema.json +22 -22
  232. package/dist/schemas/permission_operation.schema.json +6 -2
  233. package/dist/schemas/persona_operation.output.json +145 -0
  234. package/dist/schemas/persona_operation.schema.json +28 -2
  235. package/dist/schemas/query_toolkit.output.json +1274 -15
  236. package/dist/schemas/query_toolkit.schema.json +412 -11
  237. package/dist/schemas/workflow_operation.schema.json +4 -4
  238. package/dist/task/ProcessStore.d.ts +81 -0
  239. package/dist/task/ProcessStore.js +1 -0
  240. package/dist/task/playbook.d.ts +11 -0
  241. package/dist/task/playbook.js +1 -0
  242. package/dist/task/stage-gate.d.ts +22 -0
  243. package/dist/task/stage-gate.js +1 -0
  244. package/dist/{project → task}/substep-trace.d.ts +6 -45
  245. package/dist/task/types.d.ts +120 -0
  246. package/dist/task/types.js +1 -0
  247. package/dist/tools/handlers/config.js +1 -1
  248. package/dist/tools/handlers/goal.d.ts +4 -0
  249. package/dist/tools/handlers/goal.js +1 -0
  250. package/dist/tools/handlers/industry-pack.js +1 -1
  251. package/dist/tools/handlers/monitor.d.ts +24 -0
  252. package/dist/tools/handlers/monitor.js +1 -1
  253. package/dist/tools/handlers/network.d.ts +1 -0
  254. package/dist/tools/handlers/network.js +1 -0
  255. package/dist/tools/handlers/onchain.js +1 -1
  256. package/dist/tools/handlers/permission.js +1 -1
  257. package/dist/tools/handlers/persona.js +1 -1
  258. package/dist/tools/handlers/query.js +1 -1
  259. package/dist/tools/handlers/watch.js +1 -1
  260. package/dist/tools/index.d.ts +2 -0
  261. package/dist/tools/index.js +1 -1
  262. package/dist/tools/shared.js +1 -1
  263. package/dist/tools/wrap.js +1 -1
  264. package/package.json +5 -4
  265. package/dist/harness/checkpoint.d.ts +0 -8
  266. package/dist/harness/checkpoint.js +0 -1
  267. package/dist/knowledge/deployment-scanner.d.ts +0 -66
  268. package/dist/knowledge/deployment-scanner.js +0 -1
  269. package/dist/project/business-puzzle.js +0 -1
  270. package/dist/project/context-assembly.js +0 -1
  271. package/dist/project/deployment-bridge.d.ts +0 -5
  272. package/dist/project/deployment-bridge.js +0 -1
  273. package/dist/project/deployment-doc.d.ts +0 -190
  274. package/dist/project/deployment-doc.js +0 -1
  275. package/dist/project/edit-planner.d.ts +0 -123
  276. package/dist/project/edit-planner.js +0 -1
  277. package/dist/project/evaluation-fix.spec.d.ts +0 -1
  278. package/dist/project/evaluation-fix.spec.js +0 -1
  279. package/dist/project/evaluation.d.ts +0 -127
  280. package/dist/project/evaluation.js +0 -1
  281. package/dist/project/graph-builder.d.ts +0 -51
  282. package/dist/project/graph-builder.js +0 -1
  283. package/dist/project/graph.d.ts +0 -70
  284. package/dist/project/graph.js +0 -1
  285. package/dist/project/handlers.d.ts +0 -524
  286. package/dist/project/handlers.js +0 -1
  287. package/dist/project/index.d.ts +0 -91
  288. package/dist/project/index.js +0 -1
  289. package/dist/project/intent-analyzer.js +0 -1
  290. package/dist/project/machine-panorama.js +0 -1
  291. package/dist/project/merchant-guide.js +0 -1
  292. package/dist/project/mode-actions.js +0 -1
  293. package/dist/project/namespace.d.ts +0 -72
  294. package/dist/project/namespace.js +0 -1
  295. package/dist/project/object-panorama.js +0 -1
  296. package/dist/project/participation-radar.js +0 -1
  297. package/dist/project/pipeline-actions.js +0 -1
  298. package/dist/project/project-store.d.ts +0 -110
  299. package/dist/project/project-store.js +0 -1
  300. package/dist/project/query.d.ts +0 -43
  301. package/dist/project/query.js +0 -1
  302. package/dist/project/risk-aggregator.js +0 -1
  303. package/dist/project/semantic-assembler.d.ts +0 -93
  304. package/dist/project/semantic-assembler.js +0 -1
  305. package/dist/project/service-panorama.js +0 -1
  306. package/dist/project/stage-gate.d.ts +0 -52
  307. package/dist/project/stage-gate.js +0 -1
  308. package/dist/project/task-tracker.d.ts +0 -30
  309. package/dist/project/task-tracker.js +0 -1
  310. package/dist/schema/project/index.d.ts +0 -2021
  311. package/dist/schema/project/index.js +0 -1
  312. package/dist/schema/task-status.d.ts +0 -62
  313. package/dist/schema/task-status.js +0 -1
  314. package/dist/schemas/project_operation.output.json +0 -7877
  315. package/dist/schemas/project_operation.schema.json +0 -1139
  316. package/dist/schemas/query_task_status.output.json +0 -211
  317. package/dist/schemas/query_task_status.schema.json +0 -18
  318. package/dist/tools/handlers/project.d.ts +0 -2
  319. package/dist/tools/handlers/project.js +0 -1
  320. package/dist/tools/handlers/task-status.d.ts +0 -2
  321. package/dist/tools/handlers/task-status.js +0 -1
  322. /package/dist/{project → playbooks/service-build}/business-puzzle.d.ts +0 -0
  323. /package/dist/{project → playbooks/service-build}/game-theory.js +0 -0
  324. /package/dist/{project → playbooks/service-build}/machine-nodes.d.ts +0 -0
  325. /package/dist/{project → playbooks/service-build}/machine-nodes.js +0 -0
  326. /package/dist/{project → playbooks/service-build}/object-type.d.ts +0 -0
  327. /package/dist/{project → playbooks/service-build}/object-type.js +0 -0
  328. /package/dist/{project → playbooks/service-build}/reverse-mapping.d.ts +0 -0
  329. /package/dist/{project → playbooks/service-build}/reverse-mapping.js +0 -0
  330. /package/dist/{project → playbooks/service-build}/risk-aggregator.d.ts +0 -0
  331. /package/dist/{project → playbooks/service-build}/semantic-graph.js +0 -0
  332. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.d.ts +0 -0
  333. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.js +0 -0
  334. /package/dist/{project → task}/substep-trace.js +0 -0
@@ -0,0 +1,465 @@
1
+ import { z } from "zod";
2
+ export declare const PlanningIndustryEnum: z.ZodEnum<{
3
+ custom: "custom";
4
+ service: "service";
5
+ freelance: "freelance";
6
+ rental: "rental";
7
+ education: "education";
8
+ travel: "travel";
9
+ subscription: "subscription";
10
+ retail: "retail";
11
+ general: "general";
12
+ retail_d2c: "retail_d2c";
13
+ }>;
14
+ export declare const ProjectObjectTypeEnum: z.ZodEnum<{
15
+ payment: "payment";
16
+ reward: "reward";
17
+ permission: "permission";
18
+ guard: "guard";
19
+ allocation: "allocation";
20
+ order: "order";
21
+ service: "service";
22
+ machine: "machine";
23
+ treasury: "treasury";
24
+ repository: "repository";
25
+ progress: "progress";
26
+ demand: "demand";
27
+ contact: "contact";
28
+ personal: "personal";
29
+ arb: "arb";
30
+ proof: "proof";
31
+ }>;
32
+ export declare const PlanningActionMembers: [z.ZodObject<{
33
+ target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ network: z.ZodOptional<z.ZodEnum<{
35
+ testnet: "testnet";
36
+ mainnet: "mainnet";
37
+ }>>;
38
+ intent: z.ZodOptional<z.ZodString>;
39
+ project_name: z.ZodOptional<z.ZodString>;
40
+ project_description: z.ZodOptional<z.ZodString>;
41
+ project_industry: z.ZodOptional<z.ZodEnum<{
42
+ custom: "custom";
43
+ service: "service";
44
+ freelance: "freelance";
45
+ rental: "rental";
46
+ education: "education";
47
+ travel: "travel";
48
+ subscription: "subscription";
49
+ retail: "retail";
50
+ general: "general";
51
+ retail_d2c: "retail_d2c";
52
+ }>>;
53
+ action: z.ZodLiteral<"analyze_intent">;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ severity_threshold: z.ZodOptional<z.ZodEnum<{
56
+ CRITICAL: "CRITICAL";
57
+ HIGH: "HIGH";
58
+ MEDIUM: "MEDIUM";
59
+ LOW: "LOW";
60
+ INFO: "INFO";
61
+ }>>;
62
+ user_confirmed_high_risks: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ planned_objects: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
+ object_type: z.ZodString;
65
+ is_new: z.ZodBoolean;
66
+ name: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>>>;
68
+ planned_operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ object_type: z.ZodString;
70
+ trigger: z.ZodEnum<{
71
+ publish: "publish";
72
+ create: "create";
73
+ }>;
74
+ name: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strict>>>;
76
+ network: z.ZodOptional<z.ZodEnum<{
77
+ testnet: "testnet";
78
+ mainnet: "mainnet";
79
+ }>>;
80
+ intent: z.ZodOptional<z.ZodString>;
81
+ project_name: z.ZodOptional<z.ZodString>;
82
+ project_description: z.ZodOptional<z.ZodString>;
83
+ project_industry: z.ZodOptional<z.ZodEnum<{
84
+ custom: "custom";
85
+ service: "service";
86
+ freelance: "freelance";
87
+ rental: "rental";
88
+ education: "education";
89
+ travel: "travel";
90
+ subscription: "subscription";
91
+ retail: "retail";
92
+ general: "general";
93
+ retail_d2c: "retail_d2c";
94
+ }>>;
95
+ action: z.ZodLiteral<"aggregate_risks">;
96
+ project: z.ZodOptional<z.ZodString>;
97
+ version: z.ZodOptional<z.ZodString>;
98
+ puzzles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
99
+ puzzle: z.ZodUnknown;
100
+ completeness: z.ZodUnknown;
101
+ missing_dimensions: z.ZodArray<z.ZodString>;
102
+ }, z.core.$strict>>>;
103
+ }, z.core.$strict>, z.ZodObject<{
104
+ action: z.ZodLiteral<"trace_substeps">;
105
+ project: z.ZodOptional<z.ZodString>;
106
+ version: z.ZodOptional<z.ZodString>;
107
+ substeps: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
+ step_id: z.ZodString;
109
+ parent_step: z.ZodString;
110
+ object_type: z.ZodEnum<{
111
+ payment: "payment";
112
+ reward: "reward";
113
+ permission: "permission";
114
+ guard: "guard";
115
+ allocation: "allocation";
116
+ order: "order";
117
+ service: "service";
118
+ machine: "machine";
119
+ treasury: "treasury";
120
+ repository: "repository";
121
+ progress: "progress";
122
+ demand: "demand";
123
+ contact: "contact";
124
+ personal: "personal";
125
+ arb: "arb";
126
+ proof: "proof";
127
+ }>;
128
+ entry_id: z.ZodString;
129
+ operation_type: z.ZodString;
130
+ network: z.ZodEnum<{
131
+ testnet: "testnet";
132
+ mainnet: "mainnet";
133
+ }>;
134
+ input: z.ZodObject<{
135
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
136
+ input_refs: z.ZodArray<z.ZodString>;
137
+ }, z.core.$strict>;
138
+ output: z.ZodOptional<z.ZodObject<{
139
+ object_id: z.ZodOptional<z.ZodString>;
140
+ tx_digest: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$catchall<z.ZodUnknown>>>;
142
+ timestamp: z.ZodNumber;
143
+ status: z.ZodEnum<{
144
+ PENDING: "PENDING";
145
+ SUCCESS: "SUCCESS";
146
+ FAILED: "FAILED";
147
+ SKIPPED: "SKIPPED";
148
+ }>;
149
+ failure_reason: z.ZodOptional<z.ZodString>;
150
+ dependencies: z.ZodObject<{
151
+ input_refs: z.ZodArray<z.ZodString>;
152
+ output_refs: z.ZodArray<z.ZodObject<{
153
+ substep_id: z.ZodString;
154
+ field_path: z.ZodString;
155
+ }, z.core.$strict>>;
156
+ }, z.core.$strict>;
157
+ retry_info: z.ZodOptional<z.ZodObject<{
158
+ original_step_id: z.ZodString;
159
+ retry_count: z.ZodNumber;
160
+ retry_reason: z.ZodString;
161
+ }, z.core.$strict>>;
162
+ }, z.core.$strict>>>;
163
+ substep_edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
+ source: z.ZodString;
165
+ target: z.ZodString;
166
+ field_path: z.ZodString;
167
+ }, z.core.$strict>>>;
168
+ network: z.ZodOptional<z.ZodEnum<{
169
+ testnet: "testnet";
170
+ mainnet: "mainnet";
171
+ }>>;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ guide_state: z.ZodOptional<z.ZodObject<{
174
+ intent_text: z.ZodString;
175
+ confirmed_industry: z.ZodOptional<z.ZodString>;
176
+ currency: z.ZodOptional<z.ZodString>;
177
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
178
+ payment_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
179
+ trust_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
180
+ adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ }, z.core.$strict>>;
182
+ guide_confirm: z.ZodOptional<z.ZodObject<{
183
+ industry: z.ZodOptional<z.ZodString>;
184
+ currency: z.ZodOptional<z.ZodString>;
185
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
186
+ payment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
+ trust: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
188
+ adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
+ }, z.core.$strict>>;
190
+ network: z.ZodOptional<z.ZodEnum<{
191
+ testnet: "testnet";
192
+ mainnet: "mainnet";
193
+ }>>;
194
+ intent: z.ZodOptional<z.ZodString>;
195
+ project_name: z.ZodOptional<z.ZodString>;
196
+ project_description: z.ZodOptional<z.ZodString>;
197
+ project_industry: z.ZodOptional<z.ZodEnum<{
198
+ custom: "custom";
199
+ service: "service";
200
+ freelance: "freelance";
201
+ rental: "rental";
202
+ education: "education";
203
+ travel: "travel";
204
+ subscription: "subscription";
205
+ retail: "retail";
206
+ general: "general";
207
+ retail_d2c: "retail_d2c";
208
+ }>>;
209
+ action: z.ZodLiteral<"merchant_guide">;
210
+ }, z.core.$strict>];
211
+ export declare const AnalyzeIntentResultSchema: z.ZodObject<{
212
+ action: z.ZodLiteral<"analyze_intent">;
213
+ intent_parsed: z.ZodObject<{
214
+ primary_object: z.ZodString;
215
+ secondary_objects: z.ZodArray<z.ZodString>;
216
+ detected_scenes: z.ZodArray<z.ZodObject<{
217
+ object: z.ZodString;
218
+ scene_id: z.ZodString;
219
+ }, z.core.$strict>>;
220
+ industry: z.ZodString;
221
+ keyword_matches: z.ZodArray<z.ZodObject<{
222
+ keyword: z.ZodString;
223
+ category: z.ZodString;
224
+ matched_objects: z.ZodArray<z.ZodString>;
225
+ required_level: z.ZodEnum<{
226
+ C: "C";
227
+ R: "R";
228
+ OPTIONAL: "OPTIONAL";
229
+ }>;
230
+ match_count: z.ZodNumber;
231
+ }, z.core.$strict>>;
232
+ }, z.core.$strict>;
233
+ puzzles: z.ZodRecord<z.ZodString, z.ZodObject<{
234
+ puzzle: z.ZodUnknown;
235
+ completeness: z.ZodUnknown;
236
+ missing_dimensions: z.ZodArray<z.ZodString>;
237
+ }, z.core.$strict>>;
238
+ overall_completeness: z.ZodEnum<{
239
+ partial: "partial";
240
+ complete: "complete";
241
+ empty: "empty";
242
+ }>;
243
+ next_step: z.ZodString;
244
+ recommended_creation_order: z.ZodArray<z.ZodString>;
245
+ warnings: z.ZodArray<z.ZodString>;
246
+ }, z.core.$strict>;
247
+ export declare const AggregateRisksResultSchema: z.ZodObject<{
248
+ action: z.ZodLiteral<"aggregate_risks">;
249
+ namespace: z.ZodObject<{
250
+ prefix: z.ZodString;
251
+ version: z.ZodString;
252
+ industry: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strict>;
254
+ findings: z.ZodArray<z.ZodObject<{
255
+ risk_rule_id: z.ZodString;
256
+ object_type: z.ZodString;
257
+ entry_id: z.ZodString;
258
+ severity: z.ZodEnum<{
259
+ CRITICAL: "CRITICAL";
260
+ HIGH: "HIGH";
261
+ MEDIUM: "MEDIUM";
262
+ LOW: "LOW";
263
+ INFO: "INFO";
264
+ }>;
265
+ message: z.ZodString;
266
+ fix_suggestion: z.ZodString;
267
+ details: z.ZodOptional<z.ZodObject<{
268
+ field_path: z.ZodOptional<z.ZodString>;
269
+ actual_value: z.ZodOptional<z.ZodUnknown>;
270
+ expected_value: z.ZodOptional<z.ZodUnknown>;
271
+ rule_source: z.ZodOptional<z.ZodString>;
272
+ }, z.core.$strict>>;
273
+ }, z.core.$strict>>;
274
+ severity_summary: z.ZodRecord<z.ZodString, z.ZodNumber>;
275
+ status: z.ZodEnum<{
276
+ RISK_PASSED: "RISK_PASSED";
277
+ RISK_BLOCKED: "RISK_BLOCKED";
278
+ RISK_PENDING_CONFIRM: "RISK_PENDING_CONFIRM";
279
+ RISK_CANCELLED: "RISK_CANCELLED";
280
+ }>;
281
+ pending_confirmations: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ risk_rule_id: z.ZodString;
283
+ description: z.ZodString;
284
+ fix_suggestion: z.ZodString;
285
+ object_type: z.ZodString;
286
+ entry_id: z.ZodString;
287
+ }, z.core.$strict>>>;
288
+ calibrated_at: z.ZodNumber;
289
+ fix_suggestions_grouped: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
290
+ risk_rule_id: z.ZodString;
291
+ severity: z.ZodEnum<{
292
+ CRITICAL: "CRITICAL";
293
+ HIGH: "HIGH";
294
+ MEDIUM: "MEDIUM";
295
+ LOW: "LOW";
296
+ INFO: "INFO";
297
+ }>;
298
+ message: z.ZodString;
299
+ fix_suggestion: z.ZodString;
300
+ entry_id: z.ZodString;
301
+ }, z.core.$strict>>>>;
302
+ safety_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
+ rule_id: z.ZodString;
304
+ severity: z.ZodEnum<{
305
+ info: "info";
306
+ warn: "warn";
307
+ }>;
308
+ message: z.ZodString;
309
+ }, z.core.$strict>>>;
310
+ intent_echo: z.ZodOptional<z.ZodObject<{
311
+ primary_object: z.ZodString;
312
+ industry: z.ZodString;
313
+ overall_completeness: z.ZodEnum<{
314
+ partial: "partial";
315
+ complete: "complete";
316
+ empty: "empty";
317
+ }>;
318
+ }, z.core.$strict>>;
319
+ warnings: z.ZodArray<z.ZodString>;
320
+ }, z.core.$strict>;
321
+ export declare const TraceSubstepsResultSchema: z.ZodObject<{
322
+ action: z.ZodLiteral<"trace_substeps">;
323
+ namespace: z.ZodObject<{
324
+ prefix: z.ZodString;
325
+ version: z.ZodString;
326
+ }, z.core.$strict>;
327
+ network: z.ZodEnum<{
328
+ testnet: "testnet";
329
+ mainnet: "mainnet";
330
+ }>;
331
+ coherent: z.ZodBoolean;
332
+ dangling_inputs: z.ZodArray<z.ZodObject<{
333
+ substep_id: z.ZodString;
334
+ missing_ref: z.ZodString;
335
+ field_path: z.ZodString;
336
+ }, z.core.$strict>>;
337
+ circular_refs: z.ZodArray<z.ZodObject<{
338
+ cycle: z.ZodArray<z.ZodString>;
339
+ }, z.core.$strict>>;
340
+ missing_outputs: z.ZodArray<z.ZodObject<{
341
+ substep_id: z.ZodString;
342
+ expected_field: z.ZodString;
343
+ dependent_substeps: z.ZodArray<z.ZodString>;
344
+ }, z.core.$strict>>;
345
+ cross_step_breaks: z.ZodArray<z.ZodObject<{
346
+ source_step: z.ZodString;
347
+ target_step: z.ZodString;
348
+ missing_field: z.ZodString;
349
+ }, z.core.$strict>>;
350
+ step_details: z.ZodArray<z.ZodObject<{
351
+ parent_step: z.ZodString;
352
+ total_substeps: z.ZodNumber;
353
+ successful: z.ZodNumber;
354
+ failed: z.ZodNumber;
355
+ pending: z.ZodNumber;
356
+ skipped: z.ZodNumber;
357
+ substep_ids: z.ZodArray<z.ZodString>;
358
+ }, z.core.$strict>>;
359
+ topological_order: z.ZodArray<z.ZodString>;
360
+ d10_check: z.ZodObject<{
361
+ check_id: z.ZodLiteral<"D-10">;
362
+ description: z.ZodString;
363
+ status: z.ZodEnum<{
364
+ PASS: "PASS";
365
+ FAIL: "FAIL";
366
+ WARN: "WARN";
367
+ }>;
368
+ notes: z.ZodArray<z.ZodString>;
369
+ }, z.core.$strict>;
370
+ }, z.core.$strict>;
371
+ export declare const MerchantGuideResultSchema: z.ZodObject<{
372
+ action: z.ZodLiteral<"merchant_guide">;
373
+ current_step: z.ZodNumber;
374
+ step_name: z.ZodString;
375
+ guide_state: z.ZodObject<{
376
+ intent_text: z.ZodString;
377
+ confirmed_industry: z.ZodOptional<z.ZodString>;
378
+ currency: z.ZodOptional<z.ZodString>;
379
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
380
+ payment_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
381
+ trust_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
+ adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
+ }, z.core.$strict>;
384
+ intent_draft: z.ZodOptional<z.ZodUnknown>;
385
+ industry_options: z.ZodOptional<z.ZodObject<{
386
+ inferred: z.ZodString;
387
+ confidence: z.ZodNumber;
388
+ similar: z.ZodArray<z.ZodString>;
389
+ }, z.core.$strict>>;
390
+ intent: z.ZodOptional<z.ZodUnknown>;
391
+ adopted_modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ name: z.ZodString;
394
+ description: z.ZodString;
395
+ requires_keeper: z.ZodBoolean;
396
+ keeper_hint: z.ZodOptional<z.ZodString>;
397
+ user_protections: z.ZodArray<z.ZodString>;
398
+ merchant_obligations: z.ZodArray<z.ZodString>;
399
+ }, z.core.$strict>>>;
400
+ blueprint: z.ZodOptional<z.ZodObject<{
401
+ nodes: z.ZodArray<z.ZodObject<{
402
+ id: z.ZodString;
403
+ type: z.ZodString;
404
+ purpose: z.ZodString;
405
+ }, z.core.$strict>>;
406
+ edges: z.ZodArray<z.ZodObject<{
407
+ from: z.ZodString;
408
+ to: z.ZodString;
409
+ relation: z.ZodString;
410
+ required: z.ZodBoolean;
411
+ }, z.core.$strict>>;
412
+ }, z.core.$strict>>;
413
+ evaluation_preview: z.ZodOptional<z.ZodUnknown>;
414
+ graph_validation: z.ZodOptional<z.ZodObject<{
415
+ valid: z.ZodBoolean;
416
+ hard_violations: z.ZodArray<z.ZodObject<{
417
+ id: z.ZodString;
418
+ description: z.ZodString;
419
+ fix: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict>>;
421
+ soft_notes: z.ZodArray<z.ZodObject<{
422
+ id: z.ZodString;
423
+ description: z.ZodString;
424
+ }, z.core.$strict>>;
425
+ }, z.core.$strict>>;
426
+ harness_check: z.ZodOptional<z.ZodObject<{
427
+ module_constraints: z.ZodArray<z.ZodObject<{
428
+ module: z.ZodString;
429
+ plan_satisfied: z.ZodBoolean;
430
+ missing: z.ZodOptional<z.ZodArray<z.ZodString>>;
431
+ reason: z.ZodOptional<z.ZodString>;
432
+ estimated_score_boost: z.ZodNumber;
433
+ }, z.core.$strict>>;
434
+ blocking_issues: z.ZodArray<z.ZodObject<{
435
+ module: z.ZodString;
436
+ missing_constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
437
+ fix: z.ZodOptional<z.ZodString>;
438
+ }, z.core.$strict>>;
439
+ deploy_time_checks: z.ZodArray<z.ZodString>;
440
+ }, z.core.$strict>>;
441
+ game_theory: z.ZodOptional<z.ZodObject<{
442
+ summary: z.ZodString;
443
+ coverage: z.ZodString;
444
+ exposed_scenarios: z.ZodArray<z.ZodString>;
445
+ wow_alignments: z.ZodArray<z.ZodString>;
446
+ scenarios: z.ZodArray<z.ZodObject<{
447
+ scenario: z.ZodString;
448
+ covered: z.ZodBoolean;
449
+ conflict: z.ZodString;
450
+ user_protection: z.ZodString;
451
+ evaluation_metric: z.ZodString;
452
+ recommendation: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strict>>;
454
+ }, z.core.$strict>>;
455
+ creation_plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
456
+ order: z.ZodNumber;
457
+ node_id: z.ZodString;
458
+ object_type: z.ZodString;
459
+ suggested_name: z.ZodString;
460
+ depends_on: z.ZodArray<z.ZodString>;
461
+ operation_hint: z.ZodString;
462
+ }, z.core.$strict>>>;
463
+ warnings: z.ZodArray<z.ZodString>;
464
+ next_action: z.ZodString;
465
+ }, z.core.$strict>;
@@ -0,0 +1 @@
1
+ import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['enum'](['general','retail','retail_d2c','service','rental','freelance','education','travel','subscription','custom']);export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20'+'Supported\x20industries:\x20\x27general\x27\x20(no\x20preset),\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20'+'\x27freelance\x27,\x20\x27education\x27,\x20\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27.')};export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27HIGH\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20HIGH\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20HIGH\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(CRITICAL/HIGH/MEDIUM/LOW/INFO)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20SemanticObjectGraph\x20blueprint\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(CRITICAL\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['RISK_PASSED','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20CRITICAL\x20or\x20above-threshold\x20risks\x20present.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('HIGH\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['CRITICAL','HIGH','MEDIUM','LOW','INFO']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
@@ -6,14 +6,13 @@ export * from './common/index.js';
6
6
  export * from './operations.js';
7
7
  export * from './utils/guard-parser.js';
8
8
  export * from './utils/node-parser.js';
9
- export * from './project/index.js';
10
9
  export * from './config/index.js';
11
10
  export * from './trust/index.js';
12
11
  export * from './evaluation/index.js';
13
12
  export * from './watch/index.js';
14
- export * from './task-status.js';
15
13
  export * from './persona/index.js';
16
14
  export * from './intent-radar/index.js';
15
+ export * from './goal/index.js';
17
16
  export * from './employee/index.js';
18
17
  export * from './schema-query/index.js';
19
18
  export * from './industry-pack/index.js';
@@ -1 +1 @@
1
- export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./project/index.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./task-status.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
1
+ export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';