@wowok/agent-mcp 2.7.1 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/dist/config/index.js +1 -1
  2. package/dist/config/runtime.js +1 -238
  3. package/dist/customer/account-events.d.ts +32 -0
  4. package/dist/customer/account-events.js +1 -0
  5. package/dist/customer/customer-advice.d.ts +1 -0
  6. package/dist/customer/customer-advice.js +1 -130
  7. package/dist/customer/index.js +1 -11
  8. package/dist/customer/industry-risks.js +1 -438
  9. package/dist/customer/info-puzzle.js +1 -681
  10. package/dist/customer/order-monitor.js +1 -328
  11. package/dist/customer/order-strategy.d.ts +1 -1
  12. package/dist/customer/order-strategy.js +1 -373
  13. package/dist/customer/post-purchase.js +1 -351
  14. package/dist/customer/preorder-compare.js +1 -34
  15. package/dist/customer/reminder-system.d.ts +2 -0
  16. package/dist/customer/reminder-system.js +1 -316
  17. package/dist/customer/risk-assessment.d.ts +1 -0
  18. package/dist/customer/risk-assessment.js +1 -397
  19. package/dist/customer/types.d.ts +2 -0
  20. package/dist/customer/types.js +1 -13
  21. package/dist/customer/user-preferences.js +1 -460
  22. package/dist/evaluation/arbitration-game.d.ts +9 -2
  23. package/dist/evaluation/arbitration-game.js +1 -48
  24. package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
  25. package/dist/evaluation/builtins/arbitration-score.js +1 -0
  26. package/dist/evaluation/builtins/demand-match.js +1 -153
  27. package/dist/evaluation/builtins/index.d.ts +1 -0
  28. package/dist/evaluation/builtins/index.js +1 -10
  29. package/dist/evaluation/builtins/service-risk.js +1 -55
  30. package/dist/evaluation/capability.js +1 -13
  31. package/dist/evaluation/category-match-rules.d.ts +30 -0
  32. package/dist/evaluation/category-match-rules.js +1 -0
  33. package/dist/evaluation/composer.js +1 -40
  34. package/dist/evaluation/engine.js +1 -175
  35. package/dist/evaluation/extract.js +1 -115
  36. package/dist/evaluation/game-strategy.d.ts +27 -0
  37. package/dist/evaluation/game-strategy.js +1 -0
  38. package/dist/evaluation/gap.js +1 -100
  39. package/dist/evaluation/index.d.ts +2 -0
  40. package/dist/evaluation/index.js +1 -11
  41. package/dist/evaluation/location-match.d.ts +42 -0
  42. package/dist/evaluation/location-match.js +1 -0
  43. package/dist/evaluation/node-game.d.ts +31 -3
  44. package/dist/evaluation/node-game.js +1 -57
  45. package/dist/evaluation/path-reasoning.d.ts +35 -0
  46. package/dist/evaluation/path-reasoning.js +1 -0
  47. package/dist/evaluation/region.d.ts +6 -0
  48. package/dist/evaluation/region.js +1 -36
  49. package/dist/evaluation/types.d.ts +18 -0
  50. package/dist/evaluation/types.js +1 -1
  51. package/dist/evaluation/user-injection.js +1 -27
  52. package/dist/experience/experience-reuse.js +1 -103
  53. package/dist/experience/index.js +1 -5
  54. package/dist/experience/intent-distill.js +1 -83
  55. package/dist/experience/realtime-feedback.js +1 -94
  56. package/dist/experience/types.js +1 -1
  57. package/dist/experience/user-profile.d.ts +1 -1
  58. package/dist/experience/user-profile.js +1 -171
  59. package/dist/extensions/business-modules.js +1 -287
  60. package/dist/extensions/capability-manifest.js +1 -781
  61. package/dist/extensions/constraint-registry.js +1 -198
  62. package/dist/extensions/index.d.ts +6 -0
  63. package/dist/extensions/index.js +1 -6
  64. package/dist/extensions/industry-layers.d.ts +75 -0
  65. package/dist/extensions/industry-layers.js +1 -0
  66. package/dist/extensions/industry-pack.d.ts +105 -0
  67. package/dist/extensions/industry-pack.js +1 -0
  68. package/dist/extensions/metric-registry.js +1 -257
  69. package/dist/extensions/mode-evaluator.d.ts +1 -1
  70. package/dist/extensions/mode-evaluator.js +1 -170
  71. package/dist/extensions/modes.js +1 -499
  72. package/dist/extensions/registry.d.ts +1 -0
  73. package/dist/extensions/registry.js +1 -717
  74. package/dist/extensions/types.js +1 -1
  75. package/dist/graph/base.d.ts +8 -0
  76. package/dist/graph/base.js +1 -0
  77. package/dist/harness/auto-escalation.js +1 -68
  78. package/dist/harness/checkpoint.js +1 -129
  79. package/dist/harness/index.d.ts +1 -0
  80. package/dist/harness/index.js +1 -78
  81. package/dist/harness/plan.d.ts +2 -0
  82. package/dist/harness/plan.js +1 -315
  83. package/dist/harness/recover.d.ts +1 -1
  84. package/dist/harness/recover.js +1 -139
  85. package/dist/harness/types.d.ts +2 -3
  86. package/dist/harness/types.js +1 -1
  87. package/dist/harness/verify.js +1 -237
  88. package/dist/index.js +1 -273
  89. package/dist/intent/enrich.js +1 -67
  90. package/dist/intent/index.js +1 -60
  91. package/dist/intent/matcher.js +1 -81
  92. package/dist/intent/store.js +1 -55
  93. package/dist/intent/types.js +1 -10
  94. package/dist/knowledge/acquisition-flywheel.js +1 -192
  95. package/dist/knowledge/allocation-confirm.js +1 -534
  96. package/dist/knowledge/allocation-context.js +1 -249
  97. package/dist/knowledge/allocation-ledger.js +1 -463
  98. package/dist/knowledge/allocation-puzzle.js +1 -298
  99. package/dist/knowledge/allocation-risk.js +1 -568
  100. package/dist/knowledge/allocation-templates.js +1 -970
  101. package/dist/knowledge/allocation-translation.js +1 -585
  102. package/dist/knowledge/anti-cheat.d.ts +37 -0
  103. package/dist/knowledge/anti-cheat.js +1 -0
  104. package/dist/knowledge/arb-confirm.d.ts +28 -0
  105. package/dist/knowledge/arb-confirm.js +1 -0
  106. package/dist/knowledge/arb-risk.js +1 -210
  107. package/dist/knowledge/arb-translation.d.ts +48 -0
  108. package/dist/knowledge/arb-translation.js +1 -0
  109. package/dist/knowledge/arbitration-confirm.js +1 -559
  110. package/dist/knowledge/arbitration-context.js +1 -505
  111. package/dist/knowledge/arbitration-ledger.js +1 -521
  112. package/dist/knowledge/arbitration-puzzle.js +1 -304
  113. package/dist/knowledge/arbitration-risk.js +1 -423
  114. package/dist/knowledge/arbitration-templates.js +1 -276
  115. package/dist/knowledge/arbitration-translation.js +1 -487
  116. package/dist/knowledge/audit-rules.js +1 -141
  117. package/dist/knowledge/bridge-confirm.d.ts +26 -0
  118. package/dist/knowledge/bridge-confirm.js +1 -0
  119. package/dist/knowledge/bridge-risk.js +1 -263
  120. package/dist/knowledge/bridge-translation.d.ts +37 -0
  121. package/dist/knowledge/bridge-translation.js +1 -0
  122. package/dist/knowledge/contact-confirm.d.ts +27 -0
  123. package/dist/knowledge/contact-confirm.js +1 -0
  124. package/dist/knowledge/contact-risk.js +1 -200
  125. package/dist/knowledge/contact-templates.js +1 -60
  126. package/dist/knowledge/contact-translation.d.ts +39 -0
  127. package/dist/knowledge/contact-translation.js +1 -0
  128. package/dist/knowledge/demand-confirm.js +1 -206
  129. package/dist/knowledge/demand-context.d.ts +17 -0
  130. package/dist/knowledge/demand-context.js +1 -0
  131. package/dist/knowledge/demand-ledger.d.ts +26 -0
  132. package/dist/knowledge/demand-ledger.js +1 -0
  133. package/dist/knowledge/demand-matching.js +1 -132
  134. package/dist/knowledge/demand-puzzle.d.ts +29 -0
  135. package/dist/knowledge/demand-puzzle.js +1 -0
  136. package/dist/knowledge/demand-risk.js +1 -240
  137. package/dist/knowledge/demand-templates.d.ts +12 -0
  138. package/dist/knowledge/demand-templates.js +1 -0
  139. package/dist/knowledge/demand-translation.js +1 -354
  140. package/dist/knowledge/deployment-scanner.js +1 -823
  141. package/dist/knowledge/dynamic-pricing.js +1 -87
  142. package/dist/knowledge/evidence-review.d.ts +12 -0
  143. package/dist/knowledge/evidence-review.js +1 -0
  144. package/dist/knowledge/examples-scanner-cli.js +1 -26
  145. package/dist/knowledge/examples-scanner.js +1 -843
  146. package/dist/knowledge/flywheel-loop.d.ts +0 -1
  147. package/dist/knowledge/flywheel-loop.js +1 -404
  148. package/dist/knowledge/fund-layer.js +1 -973
  149. package/dist/knowledge/glossary.js +1 -211
  150. package/dist/knowledge/guard-confirm.js +1 -406
  151. package/dist/knowledge/guard-context.js +1 -287
  152. package/dist/knowledge/guard-design-patterns.js +1 -360
  153. package/dist/knowledge/guard-ledger.js +1 -260
  154. package/dist/knowledge/guard-lint.js +1 -670
  155. package/dist/knowledge/guard-migration.d.ts +1 -1
  156. package/dist/knowledge/guard-migration.js +1 -228
  157. package/dist/knowledge/guard-puzzle.js +1 -805
  158. package/dist/knowledge/guard-render.js +1 -700
  159. package/dist/knowledge/guard-risk.js +1 -1879
  160. package/dist/knowledge/guard-submission-prompt.js +1 -171
  161. package/dist/knowledge/guard-templates.js +1 -1105
  162. package/dist/knowledge/guard-translation.js +1 -1119
  163. package/dist/knowledge/index.d.ts +71 -3
  164. package/dist/knowledge/index.js +1 -436
  165. package/dist/knowledge/industry-evolution.js +1 -323
  166. package/dist/knowledge/industry-generalizer.js +1 -381
  167. package/dist/knowledge/industry-registry.js +1 -174
  168. package/dist/knowledge/intent-metrics.d.ts +4 -3
  169. package/dist/knowledge/intent-metrics.js +1 -566
  170. package/dist/knowledge/machine-confirm.js +1 -559
  171. package/dist/knowledge/machine-context.js +1 -833
  172. package/dist/knowledge/machine-ledger.js +1 -338
  173. package/dist/knowledge/machine-puzzle.js +1 -494
  174. package/dist/knowledge/machine-render.js +1 -565
  175. package/dist/knowledge/machine-risk.js +1 -669
  176. package/dist/knowledge/machine-templates.js +1 -1597
  177. package/dist/knowledge/machine-topology.js +1 -234
  178. package/dist/knowledge/machine-translation.js +1 -513
  179. package/dist/knowledge/market-metrics.d.ts +12 -0
  180. package/dist/knowledge/market-metrics.js +1 -0
  181. package/dist/knowledge/market-operations.d.ts +46 -0
  182. package/dist/knowledge/market-operations.js +1 -0
  183. package/dist/knowledge/mcp-schema-audit-cli.js +1 -45
  184. package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
  185. package/dist/knowledge/mcp-schema-audit.js +1 -777
  186. package/dist/knowledge/onchain-constants.js +1 -35
  187. package/dist/knowledge/order-confirm.js +1 -573
  188. package/dist/knowledge/order-context.js +1 -390
  189. package/dist/knowledge/order-ledger.js +1 -341
  190. package/dist/knowledge/order-puzzle.js +1 -255
  191. package/dist/knowledge/order-risk.js +1 -653
  192. package/dist/knowledge/order-templates.js +1 -368
  193. package/dist/knowledge/order-translation.js +1 -550
  194. package/dist/knowledge/overrides-loader.js +1 -65
  195. package/dist/knowledge/passport-confirm.js +1 -531
  196. package/dist/knowledge/passport-context.js +1 -306
  197. package/dist/knowledge/passport-ledger.js +1 -282
  198. package/dist/knowledge/passport-puzzle.js +1 -333
  199. package/dist/knowledge/passport-risk.js +1 -450
  200. package/dist/knowledge/passport-templates.js +1 -568
  201. package/dist/knowledge/passport-translation.js +1 -516
  202. package/dist/knowledge/payment-confirm.d.ts +26 -0
  203. package/dist/knowledge/payment-confirm.js +1 -0
  204. package/dist/knowledge/payment-risk.js +1 -249
  205. package/dist/knowledge/payment-translation.d.ts +37 -0
  206. package/dist/knowledge/payment-translation.js +1 -0
  207. package/dist/knowledge/permission-confirm.js +1 -426
  208. package/dist/knowledge/permission-context.js +1 -224
  209. package/dist/knowledge/permission-ledger.d.ts +11 -0
  210. package/dist/knowledge/permission-ledger.js +1 -403
  211. package/dist/knowledge/permission-puzzle.js +1 -173
  212. package/dist/knowledge/permission-risk.js +1 -411
  213. package/dist/knowledge/permission-templates.js +1 -234
  214. package/dist/knowledge/permission-translation.js +1 -350
  215. package/dist/knowledge/personal-confirm.d.ts +29 -0
  216. package/dist/knowledge/personal-confirm.js +1 -0
  217. package/dist/knowledge/personal-risk.js +1 -212
  218. package/dist/knowledge/personal-translation.d.ts +37 -0
  219. package/dist/knowledge/personal-translation.js +1 -0
  220. package/dist/knowledge/process-model.d.ts +1 -11
  221. package/dist/knowledge/process-model.js +1 -160
  222. package/dist/knowledge/progress-confirm.js +1 -456
  223. package/dist/knowledge/progress-context.js +1 -452
  224. package/dist/knowledge/progress-ledger.js +1 -330
  225. package/dist/knowledge/progress-puzzle.js +1 -219
  226. package/dist/knowledge/progress-risk.js +1 -461
  227. package/dist/knowledge/progress-templates.js +1 -228
  228. package/dist/knowledge/progress-translation.js +1 -405
  229. package/dist/knowledge/proof-confirm.js +1 -187
  230. package/dist/knowledge/proof-context.d.ts +17 -0
  231. package/dist/knowledge/proof-context.js +1 -0
  232. package/dist/knowledge/proof-ledger.d.ts +34 -0
  233. package/dist/knowledge/proof-ledger.js +1 -0
  234. package/dist/knowledge/proof-puzzle.d.ts +35 -0
  235. package/dist/knowledge/proof-puzzle.js +1 -0
  236. package/dist/knowledge/proof-risk.js +1 -207
  237. package/dist/knowledge/proof-templates.d.ts +22 -0
  238. package/dist/knowledge/proof-templates.js +1 -0
  239. package/dist/knowledge/proof-translation.js +1 -283
  240. package/dist/knowledge/registrar-confirm.d.ts +26 -0
  241. package/dist/knowledge/registrar-confirm.js +1 -0
  242. package/dist/knowledge/registrar-risk.js +1 -217
  243. package/dist/knowledge/registrar-translation.d.ts +37 -0
  244. package/dist/knowledge/registrar-translation.js +1 -0
  245. package/dist/knowledge/repository-confirm.js +1 -286
  246. package/dist/knowledge/repository-context.d.ts +12 -0
  247. package/dist/knowledge/repository-context.js +1 -0
  248. package/dist/knowledge/repository-ledger.d.ts +25 -0
  249. package/dist/knowledge/repository-ledger.js +1 -0
  250. package/dist/knowledge/repository-puzzle.d.ts +30 -0
  251. package/dist/knowledge/repository-puzzle.js +1 -0
  252. package/dist/knowledge/repository-risk.js +1 -373
  253. package/dist/knowledge/repository-templates.d.ts +14 -0
  254. package/dist/knowledge/repository-templates.js +1 -0
  255. package/dist/knowledge/repository-translation.js +1 -445
  256. package/dist/knowledge/reputation-rules.js +1 -99
  257. package/dist/knowledge/resource-confirm.d.ts +25 -0
  258. package/dist/knowledge/resource-confirm.js +1 -0
  259. package/dist/knowledge/resource-risk.js +1 -157
  260. package/dist/knowledge/resource-translation.d.ts +37 -0
  261. package/dist/knowledge/resource-translation.js +1 -0
  262. package/dist/knowledge/reward-confirm.js +1 -526
  263. package/dist/knowledge/reward-context.d.ts +2 -2
  264. package/dist/knowledge/reward-context.js +1 -504
  265. package/dist/knowledge/reward-ledger.js +1 -502
  266. package/dist/knowledge/reward-puzzle.js +1 -300
  267. package/dist/knowledge/reward-risk.js +1 -627
  268. package/dist/knowledge/reward-templates.js +1 -197
  269. package/dist/knowledge/reward-translation.js +1 -501
  270. package/dist/knowledge/safety-rules.d.ts +1 -0
  271. package/dist/knowledge/safety-rules.js +1 -404
  272. package/dist/knowledge/scenario-modes.js +1 -321
  273. package/dist/knowledge/service-confirm.js +1 -807
  274. package/dist/knowledge/service-context.js +1 -403
  275. package/dist/knowledge/service-ledger.js +1 -609
  276. package/dist/knowledge/service-puzzle.js +1 -236
  277. package/dist/knowledge/service-risk.d.ts +1 -1
  278. package/dist/knowledge/service-risk.js +1 -651
  279. package/dist/knowledge/service-templates.js +1 -456
  280. package/dist/knowledge/service-translation.js +1 -622
  281. package/dist/knowledge/template-registry.js +1 -353
  282. package/dist/knowledge/tool-constraints.js +1 -195
  283. package/dist/knowledge/tools-reference.js +1 -178
  284. package/dist/knowledge/treasury-confirm.js +1 -512
  285. package/dist/knowledge/treasury-context.js +1 -363
  286. package/dist/knowledge/treasury-ledger.js +1 -300
  287. package/dist/knowledge/treasury-puzzle.js +1 -216
  288. package/dist/knowledge/treasury-risk.js +1 -440
  289. package/dist/knowledge/treasury-templates.js +1 -358
  290. package/dist/knowledge/treasury-translation.js +1 -498
  291. package/dist/knowledge/trust-metrics.js +1 -198
  292. package/dist/knowledge/universal-template.d.ts +22 -0
  293. package/dist/knowledge/universal-template.js +1 -0
  294. package/dist/knowledge/util-confirm.d.ts +24 -0
  295. package/dist/knowledge/util-confirm.js +1 -0
  296. package/dist/knowledge/util-risk.js +1 -135
  297. package/dist/knowledge/util-translation.d.ts +38 -0
  298. package/dist/knowledge/util-translation.js +1 -0
  299. package/dist/knowledge/workflow-guidance.d.ts +116 -0
  300. package/dist/knowledge/workflow-guidance.js +1 -0
  301. package/dist/loop-engineering/aggregate.js +1 -132
  302. package/dist/loop-engineering/context-collect.js +1 -83
  303. package/dist/loop-engineering/diagnose.js +1 -273
  304. package/dist/loop-engineering/improve.js +1 -405
  305. package/dist/loop-engineering/index.js +1 -4
  306. package/dist/loop-engineering/pipeline.js +1 -56
  307. package/dist/mode-market/index.js +1 -3
  308. package/dist/mode-market/registry.js +1 -124
  309. package/dist/mode-market/review.js +1 -214
  310. package/dist/mode-market/submission.js +1 -85
  311. package/dist/participation/collaborator-interest.d.ts +23 -0
  312. package/dist/participation/collaborator-interest.js +1 -0
  313. package/dist/participation/customer-interest.d.ts +25 -0
  314. package/dist/participation/customer-interest.js +1 -0
  315. package/dist/participation/employee-kpi.d.ts +25 -0
  316. package/dist/participation/employee-kpi.js +1 -0
  317. package/dist/participation/employee-store.d.ts +16 -0
  318. package/dist/participation/employee-store.js +1 -0
  319. package/dist/participation/index.d.ts +2 -0
  320. package/dist/participation/index.js +1 -0
  321. package/dist/participation/merchant-interest.js +1 -100
  322. package/dist/participation/radar-core.d.ts +13 -3
  323. package/dist/participation/radar-core.js +1 -269
  324. package/dist/participation/supplier-interest.d.ts +25 -0
  325. package/dist/participation/supplier-interest.js +1 -0
  326. package/dist/persona/analyzer.js +1 -66
  327. package/dist/persona/bridge.js +1 -86
  328. package/dist/persona/defaults.js +1 -195
  329. package/dist/persona/experience-bridge.js +1 -23
  330. package/dist/persona/index.d.ts +9 -2
  331. package/dist/persona/index.js +1 -71
  332. package/dist/persona/local-region.d.ts +20 -0
  333. package/dist/persona/local-region.js +1 -0
  334. package/dist/persona/model.js +1 -111
  335. package/dist/persona/overrides.d.ts +10 -0
  336. package/dist/persona/overrides.js +1 -0
  337. package/dist/persona/pack-personae.d.ts +11 -0
  338. package/dist/persona/pack-personae.js +1 -0
  339. package/dist/persona/store.js +1 -62
  340. package/dist/persona/strategy-intent.d.ts +20 -0
  341. package/dist/persona/strategy-intent.js +1 -0
  342. package/dist/persona/types.d.ts +6 -2
  343. package/dist/persona/types.js +1 -5
  344. package/dist/project/business-puzzle.d.ts +1 -1
  345. package/dist/project/business-puzzle.js +1 -383
  346. package/dist/project/context-assembly.js +1 -254
  347. package/dist/project/deployment-bridge.js +1 -120
  348. package/dist/project/deployment-doc.js +1 -1126
  349. package/dist/project/edit-planner.js +1 -1342
  350. package/dist/project/evaluation.d.ts +37 -1
  351. package/dist/project/evaluation.js +1 -2011
  352. package/dist/project/game-theory.js +1 -177
  353. package/dist/project/graph-builder.js +1 -656
  354. package/dist/project/graph.d.ts +3 -6
  355. package/dist/project/graph.js +1 -340
  356. package/dist/project/handlers.d.ts +33 -2
  357. package/dist/project/handlers.js +1 -1784
  358. package/dist/project/index.d.ts +2 -0
  359. package/dist/project/index.js +1 -301
  360. package/dist/project/intent-analyzer.js +1 -149
  361. package/dist/project/machine-nodes.js +1 -36
  362. package/dist/project/merchant-guide.d.ts +19 -0
  363. package/dist/project/merchant-guide.js +1 -264
  364. package/dist/project/migration.js +1 -125
  365. package/dist/project/mode-actions.js +1 -309
  366. package/dist/project/namespace.js +1 -206
  367. package/dist/project/participation-radar.js +1 -428
  368. package/dist/project/pipeline-actions.js +1 -109
  369. package/dist/project/project-store.js +1 -422
  370. package/dist/project/query.js +1 -153
  371. package/dist/project/reverse-mapping.d.ts +34 -0
  372. package/dist/project/reverse-mapping.js +1 -0
  373. package/dist/project/risk-aggregator.js +1 -295
  374. package/dist/project/rollback-policy.js +1 -290
  375. package/dist/project/semantic-assembler.js +1 -345
  376. package/dist/project/semantic-graph.d.ts +3 -5
  377. package/dist/project/semantic-graph.js +1 -292
  378. package/dist/project/stage-gate.js +1 -369
  379. package/dist/project/substep-trace.js +1 -332
  380. package/dist/project/task-tracker.js +1 -78
  381. package/dist/project/workflow-design-assessment.d.ts +24 -0
  382. package/dist/project/workflow-design-assessment.js +1 -0
  383. package/dist/role/derivation.d.ts +18 -0
  384. package/dist/role/derivation.js +1 -0
  385. package/dist/role/index.d.ts +5 -0
  386. package/dist/role/index.js +1 -0
  387. package/dist/role/model.d.ts +8 -0
  388. package/dist/role/model.js +1 -0
  389. package/dist/role/resolution.d.ts +11 -0
  390. package/dist/role/resolution.js +1 -0
  391. package/dist/role/types.d.ts +11 -0
  392. package/dist/role/types.js +1 -0
  393. package/dist/rules.js +1 -52
  394. package/dist/safety/confirm-gate.d.ts +1 -1
  395. package/dist/safety/confirm-gate.js +1 -88
  396. package/dist/safety/index.js +1 -3
  397. package/dist/safety/preview.js +1 -52
  398. package/dist/schema/call/allocation.d.ts +186 -1385
  399. package/dist/schema/call/allocation.js +1 -34
  400. package/dist/schema/call/arbitration.d.ts +272 -1871
  401. package/dist/schema/call/arbitration.js +1 -113
  402. package/dist/schema/call/base.d.ts +1831 -9076
  403. package/dist/schema/call/base.js +1 -370
  404. package/dist/schema/call/bridge.d.ts +911 -3171
  405. package/dist/schema/call/bridge.js +1 -458
  406. package/dist/schema/call/contact.d.ts +135 -931
  407. package/dist/schema/call/contact.js +1 -37
  408. package/dist/schema/call/demand.d.ts +164 -1194
  409. package/dist/schema/call/demand.js +1 -47
  410. package/dist/schema/call/guard.d.ts +298 -1140
  411. package/dist/schema/call/guard.js +1 -161
  412. package/dist/schema/call/handler.js +1 -322
  413. package/dist/schema/call/index.js +1 -20
  414. package/dist/schema/call/machine.d.ts +459 -5403
  415. package/dist/schema/call/machine.js +1 -193
  416. package/dist/schema/call/order.d.ts +137 -844
  417. package/dist/schema/call/order.js +1 -35
  418. package/dist/schema/call/payment.d.ts +74 -561
  419. package/dist/schema/call/payment.js +1 -37
  420. package/dist/schema/call/permission-handler.js +1 -54
  421. package/dist/schema/call/permission.d.ts +335 -2791
  422. package/dist/schema/call/permission.js +1 -105
  423. package/dist/schema/call/personal.d.ts +227 -1814
  424. package/dist/schema/call/personal.js +1 -78
  425. package/dist/schema/call/progress.d.ts +140 -843
  426. package/dist/schema/call/progress.js +1 -47
  427. package/dist/schema/call/proof.d.ts +42 -258
  428. package/dist/schema/call/proof.js +1 -33
  429. package/dist/schema/call/repository.d.ts +324 -2222
  430. package/dist/schema/call/repository.js +1 -77
  431. package/dist/schema/call/reward.d.ts +153 -1183
  432. package/dist/schema/call/reward.js +1 -30
  433. package/dist/schema/call/semantic.js +1 -1679
  434. package/dist/schema/call/service.d.ts +376 -3431
  435. package/dist/schema/call/service.js +1 -184
  436. package/dist/schema/call/treasury.d.ts +252 -2158
  437. package/dist/schema/call/treasury.js +1 -71
  438. package/dist/schema/common/index.d.ts +222 -697
  439. package/dist/schema/common/index.js +1 -407
  440. package/dist/schema/config/index.d.ts +18 -161
  441. package/dist/schema/config/index.js +1 -68
  442. package/dist/schema/employee/index.d.ts +99 -0
  443. package/dist/schema/employee/index.js +1 -0
  444. package/dist/schema/evaluation/index.d.ts +1062 -3748
  445. package/dist/schema/evaluation/index.js +1 -356
  446. package/dist/schema/index.d.ts +3 -0
  447. package/dist/schema/index.js +1 -17
  448. package/dist/schema/industry-pack/index.d.ts +132 -0
  449. package/dist/schema/industry-pack/index.js +1 -0
  450. package/dist/schema/intent-radar/index.d.ts +92 -245
  451. package/dist/schema/intent-radar/index.js +1 -89
  452. package/dist/schema/local/index.d.ts +2045 -18080
  453. package/dist/schema/local/index.js +1 -927
  454. package/dist/schema/local/wip.d.ts +61 -651
  455. package/dist/schema/local/wip.js +1 -187
  456. package/dist/schema/messenger/index.d.ts +949 -5557
  457. package/dist/schema/messenger/index.js +1 -475
  458. package/dist/schema/operations.d.ts +2969 -26518
  459. package/dist/schema/operations.js +1 -520
  460. package/dist/schema/persona/index.d.ts +469 -1820
  461. package/dist/schema/persona/index.js +1 -148
  462. package/dist/schema/project/index.d.ts +1027 -8408
  463. package/dist/schema/project/index.js +1 -2057
  464. package/dist/schema/query/index.d.ts +12041 -75261
  465. package/dist/schema/query/index.js +1 -1646
  466. package/dist/schema/schema-query/index.d.ts +35 -98
  467. package/dist/schema/schema-query/index.js +1 -104
  468. package/dist/schema/schema-version.js +1 -76
  469. package/dist/schema/task-status.d.ts +26 -132
  470. package/dist/schema/task-status.js +1 -36
  471. package/dist/schema/trust/index.d.ts +194 -1290
  472. package/dist/schema/trust/index.js +1 -314
  473. package/dist/schema/utils/guard-parser.js +1 -419
  474. package/dist/schema/utils/guard-query-utils.js +1 -46
  475. package/dist/schema/utils/node-parser.js +1 -369
  476. package/dist/schema/utils/object-type-utils.js +1 -35
  477. package/dist/schema/utils/permission-index-utils.js +1 -7
  478. package/dist/schema/utils/permission-machine-check.js +1 -121
  479. package/dist/schema/utils/skills-recommendation.d.ts +1 -0
  480. package/dist/schema/utils/skills-recommendation.js +1 -77
  481. package/dist/schema/workspace/index.d.ts +69 -0
  482. package/dist/schema/workspace/index.js +1 -0
  483. package/dist/schema-query-impl/index.js +1 -0
  484. package/dist/schemas/account_operation.output.json +3147 -1652
  485. package/dist/schemas/account_operation.schema.json +225 -218
  486. package/dist/schemas/bridge_operation.output.json +1168 -650
  487. package/dist/schemas/bridge_operation.schema.json +736 -504
  488. package/dist/schemas/config_operation.output.json +185 -179
  489. package/dist/schemas/config_operation.schema.json +21 -26
  490. package/dist/schemas/employee_operation.output.json +207 -0
  491. package/dist/schemas/employee_operation.schema.json +176 -0
  492. package/dist/schemas/evaluation_operation.output.json +2329 -557
  493. package/dist/schemas/evaluation_operation.schema.json +2939 -720
  494. package/dist/schemas/guard2file.output.json +58 -64
  495. package/dist/schemas/guard2file.schema.json +79 -81
  496. package/dist/schemas/index.json +29 -11
  497. package/dist/schemas/industry_pack_operation.output.json +594 -0
  498. package/dist/schemas/industry_pack_operation.schema.json +55 -0
  499. package/dist/schemas/intent_radar.output.json +275 -200
  500. package/dist/schemas/intent_radar.schema.json +124 -123
  501. package/dist/schemas/local_info_operation.output.json +1174 -657
  502. package/dist/schemas/local_info_operation.schema.json +119 -125
  503. package/dist/schemas/local_mark_operation.output.json +1239 -689
  504. package/dist/schemas/local_mark_operation.schema.json +91 -96
  505. package/dist/schemas/machineNode2file.output.json +63 -69
  506. package/dist/schemas/machineNode2file.schema.json +79 -81
  507. package/dist/schemas/messenger_operation.output.json +2722 -1528
  508. package/dist/schemas/messenger_operation.schema.json +1482 -1264
  509. package/dist/schemas/onchain_events.output.json +2590 -975
  510. package/dist/schemas/onchain_events.schema.json +117 -99
  511. package/dist/schemas/onchain_operations.output.json +3957 -2309
  512. package/dist/schemas/onchain_operations.schema.json +20799 -9285
  513. package/dist/schemas/onchain_operations_allocation.schema.json +172 -108
  514. package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
  515. package/dist/schemas/onchain_operations_contact.schema.json +129 -90
  516. package/dist/schemas/onchain_operations_demand.schema.json +170 -112
  517. package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
  518. package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
  519. package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
  520. package/dist/schemas/onchain_operations_machine.schema.json +537 -164
  521. package/dist/schemas/onchain_operations_order.schema.json +126 -96
  522. package/dist/schemas/onchain_operations_payment.schema.json +82 -67
  523. package/dist/schemas/onchain_operations_permission.schema.json +331 -93
  524. package/dist/schemas/onchain_operations_personal.schema.json +636 -96
  525. package/dist/schemas/onchain_operations_progress.schema.json +125 -92
  526. package/dist/schemas/onchain_operations_proof.schema.json +76 -69
  527. package/dist/schemas/onchain_operations_repository.schema.json +636 -249
  528. package/dist/schemas/onchain_operations_reward.schema.json +218 -108
  529. package/dist/schemas/onchain_operations_service.schema.json +679 -221
  530. package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
  531. package/dist/schemas/onchain_table_data.output.json +6018 -2430
  532. package/dist/schemas/onchain_table_data.schema.json +544 -430
  533. package/dist/schemas/persona_operation.output.json +1568 -265
  534. package/dist/schemas/persona_operation.schema.json +346 -202
  535. package/dist/schemas/project_operation.output.json +6957 -5147
  536. package/dist/schemas/project_operation.schema.json +1050 -1020
  537. package/dist/schemas/query_task_status.output.json +195 -99
  538. package/dist/schemas/query_task_status.schema.json +12 -18
  539. package/dist/schemas/query_toolkit.output.json +18870 -14566
  540. package/dist/schemas/query_toolkit.schema.json +614 -522
  541. package/dist/schemas/schema_query.output.json +127 -129
  542. package/dist/schemas/schema_query.schema.json +64 -69
  543. package/dist/schemas/trust_score.output.json +678 -587
  544. package/dist/schemas/trust_score.schema.json +289 -277
  545. package/dist/schemas/wip_file.output.json +116 -124
  546. package/dist/schemas/wip_file.schema.json +142 -143
  547. package/dist/schemas/workspace_operation.output.json +277 -0
  548. package/dist/schemas/workspace_operation.schema.json +45 -0
  549. package/dist/schemas/wowok_buildin_info.output.json +1693 -723
  550. package/dist/schemas/wowok_buildin_info.schema.json +576 -512
  551. package/dist/telemetry/index.js +1 -112
  552. package/dist/telemetry/redact.js +1 -23
  553. package/dist/telemetry/storage.js +1 -80
  554. package/dist/tools/handlers/bridge.d.ts +8 -1
  555. package/dist/tools/handlers/bridge.js +1 -1
  556. package/dist/tools/handlers/config.js +1 -74
  557. package/dist/tools/handlers/employee.d.ts +2 -0
  558. package/dist/tools/handlers/employee.js +1 -0
  559. package/dist/tools/handlers/evaluation.js +1 -123
  560. package/dist/tools/handlers/file-export.js +1 -90
  561. package/dist/tools/handlers/industry-pack.d.ts +2 -0
  562. package/dist/tools/handlers/industry-pack.js +1 -0
  563. package/dist/tools/handlers/intent-radar.js +1 -76
  564. package/dist/tools/handlers/local.js +1 -53
  565. package/dist/tools/handlers/messenger.js +1 -188
  566. package/dist/tools/handlers/onchain.js +1 -1180
  567. package/dist/tools/handlers/persona.js +1 -89
  568. package/dist/tools/handlers/project.js +1 -211
  569. package/dist/tools/handlers/query.js +1 -434
  570. package/dist/tools/handlers/schema-query.js +1 -176
  571. package/dist/tools/handlers/task-status.js +1 -26
  572. package/dist/tools/handlers/trust.js +1 -380
  573. package/dist/tools/handlers/wip.js +1 -90
  574. package/dist/tools/handlers/workspace.d.ts +2 -0
  575. package/dist/tools/handlers/workspace.js +1 -0
  576. package/dist/tools/index.d.ts +2 -1
  577. package/dist/tools/index.js +1 -1382
  578. package/dist/tools/retry.js +1 -85
  579. package/dist/tools/rules-hook.d.ts +1 -1
  580. package/dist/tools/rules-hook.js +1 -23
  581. package/dist/tools/shared.d.ts +1 -1
  582. package/dist/tools/shared.js +1 -130
  583. package/dist/tools/types.d.ts +2 -1
  584. package/dist/tools/types.js +1 -1
  585. package/dist/tools/upgrade-check.d.ts +19 -0
  586. package/dist/tools/upgrade-check.js +1 -0
  587. package/dist/tools/wip-deploy-assist.js +1 -306
  588. package/dist/tools/wrap.js +1 -500
  589. package/package.json +7 -6
  590. package/dist/knowledge/arbitration-trust.d.ts +0 -24
  591. package/dist/knowledge/arbitration-trust.js +0 -117
  592. package/dist/schema/call/bridge-handler.d.ts +0 -8
  593. package/dist/schema/call/bridge-handler.js +0 -265
  594. package/dist/schema/sync-layer4.d.ts +0 -21
  595. package/dist/schema/sync-layer4.js +0 -286
  596. package/dist/schema-query/index.js +0 -810
  597. /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
@@ -1,266 +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
- "user",
35
- "arbitrator"
36
- ]
1187
+ "rules": {
1188
+ "type": "array",
1189
+ "items": {
1190
+ "type": "string"
1191
+ }
37
1192
  },
38
- "industries": {
1193
+ "requirements": {
39
1194
  "type": "array",
40
1195
  "items": {
41
- "type": "string",
42
- "enum": [
43
- "freelance",
44
- "rental",
45
- "education",
46
- "travel",
47
- "subscription",
48
- "retail"
49
- ]
1196
+ "type": "string"
50
1197
  }
51
1198
  },
52
- "layer": {
1199
+ "spec": {
1200
+ "type": "string"
1201
+ }
1202
+ },
1203
+ "additionalProperties": false
1204
+ },
1205
+ "current": {
1206
+ "type": "object",
1207
+ "properties": {
1208
+ "identity": {
53
1209
  "type": "object",
54
1210
  "properties": {
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
- "additionalProperties": {}
76
- },
77
- "strategy": {
78
- "type": "array",
79
- "items": {
80
- "type": "string"
81
- }
82
- },
83
- "rules": {
84
- "type": "array",
85
- "items": {
86
- "type": "string"
87
- }
1211
+ "region": {
1212
+ "type": "string"
88
1213
  },
89
- "requirements": {
1214
+ "languages": {
90
1215
  "type": "array",
91
1216
  "items": {
92
1217
  "type": "string"
93
1218
  }
94
1219
  },
95
- "spec": {
1220
+ "self_description": {
96
1221
  "type": "string"
97
1222
  }
98
1223
  },
99
1224
  "additionalProperties": false
100
1225
  },
101
- "sources": {
1226
+ "preferences": {
1227
+ "type": "object",
1228
+ "propertyNames": {
1229
+ "type": "string"
1230
+ },
1231
+ "additionalProperties": {}
1232
+ },
1233
+ "strategy": {
102
1234
  "type": "array",
103
1235
  "items": {
104
- "type": "object",
105
- "properties": {
106
- "scope": {
107
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/scope"
108
- },
109
- "account": {
110
- "type": "string"
111
- },
112
- "part": {
113
- "type": "string",
114
- "enum": [
115
- "long_term",
116
- "current"
117
- ]
118
- }
119
- },
120
- "required": [
121
- "scope",
122
- "part"
123
- ],
124
- "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"
125
1249
  }
1250
+ },
1251
+ "spec": {
1252
+ "type": "string"
126
1253
  }
127
1254
  },
128
- "required": [
129
- "scope",
130
- "role",
131
- "industries",
132
- "layer",
133
- "sources"
134
- ],
135
1255
  "additionalProperties": false
136
1256
  },
137
- "context_text": {
138
- "type": "string"
139
- },
140
- "injection": {
141
- "type": "object",
142
- "additionalProperties": {}
1257
+ "updated_at": {
1258
+ "type": "number"
143
1259
  }
144
1260
  },
145
1261
  "required": [
146
- "action",
147
- "effective",
148
- "context_text",
149
- "injection"
1262
+ "version",
1263
+ "scope",
1264
+ "role",
1265
+ "industries",
1266
+ "long_term",
1267
+ "current",
1268
+ "updated_at"
150
1269
  ],
151
1270
  "additionalProperties": false
152
1271
  },
153
- {
1272
+ "applied": {
154
1273
  "type": "object",
155
1274
  "properties": {
156
- "action": {
157
- "type": "string",
158
- "const": "list"
159
- },
160
- "personas": {
161
- "type": "array",
162
- "items": {
163
- "type": "object",
164
- "properties": {
165
- "version": {
166
- "type": "number"
167
- },
168
- "scope": {
169
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/scope"
170
- },
171
- "account": {
1275
+ "identity": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "region": {
1279
+ "type": "string"
1280
+ },
1281
+ "languages": {
1282
+ "type": "array",
1283
+ "items": {
172
1284
  "type": "string"
173
- },
174
- "role": {
175
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/role"
176
- },
177
- "industries": {
178
- "type": "array",
179
- "items": {
180
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/industries/items"
181
- }
182
- },
183
- "long_term": {
184
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
185
- },
186
- "current": {
187
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
188
- },
189
- "updated_at": {
190
- "type": "number"
191
1285
  }
192
1286
  },
193
- "required": [
194
- "version",
195
- "scope",
196
- "role",
197
- "industries",
198
- "long_term",
199
- "current",
200
- "updated_at"
201
- ],
202
- "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"
203
1310
  }
204
1311
  },
205
- "defaults": {
1312
+ "requirements": {
206
1313
  "type": "array",
207
1314
  "items": {
208
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
1315
+ "type": "string"
209
1316
  }
1317
+ },
1318
+ "spec": {
1319
+ "type": "string"
210
1320
  }
211
1321
  },
212
- "required": [
213
- "action",
214
- "personas",
215
- "defaults"
216
- ],
217
1322
  "additionalProperties": false
218
1323
  },
219
- {
1324
+ "effective": {
220
1325
  "type": "object",
221
1326
  "properties": {
222
- "action": {
1327
+ "scope": {
223
1328
  "type": "string",
224
- "const": "set"
1329
+ "enum": [
1330
+ "system",
1331
+ "account"
1332
+ ]
225
1333
  },
226
- "persona": {
227
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
1334
+ "account": {
1335
+ "type": "string"
228
1336
  },
229
- "line_count": {
230
- "type": "number"
231
- }
232
- },
233
- "required": [
234
- "action",
235
- "persona",
236
- "line_count"
237
- ],
238
- "additionalProperties": false
239
- },
240
- {
241
- "type": "object",
242
- "properties": {
243
- "action": {
1337
+ "role": {
244
1338
  "type": "string",
245
- "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
+ }
246
1361
  },
247
- "analysis": {
1362
+ "layer": {
248
1363
  "type": "object",
249
1364
  "properties": {
250
- "role": {
251
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/role"
252
- },
253
- "industries": {
254
- "type": "array",
255
- "items": {
256
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/industries/items"
257
- }
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
258
1382
  },
259
1383
  "preferences": {
260
1384
  "type": "object",
1385
+ "propertyNames": {
1386
+ "type": "string"
1387
+ },
261
1388
  "additionalProperties": {}
262
1389
  },
263
- "requirements": {
1390
+ "strategy": {
264
1391
  "type": "array",
265
1392
  "items": {
266
1393
  "type": "string"
@@ -272,118 +1399,294 @@
272
1399
  "type": "string"
273
1400
  }
274
1401
  },
275
- "suggestions": {
1402
+ "requirements": {
276
1403
  "type": "array",
277
1404
  "items": {
278
- "type": "object",
279
- "properties": {
280
- "field": {
281
- "type": "string"
282
- },
283
- "value": {},
284
- "reason": {
285
- "type": "string"
286
- }
287
- },
288
- "required": [
289
- "field",
290
- "reason"
291
- ],
292
- "additionalProperties": false
1405
+ "type": "string"
293
1406
  }
294
1407
  },
295
- "confidence": {
296
- "type": "number"
1408
+ "spec": {
1409
+ "type": "string"
297
1410
  }
298
1411
  },
299
- "required": [
300
- "industries",
301
- "preferences",
302
- "requirements",
303
- "rules",
304
- "suggestions",
305
- "confidence"
306
- ],
307
1412
  "additionalProperties": false
308
- }
309
- },
310
- "required": [
311
- "action",
312
- "analysis"
313
- ],
314
- "additionalProperties": false
315
- },
316
- {
317
- "type": "object",
318
- "properties": {
319
- "action": {
320
- "type": "string",
321
- "const": "apply"
322
- },
323
- "persona": {
324
- "$ref": "#/definitions/persona_operation/anyOf/1/properties/personas/items"
325
1413
  },
326
- "effective": {
327
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective"
328
- },
329
- "applied": {
1414
+ "sources": {
330
1415
  "type": "array",
331
1416
  "items": {
332
- "$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
333
1442
  }
334
1443
  }
335
1444
  },
336
1445
  "required": [
337
- "action",
338
- "persona",
339
- "effective",
340
- "applied"
1446
+ "scope",
1447
+ "role",
1448
+ "industries",
1449
+ "layer",
1450
+ "sources"
341
1451
  ],
342
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
+ }
343
1581
  },
344
- {
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.",
345
1605
  "type": "object",
346
1606
  "properties": {
347
- "action": {
348
- "type": "string",
349
- "const": "sync"
350
- },
351
- "persona": {
352
- "$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)."
353
1614
  },
354
- "applied": {
355
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective/properties/layer"
1615
+ "source": {
1616
+ "type": "string",
1617
+ "const": "local_info"
356
1618
  },
357
- "effective": {
358
- "$ref": "#/definitions/persona_operation/anyOf/0/properties/effective"
1619
+ "raw": {
1620
+ "type": "string"
359
1621
  }
360
1622
  },
361
1623
  "required": [
362
- "action",
363
- "persona",
364
- "applied",
365
- "effective"
1624
+ "region",
1625
+ "source",
1626
+ "raw"
366
1627
  ],
367
1628
  "additionalProperties": false
368
1629
  },
369
- {
1630
+ "proposal": {
1631
+ "description": "Present when `propose` was given — a consent-gated save proposal (never auto-written).",
370
1632
  "type": "object",
371
1633
  "properties": {
372
- "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": {
373
1652
  "type": "string",
374
- "const": "remove"
1653
+ "const": "local_info_operation"
375
1654
  },
376
- "removed": {
377
- "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
378
1670
  }
379
1671
  },
380
1672
  "required": [
381
- "action",
382
- "removed"
1673
+ "requires_user_consent",
1674
+ "raw",
1675
+ "region",
1676
+ "review",
1677
+ "store_via",
1678
+ "info"
383
1679
  ],
384
1680
  "additionalProperties": false
1681
+ },
1682
+ "note": {
1683
+ "type": "string"
385
1684
  }
386
- ]
1685
+ },
1686
+ "required": [
1687
+ "action"
1688
+ ],
1689
+ "additionalProperties": false
387
1690
  }
388
- }
1691
+ ]
389
1692
  }