@wowok/agent-mcp 3.0.4 → 3.0.5

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 (248) hide show
  1. package/dist/evaluation/path-reasoning.d.ts +4 -2
  2. package/dist/evaluation/path-reasoning.js +1 -1
  3. package/dist/extensions/constraint-registry.d.ts +2 -2
  4. package/dist/extensions/constraint-registry.js +1 -1
  5. package/dist/extensions/custom-registry-file.d.ts +22 -0
  6. package/dist/extensions/custom-registry-file.js +1 -0
  7. package/dist/extensions/index.d.ts +2 -1
  8. package/dist/extensions/index.js +1 -1
  9. package/dist/extensions/industry-pack.d.ts +7 -0
  10. package/dist/extensions/industry-pack.js +1 -1
  11. package/dist/extensions/metric-registry.d.ts +2 -2
  12. package/dist/extensions/metric-registry.js +1 -1
  13. package/dist/extensions/modes.js +1 -1
  14. package/dist/extensions/registry.d.ts +2 -2
  15. package/dist/extensions/registry.js +1 -1
  16. package/dist/extensions/types.d.ts +4 -0
  17. package/dist/goal/GoalEngine.d.ts +13 -1
  18. package/dist/goal/GoalEngine.js +1 -1
  19. package/dist/goal/next-steps.d.ts +12 -0
  20. package/dist/goal/next-steps.js +1 -0
  21. package/dist/goal/pursue.d.ts +18 -0
  22. package/dist/goal/pursue.js +1 -0
  23. package/dist/goal/types.d.ts +72 -0
  24. package/dist/goal/types.js +1 -1
  25. package/dist/graph/onchain/analyze.d.ts +44 -0
  26. package/dist/graph/onchain/analyze.js +1 -0
  27. package/dist/graph/onchain/analyze.spec.d.ts +1 -0
  28. package/dist/graph/onchain/analyze.spec.js +1 -0
  29. package/dist/graph/onchain/anti-cheat.d.ts +39 -0
  30. package/dist/graph/onchain/anti-cheat.js +1 -0
  31. package/dist/graph/onchain/anti-cheat.spec.d.ts +1 -0
  32. package/dist/graph/onchain/anti-cheat.spec.js +1 -0
  33. package/dist/graph/onchain/dataplane.d.ts +44 -0
  34. package/dist/graph/onchain/dataplane.js +1 -0
  35. package/dist/graph/onchain/edge-schema.d.ts +60 -0
  36. package/dist/graph/onchain/edge-schema.js +1 -0
  37. package/dist/graph/onchain/expand.d.ts +4 -0
  38. package/dist/graph/onchain/expand.js +1 -0
  39. package/dist/graph/onchain/extract.d.ts +21 -0
  40. package/dist/graph/onchain/extract.js +1 -0
  41. package/dist/graph/onchain/index.d.ts +17 -0
  42. package/dist/graph/onchain/index.js +1 -0
  43. package/dist/graph/onchain/interest.d.ts +10 -0
  44. package/dist/graph/onchain/interest.js +1 -0
  45. package/dist/graph/onchain/interest.spec.d.ts +1 -0
  46. package/dist/graph/onchain/interest.spec.js +1 -0
  47. package/dist/graph/onchain/onchain.spec.d.ts +1 -0
  48. package/dist/graph/onchain/onchain.spec.js +1 -0
  49. package/dist/graph/onchain/order-status.d.ts +53 -0
  50. package/dist/graph/onchain/order-status.js +1 -0
  51. package/dist/graph/onchain/project-relationship.d.ts +3 -0
  52. package/dist/graph/onchain/project-relationship.js +1 -0
  53. package/dist/graph/onchain/sdk-batch.d.ts +117 -0
  54. package/dist/graph/onchain/sdk-batch.js +1 -0
  55. package/dist/graph/onchain/sdk-dataplane.d.ts +40 -0
  56. package/dist/graph/onchain/sdk-dataplane.js +1 -0
  57. package/dist/graph/onchain/strategy.d.ts +54 -0
  58. package/dist/graph/onchain/strategy.js +1 -0
  59. package/dist/graph/onchain/strategy.spec.d.ts +1 -0
  60. package/dist/graph/onchain/strategy.spec.js +1 -0
  61. package/dist/graph/onchain/types.d.ts +238 -0
  62. package/dist/graph/onchain/types.js +1 -0
  63. package/dist/graph/onchain/viewport.d.ts +5 -0
  64. package/dist/graph/onchain/viewport.js +1 -0
  65. package/dist/harness/recover.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/intent/enrich.js +1 -1
  68. package/dist/keeper/detectors.d.ts +1 -1
  69. package/dist/keeper/detectors.js +1 -1
  70. package/dist/knowledge/account-marks.js +1 -1
  71. package/dist/knowledge/anti-cheat.d.ts +2 -37
  72. package/dist/knowledge/anti-cheat.js +1 -1
  73. package/dist/knowledge/contract-invariants.js +1 -1
  74. package/dist/knowledge/getting-started.d.ts +37 -0
  75. package/dist/knowledge/getting-started.js +1 -0
  76. package/dist/knowledge/goal-completion.js +1 -1
  77. package/dist/knowledge/guard-render.d.ts +1 -0
  78. package/dist/knowledge/guard-render.js +1 -1
  79. package/dist/knowledge/guard-submission-brief.d.ts +83 -0
  80. package/dist/knowledge/guard-submission-brief.js +1 -0
  81. package/dist/knowledge/guard-submission-prompt.d.ts +13 -0
  82. package/dist/knowledge/guard-submission-prompt.js +1 -1
  83. package/dist/knowledge/index.d.ts +6 -4
  84. package/dist/knowledge/index.js +1 -1
  85. package/dist/knowledge/industry-registry.js +1 -1
  86. package/dist/knowledge/industry-strategy.d.ts +91 -0
  87. package/dist/knowledge/industry-strategy.js +1 -0
  88. package/dist/knowledge/jsonrpc-enum.js +1 -1
  89. package/dist/knowledge/market-metrics.d.ts +14 -3
  90. package/dist/knowledge/market-metrics.js +1 -1
  91. package/dist/knowledge/migration-preflight.js +1 -1
  92. package/dist/knowledge/operation-dictionary.d.ts +1 -1
  93. package/dist/knowledge/safety-rules.js +1 -1
  94. package/dist/knowledge/scenario-topology.d.ts +6 -1
  95. package/dist/knowledge/scenario-topology.js +1 -1
  96. package/dist/knowledge/service-risk-node.d.ts +3 -0
  97. package/dist/knowledge/service-risk-node.js +1 -0
  98. package/dist/knowledge/service-risk.d.ts +2 -0
  99. package/dist/knowledge/service-risk.js +1 -1
  100. package/dist/knowledge/service-templates.d.ts +2 -0
  101. package/dist/knowledge/service-templates.js +1 -1
  102. package/dist/knowledge/strategy-manuals.d.ts +17 -0
  103. package/dist/knowledge/strategy-manuals.js +1 -0
  104. package/dist/knowledge/supply-chain.d.ts +3 -1
  105. package/dist/knowledge/supply-chain.js +1 -1
  106. package/dist/knowledge/template-registry.js +1 -1
  107. package/dist/knowledge/tools-reference.js +1 -1
  108. package/dist/knowledge/workflow-guidance.d.ts +3 -118
  109. package/dist/knowledge/workflow-guidance.js +1 -1
  110. package/dist/knowledge/workspace-lists.js +1 -1
  111. package/dist/monitor/MonitorLoop.js +1 -1
  112. package/dist/monitor/ScopeResolver.js +1 -1
  113. package/dist/participation/radar-core.d.ts +15 -15
  114. package/dist/participation/radar-core.js +1 -1
  115. package/dist/persona/analyzer.d.ts +2 -1
  116. package/dist/persona/bridge.d.ts +5 -1
  117. package/dist/persona/bridge.js +1 -1
  118. package/dist/persona/defaults.js +1 -1
  119. package/dist/persona/distill-goal.d.ts +7 -1
  120. package/dist/persona/distill-goal.js +1 -1
  121. package/dist/persona/index.d.ts +13 -3
  122. package/dist/persona/index.js +1 -1
  123. package/dist/persona/model.d.ts +12 -2
  124. package/dist/persona/model.js +1 -1
  125. package/dist/persona/overrides.d.ts +1 -0
  126. package/dist/persona/overrides.js +1 -1
  127. package/dist/persona/topology-focus.d.ts +29 -0
  128. package/dist/persona/topology-focus.js +1 -0
  129. package/dist/persona/types.d.ts +81 -0
  130. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  131. package/dist/playbooks/service-build/context-assembly.js +1 -1
  132. package/dist/playbooks/service-build/machine-nodes.js +1 -1
  133. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  134. package/dist/playbooks/service-build/object-panorama.js +1 -1
  135. package/dist/playbooks/service-build/participation-radar.js +1 -1
  136. package/dist/playbooks/service-build/relationship-profile.d.ts +1 -0
  137. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  138. package/dist/playbooks/service-build/service-panorama.d.ts +4 -0
  139. package/dist/playbooks/service-build/service-panorama.js +1 -1
  140. package/dist/playbooks/service-build/topology-query.d.ts +14 -0
  141. package/dist/playbooks/service-build/topology-query.js +1 -0
  142. package/dist/role/index.d.ts +1 -0
  143. package/dist/role/index.js +1 -1
  144. package/dist/role/profiles.d.ts +26 -0
  145. package/dist/role/profiles.js +1 -0
  146. package/dist/safety/confirm-gate.d.ts +4 -1
  147. package/dist/safety/confirm-gate.js +1 -1
  148. package/dist/schema/call/allocation.d.ts +6 -6
  149. package/dist/schema/call/bridge.d.ts +1 -1
  150. package/dist/schema/call/guard.d.ts +20 -20
  151. package/dist/schema/call/repository.js +1 -1
  152. package/dist/schema/call/semantic.js +1 -1
  153. package/dist/schema/call/service.d.ts +4 -4
  154. package/dist/schema/common/index.js +1 -1
  155. package/dist/schema/employee/index.d.ts +7 -7
  156. package/dist/schema/evaluation/index.d.ts +22 -9
  157. package/dist/schema/evaluation/index.js +1 -1
  158. package/dist/schema/goal/index.d.ts +37 -1
  159. package/dist/schema/goal/index.js +1 -1
  160. package/dist/schema/goal/planning.d.ts +1 -1
  161. package/dist/schema/index.d.ts +1 -0
  162. package/dist/schema/index.js +1 -1
  163. package/dist/schema/industry-pack/index.d.ts +7 -0
  164. package/dist/schema/industry-pack/index.js +1 -1
  165. package/dist/schema/local/index.d.ts +8 -4
  166. package/dist/schema/local/index.js +1 -1
  167. package/dist/schema/messenger/index.d.ts +318 -64
  168. package/dist/schema/messenger/index.js +1 -1
  169. package/dist/schema/operations.d.ts +146 -11
  170. package/dist/schema/operations.js +1 -1
  171. package/dist/schema/persona/index.d.ts +15743 -0
  172. package/dist/schema/persona/index.js +1 -1
  173. package/dist/schema/query/bi.d.ts +869 -2
  174. package/dist/schema/query/bi.js +1 -1
  175. package/dist/schema/query/index.d.ts +163 -41
  176. package/dist/schema/query/index.js +1 -1
  177. package/dist/schema/schema-query/index.d.ts +16 -0
  178. package/dist/schema/schema-query/index.js +1 -1
  179. package/dist/schema/schema-version.js +1 -1
  180. package/dist/schema/strategy-review/index.d.ts +137 -0
  181. package/dist/schema/strategy-review/index.js +1 -0
  182. package/dist/schema/trust/index.d.ts +6 -6
  183. package/dist/schema/workflow/index.d.ts +2 -2
  184. package/dist/schema-query-impl/index.js +1 -1
  185. package/dist/schemas/account_operation.output.json +8 -4
  186. package/dist/schemas/account_operation.schema.json +6 -2
  187. package/dist/schemas/evaluation_operation.output.json +24 -0
  188. package/dist/schemas/goal_operation.schema.json +124 -0
  189. package/dist/schemas/index.json +7 -1
  190. package/dist/schemas/industry_pack_operation.output.json +39 -0
  191. package/dist/schemas/local_mark_operation.schema.json +2 -2
  192. package/dist/schemas/messenger_operation.output.json +670 -200
  193. package/dist/schemas/messenger_operation.schema.json +66 -239
  194. package/dist/schemas/onchain_operations.schema.json +3 -3
  195. package/dist/schemas/onchain_operations_repository.schema.json +3 -3
  196. package/dist/schemas/onchain_table_data.output.json +184 -0
  197. package/dist/schemas/onchain_table_data.schema.json +43 -43
  198. package/dist/schemas/persona_operation.output.json +37778 -262
  199. package/dist/schemas/persona_operation.schema.json +5960 -1
  200. package/dist/schemas/query_toolkit.output.json +1580 -2
  201. package/dist/schemas/query_toolkit.schema.json +194 -32
  202. package/dist/schemas/schema_query.schema.json +25 -1
  203. package/dist/schemas/strategy_review_operation.output.json +532 -0
  204. package/dist/schemas/strategy_review_operation.schema.json +66 -0
  205. package/dist/schemas/wowok_buildin_info.output.json +188 -6
  206. package/dist/schemas/wowok_buildin_info.schema.json +14 -0
  207. package/dist/strategy/collectors.d.ts +66 -0
  208. package/dist/strategy/collectors.js +1 -0
  209. package/dist/strategy/collectors.spec.d.ts +1 -0
  210. package/dist/strategy/collectors.spec.js +1 -0
  211. package/dist/strategy/index.d.ts +5 -0
  212. package/dist/strategy/index.js +1 -0
  213. package/dist/strategy/metrics.d.ts +20 -0
  214. package/dist/strategy/metrics.js +1 -0
  215. package/dist/strategy/review.d.ts +48 -0
  216. package/dist/strategy/review.js +1 -0
  217. package/dist/strategy/scorecard.d.ts +32 -0
  218. package/dist/strategy/scorecard.js +1 -0
  219. package/dist/strategy/store.d.ts +26 -0
  220. package/dist/strategy/store.js +1 -0
  221. package/dist/tools/handlers/config.js +1 -1
  222. package/dist/tools/handlers/evaluation.js +1 -1
  223. package/dist/tools/handlers/goal.js +1 -1
  224. package/dist/tools/handlers/industry-pack.js +1 -1
  225. package/dist/tools/handlers/local.js +1 -1
  226. package/dist/tools/handlers/messenger.js +1 -1
  227. package/dist/tools/handlers/onchain.js +1 -1
  228. package/dist/tools/handlers/permission.js +1 -1
  229. package/dist/tools/handlers/persona.js +1 -1
  230. package/dist/tools/handlers/query.d.ts +6 -0
  231. package/dist/tools/handlers/query.js +1 -1
  232. package/dist/tools/handlers/schema-query.js +1 -1
  233. package/dist/tools/handlers/strategy-review.d.ts +2 -0
  234. package/dist/tools/handlers/strategy-review.js +1 -0
  235. package/dist/tools/handlers/watch.js +1 -1
  236. package/dist/tools/handlers/workflow.js +1 -1
  237. package/dist/tools/index.d.ts +3 -0
  238. package/dist/tools/index.js +1 -1
  239. package/dist/tools/registry/agent.js +1 -1
  240. package/dist/tools/registry/business.js +1 -1
  241. package/dist/tools/registry/local.js +1 -1
  242. package/dist/tools/registry/messenger.js +1 -1
  243. package/dist/tools/registry/query.js +1 -1
  244. package/dist/tools/rules-hook.js +1 -1
  245. package/dist/tools/shared.d.ts +2 -1
  246. package/dist/tools/shared.js +1 -1
  247. package/dist/tools/wrap.js +1 -1
  248. package/package.json +2 -2
@@ -5,14 +5,14 @@ export declare const EmployeeOperationInputSchema: z.ZodDiscriminatedUnion<[z.Zo
5
5
  profile: z.ZodObject<{
6
6
  department: z.ZodEnum<{
7
7
  logistics: "logistics";
8
+ customer_service: "customer_service";
8
9
  finance: "finance";
9
10
  operations: "operations";
10
- customer_service: "customer_service";
11
11
  }>;
12
12
  liability: z.ZodEnum<{
13
- hybrid: "hybrid";
14
13
  merchant_bears: "merchant_bears";
15
14
  self_bears: "self_bears";
15
+ hybrid: "hybrid";
16
16
  }>;
17
17
  response_time_budget_ms: z.ZodOptional<z.ZodNumber>;
18
18
  }, z.core.$strict>;
@@ -37,9 +37,9 @@ export declare const EmployeeOperationInputSchema: z.ZodDiscriminatedUnion<[z.Zo
37
37
  hybrid_threshold: z.ZodOptional<z.ZodNumber>;
38
38
  account: z.ZodOptional<z.ZodString>;
39
39
  liability: z.ZodOptional<z.ZodEnum<{
40
- hybrid: "hybrid";
41
40
  merchant_bears: "merchant_bears";
42
41
  self_bears: "self_bears";
42
+ hybrid: "hybrid";
43
43
  }>>;
44
44
  }, z.core.$strict>, z.ZodObject<{
45
45
  action: z.ZodLiteral<"suggest_incentive">;
@@ -79,14 +79,14 @@ export declare const EmployeeOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Z
79
79
  profile: z.ZodObject<{
80
80
  department: z.ZodEnum<{
81
81
  logistics: "logistics";
82
+ customer_service: "customer_service";
82
83
  finance: "finance";
83
84
  operations: "operations";
84
- customer_service: "customer_service";
85
85
  }>;
86
86
  liability: z.ZodEnum<{
87
- hybrid: "hybrid";
88
87
  merchant_bears: "merchant_bears";
89
88
  self_bears: "self_bears";
89
+ hybrid: "hybrid";
90
90
  }>;
91
91
  response_time_budget_ms: z.ZodOptional<z.ZodNumber>;
92
92
  }, z.core.$strict>;
@@ -96,14 +96,14 @@ export declare const EmployeeOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Z
96
96
  profile: z.ZodNullable<z.ZodObject<{
97
97
  department: z.ZodEnum<{
98
98
  logistics: "logistics";
99
+ customer_service: "customer_service";
99
100
  finance: "finance";
100
101
  operations: "operations";
101
- customer_service: "customer_service";
102
102
  }>;
103
103
  liability: z.ZodEnum<{
104
- hybrid: "hybrid";
105
104
  merchant_bears: "merchant_bears";
106
105
  self_bears: "self_bears";
106
+ hybrid: "hybrid";
107
107
  }>;
108
108
  response_time_budget_ms: z.ZodOptional<z.ZodNumber>;
109
109
  }, z.core.$strict>>;
@@ -128,9 +128,9 @@ export declare const PuzzleRawDataSchema: z.ZodObject<{
128
128
  export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
129
129
  action: z.ZodLiteral<"arb_game">;
130
130
  status: z.ZodEnum<{
131
- Voting: "Voting";
132
131
  Principal_confirming: "Principal_confirming";
133
132
  Arbitrator_confirming: "Arbitrator_confirming";
133
+ Voting: "Voting";
134
134
  Arbitrated: "Arbitrated";
135
135
  Objectionable: "Objectionable";
136
136
  Finished: "Finished";
@@ -142,8 +142,8 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
142
142
  arbitrator: "arbitrator";
143
143
  }>;
144
144
  appetite: z.ZodOptional<z.ZodEnum<{
145
- balanced: "balanced";
146
145
  conservative: "conservative";
146
+ balanced: "balanced";
147
147
  aggressive: "aggressive";
148
148
  }>>;
149
149
  account: z.ZodOptional<z.ZodString>;
@@ -160,8 +160,8 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
160
160
  arbitrator: "arbitrator";
161
161
  }>;
162
162
  appetite: z.ZodOptional<z.ZodEnum<{
163
- balanced: "balanced";
164
163
  conservative: "conservative";
164
+ balanced: "balanced";
165
165
  aggressive: "aggressive";
166
166
  }>>;
167
167
  account: z.ZodOptional<z.ZodString>;
@@ -752,8 +752,8 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
752
752
  refunded: z.ZodOptional<z.ZodArray<z.ZodString>>;
753
753
  }, z.core.$strict>>;
754
754
  appetite: z.ZodOptional<z.ZodEnum<{
755
- balanced: "balanced";
756
755
  conservative: "conservative";
756
+ balanced: "balanced";
757
757
  aggressive: "aggressive";
758
758
  }>>;
759
759
  account: z.ZodOptional<z.ZodString>;
@@ -1081,9 +1081,9 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1081
1081
  result: z.ZodDiscriminatedUnion<[z.ZodObject<{
1082
1082
  action: z.ZodLiteral<"arb_game">;
1083
1083
  status: z.ZodEnum<{
1084
- Voting: "Voting";
1085
1084
  Principal_confirming: "Principal_confirming";
1086
1085
  Arbitrator_confirming: "Arbitrator_confirming";
1086
+ Voting: "Voting";
1087
1087
  Arbitrated: "Arbitrated";
1088
1088
  Objectionable: "Objectionable";
1089
1089
  Finished: "Finished";
@@ -1388,8 +1388,8 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1388
1388
  forwards: z.ZodArray<z.ZodString>;
1389
1389
  terminal: z.ZodEnum<{
1390
1390
  completed: "completed";
1391
- open: "open";
1392
1391
  refunded: "refunded";
1392
+ open: "open";
1393
1393
  }>;
1394
1394
  guard_gates: z.ZodNumber;
1395
1395
  length: z.ZodNumber;
@@ -1405,8 +1405,8 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1405
1405
  forwards: z.ZodArray<z.ZodString>;
1406
1406
  terminal: z.ZodEnum<{
1407
1407
  completed: "completed";
1408
- open: "open";
1409
1408
  refunded: "refunded";
1409
+ open: "open";
1410
1410
  }>;
1411
1411
  guard_gates: z.ZodNumber;
1412
1412
  length: z.ZodNumber;
@@ -1585,10 +1585,22 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1585
1585
  action: z.ZodLiteral<"anti_cheat">;
1586
1586
  signals: z.ZodArray<z.ZodObject<{
1587
1587
  kind: z.ZodEnum<{
1588
- shell_merchant: "shell_merchant";
1589
- reputation_trade: "reputation_trade";
1590
1588
  fake_order: "fake_order";
1591
1589
  fake_review: "fake_review";
1590
+ shell_merchant: "shell_merchant";
1591
+ reputation_trade: "reputation_trade";
1592
+ }>;
1593
+ code: z.ZodEnum<{
1594
+ self_buy: "self_buy";
1595
+ reciprocal_loop: "reciprocal_loop";
1596
+ no_allocation: "no_allocation";
1597
+ reviews_unverified: "reviews_unverified";
1598
+ reviewer_duplicate: "reviewer_duplicate";
1599
+ review_time_burst: "review_time_burst";
1600
+ shell_no_arbitration: "shell_no_arbitration";
1601
+ shell_funded_no_arbitration: "shell_funded_no_arbitration";
1602
+ shell_no_machine: "shell_no_machine";
1603
+ reputation_bound: "reputation_bound";
1592
1604
  }>;
1593
1605
  severity: z.ZodEnum<{
1594
1606
  low: "low";
@@ -1596,6 +1608,7 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1596
1608
  medium: "medium";
1597
1609
  }>;
1598
1610
  description: z.ZodString;
1611
+ refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1599
1612
  }, z.core.$strict>>;
1600
1613
  }, z.core.$strict>, z.ZodObject<{
1601
1614
  action: z.ZodLiteral<"match_discover">;
@@ -1 +1 @@
1
- import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present_service\x20|\x20demand.present_service_with_passport\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances\x20(利益分配).'),'allocation_note':z['string']()['optional']()['describe']('Human-readable利益分配说明.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string']()})['strict'](),ServiceRawDataSchema=z['object']({'name':z['string']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'price':z['string']()['optional'](),'priceRaw':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'token_type':z['string']()['optional'](),'sales':z['array'](z['object']({'suspension':z['boolean']()['optional'](),'wip_url':z['string']()['optional'](),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'machine':z['string']()['optional'](),'buy_guard':z['string']()['optional'](),'customer_required':z['array'](z['unknown']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['object']({'balance':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).')})['strict']()['optional'](),'compensation_lock_duration':z['number']()['optional'](),'um':z['string']()['optional']()})['strict'](),MachineNodeRawSchema=z['object']({'name':z['string'](),'forwards':z['array'](z['object']({'name':z['string']()['optional'](),'weight':z['number']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'to':z['string']()['optional']()})['strict']())['optional'](),'is_pair_done':z['boolean']()['optional']()})['strict'](),ReviewRawSchema=z['object']({'rating':z['string']()['optional'](),'reviewer':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'has_evidence':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict'](),EventRawSchema=z['object']({'type':z['string'](),'timestamp':z['number']()['optional'](),'address':z['string']()['optional'](),'data':z['record'](z['string'](),z['unknown']())['optional']()})['strict']();export const PuzzleRawDataSchema=z['object']({'service':ServiceRawDataSchema,'machine_nodes':z['array'](MachineNodeRawSchema)['optional'](),'machine_published':z['boolean']()['optional'](),'machine_paused':z['boolean']()['optional'](),'reviews':z['array'](ReviewRawSchema)['optional'](),'events':z['array'](EventRawSchema)['optional'](),'similar_services':z['array'](z['object']({'price':z['string']()})['strict']())['optional'](),'order_amount':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'trust_score':z['object']({'score':z['number'](),'level':z['string']()})['strict']()['optional'](),'arbitration_owner':z['string']()['optional'](),'service_owner':z['string']()['optional'](),'wip_verified':z['boolean']()['optional'](),'order_history':z['array'](z['object']({'status':z['string'](),'has_dispute':z['boolean'](),'is_repeat':z['boolean']()})['strict']())['optional'](),'merchant_reputation':z['object']({'likes':z['number'](),'dislikes':z['number']()})['strict']()['optional']()})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances\x20(利益分配).'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(数值化).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('service_risk'),'service_id':z['string']()['describe']('Service\x20object\x20address\x20or\x20LocalMark\x20name.'),'puzzle_raw':PuzzleRawDataSchema,'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'depth':z['enum'](['browse','evaluate','preorder','monitor'])['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity\x20(收藏).')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('service_risk'),'result':EvaluationResultSchema})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'severity':z['enum'](['high','medium','low']),'description':z['string']()})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
1
+ import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present_service\x20|\x20demand.present_service_with_passport\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances\x20(利益分配).'),'allocation_note':z['string']()['optional']()['describe']('Human-readable利益分配说明.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string']()})['strict'](),ServiceRawDataSchema=z['object']({'name':z['string']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'price':z['string']()['optional'](),'priceRaw':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'token_type':z['string']()['optional'](),'sales':z['array'](z['object']({'suspension':z['boolean']()['optional'](),'wip_url':z['string']()['optional'](),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'machine':z['string']()['optional'](),'buy_guard':z['string']()['optional'](),'customer_required':z['array'](z['unknown']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['object']({'balance':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).')})['strict']()['optional'](),'compensation_lock_duration':z['number']()['optional'](),'um':z['string']()['optional']()})['strict'](),MachineNodeRawSchema=z['object']({'name':z['string'](),'forwards':z['array'](z['object']({'name':z['string']()['optional'](),'weight':z['number']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'to':z['string']()['optional']()})['strict']())['optional'](),'is_pair_done':z['boolean']()['optional']()})['strict'](),ReviewRawSchema=z['object']({'rating':z['string']()['optional'](),'reviewer':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'has_evidence':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict'](),EventRawSchema=z['object']({'type':z['string'](),'timestamp':z['number']()['optional'](),'address':z['string']()['optional'](),'data':z['record'](z['string'](),z['unknown']())['optional']()})['strict']();export const PuzzleRawDataSchema=z['object']({'service':ServiceRawDataSchema,'machine_nodes':z['array'](MachineNodeRawSchema)['optional'](),'machine_published':z['boolean']()['optional'](),'machine_paused':z['boolean']()['optional'](),'reviews':z['array'](ReviewRawSchema)['optional'](),'events':z['array'](EventRawSchema)['optional'](),'similar_services':z['array'](z['object']({'price':z['string']()})['strict']())['optional'](),'order_amount':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'trust_score':z['object']({'score':z['number'](),'level':z['string']()})['strict']()['optional'](),'arbitration_owner':z['string']()['optional'](),'service_owner':z['string']()['optional'](),'wip_verified':z['boolean']()['optional'](),'order_history':z['array'](z['object']({'status':z['string'](),'has_dispute':z['boolean'](),'is_repeat':z['boolean']()})['strict']())['optional'](),'merchant_reputation':z['object']({'likes':z['number'](),'dislikes':z['number']()})['strict']()['optional']()})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances\x20(利益分配).'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(数值化).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('service_risk'),'service_id':z['string']()['describe']('Service\x20object\x20address\x20or\x20LocalMark\x20name.'),'puzzle_raw':PuzzleRawDataSchema,'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'depth':z['enum'](['browse','evaluate','preorder','monitor'])['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity\x20(收藏).')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('service_risk'),'result':EvaluationResultSchema})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
@@ -18,8 +18,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
18
18
  action: z.ZodLiteral<"list">;
19
19
  stage: z.ZodOptional<z.ZodEnum<{
20
20
  confirmed: "confirmed";
21
- paused: "paused";
22
21
  completed: "completed";
22
+ paused: "paused";
23
23
  recognized: "recognized";
24
24
  bound: "bound";
25
25
  planned: "planned";
@@ -141,6 +141,42 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
141
141
  mainnet: "mainnet";
142
142
  testnet: "testnet";
143
143
  }>>;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ action: z.ZodLiteral<"boundaries">;
146
+ id: z.ZodString;
147
+ network: z.ZodOptional<z.ZodEnum<{
148
+ mainnet: "mainnet";
149
+ testnet: "testnet";
150
+ }>>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ action: z.ZodLiteral<"boundaries_set">;
153
+ id: z.ZodString;
154
+ budget: z.ZodOptional<z.ZodString>;
155
+ deadline: z.ZodOptional<z.ZodNumber>;
156
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
+ autonomy: z.ZodOptional<z.ZodEnum<{
158
+ confirm_all: "confirm_all";
159
+ execute_low_risk: "execute_low_risk";
160
+ execute_all: "execute_all";
161
+ }>>;
162
+ network: z.ZodOptional<z.ZodEnum<{
163
+ mainnet: "mainnet";
164
+ testnet: "testnet";
165
+ }>>;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ action: z.ZodLiteral<"pursue">;
168
+ id: z.ZodString;
169
+ network: z.ZodOptional<z.ZodEnum<{
170
+ mainnet: "mainnet";
171
+ testnet: "testnet";
172
+ }>>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ action: z.ZodLiteral<"next_steps">;
175
+ id: z.ZodString;
176
+ network: z.ZodOptional<z.ZodEnum<{
177
+ mainnet: "mainnet";
178
+ testnet: "testnet";
179
+ }>>;
144
180
  }, z.core.$strict>, z.ZodObject<{
145
181
  target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
182
  network: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
1
+ import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('boundaries'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('boundaries_set'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'budget':z['string']()['optional']()['describe']('Total\x20spend\x20ceiling,\x20smallest\x20on-chain\x20unit\x20(MIST),\x20non-negative\x20integer\x20decimal\x20string.\x20Payment\x20candidates\x20above\x20it\x20are\x20rejected\x20(stalled),\x20never\x20asked.'),'deadline':z['number']()['optional']()['describe']('Hard\x20deadline,\x20ms\x20epoch.\x20Past\x20it\x20the\x20pursue\x20tick\x20stalls\x20every\x20candidate.'),'requirements':z['array'](z['string']())['optional']()['describe']('Hard\x20acceptance\x20red\x20lines\x20(e.g.\x20\x27service\x20location\x20must\x20be\x20London\x27).\x20Commitment-level\x20moves\x20always\x20wait\x20until\x20every\x20requirement\x20is\x20verified.'),'autonomy':z['enum'](['confirm_all','execute_low_risk','execute_all'])['optional']()['describe']('Standing\x20authorization\x20for\x20the\x20pursue\x20tick:\x20confirm_all\x20(every\x20decision\x20surfaces\x20as\x20a\x20pending\x20suggestion;\x20default)\x20|\x20execute_low_risk\x20(engine-local\x20moves\x20execute;\x20on-chain\x20ops\x20ask)\x20|\x20execute_all\x20(standard-gated\x20on-chain\x20moves\x20also\x20execute;\x20irreversible/publish/amount\x20ALWAYS\x20ask).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pursue'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('next_steps'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();