@wowok/agent-mcp 2.7.2 → 2.7.4

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 (383) hide show
  1. package/dist/config/runtime.js +1 -1
  2. package/dist/customer/account-events.d.ts +32 -0
  3. package/dist/customer/account-events.js +1 -0
  4. package/dist/customer/customer-advice.d.ts +1 -0
  5. package/dist/customer/customer-advice.js +1 -1
  6. package/dist/customer/info-puzzle.js +1 -1
  7. package/dist/customer/order-strategy.d.ts +1 -1
  8. package/dist/customer/reminder-system.d.ts +2 -0
  9. package/dist/customer/reminder-system.js +1 -1
  10. package/dist/customer/risk-assessment.d.ts +1 -0
  11. package/dist/customer/risk-assessment.js +1 -1
  12. package/dist/customer/types.d.ts +2 -0
  13. package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
  14. package/dist/evaluation/builtins/arbitration-score.js +1 -0
  15. package/dist/evaluation/builtins/index.d.ts +1 -0
  16. package/dist/evaluation/builtins/index.js +1 -1
  17. package/dist/evaluation/category-match-rules.d.ts +30 -0
  18. package/dist/evaluation/category-match-rules.js +1 -0
  19. package/dist/evaluation/engine.js +1 -1
  20. package/dist/evaluation/extract.js +1 -1
  21. package/dist/evaluation/index.d.ts +1 -0
  22. package/dist/evaluation/index.js +1 -1
  23. package/dist/evaluation/location-match.d.ts +42 -0
  24. package/dist/evaluation/location-match.js +1 -0
  25. package/dist/evaluation/path-reasoning.d.ts +35 -0
  26. package/dist/evaluation/path-reasoning.js +1 -0
  27. package/dist/evaluation/region.d.ts +6 -0
  28. package/dist/evaluation/region.js +1 -1
  29. package/dist/evaluation/types.d.ts +17 -0
  30. package/dist/experience/realtime-feedback.js +1 -1
  31. package/dist/experience/user-profile.d.ts +1 -1
  32. package/dist/extensions/index.d.ts +6 -0
  33. package/dist/extensions/index.js +1 -1
  34. package/dist/extensions/industry-layers.d.ts +75 -0
  35. package/dist/extensions/industry-layers.js +1 -0
  36. package/dist/extensions/industry-pack.d.ts +105 -0
  37. package/dist/extensions/industry-pack.js +1 -0
  38. package/dist/extensions/metric-registry.js +1 -1
  39. package/dist/extensions/mode-evaluator.d.ts +1 -1
  40. package/dist/extensions/registry.d.ts +1 -0
  41. package/dist/extensions/registry.js +1 -1
  42. package/dist/graph/base.d.ts +8 -0
  43. package/dist/graph/base.js +1 -0
  44. package/dist/harness/index.d.ts +1 -0
  45. package/dist/harness/index.js +1 -1
  46. package/dist/harness/plan.d.ts +2 -0
  47. package/dist/harness/plan.js +1 -1
  48. package/dist/harness/recover.d.ts +1 -1
  49. package/dist/harness/types.d.ts +2 -3
  50. package/dist/index.js +1 -1
  51. package/dist/knowledge/allocation-confirm.js +1 -1
  52. package/dist/knowledge/anti-cheat.d.ts +37 -0
  53. package/dist/knowledge/anti-cheat.js +1 -0
  54. package/dist/knowledge/arb-confirm.d.ts +28 -0
  55. package/dist/knowledge/arb-confirm.js +1 -0
  56. package/dist/knowledge/arb-translation.d.ts +48 -0
  57. package/dist/knowledge/arb-translation.js +1 -0
  58. package/dist/knowledge/arbitration-context.js +1 -1
  59. package/dist/knowledge/arbitration-ledger.js +1 -1
  60. package/dist/knowledge/bridge-confirm.d.ts +26 -0
  61. package/dist/knowledge/bridge-confirm.js +1 -0
  62. package/dist/knowledge/bridge-translation.d.ts +37 -0
  63. package/dist/knowledge/bridge-translation.js +1 -0
  64. package/dist/knowledge/contact-confirm.d.ts +27 -0
  65. package/dist/knowledge/contact-confirm.js +1 -0
  66. package/dist/knowledge/contact-translation.d.ts +39 -0
  67. package/dist/knowledge/contact-translation.js +1 -0
  68. package/dist/knowledge/demand-confirm.js +1 -1
  69. package/dist/knowledge/demand-context.d.ts +17 -0
  70. package/dist/knowledge/demand-context.js +1 -0
  71. package/dist/knowledge/demand-ledger.d.ts +26 -0
  72. package/dist/knowledge/demand-ledger.js +1 -0
  73. package/dist/knowledge/demand-puzzle.d.ts +29 -0
  74. package/dist/knowledge/demand-puzzle.js +1 -0
  75. package/dist/knowledge/demand-risk.js +1 -1
  76. package/dist/knowledge/demand-templates.d.ts +12 -0
  77. package/dist/knowledge/demand-templates.js +1 -0
  78. package/dist/knowledge/demand-translation.js +1 -1
  79. package/dist/knowledge/deployment-scanner.js +1 -1
  80. package/dist/knowledge/evidence-review.d.ts +12 -0
  81. package/dist/knowledge/evidence-review.js +1 -0
  82. package/dist/knowledge/examples-scanner-cli.js +1 -1
  83. package/dist/knowledge/examples-scanner.js +1 -1
  84. package/dist/knowledge/flywheel-loop.d.ts +0 -1
  85. package/dist/knowledge/flywheel-loop.js +1 -1
  86. package/dist/knowledge/guard-design-patterns.js +1 -1
  87. package/dist/knowledge/guard-migration.d.ts +1 -1
  88. package/dist/knowledge/index.d.ts +71 -3
  89. package/dist/knowledge/index.js +1 -1
  90. package/dist/knowledge/industry-registry.js +1 -1
  91. package/dist/knowledge/machine-render.js +1 -1
  92. package/dist/knowledge/market-metrics.d.ts +12 -0
  93. package/dist/knowledge/market-metrics.js +1 -0
  94. package/dist/knowledge/market-operations.d.ts +46 -0
  95. package/dist/knowledge/market-operations.js +1 -0
  96. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  97. package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
  98. package/dist/knowledge/mcp-schema-audit.js +1 -1
  99. package/dist/knowledge/onchain-constants.d.ts +2 -2
  100. package/dist/knowledge/onchain-constants.js +1 -1
  101. package/dist/knowledge/payment-confirm.d.ts +26 -0
  102. package/dist/knowledge/payment-confirm.js +1 -0
  103. package/dist/knowledge/payment-risk.js +1 -1
  104. package/dist/knowledge/payment-translation.d.ts +37 -0
  105. package/dist/knowledge/payment-translation.js +1 -0
  106. package/dist/knowledge/permission-context.d.ts +11 -0
  107. package/dist/knowledge/permission-context.js +1 -1
  108. package/dist/knowledge/permission-ledger.d.ts +11 -0
  109. package/dist/knowledge/permission-ledger.js +1 -1
  110. package/dist/knowledge/personal-confirm.d.ts +29 -0
  111. package/dist/knowledge/personal-confirm.js +1 -0
  112. package/dist/knowledge/personal-risk.js +1 -1
  113. package/dist/knowledge/personal-translation.d.ts +37 -0
  114. package/dist/knowledge/personal-translation.js +1 -0
  115. package/dist/knowledge/process-model.d.ts +1 -11
  116. package/dist/knowledge/process-model.js +1 -1
  117. package/dist/knowledge/progress-ledger.js +1 -1
  118. package/dist/knowledge/progress-risk.js +1 -1
  119. package/dist/knowledge/progress-templates.js +1 -1
  120. package/dist/knowledge/progress-translation.js +1 -1
  121. package/dist/knowledge/proof-context.d.ts +17 -0
  122. package/dist/knowledge/proof-context.js +1 -0
  123. package/dist/knowledge/proof-ledger.d.ts +34 -0
  124. package/dist/knowledge/proof-ledger.js +1 -0
  125. package/dist/knowledge/proof-puzzle.d.ts +35 -0
  126. package/dist/knowledge/proof-puzzle.js +1 -0
  127. package/dist/knowledge/proof-templates.d.ts +22 -0
  128. package/dist/knowledge/proof-templates.js +1 -0
  129. package/dist/knowledge/registrar-confirm.d.ts +26 -0
  130. package/dist/knowledge/registrar-confirm.js +1 -0
  131. package/dist/knowledge/registrar-risk.js +1 -1
  132. package/dist/knowledge/registrar-translation.d.ts +37 -0
  133. package/dist/knowledge/registrar-translation.js +1 -0
  134. package/dist/knowledge/repository-context.d.ts +12 -0
  135. package/dist/knowledge/repository-context.js +1 -0
  136. package/dist/knowledge/repository-ledger.d.ts +25 -0
  137. package/dist/knowledge/repository-ledger.js +1 -0
  138. package/dist/knowledge/repository-puzzle.d.ts +30 -0
  139. package/dist/knowledge/repository-puzzle.js +1 -0
  140. package/dist/knowledge/repository-templates.d.ts +14 -0
  141. package/dist/knowledge/repository-templates.js +1 -0
  142. package/dist/knowledge/resource-confirm.d.ts +25 -0
  143. package/dist/knowledge/resource-confirm.js +1 -0
  144. package/dist/knowledge/resource-translation.d.ts +37 -0
  145. package/dist/knowledge/resource-translation.js +1 -0
  146. package/dist/knowledge/reward-context.d.ts +2 -2
  147. package/dist/knowledge/reward-ledger.js +1 -1
  148. package/dist/knowledge/reward-translation.js +1 -1
  149. package/dist/knowledge/safety-rules.d.ts +1 -0
  150. package/dist/knowledge/safety-rules.js +1 -1
  151. package/dist/knowledge/service-risk.d.ts +1 -1
  152. package/dist/knowledge/service-risk.js +1 -1
  153. package/dist/knowledge/template-registry.js +1 -1
  154. package/dist/knowledge/tools-reference.js +1 -1
  155. package/dist/knowledge/treasury-context.d.ts +1 -1
  156. package/dist/knowledge/treasury-context.js +1 -1
  157. package/dist/knowledge/treasury-ledger.js +1 -1
  158. package/dist/knowledge/treasury-risk.js +1 -1
  159. package/dist/knowledge/universal-template.d.ts +22 -0
  160. package/dist/knowledge/universal-template.js +1 -0
  161. package/dist/knowledge/util-confirm.d.ts +24 -0
  162. package/dist/knowledge/util-confirm.js +1 -0
  163. package/dist/knowledge/util-risk.js +1 -1
  164. package/dist/knowledge/util-translation.d.ts +39 -0
  165. package/dist/knowledge/util-translation.js +1 -0
  166. package/dist/knowledge/workflow-guidance.d.ts +180 -0
  167. package/dist/knowledge/workflow-guidance.js +1 -0
  168. package/dist/participation/employee-kpi.d.ts +25 -0
  169. package/dist/participation/employee-kpi.js +1 -0
  170. package/dist/participation/employee-store.d.ts +16 -0
  171. package/dist/participation/employee-store.js +1 -0
  172. package/dist/participation/index.d.ts +2 -0
  173. package/dist/participation/index.js +1 -0
  174. package/dist/persona/defaults.js +1 -1
  175. package/dist/persona/index.d.ts +9 -2
  176. package/dist/persona/index.js +1 -1
  177. package/dist/persona/local-region.d.ts +20 -0
  178. package/dist/persona/local-region.js +1 -0
  179. package/dist/persona/model.js +1 -1
  180. package/dist/persona/overrides.d.ts +10 -0
  181. package/dist/persona/overrides.js +1 -0
  182. package/dist/persona/pack-personae.d.ts +11 -0
  183. package/dist/persona/pack-personae.js +1 -0
  184. package/dist/persona/strategy-intent.d.ts +20 -0
  185. package/dist/persona/strategy-intent.js +1 -0
  186. package/dist/persona/types.d.ts +3 -1
  187. package/dist/project/business-puzzle.d.ts +1 -1
  188. package/dist/project/business-puzzle.js +1 -1
  189. package/dist/project/deployment-doc.js +1 -1
  190. package/dist/project/edit-planner.js +1 -1
  191. package/dist/project/evaluation.d.ts +37 -1
  192. package/dist/project/evaluation.js +1 -1
  193. package/dist/project/graph-builder.d.ts +2 -2
  194. package/dist/project/graph-builder.js +1 -1
  195. package/dist/project/graph.d.ts +3 -6
  196. package/dist/project/handlers.d.ts +33 -2
  197. package/dist/project/handlers.js +1 -1
  198. package/dist/project/index.d.ts +1 -0
  199. package/dist/project/index.js +1 -1
  200. package/dist/project/merchant-guide.d.ts +19 -0
  201. package/dist/project/merchant-guide.js +1 -1
  202. package/dist/project/mode-actions.js +1 -1
  203. package/dist/project/rollback-policy.js +1 -1
  204. package/dist/project/semantic-assembler.d.ts +2 -2
  205. package/dist/project/semantic-assembler.js +1 -1
  206. package/dist/project/semantic-graph.d.ts +3 -5
  207. package/dist/project/workflow-design-assessment.d.ts +24 -0
  208. package/dist/project/workflow-design-assessment.js +1 -0
  209. package/dist/safety/confirm-gate.d.ts +1 -1
  210. package/dist/safety/confirm-gate.js +1 -1
  211. package/dist/schema/call/allocation.d.ts +186 -1385
  212. package/dist/schema/call/arbitration.d.ts +272 -1871
  213. package/dist/schema/call/base.d.ts +1831 -9076
  214. package/dist/schema/call/base.js +1 -1
  215. package/dist/schema/call/bridge.d.ts +911 -3171
  216. package/dist/schema/call/contact.d.ts +135 -931
  217. package/dist/schema/call/demand.d.ts +164 -1194
  218. package/dist/schema/call/guard.d.ts +298 -1140
  219. package/dist/schema/call/guard.js +1 -1
  220. package/dist/schema/call/machine.d.ts +459 -5403
  221. package/dist/schema/call/machine.js +1 -1
  222. package/dist/schema/call/order.d.ts +137 -844
  223. package/dist/schema/call/payment.d.ts +74 -561
  224. package/dist/schema/call/permission.d.ts +335 -2791
  225. package/dist/schema/call/personal.d.ts +227 -1814
  226. package/dist/schema/call/progress.d.ts +140 -843
  227. package/dist/schema/call/proof.d.ts +42 -258
  228. package/dist/schema/call/repository.d.ts +324 -2222
  229. package/dist/schema/call/reward.d.ts +153 -1183
  230. package/dist/schema/call/semantic.js +1 -1
  231. package/dist/schema/call/service.d.ts +376 -3431
  232. package/dist/schema/call/treasury.d.ts +252 -2158
  233. package/dist/schema/common/index.d.ts +222 -697
  234. package/dist/schema/common/index.js +1 -1
  235. package/dist/schema/config/index.d.ts +18 -161
  236. package/dist/schema/employee/index.d.ts +99 -0
  237. package/dist/schema/employee/index.js +1 -0
  238. package/dist/schema/evaluation/index.d.ts +1035 -3918
  239. package/dist/schema/evaluation/index.js +1 -1
  240. package/dist/schema/index.d.ts +5 -0
  241. package/dist/schema/index.js +1 -1
  242. package/dist/schema/industry-pack/index.d.ts +132 -0
  243. package/dist/schema/industry-pack/index.js +1 -0
  244. package/dist/schema/intent-radar/index.d.ts +92 -245
  245. package/dist/schema/intent-radar/index.js +1 -1
  246. package/dist/schema/local/index.d.ts +2045 -18080
  247. package/dist/schema/local/index.js +1 -1
  248. package/dist/schema/local/wip.d.ts +61 -651
  249. package/dist/schema/local/wip.js +1 -1
  250. package/dist/schema/messenger/index.d.ts +949 -5557
  251. package/dist/schema/messenger/index.js +1 -1
  252. package/dist/schema/operations.d.ts +3168 -26468
  253. package/dist/schema/operations.js +1 -1
  254. package/dist/schema/permission/index.d.ts +121 -0
  255. package/dist/schema/permission/index.js +1 -0
  256. package/dist/schema/persona/index.d.ts +469 -1820
  257. package/dist/schema/persona/index.js +1 -1
  258. package/dist/schema/project/index.d.ts +1023 -8450
  259. package/dist/schema/project/index.js +1 -1
  260. package/dist/schema/query/index.d.ts +12121 -75556
  261. package/dist/schema/query/index.js +1 -1
  262. package/dist/schema/schema-query/index.d.ts +35 -98
  263. package/dist/schema/schema-query/index.js +1 -1
  264. package/dist/schema/schema-version.js +1 -1
  265. package/dist/schema/task-status.d.ts +26 -132
  266. package/dist/schema/trust/index.d.ts +194 -1290
  267. package/dist/schema/utils/guard-parser.js +1 -1
  268. package/dist/schema/utils/node-parser.js +1 -1
  269. package/dist/schema/utils/skills-recommendation.d.ts +1 -0
  270. package/dist/schema/utils/skills-recommendation.js +1 -1
  271. package/dist/schema/workflow/index.d.ts +161 -0
  272. package/dist/schema/workflow/index.js +1 -0
  273. package/dist/schema/workspace/index.d.ts +69 -0
  274. package/dist/schema/workspace/index.js +1 -0
  275. package/dist/{schema-query → schema-query-impl}/index.js +1 -1
  276. package/dist/schemas/account_operation.output.json +3147 -1655
  277. package/dist/schemas/account_operation.schema.json +225 -218
  278. package/dist/schemas/bridge_operation.output.json +1168 -653
  279. package/dist/schemas/bridge_operation.schema.json +736 -504
  280. package/dist/schemas/config_operation.output.json +185 -179
  281. package/dist/schemas/config_operation.schema.json +21 -26
  282. package/dist/schemas/employee_operation.output.json +207 -0
  283. package/dist/schemas/employee_operation.schema.json +176 -0
  284. package/dist/schemas/evaluation_operation.output.json +2268 -601
  285. package/dist/schemas/evaluation_operation.schema.json +2919 -787
  286. package/dist/schemas/guard2file.output.json +58 -64
  287. package/dist/schemas/guard2file.schema.json +79 -81
  288. package/dist/schemas/index.json +41 -11
  289. package/dist/schemas/industry_pack_operation.output.json +594 -0
  290. package/dist/schemas/industry_pack_operation.schema.json +55 -0
  291. package/dist/schemas/intent_radar.output.json +275 -203
  292. package/dist/schemas/intent_radar.schema.json +124 -126
  293. package/dist/schemas/local_info_operation.output.json +1174 -660
  294. package/dist/schemas/local_info_operation.schema.json +119 -125
  295. package/dist/schemas/local_mark_operation.output.json +1239 -692
  296. package/dist/schemas/local_mark_operation.schema.json +91 -96
  297. package/dist/schemas/machineNode2file.output.json +63 -69
  298. package/dist/schemas/machineNode2file.schema.json +79 -81
  299. package/dist/schemas/messenger_operation.output.json +2722 -1531
  300. package/dist/schemas/messenger_operation.schema.json +1482 -1264
  301. package/dist/schemas/onchain_events.output.json +2590 -978
  302. package/dist/schemas/onchain_events.schema.json +117 -99
  303. package/dist/schemas/onchain_operations.output.json +3957 -2312
  304. package/dist/schemas/onchain_operations.schema.json +20799 -9285
  305. package/dist/schemas/onchain_operations_allocation.schema.json +171 -107
  306. package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
  307. package/dist/schemas/onchain_operations_contact.schema.json +129 -90
  308. package/dist/schemas/onchain_operations_demand.schema.json +170 -112
  309. package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
  310. package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
  311. package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
  312. package/dist/schemas/onchain_operations_machine.schema.json +536 -163
  313. package/dist/schemas/onchain_operations_order.schema.json +126 -96
  314. package/dist/schemas/onchain_operations_payment.schema.json +82 -67
  315. package/dist/schemas/onchain_operations_permission.schema.json +331 -93
  316. package/dist/schemas/onchain_operations_personal.schema.json +636 -96
  317. package/dist/schemas/onchain_operations_progress.schema.json +125 -92
  318. package/dist/schemas/onchain_operations_proof.schema.json +76 -69
  319. package/dist/schemas/onchain_operations_repository.schema.json +636 -249
  320. package/dist/schemas/onchain_operations_reward.schema.json +218 -108
  321. package/dist/schemas/onchain_operations_service.schema.json +678 -220
  322. package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
  323. package/dist/schemas/onchain_table_data.output.json +6833 -2432
  324. package/dist/schemas/onchain_table_data.schema.json +684 -417
  325. package/dist/schemas/permission_operation.output.json +173 -0
  326. package/dist/schemas/permission_operation.schema.json +39 -0
  327. package/dist/schemas/persona_operation.output.json +1568 -268
  328. package/dist/schemas/persona_operation.schema.json +346 -205
  329. package/dist/schemas/project_operation.output.json +6922 -5132
  330. package/dist/schemas/project_operation.schema.json +1050 -1020
  331. package/dist/schemas/query_task_status.output.json +195 -99
  332. package/dist/schemas/query_task_status.schema.json +12 -18
  333. package/dist/schemas/query_toolkit.output.json +18862 -14561
  334. package/dist/schemas/query_toolkit.schema.json +614 -522
  335. package/dist/schemas/schema_query.output.json +127 -129
  336. package/dist/schemas/schema_query.schema.json +64 -69
  337. package/dist/schemas/trust_score.output.json +678 -587
  338. package/dist/schemas/trust_score.schema.json +289 -277
  339. package/dist/schemas/wip_file.output.json +116 -124
  340. package/dist/schemas/wip_file.schema.json +142 -143
  341. package/dist/schemas/workflow_operation.output.json +164 -0
  342. package/dist/schemas/workflow_operation.schema.json +116 -0
  343. package/dist/schemas/workspace_operation.output.json +277 -0
  344. package/dist/schemas/workspace_operation.schema.json +45 -0
  345. package/dist/schemas/wowok_buildin_info.output.json +1682 -844
  346. package/dist/schemas/wowok_buildin_info.schema.json +576 -526
  347. package/dist/tools/handlers/bridge.d.ts +8 -1
  348. package/dist/tools/handlers/bridge.js +1 -1
  349. package/dist/tools/handlers/config.js +1 -1
  350. package/dist/tools/handlers/employee.d.ts +2 -0
  351. package/dist/tools/handlers/employee.js +1 -0
  352. package/dist/tools/handlers/evaluation.js +1 -1
  353. package/dist/tools/handlers/file-export.js +1 -1
  354. package/dist/tools/handlers/industry-pack.d.ts +2 -0
  355. package/dist/tools/handlers/industry-pack.js +1 -0
  356. package/dist/tools/handlers/onchain.js +1 -1
  357. package/dist/tools/handlers/permission.d.ts +2 -0
  358. package/dist/tools/handlers/permission.js +1 -0
  359. package/dist/tools/handlers/persona.js +1 -1
  360. package/dist/tools/handlers/project.js +1 -1
  361. package/dist/tools/handlers/query.js +1 -1
  362. package/dist/tools/handlers/schema-query.js +1 -1
  363. package/dist/tools/handlers/trust.js +1 -1
  364. package/dist/tools/handlers/wip.js +1 -1
  365. package/dist/tools/handlers/workflow.d.ts +2 -0
  366. package/dist/tools/handlers/workflow.js +1 -0
  367. package/dist/tools/handlers/workspace.d.ts +4 -0
  368. package/dist/tools/handlers/workspace.js +1 -0
  369. package/dist/tools/index.d.ts +2 -1
  370. package/dist/tools/index.js +1 -1
  371. package/dist/tools/rules-hook.d.ts +1 -1
  372. package/dist/tools/rules-hook.js +1 -1
  373. package/dist/tools/shared.d.ts +1 -1
  374. package/dist/tools/shared.js +1 -1
  375. package/dist/tools/types.d.ts +2 -1
  376. package/package.json +4 -5
  377. package/dist/knowledge/arbitration-trust.d.ts +0 -24
  378. package/dist/knowledge/arbitration-trust.js +0 -1
  379. package/dist/schema/call/bridge-handler.d.ts +0 -8
  380. package/dist/schema/call/bridge-handler.js +0 -1
  381. package/dist/schema/sync-layer4.d.ts +0 -21
  382. package/dist/schema/sync-layer4.js +0 -1
  383. /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
@@ -1,269 +1,1393 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://wowok.net/schemas/persona_operation.json",
3
+ "$id": "https://wowok.net/schemas/persona_operation.output.json",
4
4
  "title": "Persona - User Identity Setting",
5
5
  "description": "Read/write the user's systematic identity setting (persona): preferences, competitive strategy, experience rules, self profile, and spec. Each persona has a long-term layer (stable) and a current layer (transient, higher priority), bound to a scope: system (all accounts) or account (one chain address, higher priority).",
6
- "$ref": "#/definitions/persona_operation",
7
- "definitions": {
8
- "persona_operation": {
9
- "anyOf": [
10
- {
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "action": {
11
+ "type": "string",
12
+ "const": "get"
13
+ },
14
+ "effective": {
11
15
  "type": "object",
12
16
  "properties": {
13
- "action": {
17
+ "scope": {
18
+ "type": "string",
19
+ "enum": [
20
+ "system",
21
+ "account"
22
+ ]
23
+ },
24
+ "account": {
25
+ "type": "string"
26
+ },
27
+ "role": {
14
28
  "type": "string",
15
- "const": "get"
29
+ "enum": [
30
+ "merchant",
31
+ "customer",
32
+ "prospect",
33
+ "supplier",
34
+ "collaborator",
35
+ "arbitrator"
36
+ ]
37
+ },
38
+ "industries": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string",
42
+ "enum": [
43
+ "freelance",
44
+ "rental",
45
+ "education",
46
+ "travel",
47
+ "subscription",
48
+ "retail"
49
+ ]
50
+ }
16
51
  },
17
- "effective": {
52
+ "layer": {
18
53
  "type": "object",
19
54
  "properties": {
20
- "scope": {
55
+ "identity": {
56
+ "type": "object",
57
+ "properties": {
58
+ "region": {
59
+ "type": "string"
60
+ },
61
+ "languages": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "self_description": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ },
73
+ "preferences": {
74
+ "type": "object",
75
+ "propertyNames": {
76
+ "type": "string"
77
+ },
78
+ "additionalProperties": {}
79
+ },
80
+ "strategy": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "rules": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "requirements": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "spec": {
99
+ "type": "string"
100
+ }
101
+ },
102
+ "additionalProperties": false
103
+ },
104
+ "sources": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "object",
108
+ "properties": {
109
+ "scope": {
110
+ "type": "string",
111
+ "enum": [
112
+ "system",
113
+ "account"
114
+ ]
115
+ },
116
+ "account": {
117
+ "type": "string"
118
+ },
119
+ "part": {
120
+ "type": "string",
121
+ "enum": [
122
+ "long_term",
123
+ "current"
124
+ ]
125
+ }
126
+ },
127
+ "required": [
128
+ "scope",
129
+ "part"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ }
134
+ },
135
+ "required": [
136
+ "scope",
137
+ "role",
138
+ "industries",
139
+ "layer",
140
+ "sources"
141
+ ],
142
+ "additionalProperties": false
143
+ },
144
+ "context_text": {
145
+ "type": "string"
146
+ },
147
+ "injection": {
148
+ "type": "object",
149
+ "propertyNames": {
150
+ "type": "string"
151
+ },
152
+ "additionalProperties": {}
153
+ }
154
+ },
155
+ "required": [
156
+ "action",
157
+ "effective",
158
+ "context_text",
159
+ "injection"
160
+ ],
161
+ "additionalProperties": false
162
+ },
163
+ {
164
+ "type": "object",
165
+ "properties": {
166
+ "action": {
167
+ "type": "string",
168
+ "const": "list"
169
+ },
170
+ "personas": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object",
174
+ "properties": {
175
+ "version": {
176
+ "type": "number"
177
+ },
178
+ "scope": {
179
+ "type": "string",
180
+ "enum": [
181
+ "system",
182
+ "account"
183
+ ]
184
+ },
185
+ "account": {
186
+ "type": "string"
187
+ },
188
+ "role": {
189
+ "type": "string",
190
+ "enum": [
191
+ "merchant",
192
+ "customer",
193
+ "prospect",
194
+ "supplier",
195
+ "collaborator",
196
+ "arbitrator"
197
+ ]
198
+ },
199
+ "industries": {
200
+ "type": "array",
201
+ "items": {
202
+ "type": "string",
203
+ "enum": [
204
+ "freelance",
205
+ "rental",
206
+ "education",
207
+ "travel",
208
+ "subscription",
209
+ "retail"
210
+ ]
211
+ }
212
+ },
213
+ "long_term": {
214
+ "type": "object",
215
+ "properties": {
216
+ "identity": {
217
+ "type": "object",
218
+ "properties": {
219
+ "region": {
220
+ "type": "string"
221
+ },
222
+ "languages": {
223
+ "type": "array",
224
+ "items": {
225
+ "type": "string"
226
+ }
227
+ },
228
+ "self_description": {
229
+ "type": "string"
230
+ }
231
+ },
232
+ "additionalProperties": false
233
+ },
234
+ "preferences": {
235
+ "type": "object",
236
+ "propertyNames": {
237
+ "type": "string"
238
+ },
239
+ "additionalProperties": {}
240
+ },
241
+ "strategy": {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ "rules": {
248
+ "type": "array",
249
+ "items": {
250
+ "type": "string"
251
+ }
252
+ },
253
+ "requirements": {
254
+ "type": "array",
255
+ "items": {
256
+ "type": "string"
257
+ }
258
+ },
259
+ "spec": {
260
+ "type": "string"
261
+ }
262
+ },
263
+ "additionalProperties": false
264
+ },
265
+ "current": {
266
+ "type": "object",
267
+ "properties": {
268
+ "identity": {
269
+ "type": "object",
270
+ "properties": {
271
+ "region": {
272
+ "type": "string"
273
+ },
274
+ "languages": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "string"
278
+ }
279
+ },
280
+ "self_description": {
281
+ "type": "string"
282
+ }
283
+ },
284
+ "additionalProperties": false
285
+ },
286
+ "preferences": {
287
+ "type": "object",
288
+ "propertyNames": {
289
+ "type": "string"
290
+ },
291
+ "additionalProperties": {}
292
+ },
293
+ "strategy": {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "string"
297
+ }
298
+ },
299
+ "rules": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "requirements": {
306
+ "type": "array",
307
+ "items": {
308
+ "type": "string"
309
+ }
310
+ },
311
+ "spec": {
312
+ "type": "string"
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ },
317
+ "updated_at": {
318
+ "type": "number"
319
+ }
320
+ },
321
+ "required": [
322
+ "version",
323
+ "scope",
324
+ "role",
325
+ "industries",
326
+ "long_term",
327
+ "current",
328
+ "updated_at"
329
+ ],
330
+ "additionalProperties": false
331
+ }
332
+ },
333
+ "defaults": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "object",
337
+ "properties": {
338
+ "version": {
339
+ "type": "number"
340
+ },
341
+ "scope": {
342
+ "type": "string",
343
+ "enum": [
344
+ "system",
345
+ "account"
346
+ ]
347
+ },
348
+ "account": {
349
+ "type": "string"
350
+ },
351
+ "role": {
352
+ "type": "string",
353
+ "enum": [
354
+ "merchant",
355
+ "customer",
356
+ "prospect",
357
+ "supplier",
358
+ "collaborator",
359
+ "arbitrator"
360
+ ]
361
+ },
362
+ "industries": {
363
+ "type": "array",
364
+ "items": {
21
365
  "type": "string",
22
366
  "enum": [
23
- "system",
24
- "account"
367
+ "freelance",
368
+ "rental",
369
+ "education",
370
+ "travel",
371
+ "subscription",
372
+ "retail"
25
373
  ]
374
+ }
375
+ },
376
+ "long_term": {
377
+ "type": "object",
378
+ "properties": {
379
+ "identity": {
380
+ "type": "object",
381
+ "properties": {
382
+ "region": {
383
+ "type": "string"
384
+ },
385
+ "languages": {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ "self_description": {
392
+ "type": "string"
393
+ }
394
+ },
395
+ "additionalProperties": false
396
+ },
397
+ "preferences": {
398
+ "type": "object",
399
+ "propertyNames": {
400
+ "type": "string"
401
+ },
402
+ "additionalProperties": {}
403
+ },
404
+ "strategy": {
405
+ "type": "array",
406
+ "items": {
407
+ "type": "string"
408
+ }
409
+ },
410
+ "rules": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "string"
414
+ }
415
+ },
416
+ "requirements": {
417
+ "type": "array",
418
+ "items": {
419
+ "type": "string"
420
+ }
421
+ },
422
+ "spec": {
423
+ "type": "string"
424
+ }
425
+ },
426
+ "additionalProperties": false
427
+ },
428
+ "current": {
429
+ "type": "object",
430
+ "properties": {
431
+ "identity": {
432
+ "type": "object",
433
+ "properties": {
434
+ "region": {
435
+ "type": "string"
436
+ },
437
+ "languages": {
438
+ "type": "array",
439
+ "items": {
440
+ "type": "string"
441
+ }
442
+ },
443
+ "self_description": {
444
+ "type": "string"
445
+ }
446
+ },
447
+ "additionalProperties": false
448
+ },
449
+ "preferences": {
450
+ "type": "object",
451
+ "propertyNames": {
452
+ "type": "string"
453
+ },
454
+ "additionalProperties": {}
455
+ },
456
+ "strategy": {
457
+ "type": "array",
458
+ "items": {
459
+ "type": "string"
460
+ }
461
+ },
462
+ "rules": {
463
+ "type": "array",
464
+ "items": {
465
+ "type": "string"
466
+ }
467
+ },
468
+ "requirements": {
469
+ "type": "array",
470
+ "items": {
471
+ "type": "string"
472
+ }
473
+ },
474
+ "spec": {
475
+ "type": "string"
476
+ }
477
+ },
478
+ "additionalProperties": false
479
+ },
480
+ "updated_at": {
481
+ "type": "number"
482
+ }
483
+ },
484
+ "required": [
485
+ "version",
486
+ "scope",
487
+ "role",
488
+ "industries",
489
+ "long_term",
490
+ "current",
491
+ "updated_at"
492
+ ],
493
+ "additionalProperties": false
494
+ }
495
+ }
496
+ },
497
+ "required": [
498
+ "action",
499
+ "personas",
500
+ "defaults"
501
+ ],
502
+ "additionalProperties": false
503
+ },
504
+ {
505
+ "type": "object",
506
+ "properties": {
507
+ "action": {
508
+ "type": "string",
509
+ "const": "set"
510
+ },
511
+ "persona": {
512
+ "type": "object",
513
+ "properties": {
514
+ "version": {
515
+ "type": "number"
516
+ },
517
+ "scope": {
518
+ "type": "string",
519
+ "enum": [
520
+ "system",
521
+ "account"
522
+ ]
523
+ },
524
+ "account": {
525
+ "type": "string"
526
+ },
527
+ "role": {
528
+ "type": "string",
529
+ "enum": [
530
+ "merchant",
531
+ "customer",
532
+ "prospect",
533
+ "supplier",
534
+ "collaborator",
535
+ "arbitrator"
536
+ ]
537
+ },
538
+ "industries": {
539
+ "type": "array",
540
+ "items": {
541
+ "type": "string",
542
+ "enum": [
543
+ "freelance",
544
+ "rental",
545
+ "education",
546
+ "travel",
547
+ "subscription",
548
+ "retail"
549
+ ]
550
+ }
551
+ },
552
+ "long_term": {
553
+ "type": "object",
554
+ "properties": {
555
+ "identity": {
556
+ "type": "object",
557
+ "properties": {
558
+ "region": {
559
+ "type": "string"
560
+ },
561
+ "languages": {
562
+ "type": "array",
563
+ "items": {
564
+ "type": "string"
565
+ }
566
+ },
567
+ "self_description": {
568
+ "type": "string"
569
+ }
570
+ },
571
+ "additionalProperties": false
572
+ },
573
+ "preferences": {
574
+ "type": "object",
575
+ "propertyNames": {
576
+ "type": "string"
577
+ },
578
+ "additionalProperties": {}
579
+ },
580
+ "strategy": {
581
+ "type": "array",
582
+ "items": {
583
+ "type": "string"
584
+ }
585
+ },
586
+ "rules": {
587
+ "type": "array",
588
+ "items": {
589
+ "type": "string"
590
+ }
591
+ },
592
+ "requirements": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "string"
596
+ }
597
+ },
598
+ "spec": {
599
+ "type": "string"
600
+ }
601
+ },
602
+ "additionalProperties": false
603
+ },
604
+ "current": {
605
+ "type": "object",
606
+ "properties": {
607
+ "identity": {
608
+ "type": "object",
609
+ "properties": {
610
+ "region": {
611
+ "type": "string"
612
+ },
613
+ "languages": {
614
+ "type": "array",
615
+ "items": {
616
+ "type": "string"
617
+ }
618
+ },
619
+ "self_description": {
620
+ "type": "string"
621
+ }
622
+ },
623
+ "additionalProperties": false
624
+ },
625
+ "preferences": {
626
+ "type": "object",
627
+ "propertyNames": {
628
+ "type": "string"
629
+ },
630
+ "additionalProperties": {}
631
+ },
632
+ "strategy": {
633
+ "type": "array",
634
+ "items": {
635
+ "type": "string"
636
+ }
637
+ },
638
+ "rules": {
639
+ "type": "array",
640
+ "items": {
641
+ "type": "string"
642
+ }
643
+ },
644
+ "requirements": {
645
+ "type": "array",
646
+ "items": {
647
+ "type": "string"
648
+ }
649
+ },
650
+ "spec": {
651
+ "type": "string"
652
+ }
653
+ },
654
+ "additionalProperties": false
655
+ },
656
+ "updated_at": {
657
+ "type": "number"
658
+ }
659
+ },
660
+ "required": [
661
+ "version",
662
+ "scope",
663
+ "role",
664
+ "industries",
665
+ "long_term",
666
+ "current",
667
+ "updated_at"
668
+ ],
669
+ "additionalProperties": false
670
+ },
671
+ "line_count": {
672
+ "type": "number"
673
+ }
674
+ },
675
+ "required": [
676
+ "action",
677
+ "persona",
678
+ "line_count"
679
+ ],
680
+ "additionalProperties": false
681
+ },
682
+ {
683
+ "type": "object",
684
+ "properties": {
685
+ "action": {
686
+ "type": "string",
687
+ "const": "analyze"
688
+ },
689
+ "analysis": {
690
+ "type": "object",
691
+ "properties": {
692
+ "role": {
693
+ "type": "string",
694
+ "enum": [
695
+ "merchant",
696
+ "customer",
697
+ "prospect",
698
+ "supplier",
699
+ "collaborator",
700
+ "arbitrator"
701
+ ]
702
+ },
703
+ "industries": {
704
+ "type": "array",
705
+ "items": {
706
+ "type": "string",
707
+ "enum": [
708
+ "freelance",
709
+ "rental",
710
+ "education",
711
+ "travel",
712
+ "subscription",
713
+ "retail"
714
+ ]
715
+ }
716
+ },
717
+ "preferences": {
718
+ "type": "object",
719
+ "propertyNames": {
720
+ "type": "string"
721
+ },
722
+ "additionalProperties": {}
723
+ },
724
+ "requirements": {
725
+ "type": "array",
726
+ "items": {
727
+ "type": "string"
728
+ }
729
+ },
730
+ "rules": {
731
+ "type": "array",
732
+ "items": {
733
+ "type": "string"
734
+ }
735
+ },
736
+ "suggestions": {
737
+ "type": "array",
738
+ "items": {
739
+ "type": "object",
740
+ "properties": {
741
+ "field": {
742
+ "type": "string"
743
+ },
744
+ "value": {},
745
+ "reason": {
746
+ "type": "string"
747
+ }
748
+ },
749
+ "required": [
750
+ "field",
751
+ "value",
752
+ "reason"
753
+ ],
754
+ "additionalProperties": false
755
+ }
756
+ },
757
+ "confidence": {
758
+ "type": "number"
759
+ }
760
+ },
761
+ "required": [
762
+ "industries",
763
+ "preferences",
764
+ "requirements",
765
+ "rules",
766
+ "suggestions",
767
+ "confidence"
768
+ ],
769
+ "additionalProperties": false
770
+ }
771
+ },
772
+ "required": [
773
+ "action",
774
+ "analysis"
775
+ ],
776
+ "additionalProperties": false
777
+ },
778
+ {
779
+ "type": "object",
780
+ "properties": {
781
+ "action": {
782
+ "type": "string",
783
+ "const": "apply"
784
+ },
785
+ "persona": {
786
+ "type": "object",
787
+ "properties": {
788
+ "version": {
789
+ "type": "number"
790
+ },
791
+ "scope": {
792
+ "type": "string",
793
+ "enum": [
794
+ "system",
795
+ "account"
796
+ ]
797
+ },
798
+ "account": {
799
+ "type": "string"
800
+ },
801
+ "role": {
802
+ "type": "string",
803
+ "enum": [
804
+ "merchant",
805
+ "customer",
806
+ "prospect",
807
+ "supplier",
808
+ "collaborator",
809
+ "arbitrator"
810
+ ]
811
+ },
812
+ "industries": {
813
+ "type": "array",
814
+ "items": {
815
+ "type": "string",
816
+ "enum": [
817
+ "freelance",
818
+ "rental",
819
+ "education",
820
+ "travel",
821
+ "subscription",
822
+ "retail"
823
+ ]
824
+ }
825
+ },
826
+ "long_term": {
827
+ "type": "object",
828
+ "properties": {
829
+ "identity": {
830
+ "type": "object",
831
+ "properties": {
832
+ "region": {
833
+ "type": "string"
834
+ },
835
+ "languages": {
836
+ "type": "array",
837
+ "items": {
838
+ "type": "string"
839
+ }
840
+ },
841
+ "self_description": {
842
+ "type": "string"
843
+ }
844
+ },
845
+ "additionalProperties": false
846
+ },
847
+ "preferences": {
848
+ "type": "object",
849
+ "propertyNames": {
850
+ "type": "string"
851
+ },
852
+ "additionalProperties": {}
853
+ },
854
+ "strategy": {
855
+ "type": "array",
856
+ "items": {
857
+ "type": "string"
858
+ }
859
+ },
860
+ "rules": {
861
+ "type": "array",
862
+ "items": {
863
+ "type": "string"
864
+ }
865
+ },
866
+ "requirements": {
867
+ "type": "array",
868
+ "items": {
869
+ "type": "string"
870
+ }
871
+ },
872
+ "spec": {
873
+ "type": "string"
874
+ }
875
+ },
876
+ "additionalProperties": false
877
+ },
878
+ "current": {
879
+ "type": "object",
880
+ "properties": {
881
+ "identity": {
882
+ "type": "object",
883
+ "properties": {
884
+ "region": {
885
+ "type": "string"
886
+ },
887
+ "languages": {
888
+ "type": "array",
889
+ "items": {
890
+ "type": "string"
891
+ }
892
+ },
893
+ "self_description": {
894
+ "type": "string"
895
+ }
896
+ },
897
+ "additionalProperties": false
898
+ },
899
+ "preferences": {
900
+ "type": "object",
901
+ "propertyNames": {
902
+ "type": "string"
903
+ },
904
+ "additionalProperties": {}
905
+ },
906
+ "strategy": {
907
+ "type": "array",
908
+ "items": {
909
+ "type": "string"
910
+ }
911
+ },
912
+ "rules": {
913
+ "type": "array",
914
+ "items": {
915
+ "type": "string"
916
+ }
917
+ },
918
+ "requirements": {
919
+ "type": "array",
920
+ "items": {
921
+ "type": "string"
922
+ }
923
+ },
924
+ "spec": {
925
+ "type": "string"
926
+ }
927
+ },
928
+ "additionalProperties": false
929
+ },
930
+ "updated_at": {
931
+ "type": "number"
932
+ }
933
+ },
934
+ "required": [
935
+ "version",
936
+ "scope",
937
+ "role",
938
+ "industries",
939
+ "long_term",
940
+ "current",
941
+ "updated_at"
942
+ ],
943
+ "additionalProperties": false
944
+ },
945
+ "effective": {
946
+ "type": "object",
947
+ "properties": {
948
+ "scope": {
949
+ "type": "string",
950
+ "enum": [
951
+ "system",
952
+ "account"
953
+ ]
954
+ },
955
+ "account": {
956
+ "type": "string"
957
+ },
958
+ "role": {
959
+ "type": "string",
960
+ "enum": [
961
+ "merchant",
962
+ "customer",
963
+ "prospect",
964
+ "supplier",
965
+ "collaborator",
966
+ "arbitrator"
967
+ ]
968
+ },
969
+ "industries": {
970
+ "type": "array",
971
+ "items": {
972
+ "type": "string",
973
+ "enum": [
974
+ "freelance",
975
+ "rental",
976
+ "education",
977
+ "travel",
978
+ "subscription",
979
+ "retail"
980
+ ]
981
+ }
982
+ },
983
+ "layer": {
984
+ "type": "object",
985
+ "properties": {
986
+ "identity": {
987
+ "type": "object",
988
+ "properties": {
989
+ "region": {
990
+ "type": "string"
991
+ },
992
+ "languages": {
993
+ "type": "array",
994
+ "items": {
995
+ "type": "string"
996
+ }
997
+ },
998
+ "self_description": {
999
+ "type": "string"
1000
+ }
1001
+ },
1002
+ "additionalProperties": false
1003
+ },
1004
+ "preferences": {
1005
+ "type": "object",
1006
+ "propertyNames": {
1007
+ "type": "string"
1008
+ },
1009
+ "additionalProperties": {}
1010
+ },
1011
+ "strategy": {
1012
+ "type": "array",
1013
+ "items": {
1014
+ "type": "string"
1015
+ }
1016
+ },
1017
+ "rules": {
1018
+ "type": "array",
1019
+ "items": {
1020
+ "type": "string"
1021
+ }
1022
+ },
1023
+ "requirements": {
1024
+ "type": "array",
1025
+ "items": {
1026
+ "type": "string"
1027
+ }
1028
+ },
1029
+ "spec": {
1030
+ "type": "string"
1031
+ }
1032
+ },
1033
+ "additionalProperties": false
1034
+ },
1035
+ "sources": {
1036
+ "type": "array",
1037
+ "items": {
1038
+ "type": "object",
1039
+ "properties": {
1040
+ "scope": {
1041
+ "type": "string",
1042
+ "enum": [
1043
+ "system",
1044
+ "account"
1045
+ ]
1046
+ },
1047
+ "account": {
1048
+ "type": "string"
1049
+ },
1050
+ "part": {
1051
+ "type": "string",
1052
+ "enum": [
1053
+ "long_term",
1054
+ "current"
1055
+ ]
1056
+ }
1057
+ },
1058
+ "required": [
1059
+ "scope",
1060
+ "part"
1061
+ ],
1062
+ "additionalProperties": false
1063
+ }
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "scope",
1068
+ "role",
1069
+ "industries",
1070
+ "layer",
1071
+ "sources"
1072
+ ],
1073
+ "additionalProperties": false
1074
+ },
1075
+ "applied": {
1076
+ "type": "array",
1077
+ "items": {
1078
+ "type": "object",
1079
+ "properties": {
1080
+ "field": {
1081
+ "type": "string"
1082
+ },
1083
+ "value": {},
1084
+ "reason": {
1085
+ "type": "string"
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "field",
1090
+ "value",
1091
+ "reason"
1092
+ ],
1093
+ "additionalProperties": false
1094
+ }
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "action",
1099
+ "persona",
1100
+ "effective",
1101
+ "applied"
1102
+ ],
1103
+ "additionalProperties": false
1104
+ },
1105
+ {
1106
+ "type": "object",
1107
+ "properties": {
1108
+ "action": {
1109
+ "type": "string",
1110
+ "const": "sync"
1111
+ },
1112
+ "persona": {
1113
+ "type": "object",
1114
+ "properties": {
1115
+ "version": {
1116
+ "type": "number"
1117
+ },
1118
+ "scope": {
1119
+ "type": "string",
1120
+ "enum": [
1121
+ "system",
1122
+ "account"
1123
+ ]
1124
+ },
1125
+ "account": {
1126
+ "type": "string"
1127
+ },
1128
+ "role": {
1129
+ "type": "string",
1130
+ "enum": [
1131
+ "merchant",
1132
+ "customer",
1133
+ "prospect",
1134
+ "supplier",
1135
+ "collaborator",
1136
+ "arbitrator"
1137
+ ]
1138
+ },
1139
+ "industries": {
1140
+ "type": "array",
1141
+ "items": {
1142
+ "type": "string",
1143
+ "enum": [
1144
+ "freelance",
1145
+ "rental",
1146
+ "education",
1147
+ "travel",
1148
+ "subscription",
1149
+ "retail"
1150
+ ]
1151
+ }
1152
+ },
1153
+ "long_term": {
1154
+ "type": "object",
1155
+ "properties": {
1156
+ "identity": {
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "region": {
1160
+ "type": "string"
1161
+ },
1162
+ "languages": {
1163
+ "type": "array",
1164
+ "items": {
1165
+ "type": "string"
1166
+ }
1167
+ },
1168
+ "self_description": {
1169
+ "type": "string"
1170
+ }
1171
+ },
1172
+ "additionalProperties": false
1173
+ },
1174
+ "preferences": {
1175
+ "type": "object",
1176
+ "propertyNames": {
1177
+ "type": "string"
1178
+ },
1179
+ "additionalProperties": {}
26
1180
  },
27
- "account": {
28
- "type": "string"
1181
+ "strategy": {
1182
+ "type": "array",
1183
+ "items": {
1184
+ "type": "string"
1185
+ }
29
1186
  },
30
- "role": {
31
- "type": "string",
32
- "enum": [
33
- "merchant",
34
- "customer",
35
- "prospect",
36
- "supplier",
37
- "collaborator",
38
- "arbitrator"
39
- ]
1187
+ "rules": {
1188
+ "type": "array",
1189
+ "items": {
1190
+ "type": "string"
1191
+ }
40
1192
  },
41
- "industries": {
1193
+ "requirements": {
42
1194
  "type": "array",
43
1195
  "items": {
44
- "type": "string",
45
- "enum": [
46
- "freelance",
47
- "rental",
48
- "education",
49
- "travel",
50
- "subscription",
51
- "retail"
52
- ]
1196
+ "type": "string"
53
1197
  }
54
1198
  },
55
- "layer": {
1199
+ "spec": {
1200
+ "type": "string"
1201
+ }
1202
+ },
1203
+ "additionalProperties": false
1204
+ },
1205
+ "current": {
1206
+ "type": "object",
1207
+ "properties": {
1208
+ "identity": {
56
1209
  "type": "object",
57
1210
  "properties": {
58
- "identity": {
59
- "type": "object",
60
- "properties": {
61
- "region": {
62
- "type": "string"
63
- },
64
- "languages": {
65
- "type": "array",
66
- "items": {
67
- "type": "string"
68
- }
69
- },
70
- "self_description": {
71
- "type": "string"
72
- }
73
- },
74
- "additionalProperties": false
75
- },
76
- "preferences": {
77
- "type": "object",
78
- "additionalProperties": {}
79
- },
80
- "strategy": {
81
- "type": "array",
82
- "items": {
83
- "type": "string"
84
- }
85
- },
86
- "rules": {
87
- "type": "array",
88
- "items": {
89
- "type": "string"
90
- }
1211
+ "region": {
1212
+ "type": "string"
91
1213
  },
92
- "requirements": {
1214
+ "languages": {
93
1215
  "type": "array",
94
1216
  "items": {
95
1217
  "type": "string"
96
1218
  }
97
1219
  },
98
- "spec": {
1220
+ "self_description": {
99
1221
  "type": "string"
100
1222
  }
101
1223
  },
102
1224
  "additionalProperties": false
103
1225
  },
104
- "sources": {
1226
+ "preferences": {
1227
+ "type": "object",
1228
+ "propertyNames": {
1229
+ "type": "string"
1230
+ },
1231
+ "additionalProperties": {}
1232
+ },
1233
+ "strategy": {
105
1234
  "type": "array",
106
1235
  "items": {
107
- "type": "object",
108
- "properties": {
109
- "scope": {
110
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/scope"
111
- },
112
- "account": {
113
- "type": "string"
114
- },
115
- "part": {
116
- "type": "string",
117
- "enum": [
118
- "long_term",
119
- "current"
120
- ]
121
- }
122
- },
123
- "required": [
124
- "scope",
125
- "part"
126
- ],
127
- "additionalProperties": false
1236
+ "type": "string"
1237
+ }
1238
+ },
1239
+ "rules": {
1240
+ "type": "array",
1241
+ "items": {
1242
+ "type": "string"
1243
+ }
1244
+ },
1245
+ "requirements": {
1246
+ "type": "array",
1247
+ "items": {
1248
+ "type": "string"
128
1249
  }
1250
+ },
1251
+ "spec": {
1252
+ "type": "string"
129
1253
  }
130
1254
  },
131
- "required": [
132
- "scope",
133
- "role",
134
- "industries",
135
- "layer",
136
- "sources"
137
- ],
138
1255
  "additionalProperties": false
139
1256
  },
140
- "context_text": {
141
- "type": "string"
142
- },
143
- "injection": {
144
- "type": "object",
145
- "additionalProperties": {}
1257
+ "updated_at": {
1258
+ "type": "number"
146
1259
  }
147
1260
  },
148
1261
  "required": [
149
- "action",
150
- "effective",
151
- "context_text",
152
- "injection"
1262
+ "version",
1263
+ "scope",
1264
+ "role",
1265
+ "industries",
1266
+ "long_term",
1267
+ "current",
1268
+ "updated_at"
153
1269
  ],
154
1270
  "additionalProperties": false
155
1271
  },
156
- {
1272
+ "applied": {
157
1273
  "type": "object",
158
1274
  "properties": {
159
- "action": {
160
- "type": "string",
161
- "const": "list"
162
- },
163
- "personas": {
164
- "type": "array",
165
- "items": {
166
- "type": "object",
167
- "properties": {
168
- "version": {
169
- "type": "number"
170
- },
171
- "scope": {
172
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/scope"
173
- },
174
- "account": {
1275
+ "identity": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "region": {
1279
+ "type": "string"
1280
+ },
1281
+ "languages": {
1282
+ "type": "array",
1283
+ "items": {
175
1284
  "type": "string"
176
- },
177
- "role": {
178
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/role"
179
- },
180
- "industries": {
181
- "type": "array",
182
- "items": {
183
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/industries/items"
184
- }
185
- },
186
- "long_term": {
187
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
188
- },
189
- "current": {
190
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
191
- },
192
- "updated_at": {
193
- "type": "number"
194
1285
  }
195
1286
  },
196
- "required": [
197
- "version",
198
- "scope",
199
- "role",
200
- "industries",
201
- "long_term",
202
- "current",
203
- "updated_at"
204
- ],
205
- "additionalProperties": false
1287
+ "self_description": {
1288
+ "type": "string"
1289
+ }
1290
+ },
1291
+ "additionalProperties": false
1292
+ },
1293
+ "preferences": {
1294
+ "type": "object",
1295
+ "propertyNames": {
1296
+ "type": "string"
1297
+ },
1298
+ "additionalProperties": {}
1299
+ },
1300
+ "strategy": {
1301
+ "type": "array",
1302
+ "items": {
1303
+ "type": "string"
1304
+ }
1305
+ },
1306
+ "rules": {
1307
+ "type": "array",
1308
+ "items": {
1309
+ "type": "string"
206
1310
  }
207
1311
  },
208
- "defaults": {
1312
+ "requirements": {
209
1313
  "type": "array",
210
1314
  "items": {
211
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
1315
+ "type": "string"
212
1316
  }
1317
+ },
1318
+ "spec": {
1319
+ "type": "string"
213
1320
  }
214
1321
  },
215
- "required": [
216
- "action",
217
- "personas",
218
- "defaults"
219
- ],
220
1322
  "additionalProperties": false
221
1323
  },
222
- {
1324
+ "effective": {
223
1325
  "type": "object",
224
1326
  "properties": {
225
- "action": {
1327
+ "scope": {
226
1328
  "type": "string",
227
- "const": "set"
1329
+ "enum": [
1330
+ "system",
1331
+ "account"
1332
+ ]
228
1333
  },
229
- "persona": {
230
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
1334
+ "account": {
1335
+ "type": "string"
231
1336
  },
232
- "line_count": {
233
- "type": "number"
234
- }
235
- },
236
- "required": [
237
- "action",
238
- "persona",
239
- "line_count"
240
- ],
241
- "additionalProperties": false
242
- },
243
- {
244
- "type": "object",
245
- "properties": {
246
- "action": {
1337
+ "role": {
247
1338
  "type": "string",
248
- "const": "analyze"
1339
+ "enum": [
1340
+ "merchant",
1341
+ "customer",
1342
+ "prospect",
1343
+ "supplier",
1344
+ "collaborator",
1345
+ "arbitrator"
1346
+ ]
1347
+ },
1348
+ "industries": {
1349
+ "type": "array",
1350
+ "items": {
1351
+ "type": "string",
1352
+ "enum": [
1353
+ "freelance",
1354
+ "rental",
1355
+ "education",
1356
+ "travel",
1357
+ "subscription",
1358
+ "retail"
1359
+ ]
1360
+ }
249
1361
  },
250
- "analysis": {
1362
+ "layer": {
251
1363
  "type": "object",
252
1364
  "properties": {
253
- "role": {
254
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/role"
255
- },
256
- "industries": {
257
- "type": "array",
258
- "items": {
259
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/industries/items"
260
- }
1365
+ "identity": {
1366
+ "type": "object",
1367
+ "properties": {
1368
+ "region": {
1369
+ "type": "string"
1370
+ },
1371
+ "languages": {
1372
+ "type": "array",
1373
+ "items": {
1374
+ "type": "string"
1375
+ }
1376
+ },
1377
+ "self_description": {
1378
+ "type": "string"
1379
+ }
1380
+ },
1381
+ "additionalProperties": false
261
1382
  },
262
1383
  "preferences": {
263
1384
  "type": "object",
1385
+ "propertyNames": {
1386
+ "type": "string"
1387
+ },
264
1388
  "additionalProperties": {}
265
1389
  },
266
- "requirements": {
1390
+ "strategy": {
267
1391
  "type": "array",
268
1392
  "items": {
269
1393
  "type": "string"
@@ -275,118 +1399,294 @@
275
1399
  "type": "string"
276
1400
  }
277
1401
  },
278
- "suggestions": {
1402
+ "requirements": {
279
1403
  "type": "array",
280
1404
  "items": {
281
- "type": "object",
282
- "properties": {
283
- "field": {
284
- "type": "string"
285
- },
286
- "value": {},
287
- "reason": {
288
- "type": "string"
289
- }
290
- },
291
- "required": [
292
- "field",
293
- "reason"
294
- ],
295
- "additionalProperties": false
1405
+ "type": "string"
296
1406
  }
297
1407
  },
298
- "confidence": {
299
- "type": "number"
1408
+ "spec": {
1409
+ "type": "string"
300
1410
  }
301
1411
  },
302
- "required": [
303
- "industries",
304
- "preferences",
305
- "requirements",
306
- "rules",
307
- "suggestions",
308
- "confidence"
309
- ],
310
1412
  "additionalProperties": false
311
- }
312
- },
313
- "required": [
314
- "action",
315
- "analysis"
316
- ],
317
- "additionalProperties": false
318
- },
319
- {
320
- "type": "object",
321
- "properties": {
322
- "action": {
323
- "type": "string",
324
- "const": "apply"
325
- },
326
- "persona": {
327
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
328
1413
  },
329
- "effective": {
330
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective"
331
- },
332
- "applied": {
1414
+ "sources": {
333
1415
  "type": "array",
334
1416
  "items": {
335
- "$ref": "#/definitions/persona_operation/anyOf/3/properties/analysis/properties/suggestions/items"
1417
+ "type": "object",
1418
+ "properties": {
1419
+ "scope": {
1420
+ "type": "string",
1421
+ "enum": [
1422
+ "system",
1423
+ "account"
1424
+ ]
1425
+ },
1426
+ "account": {
1427
+ "type": "string"
1428
+ },
1429
+ "part": {
1430
+ "type": "string",
1431
+ "enum": [
1432
+ "long_term",
1433
+ "current"
1434
+ ]
1435
+ }
1436
+ },
1437
+ "required": [
1438
+ "scope",
1439
+ "part"
1440
+ ],
1441
+ "additionalProperties": false
336
1442
  }
337
1443
  }
338
1444
  },
339
1445
  "required": [
340
- "action",
341
- "persona",
342
- "effective",
343
- "applied"
1446
+ "scope",
1447
+ "role",
1448
+ "industries",
1449
+ "layer",
1450
+ "sources"
344
1451
  ],
345
1452
  "additionalProperties": false
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "action",
1457
+ "persona",
1458
+ "applied",
1459
+ "effective"
1460
+ ],
1461
+ "additionalProperties": false
1462
+ },
1463
+ {
1464
+ "type": "object",
1465
+ "properties": {
1466
+ "action": {
1467
+ "type": "string",
1468
+ "const": "remove"
1469
+ },
1470
+ "removed": {
1471
+ "type": "boolean"
1472
+ }
1473
+ },
1474
+ "required": [
1475
+ "action",
1476
+ "removed"
1477
+ ],
1478
+ "additionalProperties": false
1479
+ },
1480
+ {
1481
+ "type": "object",
1482
+ "properties": {
1483
+ "action": {
1484
+ "type": "string",
1485
+ "const": "strategy"
1486
+ },
1487
+ "role": {
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "merchant",
1491
+ "customer",
1492
+ "prospect",
1493
+ "supplier",
1494
+ "collaborator",
1495
+ "arbitrator"
1496
+ ]
1497
+ },
1498
+ "intents": {
1499
+ "type": "array",
1500
+ "items": {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "objective": {
1504
+ "type": "string",
1505
+ "enum": [
1506
+ "sales_priority",
1507
+ "profit_priority",
1508
+ "buyer_screening",
1509
+ "gross_margin_control"
1510
+ ]
1511
+ },
1512
+ "metrics": {
1513
+ "type": "array",
1514
+ "items": {
1515
+ "type": "string"
1516
+ }
1517
+ },
1518
+ "levers": {
1519
+ "type": "array",
1520
+ "items": {
1521
+ "type": "string",
1522
+ "enum": [
1523
+ "discount",
1524
+ "reward",
1525
+ "buy_guard",
1526
+ "machine_design"
1527
+ ]
1528
+ }
1529
+ },
1530
+ "target": {
1531
+ "type": "string"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "objective",
1536
+ "metrics",
1537
+ "levers",
1538
+ "target"
1539
+ ],
1540
+ "additionalProperties": false
1541
+ }
1542
+ },
1543
+ "suggestions": {
1544
+ "type": "array",
1545
+ "items": {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "lever": {
1549
+ "type": "string",
1550
+ "enum": [
1551
+ "discount",
1552
+ "reward",
1553
+ "buy_guard",
1554
+ "machine_design"
1555
+ ]
1556
+ },
1557
+ "objective": {
1558
+ "type": "string",
1559
+ "enum": [
1560
+ "sales_priority",
1561
+ "profit_priority",
1562
+ "buyer_screening",
1563
+ "gross_margin_control"
1564
+ ]
1565
+ },
1566
+ "action": {
1567
+ "type": "string"
1568
+ },
1569
+ "target": {
1570
+ "type": "string"
1571
+ }
1572
+ },
1573
+ "required": [
1574
+ "lever",
1575
+ "objective",
1576
+ "action",
1577
+ "target"
1578
+ ],
1579
+ "additionalProperties": false
1580
+ }
346
1581
  },
347
- {
1582
+ "note": {
1583
+ "type": "string",
1584
+ "description": "Empty for merchant; explains why mapping is producer-only for other roles."
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "action",
1589
+ "role",
1590
+ "intents",
1591
+ "suggestions",
1592
+ "note"
1593
+ ],
1594
+ "additionalProperties": false
1595
+ },
1596
+ {
1597
+ "type": "object",
1598
+ "properties": {
1599
+ "action": {
1600
+ "type": "string",
1601
+ "const": "region_hint"
1602
+ },
1603
+ "hint": {
1604
+ "description": "Present when a locally-stored delivery address exists.",
348
1605
  "type": "object",
349
1606
  "properties": {
350
- "action": {
351
- "type": "string",
352
- "const": "sync"
353
- },
354
- "persona": {
355
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
1607
+ "region": {
1608
+ "type": "object",
1609
+ "propertyNames": {
1610
+ "type": "string"
1611
+ },
1612
+ "additionalProperties": {},
1613
+ "description": "Deterministic region skeleton (mode/raw; country/province/city stay AI-enriched)."
356
1614
  },
357
- "applied": {
358
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
1615
+ "source": {
1616
+ "type": "string",
1617
+ "const": "local_info"
359
1618
  },
360
- "effective": {
361
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective"
1619
+ "raw": {
1620
+ "type": "string"
362
1621
  }
363
1622
  },
364
1623
  "required": [
365
- "action",
366
- "persona",
367
- "applied",
368
- "effective"
1624
+ "region",
1625
+ "source",
1626
+ "raw"
369
1627
  ],
370
1628
  "additionalProperties": false
371
1629
  },
372
- {
1630
+ "proposal": {
1631
+ "description": "Present when `propose` was given — a consent-gated save proposal (never auto-written).",
373
1632
  "type": "object",
374
1633
  "properties": {
375
- "action": {
1634
+ "requires_user_consent": {
1635
+ "type": "boolean",
1636
+ "const": true
1637
+ },
1638
+ "raw": {
1639
+ "type": "string"
1640
+ },
1641
+ "region": {
1642
+ "type": "object",
1643
+ "propertyNames": {
1644
+ "type": "string"
1645
+ },
1646
+ "additionalProperties": {}
1647
+ },
1648
+ "review": {
1649
+ "type": "string"
1650
+ },
1651
+ "store_via": {
376
1652
  "type": "string",
377
- "const": "remove"
1653
+ "const": "local_info_operation"
378
1654
  },
379
- "removed": {
380
- "type": "boolean"
1655
+ "info": {
1656
+ "type": "object",
1657
+ "properties": {
1658
+ "name": {
1659
+ "type": "string"
1660
+ },
1661
+ "default": {
1662
+ "type": "string"
1663
+ }
1664
+ },
1665
+ "required": [
1666
+ "name",
1667
+ "default"
1668
+ ],
1669
+ "additionalProperties": false
381
1670
  }
382
1671
  },
383
1672
  "required": [
384
- "action",
385
- "removed"
1673
+ "requires_user_consent",
1674
+ "raw",
1675
+ "region",
1676
+ "review",
1677
+ "store_via",
1678
+ "info"
386
1679
  ],
387
1680
  "additionalProperties": false
1681
+ },
1682
+ "note": {
1683
+ "type": "string"
388
1684
  }
389
- ]
1685
+ },
1686
+ "required": [
1687
+ "action"
1688
+ ],
1689
+ "additionalProperties": false
390
1690
  }
391
- }
1691
+ ]
392
1692
  }