@wowok/agent-mcp 3.1.0 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/dist/config/runtime.js +1 -1
  2. package/dist/customer/index.d.ts +3 -9
  3. package/dist/customer/index.js +1 -1
  4. package/dist/customer/industry-risks.d.ts +3 -17
  5. package/dist/customer/industry-risks.js +1 -1
  6. package/dist/customer/types.d.ts +1 -165
  7. package/dist/customer/types.js +1 -1
  8. package/dist/customer/user-preferences.d.ts +0 -49
  9. package/dist/customer/user-preferences.js +1 -1
  10. package/dist/evaluation/arbitration-game.js +1 -1
  11. package/dist/evaluation/architecture.spec.d.ts +1 -0
  12. package/dist/evaluation/architecture.spec.js +1 -0
  13. package/dist/evaluation/builtins/graph-service.d.ts +16 -0
  14. package/dist/evaluation/builtins/graph-service.js +1 -0
  15. package/dist/evaluation/builtins/graph-service.spec.d.ts +1 -0
  16. package/dist/evaluation/builtins/graph-service.spec.js +1 -0
  17. package/dist/evaluation/builtins/index.d.ts +1 -1
  18. package/dist/evaluation/builtins/index.js +1 -1
  19. package/dist/evaluation/builtins/purity.spec.d.ts +1 -0
  20. package/dist/evaluation/builtins/purity.spec.js +1 -0
  21. package/dist/evaluation/engine.js +1 -1
  22. package/dist/evaluation/facets/catalog.d.ts +19 -0
  23. package/dist/evaluation/facets/catalog.js +1 -0
  24. package/dist/evaluation/guard-scan.d.ts +10 -0
  25. package/dist/evaluation/guard-scan.js +1 -0
  26. package/dist/evaluation/location-match.js +1 -1
  27. package/dist/evaluation/standards.d.ts +31 -0
  28. package/dist/evaluation/standards.js +1 -0
  29. package/dist/evaluation/standards.spec.d.ts +1 -0
  30. package/dist/evaluation/standards.spec.js +1 -0
  31. package/dist/evaluation/types.d.ts +9 -0
  32. package/dist/experience/realtime-feedback.js +1 -1
  33. package/dist/extensions/index.d.ts +1 -1
  34. package/dist/extensions/index.js +1 -1
  35. package/dist/extensions/industry-layers.d.ts +6 -5
  36. package/dist/extensions/industry-layers.js +1 -1
  37. package/dist/extensions/industry-pack.js +1 -1
  38. package/dist/goal/GoalClassifier.js +1 -1
  39. package/dist/graph/onchain/analyze.d.ts +16 -3
  40. package/dist/graph/onchain/analyze.js +1 -1
  41. package/dist/graph/onchain/analyze.spec.js +1 -1
  42. package/dist/graph/onchain/dataplane.d.ts +1 -1
  43. package/dist/graph/onchain/dataplane.js +1 -1
  44. package/dist/graph/onchain/edge-batch.spec.d.ts +1 -0
  45. package/dist/graph/onchain/edge-batch.spec.js +1 -0
  46. package/dist/graph/onchain/edge-schema.d.ts +11 -3
  47. package/dist/graph/onchain/edge-schema.js +1 -1
  48. package/dist/graph/onchain/entity-profile.spec.d.ts +1 -0
  49. package/dist/graph/onchain/entity-profile.spec.js +1 -0
  50. package/dist/graph/onchain/event-history.spec.d.ts +1 -0
  51. package/dist/graph/onchain/event-history.spec.js +1 -0
  52. package/dist/graph/onchain/expand.js +1 -1
  53. package/dist/graph/onchain/extract-deep.spec.d.ts +1 -0
  54. package/dist/graph/onchain/extract-deep.spec.js +1 -0
  55. package/dist/graph/onchain/extract.d.ts +11 -3
  56. package/dist/graph/onchain/extract.js +1 -1
  57. package/dist/graph/onchain/facet-projection.d.ts +99 -0
  58. package/dist/graph/onchain/facet-projection.js +1 -0
  59. package/dist/graph/onchain/facet-projection.spec.d.ts +1 -0
  60. package/dist/graph/onchain/facet-projection.spec.js +1 -0
  61. package/dist/graph/onchain/facts.d.ts +103 -0
  62. package/dist/graph/onchain/facts.js +1 -0
  63. package/dist/graph/onchain/facts.spec.d.ts +1 -0
  64. package/dist/graph/onchain/facts.spec.js +1 -0
  65. package/dist/graph/onchain/field-manifest.d.ts +29 -0
  66. package/dist/graph/onchain/field-manifest.js +1 -0
  67. package/dist/graph/onchain/field-manifest.spec.d.ts +1 -0
  68. package/dist/graph/onchain/field-manifest.spec.js +1 -0
  69. package/dist/graph/onchain/fixtures.d.ts +80 -0
  70. package/dist/graph/onchain/fixtures.js +1 -0
  71. package/dist/graph/onchain/fixtures.spec.d.ts +1 -0
  72. package/dist/graph/onchain/fixtures.spec.js +1 -0
  73. package/dist/graph/onchain/index.d.ts +8 -2
  74. package/dist/graph/onchain/index.js +1 -1
  75. package/dist/graph/onchain/interest.js +1 -1
  76. package/dist/graph/onchain/label-lint.spec.d.ts +1 -0
  77. package/dist/graph/onchain/label-lint.spec.js +1 -0
  78. package/dist/graph/onchain/names.d.ts +23 -0
  79. package/dist/graph/onchain/names.js +1 -0
  80. package/dist/graph/onchain/names.spec.d.ts +1 -0
  81. package/dist/graph/onchain/names.spec.js +1 -0
  82. package/dist/graph/onchain/onchain.spec.js +1 -1
  83. package/dist/graph/onchain/proposal-graph.d.ts +11 -0
  84. package/dist/graph/onchain/proposal-graph.js +1 -0
  85. package/dist/graph/onchain/proposal-graph.spec.d.ts +1 -0
  86. package/dist/graph/onchain/proposal-graph.spec.js +1 -0
  87. package/dist/graph/onchain/sdk-batch.d.ts +5 -1
  88. package/dist/graph/onchain/sdk-batch.js +1 -1
  89. package/dist/graph/onchain/sdk-dataplane.js +1 -1
  90. package/dist/graph/onchain/strategy.d.ts +16 -0
  91. package/dist/graph/onchain/strategy.js +1 -1
  92. package/dist/graph/onchain/strategy.spec.js +1 -1
  93. package/dist/graph/onchain/table-ledger.spec.d.ts +1 -0
  94. package/dist/graph/onchain/table-ledger.spec.js +1 -0
  95. package/dist/graph/onchain/types.d.ts +51 -11
  96. package/dist/graph/onchain/viewport.d.ts +1 -0
  97. package/dist/graph/onchain/viewport.js +1 -1
  98. package/dist/harness/index.d.ts +1 -5
  99. package/dist/harness/index.js +1 -1
  100. package/dist/harness/verify.d.ts +6 -1
  101. package/dist/harness/verify.js +1 -1
  102. package/dist/index.js +1 -1
  103. package/dist/knowledge/allocation-ledger.d.ts +2 -0
  104. package/dist/knowledge/allocation-ledger.js +1 -1
  105. package/dist/knowledge/allocation-puzzle.js +1 -1
  106. package/dist/knowledge/allocation-risk.d.ts +2 -3
  107. package/dist/knowledge/allocation-risk.js +1 -1
  108. package/dist/knowledge/arb-risk.d.ts +0 -1
  109. package/dist/knowledge/arb-risk.js +1 -1
  110. package/dist/knowledge/arbitration-risk.d.ts +0 -2
  111. package/dist/knowledge/arbitration-risk.js +1 -1
  112. package/dist/knowledge/baselines/evaluation-baselines.json +79 -0
  113. package/dist/knowledge/baselines/guard-lint-baseline.spec.d.ts +1 -0
  114. package/dist/knowledge/baselines/guard-lint-baseline.spec.js +1 -0
  115. package/dist/knowledge/baselines/risk-baselines.spec.d.ts +1 -0
  116. package/dist/knowledge/baselines/risk-baselines.spec.js +1 -0
  117. package/dist/knowledge/baselines/risk-cases.d.ts +8 -0
  118. package/dist/knowledge/baselines/risk-cases.js +1 -0
  119. package/dist/knowledge/bridge-risk.d.ts +0 -1
  120. package/dist/knowledge/bridge-risk.js +1 -1
  121. package/dist/knowledge/contact-risk.d.ts +0 -1
  122. package/dist/knowledge/contact-risk.js +1 -1
  123. package/dist/knowledge/contract-invariants.d.ts +1 -0
  124. package/dist/knowledge/contract-invariants.js +1 -1
  125. package/dist/knowledge/demand-risk.d.ts +0 -1
  126. package/dist/knowledge/demand-risk.js +1 -1
  127. package/dist/knowledge/getting-started.js +1 -1
  128. package/dist/knowledge/guard-design-patterns.js +1 -1
  129. package/dist/knowledge/guard-eval.d.ts +15 -0
  130. package/dist/knowledge/guard-eval.js +1 -0
  131. package/dist/knowledge/guard-eval.spec.d.ts +1 -0
  132. package/dist/knowledge/guard-eval.spec.js +1 -0
  133. package/dist/knowledge/guard-field-cognition.d.ts +48 -0
  134. package/dist/knowledge/guard-field-cognition.js +1 -0
  135. package/dist/knowledge/guard-lint.d.ts +1 -1
  136. package/dist/knowledge/guard-lint.js +1 -1
  137. package/dist/knowledge/guard-risk.d.ts +4 -19
  138. package/dist/knowledge/guard-risk.js +1 -1
  139. package/dist/knowledge/index.d.ts +42 -43
  140. package/dist/knowledge/index.js +1 -1
  141. package/dist/knowledge/industry-registry.js +1 -1
  142. package/dist/knowledge/industry-rule-node.d.ts +7 -0
  143. package/dist/knowledge/industry-rule-node.js +1 -0
  144. package/dist/knowledge/industry-strategy.js +1 -1
  145. package/dist/knowledge/jsonrpc-enum.js +1 -1
  146. package/dist/knowledge/machine-risk.d.ts +0 -6
  147. package/dist/knowledge/machine-risk.js +1 -1
  148. package/dist/knowledge/order-risk.d.ts +1 -9
  149. package/dist/knowledge/order-risk.js +1 -1
  150. package/dist/knowledge/payment-risk.d.ts +0 -1
  151. package/dist/knowledge/payment-risk.js +1 -1
  152. package/dist/knowledge/permission-risk.d.ts +0 -3
  153. package/dist/knowledge/permission-risk.js +1 -1
  154. package/dist/knowledge/personal-risk.d.ts +0 -1
  155. package/dist/knowledge/personal-risk.js +1 -1
  156. package/dist/knowledge/progress-risk.d.ts +0 -2
  157. package/dist/knowledge/progress-risk.js +1 -1
  158. package/dist/knowledge/proof-risk.d.ts +0 -1
  159. package/dist/knowledge/proof-risk.js +1 -1
  160. package/dist/knowledge/puzzle-projections.d.ts +11 -0
  161. package/dist/knowledge/puzzle-projections.js +1 -0
  162. package/dist/knowledge/recipient-constraint.d.ts +6 -1
  163. package/dist/knowledge/recipient-constraint.js +1 -1
  164. package/dist/knowledge/registrar-risk.d.ts +0 -1
  165. package/dist/knowledge/registrar-risk.js +1 -1
  166. package/dist/knowledge/repository-risk.d.ts +0 -1
  167. package/dist/knowledge/repository-risk.js +1 -1
  168. package/dist/knowledge/resource-risk.d.ts +0 -1
  169. package/dist/knowledge/resource-risk.js +1 -1
  170. package/dist/knowledge/reward-risk.d.ts +1 -5
  171. package/dist/knowledge/reward-risk.js +1 -1
  172. package/dist/knowledge/rule-node-analyzers.d.ts +43 -0
  173. package/dist/knowledge/rule-node-analyzers.js +1 -0
  174. package/dist/knowledge/rule-node-analyzers.spec.d.ts +1 -0
  175. package/dist/knowledge/rule-node-analyzers.spec.js +1 -0
  176. package/dist/knowledge/rule-outcome.d.ts +5 -0
  177. package/dist/knowledge/rule-outcome.js +1 -0
  178. package/dist/knowledge/safety-rules.js +1 -1
  179. package/dist/knowledge/scenario-topology.js +1 -1
  180. package/dist/knowledge/service-allocator-audit-node.d.ts +3 -0
  181. package/dist/knowledge/service-allocator-audit-node.js +1 -0
  182. package/dist/knowledge/service-risk-node.js +1 -1
  183. package/dist/knowledge/service-risk.d.ts +0 -3
  184. package/dist/knowledge/service-risk.js +1 -1
  185. package/dist/knowledge/template-registry.js +1 -1
  186. package/dist/knowledge/tools-reference.js +1 -1
  187. package/dist/knowledge/treasury-risk.d.ts +2 -3
  188. package/dist/knowledge/treasury-risk.js +1 -1
  189. package/dist/knowledge/util-risk.d.ts +0 -1
  190. package/dist/knowledge/util-risk.js +1 -1
  191. package/dist/knowledge/workflow-guidance.d.ts +2 -0
  192. package/dist/knowledge/workflow-guidance.js +1 -1
  193. package/dist/monitor/MonitorLoop.js +1 -1
  194. package/dist/persona/bridge.js +1 -1
  195. package/dist/persona/facet-profile.d.ts +33 -0
  196. package/dist/persona/facet-profile.js +1 -0
  197. package/dist/persona/model.d.ts +2 -1
  198. package/dist/persona/model.js +1 -1
  199. package/dist/persona/strategy-intent.js +1 -1
  200. package/dist/persona/topology-focus.d.ts +2 -2
  201. package/dist/persona/topology-focus.js +1 -1
  202. package/dist/persona/types.d.ts +12 -0
  203. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  204. package/dist/playbooks/service-build/facet-money.d.ts +22 -0
  205. package/dist/playbooks/service-build/facet-money.js +1 -0
  206. package/dist/playbooks/service-build/facet-money.spec.d.ts +1 -0
  207. package/dist/playbooks/service-build/facet-money.spec.js +1 -0
  208. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  209. package/dist/playbooks/service-build/machine-panorama.d.ts +3 -0
  210. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  211. package/dist/playbooks/service-build/object-panorama.d.ts +27 -27
  212. package/dist/playbooks/service-build/object-panorama.js +1 -1
  213. package/dist/playbooks/service-build/pipeline-actions.d.ts +2 -2
  214. package/dist/playbooks/service-build/pipeline-actions.js +1 -1
  215. package/dist/playbooks/service-build/risk-aggregator.d.ts +2 -1
  216. package/dist/playbooks/service-build/risk-aggregator.js +1 -1
  217. package/dist/playbooks/service-build/service-panorama.d.ts +4 -9
  218. package/dist/playbooks/service-build/service-panorama.js +1 -1
  219. package/dist/playbooks/service-build/topology-evaluation.spec.d.ts +1 -0
  220. package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -0
  221. package/dist/playbooks/service-build/topology-query.d.ts +13 -2
  222. package/dist/playbooks/service-build/topology-query.js +1 -1
  223. package/dist/review/arb.d.ts +0 -2
  224. package/dist/review/arb.js +1 -1
  225. package/dist/review/order.d.ts +0 -1
  226. package/dist/review/order.js +1 -1
  227. package/dist/role/profiles.js +1 -1
  228. package/dist/rules.d.ts +1 -2
  229. package/dist/rules.js +1 -1
  230. package/dist/safety/confirm-gate.js +1 -1
  231. package/dist/safety/preview.js +1 -1
  232. package/dist/schema/call/base.d.ts +3372 -668
  233. package/dist/schema/call/base.js +1 -1
  234. package/dist/schema/call/handler.js +1 -1
  235. package/dist/schema/call/receipt.d.ts +28 -0
  236. package/dist/schema/call/receipt.js +1 -0
  237. package/dist/schema/call/semantic-customer-advice.spec.d.ts +1 -0
  238. package/dist/schema/call/semantic-customer-advice.spec.js +1 -0
  239. package/dist/schema/call/semantic.d.ts +5 -2
  240. package/dist/schema/call/semantic.js +1 -1
  241. package/dist/schema/call/treasury.js +1 -1
  242. package/dist/schema/common/index.js +1 -1
  243. package/dist/schema/evaluation/index.d.ts +289 -211
  244. package/dist/schema/evaluation/index.js +1 -1
  245. package/dist/schema/goal/index.d.ts +1 -1
  246. package/dist/schema/goal/planning.d.ts +2 -2
  247. package/dist/schema/index.d.ts +0 -1
  248. package/dist/schema/index.js +1 -1
  249. package/dist/schema/industry-pack/index.d.ts +1 -1
  250. package/dist/schema/keeper/index.d.ts +1 -1
  251. package/dist/schema/local/index.js +1 -1
  252. package/dist/schema/operations.d.ts +28 -10
  253. package/dist/schema/operations.js +1 -1
  254. package/dist/schema/persona/index.d.ts +24 -24
  255. package/dist/schema/query/bi.d.ts +629 -14
  256. package/dist/schema/query/bi.js +1 -1
  257. package/dist/schema/query/index.d.ts +9 -9
  258. package/dist/schema/query/index.js +1 -1
  259. package/dist/schema/schema-version.js +1 -1
  260. package/dist/schema/workspace/index.d.ts +2 -2
  261. package/dist/schema-query-impl/index.js +1 -1
  262. package/dist/schemas/account_operation.output.json +10 -10
  263. package/dist/schemas/account_operation.schema.json +3 -3
  264. package/dist/schemas/bridge_operation.output.json +10 -10
  265. package/dist/schemas/evaluation_operation.output.json +697 -169
  266. package/dist/schemas/evaluation_operation.schema.json +5 -434
  267. package/dist/schemas/index.json +1 -7
  268. package/dist/schemas/keeper_operation.output.json +10 -10
  269. package/dist/schemas/local_history_operation.output.json +10 -10
  270. package/dist/schemas/local_info_operation.output.json +10 -10
  271. package/dist/schemas/local_mark_operation.output.json +10 -10
  272. package/dist/schemas/messenger_operation.output.json +10 -10
  273. package/dist/schemas/monitor_events.output.json +10 -10
  274. package/dist/schemas/monitor_subscription.output.json +10 -10
  275. package/dist/schemas/onchain_events.output.json +11 -11
  276. package/dist/schemas/onchain_operations.output.json +6369 -3736
  277. package/dist/schemas/onchain_operations.schema.json +48 -48
  278. package/dist/schemas/onchain_operations_allocation.schema.json +5 -5
  279. package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
  280. package/dist/schemas/onchain_operations_contact.schema.json +2 -2
  281. package/dist/schemas/onchain_operations_demand.schema.json +2 -2
  282. package/dist/schemas/onchain_operations_machine.schema.json +2 -2
  283. package/dist/schemas/onchain_operations_order.schema.json +2 -2
  284. package/dist/schemas/onchain_operations_payment.schema.json +2 -2
  285. package/dist/schemas/onchain_operations_permission.schema.json +2 -2
  286. package/dist/schemas/onchain_operations_progress.schema.json +2 -2
  287. package/dist/schemas/onchain_operations_repository.schema.json +2 -2
  288. package/dist/schemas/onchain_operations_reward.schema.json +6 -6
  289. package/dist/schemas/onchain_operations_service.schema.json +8 -8
  290. package/dist/schemas/onchain_operations_treasury.schema.json +10 -10
  291. package/dist/schemas/onchain_table_data.output.json +78 -84
  292. package/dist/schemas/query_toolkit.output.json +1087 -254
  293. package/dist/schemas/query_toolkit.schema.json +65 -3
  294. package/dist/strategy/collectors.js +1 -1
  295. package/dist/strategy/metrics.js +1 -1
  296. package/dist/task/playbook.js +1 -1
  297. package/dist/tools/handlers/bridge.js +1 -1
  298. package/dist/tools/handlers/config.js +1 -1
  299. package/dist/tools/handlers/dispatch-expectations.d.ts +3 -0
  300. package/dist/tools/handlers/dispatch-expectations.js +1 -0
  301. package/dist/tools/handlers/evaluation.js +1 -1
  302. package/dist/tools/handlers/evaluation.spec.js +1 -1
  303. package/dist/tools/handlers/onchain.js +1 -1
  304. package/dist/tools/handlers/query.js +1 -1
  305. package/dist/tools/index.js +1 -1
  306. package/dist/tools/registry/evaluation.d.ts +2 -0
  307. package/dist/tools/registry/evaluation.js +1 -0
  308. package/dist/tools/registry/monitor.js +1 -1
  309. package/dist/tools/registry/query.js +1 -1
  310. package/dist/tools/shared.d.ts +0 -1
  311. package/dist/tools/shared.js +1 -1
  312. package/dist/tools/wrap.js +1 -1
  313. package/package.json +4 -3
  314. package/dist/customer/customer-advice.d.ts +0 -32
  315. package/dist/customer/customer-advice.js +0 -1
  316. package/dist/customer/info-puzzle.d.ts +0 -146
  317. package/dist/customer/info-puzzle.js +0 -1
  318. package/dist/customer/order-strategy.d.ts +0 -17
  319. package/dist/customer/order-strategy.js +0 -1
  320. package/dist/customer/preorder-compare.d.ts +0 -24
  321. package/dist/customer/preorder-compare.js +0 -1
  322. package/dist/customer/reminder-system.d.ts +0 -42
  323. package/dist/customer/reminder-system.js +0 -1
  324. package/dist/customer/risk-assessment.d.ts +0 -13
  325. package/dist/customer/risk-assessment.js +0 -1
  326. package/dist/evaluation/builtins/service-risk.d.ts +0 -7
  327. package/dist/evaluation/builtins/service-risk.js +0 -1
  328. package/dist/knowledge/trust-metrics.d.ts +0 -66
  329. package/dist/knowledge/trust-metrics.js +0 -1
  330. package/dist/schema/trust/index.d.ts +0 -334
  331. package/dist/schema/trust/index.js +0 -1
  332. package/dist/schemas/trust_score.output.json +0 -847
  333. package/dist/schemas/trust_score.schema.json +0 -364
  334. package/dist/tools/handlers/trust.d.ts +0 -16
  335. package/dist/tools/handlers/trust.js +0 -1
  336. package/dist/tools/registry/trust.d.ts +0 -2
  337. package/dist/tools/registry/trust.js +0 -1
@@ -1,364 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://wowok.net/schemas/trust_score.json",
4
- "title": "Trust Score - Service Risk & Trust Assessment",
5
- "description": "Proactively query the trust score (0-100, 5 dimensions) and risk assessment (4 dimensions, 100-point) of a Service object. Parameters: service (required), order_amount (optional), depth (optional: browse/evaluate/preorder).",
6
- "type": "object",
7
- "properties": {
8
- "service": {
9
- "type": "string",
10
- "description": "Service object ID or local_mark name to evaluate. Must reference an existing Service object on-chain."
11
- },
12
- "order_amount": {
13
- "description": "Optional order amount (in smallest token unit, e.g. 2000000000 for 2 WOW). Used for fund-safety dimension risk assessment. If omitted, the first active sale price of the service is used.",
14
- "anyOf": [
15
- {
16
- "type": "string"
17
- },
18
- {
19
- "type": "number"
20
- }
21
- ]
22
- },
23
- "depth": {
24
- "description": "InfoPuzzle collection depth. browse: only Service basics + trust score; evaluate (default): + workflow/fund/trust dimensions risk assessment; preorder: + full preorder advice (confidence, game strategies, preference match, industry risks, blocking reminders).",
25
- "type": "string",
26
- "enum": [
27
- "browse",
28
- "evaluate",
29
- "preorder"
30
- ]
31
- },
32
- "industry": {
33
- "description": "Explicit industry override for industry-specific risk checks and needs matrix. If omitted at depth=preorder, the industry is inferred from the puzzle.",
34
- "type": "string",
35
- "enum": [
36
- "freelance",
37
- "rental",
38
- "education",
39
- "travel",
40
- "subscription",
41
- "retail"
42
- ]
43
- },
44
- "preferences": {
45
- "description": "Optional user preference overrides (partial; merged over profile-derived defaults). Only used at depth=preorder for preference matching and pref-aware strategies.",
46
- "type": "object",
47
- "properties": {
48
- "price_sensitivity": {
49
- "type": "string",
50
- "enum": [
51
- "low",
52
- "medium",
53
- "high"
54
- ]
55
- },
56
- "budget_range": {
57
- "type": "object",
58
- "properties": {
59
- "min": {
60
- "anyOf": [
61
- {
62
- "type": "string"
63
- },
64
- {
65
- "type": "number"
66
- }
67
- ],
68
- "description": "Budget lower bound (smallest token unit)."
69
- },
70
- "max": {
71
- "anyOf": [
72
- {
73
- "type": "string"
74
- },
75
- {
76
- "type": "number"
77
- }
78
- ],
79
- "description": "Budget upper bound (smallest token unit)."
80
- }
81
- },
82
- "required": [
83
- "min",
84
- "max"
85
- ],
86
- "additionalProperties": false
87
- },
88
- "value_orientation": {
89
- "type": "string",
90
- "enum": [
91
- "quality",
92
- "balanced",
93
- "budget"
94
- ]
95
- },
96
- "discount_sensitivity": {
97
- "type": "number",
98
- "minimum": 0,
99
- "maximum": 1
100
- },
101
- "delivery_speed_priority": {
102
- "type": "string",
103
- "enum": [
104
- "urgent",
105
- "normal",
106
- "flexible"
107
- ]
108
- },
109
- "max_acceptable_cycle": {
110
- "type": "number",
111
- "minimum": 0,
112
- "description": "Max acceptable delivery cycle (days)."
113
- },
114
- "response_time_expectation": {
115
- "type": "number",
116
- "minimum": 0,
117
- "description": "Expected merchant response time (hours)."
118
- },
119
- "merchant_preference": {
120
- "type": "string",
121
- "enum": [
122
- "established",
123
- "emerging",
124
- "neutral"
125
- ]
126
- },
127
- "min_order_history": {
128
- "type": "integer",
129
- "minimum": 0,
130
- "maximum": 9007199254740991
131
- },
132
- "bargain_hunting": {
133
- "type": "number",
134
- "minimum": 0,
135
- "maximum": 1
136
- },
137
- "reward_seeking": {
138
- "type": "boolean"
139
- },
140
- "referral_participation": {
141
- "type": "boolean"
142
- },
143
- "communication_style": {
144
- "type": "string",
145
- "enum": [
146
- "formal",
147
- "casual",
148
- "friendly"
149
- ]
150
- },
151
- "transparency_demand": {
152
- "type": "number",
153
- "minimum": 0,
154
- "maximum": 1
155
- },
156
- "after_sales_expectation": {
157
- "type": "string",
158
- "enum": [
159
- "full",
160
- "basic",
161
- "minimal"
162
- ]
163
- },
164
- "risk_appetite": {
165
- "type": "string",
166
- "enum": [
167
- "conservative",
168
- "balanced",
169
- "aggressive"
170
- ]
171
- },
172
- "min_trust_score": {
173
- "type": "number",
174
- "minimum": 0,
175
- "maximum": 100
176
- },
177
- "require_arbitration": {
178
- "type": "boolean"
179
- },
180
- "require_compensation_fund": {
181
- "type": "boolean"
182
- },
183
- "preferred_industries": {
184
- "type": "array",
185
- "items": {
186
- "type": "string"
187
- }
188
- },
189
- "preferred_tokens": {
190
- "type": "array",
191
- "items": {
192
- "type": "string"
193
- }
194
- },
195
- "preferred_merchants": {
196
- "type": "array",
197
- "items": {
198
- "type": "string"
199
- }
200
- }
201
- },
202
- "additionalProperties": false
203
- },
204
- "user_metrics": {
205
- "description": "Optional user-controllable scoring factors. Evaluated at depth=preorder; the composite adjustment (±cap) nudges the order confidence score.",
206
- "type": "object",
207
- "properties": {
208
- "metrics": {
209
- "minItems": 1,
210
- "type": "array",
211
- "items": {
212
- "type": "object",
213
- "properties": {
214
- "name": {
215
- "type": "string",
216
- "description": "Stable metric identifier (e.g. 'merchant_tenure_days')."
217
- },
218
- "label": {
219
- "type": "string",
220
- "description": "Human-readable label shown to the user."
221
- },
222
- "evaluator": {
223
- "type": "string",
224
- "enum": [
225
- "threshold",
226
- "ratio",
227
- "boolean",
228
- "presence",
229
- "regex_match",
230
- "custom_query"
231
- ],
232
- "description": "How the metric is evaluated against the puzzle context."
233
- },
234
- "params": {
235
- "type": "object",
236
- "properties": {
237
- "path": {
238
- "description": "JSON path in the raw data context (e.g. 'service.name').",
239
- "type": "string"
240
- },
241
- "threshold": {
242
- "description": "Threshold value (threshold/presence evaluators).",
243
- "anyOf": [
244
- {
245
- "type": "string"
246
- },
247
- {
248
- "type": "number"
249
- }
250
- ]
251
- },
252
- "invert": {
253
- "description": "true: pass when value <= threshold.",
254
- "type": "boolean"
255
- },
256
- "min": {
257
- "description": "Min ratio (ratio evaluator).",
258
- "type": "number"
259
- },
260
- "max": {
261
- "description": "Max ratio (ratio evaluator).",
262
- "type": "number"
263
- },
264
- "pattern": {
265
- "description": "Regex pattern (regex_match evaluator).",
266
- "type": "string"
267
- },
268
- "query_key": {
269
- "description": "Custom query identifier (custom_query evaluator).",
270
- "type": "string"
271
- }
272
- },
273
- "additionalProperties": false
274
- },
275
- "weight": {
276
- "type": "number",
277
- "minimum": 0,
278
- "maximum": 1,
279
- "description": "Relative weight vs other user metrics (0-1)."
280
- },
281
- "advice_on_fail": {
282
- "type": "string"
283
- },
284
- "advice_on_pass": {
285
- "type": "string"
286
- }
287
- },
288
- "required": [
289
- "name",
290
- "label",
291
- "evaluator",
292
- "params",
293
- "weight"
294
- ],
295
- "additionalProperties": false
296
- },
297
- "description": "User-defined scoring factors."
298
- },
299
- "adjustment_cap": {
300
- "description": "Global cap for the composite confidence adjustment (default ±10 points).",
301
- "type": "number",
302
- "exclusiveMinimum": 0
303
- }
304
- },
305
- "required": [
306
- "metrics"
307
- ],
308
- "additionalProperties": false
309
- },
310
- "trust_weights": {
311
- "description": "Optional per-dimension weight overrides for the trust score (K3 22 §4.3). User-participatory: re-weight the 5 trust dimensions; the engine renormalizes to 100. Highest-priority channel for a user to shape how WoWok evaluates trust.",
312
- "type": "object",
313
- "properties": {
314
- "arbitration": {
315
- "description": "Weight for the arbitration dimension (default 20).",
316
- "type": "number",
317
- "minimum": 0
318
- },
319
- "reviews": {
320
- "description": "Weight for the reviews dimension (default 35).",
321
- "type": "number",
322
- "minimum": 0
323
- },
324
- "fulfillment": {
325
- "description": "Weight for the fulfillment dimension (default 20).",
326
- "type": "number",
327
- "minimum": 0
328
- },
329
- "fund_safety": {
330
- "description": "Weight for the fund_safety dimension (default 15).",
331
- "type": "number",
332
- "minimum": 0
333
- },
334
- "transparency": {
335
- "description": "Weight for the transparency dimension (default 10).",
336
- "type": "number",
337
- "minimum": 0
338
- }
339
- },
340
- "additionalProperties": false
341
- },
342
- "network": {
343
- "description": "Network override (e.g. 'mainnet', 'testnet'). If omitted, uses default.",
344
- "type": "string"
345
- },
346
- "no_cache": {
347
- "description": "Skip object cache and force a fresh on-chain query.",
348
- "type": "boolean"
349
- },
350
- "compare_with": {
351
- "description": "Optional candidate Service addresses/LocalMark names (1-9) for deterministic multi-service comparison. Only used at depth=preorder. The SAME preferences/user_metrics/industry are applied uniformly to all candidates; output gains a `comparison` block with per-metric bests (NO overall ranking — the buyer decides).",
352
- "minItems": 1,
353
- "maxItems": 9,
354
- "type": "array",
355
- "items": {
356
- "type": "string"
357
- }
358
- }
359
- },
360
- "required": [
361
- "service"
362
- ],
363
- "additionalProperties": false
364
- }
@@ -1,16 +0,0 @@
1
- import type { ToolDispatchResult } from "../types.js";
2
- export declare function handleTrustScore(args: unknown): Promise<ToolDispatchResult>;
3
- export declare function computeServiceTrustSummary(opts: {
4
- service: string;
5
- order_amount?: number | string;
6
- depth?: "browse" | "evaluate" | "preorder";
7
- network?: string;
8
- no_cache?: boolean;
9
- }): Promise<{
10
- trust_score: number;
11
- trust_level: string;
12
- trust_summary: string;
13
- risk_score: number | null;
14
- risk_level: string | null;
15
- completeness: number | null;
16
- }>;
@@ -1 +0,0 @@
1
- import{strictParse,TrustScoreInputSchema}from'../../schema/index.js';import{query_objects,query_personal}from'@wowok/wowok';import{computeServiceTrustScore}from'../../knowledge/index.js';import{detectShellMerchant}from'../../knowledge/anti-cheat.js';import{assembleInfoPuzzle,assemblePreorderAdvice,assessRisk,buildPreorderComparison,getDefaultPreferences,inferIndustry,mergePreferences,validatePreferences}from'../../customer/index.js';import{getProfile}from'../../experience/user-profile.js';import{resolveEffectiveOverrides}from'../../persona/index.js';function extractTrustMetrics(a){const b=a?.['data']??a??{},c=Array['isArray'](b['sales'])?b['sales']:[],d=c['filter'](g=>g&&!g['suspension']);void d;const e=b['compensation_fund'],f=((()=>{if(e===null||e===undefined)return undefined;if(typeof e==='bigint')return e;if(typeof e==='number')return BigInt(e);if(typeof e==='string')try{return BigInt(e);}catch{return undefined;}if(typeof e==='object'){const g=e['balance'];if(g===null||g===undefined)return undefined;try{return BigInt(g);}catch{return undefined;}}return undefined;})());return{'arbitrationCases':Array['isArray'](b['arbitrations'])?b['arbitrations']['length']:undefined,'compensationFundBalance':f,'hasMachineBound':typeof b['machine']==='string'&&b['machine']['length']>0x0,'hasBuyGuard':typeof b['buy_guard']==='string'&&b['buy_guard']['length']>0x0,'hasReward':Array['isArray'](b['rewards'])&&b['rewards']['length']>0x0};}function buildPuzzleRawData(a,b,c,d){const e=a?.['data']??a??{},f=Array['isArray'](e['sales'])?e['sales']:[],g=e['order_allocators']?Array['isArray'](e['order_allocators']['allocators'])?e['order_allocators']:{'allocators':e['order_allocators']}:undefined,h={'name':e['name']??a?.['id'],'bPublished':e['bPublished'],'bPaused':e['bPaused'],'price':f[0x0]?.['price']!=null?String(f[0x0]['price']):'0','priceRaw':f[0x0]?.['price']!=null?BigInt(f[0x0]['price']):0x0n,'token_type':f[0x0]?.['price_type']??(compensation_fund_token(e)??'0x2::wow::WOW'),'sales':f,'machine':e['machine']??undefined,'buy_guard':e['buy_guard']??undefined,'customer_required':e['customer_required'],'arbitrations':e['arbitrations'],'compensation_fund':e['compensation_fund']?{'balance':extractBalance(e['compensation_fund'])}:undefined,'compensation_lock_duration':typeof e['setting_lock_duration']==='number'?e['setting_lock_duration']:undefined,'um':e['um']??undefined,'order_allocators':g?[g]:undefined};return{'service':h,'order_amount':b,'trust_score':c,'service_owner':d};}function compensation_fund_token(a){if(a?.['compensation_fund']&&typeof a['compensation_fund']==='object')return a['compensation_fund']['token_type'];return undefined;}function extractBalance(a){if(a===null||a===undefined)return 0x0n;if(typeof a==='bigint')return a;if(typeof a==='number')return BigInt(a);if(typeof a==='string')try{return BigInt(a);}catch{return 0x0n;}if(typeof a==='object'){const c=a['balance'];if(c===null||c===undefined)return 0x0n;try{return BigInt(c);}catch{return 0x0n;}}return 0x0n;}function toUserMetricsConfig(a){return{'version':0x1,'metrics':a['metrics']['map'](b=>({'name':b['name'],'label':b['label'],'evaluator':b['evaluator'],'params':{...b['params'],'threshold':b['params']['threshold']!==undefined?String(b['params']['threshold']):undefined},'weight':b['weight'],'advice_on_fail':b['advice_on_fail'],'advice_on_pass':b['advice_on_pass']})),'adjustment_cap':a['adjustment_cap']};}const TRUST_WEIGHT_ID={'arbitration':'trust_arbitration','reviews':'trust_reviews','fulfillment':'trust_fulfillment','fund_safety':'trust_fund_safety','transparency':'trust_transparency'};function buildTrustInjection(a){if(!a)return undefined;const b={};for(const [c,d]of Object['entries'](TRUST_WEIGHT_ID)){const e=a[c];if(e!==undefined)b[d]={'weight':e};}if(Object['keys'](b)['length']===0x0)return undefined;return{'overrides':{'rules':b}};}const ANTI_CHEAT_SEVERITY={'high':'critical','medium':'warning','low':'info'},ANTI_CHEAT_DEDUCTION={'high':0xf,'medium':0x8,'low':0x3};function buildAntiCheatFindings(a){const b=a?.['data']??a??{},c=detectShellMerchant({'object':b['object']??a?.['object']??'','arbitrations':Array['isArray'](b['arbitrations'])?b['arbitrations']:[],'compensation_fund':b['compensation_fund']??0x0,'machine':b['machine']??null,'bPublished':b['bPublished']===!![]});return c['map'](d=>({'kind':d['kind'],'severity':ANTI_CHEAT_SEVERITY[d['severity']]??'warning','message':d['description'],'deduction':ANTI_CHEAT_DEDUCTION[d['severity']]??0x5}));}function derivePreferences(a,b){const c=getProfile(),d=mergePreferences(getDefaultPreferences(b),{'risk_appetite':c['risk_appetite'],'min_trust_score':c['risk_appetite']==='conservative'?0x46:c['risk_appetite']==='aggressive'?0x1e:0x32}),e=a['preferences'],f=e?{...e,'budget_range':e['budget_range']?{'min':BigInt(e['budget_range']['min']),'max':BigInt(e['budget_range']['max'])}:undefined}:undefined,g=f?mergePreferences(d,f):d;return{'prefs':g,'issues':validatePreferences(g)};}async function fetchMerchantReputation(a,b,c){try{if(typeof a!=='string'||!a['startsWith']('0x'))return undefined;const d=await query_objects({'objects':[a],'no_cache':c,'network':b}),e=d?.['objects']?.[0x0],f=(e?.['data']??e)?.['builder'];if(typeof f!=='string'||!f['startsWith']('0x'))return undefined;const g=await query_personal({'account':f,'no_cache':c,'network':b});if(!g)return undefined;return{'likes':g['like']??0x0,'dislikes':g['dislike']??0x0};}catch{return undefined;}}async function runTrustEvaluation(a){const b=a['depth']??'evaluate',c=await query_objects({'objects':[a['service']],'no_cache':a['no_cache'],'network':a['network']}),d=c?.['objects'];if(!d||!Array['isArray'](d)||d['length']===0x0)throw new Error('Service\x20object\x20not\x20found\x20for\x20\x27'+a['service']+'\x27.\x20'+'Verify\x20the\x20ID/name\x20and\x20network,\x20or\x20use\x20query_toolkit\x20with\x20query_type=\x27onchain_objects\x27\x20to\x20debug.');const e=d[0x0],f=e?.['data']?.['object_type']??e?.['object_type']??e?.['type'];if(f&&typeof f==='string'&&!f['includes']('Service'))throw new Error('Object\x20\x27'+a['service']+'\x27\x20is\x20not\x20a\x20Service\x20(type:\x20'+f+').\x20'+'trust_score\x20only\x20evaluates\x20Service\x20objects.');const g=extractTrustMetrics(e),h=computeServiceTrustScore(g,buildTrustInjection(a['trust_weights'])),i=buildAntiCheatFindings(e);if(i['length']>0x0){h['findings']['push'](...i);const r=i['reduce']((t,u)=>t+u['deduction'],0x0);h['score']=Math['max'](0x0,h['score']-r);}const j=Array['isArray'](e?.['data']?.['sales'])?e['data']['sales']:[],k=j['find'](t=>t&&!t['suspension'])??j[0x0],l=k?.['price']!=null?BigInt(k['price']):0x0n,m=a['order_amount']!=null?BigInt(a['order_amount']):l;let n,o,p,q;if(b==='evaluate'||b==='preorder'){const s=buildPuzzleRawData(e,m,{'score':h['score'],'level':h['level']},undefined);a['user_metrics']&&(s['user_metrics_config']=toUserMetricsConfig(a['user_metrics']));if(b==='preorder'){const t=await fetchMerchantReputation((e?.['data']??e)?.['permission'],a['network'],a['no_cache']);if(t)s['merchant_reputation']=t;}o=assembleInfoPuzzle(a['service'],s,b),n=assessRisk(o);if(b==='preorder'){const u=a['industry']??inferIndustry(o),{prefs:v,issues:w}=derivePreferences(a,u);q=w['length']>0x0?w:undefined;const x=await resolveEffectiveOverrides();p=assemblePreorderAdvice({'puzzle':o,'risk':n,'preferences':v,'industry':u,'overrides':x});}}return{'serviceId':a['service'],'serviceName':e?.['data']?.['name']??e?.['name']??a['service'],'serviceObj':e,'sales':j,'trustScore':h,'orderAmount':m,'infoPuzzle':o,'riskScore':n,'preorderAdvice':p,'preferenceIssues':q};}export async function handleTrustScore(a){const b=strictParse(TrustScoreInputSchema,a,'trust_score\x20input'),c=b['depth']??'evaluate',d=await runTrustEvaluation(b),{serviceObj:f,sales:g,trustScore:h,orderAmount:i,infoPuzzle:j,riskScore:k,preorderAdvice:l,preferenceIssues:m}=d,n={'service_id':b['service'],'service_name':f?.['data']?.['name']??f?.['name']??b['service'],'service_basics':{'bPublished':f?.['data']?.['bPublished']??![],'bPaused':f?.['data']?.['bPaused']??![],'sales_count':g['filter'](q=>q&&!q['suspension'])['length'],'has_machine':!!f?.['data']?.['machine'],'has_buy_guard':!!f?.['data']?.['buy_guard'],'has_um_contact':!!f?.['data']?.['um'],'arbitrations_count':Array['isArray'](f?.['data']?.['arbitrations'])?f['data']['arbitrations']['length']:0x0},'trust_score':{'score':h['score'],'level':h['level'],'summary':h['summary'],'warnings':h['warnings'],'findings':h['findings']['map'](q=>({'kind':q['kind'],'severity':q['severity'],'message':q['message'],'deduction':q['deduction']})),'breakdown':h['breakdown']},'order_amount':i['toString'](),'depth':c,...k?{'risk_score':{'total':k['total'],'level':k['level'],'red_flags':k['red_flags'],'advice':k['advice'],'dimensions':k['dimensions']}}:{},...j?{'info_puzzle':{'completeness':j['completeness'],'gaps':j['gaps'],'assembled_at':j['assembled_at']}}:{},...l?{'preorder_advice':{'confidence':l['confidence'],'industry':l['industry'],'strategies':l['strategies']['map'](q=>({'scenario':q['scenario'],'merchant_tactic':q['strategy']['merchant_tactic'],'user_strategy':q['strategy']['user_strategy'],'nash_equilibrium':q['strategy']['nash_equilibrium'],'confidence':q['confidence'],'fallback':q['fallback'],'rationale':q['rationale']})),...l['preference_match']?{'preference_match':l['preference_match']}:{},...m?{'preference_issues':m}:{},...l['industry_risks']?{'industry_risks':{'score_adjustment':l['industry_risks']['score_adjustment'],'summary':l['industry_risks']['summary'],'checks':l['industry_risks']['checks'],'unmet_needs':l['industry_risks']['unmet_needs']['map'](q=>({'id':q['id'],'tier':q['tier'],'description':q['description'],'advice':q['advice']}))}}:{},'reminders':l['reminders'],'blocking_reminders':l['blocking_reminders'],'summary':l['summary']}}:{}};let o;if(c==='preorder'&&b['compare_with']&&b['compare_with']['length']>0x0){const q=[coreToCompareRow(d)];for(const r of b['compare_with']){try{const s=await runTrustEvaluation({...b,'service':r,'depth':'preorder'});q['push'](coreToCompareRow(s));}catch(t){q['push']({'service_id':r,'service_name':r,'error':t['message']});}}o=buildPreorderComparison(q);}const p=o?{...n,'comparison':o}:n;return{'content':[{'type':'text','text':JSON['stringify']({'result':p})}],'structuredContent':{'result':p}};}function coreToCompareRow(a){const b=a['infoPuzzle']?.['merchant_behavior']?.['reputation'];return{'service_id':a['serviceId'],'service_name':a['serviceName'],'industry':a['preorderAdvice']?.['industry'],'confidence':a['preorderAdvice']?.['confidence']['score'],'risk_total':a['riskScore']?.['total'],'risk_level':a['riskScore']?.['level'],'trust_score':a['trustScore']['score'],'trust_level':a['trustScore']['level'],'preference_match':a['preorderAdvice']?.['preference_match']?.['score'],'reputation_like_ratio':b?.['like_ratio'],'reputation_votes':b?b['likes']+b['dislikes']:undefined,'red_flags_count':a['riskScore']?.['red_flags']['length'],'blocking_reminders_count':a['preorderAdvice']?.['blocking_reminders']['length'],'info_gaps_count':a['infoPuzzle']?.['gaps']['length']};}export async function computeServiceTrustSummary(a){const b=await runTrustEvaluation({'service':a['service'],'order_amount':a['order_amount'],'depth':a['depth']??'evaluate','network':a['network'],'no_cache':a['no_cache']});return{'trust_score':b['trustScore']['score'],'trust_level':b['trustScore']['level'],'trust_summary':b['trustScore']['summary'],'risk_score':b['riskScore']?.['total']??null,'risk_level':b['riskScore']?.['level']??null,'completeness':b['infoPuzzle']?.['completeness']??null};}
@@ -1,2 +0,0 @@
1
- import type { ToolEntry } from "../types.js";
2
- export declare const TRUST_TOOLS: ToolEntry[];
@@ -1 +0,0 @@
1
- import{handleTrustScore}from'../handlers/trust.js';import{handleEvaluationOperation}from'../handlers/evaluation.js';import{createToolMeta,TrustScoreInputSchema,TrustScoreOutputSchema,EvaluationOperationInputSchema,EvaluationOperationOutputSchema}from'../../schema/index.js';export const TRUST_TOOLS=[{'name':'trust_score','handler':handleTrustScore,'config':{'title':'🛡️\x20Trust\x20Score\x20-\x20Service\x20Risk\x20&\x20Trust\x20Assessment','summary':'Service\x20trust/risk\x20assessment\x20(0-100\x20score,\x205\x20dimensions).','description':'Proactively\x20query\x20the\x20trust\x20score\x20and\x20risk\x20assessment\x20of\x20a\x20Service\x20object.\x20'+'This\x20is\x20the\x20standalone\x20query\x20form\x20of\x20the\x20trust_score\x20field\x20that\x20is\x20otherwise\x20only\x20'+'passively\x20injected\x20into\x20onchain_operations\x20semantic\x20output.\x0a\x0a'+'Returns:\x0a'+'\x20\x20•\x20trust_score\x20(0-100,\x205\x20dimensions:\x20arbitration/reviews/fulfillment/fund_safety/transparency)\x0a'+'\x20\x20•\x20risk_score\x20(4\x20dimensions:\x20workflow/fund/trust/behavior,\x20100-point)\x20when\x20depth\x20>=\x20\x27evaluate\x27\x0a'+'\x20\x20•\x20info_puzzle\x20completeness\x20+\x20gaps\x20summary\x0a'+'\x20\x20•\x20service_basics\x20snapshot\x20(published/paused/sales/guards/arbitrations)\x0a\x0a'+'Use\x20this\x20tool\x20when\x20the\x20user\x20asks\x20\x27is\x20this\x20service\x20trustworthy?\x27,\x20\x27should\x20I\x20buy\x20from\x20this\x20merchant?\x27,\x20'+'\x27what\x27s\x20the\x20risk\x20of\x20ordering\x20this\x20service?\x27,\x20or\x20any\x20explicit\x20trust/risk\x20inquiry\x20about\x20a\x20Service.\x0a\x0a'+'🧭\x20Tool\x20selection\x20(avoid\x20confusion):\x20trust_score\x20=\x20trust/risk\x20of\x20ONE\x20Service;\x20'+'evaluation_operation\x20=\x20game-theory\x20best-move\x20advice\x20at\x20an\x20Arb/Progress\x20state;\x20'+'query_toolkit\x20query_type=\x27reverse_map\x27\x20=\x20deterministic\x20multi-object\x20business\x20report.\x0a\x0a'+'Parameters:\x0a'+'\x20\x20•\x20service\x20(required)\x20—\x20Service\x20object\x20ID\x20or\x20local_mark\x20name.\x0a'+'\x20\x20•\x20order_amount\x20(optional)\x20—\x20Order\x20amount\x20in\x20smallest\x20token\x20unit\x20(e.g.\x202000000000\x20for\x202\x20WOW).\x20'+'Defaults\x20to\x20the\x20service\x27s\x20first\x20active\x20sale\x20price.\x0a'+'\x20\x20•\x20depth\x20(optional,\x20default\x20\x27evaluate\x27)\x20—\x20\x27browse\x27\x20(trust\x20score\x20only),\x20\x27evaluate\x27\x20(+\x20risk\x20assessment),\x20'+'\x27preorder\x27\x20(most\x20thorough,\x20includes\x20market\x20context\x20dimension).\x0a\x0a'+'💡\x20Schema\x20hint:\x20Use\x20schema_query\x20with\x20action=\x27get\x27\x20and\x20name=\x27trust_score\x27\x20to\x20retrieve\x20the\x20exact\x20parameter\x20schema.','inputSchema':TrustScoreInputSchema,'outputSchema':TrustScoreOutputSchema,'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![],'openWorldHint':![]},'_meta':createToolMeta('trust',['trust','score','risk','service','merchant','reputation','safety','evaluate'])}},{'name':'evaluation_operation','handler':handleEvaluationOperation,'config':{'title':'🧠\x20Evaluation\x20-\x20Pluggable\x20Business\x20Intelligence','summary':'Business\x20evaluations:\x20arb/node\x20games,\x20path\x20reasoning,\x20match,\x20arbitration\x20score.','description':'Run\x20pluggable\x20business\x20evaluations\x20(data\x20sources\x20+\x20rules\x20+\x20user\x20injection).\x20'+'Each\x20evaluation\x20returns\x20ranked\x20best-move\x20recommendations\x20with\x20payoff\x20notes\x20and\x20risks.\x0a\x0a'+'Actions:\x0a'+'\x20\x20•\x20arb_game\x20—\x20advise\x20the\x20best\x20move\x20at\x20an\x20Arb\x20state\x20(7-state\x20lifecycle)\x20for\x20a\x20perspective\x20(customer/merchant/arbitrator).\x0a'+'\x20\x20•\x20node_game\x20—\x20advise\x20the\x20best\x20move\x20at\x20a\x20Progress\x20node\x20for\x20a\x20perspective\x20(merchant/customer/prospect/supplier/collaborator/arbitrator).\x0a'+'\x20\x20•\x20capability_gap\x20—\x20compare\x20a\x20demand\x20capability\x20vector\x20against\x20a\x20service\x20capability\x20vector;\x20returns\x20per-capability\x20gaps.\x0a'+'\x20\x20•\x20compose_service\x20—\x20check\x20whether\x20a\x20SET\x20of\x20services\x20can\x20jointly\x20satisfy\x20a\x20demand\x20(supply-chain\x20composition).\x0a'+'\x20\x20•\x20demand_match\x20—\x20rank\x20candidate\x20services\x20against\x20a\x20demand\x20capability\x20vector\x20(+\x20user\x20injection\x20/\x20persona).\x0a'+'\x20\x20•\x20service_match\x20—\x20supplier-side\x20mirror:\x20rank\x20candidate\x20demands\x20against\x20a\x20service\x20capability\x20vector.\x0a'+'\x20\x20•\x20service_risk\x20—\x20risk\x20assessment\x20of\x20ONE\x20service\x20from\x20raw\x20puzzle\x20data\x20(browse/evaluate/preorder/monitor\x20depth).\x0a'+'\x20\x20•\x20path_reasoning\x20—\x20path-level\x20game:\x20enumerate\x20full\x20routes\x20from\x20the\x20current\x20node,\x20rank\x20by\x20value/acceptance\x20reachability\x20(a→b\x20vs\x20a→c\x20competition).\x0a'+'\x20\x20•\x20evidence_review\x20—\x20deterministic\x20off-chain\x20evidence\x20closure\x20gate\x20(auto_pass\x20/\x20auto_reject\x20/\x20manual_review)\x20for\x20arbitration\x20evidence\x20(signature\x20photos,\x20voice\x20recordings,\x20delivery\x20proofs,\x20weather\x20data).\x20Single-item\x20mode\x20(kind\x20+\x20hash_committed)\x20or\x20LIST\x20mode\x20(`items`):\x20list\x20mode\x20returns\x20the\x20structured\x20usable/manual/rejected\x20list\x20plus\x20`proof_candidates`\x20—\x20auto-passed\x20items\x20with\x20their\x20on-chain\x20Proof\x20refs,\x20ready\x20for\x20the\x20dispute\x20initiator\x20to\x20reference\x20in\x20the\x20dispute\x20description\x20(the\x20user\x20confirms\x20the\x20final\x20selection;\x20never\x20auto-attached).\x0a'+'\x20\x20•\x20discover_services\x20—\x20ACTIVE\x20supply\x20discovery:\x20enumerate\x20every\x20published\x20(shared)\x20Service\x20on-chain,\x20gate+rank\x20by\x20location\x20fit\x20under\x20a\x20sensitivity\x20(strict=100%\x20city\x20match\x20/\x20near=neighboring\x20cities\x20/\x20logistics=soft\x20region\x20signal;\x20inferred\x20from\x20description\x20when\x20omitted),\x20and\x20get\x20consent-gated\x20scope-expansion\x20advice.\x20Enumerated\x20via\x20JSON-RPC\x20ServiceEvent.\x20Passive\x20side:\x20post\x20a\x20Demand\x20and\x20Services\x20present\x20via\x20DemandPresenter.\x0a\x0a'+'\x20\x20•\x20discover_demands\x20—\x20enumerate\x20on-chain\x20Demands\x20(supplier-side\x20discovery;\x20optional\x20location\x20substring\x20filter).\x20Enumerated\x20via\x20JSON-RPC\x20DemandChangedEvent.\x0a\x0a'+'\x20\x20•\x20demand_present\x20—\x20supply-side\x20orchestration:\x20discover\x20Demands\x20+\x20match\x20THIS\x20service\x20to\x20them\x20(service_match)\x20+\x20attach\x20the\x20present\x20path\x20per\x20demand\x20(demand.present_service\x20vs\x20demand.present_service_with_passport\x20when\x20the\x20demand\x20has\x20presentation\x20guards).\x20Read-only\x20—\x20the\x20actual\x20present\x20is\x20a\x20WRITE\x20via\x20onchain_operations.\x20Enumerated\x20via\x20JSON-RPC\x20DemandChangedEvent.\x0a\x0a'+'\x20\x20•\x20market_metrics\x20—\x20supply/demand/trust\x20market\x20metrics\x20aggregated\x20from\x20JSON-RPC\x20event\x20enumeration.\x0a\x0a'+'\x20\x20•\x20market_operations\x20—\x20operational\x20aggregations:\x20journey_funnel\x20(due-diligence→order→completed→reviews),\x20referral_attribution,\x20customer_relationship,\x20dynamic_pricing\x20(merchant\x20pricing\x20suggestion\x20from\x20market_signals).\x0a\x0a'+'\x20\x20•\x20anti_cheat\x20—\x20governance:\x20detect\x20fake\x20reviews\x20/\x20wash\x20orders\x20/\x20compensation-fund\x20manipulation\x20from\x20service\x20+\x20orders\x20+\x20reviews\x20evidence.\x0a\x0a'+'\x20\x20•\x20match_discover\x20—\x20ONE-SHOT\x20intent→service\x20orchestration:\x20enumerate\x20services\x20+\x20location\x20gate\x20+\x206-dimension\x20demand_match\x20scoring\x20in\x20a\x20single\x20call.\x20Inputs:\x20description\x20+\x20location\x20+\x20optional\x20sensitivity/budget/required_capabilities/coin_type.\x20Returns\x20location-gated\x20Top-N\x20services\x20with\x20per-service\x206-dim\x20breakdown\x20(region/industry/price/trust/capabilities/tags)\x20+\x20recommendation\x20reasons.\x20Enumerated\x20via\x20JSON-RPC\x20ServiceEvent.\x0a\x0a'+'\x20\x20•\x20arbitration_score\x20—\x20dual-perspective\x20arbitration\x20trust\x20assessment:\x20score\x20an\x20Arbitration\x20object\x20from\x20the\x20user-trust\x20angle\x20(timeliness/objection/indemnity/feedback/experience/capital)\x20and\x20the\x20merchant-fairness\x20angle\x20(fee/governance/operational).\x20Inputs:\x20arbitration\x20config\x20+\x20pre-aggregated\x20history[]\x20+\x20optional\x20entity_votes/fee_median.\x20Returns\x20trust\x20+\x20fairness\x20EvaluationResults\x20+\x20combined\x200-100.\x0a\x0a'+'\x20\x20•\x20account_events\x20—\x20account-centric\x20attention\x20feed:\x20run\x20hot-pluggable\x20watchers\x20(messenger_unread,\x20order_collection,\x20demand_presented,\x20reputation_integrity)\x20over\x20one\x20account\x20and\x20return\x20a\x20unified,\x20priority-sorted\x20prompt\x20list\x20of\x20what\x20needs\x20the\x20account\x27s\x20attention.\x20Inputs:\x20account\x20+\x20optional\x20categories[];\x20reputation_integrity\x20additionally\x20consumes\x20review\x20rows\x20(reviews[]\x20from\x20a\x20Service\x27s\x20ReviewRepository\x20via\x20onchain_table_data\x20+\x20optional\x20order_history[]\x20for\x20no-order-no-review\x20verification)\x20and\x20flags\x20manipulation/unverified/declining-trend\x20signals.\x20Read-only\x20(passive\x20check\x20—\x20never\x20marks\x20messages\x20viewed).\x0a\x0a'+'Read-only:\x20computes\x20recommendations\x20from\x20pure\x20data;\x20never\x20mutates\x20chain\x20state.\x20'+'The\x20caller\x20decides\x20and\x20acts\x20via\x20onchain_operations\x20/\x20messenger_operation.\x0a\x0a'+'🧭\x20Tool\x20selection\x20(avoid\x20confusion):\x20evaluation_operation\x20=\x20best-move\x20advice\x20at\x20an\x20Arb/Progress\x20state\x20(game\x20theory);\x20'+'trust_score\x20=\x20trust/risk\x20of\x20ONE\x20Service;\x20query_toolkit\x20query_type=\x27reverse_map\x27\x20=\x20deterministic\x20multi-object\x20business\x20report.\x0a\x0a'+'💡\x20Schema\x20hint:\x20Use\x20schema_query\x20with\x20action=\x27get\x27\x20and\x20name=\x27evaluation_operation\x27\x20to\x20retrieve\x20the\x20exact\x20parameter\x20schema.','inputSchema':EvaluationOperationInputSchema,'outputSchema':EvaluationOperationOutputSchema,'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![],'openWorldHint':![]},'_meta':createToolMeta('evaluation',['evaluate','risk','match','game','score','arb','node','compose','gap'])}}];