@wowok/agent-mcp 3.0.0 → 3.0.2

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 (245) hide show
  1. package/dist/communication/evidence.d.ts +6 -0
  2. package/dist/communication/evidence.js +1 -0
  3. package/dist/evaluation/acceptance.d.ts +24 -0
  4. package/dist/evaluation/acceptance.js +1 -0
  5. package/dist/evaluation/builtins/demand-match.d.ts +3 -2
  6. package/dist/evaluation/builtins/demand-match.js +1 -1
  7. package/dist/evaluation/builtins/service-risk.d.ts +2 -1
  8. package/dist/evaluation/builtins/service-risk.js +1 -1
  9. package/dist/evaluation/index.d.ts +1 -0
  10. package/dist/evaluation/index.js +1 -1
  11. package/dist/evaluation/match-operation.d.ts +14 -0
  12. package/dist/evaluation/match-operation.js +1 -0
  13. package/dist/experience/realtime-feedback.js +1 -1
  14. package/dist/extensions/modes.js +1 -1
  15. package/dist/goal/GoalClassifier.js +1 -1
  16. package/dist/goal/GoalEngine.d.ts +8 -0
  17. package/dist/goal/GoalEngine.js +1 -1
  18. package/dist/goal/types.d.ts +1 -1
  19. package/dist/harness/auto-escalation.d.ts +0 -12
  20. package/dist/harness/auto-escalation.js +1 -1
  21. package/dist/harness/index.d.ts +1 -14
  22. package/dist/harness/index.js +1 -1
  23. package/dist/harness/types.d.ts +0 -38
  24. package/dist/intent/types.d.ts +1 -1
  25. package/dist/intent/types.js +1 -1
  26. package/dist/keeper/KeeperScan.d.ts +39 -0
  27. package/dist/keeper/KeeperScan.js +1 -0
  28. package/dist/keeper/KeeperStore.d.ts +43 -0
  29. package/dist/keeper/KeeperStore.js +1 -0
  30. package/dist/keeper/detectors.d.ts +23 -0
  31. package/dist/keeper/detectors.js +1 -0
  32. package/dist/keeper/keeper.spec.d.ts +1 -0
  33. package/dist/keeper/keeper.spec.js +1 -0
  34. package/dist/keeper/types.d.ts +65 -0
  35. package/dist/keeper/types.js +1 -0
  36. package/dist/knowledge/demand-risk.js +1 -1
  37. package/dist/knowledge/event-semantics.d.ts +3 -0
  38. package/dist/knowledge/event-semantics.js +1 -1
  39. package/dist/knowledge/event-semantics.spec.d.ts +1 -0
  40. package/dist/knowledge/event-semantics.spec.js +1 -0
  41. package/dist/knowledge/evidence-review.d.ts +23 -0
  42. package/dist/knowledge/evidence-review.js +1 -1
  43. package/dist/knowledge/examples-scanner-cli.js +1 -1
  44. package/dist/knowledge/examples-scanner.js +1 -1
  45. package/dist/knowledge/guard-bytecode-spec.d.ts +82 -0
  46. package/dist/knowledge/guard-bytecode-spec.js +1 -0
  47. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  48. package/dist/knowledge/guard-design-patterns.js +1 -1
  49. package/dist/knowledge/index.d.ts +10 -6
  50. package/dist/knowledge/index.js +1 -1
  51. package/dist/knowledge/industry-registry.js +1 -1
  52. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  53. package/dist/knowledge/mcp-schema-audit.js +1 -1
  54. package/dist/knowledge/migration-preflight.d.ts +27 -0
  55. package/dist/knowledge/migration-preflight.js +1 -0
  56. package/dist/knowledge/scenario-modes.d.ts +1 -1
  57. package/dist/knowledge/scenario-modes.js +1 -1
  58. package/dist/knowledge/template-registry.js +1 -1
  59. package/dist/knowledge/tools-reference.js +1 -1
  60. package/dist/knowledge/workflow-guidance.d.ts +20 -0
  61. package/dist/knowledge/workflow-guidance.js +1 -1
  62. package/dist/monitor/MonitorLoop.d.ts +1 -0
  63. package/dist/monitor/MonitorLoop.js +1 -1
  64. package/dist/monitor/ScopeResolver.js +1 -1
  65. package/dist/monitor/SuggestionBridge.d.ts +1 -1
  66. package/dist/monitor/SuggestionBridge.js +1 -1
  67. package/dist/monitor/SuggestionBridge.spec.d.ts +1 -0
  68. package/dist/monitor/SuggestionBridge.spec.js +1 -0
  69. package/dist/monitor/normalize.js +1 -1
  70. package/dist/monitor/types.d.ts +0 -1
  71. package/dist/monitor/types.js +1 -1
  72. package/dist/participation/employee-kpi.d.ts +12 -0
  73. package/dist/participation/employee-kpi.js +1 -1
  74. package/dist/participation/employee-kpi.spec.d.ts +1 -0
  75. package/dist/participation/employee-kpi.spec.js +1 -0
  76. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  77. package/dist/playbooks/service-build/mode-actions.d.ts +19 -6
  78. package/dist/playbooks/service-build/mode-actions.js +1 -1
  79. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  80. package/dist/relationship/derivation.d.ts +6 -0
  81. package/dist/relationship/derivation.js +1 -1
  82. package/dist/relationship/derivation.spec.d.ts +1 -0
  83. package/dist/relationship/derivation.spec.js +1 -0
  84. package/dist/role/index.d.ts +2 -2
  85. package/dist/role/index.js +1 -1
  86. package/dist/role/model.d.ts +2 -1
  87. package/dist/role/model.js +1 -1
  88. package/dist/role/types.d.ts +5 -0
  89. package/dist/rules.d.ts +1 -1
  90. package/dist/safety/confirm-gate.js +1 -1
  91. package/dist/schema/call/semantic.js +1 -1
  92. package/dist/schema/common/index.js +1 -1
  93. package/dist/schema/employee/index.d.ts +61 -1
  94. package/dist/schema/employee/index.js +1 -1
  95. package/dist/schema/evaluation/index.d.ts +70 -5
  96. package/dist/schema/evaluation/index.js +1 -1
  97. package/dist/schema/index.d.ts +1 -0
  98. package/dist/schema/index.js +1 -1
  99. package/dist/schema/industry-pack/index.d.ts +43 -7
  100. package/dist/schema/industry-pack/modes.d.ts +42 -6
  101. package/dist/schema/industry-pack/modes.js +1 -1
  102. package/dist/schema/intent-radar/index.d.ts +3 -0
  103. package/dist/schema/intent-radar/index.js +1 -1
  104. package/dist/schema/keeper/index.d.ts +475 -0
  105. package/dist/schema/keeper/index.js +1 -0
  106. package/dist/schema/local/index.js +1 -1
  107. package/dist/schema/messenger/index.d.ts +2 -0
  108. package/dist/schema/messenger/index.js +1 -1
  109. package/dist/schema/operations.d.ts +34 -0
  110. package/dist/schema/query/bi.d.ts +188 -0
  111. package/dist/schema/query/bi.js +1 -1
  112. package/dist/schema/query/index.d.ts +48 -48
  113. package/dist/schema/query/index.js +1 -1
  114. package/dist/schema/schema-query/index.d.ts +2 -11
  115. package/dist/schema/schema-query/index.js +1 -1
  116. package/dist/schema/schema-version.js +1 -1
  117. package/dist/schema/utils/skills-recommendation.js +1 -1
  118. package/dist/schema/watch/index.d.ts +4 -0
  119. package/dist/schema/watch/index.js +1 -1
  120. package/dist/schema-query-impl/index.d.ts +33 -14
  121. package/dist/schema-query-impl/index.js +1 -1
  122. package/dist/schemas/employee_operation.output.json +100 -0
  123. package/dist/schemas/employee_operation.schema.json +148 -5
  124. package/dist/schemas/evaluation_operation.output.json +135 -9
  125. package/dist/schemas/evaluation_operation.schema.json +176 -7
  126. package/dist/schemas/index.json +7 -1
  127. package/dist/schemas/industry_pack_operation.output.json +158 -32
  128. package/dist/schemas/intent_radar.output.json +2 -0
  129. package/dist/schemas/intent_radar.schema.json +1 -0
  130. package/dist/schemas/keeper_operation.output.json +1274 -0
  131. package/dist/schemas/keeper_operation.schema.json +359 -0
  132. package/dist/schemas/messenger_operation.schema.json +8 -0
  133. package/dist/schemas/onchain_events.output.json +55 -11
  134. package/dist/schemas/onchain_events.schema.json +4 -0
  135. package/dist/schemas/onchain_table_data.output.json +59 -0
  136. package/dist/schemas/query_toolkit.output.json +428 -0
  137. package/dist/schemas/query_toolkit.schema.json +59 -0
  138. package/dist/schemas/schema_query.output.json +1 -64
  139. package/dist/schemas/schema_query.schema.json +18 -3
  140. package/dist/schemas/watch_operation.output.json +21 -1
  141. package/dist/task/playbook.js +1 -1
  142. package/dist/task/types.d.ts +1 -1
  143. package/dist/tools/handlers/bridge.js +1 -1
  144. package/dist/tools/handlers/config.js +1 -1
  145. package/dist/tools/handlers/employee.d.ts +6 -0
  146. package/dist/tools/handlers/employee.js +1 -1
  147. package/dist/tools/handlers/employee.spec.d.ts +1 -0
  148. package/dist/tools/handlers/employee.spec.js +1 -0
  149. package/dist/tools/handlers/evaluation.js +1 -1
  150. package/dist/tools/handlers/evaluation.spec.d.ts +1 -0
  151. package/dist/tools/handlers/evaluation.spec.js +1 -0
  152. package/dist/tools/handlers/intent-radar.js +1 -1
  153. package/dist/tools/handlers/keeper.d.ts +12 -0
  154. package/dist/tools/handlers/keeper.js +1 -0
  155. package/dist/tools/handlers/messenger.js +1 -1
  156. package/dist/tools/handlers/onchain.js +1 -1
  157. package/dist/tools/handlers/query.js +1 -1
  158. package/dist/tools/handlers/schema-query.js +1 -1
  159. package/dist/tools/handlers/watch.js +1 -1
  160. package/dist/tools/handlers/workflow.js +1 -1
  161. package/dist/tools/index.js +1 -1
  162. package/dist/tools/registry/agent.d.ts +2 -0
  163. package/dist/tools/registry/agent.js +1 -0
  164. package/dist/tools/registry/bridge.d.ts +2 -0
  165. package/dist/tools/registry/bridge.js +1 -0
  166. package/dist/tools/registry/business.d.ts +2 -0
  167. package/dist/tools/registry/business.js +1 -0
  168. package/dist/tools/registry/config.d.ts +2 -0
  169. package/dist/tools/registry/config.js +1 -0
  170. package/dist/tools/registry/files.d.ts +2 -0
  171. package/dist/tools/registry/files.js +1 -0
  172. package/dist/tools/registry/identity.d.ts +2 -0
  173. package/dist/tools/registry/identity.js +1 -0
  174. package/dist/tools/registry/local.d.ts +2 -0
  175. package/dist/tools/registry/local.js +1 -0
  176. package/dist/tools/registry/messenger.d.ts +2 -0
  177. package/dist/tools/registry/messenger.js +1 -0
  178. package/dist/tools/registry/monitor.d.ts +2 -0
  179. package/dist/tools/registry/monitor.js +1 -0
  180. package/dist/tools/registry/onchain.d.ts +2 -0
  181. package/dist/tools/registry/onchain.js +1 -0
  182. package/dist/tools/registry/query.d.ts +2 -0
  183. package/dist/tools/registry/query.js +1 -0
  184. package/dist/tools/registry/trust.d.ts +2 -0
  185. package/dist/tools/registry/trust.js +1 -0
  186. package/dist/tools/shared.js +1 -1
  187. package/dist/tools/wrap.js +1 -1
  188. package/package.json +2 -2
  189. package/dist/examples/arbitration-dispute-create.json +0 -41
  190. package/dist/examples/arbitration-vote-weighted.json +0 -35
  191. package/dist/examples/arbitration-voting-guard-add.json +0 -38
  192. package/dist/examples/demand-present-service.json +0 -33
  193. package/dist/examples/education-contact-create.json +0 -40
  194. package/dist/examples/freelance-contact-create.json +0 -40
  195. package/dist/examples/gen-passport-verify-guard.json +0 -48
  196. package/dist/examples/guard-template-balance-check.json +0 -59
  197. package/dist/examples/guard-template-time-lock.json +0 -60
  198. package/dist/examples/insurance-guard-claim-timelock.json +0 -75
  199. package/dist/examples/insurance-guard-withdraw-allocation.json +0 -96
  200. package/dist/examples/insurance-machine-create.json +0 -75
  201. package/dist/examples/insurance-service-allocators.json +0 -55
  202. package/dist/examples/machine-multisig-threshold.json +0 -87
  203. package/dist/examples/machine-publish.json +0 -30
  204. package/dist/examples/machine-template-7node-rental.json +0 -119
  205. package/dist/examples/payment-scenario-bound.json +0 -45
  206. package/dist/examples/rental-ziroom-machine-create.json +0 -148
  207. package/dist/examples/rental-ziroom-permission-create.json +0 -41
  208. package/dist/examples/rental-ziroom-service-create.json +0 -36
  209. package/dist/examples/retail-adv-guard-customer-win-create.json +0 -80
  210. package/dist/examples/retail-adv-guard-messenger-proof-create.json +0 -65
  211. package/dist/examples/retail-adv-guard-reward-timeout-create.json +0 -92
  212. package/dist/examples/retail-adv-reward-guard-add.json +0 -51
  213. package/dist/examples/retail-myshop-allocation-activate.json +0 -55
  214. package/dist/examples/retail-myshop-arbitration-create.json +0 -40
  215. package/dist/examples/retail-myshop-contact-create.json +0 -43
  216. package/dist/examples/retail-myshop-order-create.json +0 -56
  217. package/dist/examples/retail-myshop-progress-operate.json +0 -38
  218. package/dist/examples/retail-myshop-reward-create.json +0 -35
  219. package/dist/examples/retail-myshop-service-create.json +0 -38
  220. package/dist/examples/retail-myshop-service-customer-required.json +0 -31
  221. package/dist/examples/service-discount-issue.json +0 -46
  222. package/dist/examples/subscription-contact-create.json +0 -40
  223. package/dist/examples/threebody-guard-create.json +0 -56
  224. package/dist/examples/threebody-machine-create.json +0 -71
  225. package/dist/examples/threebody-permission-create.json +0 -38
  226. package/dist/examples/threebody-service-allocators.json +0 -48
  227. package/dist/examples/travel-guard-time-lock.json +0 -69
  228. package/dist/examples/travel-guard-weather-oracle.json +0 -70
  229. package/dist/examples/travel-machine-create.json +0 -135
  230. package/dist/examples/travel-repository-create.json +0 -47
  231. package/dist/examples/travel-service-create.json +0 -34
  232. package/dist/examples/travel-treasury-create.json +0 -34
  233. package/dist/examples/treasury-deposit.json +0 -37
  234. package/dist/examples/treasury-withdraw.json +0 -38
  235. package/dist/harness/plan.d.ts +0 -33
  236. package/dist/harness/plan.js +0 -1
  237. package/dist/knowledge/demand-matching.d.ts +0 -29
  238. package/dist/knowledge/demand-matching.js +0 -1
  239. package/dist/knowledge/guard-context.d.ts +0 -56
  240. package/dist/knowledge/guard-context.js +0 -1
  241. package/dist/knowledge/guard-migration.d.ts +0 -48
  242. package/dist/knowledge/guard-migration.js +0 -1
  243. package/dist/schemas/guard-node-schema.json +0 -1000
  244. package/dist/task/stage-gate.d.ts +0 -22
  245. package/dist/task/stage-gate.js +0 -1
@@ -9392,6 +9392,24 @@
9392
9392
  "additionalProperties": false,
9393
9393
  "description": "Business Relationship Graph (K3/19): derive ONE account's full relationship web from on-chain power carriers (Permission memberships, Machine forwards, Orders, Demand presenters, Allocation sharing, Arbitration bindings, Contact ims). Each edge carries the three dimensions — 权属 power (what each side CAN do, and where that power lives on-chain), 利益 interest (gains/exposures, with registry-declared goal tensions like principal-agent divergence), and 价值交互 value flows (escrow → allocation → payment chains). Read-only; roles are DERIVED from chain data, never asserted."
9394
9394
  },
9395
+ {
9396
+ "type": "object",
9397
+ "properties": {
9398
+ "query_type": {
9399
+ "type": "string",
9400
+ "const": "scenario_topology"
9401
+ },
9402
+ "chain_id": {
9403
+ "description": "Optional scenario-chain id (chain.standard_ecommerce | chain.procurement_tender | chain.data_subscription | chain.collaborative_operations). When given, only that chain is returned; otherwise ALL scenario chains + bridges are returned.",
9404
+ "type": "string"
9405
+ }
9406
+ },
9407
+ "required": [
9408
+ "query_type"
9409
+ ],
9410
+ "additionalProperties": false,
9411
+ "description": "Scenario Topology knowledge (K3 03 §3.5 / Part 2): the STATIC registry of how WoWok objects INTEGRATE each other. Bridges weld object pairs into a capability that belongs to no single object (e.g. Demand.present(service) grants MATCHMAKING); chains compose bridges into whole applications (e.g. standard e-commerce, procurement tender). Pure knowledge, read-only — no on-chain reads. Use to explain HOW a business scenario is assembled from on-chain objects and why the integration (not the objects themselves) yields the capability."
9412
+ },
9395
9413
  {
9396
9414
  "type": "object",
9397
9415
  "properties": {
@@ -9461,6 +9479,47 @@
9461
9479
  ],
9462
9480
  "additionalProperties": false,
9463
9481
  "description": "Like / Favor list for ONE account (client Quick Access 'Like / Favor' tab) — every address (object OR plain user) the account has EVER liked / disliked / favored, deduplicated, with the CURRENT active vote kinds per target. Deterministic source: the voter's own Resource mark table (registrar.move handle_vote → resource::tag_set), cross-read with the target's EntityLinker votes for the 'marked at' clock. Fully-toggled-off targets are dropped. Each row: address + tags (like/dislike/favor) + time + object_type (null = plain user) + local name / description / tags. Aggregation result is TTL-cached (120s, keyed by network + account). Read-only."
9482
+ },
9483
+ {
9484
+ "type": "object",
9485
+ "properties": {
9486
+ "query_type": {
9487
+ "type": "string",
9488
+ "const": "migration_preflight"
9489
+ },
9490
+ "no_cache": {
9491
+ "description": "Set to true to bypass the SDK chain-read cache.",
9492
+ "type": "boolean"
9493
+ },
9494
+ "account": {
9495
+ "type": "string",
9496
+ "description": "Account address (or name) to check. Required when query_type='migration_preflight'."
9497
+ },
9498
+ "source_network": {
9499
+ "description": "Source network to detect an existing build (default 'testnet').",
9500
+ "type": "string",
9501
+ "enum": [
9502
+ "testnet",
9503
+ "mainnet",
9504
+ "localnet"
9505
+ ]
9506
+ },
9507
+ "target_network": {
9508
+ "description": "Target network for the migration (default 'mainnet').",
9509
+ "type": "string",
9510
+ "enum": [
9511
+ "testnet",
9512
+ "mainnet",
9513
+ "localnet"
9514
+ ]
9515
+ }
9516
+ },
9517
+ "required": [
9518
+ "query_type",
9519
+ "account"
9520
+ ],
9521
+ "additionalProperties": false,
9522
+ "description": "Cross-network build detection + mainnet customization preflight (first-touch migration): detect whether the account has already built Services/Machines/etc. on the source network (default testnet), report the same on the target network (default mainnet), and return a business-facing checklist of the key settings to confirm/change when migrating — payment token, location, arbitration, WIP, gas. Read-only."
9464
9523
  }
9465
9524
  ]
9466
9525
  },
@@ -17537,6 +17537,54 @@
17537
17537
  "summary": {
17538
17538
  "type": "string",
17539
17539
  "description": "One-paragraph relationship web summary."
17540
+ },
17541
+ "demander_interest": {
17542
+ "description": "Demander-interest analysis per anchor-owned demand (fund_flow/responsibility/leverage/stakes).",
17543
+ "type": "array",
17544
+ "items": {
17545
+ "type": "object",
17546
+ "properties": {
17547
+ "demand": {
17548
+ "type": "string"
17549
+ },
17550
+ "fund_flow": {
17551
+ "type": "array",
17552
+ "items": {
17553
+ "type": "string"
17554
+ }
17555
+ },
17556
+ "responsibility": {
17557
+ "type": "array",
17558
+ "items": {
17559
+ "type": "string"
17560
+ }
17561
+ },
17562
+ "leverage": {
17563
+ "type": "array",
17564
+ "items": {
17565
+ "type": "string"
17566
+ }
17567
+ },
17568
+ "stakes": {
17569
+ "type": "array",
17570
+ "items": {
17571
+ "type": "string"
17572
+ }
17573
+ },
17574
+ "summary": {
17575
+ "type": "string"
17576
+ }
17577
+ },
17578
+ "required": [
17579
+ "demand",
17580
+ "fund_flow",
17581
+ "responsibility",
17582
+ "leverage",
17583
+ "stakes",
17584
+ "summary"
17585
+ ],
17586
+ "additionalProperties": false
17587
+ }
17540
17588
  }
17541
17589
  },
17542
17590
  "required": [
@@ -17557,6 +17605,203 @@
17557
17605
  ],
17558
17606
  "additionalProperties": false
17559
17607
  },
17608
+ {
17609
+ "type": "object",
17610
+ "properties": {
17611
+ "query_type": {
17612
+ "type": "string",
17613
+ "const": "scenario_topology"
17614
+ },
17615
+ "result": {
17616
+ "type": "object",
17617
+ "properties": {
17618
+ "version": {
17619
+ "type": "string",
17620
+ "description": "scenario-topology registry version."
17621
+ },
17622
+ "chains": {
17623
+ "type": "array",
17624
+ "items": {
17625
+ "type": "object",
17626
+ "properties": {
17627
+ "id": {
17628
+ "type": "string",
17629
+ "description": "Stable chain id (e.g. chain.standard_ecommerce)."
17630
+ },
17631
+ "name": {
17632
+ "type": "string"
17633
+ },
17634
+ "steps": {
17635
+ "type": "array",
17636
+ "items": {
17637
+ "type": "object",
17638
+ "properties": {
17639
+ "bridge": {
17640
+ "type": "string"
17641
+ },
17642
+ "note": {
17643
+ "type": "string"
17644
+ }
17645
+ },
17646
+ "required": [
17647
+ "bridge"
17648
+ ],
17649
+ "additionalProperties": false
17650
+ },
17651
+ "description": "Ordered bridges forming the complete application."
17652
+ },
17653
+ "application_capability": {
17654
+ "type": "string",
17655
+ "description": "The end-to-end application capability."
17656
+ },
17657
+ "objects_touched": {
17658
+ "type": "array",
17659
+ "items": {
17660
+ "type": "string"
17661
+ }
17662
+ }
17663
+ },
17664
+ "required": [
17665
+ "id",
17666
+ "name",
17667
+ "steps",
17668
+ "application_capability",
17669
+ "objects_touched"
17670
+ ],
17671
+ "additionalProperties": false
17672
+ },
17673
+ "description": "Scenario chains (whole applications); optionally filtered by chain_id."
17674
+ },
17675
+ "bridges": {
17676
+ "type": "array",
17677
+ "items": {
17678
+ "type": "object",
17679
+ "properties": {
17680
+ "id": {
17681
+ "type": "string",
17682
+ "description": "Stable bridge id (e.g. bridge.supply_match)."
17683
+ },
17684
+ "name": {
17685
+ "type": "string"
17686
+ },
17687
+ "participants": {
17688
+ "type": "array",
17689
+ "items": {
17690
+ "type": "object",
17691
+ "properties": {
17692
+ "object": {
17693
+ "type": "string"
17694
+ },
17695
+ "role": {
17696
+ "type": "string"
17697
+ }
17698
+ },
17699
+ "required": [
17700
+ "object",
17701
+ "role"
17702
+ ],
17703
+ "additionalProperties": false
17704
+ },
17705
+ "description": "Objects welded by this bridge."
17706
+ },
17707
+ "bridge_fields": {
17708
+ "type": "array",
17709
+ "items": {
17710
+ "type": "object",
17711
+ "properties": {
17712
+ "object": {
17713
+ "type": "string"
17714
+ },
17715
+ "field": {
17716
+ "type": "string"
17717
+ },
17718
+ "meaning": {
17719
+ "type": "string"
17720
+ }
17721
+ },
17722
+ "required": [
17723
+ "object",
17724
+ "field",
17725
+ "meaning"
17726
+ ],
17727
+ "additionalProperties": false
17728
+ },
17729
+ "description": "The integrating Move fields (source of truth)."
17730
+ },
17731
+ "move_anchor": {
17732
+ "type": "string",
17733
+ "description": "Move creation/consumption function anchor."
17734
+ },
17735
+ "scenario": {
17736
+ "type": "object",
17737
+ "properties": {
17738
+ "from": {
17739
+ "type": "string"
17740
+ },
17741
+ "to": {
17742
+ "type": "string"
17743
+ },
17744
+ "merged": {
17745
+ "type": "string"
17746
+ }
17747
+ },
17748
+ "required": [
17749
+ "from",
17750
+ "to",
17751
+ "merged"
17752
+ ],
17753
+ "additionalProperties": false
17754
+ },
17755
+ "capability_gained": {
17756
+ "type": "string",
17757
+ "description": "The NEW capability from the integration itself (belongs to no single object)."
17758
+ },
17759
+ "value_flow": {
17760
+ "type": "string"
17761
+ },
17762
+ "prerequisites": {
17763
+ "type": "array",
17764
+ "items": {
17765
+ "type": "string"
17766
+ }
17767
+ },
17768
+ "examples": {
17769
+ "type": "array",
17770
+ "items": {
17771
+ "type": "string"
17772
+ }
17773
+ }
17774
+ },
17775
+ "required": [
17776
+ "id",
17777
+ "name",
17778
+ "participants",
17779
+ "bridge_fields",
17780
+ "move_anchor",
17781
+ "scenario",
17782
+ "capability_gained",
17783
+ "prerequisites",
17784
+ "examples"
17785
+ ],
17786
+ "additionalProperties": false
17787
+ },
17788
+ "description": "Scenario bridges (field integrations) resolvable from chain steps."
17789
+ }
17790
+ },
17791
+ "required": [
17792
+ "version",
17793
+ "chains",
17794
+ "bridges"
17795
+ ],
17796
+ "additionalProperties": false
17797
+ }
17798
+ },
17799
+ "required": [
17800
+ "query_type",
17801
+ "result"
17802
+ ],
17803
+ "additionalProperties": false
17804
+ },
17560
17805
  {
17561
17806
  "type": "object",
17562
17807
  "properties": {
@@ -17590,6 +17835,189 @@
17590
17835
  "result"
17591
17836
  ],
17592
17837
  "additionalProperties": false
17838
+ },
17839
+ {
17840
+ "type": "object",
17841
+ "properties": {
17842
+ "query_type": {
17843
+ "type": "string",
17844
+ "const": "migration_preflight"
17845
+ },
17846
+ "result": {
17847
+ "type": "object",
17848
+ "properties": {
17849
+ "action": {
17850
+ "type": "string",
17851
+ "const": "migration_preflight"
17852
+ },
17853
+ "account": {
17854
+ "type": "string"
17855
+ },
17856
+ "source_network": {
17857
+ "type": "string"
17858
+ },
17859
+ "target_network": {
17860
+ "type": "string"
17861
+ },
17862
+ "source": {
17863
+ "type": "object",
17864
+ "properties": {
17865
+ "network": {
17866
+ "type": "string"
17867
+ },
17868
+ "has_build": {
17869
+ "type": "boolean",
17870
+ "description": "True when the account has built at least one object on this network."
17871
+ },
17872
+ "permissions": {
17873
+ "type": "array",
17874
+ "items": {
17875
+ "type": "string"
17876
+ }
17877
+ },
17878
+ "services": {
17879
+ "type": "array",
17880
+ "items": {
17881
+ "type": "string"
17882
+ }
17883
+ },
17884
+ "machines": {
17885
+ "type": "array",
17886
+ "items": {
17887
+ "type": "string"
17888
+ }
17889
+ },
17890
+ "treasuries": {
17891
+ "type": "array",
17892
+ "items": {
17893
+ "type": "string"
17894
+ }
17895
+ },
17896
+ "rewards": {
17897
+ "type": "array",
17898
+ "items": {
17899
+ "type": "string"
17900
+ }
17901
+ },
17902
+ "contacts": {
17903
+ "type": "array",
17904
+ "items": {
17905
+ "type": "string"
17906
+ }
17907
+ },
17908
+ "arbitrations": {
17909
+ "type": "array",
17910
+ "items": {
17911
+ "type": "string"
17912
+ }
17913
+ }
17914
+ },
17915
+ "required": [
17916
+ "network",
17917
+ "has_build",
17918
+ "permissions",
17919
+ "services",
17920
+ "machines",
17921
+ "treasuries",
17922
+ "rewards",
17923
+ "contacts",
17924
+ "arbitrations"
17925
+ ],
17926
+ "additionalProperties": false,
17927
+ "description": "Build status on the source network (e.g. testnet)."
17928
+ },
17929
+ "target": {
17930
+ "type": "object",
17931
+ "properties": {
17932
+ "network": {
17933
+ "type": "string"
17934
+ },
17935
+ "has_build": {
17936
+ "type": "boolean",
17937
+ "description": "True when the account has built at least one object on this network."
17938
+ },
17939
+ "permissions": {
17940
+ "type": "array",
17941
+ "items": {
17942
+ "type": "string"
17943
+ }
17944
+ },
17945
+ "services": {
17946
+ "type": "array",
17947
+ "items": {
17948
+ "type": "string"
17949
+ }
17950
+ },
17951
+ "machines": {
17952
+ "type": "array",
17953
+ "items": {
17954
+ "type": "string"
17955
+ }
17956
+ },
17957
+ "treasuries": {
17958
+ "type": "array",
17959
+ "items": {
17960
+ "type": "string"
17961
+ }
17962
+ },
17963
+ "rewards": {
17964
+ "type": "array",
17965
+ "items": {
17966
+ "type": "string"
17967
+ }
17968
+ },
17969
+ "contacts": {
17970
+ "type": "array",
17971
+ "items": {
17972
+ "type": "string"
17973
+ }
17974
+ },
17975
+ "arbitrations": {
17976
+ "type": "array",
17977
+ "items": {
17978
+ "type": "string"
17979
+ }
17980
+ }
17981
+ },
17982
+ "required": [
17983
+ "network",
17984
+ "has_build",
17985
+ "permissions",
17986
+ "services",
17987
+ "machines",
17988
+ "treasuries",
17989
+ "rewards",
17990
+ "contacts",
17991
+ "arbitrations"
17992
+ ],
17993
+ "additionalProperties": false,
17994
+ "description": "Build status on the target network (e.g. mainnet)."
17995
+ },
17996
+ "migration_checklist": {
17997
+ "type": "array",
17998
+ "items": {
17999
+ "type": "string"
18000
+ },
18001
+ "description": "Key settings to confirm/change when migrating testnet → mainnet (payment token, location, arbitration, WIP, gas)."
18002
+ }
18003
+ },
18004
+ "required": [
18005
+ "action",
18006
+ "account",
18007
+ "source_network",
18008
+ "target_network",
18009
+ "source",
18010
+ "target",
18011
+ "migration_checklist"
18012
+ ],
18013
+ "additionalProperties": false
18014
+ }
18015
+ },
18016
+ "required": [
18017
+ "query_type",
18018
+ "result"
18019
+ ],
18020
+ "additionalProperties": false
17593
18021
  }
17594
18022
  ]
17595
18023
  },
@@ -1238,6 +1238,24 @@
1238
1238
  "additionalProperties": false,
1239
1239
  "description": "Business Relationship Graph (K3/19): derive ONE account's full relationship web from on-chain power carriers (Permission memberships, Machine forwards, Orders, Demand presenters, Allocation sharing, Arbitration bindings, Contact ims). Each edge carries the three dimensions — 权属 power (what each side CAN do, and where that power lives on-chain), 利益 interest (gains/exposures, with registry-declared goal tensions like principal-agent divergence), and 价值交互 value flows (escrow → allocation → payment chains). Read-only; roles are DERIVED from chain data, never asserted."
1240
1240
  },
1241
+ {
1242
+ "type": "object",
1243
+ "properties": {
1244
+ "query_type": {
1245
+ "type": "string",
1246
+ "const": "scenario_topology"
1247
+ },
1248
+ "chain_id": {
1249
+ "description": "Optional scenario-chain id (chain.standard_ecommerce | chain.procurement_tender | chain.data_subscription | chain.collaborative_operations). When given, only that chain is returned; otherwise ALL scenario chains + bridges are returned.",
1250
+ "type": "string"
1251
+ }
1252
+ },
1253
+ "required": [
1254
+ "query_type"
1255
+ ],
1256
+ "additionalProperties": false,
1257
+ "description": "Scenario Topology knowledge (K3 03 §3.5 / Part 2): the STATIC registry of how WoWok objects INTEGRATE each other. Bridges weld object pairs into a capability that belongs to no single object (e.g. Demand.present(service) grants MATCHMAKING); chains compose bridges into whole applications (e.g. standard e-commerce, procurement tender). Pure knowledge, read-only — no on-chain reads. Use to explain HOW a business scenario is assembled from on-chain objects and why the integration (not the objects themselves) yields the capability."
1258
+ },
1241
1259
  {
1242
1260
  "type": "object",
1243
1261
  "properties": {
@@ -1307,6 +1325,47 @@
1307
1325
  ],
1308
1326
  "additionalProperties": false,
1309
1327
  "description": "Like / Favor list for ONE account (client Quick Access 'Like / Favor' tab) — every address (object OR plain user) the account has EVER liked / disliked / favored, deduplicated, with the CURRENT active vote kinds per target. Deterministic source: the voter's own Resource mark table (registrar.move handle_vote → resource::tag_set), cross-read with the target's EntityLinker votes for the 'marked at' clock. Fully-toggled-off targets are dropped. Each row: address + tags (like/dislike/favor) + time + object_type (null = plain user) + local name / description / tags. Aggregation result is TTL-cached (120s, keyed by network + account). Read-only."
1328
+ },
1329
+ {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "query_type": {
1333
+ "type": "string",
1334
+ "const": "migration_preflight"
1335
+ },
1336
+ "no_cache": {
1337
+ "description": "Set to true to bypass the SDK chain-read cache.",
1338
+ "type": "boolean"
1339
+ },
1340
+ "account": {
1341
+ "type": "string",
1342
+ "description": "Account address (or name) to check. Required when query_type='migration_preflight'."
1343
+ },
1344
+ "source_network": {
1345
+ "description": "Source network to detect an existing build (default 'testnet').",
1346
+ "type": "string",
1347
+ "enum": [
1348
+ "testnet",
1349
+ "mainnet",
1350
+ "localnet"
1351
+ ]
1352
+ },
1353
+ "target_network": {
1354
+ "description": "Target network for the migration (default 'mainnet').",
1355
+ "type": "string",
1356
+ "enum": [
1357
+ "testnet",
1358
+ "mainnet",
1359
+ "localnet"
1360
+ ]
1361
+ }
1362
+ },
1363
+ "required": [
1364
+ "query_type",
1365
+ "account"
1366
+ ],
1367
+ "additionalProperties": false,
1368
+ "description": "Cross-network build detection + mainnet customization preflight (first-touch migration): detect whether the account has already built Services/Machines/etc. on the source network (default testnet), report the same on the target network (default mainnet), and return a business-facing checklist of the key settings to confirm/change when migrating — payment token, location, arbitration, WIP, gas. Read-only."
1310
1369
  }
1311
1370
  ]
1312
1371
  }
@@ -40,69 +40,6 @@
40
40
  },
41
41
  "description": "List of schema summaries (list/search/list_operations)."
42
42
  },
43
- {
44
- "type": "array",
45
- "items": {
46
- "type": "object",
47
- "properties": {
48
- "file": {
49
- "type": "string",
50
- "description": "Example file name (e.g. 'rental-ziroom-service-create.json')."
51
- },
52
- "title": {
53
- "type": "string",
54
- "description": "Human-readable title from the example metadata."
55
- },
56
- "description": {
57
- "type": "string",
58
- "description": "Longer description from the example metadata."
59
- },
60
- "tags": {
61
- "type": "array",
62
- "items": {
63
- "type": "string"
64
- },
65
- "description": "Tags from the example metadata."
66
- },
67
- "industry": {
68
- "type": "string",
69
- "description": "Industry category (e.g. 'rental', 'retail', 'general')."
70
- },
71
- "operation_type": {
72
- "type": "string",
73
- "description": "Operation type (e.g. 'service', 'machine', 'guard', 'permission')."
74
- },
75
- "verified": {
76
- "type": "boolean",
77
- "description": "Whether the example is marked as verified."
78
- },
79
- "score": {
80
- "type": "number",
81
- "description": "Relevance score — number of fields that matched the query (0-5)."
82
- },
83
- "matched_fields": {
84
- "type": "array",
85
- "items": {
86
- "type": "string"
87
- },
88
- "description": "List of fields that matched the query."
89
- }
90
- },
91
- "required": [
92
- "file",
93
- "title",
94
- "description",
95
- "tags",
96
- "industry",
97
- "operation_type",
98
- "verified",
99
- "score",
100
- "matched_fields"
101
- ],
102
- "additionalProperties": false
103
- },
104
- "description": "List of matching examples (search_examples)."
105
- },
106
43
  {
107
44
  "type": "object",
108
45
  "propertyNames": {
@@ -116,7 +53,7 @@
116
53
  "description": "No data — lookup failed or returned nothing, or data was written to output_file."
117
54
  }
118
55
  ],
119
- "description": "Response data — array of schema summaries for list-like actions, array of example results for search_examples, JSON Schema object for get/get_output/get_field, Guard template data for get_guard_templates, null on failure or when output_file is used."
56
+ "description": "Response data — array of schema summaries for list-like actions, JSON Schema object for get/get_output/get_field, Guard template data for get_guard_templates, null on failure or when output_file is used."
120
57
  },
121
58
  "message": {
122
59
  "type": "string",