@wowok/agent-mcp 3.4.3 → 3.4.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 (853) hide show
  1. package/dist/.build-stamp.json +3 -3
  2. package/dist/build-stamp.js +1 -0
  3. package/dist/chain-semantics/composition-truth.js +1 -1
  4. package/dist/chain-semantics/eval-order.js +1 -1
  5. package/dist/chain-semantics/freeze-map.js +1 -1
  6. package/dist/chain-semantics/fund-flow.js +1 -1
  7. package/dist/chain-semantics/object-graph.js +1 -1
  8. package/dist/composition/audit.js +1 -1
  9. package/dist/composition/compile.js +1 -1
  10. package/dist/composition/emit-phases.js +1 -1
  11. package/dist/composition/generate.js +1 -1
  12. package/dist/composition/guard-fill.js +1 -1
  13. package/dist/composition/input-normalize.js +1 -1
  14. package/dist/composition/materialize.js +1 -1
  15. package/dist/composition/mode-gates.js +1 -1
  16. package/dist/composition/plan.js +1 -1
  17. package/dist/composition/product-card.js +1 -1
  18. package/dist/composition/shape-expand.js +1 -0
  19. package/dist/config/judgment.js +1 -1
  20. package/dist/config/template-params.js +1 -1
  21. package/dist/data/sync/cdc.js +1 -1
  22. package/dist/data/sync/graphql-source.js +1 -1
  23. package/dist/evaluation/engine.js +1 -1
  24. package/dist/experience/realtime-feedback.js +1 -1
  25. package/dist/graph/onchain/expand.js +1 -1
  26. package/dist/graph/onchain/exposure.js +1 -1
  27. package/dist/graph/onchain/sdk-batch.js +1 -1
  28. package/dist/harness/entry-ignite-selfheal.js +1 -0
  29. package/dist/harness/forward-leg-preflight.js +1 -0
  30. package/dist/harness/recover.js +1 -1
  31. package/dist/keeper/detectors.js +1 -1
  32. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  33. package/dist/knowledge/arb-operation-face.js +1 -0
  34. package/dist/knowledge/arbitration-rail-verifier.js +1 -1
  35. package/dist/knowledge/arbitration-templates.js +1 -1
  36. package/dist/knowledge/audit-rules.d.ts +15 -0
  37. package/dist/knowledge/audit-rules.js +1 -1
  38. package/dist/knowledge/baselines/rules/alloc_audit.json.good +310 -0
  39. package/dist/knowledge/baselines/rules/allocation.json.good +568 -0
  40. package/dist/knowledge/baselines/rules/arb.json.good +174 -0
  41. package/dist/knowledge/baselines/rules/arbitration.json.good +393 -0
  42. package/dist/knowledge/baselines/rules/bridge.json.good +197 -0
  43. package/dist/knowledge/baselines/rules/contact.json.good +152 -0
  44. package/dist/knowledge/baselines/rules/demand.json.good +158 -0
  45. package/dist/knowledge/baselines/rules/graph.json.good +534 -0
  46. package/dist/knowledge/baselines/rules/guard.json +18 -5
  47. package/dist/knowledge/baselines/rules/guard.json.good +1192 -0
  48. package/dist/knowledge/baselines/rules/machine.json.good +734 -0
  49. package/dist/knowledge/baselines/rules/oracle.json +1 -1
  50. package/dist/knowledge/baselines/rules/oracle.json.good +120 -0
  51. package/dist/knowledge/baselines/rules/order.json.good +549 -0
  52. package/dist/knowledge/baselines/rules/payment.json.good +205 -0
  53. package/dist/knowledge/baselines/rules/permission.json.good +330 -0
  54. package/dist/knowledge/baselines/rules/personal.json.good +139 -0
  55. package/dist/knowledge/baselines/rules/plan.json +343 -1
  56. package/dist/knowledge/baselines/rules/plan.json.good +1187 -0
  57. package/dist/knowledge/baselines/rules/progress.json.good +364 -0
  58. package/dist/knowledge/baselines/rules/proof.json.good +158 -0
  59. package/dist/knowledge/baselines/rules/registrar.json.good +159 -0
  60. package/dist/knowledge/baselines/rules/repository.json.good +244 -0
  61. package/dist/knowledge/baselines/rules/resource.json.good +117 -0
  62. package/dist/knowledge/baselines/rules/reward.json +10 -10
  63. package/dist/knowledge/baselines/rules/reward.json.good +586 -0
  64. package/dist/knowledge/baselines/rules/service.json.good +595 -0
  65. package/dist/knowledge/baselines/rules/treasury.json.good +440 -0
  66. package/dist/knowledge/baselines/rules/util.json.good +101 -0
  67. package/dist/knowledge/builtin-templates.d.ts +13 -1
  68. package/dist/knowledge/builtin-templates.js +1 -1
  69. package/dist/knowledge/chain-query-registry.js +1 -1
  70. package/dist/knowledge/discount-threshold.js +1 -1
  71. package/dist/knowledge/fee-param-bindings.js +1 -1
  72. package/dist/knowledge/fund-layer.d.ts +2 -0
  73. package/dist/knowledge/fund-layer.js +1 -1
  74. package/dist/knowledge/getting-started.js +1 -1
  75. package/dist/knowledge/guard-binding-table.js +1 -1
  76. package/dist/knowledge/guard-binding-verifier.js +1 -1
  77. package/dist/knowledge/guard-create-preflight.js +1 -0
  78. package/dist/knowledge/guard-field-cognition.js +1 -1
  79. package/dist/knowledge/guard-host-context.js +1 -1
  80. package/dist/knowledge/guard-leg-eval.js +1 -0
  81. package/dist/knowledge/guard-node-gates.js +1 -1
  82. package/dist/knowledge/guard-puzzle.js +1 -1
  83. package/dist/knowledge/guard-quality.js +1 -0
  84. package/dist/knowledge/guard-render.js +1 -1
  85. package/dist/knowledge/guard-risk.js +1 -1
  86. package/dist/knowledge/guard-semantic-walk.js +1 -0
  87. package/dist/knowledge/guard-templates.d.ts +1 -0
  88. package/dist/knowledge/guard-templates.js +1 -1
  89. package/dist/knowledge/guard-translation.js +1 -1
  90. package/dist/knowledge/index.js +1 -1
  91. package/dist/knowledge/industry-registry.js +1 -1
  92. package/dist/knowledge/jsonrpc-enum.js +1 -1
  93. package/dist/knowledge/param-schema.js +1 -1
  94. package/dist/knowledge/param-tiers.js +1 -1
  95. package/dist/knowledge/path-oracle/coverage.js +1 -1
  96. package/dist/knowledge/path-oracle/index.js +1 -1
  97. package/dist/knowledge/path-oracle/products/airbnb.js +1 -0
  98. package/dist/knowledge/path-oracle/products/algora.js +1 -0
  99. package/dist/knowledge/path-oracle/products/alibaba-1688.js +1 -0
  100. package/dist/knowledge/path-oracle/products/amazon.js +1 -0
  101. package/dist/knowledge/path-oracle/products/beatstars.js +1 -0
  102. package/dist/knowledge/path-oracle/products/booking-com.js +1 -0
  103. package/dist/knowledge/path-oracle/products/contra.js +1 -0
  104. package/dist/knowledge/path-oracle/products/costco.js +1 -0
  105. package/dist/knowledge/path-oracle/products/coursera.js +1 -0
  106. package/dist/knowledge/path-oracle/products/duoduo-maicai.js +1 -0
  107. package/dist/knowledge/path-oracle/products/etsy.js +1 -0
  108. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
  109. package/dist/knowledge/path-oracle/products/gamefound.js +1 -0
  110. package/dist/knowledge/path-oracle/products/gofundme.js +1 -0
  111. package/dist/knowledge/path-oracle/products/hackerone.js +1 -0
  112. package/dist/knowledge/path-oracle/products/kickstarter.js +1 -0
  113. package/dist/knowledge/path-oracle/products/klook.js +1 -0
  114. package/dist/knowledge/path-oracle/products/ninety-nine-designs.js +1 -0
  115. package/dist/knowledge/path-oracle/products/onlyfans.js +1 -0
  116. package/dist/knowledge/path-oracle/products/patreon.js +1 -0
  117. package/dist/knowledge/path-oracle/products/pinduoduo-kuaituantuan.js +1 -0
  118. package/dist/knowledge/path-oracle/products/royalty-exchange.js +1 -0
  119. package/dist/knowledge/path-oracle/products/shansong.js +1 -0
  120. package/dist/knowledge/path-oracle/products/taobao-presale.js +1 -0
  121. package/dist/knowledge/path-oracle/products/upwork-catalog.js +1 -0
  122. package/dist/knowledge/path-oracle/products/upwork.js +1 -0
  123. package/dist/knowledge/path-oracle/products/yuanfudao.js +1 -0
  124. package/dist/knowledge/path-oracle/products/ziroom.js +1 -0
  125. package/dist/knowledge/pattern-resolutions.js +1 -1
  126. package/dist/knowledge/product-detail-source.js +1 -1
  127. package/dist/knowledge/product-doc-b5.js +1 -1
  128. package/dist/knowledge/product-doc-facets.js +1 -0
  129. package/dist/knowledge/projection.js +1 -1
  130. package/dist/knowledge/publish-gate.js +1 -1
  131. package/dist/knowledge/publish-surface-contract.js +1 -1
  132. package/dist/knowledge/recipient-constraint.d.ts +20 -0
  133. package/dist/knowledge/recipient-constraint.js +1 -1
  134. package/dist/knowledge/rule-declaration-types.d.ts +13 -0
  135. package/dist/knowledge/rule-declaration-types.js +1 -0
  136. package/dist/knowledge/rule-declarations.js +1 -0
  137. package/dist/knowledge/scenario-modes.d.ts +6 -0
  138. package/dist/knowledge/scenario-topology.js +1 -1
  139. package/dist/knowledge/template-loader.js +1 -1
  140. package/dist/knowledge/template-prose.js +1 -1
  141. package/dist/knowledge/template-registry.js +1 -1
  142. package/dist/knowledge/template-scanner.js +1 -1
  143. package/dist/knowledge/tools-reference.js +1 -1
  144. package/dist/monitor/MonitorLoop.js +1 -1
  145. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  146. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  147. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  148. package/dist/playbooks/service-build/object-panorama.js +1 -1
  149. package/dist/playbooks/service-build/participation-radar.js +1 -1
  150. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  151. package/dist/playbooks/service-build/service-panorama.js +1 -1
  152. package/dist/playbooks/service-build/service-quote.js +1 -1
  153. package/dist/review/index.js +1 -1
  154. package/dist/review/service.js +1 -1
  155. package/dist/safety/confirm-gate.js +1 -1
  156. package/dist/schema/benchmark-migration/index.d.ts +9 -0
  157. package/dist/schema/benchmark-migration/index.js +1 -1
  158. package/dist/schema/call/arbitration.d.ts +8 -0
  159. package/dist/schema/call/arbitration.js +1 -1
  160. package/dist/schema/call/base.d.ts +8 -0
  161. package/dist/schema/call/base.js +1 -1
  162. package/dist/schema/call/bridge.d.ts +2 -0
  163. package/dist/schema/call/error-codes.d.ts +1 -1
  164. package/dist/schema/call/error-codes.js +1 -1
  165. package/dist/schema/call/handler.d.ts +2 -1
  166. package/dist/schema/call/handler.js +1 -1
  167. package/dist/schema/call/order.d.ts +10 -0
  168. package/dist/schema/call/permission-handler.js +1 -1
  169. package/dist/schema/call/permission.js +1 -1
  170. package/dist/schema/call/progress.d.ts +15 -0
  171. package/dist/schema/call/progress.js +1 -1
  172. package/dist/schema/call/receipt.d.ts +1 -0
  173. package/dist/schema/call/receipt.js +1 -1
  174. package/dist/schema/call/repository.d.ts +12 -0
  175. package/dist/schema/call/repository.js +1 -1
  176. package/dist/schema/call/reward.js +1 -1
  177. package/dist/schema/call/semantic.d.ts +1 -0
  178. package/dist/schema/call/semantic.js +1 -1
  179. package/dist/schema/call/service.d.ts +5 -3
  180. package/dist/schema/call/service.js +1 -1
  181. package/dist/schema/common/index.js +1 -1
  182. package/dist/schema/envelope-unify.js +1 -1
  183. package/dist/schema/goal/index.d.ts +23 -0
  184. package/dist/schema/goal/planning.js +1 -1
  185. package/dist/schema/industry-pack/index.d.ts +2 -2
  186. package/dist/schema/local/index.d.ts +20 -0
  187. package/dist/schema/local/index.js +1 -1
  188. package/dist/schema/local/wip.d.ts +4 -0
  189. package/dist/schema/local/wip.js +1 -1
  190. package/dist/schema/messenger/index.d.ts +5 -0
  191. package/dist/schema/messenger/index.js +1 -1
  192. package/dist/schema/operations.d.ts +944 -1
  193. package/dist/schema/operations.js +1 -1
  194. package/dist/schema/query/bi.js +1 -1
  195. package/dist/schema/query/index.d.ts +5 -5
  196. package/dist/schema/query/index.js +1 -1
  197. package/dist/schema/schema-version.js +1 -1
  198. package/dist/schema/workspace/index.d.ts +2 -2
  199. package/dist/schema-query-impl/index.js +1 -1
  200. package/dist/schemas/account_operation.schema.json +1 -257
  201. package/dist/schemas/ask_user.schema.json +1 -78
  202. package/dist/schemas/benchmark_migration_operation.schema.json +1 -626
  203. package/dist/schemas/bridge_operation.schema.json +1 -1069
  204. package/dist/schemas/config_operation.schema.json +1 -82
  205. package/dist/schemas/employee_operation.schema.json +1 -319
  206. package/dist/schemas/evaluation_operation.schema.json +1 -3932
  207. package/dist/schemas/goal_operation.schema.json +1 -1650
  208. package/dist/schemas/guard2file.schema.json +1 -137
  209. package/dist/schemas/index.json +1 -285
  210. package/dist/schemas/industry_pack_operation.schema.json +1 -582
  211. package/dist/schemas/intent_radar.schema.json +1 -155
  212. package/dist/schemas/keeper_operation.schema.json +1 -364
  213. package/dist/schemas/local_cache_operation.schema.json +1 -116
  214. package/dist/schemas/local_history_operation.schema.json +1 -105
  215. package/dist/schemas/local_info_operation.schema.json +1 -140
  216. package/dist/schemas/local_mark_operation.schema.json +1 -124
  217. package/dist/schemas/machineNode2file.schema.json +1 -137
  218. package/dist/schemas/messenger_operation.schema.json +1 -2068
  219. package/dist/schemas/monitor_events.schema.json +1 -87
  220. package/dist/schemas/monitor_subscription.schema.json +1 -327
  221. package/dist/schemas/onchain_events.schema.json +1 -207
  222. package/dist/schemas/onchain_operations.schema.json +1 -28699
  223. package/dist/schemas/onchain_operations_allocation.schema.json +1 -1376
  224. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1355
  225. package/dist/schemas/onchain_operations_contact.schema.json +1 -988
  226. package/dist/schemas/onchain_operations_demand.schema.json +1 -1146
  227. package/dist/schemas/onchain_operations_gen_passport.schema.json +1 -663
  228. package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -180
  229. package/dist/schemas/onchain_operations_guard.schema.json +1 -8518
  230. package/dist/schemas/onchain_operations_machine.schema.json +1 -1879
  231. package/dist/schemas/onchain_operations_order.schema.json +1 -1121
  232. package/dist/schemas/onchain_operations_payment.schema.json +1 -316
  233. package/dist/schemas/onchain_operations_permission.schema.json +1 -1036
  234. package/dist/schemas/onchain_operations_personal.schema.json +1 -1463
  235. package/dist/schemas/onchain_operations_progress.schema.json +1 -1041
  236. package/dist/schemas/onchain_operations_proof.schema.json +1 -750
  237. package/dist/schemas/onchain_operations_repository.schema.json +1 -2046
  238. package/dist/schemas/onchain_operations_reward.schema.json +1 -1286
  239. package/dist/schemas/onchain_operations_service.schema.json +1 -2602
  240. package/dist/schemas/onchain_operations_treasury.schema.json +1 -1527
  241. package/dist/schemas/onchain_table_data.schema.json +1 -1146
  242. package/dist/schemas/permission_operation.schema.json +1 -43
  243. package/dist/schemas/persona_operation.schema.json +1 -10424
  244. package/dist/schemas/query_toolkit.schema.json +1 -1867
  245. package/dist/schemas/schema_query.schema.json +1 -116
  246. package/dist/schemas/service_clone_operation.schema.json +1 -49
  247. package/dist/schemas/settle_sweep.schema.json +1 -0
  248. package/dist/schemas/strategy_review_operation.schema.json +1 -66
  249. package/dist/schemas/verify_guard_dry_run.schema.json +1 -0
  250. package/dist/schemas/watch_operation.schema.json +1 -145
  251. package/dist/schemas/wip_file.schema.json +1 -299
  252. package/dist/schemas/workflow_operation.schema.json +1 -722
  253. package/dist/schemas/workspace_operation.schema.json +1 -104
  254. package/dist/schemas/wowok_buildin_info.schema.json +1 -758
  255. package/dist/tools/handlers/benchmark-migration.js +1 -1
  256. package/dist/tools/handlers/config.js +1 -1
  257. package/dist/tools/handlers/entry-edge-recipe.js +1 -1
  258. package/dist/tools/handlers/file-export.js +1 -1
  259. package/dist/tools/handlers/local.js +1 -1
  260. package/dist/tools/handlers/messenger.js +1 -1
  261. package/dist/tools/handlers/onchain.js +1 -1
  262. package/dist/tools/handlers/pending-settlement-recipe.js +1 -0
  263. package/dist/tools/handlers/plan-recovery.js +1 -0
  264. package/dist/tools/handlers/query.js +1 -1
  265. package/dist/tools/handlers/repository-row-id.js +1 -0
  266. package/dist/tools/handlers/review-chain.js +1 -1
  267. package/dist/tools/handlers/settle-sweep.js +1 -0
  268. package/dist/tools/handlers/stale-build-check.js +1 -1
  269. package/dist/tools/handlers/submission-assembly.js +1 -1
  270. package/dist/tools/handlers/verify-guard-dry-run.js +1 -0
  271. package/dist/tools/handlers/wip-upload.js +1 -1
  272. package/dist/tools/index.d.ts +3 -1
  273. package/dist/tools/index.js +1 -1
  274. package/dist/tools/move-fn-index.gen.js +1 -1
  275. package/dist/tools/publish-gate-state.js +1 -1
  276. package/dist/tools/registry/business.js +1 -1
  277. package/dist/tools/registry/onchain.js +1 -1
  278. package/dist/tools/shared.js +1 -1
  279. package/dist/tools/types.d.ts +1 -1
  280. package/dist/tools/wrap.js +1 -1
  281. package/package.json +11 -4
  282. package/dist/chain-semantics/composition-truth.d.ts +0 -102
  283. package/dist/chain-semantics/eval-order.d.ts +0 -17
  284. package/dist/chain-semantics/field-capability.d.ts +0 -11
  285. package/dist/chain-semantics/freeze-map.d.ts +0 -11
  286. package/dist/chain-semantics/fund-flow.d.ts +0 -10
  287. package/dist/chain-semantics/guard-verbs.d.ts +0 -22
  288. package/dist/chain-semantics/index.d.ts +0 -12
  289. package/dist/chain-semantics/object-graph.d.ts +0 -18
  290. package/dist/communication/evidence.d.ts +0 -6
  291. package/dist/communication/message-cursors.d.ts +0 -35
  292. package/dist/communication/proof-reuse.d.ts +0 -9
  293. package/dist/communication/wts-attestation.d.ts +0 -39
  294. package/dist/composition/audit.d.ts +0 -15
  295. package/dist/composition/blueprint-view.d.ts +0 -63
  296. package/dist/composition/compile.d.ts +0 -83
  297. package/dist/composition/emit-phases.d.ts +0 -234
  298. package/dist/composition/generate.d.ts +0 -40
  299. package/dist/composition/guard-fill.d.ts +0 -52
  300. package/dist/composition/inflight.d.ts +0 -86
  301. package/dist/composition/input-normalize.d.ts +0 -15
  302. package/dist/composition/materialize.d.ts +0 -78
  303. package/dist/composition/mode-gates.d.ts +0 -35
  304. package/dist/composition/param-disclosure.d.ts +0 -61
  305. package/dist/composition/plan-retry-ledger.d.ts +0 -37
  306. package/dist/composition/plan.d.ts +0 -121
  307. package/dist/composition/product-card.d.ts +0 -94
  308. package/dist/composition/reflux.d.ts +0 -28
  309. package/dist/composition/supply-chain-emit.d.ts +0 -46
  310. package/dist/config/config-audit.spec.d.ts +0 -1
  311. package/dist/config/config-audit.spec.js +0 -1
  312. package/dist/config/config-warnings.d.ts +0 -2
  313. package/dist/config/index.d.ts +0 -4
  314. package/dist/config/judgment.spec.d.ts +0 -1
  315. package/dist/config/judgment.spec.js +0 -1
  316. package/dist/config/match-policy-file.d.ts +0 -34
  317. package/dist/config/match-policy-file.spec.d.ts +0 -1
  318. package/dist/config/match-policy-file.spec.js +0 -1
  319. package/dist/config/rule-engine.spec.d.ts +0 -1
  320. package/dist/config/rule-engine.spec.js +0 -1
  321. package/dist/config/runtime.d.ts +0 -29
  322. package/dist/config/store-policy.d.ts +0 -14
  323. package/dist/config/store-policy.spec.d.ts +0 -1
  324. package/dist/config/store-policy.spec.js +0 -1
  325. package/dist/config/template-params.d.ts +0 -42
  326. package/dist/config/template-params.spec.d.ts +0 -1
  327. package/dist/config/template-params.spec.js +0 -1
  328. package/dist/customer/account-events.d.ts +0 -32
  329. package/dist/data/api/api.spec.d.ts +0 -1
  330. package/dist/data/api/api.spec.js +0 -1
  331. package/dist/data/api/cli.d.ts +0 -1
  332. package/dist/data/api/head.d.ts +0 -16
  333. package/dist/data/api/head.spec.d.ts +0 -1
  334. package/dist/data/api/head.spec.js +0 -1
  335. package/dist/data/api/index.d.ts +0 -2
  336. package/dist/data/api/match.d.ts +0 -69
  337. package/dist/data/api/match.spec.d.ts +0 -1
  338. package/dist/data/api/match.spec.js +0 -1
  339. package/dist/data/api/server.d.ts +0 -13
  340. package/dist/data/projection/cli.d.ts +0 -1
  341. package/dist/data/projection/edges.d.ts +0 -8
  342. package/dist/data/projection/edges.spec.d.ts +0 -1
  343. package/dist/data/projection/edges.spec.js +0 -1
  344. package/dist/data/projection/facets.d.ts +0 -18
  345. package/dist/data/projection/facets.spec.d.ts +0 -1
  346. package/dist/data/projection/facets.spec.js +0 -1
  347. package/dist/data/projection/facts.d.ts +0 -40
  348. package/dist/data/projection/index.d.ts +0 -6
  349. package/dist/data/projection/project.d.ts +0 -10
  350. package/dist/data/projection/projection.spec.d.ts +0 -1
  351. package/dist/data/projection/projection.spec.js +0 -1
  352. package/dist/data/projection/schema.d.ts +0 -1
  353. package/dist/data/projection/store.d.ts +0 -51
  354. package/dist/data/projection/types.d.ts +0 -169
  355. package/dist/data/sync/cdc.d.ts +0 -33
  356. package/dist/data/sync/cdc.spec.d.ts +0 -1
  357. package/dist/data/sync/cdc.spec.js +0 -1
  358. package/dist/data/sync/graphql-source.d.ts +0 -16
  359. package/dist/data/sync/index.d.ts +0 -5
  360. package/dist/data/sync/reconciler.d.ts +0 -14
  361. package/dist/data/sync/reconciler.spec.d.ts +0 -1
  362. package/dist/data/sync/reconciler.spec.js +0 -1
  363. package/dist/data/sync/schema.d.ts +0 -1
  364. package/dist/data/sync/store.d.ts +0 -24
  365. package/dist/data/sync/sync.spec.d.ts +0 -1
  366. package/dist/data/sync/sync.spec.js +0 -1
  367. package/dist/data/sync/synchronizer.d.ts +0 -10
  368. package/dist/data/sync/types.d.ts +0 -164
  369. package/dist/evaluation/acceptance.d.ts +0 -33
  370. package/dist/evaluation/architecture.spec.d.ts +0 -1
  371. package/dist/evaluation/architecture.spec.js +0 -1
  372. package/dist/evaluation/builtins/arbitration-score.d.ts +0 -42
  373. package/dist/evaluation/builtins/demand-match.d.ts +0 -16
  374. package/dist/evaluation/builtins/graph-service.spec.d.ts +0 -1
  375. package/dist/evaluation/builtins/graph-service.spec.js +0 -1
  376. package/dist/evaluation/builtins/index.d.ts +0 -4
  377. package/dist/evaluation/builtins/purity.spec.d.ts +0 -1
  378. package/dist/evaluation/builtins/purity.spec.js +0 -1
  379. package/dist/evaluation/composer.d.ts +0 -38
  380. package/dist/evaluation/facets/catalog.d.ts +0 -19
  381. package/dist/evaluation/gap.d.ts +0 -2
  382. package/dist/evaluation/guard-scan.d.ts +0 -10
  383. package/dist/evaluation/index.d.ts +0 -14
  384. package/dist/evaluation/injection.d.ts +0 -6
  385. package/dist/evaluation/location-match.d.ts +0 -42
  386. package/dist/evaluation/match-operation.d.ts +0 -23
  387. package/dist/evaluation/match-policy-resolver.d.ts +0 -9
  388. package/dist/evaluation/match-policy.spec.d.ts +0 -1
  389. package/dist/evaluation/match-policy.spec.js +0 -1
  390. package/dist/evaluation/path-reasoning.d.ts +0 -37
  391. package/dist/evaluation/standards.d.ts +0 -11
  392. package/dist/evaluation/standards.spec.d.ts +0 -1
  393. package/dist/evaluation/standards.spec.js +0 -1
  394. package/dist/evaluation/structured-lines.d.ts +0 -8
  395. package/dist/evaluation/user-injection.d.ts +0 -6
  396. package/dist/experience/experience-reuse.d.ts +0 -10
  397. package/dist/experience/index.d.ts +0 -7
  398. package/dist/experience/persistence-config.d.ts +0 -6
  399. package/dist/experience/persistence.d.ts +0 -21
  400. package/dist/experience/realtime-feedback.d.ts +0 -5
  401. package/dist/experience/user-profile.d.ts +0 -25
  402. package/dist/extensions/capability.d.ts +0 -91
  403. package/dist/extensions/industry-audit.spec.d.ts +0 -1
  404. package/dist/extensions/industry-audit.spec.js +0 -1
  405. package/dist/goal/GoalClassifier.d.ts +0 -17
  406. package/dist/goal/GoalEngine.d.ts +0 -175
  407. package/dist/goal/GoalStore.d.ts +0 -27
  408. package/dist/goal/next-steps.d.ts +0 -12
  409. package/dist/goal/plan-approval.d.ts +0 -5
  410. package/dist/goal/pursue.d.ts +0 -18
  411. package/dist/graph/base.d.ts +0 -8
  412. package/dist/graph/onchain/analyze.d.ts +0 -59
  413. package/dist/graph/onchain/analyze.spec.d.ts +0 -1
  414. package/dist/graph/onchain/analyze.spec.js +0 -1
  415. package/dist/graph/onchain/anti-cheat.d.ts +0 -69
  416. package/dist/graph/onchain/anti-cheat.spec.d.ts +0 -1
  417. package/dist/graph/onchain/anti-cheat.spec.js +0 -1
  418. package/dist/graph/onchain/dataplane.d.ts +0 -44
  419. package/dist/graph/onchain/edge-batch.spec.d.ts +0 -1
  420. package/dist/graph/onchain/edge-batch.spec.js +0 -1
  421. package/dist/graph/onchain/edge-schema.d.ts +0 -69
  422. package/dist/graph/onchain/entity-profile.spec.d.ts +0 -1
  423. package/dist/graph/onchain/entity-profile.spec.js +0 -1
  424. package/dist/graph/onchain/event-history.spec.d.ts +0 -1
  425. package/dist/graph/onchain/event-history.spec.js +0 -1
  426. package/dist/graph/onchain/expand.d.ts +0 -4
  427. package/dist/graph/onchain/exploration.d.ts +0 -28
  428. package/dist/graph/onchain/exploration.spec.d.ts +0 -1
  429. package/dist/graph/onchain/exploration.spec.js +0 -1
  430. package/dist/graph/onchain/exposure.d.ts +0 -18
  431. package/dist/graph/onchain/exposure.spec.d.ts +0 -1
  432. package/dist/graph/onchain/exposure.spec.js +0 -1
  433. package/dist/graph/onchain/extract-deep.spec.d.ts +0 -1
  434. package/dist/graph/onchain/extract-deep.spec.js +0 -1
  435. package/dist/graph/onchain/extract.d.ts +0 -29
  436. package/dist/graph/onchain/facet-projection.d.ts +0 -99
  437. package/dist/graph/onchain/facet-projection.spec.d.ts +0 -1
  438. package/dist/graph/onchain/facet-projection.spec.js +0 -1
  439. package/dist/graph/onchain/facts.spec.d.ts +0 -1
  440. package/dist/graph/onchain/facts.spec.js +0 -1
  441. package/dist/graph/onchain/field-manifest.d.ts +0 -29
  442. package/dist/graph/onchain/field-manifest.spec.d.ts +0 -1
  443. package/dist/graph/onchain/field-manifest.spec.js +0 -1
  444. package/dist/graph/onchain/fixtures.d.ts +0 -80
  445. package/dist/graph/onchain/fixtures.spec.d.ts +0 -1
  446. package/dist/graph/onchain/fixtures.spec.js +0 -1
  447. package/dist/graph/onchain/graph-policy.spec.d.ts +0 -1
  448. package/dist/graph/onchain/graph-policy.spec.js +0 -1
  449. package/dist/graph/onchain/index.d.ts +0 -29
  450. package/dist/graph/onchain/interest.d.ts +0 -10
  451. package/dist/graph/onchain/interest.spec.d.ts +0 -1
  452. package/dist/graph/onchain/interest.spec.js +0 -1
  453. package/dist/graph/onchain/label-lint.spec.d.ts +0 -1
  454. package/dist/graph/onchain/label-lint.spec.js +0 -1
  455. package/dist/graph/onchain/names.d.ts +0 -23
  456. package/dist/graph/onchain/names.spec.d.ts +0 -1
  457. package/dist/graph/onchain/names.spec.js +0 -1
  458. package/dist/graph/onchain/object-held-receipts.d.ts +0 -20
  459. package/dist/graph/onchain/object-held-receipts.spec.d.ts +0 -1
  460. package/dist/graph/onchain/object-held-receipts.spec.js +0 -1
  461. package/dist/graph/onchain/onchain.spec.d.ts +0 -1
  462. package/dist/graph/onchain/onchain.spec.js +0 -1
  463. package/dist/graph/onchain/policy.d.ts +0 -8
  464. package/dist/graph/onchain/project-relationship.d.ts +0 -3
  465. package/dist/graph/onchain/proposal-graph.d.ts +0 -11
  466. package/dist/graph/onchain/proposal-graph.spec.d.ts +0 -1
  467. package/dist/graph/onchain/proposal-graph.spec.js +0 -1
  468. package/dist/graph/onchain/sdk-batch.d.ts +0 -129
  469. package/dist/graph/onchain/sdk-dataplane.d.ts +0 -44
  470. package/dist/graph/onchain/strategy.spec.d.ts +0 -1
  471. package/dist/graph/onchain/strategy.spec.js +0 -1
  472. package/dist/graph/onchain/synthesis.d.ts +0 -20
  473. package/dist/graph/onchain/synthesis.spec.d.ts +0 -1
  474. package/dist/graph/onchain/synthesis.spec.js +0 -1
  475. package/dist/graph/onchain/table-ledger.spec.d.ts +0 -1
  476. package/dist/graph/onchain/table-ledger.spec.js +0 -1
  477. package/dist/graph/onchain/viewport.d.ts +0 -6
  478. package/dist/harness/auto-escalation.d.ts +0 -15
  479. package/dist/intent/enrich.d.ts +0 -1
  480. package/dist/intent/index.d.ts +0 -23
  481. package/dist/intent/matcher.d.ts +0 -2
  482. package/dist/intent/store.d.ts +0 -19
  483. package/dist/intent/types.d.ts +0 -32
  484. package/dist/keeper/KeeperScan.d.ts +0 -41
  485. package/dist/keeper/KeeperStore.d.ts +0 -43
  486. package/dist/keeper/detectors.d.ts +0 -42
  487. package/dist/keeper/keeper.spec.d.ts +0 -1
  488. package/dist/keeper/keeper.spec.js +0 -1
  489. package/dist/keeper/types.d.ts +0 -67
  490. package/dist/knowledge/account-marks.d.ts +0 -36
  491. package/dist/knowledge/allocation-ledger.d.ts +0 -75
  492. package/dist/knowledge/allocation-puzzle.d.ts +0 -138
  493. package/dist/knowledge/allocation-risk.d.ts +0 -82
  494. package/dist/knowledge/allocation-templates.d.ts +0 -38
  495. package/dist/knowledge/allocator-rail-verifier.d.ts +0 -59
  496. package/dist/knowledge/anti-cheat.d.ts +0 -2
  497. package/dist/knowledge/arb-fund-facts.d.ts +0 -51
  498. package/dist/knowledge/arb-risk.d.ts +0 -39
  499. package/dist/knowledge/arbitration-puzzle.d.ts +0 -84
  500. package/dist/knowledge/arbitration-rail-verifier.d.ts +0 -35
  501. package/dist/knowledge/arbitration-risk.d.ts +0 -114
  502. package/dist/knowledge/arbitration-templates.d.ts +0 -39
  503. package/dist/knowledge/arbitration-venue-order.d.ts +0 -25
  504. package/dist/knowledge/baselines/guard-lint-baseline.spec.d.ts +0 -1
  505. package/dist/knowledge/baselines/guard-lint-baseline.spec.js +0 -1
  506. package/dist/knowledge/baselines/risk-baselines.spec.d.ts +0 -1
  507. package/dist/knowledge/baselines/risk-baselines.spec.js +0 -1
  508. package/dist/knowledge/baselines/risk-cases.d.ts +0 -8
  509. package/dist/knowledge/baselines/semantic-facts.d.ts +0 -12
  510. package/dist/knowledge/bridge-risk.d.ts +0 -36
  511. package/dist/knowledge/catalog-facts.d.ts +0 -4
  512. package/dist/knowledge/chain-query-registry.d.ts +0 -14
  513. package/dist/knowledge/commission-landing.d.ts +0 -26
  514. package/dist/knowledge/component-schema.d.ts +0 -64
  515. package/dist/knowledge/contact-risk.d.ts +0 -32
  516. package/dist/knowledge/contact-templates.d.ts +0 -26
  517. package/dist/knowledge/contract-invariants.d.ts +0 -54
  518. package/dist/knowledge/demand-risk.d.ts +0 -30
  519. package/dist/knowledge/discount-threshold.d.ts +0 -26
  520. package/dist/knowledge/dynamic-pricing.d.ts +0 -29
  521. package/dist/knowledge/entity-recipient-guard.d.ts +0 -21
  522. package/dist/knowledge/event-semantics.d.ts +0 -23
  523. package/dist/knowledge/evidence-review.d.ts +0 -35
  524. package/dist/knowledge/fee-param-bindings.d.ts +0 -28
  525. package/dist/knowledge/flywheel-loop.d.ts +0 -41
  526. package/dist/knowledge/game-scenarios.d.ts +0 -21
  527. package/dist/knowledge/getting-started.d.ts +0 -37
  528. package/dist/knowledge/goal-completion.d.ts +0 -31
  529. package/dist/knowledge/guard-anchor-reach.d.ts +0 -19
  530. package/dist/knowledge/guard-binding-table.d.ts +0 -52
  531. package/dist/knowledge/guard-binding-verifier.d.ts +0 -37
  532. package/dist/knowledge/guard-bindings.d.ts +0 -21
  533. package/dist/knowledge/guard-blueprint.d.ts +0 -68
  534. package/dist/knowledge/guard-design-patterns.d.ts +0 -38
  535. package/dist/knowledge/guard-eval.d.ts +0 -15
  536. package/dist/knowledge/guard-field-cognition.d.ts +0 -48
  537. package/dist/knowledge/guard-host-context.d.ts +0 -24
  538. package/dist/knowledge/guard-ledger.d.ts +0 -19
  539. package/dist/knowledge/guard-leg-map.d.ts +0 -5
  540. package/dist/knowledge/guard-lint.d.ts +0 -79
  541. package/dist/knowledge/guard-node-gates.d.ts +0 -9
  542. package/dist/knowledge/guard-puzzle.d.ts +0 -188
  543. package/dist/knowledge/guard-render.d.ts +0 -71
  544. package/dist/knowledge/guard-risk.d.ts +0 -71
  545. package/dist/knowledge/guard-submission-brief.d.ts +0 -94
  546. package/dist/knowledge/guard-submission-prompt.d.ts +0 -63
  547. package/dist/knowledge/guard-translation.d.ts +0 -58
  548. package/dist/knowledge/index.d.ts +0 -299
  549. package/dist/knowledge/industry-evolution.d.ts +0 -82
  550. package/dist/knowledge/industry-generalizer.d.ts +0 -63
  551. package/dist/knowledge/industry-rule-node.d.ts +0 -7
  552. package/dist/knowledge/industry-strategy.d.ts +0 -91
  553. package/dist/knowledge/intent-metrics.d.ts +0 -43
  554. package/dist/knowledge/jsonrpc-enum.d.ts +0 -102
  555. package/dist/knowledge/knob-docs.d.ts +0 -5
  556. package/dist/knowledge/machine-fork-watch.d.ts +0 -9
  557. package/dist/knowledge/machine-ledger.d.ts +0 -42
  558. package/dist/knowledge/machine-puzzle.d.ts +0 -206
  559. package/dist/knowledge/machine-risk.d.ts +0 -72
  560. package/dist/knowledge/machine-templates.d.ts +0 -92
  561. package/dist/knowledge/machine-topology.d.ts +0 -116
  562. package/dist/knowledge/machine-translation.d.ts +0 -96
  563. package/dist/knowledge/market-metrics.d.ts +0 -34
  564. package/dist/knowledge/market-operations.d.ts +0 -46
  565. package/dist/knowledge/migration-preflight.d.ts +0 -27
  566. package/dist/knowledge/object-dependency.d.ts +0 -31
  567. package/dist/knowledge/operation-dictionary.d.ts +0 -18
  568. package/dist/knowledge/order-ledger.d.ts +0 -69
  569. package/dist/knowledge/order-puzzle.d.ts +0 -162
  570. package/dist/knowledge/order-risk.d.ts +0 -62
  571. package/dist/knowledge/order-templates.d.ts +0 -50
  572. package/dist/knowledge/param-schema.d.ts +0 -93
  573. package/dist/knowledge/param-tiers.d.ts +0 -27
  574. package/dist/knowledge/passport-ledger.d.ts +0 -60
  575. package/dist/knowledge/passport-templates.d.ts +0 -40
  576. package/dist/knowledge/path-oracle/coverage.d.ts +0 -16
  577. package/dist/knowledge/path-oracle/index.d.ts +0 -5
  578. package/dist/knowledge/path-oracle/products/food-delivery.d.ts +0 -2
  579. package/dist/knowledge/path-oracle/schema.d.ts +0 -188
  580. package/dist/knowledge/pattern-resolutions.d.ts +0 -110
  581. package/dist/knowledge/payment-risk.d.ts +0 -38
  582. package/dist/knowledge/payment-tracker.d.ts +0 -63
  583. package/dist/knowledge/permission-ledger.d.ts +0 -49
  584. package/dist/knowledge/permission-puzzle.d.ts +0 -122
  585. package/dist/knowledge/permission-risk.d.ts +0 -70
  586. package/dist/knowledge/permission-templates.d.ts +0 -38
  587. package/dist/knowledge/personal-risk.d.ts +0 -36
  588. package/dist/knowledge/product-detail-source.d.ts +0 -37
  589. package/dist/knowledge/product-doc-b5.d.ts +0 -16
  590. package/dist/knowledge/progress-ledger.d.ts +0 -63
  591. package/dist/knowledge/progress-puzzle.d.ts +0 -82
  592. package/dist/knowledge/progress-risk.d.ts +0 -75
  593. package/dist/knowledge/progress-templates.d.ts +0 -38
  594. package/dist/knowledge/projection.d.ts +0 -54
  595. package/dist/knowledge/projection.spec.d.ts +0 -1
  596. package/dist/knowledge/projection.spec.js +0 -1
  597. package/dist/knowledge/proof-risk.d.ts +0 -33
  598. package/dist/knowledge/protocol-facts.d.ts +0 -17
  599. package/dist/knowledge/publish-gate.d.ts +0 -20
  600. package/dist/knowledge/publish-readiness.d.ts +0 -25
  601. package/dist/knowledge/publish-surface-contract.d.ts +0 -16
  602. package/dist/knowledge/puzzle-projections.d.ts +0 -11
  603. package/dist/knowledge/rail-exit-satisfiability.d.ts +0 -25
  604. package/dist/knowledge/registrar-risk.d.ts +0 -34
  605. package/dist/knowledge/release-sentinel.d.ts +0 -12
  606. package/dist/knowledge/repository-risk.d.ts +0 -46
  607. package/dist/knowledge/repository-write-semantics.d.ts +0 -27
  608. package/dist/knowledge/reputation-rules.d.ts +0 -36
  609. package/dist/knowledge/requirement-families.d.ts +0 -13
  610. package/dist/knowledge/resource-risk.d.ts +0 -32
  611. package/dist/knowledge/reward-ledger.d.ts +0 -97
  612. package/dist/knowledge/reward-puzzle.d.ts +0 -98
  613. package/dist/knowledge/reward-risk.d.ts +0 -86
  614. package/dist/knowledge/reward-templates.d.ts +0 -25
  615. package/dist/knowledge/rule-node-analyzers.d.ts +0 -49
  616. package/dist/knowledge/rule-outcome.d.ts +0 -5
  617. package/dist/knowledge/scenario-topology.d.ts +0 -48
  618. package/dist/knowledge/semantic-ir.d.ts +0 -136
  619. package/dist/knowledge/service-allocation-semantics.d.ts +0 -36
  620. package/dist/knowledge/service-allocator-audit-node.d.ts +0 -3
  621. package/dist/knowledge/service-ledger.d.ts +0 -87
  622. package/dist/knowledge/service-puzzle.d.ts +0 -158
  623. package/dist/knowledge/service-risk-node.d.ts +0 -3
  624. package/dist/knowledge/service-risk.d.ts +0 -110
  625. package/dist/knowledge/service-templates.d.ts +0 -41
  626. package/dist/knowledge/settlement-semantics.d.ts +0 -1
  627. package/dist/knowledge/strategy-manuals.d.ts +0 -15
  628. package/dist/knowledge/supply-chain.d.ts +0 -35
  629. package/dist/knowledge/template-index.d.ts +0 -19
  630. package/dist/knowledge/template-loader.d.ts +0 -425
  631. package/dist/knowledge/template-nav.d.ts +0 -9
  632. package/dist/knowledge/template-prose.d.ts +0 -50
  633. package/dist/knowledge/template-registry.d.ts +0 -48
  634. package/dist/knowledge/template-scanner.d.ts +0 -158
  635. package/dist/knowledge/template-test-profiles.d.ts +0 -17
  636. package/dist/knowledge/template-validation.d.ts +0 -3
  637. package/dist/knowledge/tools-reference.d.ts +0 -17
  638. package/dist/knowledge/treasury-ledger.d.ts +0 -42
  639. package/dist/knowledge/treasury-puzzle.d.ts +0 -163
  640. package/dist/knowledge/treasury-risk.d.ts +0 -88
  641. package/dist/knowledge/treasury-templates.d.ts +0 -38
  642. package/dist/knowledge/universal-template.d.ts +0 -22
  643. package/dist/knowledge/util-risk.d.ts +0 -30
  644. package/dist/knowledge/workflow-guidance.d.ts +0 -194
  645. package/dist/knowledge/workspace-lists.d.ts +0 -61
  646. package/dist/monitor/SuggestionBridge.spec.d.ts +0 -1
  647. package/dist/monitor/SuggestionBridge.spec.js +0 -1
  648. package/dist/participation/arbitrator-interest.d.ts +0 -22
  649. package/dist/participation/demander-interest.d.ts +0 -23
  650. package/dist/participation/employee-kpi.d.ts +0 -37
  651. package/dist/participation/employee-kpi.spec.d.ts +0 -1
  652. package/dist/participation/employee-kpi.spec.js +0 -1
  653. package/dist/participation/employee-store.d.ts +0 -16
  654. package/dist/participation/game-context.d.ts +0 -25
  655. package/dist/participation/index.d.ts +0 -2
  656. package/dist/participation/node-action-advisor.d.ts +0 -68
  657. package/dist/participation/time-window.d.ts +0 -48
  658. package/dist/persona/facet-profile.d.ts +0 -33
  659. package/dist/persona/persona-audit.spec.d.ts +0 -1
  660. package/dist/persona/persona-audit.spec.js +0 -1
  661. package/dist/playbooks/service-build/business-puzzle.d.ts +0 -48
  662. package/dist/playbooks/service-build/context-assembly.d.ts +0 -32
  663. package/dist/playbooks/service-build/facet-money.d.ts +0 -33
  664. package/dist/playbooks/service-build/facet-money.spec.d.ts +0 -1
  665. package/dist/playbooks/service-build/facet-money.spec.js +0 -1
  666. package/dist/playbooks/service-build/game-theory.d.ts +0 -47
  667. package/dist/playbooks/service-build/index.d.ts +0 -15
  668. package/dist/playbooks/service-build/intent-analyzer.d.ts +0 -72
  669. package/dist/playbooks/service-build/machine-nodes.d.ts +0 -27
  670. package/dist/playbooks/service-build/machine-panorama.d.ts +0 -71
  671. package/dist/playbooks/service-build/merchant-guide.d.ts +0 -382
  672. package/dist/playbooks/service-build/migration-planner.d.ts +0 -61
  673. package/dist/playbooks/service-build/mode-actions.d.ts +0 -260
  674. package/dist/playbooks/service-build/object-panorama.d.ts +0 -317
  675. package/dist/playbooks/service-build/object-type.d.ts +0 -1
  676. package/dist/playbooks/service-build/participation-radar.d.ts +0 -20
  677. package/dist/playbooks/service-build/pipeline-actions.d.ts +0 -108
  678. package/dist/playbooks/service-build/process.d.ts +0 -6
  679. package/dist/playbooks/service-build/relationship-profile.d.ts +0 -3
  680. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.d.ts +0 -1
  681. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +0 -1
  682. package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.d.ts +0 -1
  683. package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.js +0 -1
  684. package/dist/playbooks/service-build/reverse-mapping.d.ts +0 -66
  685. package/dist/playbooks/service-build/risk-aggregator.d.ts +0 -59
  686. package/dist/playbooks/service-build/service-panorama.d.ts +0 -229
  687. package/dist/playbooks/service-build/service-quote.d.ts +0 -2
  688. package/dist/playbooks/service-build/service-quote.spec.d.ts +0 -1
  689. package/dist/playbooks/service-build/service-quote.spec.js +0 -1
  690. package/dist/playbooks/service-build/topology-evaluation.spec.d.ts +0 -1
  691. package/dist/playbooks/service-build/topology-evaluation.spec.js +0 -1
  692. package/dist/playbooks/service-build/topology-query.d.ts +0 -25
  693. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +0 -33
  694. package/dist/relationship/derivation.d.ts +0 -95
  695. package/dist/relationship/derivation.spec.d.ts +0 -1
  696. package/dist/relationship/derivation.spec.js +0 -1
  697. package/dist/relationship/incentive.d.ts +0 -38
  698. package/dist/relationship/index.d.ts +0 -4
  699. package/dist/relationship/registry.d.ts +0 -13
  700. package/dist/relationship/types.d.ts +0 -45
  701. package/dist/review/arb.d.ts +0 -4
  702. package/dist/review/demand.d.ts +0 -3
  703. package/dist/review/index.d.ts +0 -3
  704. package/dist/review/machine.d.ts +0 -3
  705. package/dist/review/order.d.ts +0 -8
  706. package/dist/review/progress.d.ts +0 -3
  707. package/dist/review/repository.d.ts +0 -3
  708. package/dist/review/service.d.ts +0 -5
  709. package/dist/review/types.d.ts +0 -163
  710. package/dist/role/derivation.d.ts +0 -35
  711. package/dist/role/index.d.ts +0 -6
  712. package/dist/role/intent.d.ts +0 -23
  713. package/dist/role/model.d.ts +0 -9
  714. package/dist/role/profiles.d.ts +0 -26
  715. package/dist/role/resolution.d.ts +0 -27
  716. package/dist/runtime/instance-registry.d.ts +0 -14
  717. package/dist/safety/index.d.ts +0 -3
  718. package/dist/schema/call/permission-handler.d.ts +0 -5
  719. package/dist/schema/call/semantic-customer-advice.spec.d.ts +0 -1
  720. package/dist/schema/call/semantic-customer-advice.spec.js +0 -1
  721. package/dist/schema/common/tokentype-short-probe.spec.d.ts +0 -1
  722. package/dist/schema/common/tokentype-short-probe.spec.js +0 -1
  723. package/dist/schema/envelope-unify.d.ts +0 -5
  724. package/dist/schema/goal/planning.d.ts +0 -742
  725. package/dist/schema/industry-pack/modes.d.ts +0 -447
  726. package/dist/schema/query/bi.d.ts +0 -3369
  727. package/dist/schema/utils/guard-query-utils.d.ts +0 -18
  728. package/dist/schema/utils/permission-index-utils.d.ts +0 -2
  729. package/dist/schema/utils/skills-recommendation.d.ts +0 -2
  730. package/dist/schema-query-impl/index.d.ts +0 -83
  731. package/dist/schemas/account_operation.output.json +0 -3869
  732. package/dist/schemas/ask_user.output.json +0 -54
  733. package/dist/schemas/benchmark_migration_operation.output.json +0 -1669
  734. package/dist/schemas/bridge_operation.output.json +0 -1548
  735. package/dist/schemas/config_operation.output.json +0 -896
  736. package/dist/schemas/employee_operation.output.json +0 -307
  737. package/dist/schemas/evaluation_operation.output.json +0 -4716
  738. package/dist/schemas/guard2file.output.json +0 -83
  739. package/dist/schemas/industry_pack_operation.output.json +0 -2985
  740. package/dist/schemas/intent_radar.output.json +0 -326
  741. package/dist/schemas/keeper_operation.output.json +0 -1441
  742. package/dist/schemas/local_cache_operation.output.json +0 -1718
  743. package/dist/schemas/local_history_operation.output.json +0 -1644
  744. package/dist/schemas/local_info_operation.output.json +0 -1530
  745. package/dist/schemas/local_mark_operation.output.json +0 -1622
  746. package/dist/schemas/machineNode2file.output.json +0 -88
  747. package/dist/schemas/messenger_operation.output.json +0 -4692
  748. package/dist/schemas/monitor_events.output.json +0 -1602
  749. package/dist/schemas/monitor_subscription.output.json +0 -1629
  750. package/dist/schemas/onchain_events.output.json +0 -4053
  751. package/dist/schemas/onchain_operations.output.json +0 -7788
  752. package/dist/schemas/onchain_table_data.output.json +0 -11868
  753. package/dist/schemas/permission_operation.output.json +0 -205
  754. package/dist/schemas/persona_operation.output.json +0 -64612
  755. package/dist/schemas/query_toolkit.output.json +0 -28302
  756. package/dist/schemas/schema_query.output.json +0 -81
  757. package/dist/schemas/service_clone_operation.output.json +0 -247
  758. package/dist/schemas/strategy_review_operation.output.json +0 -532
  759. package/dist/schemas/watch_operation.output.json +0 -930
  760. package/dist/schemas/wip_file.output.json +0 -360
  761. package/dist/schemas/workflow_operation.output.json +0 -422
  762. package/dist/schemas/workspace_operation.output.json +0 -477
  763. package/dist/schemas/wowok_buildin_info.output.json +0 -2477
  764. package/dist/strategy/collectors.d.ts +0 -66
  765. package/dist/strategy/collectors.spec.d.ts +0 -1
  766. package/dist/strategy/collectors.spec.js +0 -1
  767. package/dist/strategy/index.d.ts +0 -5
  768. package/dist/strategy/metrics.d.ts +0 -20
  769. package/dist/strategy/review.d.ts +0 -48
  770. package/dist/strategy/scorecard.d.ts +0 -32
  771. package/dist/strategy/store.d.ts +0 -26
  772. package/dist/task/ProcessStore.d.ts +0 -98
  773. package/dist/task/playbook.d.ts +0 -11
  774. package/dist/task/substep-trace.d.ts +0 -91
  775. package/dist/tools/build-fingerprint.d.ts +0 -28
  776. package/dist/tools/error-catalog.d.ts +0 -17
  777. package/dist/tools/handlers/ask-user.d.ts +0 -3
  778. package/dist/tools/handlers/benchmark-migration.d.ts +0 -121
  779. package/dist/tools/handlers/bridge.d.ts +0 -8
  780. package/dist/tools/handlers/config.d.ts +0 -2
  781. package/dist/tools/handlers/dispatch-expectations.d.ts +0 -2
  782. package/dist/tools/handlers/dispatch-expectations.spec.d.ts +0 -1
  783. package/dist/tools/handlers/dispatch-expectations.spec.js +0 -1
  784. package/dist/tools/handlers/employee.d.ts +0 -8
  785. package/dist/tools/handlers/employee.spec.d.ts +0 -1
  786. package/dist/tools/handlers/employee.spec.js +0 -1
  787. package/dist/tools/handlers/entry-edge-recipe.d.ts +0 -101
  788. package/dist/tools/handlers/escrow-deficit.d.ts +0 -10
  789. package/dist/tools/handlers/evaluation.d.ts +0 -2
  790. package/dist/tools/handlers/evaluation.spec.d.ts +0 -1
  791. package/dist/tools/handlers/evaluation.spec.js +0 -1
  792. package/dist/tools/handlers/file-export.d.ts +0 -3
  793. package/dist/tools/handlers/fund-rail-recipe.d.ts +0 -10
  794. package/dist/tools/handlers/goal.d.ts +0 -4
  795. package/dist/tools/handlers/industry-pack.d.ts +0 -3
  796. package/dist/tools/handlers/intent-radar.d.ts +0 -2
  797. package/dist/tools/handlers/keeper.d.ts +0 -12
  798. package/dist/tools/handlers/local.d.ts +0 -6
  799. package/dist/tools/handlers/mark-namespace.d.ts +0 -30
  800. package/dist/tools/handlers/messenger.d.ts +0 -24
  801. package/dist/tools/handlers/monitor.d.ts +0 -26
  802. package/dist/tools/handlers/name-resolution.d.ts +0 -4
  803. package/dist/tools/handlers/name-resolution.spec.d.ts +0 -1
  804. package/dist/tools/handlers/name-resolution.spec.js +0 -1
  805. package/dist/tools/handlers/network.d.ts +0 -1
  806. package/dist/tools/handlers/onchain-name-registration.d.ts +0 -49
  807. package/dist/tools/handlers/onchain-name-registration.spec.d.ts +0 -1
  808. package/dist/tools/handlers/onchain-name-registration.spec.js +0 -1
  809. package/dist/tools/handlers/onchain.d.ts +0 -132
  810. package/dist/tools/handlers/permission.d.ts +0 -2
  811. package/dist/tools/handlers/persona.d.ts +0 -4
  812. package/dist/tools/handlers/publish-binding-echo.d.ts +0 -22
  813. package/dist/tools/handlers/review-chain.d.ts +0 -19
  814. package/dist/tools/handlers/schema-query.d.ts +0 -2
  815. package/dist/tools/handlers/service-clone.d.ts +0 -20
  816. package/dist/tools/handlers/stale-build-check.d.ts +0 -9
  817. package/dist/tools/handlers/strategy-review.d.ts +0 -2
  818. package/dist/tools/handlers/submission-assembly.d.ts +0 -55
  819. package/dist/tools/handlers/watch.d.ts +0 -2
  820. package/dist/tools/handlers/winner-derivation.d.ts +0 -20
  821. package/dist/tools/handlers/wip-upload.d.ts +0 -22
  822. package/dist/tools/handlers/wip.d.ts +0 -2
  823. package/dist/tools/handlers/workflow.d.ts +0 -2
  824. package/dist/tools/handlers/workspace.d.ts +0 -4
  825. package/dist/tools/move-fn-index.gen.d.ts +0 -3
  826. package/dist/tools/publish-gate-state.d.ts +0 -5
  827. package/dist/tools/registry/agent.d.ts +0 -2
  828. package/dist/tools/registry/bridge.d.ts +0 -2
  829. package/dist/tools/registry/business.d.ts +0 -2
  830. package/dist/tools/registry/config.d.ts +0 -2
  831. package/dist/tools/registry/evaluation.d.ts +0 -2
  832. package/dist/tools/registry/files.d.ts +0 -2
  833. package/dist/tools/registry/identity.d.ts +0 -2
  834. package/dist/tools/registry/interaction.d.ts +0 -2
  835. package/dist/tools/registry/local.d.ts +0 -2
  836. package/dist/tools/registry/messenger.d.ts +0 -2
  837. package/dist/tools/registry/monitor.d.ts +0 -2
  838. package/dist/tools/registry/onchain.d.ts +0 -2
  839. package/dist/tools/registry/query.d.ts +0 -2
  840. package/dist/tools/retry.d.ts +0 -8
  841. package/dist/tools/rules-hook.d.ts +0 -5
  842. package/dist/tools/runtime-health.d.ts +0 -10
  843. package/dist/tools/sanitize-description-roundtrip.spec.d.ts +0 -1
  844. package/dist/tools/sanitize-description-roundtrip.spec.js +0 -1
  845. package/dist/tools/sanitize-output.d.ts +0 -4
  846. package/dist/tools/sanitize-output.spec.d.ts +0 -1
  847. package/dist/tools/sanitize-output.spec.js +0 -1
  848. package/dist/tools/shared.d.ts +0 -20
  849. package/dist/tools/transport-integrity.d.ts +0 -7
  850. package/dist/tools/upgrade-check.d.ts +0 -75
  851. package/dist/tools/wip-deploy-assist.d.ts +0 -34
  852. package/dist/tools/wip-verify-ledger.d.ts +0 -16
  853. package/dist/tools/wrap.d.ts +0 -45
@@ -1,194 +0,0 @@
1
- import { type RecommendedCall } from "../participation/radar-core.js";
2
- import { type OrderContext, type ParsedForward, type ParsedMachineNode, type PermissionContext } from "../graph/onchain/sdk-batch.js";
3
- import type { CommercialRole } from "../role/types.js";
4
- export type NameResolver = (addr: string | undefined | null) => string | undefined;
5
- export declare function resolvePermissionRole(index: number | undefined | null, permissionDescription?: string): string;
6
- type NodeKind = "complete" | "refund" | "exception" | "advance";
7
- export declare function classifyNode(name: string): NodeKind;
8
- export interface GuidanceInput {
9
- current: string;
10
- nodes: ParsedMachineNode[];
11
- caller?: string;
12
- callerAddress?: string;
13
- orderHolderAddresses?: string[];
14
- progressNamedOperator?: {
15
- name: string;
16
- operators: string[];
17
- }[];
18
- permissionContext?: PermissionContext;
19
- orderContext?: OrderContext;
20
- permissionDescription?: string;
21
- nameResolver?: NameResolver;
22
- just_advanced?: boolean;
23
- callerRole?: CommercialRole;
24
- escrow?: TerminalEscrow;
25
- }
26
- export interface TerminalEscrow {
27
- allocation: string;
28
- balance: string;
29
- guards: string[];
30
- fund_direction: "buyer" | "provider" | "mixed" | "signer" | "unknown";
31
- refund_terminal: boolean;
32
- }
33
- export interface OperatorInfo {
34
- kind: "order_holder" | "permission_index" | "named_operator";
35
- permission_index?: number;
36
- role_name?: string;
37
- account_name?: string;
38
- named_operator?: string;
39
- recommended_call?: RecommendedCall;
40
- }
41
- export interface OptionInfo {
42
- next_node: string;
43
- forward: string;
44
- weight: number;
45
- operator: OperatorInfo;
46
- guard?: string;
47
- business_meaning: string;
48
- gains?: string[];
49
- risks?: string[];
50
- consistency: number;
51
- recommended: boolean;
52
- waiting_on?: string;
53
- executable_by_caller?: boolean;
54
- ambiguous?: {
55
- destinations: string[];
56
- fund_conflict: boolean;
57
- };
58
- }
59
- export interface GuidanceResult {
60
- current_node: string;
61
- caller?: string;
62
- options: OptionInfo[];
63
- recommendation?: {
64
- best?: string;
65
- rationale?: string;
66
- caveat?: string;
67
- };
68
- note?: string;
69
- }
70
- export declare function buildWorkflowGuidance(input: GuidanceInput): GuidanceResult;
71
- export interface ReceiptInput extends GuidanceInput {
72
- callerName: string;
73
- forward: string;
74
- targetNode: string;
75
- op?: string;
76
- session?: Array<{
77
- next_node?: string;
78
- forwards?: Array<{
79
- forward?: string;
80
- accomplished?: boolean;
81
- }>;
82
- weights?: number;
83
- threshold?: number;
84
- }>;
85
- simulated?: boolean;
86
- txDigest?: string;
87
- signer?: string;
88
- }
89
- export interface WaitingInfo {
90
- forward: string;
91
- operator: OperatorInfo;
92
- }
93
- export interface ReceiptResult {
94
- account: string;
95
- action: string;
96
- forward: string;
97
- target_node: string;
98
- op?: string;
99
- migrated: boolean;
100
- current_node: string;
101
- threshold?: number;
102
- accumulated_weight?: number;
103
- remaining?: number;
104
- waiting_on?: WaitingInfo[];
105
- next_guidance?: GuidanceResult;
106
- note?: string;
107
- simulated?: boolean;
108
- digest?: string;
109
- signer?: string;
110
- }
111
- export declare function buildWorkflowReceipt(input: ReceiptInput): ReceiptResult;
112
- export declare function renderGuidanceText(g: GuidanceResult): string;
113
- export declare function renderReceiptText(r: ReceiptResult): string;
114
- export interface EnrichOptions {
115
- progressRef: string;
116
- network?: string;
117
- accountName?: string;
118
- operate?: {
119
- forward?: string;
120
- next_node_name?: string;
121
- op?: string;
122
- };
123
- noCache?: boolean;
124
- txResult?: unknown;
125
- dryRun?: boolean;
126
- compact?: boolean;
127
- }
128
- export declare function extractObjectVersionFromTx(txResult: unknown, objectAddr: string): string | undefined;
129
- export declare function extractProgressEventNodeFromTx(txResult: unknown, progressAddr: string): string | undefined;
130
- export declare function extractTxDigestFromResult(txResult: unknown): string | undefined;
131
- export interface EnrichResult {
132
- guidance?: GuidanceResult;
133
- receipt?: ReceiptResult;
134
- text?: string;
135
- }
136
- export declare function enrichWorkflowGuidance(opts: EnrichOptions): Promise<EnrichResult | undefined>;
137
- export interface HoldableEdgeInfo {
138
- next_node: string;
139
- forward: string;
140
- weight: number;
141
- threshold: number;
142
- guard?: string;
143
- kind: ForwardOperatorKind;
144
- holdable: boolean;
145
- }
146
- export declare function resolveHoldableEdges(opts: {
147
- progressRef: string;
148
- accountName: string;
149
- network?: string;
150
- noCache?: boolean;
151
- }): Promise<{
152
- current: string;
153
- edges: HoldableEdgeInfo[];
154
- } | undefined>;
155
- export declare function mergeGuidanceIntoOutput<T extends {
156
- content: any[];
157
- structuredContent: any;
158
- }>(output: T, enrichment: EnrichResult | undefined, opts?: {
159
- responseLevel?: "compact" | "full";
160
- }): T;
161
- export interface LocalAccountInfo {
162
- address: string;
163
- name?: string;
164
- }
165
- export interface ResolvedLocalNames {
166
- byAddress: Map<string, string>;
167
- }
168
- export declare function resolveLocalNamesFor(addresses: string[]): Promise<ResolvedLocalNames>;
169
- export declare function listLocalAccounts(): Promise<LocalAccountInfo[]>;
170
- export declare function accountCanExecuteForward(f: ParsedForward, account: string, progressNamedOperator: {
171
- name: string;
172
- operators: string[];
173
- }[], orderCtx: OrderContext | undefined, permCtx: PermissionContext | undefined): boolean;
174
- export type ForwardOperatorKind = "order_holder" | "named_operator" | "permission_index";
175
- export declare function forwardOperatorKind(f: ParsedForward): ForwardOperatorKind;
176
- export interface ActionableForwardOption {
177
- next_node: string;
178
- forward: string;
179
- weight: number;
180
- threshold: number;
181
- guard?: string;
182
- operator_kind: ForwardOperatorKind;
183
- permission_index?: number;
184
- named_operator?: string;
185
- executable_accounts: string[];
186
- }
187
- export declare function enumerateActionableForwards(progress: {
188
- current?: unknown;
189
- session?: unknown;
190
- }, nodes: ParsedMachineNode[], accounts: string[], progressNamedOperator: {
191
- name: string;
192
- operators: string[];
193
- }[], orderCtx: OrderContext | undefined, permCtx: PermissionContext | undefined): ActionableForwardOption[];
194
- export {};
@@ -1,61 +0,0 @@
1
- export interface WorkspaceListItem {
2
- object: string;
3
- object_type: string | null;
4
- name?: string;
5
- time?: number;
6
- description?: string;
7
- tags?: string[];
8
- location?: string;
9
- members_total?: number;
10
- members_mine?: number;
11
- related_objects?: number;
12
- records_total?: number;
13
- policies_total?: number;
14
- rewards_total?: number;
15
- token?: string;
16
- balance_total?: string;
17
- type_raw?: string;
18
- guards_total?: number;
19
- claimers?: number;
20
- inflow?: string;
21
- outflow?: string;
22
- status?: "LIVE" | "PAUSED" | "UNPUBLISHED";
23
- nodes?: number;
24
- edges?: number;
25
- progresses?: number;
26
- direction?: "INCOMING" | "OUTGOING" | "RELATED";
27
- payment_amount?: string;
28
- payment_incoming?: string;
29
- rep?: {
30
- like: number;
31
- dislike: number;
32
- favor: number;
33
- votes?: {
34
- who: string | null;
35
- like: boolean;
36
- dislike: boolean;
37
- favor: boolean;
38
- }[];
39
- };
40
- }
41
- export interface WorkspaceListsResult {
42
- action: "workspace_lists";
43
- network?: string;
44
- updated_at_ms: number;
45
- cached: boolean;
46
- treasuries: WorkspaceListItem[];
47
- repositories: WorkspaceListItem[];
48
- contacts: WorkspaceListItem[];
49
- machines: WorkspaceListItem[];
50
- rewards: WorkspaceListItem[];
51
- payments: WorkspaceListItem[];
52
- others: WorkspaceListItem[];
53
- counts: Record<string, number>;
54
- note?: string;
55
- }
56
- export declare function buildWorkspaceLists(opts: {
57
- network?: string;
58
- no_cache?: boolean;
59
- account?: string;
60
- light?: boolean;
61
- }): Promise<WorkspaceListsResult>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,expect,it}from'vitest';import{bridgeMonitorSuggestions,classifyProgression}from'./SuggestionBridge.js';const NET='testnet',PROGRESS='0xprogress1',DEMAND='0xdemand1',SERVICE='0xservice1',ARB='0xarb1',ORDER='0xorder1',GOAL_ID='goal-1';function ev(a,b,c='1'){return{'id':{'eventSeq':c,'txDigest':'0xtx'},'type':a,...b};}function annotation(a,b){return{'event_id':a+':0xtx','event_type':'ProgressEvent','rules':[{'kind':'focus','object':b}],'focus_hit':!![],'matched_filters':[],'scope_version':0x1,'annotated_at':0x0};}function scopeWithFocus(a){return{'focus':[{'object':a,'added_at':0x0,'reason':'goal','closure':!![],'goal_id':GOAL_ID}]};}function goalOf(a,b){return{'id':GOAL_ID,'stage':a,'goal_type':b,'process':{'dir':'proc-dir'}};}function depsOf(a){const b=[],c={'getGoal':async()=>a,'addSuggestion':(d,e)=>{return b['push'](e),{'id':'sug-'+b['length'],'status':'pending',...e};},'listSuggestions':()=>b['map']((d,e)=>({'id':'sug-'+(e+0x1),'status':'pending',...d})),'logger':()=>{}};return{'deps':c,'added':b};}describe('classifyProgression',()=>{it('ProgressEvent\x20→\x20note\x20for\x20purchase_service\x20goals,\x20carries\x20node/forward/hold',()=>{const a=classifyProgression(ev('ProgressEvent',{'progress':PROGRESS,'node':'deliver','forward':'ship','hold':![]}));expect(a?.['kind'])['toBe']('note'),expect(a?.['goal_type'])['toBe']('purchase_service'),expect(a?.['object'])['toBe'](PROGRESS),expect(a?.['title'])['toContain']('deliver');}),it('ProgressEvent\x20without\x20progress\x20address\x20→\x20null',()=>{expect(classifyProgression(ev('ProgressEvent',{'node':'x'})))['toBeNull']();}),it('DemandPresentEvent\x20→\x20note\x20for\x20publish_demand\x20goals\x20with\x20pitch\x20preview',()=>{const a=classifyProgression(ev('DemandPresentEvent',{'demand':DEMAND,'service':SERVICE,'recommend':'I\x20can\x20do\x20it'}));expect(a?.['kind'])['toBe']('note'),expect(a?.['goal_type'])['toBe']('publish_demand'),expect(a?.['object'])['toBe'](DEMAND),expect(a?.['detail'])['toContain']('I\x20can\x20do\x20it');}),it('ArbEvent\x20Voting\x20(status\x202)\x20→\x20voting-started\x20note\x20pointing\x20at\x20the\x20deadline',()=>{const a=classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x2}));expect(a?.['kind'])['toBe']('note'),expect(a?.['object'])['toBe'](ORDER),expect(a?.['title'])['toContain']('voting\x20started'),expect(a?.['detail'])['toContain']('voting_deadline');}),it('ArbEvent\x20Arbitrated\x20(status\x203)\x20→\x20objection-window\x20note',()=>{const a=classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x3}));expect(a?.['kind'])['toBe']('note'),expect(a?.['title'])['toContain']('objection\x20window');}),it('ArbEvent\x20Finished\x20(status\x205)\x20→\x20complete_goal\x20(pre-existing\x20behavior\x20preserved)',()=>{const a=classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x5}));expect(a?.['kind'])['toBe']('complete_goal'),expect(a?.['object'])['toBe'](ORDER);}),it('ArbEvent\x20other\x20statuses\x20→\x20null',()=>{expect(classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x0})))['toBeNull'](),expect(classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x4})))['toBeNull'](),expect(classifyProgression(ev('ArbEvent',{'arb':ARB,'order':ORDER,'status':0x6})))['toBeNull']();}),it('FeedbackEvent\x20→\x20reputation\x20note\x20with\x20feedback\x20preview',()=>{const a=classifyProgression(ev('FeedbackEvent',{'object':ARB,'feedback':'fair\x20and\x20fast'}));expect(a?.['kind'])['toBe']('note'),expect(a?.['object'])['toBe'](ARB),expect(a?.['detail'])['toContain']('fair\x20and\x20fast'),expect(a?.['detail'])['toContain']('reputation');}),it('DemandFeedbackEvent\x20→\x20presenter-reputation\x20note\x20carrying\x20acceptance_score',()=>{const a=classifyProgression(ev('DemandFeedbackEvent',{'demand':DEMAND,'service':SERVICE,'acceptance_score':0x55,'feedback':'solid\x20work'}));expect(a?.['kind'])['toBe']('note'),expect(a?.['object'])['toBe'](DEMAND),expect(a?.['detail'])['toContain']('85'),expect(a?.['detail'])['toContain']('solid\x20work');}),it('AllocationEvent\x20→\x20settlement\x20note\x20carrying\x20amount\x20+\x20payment',()=>{const a=classifyProgression(ev('AllocationEvent',{'object':'0xalloc1','payment':'0xpay1','amount':'5000'}));expect(a?.['kind'])['toBe']('note'),expect(a?.['object'])['toBe']('0xalloc1'),expect(a?.['title'])['toContain']('Settlement\x20executed'),expect(a?.['detail'])['toContain']('5000'),expect(a?.['detail'])['toContain']('0xpay1'),expect(a?.['detail'])['toContain']('keeper');}),it('TreasuryEvent\x20→\x20op-labelled\x20note\x20(withdraw/deposit/receive)',()=>{const a=classifyProgression(ev('TreasuryEvent',{'object':'0xtre1','op':0x0,'amount':'7'}));expect(a?.['title'])['toContain']('withdraw'),expect(a?.['object'])['toBe']('0xtre1');const b=classifyProgression(ev('TreasuryEvent',{'object':'0xtre1','op':0x1}));expect(b?.['title'])['toContain']('deposit');const c=classifyProgression(ev('TreasuryEvent',{'object':'0xtre1','op':0x2}));expect(c?.['title'])['toContain']('receive');const e=classifyProgression(ev('TreasuryEvent',{'object':'0xtre1','op':0x9}));expect(e?.['title'])['toBe']('Treasury\x20operation\x20recorded');}),it('RewardClaimEvent\x20/\x20RewardFundEvent\x20→\x20reward\x20notes',()=>{const a=classifyProgression(ev('RewardClaimEvent',{'object':'0xrew1','recipient':'0xuser1','amount':'100','balance_left':'900'}));expect(a?.['kind'])['toBe']('note'),expect(a?.['title'])['toBe']('Reward\x20claimed'),expect(a?.['detail'])['toContain']('0xuser1'),expect(a?.['detail'])['toContain']('900');const b=classifyProgression(ev('RewardFundEvent',{'object':'0xrew1','amount':'1000','balance':'1000'}));expect(b?.['kind'])['toBe']('note'),expect(b?.['title'])['toBe']('Reward\x20pool\x20funded');}),it('NewPaymentEvent\x20is\x20deliberately\x20NOT\x20bridged\x20(keeper\x20owns\x20the\x20claim\x20reminder)',()=>{expect(classifyProgression(ev('NewPaymentEvent',{'object':'0xpay1','amount':'100'})))['toBeNull']();});}),describe('bridgeMonitorSuggestions',()=>{it('bridges\x20an\x20annotated\x20ProgressEvent\x20into\x20a\x20purchase_service\x20goal\x27s\x20suggestions',async()=>{const {deps:a,added:b}=depsOf(goalOf('monitoring','purchase_service')),c=await bridgeMonitorSuggestions({'network':NET,'events':[ev('ProgressEvent',{'progress':PROGRESS,'node':'deliver'})],'annotations':[annotation('1',PROGRESS)],'scope':scopeWithFocus(PROGRESS)},a);expect(c)['toBe'](0x1),expect(b[0x0]?.['kind'])['toBe']('note'),expect(b[0x0]?.['origin']?.['event_type'])['toBe']('ProgressEvent');}),it('drops\x20ProgressEvent\x20when\x20the\x20owning\x20goal\x20is\x20not\x20purchase_service',async()=>{const {deps:a,added:b}=depsOf(goalOf('monitoring','fulfill_order')),c=await bridgeMonitorSuggestions({'network':NET,'events':[ev('ProgressEvent',{'progress':PROGRESS})],'annotations':[annotation('1',PROGRESS)],'scope':scopeWithFocus(PROGRESS)},a);expect(c)['toBe'](0x0),expect(b)['toHaveLength'](0x0);}),it('bridges\x20DemandPresentEvent\x20via\x20the\x20demand\x20focus\x20field',async()=>{const {deps:a,added:b}=depsOf(goalOf('acting','publish_demand')),c=await bridgeMonitorSuggestions({'network':NET,'events':[ev('DemandPresentEvent',{'demand':DEMAND,'service':SERVICE})],'annotations':[annotation('1',DEMAND)],'scope':scopeWithFocus(DEMAND)},a);expect(c)['toBe'](0x1),expect(b[0x0]?.['object'])['toBe'](DEMAND);}),it('idempotency:\x20the\x20same\x20event\x20never\x20bridges\x20twice',async()=>{const {deps:a}=depsOf(goalOf('monitoring','purchase_service')),b={'network':NET,'events':[ev('ProgressEvent',{'progress':PROGRESS})],'annotations':[annotation('1',PROGRESS)],'scope':scopeWithFocus(PROGRESS)};expect(await bridgeMonitorSuggestions(b,a))['toBe'](0x1),expect(await bridgeMonitorSuggestions(b,a))['toBe'](0x0);}),it('relevance\x20gate:\x20un-annotated\x20events\x20never\x20bridge',async()=>{const {deps:a}=depsOf(goalOf('monitoring','purchase_service')),b=await bridgeMonitorSuggestions({'network':NET,'events':[ev('ProgressEvent',{'progress':PROGRESS})],'annotations':[],'scope':scopeWithFocus(PROGRESS)},a);expect(b)['toBe'](0x0);});});
@@ -1,22 +0,0 @@
1
- import type { AllocatorPayoff } from "../knowledge/recipient-constraint.js";
2
- export interface ArbitratorInterestInput {
3
- account: string;
4
- arbitration: string;
5
- vote_weight?: number;
6
- open_disputes: Array<{
7
- arb: string;
8
- order?: string;
9
- voting_deadline?: number;
10
- current_time?: number;
11
- }>;
12
- resolved_indemnities?: string[];
13
- fee_payoff?: AllocatorPayoff[];
14
- }
15
- export interface ArbitratorInterestAnalysis {
16
- fund_flow: string[];
17
- responsibility: string[];
18
- leverage: string[];
19
- stakes: string[];
20
- summary: string;
21
- }
22
- export declare function analyzeArbitratorInterest(input: ArbitratorInterestInput): ArbitratorInterestAnalysis;
@@ -1,23 +0,0 @@
1
- export interface DemanderInterestInput {
2
- account: string;
3
- demand: string;
4
- presenters: Array<{
5
- address: string;
6
- service?: string;
7
- acceptance_score?: number;
8
- }>;
9
- rewards: Array<{
10
- address: string;
11
- description?: string;
12
- }>;
13
- guards: string[];
14
- open: boolean;
15
- }
16
- export interface DemanderInterestAnalysis {
17
- fund_flow: string[];
18
- responsibility: string[];
19
- leverage: string[];
20
- stakes: string[];
21
- summary: string;
22
- }
23
- export declare function analyzeDemanderInterest(input: DemanderInterestInput): DemanderInterestAnalysis;
@@ -1,37 +0,0 @@
1
- export type EmployeeDepartment = "customer_service" | "logistics" | "finance" | "operations";
2
- export type EmployeeLiability = "merchant_bears" | "self_bears" | "hybrid";
3
- export interface EmployeeProfile {
4
- department: EmployeeDepartment;
5
- liability: EmployeeLiability;
6
- response_time_budget_ms?: number;
7
- }
8
- export interface ReactionKpi {
9
- node: string;
10
- reaction_ms: number;
11
- within_budget: boolean;
12
- status: "pass" | "warn" | "fail";
13
- }
14
- export interface LiabilityResolution {
15
- bears: "merchant" | "employee";
16
- must_compensate_before_resume: boolean;
17
- note: string;
18
- }
19
- export declare function assessReactionKpi(node: string, assigned_at: number, advanced_at: number | undefined, budget_ms?: number): ReactionKpi;
20
- export declare function resolveLiability(liability: EmployeeLiability, loss_amount: number, hybrid_threshold?: number): LiabilityResolution;
21
- export interface NodeTiming {
22
- node: string;
23
- assigned_at?: number;
24
- advanced_at?: number;
25
- source: "monitor_events" | "none";
26
- gap?: string;
27
- }
28
- export declare function deriveNodeTiming(timeline: Array<{
29
- node?: string;
30
- time: number;
31
- hold?: boolean | null;
32
- }>, node: string): NodeTiming;
33
- export interface EmployeeProfileValidation {
34
- valid: boolean;
35
- issues: string[];
36
- }
37
- export declare function validateEmployeeProfile(profile: EmployeeProfile): EmployeeProfileValidation;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,expect,it}from'vitest';import{deriveNodeTiming}from'./employee-kpi.js';describe('deriveNodeTiming',()=>{it('middle\x20node:\x20assigned_at\x20=\x20entry,\x20advanced_at\x20=\x20exit\x20(next\x20entry)',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8},{'node':'preparing','time':0x7d0},{'node':'shipped','time':0x2328}],'preparing');expect(a)['toEqual']({'node':'preparing','assigned_at':0x7d0,'advanced_at':0x2328,'source':'monitor_events'});}),it('first\x20node:\x20assigned_at\x20=\x20its\x20own\x20entry\x20(not\x20a\x20pre-monitor\x20gap)',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8},{'node':'preparing','time':0x7d0}],'received');expect(a['assigned_at'])['toBe'](0x3e8),expect(a['advanced_at'])['toBe'](0x7d0),expect(a['source'])['toBe']('monitor_events'),expect(a['gap'])['toBeUndefined']();}),it('last\x20observed\x20node\x20is\x20still\x20current:\x20advanced_at\x20undefined\x20(still\x20waiting),\x20no\x20gap',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8},{'node':'preparing','time':0x7d0}],'preparing');expect(a['assigned_at'])['toBe'](0x7d0),expect(a['advanced_at'])['toBeUndefined'](),expect(a['source'])['toBe']('monitor_events'),expect(a['gap'])['toBeUndefined']();}),it('node\x20not\x20found:\x20source\x20none\x20+\x20actionable\x20gap',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8}],'preparing');expect(a['source'])['toBe']('none'),expect(a['assigned_at'])['toBeUndefined'](),expect(a['advanced_at'])['toBeUndefined'](),expect(a['gap'])['toMatch'](/no ProgressEvent entering node 'preparing'/),expect(a['gap'])['toMatch'](/manually/);}),it('empty\x20timeline:\x20source\x20none',()=>{const a=deriveNodeTiming([],'received');expect(a['source'])['toBe']('none');}),it('hold\x20signals\x20are\x20not\x20entries:\x20a\x20hold\x20TOWARD\x20the\x20target\x20is\x20not\x20its\x20entry',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8},{'node':'preparing','time':0x5dc,'hold':!![]},{'node':'preparing','time':0x7d0},{'node':'shipped','time':0x2328}],'preparing');expect(a['assigned_at'])['toBe'](0x7d0),expect(a['advanced_at'])['toBe'](0x2328);}),it('hold\x20signals\x20are\x20not\x20exits:\x20a\x20hold\x20after\x20entry\x20leaves\x20the\x20node\x20still\x20current',()=>{const a=deriveNodeTiming([{'node':'received','time':0x3e8},{'node':'preparing','time':0x7d0},{'node':'shipped','time':0x9c4,'hold':![]}],'preparing');expect(a['assigned_at'])['toBe'](0x7d0),expect(a['advanced_at'])['toBeUndefined']();}),it('repeated\x20passages:\x20measures\x20the\x20FIRST\x20passage\x20through\x20the\x20node',()=>{const a=deriveNodeTiming([{'node':'review','time':0x3e8},{'node':'rework','time':0x7d0},{'node':'review','time':0xbb8},{'node':'done','time':0xfa0}],'review');expect(a['assigned_at'])['toBe'](0x3e8),expect(a['advanced_at'])['toBe'](0x7d0);}),it('self-loop:\x20an\x20advance\x20into\x20the\x20same\x20node\x20counts\x20as\x20exit\x20of\x20the\x20first\x20passage',()=>{const a=deriveNodeTiming([{'node':'poll','time':0x3e8},{'node':'poll','time':0x7d0}],'poll');expect(a['assigned_at'])['toBe'](0x3e8),expect(a['advanced_at'])['toBe'](0x7d0);});});
@@ -1,16 +0,0 @@
1
- import { SQLiteStorage } from "@wowok/wowok";
2
- import { type EmployeeProfile } from "./employee-kpi.js";
3
- export interface EmployeeStore {
4
- save(account: string, profile: EmployeeProfile): Promise<void>;
5
- get(account: string): Promise<EmployeeProfile | null>;
6
- remove(account: string): Promise<boolean>;
7
- }
8
- export declare class SqliteEmployeeStore implements EmployeeStore {
9
- private readonly kv;
10
- constructor(kv?: SQLiteStorage);
11
- save(account: string, profile: EmployeeProfile): Promise<void>;
12
- get(account: string): Promise<EmployeeProfile | null>;
13
- remove(account: string): Promise<boolean>;
14
- }
15
- export declare function getEmployeeStore(): EmployeeStore;
16
- export declare function setEmployeeStore(store: EmployeeStore): void;
@@ -1,25 +0,0 @@
1
- export type GamePhase = "build" | "in_flight" | "dispute" | "post";
2
- export type GameKernelId = "node_game" | "allocation_advice" | "arbitration_game" | "review_face";
3
- export declare const PHASE_KERNELS: Record<GamePhase, GameKernelId[]>;
4
- export interface GameContext {
5
- phase: GamePhase;
6
- focus_object: string | null;
7
- action_surface: GameKernelId[];
8
- dispute_active: boolean;
9
- terminal: boolean;
10
- time_anchors: {
11
- last_progress_at?: number;
12
- now: number;
13
- stalled_hours?: number;
14
- };
15
- }
16
- export interface GameContextInput {
17
- has_order: boolean;
18
- completed: boolean;
19
- refunded: boolean;
20
- dispute_active: boolean;
21
- focus_object?: string;
22
- last_progress_at?: number;
23
- now: number;
24
- }
25
- export declare function deriveGameContext(input: GameContextInput): GameContext;
@@ -1,2 +0,0 @@
1
- export * from "./employee-kpi.js";
2
- export * from "./employee-store.js";
@@ -1,68 +0,0 @@
1
- import type { OrderRadarResult } from "./radar-core.js";
2
- import { type AllocationAdvice, type AllocationPoolFacts } from "./allocation-advice.js";
3
- import { type GameContext, type GameKernelId } from "./game-context.js";
4
- import type { AllocatorPayoff } from "../knowledge/recipient-constraint.js";
5
- import { type NodeGameAdvice } from "../evaluation/node-game.js";
6
- import { type ArbGameAdvice } from "../evaluation/arbitration-game.js";
7
- import type { ArbStatus } from "../knowledge/arbitration-ledger.js";
8
- import type { ValueRiskAssessment } from "../evaluation/value-risk.js";
9
- import type { CommercialRole } from "../role/types.js";
10
- import { type RoleIntentPromptHints } from "../role/intent.js";
11
- import type { PersonaDrive } from "../evaluation/game-strategy.js";
12
- import type { CollaboratorInterestAnalysis } from "./collaborator-interest.js";
13
- import type { CustomerInterestAnalysis } from "./customer-interest.js";
14
- import type { MerchantInterestAnalysis } from "./merchant-interest.js";
15
- import type { SupplierInterestAnalysis } from "./supplier-interest.js";
16
- export interface AllocatorSummary {
17
- recipient_slots: number;
18
- guard_gated_slots: number;
19
- direct_to_me_slots: number;
20
- to_payer_slots: number;
21
- payoffs: AllocatorPayoff[];
22
- }
23
- export interface NodeActionInput {
24
- radar: OrderRadarResult;
25
- is_order_holder: boolean;
26
- order_amount?: unknown;
27
- token_type?: string;
28
- compensation_fund?: unknown;
29
- arbitration_bound: boolean;
30
- has_dispute: boolean;
31
- dispute_active: boolean;
32
- arb_status?: ArbStatus;
33
- rewards_count?: number;
34
- completed: boolean;
35
- refunded: boolean;
36
- allocation_pool?: AllocationPoolFacts;
37
- allocation_summary?: AllocatorSummary;
38
- last_progress_at?: number;
39
- now: number;
40
- unread_messages?: number;
41
- auto_accept?: {
42
- hours_left: number;
43
- accept_node: string;
44
- };
45
- persona_drive?: PersonaDrive;
46
- intent_hints?: RoleIntentPromptHints;
47
- }
48
- export interface ActionAdvice {
49
- action: string;
50
- via: string;
51
- preconditions: string[];
52
- assessment: ValueRiskAssessment;
53
- cost_of_delay?: string;
54
- counterparty_moves: string[];
55
- evidence_refs: string[];
56
- }
57
- export interface NodeActionAdvice {
58
- role: CommercialRole;
59
- context: GameContext;
60
- kernels_run: GameKernelId[];
61
- interest_analysis?: MerchantInterestAnalysis | SupplierInterestAnalysis | CollaboratorInterestAnalysis | CustomerInterestAnalysis;
62
- fund_advice?: AllocationAdvice;
63
- node_game?: NodeGameAdvice;
64
- arb_game?: ArbGameAdvice;
65
- advisory_gaps: string[];
66
- actions: ActionAdvice[];
67
- }
68
- export declare function buildNodeActionAdvice(input: NodeActionInput): NodeActionAdvice;
@@ -1,48 +0,0 @@
1
- export interface TimeWindowTableEntry {
2
- identifier: number;
3
- value?: unknown;
4
- value_type?: unknown;
5
- name?: string;
6
- b_submission?: boolean;
7
- }
8
- export interface TimeWindowGuardDef {
9
- address?: string;
10
- root?: unknown;
11
- table?: TimeWindowTableEntry[];
12
- }
13
- export interface TimeWindowBoundary {
14
- direction: "opens" | "closes";
15
- boundary_ms: number;
16
- anchor: "absolute" | "node_entry";
17
- anchor_node?: string | null;
18
- guard?: string | null;
19
- forward?: string | null;
20
- unresolved_note?: string;
21
- }
22
- export interface DerivedTimeWindow {
23
- earliest_allowed_ms: number | null;
24
- deadline_ms: number | null;
25
- boundaries: TimeWindowBoundary[];
26
- note: string;
27
- }
28
- export interface DeriveTimeWindowInput {
29
- guards: Array<{
30
- guard?: string | null;
31
- forward?: string | null;
32
- def: TimeWindowGuardDef;
33
- }>;
34
- current_node?: string;
35
- last_progress_at?: number;
36
- }
37
- export declare function deriveTimeWindow(input: DeriveTimeWindowInput): DerivedTimeWindow;
38
- export interface AutoAcceptCountdown {
39
- auto_accept_at_ms: number;
40
- hours_left: number;
41
- forward?: string | null;
42
- accept_node: string;
43
- anchor_node: string;
44
- }
45
- export declare function autoAcceptCountdown(tw: DerivedTimeWindow, outgoing: Array<{
46
- forward?: string | null;
47
- node: string;
48
- }>, current_node: string, last_progress_at?: number, now?: number): AutoAcceptCountdown | null;
@@ -1,33 +0,0 @@
1
- import { type FacetId } from "../evaluation/facets/catalog.js";
2
- import type { Industry, PersonaFacetSettings, PersonaRole } from "./types.js";
3
- export interface IndustryFacetTemplate {
4
- label: string;
5
- order: readonly FacetId[];
6
- rationale: string;
7
- }
8
- export declare const INDUSTRY_FACET_DEFAULTS: Readonly<Record<string, IndustryFacetTemplate>>;
9
- export declare function getIndustryFacetTemplate(industry?: Industry): IndustryFacetTemplate | undefined;
10
- export interface ResolvedFacetSetting {
11
- visible: boolean;
12
- order: number;
13
- weight?: number;
14
- threshold?: number;
15
- }
16
- export interface ResolvedFacetProfile {
17
- role?: PersonaRole;
18
- industry?: string;
19
- personaApplied: boolean;
20
- sources: string[];
21
- facets: Record<FacetId, ResolvedFacetSetting>;
22
- }
23
- export interface ResolveFacetProfileInput {
24
- role?: PersonaRole;
25
- industry?: Industry;
26
- personaEvaluation?: {
27
- facets?: PersonaFacetSettings;
28
- };
29
- personaApplied?: boolean;
30
- request?: PersonaFacetSettings;
31
- }
32
- export declare function resolveFacetProfile(input?: ResolveFacetProfileInput): ResolvedFacetProfile;
33
- export declare function deriveRuleWeights(profile: ResolvedFacetProfile): Record<string, number>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{afterEach,beforeEach,describe,expect,it}from'vitest';import{existsSync,mkdtempSync,rmSync}from'node:fs';import{tmpdir}from'node:os';import{join}from'node:path';import{handlePersonaOperation}from'../tools/handlers/persona.js';import{clearJudgmentLayers,clearJudgmentOverrides,getJudgmentDoc}from'../config/judgment.js';import{setPersonaStore}from'./store.js';class MemoryStore{['map']=new Map();['key'](a,b){return a+':'+(b??'system');}async['get'](a,b){return this['map']['get'](this['key'](a,b))??null;}async['list'](){return Array['from'](this['map']['values']());}async['put'](a){this['map']['set'](this['key'](a['scope'],a['account']),a);}async['delete'](a,b){return this['map']['delete'](this['key'](a,b));}}const store=new MemoryStore();let configDir;async function personaGet(a={}){const b=await handlePersonaOperation({'action':'get',...a});return b['structuredContent']['result'];}async function personaSet(a,b={}){const c=await handlePersonaOperation({'action':'set','scope':b['scope']??'system',...b['account']?{'account':b['account']}:{},'role':b['role']??'customer','industries':b['industries']??[],'long_term':a,'confirm':!![]});return c['structuredContent']['result']['persona'];}beforeEach(()=>{configDir=mkdtempSync(join(tmpdir(),'wowok-persona-audit-')),process['env']['WOWOK_CONFIG_DIR']=configDir,setPersonaStore(store);}),afterEach(async()=>{for(const a of await store['list']())await store['delete'](a['scope'],a['account']);delete process['env']['WOWOK_CONFIG_DIR'];if(existsSync(configDir))rmSync(configDir,{'recursive':!![],'force':!![]});clearJudgmentLayers(),clearJudgmentOverrides();}),describe('persona\x20audit\x20—\x20identity\x20&\x20free-text\x20fields\x20(context_text)',()=>{it('1.\x20identity.self_description\x20/\x20region\x20/\x20languages\x20win\x20on\x20the\x20SYSTEM\x20channel;\x20base\x20only\x20backfills',async()=>{const a=await personaGet();expect(a['context_text'])['toContain']('-\x20self:\x20generic\x20WoWok\x20user'),expect(a['context_text'])['not']['toContain']('-\x20region:\x20AUDIT-REGION'),await personaSet({'identity':{'self_description':'AUDIT\x20persona\x20self','region':'AUDIT-REGION','languages':['zh','en']}});const b=await personaGet();expect(b['context_text'])['toContain']('-\x20self:\x20AUDIT\x20persona\x20self'),expect(b['context_text'])['not']['toContain']('generic\x20WoWok\x20user'),expect(b['context_text'])['toContain']('-\x20region:\x20AUDIT-REGION'),expect(b['context_text'])['toContain']('-\x20languages:\x20zh,\x20en');}),it('2.\x20long_term.preferences\x20custom\x20key-values\x20surface\x20in\x20injection.preferences',async()=>{const a=await personaGet();expect(a['injection']['preferences']?.['audit_color'])['toBeUndefined'](),await personaSet({'preferences':{'audit_color':'teal','prefers_weekend_slots':!![]}});const b=await personaGet();expect(b['injection']['preferences']?.['audit_color'])['toBe']('teal'),expect(b['injection']['preferences']?.['prefers_weekend_slots'])['toBe'](!![]),expect(b['context_text'])['not']['toContain']('audit_color');}),it('3.\x20strategy\x20/\x20rules\x20/\x20requirements\x20each\x20render\x20as\x20their\x20own\x20context\x20section',async()=>{const a=await personaGet();expect(a['context_text'])['not']['toContain']('-\x20strategy:'),expect(a['context_text'])['not']['toContain']('-\x20rules:'),expect(a['context_text'])['not']['toContain']('-\x20requirements:'),await personaSet({'strategy':['AUDIT\x20strategy:\x20ship\x20weekly'],'rules':['AUDIT\x20rule:\x20never\x20auto-accept'],'requirements':['AUDIT\x20requirement:\x20escrow\x20only']});const b=await personaGet();expect(b['context_text'])['toContain']('-\x20strategy:\x0a\x20\x20-\x20AUDIT\x20strategy:\x20ship\x20weekly'),expect(b['context_text'])['toContain']('-\x20rules:\x0a\x20\x20-\x20AUDIT\x20rule:\x20never\x20auto-accept'),expect(b['context_text'])['toContain']('-\x20requirements:\x0a\x20\x20-\x20AUDIT\x20requirement:\x20escrow\x20only');}),it('4.\x20long_term.spec\x20free\x20text\x20lands\x20verbatim\x20under\x20\x27-\x20spec:\x27',async()=>{const a=await personaGet();expect(a['context_text'])['not']['toContain']('-\x20spec:'),await personaSet({'spec':'AUDIT\x20spec\x20free\x20text:\x20prefer\x20written\x20confirmations.'});const b=await personaGet();expect(b['context_text'])['toContain']('-\x20spec:\x0aAUDIT\x20spec\x20free\x20text:\x20prefer\x20written\x20confirmations.');}),it('13.\x20unset\x20fields\x20produce\x20NO\x20context\x20noise\x20(no\x20empty\x20sections)',async()=>{const a=(await personaGet())['context_text'];expect(a)['not']['toContain']('-\x20strategy:'),expect(a)['not']['toContain']('-\x20rules:'),expect(a)['not']['toContain']('-\x20requirements:'),expect(a)['not']['toContain']('-\x20spec:'),expect(a)['not']['toContain']('safety\x20policy'),expect(a)['not']['toContain']('-\x20active\x20role\x20profile:');});}),describe('persona\x20audit\x20—\x20role-slot\x20profiles',()=>{it('5.\x20profiles.merchant.posture/pricing_style\x20reach\x20context\x20AND\x20injection\x20(account\x20channel)',async()=>{const a='0xaudit-merchant',b=await personaGet({'account':a});expect(b['context_text'])['not']['toContain']('strategic\x20posture'),await personaSet({'profiles':{'merchant':{'merchant':{'posture':'volume','pricing_style':'competitive'}}}},{'scope':'account','account':a,'role':'merchant'});const c=await personaGet({'account':a});expect(c['context_text'])['toContain']('strategic\x20posture:\x20volume'),expect(c['context_text'])['toContain']('pricing\x20style:\x20competitive'),expect(c['injection']['preferences']?.['merchant_posture'])['toBe']('volume'),expect(c['injection']['preferences']?.['merchant_pricing_style'])['toBe']('competitive'),expect(c['injection']['preferences']?.['active_role'])['toBe']('merchant');}),it('6.\x20profiles.customer.tastes/consumption\x20reach\x20context\x20AND\x20injection',async()=>{const a=await personaGet();expect(a['injection']['preferences']?.['taste_tags'])['toBeUndefined'](),await personaSet({'profiles':{'customer':{'tastes':{'tags':['minimalist'],'avoid':['loud\x20colors']},'consumption':{'price_band':'premium','decision_speed':'deliberate'}}}});const b=await personaGet();expect(b['context_text'])['toContain']('taste\x20tags:\x20minimalist'),expect(b['context_text'])['toContain']('taste\x20avoid:\x20loud\x20colors'),expect(b['context_text'])['toContain']('price\x20band:\x20premium'),expect(b['context_text'])['toContain']('decision\x20speed:\x20deliberate'),expect(b['injection']['preferences']?.['taste_tags'])['toEqual'](['minimalist']),expect(b['injection']['preferences']?.['buy_price_band'])['toBe']('premium');});}),describe('persona\x20audit\x20—\x20safety\x20controls\x20(policy\x20/\x20overrides)',()=>{it('7.\x20policy.confirm.mode\x20/\x20budget.daily_wow\x20/\x20allowlist\x20/\x20audit\x20reflect\x20in\x20context;\x20policy_keys\x20list\x20the\x20surface',async()=>{const a=await personaGet();expect(a['context_text'])['not']['toContain']('safety\x20policy'),await personaSet({'policy':{'confirm':{'mode':'quiet'},'budget':{'daily_wow':'5000'},'allowlist':['0xallow'],'audit':!![]}});const b=await personaGet();expect(b['context_text'])['toContain']('confirm\x20mode:\x20quiet'),expect(b['context_text'])['toContain']('daily\x20spend\x20ceiling:\x205000\x20base\x20units'),expect(b['context_text'])['toContain']('allowlist:\x200xallow'),expect(b['context_text'])['toContain']('audit\x20logging:\x20on');const c=b['controls']?.['policy_keys']??[];expect(c)['toContain']('confirm.mode'),expect(c)['toContain']('budget.daily_wow'),expect(c)['toContain']('allowlist'),expect(c)['toContain']('audit');}),it('8.\x20overrides\x20value\x20reaches\x20context_text;\x20controls\x20catalog\x20lists\x20the\x20id\x20as\x20client-surface',async()=>{const a=await personaGet();expect(a['context_text'])['not']['toContain']('rule\x20override'),await personaSet({'overrides':{'client.account_switch':'block'}});const b=await personaGet();expect(b['context_text'])['toContain']('rule\x20override\x20client.account_switch:\x20block');const c=b['controls']?.['overrides']['find'](d=>d['id']==='client.account_switch');expect(c?.['surface'])['toBe']('client'),expect(c?.['default'])['toBe']('prompt');}),it('12.\x20apply_delta\x20rejects\x20policy\x20/\x20overrides\x20/\x20judgment\x20(AI_DELTA_FORBIDDEN_KEYS),\x20allows\x20plain\x20deltas',async()=>{const a=await handlePersonaOperation({'action':'apply_delta','scope':'system','delta':{'strategy':['audit\x20delta\x20strategy']}}),b=a['structuredContent']['result'];expect(b['persona']['current']['strategy'])['toContain']('audit\x20delta\x20strategy'),await expect(handlePersonaOperation({'action':'apply_delta','scope':'system','delta':{'policy':{'confirm':{'mode':'quiet'}}}}))['rejects']['toThrow'](/policy/),await expect(handlePersonaOperation({'action':'apply_delta','scope':'system','delta':{'overrides':{'confirm.default_values':'auto'}}}))['rejects']['toThrow'](/overrides/),await expect(handlePersonaOperation({'action':'apply_delta','scope':'system','delta':{'judgment':{'game':{'scoring':{'base':0x46}}}}}))['rejects']['toThrow'](/judgment/),await expect(handlePersonaOperation({'action':'apply_delta','scope':'system','delta':{'match':{'demand_to_supply':{'policy_id':'ai_written'}}}}))['rejects']['toThrow'](/match/);});}),describe('persona\x20audit\x20—\x20analyze,\x20role\x20and\x20judgment\x20channels',()=>{it('9.\x20analyze.key_questions\x20(4\x20stored)\x20collapse\x20to\x20exactly\x20the\x20FIRST\x202\x20in\x20analyze_questions',async()=>{const a=await personaGet();expect(a['analyze_questions'])['toEqual']([]),await personaSet({'analyze':{'key_questions':['AUDIT\x20Q1','AUDIT\x20Q2','AUDIT\x20Q3','AUDIT\x20Q4']}});const b=await personaGet();expect(b['analyze_questions'])['toEqual'](['AUDIT\x20Q1','AUDIT\x20Q2']);}),it('10.\x20system\x20persona\x20role/industries\x20win\x20the\x20vote;\x20account\x20channel\x20still\x20outranks\x20system',async()=>{const a=await personaGet();expect(a['context_text'])['toContain']('#\x20Effective\x20Persona\x20(role=customer,\x20industries=any)'),expect(a['injection']['intent'])['toContain']('role=customer'),await personaSet({'strategy':['AUDIT\x20system\x20strategy']},{'role':'arbitrator','industries':['rental']});const b=await personaGet();expect(b['context_text'])['toContain']('#\x20Effective\x20Persona\x20(role=arbitrator,\x20industries=rental)'),expect(b['injection']['intent'])['toContain']('role=arbitrator;\x20industries=rental'),expect(b['context_text'])['toContain']('AUDIT\x20system\x20strategy');const c='0xaudit-role';await personaSet({'strategy':['AUDIT\x20account\x20strategy']},{'scope':'account','account':c,'role':'supplier','industries':['education']});const d=await personaGet({'account':c});expect(d['context_text'])['toContain']('#\x20Effective\x20Persona\x20(role=supplier,\x20industries=education)'),expect(d['injection']['intent'])['toContain']('role=supplier;\x20industries=education');}),it('11.\x20persona\x20set\x20accepts\x20a\x20judgment\x20fragment\x20and\x20the\x20fragment\x20reaches\x20getJudgmentDoc',async()=>{expect(getJudgmentDoc()['game']['scoring']['base'])['toBe'](0x3c);const a=await personaSet({'judgment':{'game':{'scoring':{'base':0x4b}}}});expect(a['long_term']['judgment'])['toBeDefined'](),await personaGet(),expect(getJudgmentDoc()['game']['scoring']['base'])['toBe'](0x4b);});}),describe('persona\x20audit\x20—\x20long_term\x20confirmation\x20gate',()=>{it('set\x20with\x20a\x20long_term\x20payload\x20throws\x20without\x20confirm=true\x20and\x20writes\x20nothing',async()=>{await expect(handlePersonaOperation({'action':'set','scope':'system','role':'customer','industries':[],'long_term':{'strategy':['UNCONFIRMED\x20strategy']}}))['rejects']['toThrow'](/requires explicit human confirmation/);const a=await store['list']();expect(a['find'](b=>b['scope']==='system'&&b['long_term']['strategy']?.['includes']('UNCONFIRMED\x20strategy')))['toBeUndefined']();}),it('a\x20current-only\x20set\x20needs\x20no\x20confirmation',async()=>{const a=await handlePersonaOperation({'action':'set','scope':'system','role':'customer','industries':[],'current':{'strategy':['CURRENT\x20ok\x20without\x20confirm']}}),b=a['structuredContent']['result'];expect(b['persona']['current']['strategy'])['toEqual'](['CURRENT\x20ok\x20without\x20confirm']);});});