@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 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,expect,it}from'vitest';import{ENTRYPOINT}from'@wowok/wowok';import{FakeDataPlane}from'../../graph/onchain/dataplane.js';import{expandTopology}from'../../graph/onchain/expand.js';import{FULL,GAP,fullServiceState,gapServiceState,truncatedServiceState}from'../../graph/onchain/fixtures.js';import{buildViewport}from'../../graph/onchain/viewport.js';import{runAnalyzers}from'../../graph/onchain/analyze.js';import{EVALUATION_SERVICE_INTENTS,resolveExpansionStrategy,withEvaluationBundle}from'../../graph/onchain/strategy.js';import{projectEvaluationFacts as a87a}from'../../graph/onchain/facts.js';import{evaluateGraphServiceFacts,GRAPH_RULE_INPUT_FACTS,registerGraphServiceEvaluations}from'./graph-service.js';async function evalState(a,b){registerGraphServiceEvaluations();const c=withEvaluationBundle(resolveExpansionStrategy({'intents':[...EVALUATION_SERVICE_INTENTS]})),d=await expandTopology(new FakeDataPlane(a),{'network':ENTRYPOINT['Mainnet'],'seed':b,'edges':c['edges'],'budget':c['budget']}),e=buildViewport(d,b,'neutral'),f=a87a(e,b,runAnalyzers(e));return{'projected':f,'r':await evaluateGraphServiceFacts(f)};}const scoreOf=(a,b,c)=>a[b]['breakdown']['find'](d=>d['rule_id']===c);describe('graph\x20service\x20evaluation\x20—\x20fully\x20hooked\x20shop\x20(TR-14.1)',()=>{it('scores\x20all\x20nine\x20dimensions\x20from\x20material\x20facts\x20with\x20no\x20default-low\x20deductions',async()=>{const {r:a}=await evalState(fullServiceState(),FULL['svc']);expect(a['unverified'])['toEqual']([]),expect(a['completeness'])['toBe'](0x64);const c=scoreOf(a,'trust','trust_arbitration');expect(c['score'])['toBe'](0x64),expect(c['matched'])['toEqual'](expect['arrayContaining'](['arbitrator\x20roster\x20configured','arbitration\x20fee\x20funded','arbitration\x20active'])),expect(c['reason'])['toContain']('Arbitration\x2020/20'),expect(scoreOf(a,'trust','trust_reviews')['score'])['toBe'](0x28),expect(scoreOf(a,'trust','trust_fulfillment')['score'])['toBe'](0x19);const d=scoreOf(a,'trust','trust_fund_safety');expect(d['score'])['toBe'](0x0),expect(d['mismatched'])['toContain']('compensation\x20fund\x20below\x20the\x20statutory\x203x\x20largest-order\x20exposure\x20ceiling'),expect(scoreOf(a,'trust','trust_transparency')['score'])['toBe'](0x64),expect(a['trust']['total'])['toBe'](0x31);const e=scoreOf(a,'risk','risk_fund');expect(e['score'])['toBeLessThan'](0x64),expect(e['mismatched'])['toContain']('Payout\x20exposure:\x20compensation\x20fund\x20cannot\x20cover\x20a\x20maximum-multiple\x20award\x20on\x20the\x20largest\x20windowed\x20order'),expect(e['mismatched']?.['some'](h=>h['startsWith']('R2:')))['toBe'](![]),expect(e['finding_refs']?.['map'](h=>h['id']))['toContain']('R2:'+FULL['svc']['toLowerCase']());const f=scoreOf(a,'risk','risk_trust');expect(f['score'])['toBeLessThan'](0x64),expect(f['mismatched']?.['some'](h=>h['startsWith']('R1:')))['toBe'](![]),expect(f['mismatched']?.['length'])['toBeGreaterThan'](0x0),expect(f['finding_refs']?.['some'](h=>h['id']['startsWith']('R1:')))['toBe'](!![]);for(const h of[...a['trust']['breakdown'],...a['risk']['breakdown']]){for(const i of h['mismatched']??[])expect(i)['not']['toContain']('::node::');}expect(scoreOf(a,'risk','risk_workflow')['score'])['toBe'](0x64),expect(scoreOf(a,'risk','risk_behavior')['score'])['toBe'](0x64);for(const j of[...a['trust']['breakdown'],...a['risk']['breakdown']]){const k=(j['reason']??'')['toLowerCase']();expect(k)['not']['toContain']('no\x20data'),expect(k)['not']['toContain']('default\x20low');}const g=a['trust']['trace']['filter'](l=>l['kind']==='rule'&&l['detail']['startsWith']('score='));expect(g['map'](l=>l['id']))['toEqual'](expect['arrayContaining'](Object['keys'](GRAPH_RULE_INPUT_FACTS)['filter'](l=>l['startsWith']('trust_'))));}),it('keeps\x20the\x20injection\x20+\x20requirement\x20mechanisms\x20working',async()=>{const {projected:a}=await evalState(fullServiceState(),FULL['svc']),b=await evaluateGraphServiceFacts(a,{'overrides':{'rules':{'trust_arbitration':{'weight':0x28}}}});expect(b['trust']['total'])['toBe'](0x3a);const c=await evaluateGraphServiceFacts(a,{'requirements':[{'rule_id':'trust_fund_safety','condition':'require'}]});expect(c['trust']['blocked'])['toBe'](!![]),expect(c['trust']['red_flags']['length'])['toBeGreaterThan'](0x0);});}),describe('graph\x20service\x20evaluation\x20—\x20configured-empty\x20shell\x20(TR-14.1)',()=>{it('scores\x20verified\x20absence\x20as\x20a\x20configured\x20fact\x20and\x20excludes\x20only\x20the\x20gap\x20dimension',async()=>{const {r:a}=await evalState(gapServiceState(),GAP['svc']),b=scoreOf(a,'trust','trust_arbitration');expect(b['score'])['toBe'](0x0),expect(b['reason'])['toContain']('verified\x20absence'),expect(scoreOf(a,'trust','trust_reviews')['score'])['toBe'](0x32),expect(a['unverified'])['toEqual'](['risk_workflow']),expect(scoreOf(a,'risk','risk_workflow'))['toBeUndefined'](),expect(a['risk']['unverified'])['toEqual'](['risk_workflow']),expect(a['trust']['unverified'])['toEqual'](['risk_workflow']);const c=a['risk']['trace']['find'](d=>d['kind']==='rule'&&d['id']==='risk_workflow');expect(c?.['detail'])['toContain']('not\x20applicable'),expect(scoreOf(a,'trust','trust_transparency')['score'])['toBe'](0x28),expect(scoreOf(a,'trust','trust_fund_safety')['score'])['toBe'](0x0);});}),describe('graph\x20service\x20evaluation\x20—\x20truncated\x20order\x20window\x20(TR-14.1)',()=>{it('excludes\x20the\x20unverifiable\x20dimensions\x20and\x20renormalizes\x20the\x20weighted\x20total',async()=>{const {r:a}=await evalState(truncatedServiceState(),FULL['svc']);expect(a['unverified'])['toEqual'](expect['arrayContaining'](['trust_fulfillment','trust_fund_safety','risk_fund','risk_behavior'])),expect(scoreOf(a,'trust','trust_fulfillment'))['toBeUndefined'](),expect(scoreOf(a,'trust','trust_fund_safety'))['toBeUndefined'](),expect(scoreOf(a,'risk','risk_fund'))['toBeUndefined'](),expect(scoreOf(a,'risk','risk_behavior'))['toBeUndefined'](),expect(a['trust']['total'])['toBe'](0x44);for(const b of['trust_fulfillment','trust_fund_safety']){expect(a['trust']['trace']['find'](c=>c['kind']==='rule'&&c['id']===b)?.['detail'])['toContain']('not\x20applicable');}for(const c of['risk_fund','risk_behavior']){expect(a['risk']['trace']['find'](d=>d['kind']==='rule'&&d['id']===c)?.['detail'])['toContain']('not\x20applicable');}});}),describe('graph\x20service\x20evaluation\x20—\x20scoring\x20report\x20(TR-14.2)',()=>{it('renders\x20a\x20per-dimension\x20report\x20with\x20score,\x20weight,\x20state,\x20confidence\x20and\x20evidence',async()=>{const {projected:a,r:c}=await evalState(fullServiceState(),FULL['svc']),d=new Map(a['facts']['map'](g=>[g['key'],g])),e=[];for(const g of['trust','risk']){const h=c[g];e['push'](g['toUpperCase']()+'\x20'+h['total']+'/100\x20('+h['level']+')\x20—\x20'+h['summary']);for(const i of h['breakdown']){const j=GRAPH_RULE_INPUT_FACTS[i['rule_id']]??[],k=j['map'](o=>o+':state='+(d['get'](o)?.['state']??'missing')),l=j['map'](o=>d['get'](o)?.['provenance']['confidence']??'missing'),n=j['map'](o=>d['get'](o)?.['evidence']??'missing')['join']('\x20');e['push'](i['rule_id']+':\x20score='+i['score']+'\x20weight='+i['weight']+'\x20'+k['join'](',')+'\x20confidence='+[...new Set(l)]['join']('+')+'\x20evidence=\x22'+n+'\x22');}}expect(e)['toHaveLength'](0xb);const f=e['filter'](o=>o['includes']('score='));expect(f)['toHaveLength'](0x9);for(const o of f){expect(o)['toMatch'](/weight=\d+/),expect(o)['toContain']('state=present'),expect(o)['toMatch'](/confidence=(exact|bounded|windowed|derived)/);const p=o['match'](/evidence="(.*)"/);expect(p,o)['not']['toBeNull'](),expect(p[0x1]['length'],o)['toBeGreaterThan'](0x0);}expect(c['trust']['summary'])['toContain']('weakest\x20Fund\x20safety'),expect(c['trust']['summary'])['not']['toContain']('trust_fund_safety'),expect(c['trust']['summary'])['toMatch'](/grade: (strong|fair|weak)/),expect(c['trust']['summary'])['toContain']('Compensation\x20fund');});});
@@ -1,4 +0,0 @@
1
- export declare function registerBuiltinEvaluations(): void;
2
- export { registerDemandMatchEvaluation, matchDemandToServices, matchServiceToDemands, DEMAND_MATCH_EVALUATION, type DemandMatch, type ServiceMatch, } from "./demand-match.js";
3
- export { registerArbitrationScoreEvaluation, assessArbitration, ARBITRATION_TRUST_EVALUATION, ARBITRATION_FAIRNESS_EVALUATION, } from "./arbitration-score.js";
4
- export { registerGraphServiceEvaluations, evaluateGraphServiceFacts, GRAPH_TRUST_EVALUATION, GRAPH_RISK_EVALUATION, GRAPH_RULE_INPUT_FACTS, type GraphServiceEvaluation, } from "./graph-service.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,it,expect}from'vitest';import{readdirSync,readFileSync}from'node:fs';import{dirname,join}from'node:path';import{fileURLToPath}from'node:url';import{importSourcesOf,namedSdkImportsOf,stripComments}from'../guard-scan.js';const BUILTINS_DIR=dirname(fileURLToPath(import.meta.url)),ALLOWED_SDK_NAMED=new Set(['MAX_VOTING_GUARD_COUNT']),BANNED_TOKENS=[[/assembleInfoPuzzle/,'legacy\x20puzzle\x20assembler'],[/puzzle_raw/,'legacy\x20puzzle_raw\x20entry'],[/PuzzleRawData/,'legacy\x20PuzzleRawData\x20type'],[/info-puzzle/,'legacy\x20info-puzzle\x20module'],[/\bquery_objects\b/,'SDK\x20query_objects'],[/\bquery_table\b/,'SDK\x20query_table'],[/\bquery_services\b/,'SDK\x20query_services'],[/\bquery_arbs\b/,'SDK\x20query_arbs'],[/\bSdkDataPlane\b/,'SdkDataPlane\x20chain\x20IO'],[/\bLocalMark\b/,'LocalMark\x20store\x20access'],[/\bnetwork_get\b/,'authority\x20network\x20read'],[/fetchObjectLinker/,'linker\x20chain\x20IO']];function runtimeSources(){return readdirSync(BUILTINS_DIR)['filter'](a=>a['endsWith']('.ts')&&!a['endsWith']('.spec.ts'))['sort']()['map'](a=>({'file':a,'text':stripComments(readFileSync(join(BUILTINS_DIR,a),'utf8'))}));}describe('TR-15.1\x20builtins\x20purity',()=>{const a=runtimeSources();it('has\x20runtime\x20files\x20to\x20guard',()=>{expect(a['length'])['toBeGreaterThan'](0x0);}),it('imports\x20only\x20relative\x20modules\x20(and\x20whitelisted\x20SDK\x20constants)',()=>{for(const {file:b,text:c}of a){for(const d of importSourcesOf(c)){if(d['startsWith']('.'))continue;if(d==='@wowok/wowok'){const e=namedSdkImportsOf(c)['filter'](f=>!ALLOWED_SDK_NAMED['has'](f));expect(e,b+'\x20imports\x20non-constant\x20SDK\x20symbols:\x20'+e['join'](',\x20'))['toEqual']([]);continue;}throw new Error(b+'\x20imports\x20non-relative\x20module\x20\x22'+d+'\x22\x20—\x20builtins\x20must\x20stay\x20pure');}}}),it('carries\x20no\x20chain-IO\x20or\x20legacy-puzzle\x20entry',()=>{for(const {file:b,text:c}of a){for(const [d,e]of BANNED_TOKENS){expect(d['test'](c),b+'\x20references\x20'+e)['toBe'](![]);}}});});
@@ -1,38 +0,0 @@
1
- import type { CapabilityVector, WorkflowCapabilities } from "./capability.js";
2
- import type { CapabilityId } from "../extensions/capability.js";
3
- export interface CompositePlan {
4
- demand: string;
5
- services: Array<{
6
- id: string;
7
- covered: Array<keyof WorkflowCapabilities>;
8
- }>;
9
- coverage_score: number;
10
- remaining_missing: Array<keyof WorkflowCapabilities>;
11
- feasibility: "ready" | "needs_supply_chain" | "infeasible";
12
- summary: string;
13
- }
14
- export declare function composeServicesForDemand(demand: CapabilityVector, services: CapabilityVector[]): CompositePlan;
15
- export interface ComposeProbeBlocker {
16
- code: string;
17
- detail: string;
18
- }
19
- export interface ComposeProbeResult {
20
- capabilities: CapabilityId[];
21
- feasible: boolean;
22
- blockers: ComposeProbeBlocker[];
23
- risks: string[];
24
- disclosures: string[];
25
- cost_delta: {
26
- gas_objects: number;
27
- funds: string[];
28
- };
29
- provides: Array<keyof WorkflowCapabilities>;
30
- plan_steps?: number;
31
- audit_score?: number;
32
- templates_version: number;
33
- }
34
- interface ComposeProbeOptions {
35
- baseTemplate?: string;
36
- }
37
- export declare function composeProbe(capabilityIds: CapabilityId[], opts?: ComposeProbeOptions): ComposeProbeResult;
38
- export {};
@@ -1,19 +0,0 @@
1
- import type { PersonaRole } from "../../persona/types.js";
2
- export type FacetMeasureKind = "score" | "signal" | "quantity" | "graph";
3
- export type FacetId = "fund_safety" | "reputation" | "arbitration" | "fulfillment" | "offering_price" | "workflow" | "fund_flow" | "supply_chain" | "permission" | "my_stakes";
4
- export interface FacetDef {
5
- id: FacetId;
6
- label: string;
7
- question: string;
8
- measures: readonly FacetMeasureKind[];
9
- ruleIds?: readonly string[];
10
- defaultOrder: number;
11
- }
12
- export declare const FACET_CATALOG: readonly FacetDef[];
13
- export declare function facetDef(id: string): FacetDef | undefined;
14
- export declare const FACET_IDS: readonly FacetId[];
15
- export interface RoleFacetDefault {
16
- order: readonly FacetId[];
17
- rationale: string;
18
- }
19
- export declare const ROLE_FACET_DEFAULTS: Readonly<Record<PersonaRole, RoleFacetDefault>>;
@@ -1,2 +0,0 @@
1
- import type { CapabilityGapReport, CapabilityVector } from "./capability.js";
2
- export declare function summarizeCapabilityGaps(demand: CapabilityVector, service: CapabilityVector): CapabilityGapReport;
@@ -1,10 +0,0 @@
1
- export declare function stripComments(text: string): string;
2
- export declare function importSourcesOf(code: string): string[];
3
- export declare function namedSdkImportsOf(text: string): string[];
4
- export declare const SDK_CONSTANT_ALLOWLIST: Set<string>;
5
- export declare const ONCHAIN_IO_CALLS: Array<[RegExp, string]>;
6
- export declare function onchainIoCalls(strippedCode: string): string[];
7
- export declare function listRuntimeSources(dir: string): Array<{
8
- file: string;
9
- text: string;
10
- }>;
@@ -1,14 +0,0 @@
1
- export * from "./types.js";
2
- export * from "./user-injection.js";
3
- export * from "./acceptance.js";
4
- export * from "./region.js";
5
- export * from "./capability.js";
6
- export * from "./extract.js";
7
- export * from "./gap.js";
8
- export * from "./composer.js";
9
- export * from "./game-strategy.js";
10
- export * from "./node-game.js";
11
- export * from "./arbitration-game.js";
12
- export * from "./path-reasoning.js";
13
- export * from "./builtins/index.js";
14
- export { EvaluationEngine, getEvaluationEngine, levelFromScore } from "./engine.js";
@@ -1,6 +0,0 @@
1
- import { type UserProfile } from "../experience/index.js";
2
- import { type IntentRecord } from "../intent/index.js";
3
- import type { UserInjection } from "./types.js";
4
- export declare function experienceToInjection(profile: UserProfile | null | undefined): UserInjection | undefined;
5
- export declare function intentToInjection(intents: IntentRecord[] | null | undefined): UserInjection | undefined;
6
- export declare function buildUserInjection(account?: string): Promise<UserInjection | undefined>;
@@ -1,42 +0,0 @@
1
- import { type RegionRelation } from "./region.js";
2
- export type LocationSensitivity = "strict" | "near" | "logistics";
3
- export interface RegionEnrichment {
4
- country?: string;
5
- province?: string;
6
- city?: string;
7
- }
8
- export type LocationInput = string | ({
9
- raw: string;
10
- } & RegionEnrichment);
11
- export interface LocationGateResult {
12
- relation: RegionRelation;
13
- satisfied: boolean;
14
- score: number;
15
- reason: string;
16
- }
17
- export interface ServiceLocationInput {
18
- id: string;
19
- name?: string;
20
- location?: LocationInput;
21
- }
22
- export interface RankedServiceLocation {
23
- id: string;
24
- name?: string;
25
- location?: string;
26
- relation: RegionRelation;
27
- satisfied: boolean;
28
- score: number;
29
- reason: string;
30
- }
31
- export interface ScopeExpansionAdvice {
32
- sensitivity: LocationSensitivity;
33
- search_terms: string[];
34
- ai_enrichment_note: string;
35
- }
36
- export declare function gateLocation(sensitivity: LocationSensitivity, demandLocation: LocationInput, serviceLocation: LocationInput | undefined): LocationGateResult;
37
- export declare function rankByLocation(sensitivity: LocationSensitivity, demandLocation: LocationInput, services: ServiceLocationInput[]): RankedServiceLocation[];
38
- export declare function expandSearchScope(sensitivity: LocationSensitivity, demandLocation: LocationInput): ScopeExpansionAdvice;
39
- export declare function inferSensitivity(description: string): {
40
- sensitivity: LocationSensitivity;
41
- signals: string[];
42
- };
@@ -1,23 +0,0 @@
1
- import type { DemandExtractInput, ServiceExtractInput } from "./extract.js";
2
- export declare const OP_DEMAND_PRESENT_SERVICE = "demand.present";
3
- export declare const OP_DEMAND_PRESENT_SERVICE_WITH_PASSPORT = "demand.present_guarded";
4
- export declare const OP_DEMAND_PUBLISH = "demand.publish";
5
- export declare const OP_SERVICE_ORDER_NEW = "service.order_new";
6
- export interface OperationBridge {
7
- operation: string;
8
- operation_type: "demand" | "service";
9
- preconditions: string[];
10
- rationale: string;
11
- state?: {
12
- demand_object: string;
13
- presenters_count: number | null;
14
- };
15
- }
16
- export declare function nextOperationForServiceMatch(demand: DemandExtractInput, guarded: boolean | null): OperationBridge;
17
- export declare function nextOperationForDemandMatch(service: ServiceExtractInput): OperationBridge;
18
- export interface DemandLiveState {
19
- object: string;
20
- presenters_count: number | null;
21
- }
22
- export declare function nextOperationForDemandMatchLive(service: ServiceExtractInput, live: DemandLiveState | null): OperationBridge;
23
- export declare function nextOperationForServiceOrder(service: ServiceExtractInput): OperationBridge;
@@ -1,9 +0,0 @@
1
- import { type MatchPolicyDirection } from "../config/match-policy-file.js";
2
- import { type MatchPolicy, type MatchPolicyInput, type MatchPolicySource } from "./match-policy.js";
3
- export type { MatchPolicySource, MatchPolicyDirection };
4
- export interface EffectiveMatchPolicy {
5
- policy?: MatchPolicy;
6
- source: MatchPolicySource;
7
- note?: string;
8
- }
9
- export declare function resolveEffectiveMatchPolicy(input: MatchPolicyInput | undefined, direction: MatchPolicyDirection, account?: string): Promise<EffectiveMatchPolicy>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,expect,it}from'vitest';import{PRESET_MATCH_POLICIES,applyDemandPolicyGates,applyPolicyGates,applyPolicyRerank,buildPolicyEffect,policyHash,policyToInjection,rerankDemandMatches,resolveMatchPolicy}from'./match-policy.js';import{MatchPolicySchema}from'../schema/evaluation/index.js';function svc(a,b={}){return{'object':a,'description':'freelance\x20logo\x20design','location':'Shanghai','sales':[{'name':'logo','price':'100','wip_hash':'abc'}],'arbitrations':[],'bPublished':!![],'bPaused':![],...b};}describe('resolveMatchPolicy',()=>{it('resolves\x20preset\x20ids\x20case-insensitively\x20with\x20dash/underscore\x20tolerance',()=>{expect(resolveMatchPolicy('trust-first','demand_to_supply')?.['policy_id'])['toBe']('trust_first'),expect(resolveMatchPolicy('Cheap_And_Fast','demand_to_supply')?.['policy_id'])['toBe']('cheap_and_fast'),expect(resolveMatchPolicy(undefined,'demand_to_supply'))['toBeUndefined']();}),it('rejects\x20unknown\x20preset\x20ids\x20with\x20the\x20available\x20list',()=>{expect(()=>resolveMatchPolicy('nope','demand_to_supply'))['toThrow'](/available:.*default/);}),it('rejects\x20a\x20supply_to_demand\x20policy\x20on\x20a\x20demand_to_supply\x20query',()=>{expect(()=>resolveMatchPolicy('supplier_hunting','demand_to_supply'))['toThrow'](/direction/),expect(resolveMatchPolicy('supplier_hunting','supply_to_demand')?.['policy_id'])['toBe']('supplier_hunting');}),it('every\x20preset\x20passes\x20the\x20public\x20schema',()=>{for(const [a,b]of Object['entries'](PRESET_MATCH_POLICIES)){expect(MatchPolicySchema['safeParse'](b)['success'],a)['toBe'](!![]);}}),it('accepts\x20the\x20K5-05\x20§4.1\x20JSON\x20shape\x20including\x20not-yet-enforceable\x20sections',()=>{const a={'policy_id':'cross-border-retail-v1','version':0x3,'direction':'demand_to_supply','unknown_policy':'neutral_score','gates':[{'dim':'live','op':'eq','value':!![]},{'dim':'geo','op':'relation_in','value':['exact','contains'],'params':{'sensitivity':'logistics'}},{'dim':'price','op':'lte','value':'500','params':{'hard':!![]}},{'dim':'reputation','op':'custom','params':{'min_delivered':0x3}}],'excludes':[{'dim':'anti_cheat','flags':['self_buy']},{'dim':'blacklist','objects':['0xbad']}],'recall':{'text':{'mode':'hybrid'}},'weights':{'region':0xa,'price':0x19,'process_fit':0xf},'rerank':{'diversity':{'by':'owner','max_per_group':0x2},'explore':{'strategy':'epsilon_greedy'}},'verify':{'sampling_rate':0.01},'output':{'top_n':0x14}};expect(MatchPolicySchema['safeParse'](a)['success'])['toBe'](!![]);});}),describe('applyPolicyGates',()=>{const a={'budgetWei':0x96n};it('live\x20gate\x20drops\x20paused\x20candidates',()=>{const b={'policy_id':'t','gates':[{'dim':'live','op':'eq','value':!![]}]},c=applyPolicyGates(b,[svc('0xa'),svc('0xb',{'bPaused':!![]})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xa']),expect(c['dropped'][0x0])['toMatchObject']({'object':'0xb'}),expect(c['dropped'][0x0]['reason'])['toContain']('live=false');}),it('price\x20gate\x20binds\x20from\x20the\x20request\x20budget\x20via\x20from_budget',()=>{const b={'policy_id':'t','gates':[{'dim':'price','op':'lte','params':{'from_budget':!![],'hard':!![]}}]},c=applyPolicyGates(b,[svc('0xok'),svc('0xrich',{'sales':[{'price':'900'}]})],a);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xok']),expect(c['dropped'][0x0]['reason'])['toContain']('fails\x20lte\x20150');}),it('missing\x20input\x20is\x20unknown,\x20never\x20violated\x20(axiom\x203):\x20neutral_score\x20keeps\x20+\x20notes,\x20drop\x20eliminates',()=>{const b=svc('0xnp',{'sales':[]}),c={'dim':'price','op':'lte','value':'150'},d=applyPolicyGates({'policy_id':'t','gates':[c]},[b]);expect(d['passed'])['toHaveLength'](0x1),expect(d['unknown_notes'][0x0])['toMatchObject']({'object':'0xnp','dim':'price'});const e=applyPolicyGates({'policy_id':'t','unknown_policy':'drop','gates':[c]},[b]);expect(e['passed'])['toHaveLength'](0x0),expect(e['dropped'][0x0]['reason'])['toContain']('unknown_policy=drop');}),it('text\x20gates:\x20must_contain\x20/\x20must_not_contain\x20over\x20description\x20+\x20sale\x20names',()=>{const b={'policy_id':'t','gates':[{'dim':'text','op':'must_contain','value':'LOGO'},{'dim':'text','op':'must_not_contain','value':['mural']}]},c=applyPolicyGates(b,[svc('0xa'),svc('0xb',{'description':'mural\x20painting'})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xa']),expect(c['dropped'][0x0]['reason'])['toContain']('forbidden\x20term(s)\x20present:\x20mural');}),it('arb\x20+\x20machine\x20+\x20wip_verify\x20gates',()=>{const b={'policy_id':'t','gates':[{'dim':'arb','op':'gte','value':0x1},{'dim':'machine','op':'eq','value':!![]},{'dim':'wip_verify','op':'eq','value':!![]}]},c=applyPolicyGates(b,[svc('0xgood',{'arbitrations':['0xarb'],'machine':'0xm'}),svc('0xnoarb',{'machine':'0xm'}),svc('0xnowip',{'arbitrations':['0xarb'],'machine':'0xm','sales':[{'price':'5'}]})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xgood']),expect(c['dropped']['map'](e=>e['object']))['toEqual'](['0xnoarb','0xnowip']);}),it('blacklist\x20excludes\x20by\x20object\x20and\x20by\x20owner',()=>{const b={'policy_id':'t','excludes':[{'dim':'blacklist','objects':['0xbad'],'owners':['0xevilowner']}]},c=applyPolicyGates(b,[svc('0xa'),svc('0xbad'),svc('0xc',{'owner':'0xevilowner'})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xa']),expect(c['dropped']['map'](e=>e['reason']))['toEqual'](['excluded:\x20blacklisted\x20object','excluded:\x20blacklisted\x20owner']);}),it('non-enforceable\x20dims\x20are\x20reported\x20ignored\x20and\x20never\x20eliminate',()=>{const b={'policy_id':'t','gates':[{'dim':'geo','op':'relation_in','value':['exact']},{'dim':'reputation','op':'custom'}],'excludes':[{'dim':'anti_cheat','flags':['self_buy']}]},c=applyPolicyGates(b,[svc('0xa')]);expect(c['passed'])['toHaveLength'](0x1),expect(c['ignored']['join']('|'))['toContain']('geo'),expect(c['ignored']['join']('|'))['toContain']('reputation'),expect(c['ignored']['join']('|'))['toContain']('anti_cheat');});}),describe('policyToInjection',()=>{it('maps\x20registered\x20weights\x20to\x20rule\x20overrides\x20and\x20reports\x20unregistered\x20ids',()=>{const a=policyToInjection({'policy_id':'t','weights':{'price':0x19,'trust':0x14,'process_fit':0xf,'arb_guarantee':0x14}});expect(a['applied'])['toEqual']({'price':0x19,'trust':0x14}),expect(a['injection']['overrides']?.['rules'])['toEqual']({'price':{'weight':0x19},'trust':{'weight':0x14}}),expect(a['ignored']['join']('|'))['toContain']('process_fit'),expect(a['ignored']['join']('|'))['toContain']('arb_guarantee');});}),describe('applyPolicyRerank',()=>{const a=(b,c,d)=>({'service':{'object':b,'owner':d},'result':{'total':c},'location':{'relation':'exact','satisfied':!![],'score':0x1,'reason':''}});it('final\x20private\x20order:\x20total\x20DESC\x20then\x20object\x20ASC\x20(K5-A10)',()=>{const b=applyPolicyRerank([a('0xb',0x32),a('0xa',0x46),a('0xc',0x46)],{'policy_id':'t'});expect(b['matches']['map'](c=>c['service']['object']))['toEqual'](['0xa','0xc','0xb']),expect(b['order'])['toContain']('total\x20DESC,\x20object_id\x20ASC');}),it('diversity\x20cap\x20defers\x20overflow\x20candidates\x20to\x20the\x20tail,\x20deterministically',()=>{const b=applyPolicyRerank([a('0xa1',0x5a,'0xshop'),a('0xa2',0x50,'0xshop'),a('0xa3',0x46,'0xshop'),a('0xb1',0x3c,'0xother')],{'policy_id':'t','rerank':{'diversity':{'by':'owner','max_per_group':0x2}}});expect(b['matches']['map'](c=>c['service']['object']))['toEqual'](['0xa1','0xa2','0xb1','0xa3']),expect(b['diversity_applied'])['toBe'](!![]),expect(b['deferred'])['toBe'](0x1);}),it('output.top_n\x20slices\x20after\x20ordering',()=>{const b=applyPolicyRerank([a('0xa',0xa),a('0xb',0x5a),a('0xc',0x32)],{'policy_id':'t','output':{'top_n':0x2}});expect(b['matches']['map'](c=>c['service']['object']))['toEqual'](['0xb','0xc']);}),it('reports\x20non-enforceable\x20rerank\x20sections\x20instead\x20of\x20silently\x20ignoring',()=>{const b=applyPolicyRerank([a('0xa',0xa)],{'policy_id':'t','rerank':{'diversity':{'by':'permission','max_per_group':0x1},'llm':{'enabled':!![]}}});expect(b['diversity_applied'])['toBe'](![]),expect(b['ignored']['join']('|'))['toContain']('permission'),expect(b['ignored']['join']('|'))['toContain']('llm');});}),describe('applyDemandPolicyGates\x20(supply→demand,\x20K5-05\x20§4)',()=>{function a(b,c={}){return{'object':b,'description':'need\x20a\x20freelance\x20logo\x20redesign','location':'Shanghai','rewards':['0xr1'],'um':'0xum','guards':[],'presenters_count':0x0,...c};}it('text\x20+\x20location\x20gates\x20judge\x20the\x20demand\x20description/location',()=>{const b=applyDemandPolicyGates({'policy_id':'t','gates':[{'dim':'text','op':'must_contain','value':'logo'}]},[a('0xa'),a('0xc',{'description':'kitchen\x20remodel'})]);expect(b['passed']['map'](d=>d['object']))['toEqual'](['0xa']),expect(b['dropped'][0x0]['reason'])['toContain']('missing\x20term(s):\x20logo');const c=applyDemandPolicyGates({'policy_id':'t','gates':[{'dim':'location','op':'must_not_contain','value':['shenzhen']}]},[a('0xa'),a('0xb',{'location':'Shenzhen\x20bay'})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xa']),expect(c['dropped'][0x0]['reason'])['toContain']('forbidden\x20term(s)\x20in\x20location:\x20shenzhen');}),it('reward\x20/\x20messenger\x20/\x20guard\x20/\x20presenters\x20gates',()=>{const b={'policy_id':'t','gates':[{'dim':'reward','op':'gte','value':0x2},{'dim':'messenger','op':'eq','value':!![]},{'dim':'guard','op':'eq','value':![]},{'dim':'presenters','op':'lte','value':0x3}]},c=applyDemandPolicyGates(b,[a('0xok',{'rewards':['0xr1','0xr2']}),a('0xfew',{'um':null}),a('0xguarded',{'rewards':['0xr1','0xr2','0xr3'],'guards':[{'guard':'0xg'}]}),a('0xcrowded',{'rewards':['0xr1','0xr2'],'presenters_count':0x5})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xok']);}),it('missing\x20demand\x20input\x20is\x20unknown,\x20never\x20violated\x20(axiom\x203)',()=>{const b={'dim':'reward','op':'gte','value':0x2},c=applyDemandPolicyGates({'policy_id':'t','gates':[b]},[a('0xnorewards',{'rewards':undefined})]);expect(c['passed'])['toHaveLength'](0x1),expect(c['unknown_notes'][0x0])['toMatchObject']({'object':'0xnorewards','dim':'reward'});const d=applyDemandPolicyGates({'policy_id':'t','unknown_policy':'drop','gates':[b]},[a('0xnorewards',{'rewards':undefined})]);expect(d['passed'])['toHaveLength'](0x0),expect(d['dropped'][0x0]['reason'])['toContain']('unknown_policy=drop');}),it('a\x20price\x20gate\x20is\x20reported\x20ignored\x20on\x20the\x20demand\x20side\x20(budget\x20lives\x20in\x20unreadable\x20Reward\x20guards)',()=>{const b={'policy_id':'t','gates':[{'dim':'price','op':'lte','value':'100'}]},c=applyDemandPolicyGates(b,[a('0xa')]);expect(c['passed'])['toHaveLength'](0x1),expect(c['ignored']['join']('|'))['toContain']('price');}),it('blacklist\x20excludes\x20apply\x20to\x20demands\x20by\x20object\x20and\x20owner',()=>{const b={'policy_id':'t','excludes':[{'dim':'blacklist','objects':['0xbad'],'owners':['0xevil']}]},c=applyDemandPolicyGates(b,[a('0xa'),a('0xbad'),a('0xc',{'owner':'0xevil'})]);expect(c['passed']['map'](d=>d['object']))['toEqual'](['0xa']);});}),describe('rerankDemandMatches\x20(supply→demand\x20final\x20ordering)',()=>{const a=(b,c,d)=>({'demand':{'object':b,'owner':d},'result':{'total':c},'next':{'operation':'demand.present'}});it('orders\x20by\x20total\x20DESC\x20then\x20object\x20ASC,\x20keeps\x20the\x20original\x20match\x20objects',()=>{const c=a('0xb',0x32),d=a('0xa',0x46),e=rerankDemandMatches([c,d],{'policy_id':'t'});expect(e['matches']['map'](f=>f['demand']['object']))['toEqual'](['0xa','0xb']),expect(e['matches'][0x0])['toBe'](d),expect(e['order'])['toContain']('total\x20DESC,\x20object_id\x20ASC');}),it('output.top_n\x20slices\x20after\x20ordering',()=>{const b=rerankDemandMatches([a('0xa',0xa),a('0xb',0x5a),a('0xc',0x32)],{'policy_id':'t','output':{'top_n':0x2}});expect(b['matches']['map'](c=>c['demand']['object']))['toEqual'](['0xb','0xc']);});}),describe('policyHash\x20+\x20buildPolicyEffect',()=>{it('hash\x20is\x20deterministic\x20and\x20key-order\x20independent',()=>{const c={'policy_id':'p','weights':{'price':0x19,'trust':0x14},'unknown_policy':'drop'},d={'unknown_policy':'drop','weights':{'trust':0x14,'price':0x19},'policy_id':'p'};expect(policyHash(c))['toBe'](policyHash(d)),expect(policyHash({...c,'policy_id':'q'}))['not']['toBe'](policyHash(c));}),it('effect\x20report\x20carries\x20drops,\x20unknowns,\x20weights,\x20ignored\x20and\x20the\x20privacy\x20note',()=>{const a={'policy_id':'t','version':0x2,'gates':[{'dim':'arb','op':'gte','value':0x1},{'dim':'stake','op':'gte','value':0x3e8}],'weights':{'trust':0x1e},'recall':{'text':{'mode':'hybrid'}}},b=applyPolicyGates(a,[svc('0xnoarb')]),c=policyToInjection(a),d=applyPolicyRerank([],a),e=buildPolicyEffect(a,b,c,d);expect(e['policy_id'])['toBe']('t'),expect(e['version'])['toBe'](0x2),expect(e['dropped'][0x0]['object'])['toBe']('0xnoarb'),expect(e['weights_applied'])['toEqual']({'trust':0x1e}),expect(e['ignored']['join']('|'))['toContain']('stake'),expect(e['ignored']['join']('|'))['toContain']('recall'),expect(e['privacy'])['toContain']('never\x20leave\x20this\x20device');});});
@@ -1,37 +0,0 @@
1
- import type { CommercialRole } from "../role/types.js";
2
- import type { NodeAnnotations } from "../participation/radar-core.js";
3
- import { type RiskAppetite } from "./game-strategy.js";
4
- import { type WorkflowSubgraph, type WfTransitionView } from "../graph/onchain/order-status.js";
5
- export interface WorkflowPath {
6
- id: string;
7
- nodes: string[];
8
- forwards: string[];
9
- terminal: "completed" | "refunded" | "open";
10
- guard_gates: number;
11
- length: number;
12
- terminal_value: number;
13
- gain_score: number;
14
- risk_score: number;
15
- score: number;
16
- rationale: string;
17
- }
18
- export interface PathReasoningInput {
19
- current_node: string;
20
- perspective: CommercialRole;
21
- workflow: WorkflowSubgraph;
22
- node_annotations?: NodeAnnotations;
23
- appetite?: RiskAppetite;
24
- requirements?: string[];
25
- order_amount?: string;
26
- max_depth?: number;
27
- }
28
- export interface PathReasoningAdvice {
29
- current_node: string;
30
- perspective: CommercialRole;
31
- ranked_paths: WorkflowPath[];
32
- optimal_path?: WorkflowPath;
33
- foregone_terminals: string[];
34
- summary: string;
35
- }
36
- export declare function evaluatePathReasoning(input: PathReasoningInput): PathReasoningAdvice;
37
- export type { WorkflowSubgraph, WfTransitionView };
@@ -1,11 +0,0 @@
1
- import { type DimensionStandard, type EvaluationSection } from "../config/judgment.js";
2
- export type { DimensionStandard, EvaluationSection };
3
- export type EvaluationBaselines = EvaluationSection;
4
- export declare function defaultWeight(ruleId: string): number;
5
- export declare function defaultWeights(): Record<string, number>;
6
- export declare function dimensionLabel(ruleId: string): string;
7
- export declare function severityDeduction(severity: string): number;
8
- export declare function levelFromScore(score: number): string;
9
- export declare function concernLabel(score: number): string;
10
- export declare function gradeWord(side: "trust" | "risk" | "match", score: number): string;
11
- export declare function matchGradeFromScore(score: number): string;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{describe,expect,it}from'vitest';import{defaultWeights,dimensionLabel,gradeWord,levelFromScore,severityDeduction}from'./standards.js';import{mergeLayers}from'../persona/model.js';import{personaToInjection}from'../persona/bridge.js';describe('evaluation\x20standards\x20document',()=>{it('exposes\x20the\x20document\x20defaults\x20(weights\x20/\x20labels\x20/\x20deductions\x20/\x20bands)',()=>{const a=defaultWeights();expect(a['trust_reviews'])['toBe'](0x23),expect(a['risk_workflow'])['toBe'](0x23),expect(Object['keys'](a)['length'])['toBe'](0x9);for(const b of Object['values'](a))expect(b)['toBeGreaterThan'](0x0);expect(dimensionLabel('trust_fund_safety'))['toBe']('Fund\x20safety'),expect(dimensionLabel('trust_reviews'))['toBe']('Reputation'),expect(dimensionLabel('not_a_rule'))['toBe']('not_a_rule'),expect(severityDeduction('critical'))['toBe'](0x32),expect(severityDeduction('info'))['toBe'](0x0);}),it('derives\x20level\x20bands\x20and\x20per-side\x20grade\x20words\x20from\x20the\x20document',()=>{expect(levelFromScore(0x5a))['toBe']('low'),expect(levelFromScore(0x2b))['toBe']('high'),expect(gradeWord('trust',0x2b))['toBe']('weak'),expect(gradeWord('trust',0x37))['toBe']('fair'),expect(gradeWord('trust',0x58))['toBe']('strong'),expect(gradeWord('risk',0x58))['toBe']('low\x20risk'),expect(gradeWord('risk',0x41))['toBe']('moderate\x20risk'),expect(gradeWord('risk',0x19))['toBe']('high\x20risk');});}),describe('persona\x20evaluation\x20standards\x20→\x20injection',()=>{it('merges\x20evaluation\x20weights\x20across\x20layers\x20with\x20plain\x20priority',()=>{const a={'evaluation':{'weights':{'trust_reviews':0x2d}}},b={'evaluation':{'weights':{'trust_reviews':0x32,'risk_fund':0x28}}},c=mergeLayers([a,b]);expect(c['evaluation']?.['weights'])['toEqual']({'trust_reviews':0x32,'risk_fund':0x28});}),it('personaToInjection\x20maps\x20weights\x20into\x20rule\x20overrides',()=>{const a=personaToInjection({'role':'customer','industries':[],'layer':{'evaluation':{'weights':{'trust_arbitration':0x28,'bogus_rule':Number['NaN']}}}});expect(a?.['overrides']?.['rules']?.['trust_arbitration'])['toEqual']({'weight':0x28}),expect(a?.['overrides']?.['rules']?.['bogus_rule'])['toBeUndefined']();}),it('persona\x20without\x20evaluation\x20standards\x20carries\x20no\x20overrides',()=>{const a=personaToInjection({'role':'customer','industries':[],'layer':{}});expect(a?.['overrides'])['toBeUndefined']();});});
@@ -1,8 +0,0 @@
1
- export interface StructuredLine {
2
- key: string;
3
- raw_key: string;
4
- value: string;
5
- }
6
- export declare const STRUCTURED_LINE_KEYS: readonly ["quote", "price", "terms", "timing", "contact"];
7
- export declare function parseStructuredLines(text: string | null | undefined): StructuredLine[];
8
- export declare function firstStructuredValue(lines: StructuredLine[], keys: readonly string[]): string | null;
@@ -1,6 +0,0 @@
1
- import type { EvaluationRule, UserInjection } from "./types.js";
2
- export declare const REQUIREMENT_PASS_THRESHOLD = 60;
3
- export declare function normalizeInjection(injection?: UserInjection): UserInjection;
4
- export declare function isRuleEnabled(ruleId: string, injection?: UserInjection): boolean;
5
- export declare function isDataSourceEnabled(dataSourceId: string, injection?: UserInjection): boolean;
6
- export declare function effectiveWeight(rule: EvaluationRule, injection?: UserInjection): number;
@@ -1,10 +0,0 @@
1
- import type { UserIntentSignature, ExperienceMatch } from "./types.js";
2
- export declare function recordSignature(sig: UserIntentSignature): void;
3
- export declare function findMatches(intent: string, operation_type: string, data: any, limit?: number): ExperienceMatch[];
4
- export declare function getHistory(intent?: string): UserIntentSignature[];
5
- export declare function clearHistory(): void;
6
- export declare function getHistoryStats(): {
7
- total: number;
8
- by_outcome: Record<string, number>;
9
- by_intent: Record<string, number>;
10
- };
@@ -1,7 +0,0 @@
1
- import { distillIntent, extractSignals } from "./intent-distill.js";
2
- import { getProfile, updateFromOperation, resetProfile, getProfileStats } from "./user-profile.js";
3
- import { findMatches, recordSignature, getHistory, clearHistory, getHistoryStats } from "./experience-reuse.js";
4
- import { getExperienceFeedback, recordOperationOutcome, EXPERIENCE_LAYER_VERSION } from "./realtime-feedback.js";
5
- import { configureExperiencePersistence } from "./persistence.js";
6
- import type { DistilledIntent, ExperienceMatch, ExperienceFeedback, UserProfile, UserIntentSignature } from "./types.js";
7
- export { distillIntent, extractSignals, getProfile, updateFromOperation, resetProfile, getProfileStats, findMatches, recordSignature, getHistory, clearHistory, getHistoryStats, getExperienceFeedback, recordOperationOutcome, configureExperiencePersistence, EXPERIENCE_LAYER_VERSION, type DistilledIntent, type ExperienceMatch, type ExperienceFeedback, type UserProfile, type UserIntentSignature, };
@@ -1,6 +0,0 @@
1
- export declare function configureExperiencePersistence(opts?: {
2
- dir?: string;
3
- enabled?: boolean;
4
- }): void;
5
- export declare function persistenceOverrideDir(): string | undefined;
6
- export declare function persistenceEnabled(): boolean;
@@ -1,21 +0,0 @@
1
- import type { BuyerSignals, UserIntentSignature, UserProfile } from "./types.js";
2
- import { configureExperiencePersistence } from "./persistence-config.js";
3
- export { configureExperiencePersistence };
4
- export interface ProfileSnapshot {
5
- profile: UserProfile;
6
- buyer_signals: BuyerSignals;
7
- counters: {
8
- scenario_counts: [string, number][];
9
- pitfall_counts: [string, number][];
10
- object_refs: [string, number][];
11
- success_count: number;
12
- total_count: number;
13
- };
14
- }
15
- export declare function experienceDir(): string;
16
- export declare function loadSignatures(limit: number): UserIntentSignature[];
17
- export declare function appendSignature(sig: UserIntentSignature): void;
18
- export declare function clearSignatures(): void;
19
- export declare function rewriteSignatures(sigs: UserIntentSignature[]): void;
20
- export declare function loadProfileSnapshot(): ProfileSnapshot | undefined;
21
- export declare function saveProfileSnapshot(snapshot: ProfileSnapshot): void;
@@ -1,5 +0,0 @@
1
- import type { ExperienceFeedback } from "./types.js";
2
- import { EXPERIENCE_LAYER_VERSION } from "./types.js";
3
- export { EXPERIENCE_LAYER_VERSION };
4
- export declare function getExperienceFeedback(operation_type: string, data: any, baseIntent: string): ExperienceFeedback | undefined;
5
- export declare function recordOperationOutcome(operation_type: string, data: any, baseIntent: string, outcome: "success" | "failed" | "partial", errorCode?: string, referencedObjects?: string[]): void;
@@ -1,25 +0,0 @@
1
- import type { UserProfile, BuyerSignals } from "./types.js";
2
- export declare function getProfile(): UserProfile;
3
- export interface PurchaseOutcomeInput {
4
- price: bigint;
5
- avg_market_price?: bigint;
6
- used_discount?: boolean;
7
- used_referral?: boolean;
8
- has_dispute?: boolean;
9
- }
10
- export declare function recordPurchaseOutcome(input: PurchaseOutcomeInput): void;
11
- export declare function getBuyerSignals(): BuyerSignals;
12
- export declare function updateFromOperation(_intent: string, scenario: string | undefined, outcome: "success" | "failed" | "partial", errorCode: string | undefined, referencedObjects: string[]): void;
13
- export declare function resetProfile(): void;
14
- export declare function getProfileStats(): {
15
- total_operations: number;
16
- success_rate: number;
17
- top_scenarios: Array<{
18
- scenario: string;
19
- count: number;
20
- }>;
21
- top_pitfalls: Array<{
22
- error_code: string;
23
- count: number;
24
- }>;
25
- };
@@ -1,91 +0,0 @@
1
- import type { ProjectObjectType } from "../playbooks/service-build/namespace.js";
2
- import type { Severity } from "../config/severity.js";
3
- import type { WorkflowCapabilities } from "../evaluation/capability.js";
4
- export type CapabilityId = string;
5
- export type CapabilityGroup = "fund_safety" | "trust_evidence" | "fulfillment" | "promotion" | "governance" | "composition";
6
- export interface CapabilityBind {
7
- node?: string;
8
- surface?: "machine" | "allocator" | "allocation" | "guard" | "arbitration" | "repository" | "permission" | "reward";
9
- }
10
- export interface CapabilityCost {
11
- gas_objects: number;
12
- fund?: string;
13
- bearer: "merchant" | "buyer" | "shared";
14
- }
15
- export interface CapabilityConstraint {
16
- constraint_id: string;
17
- description: string;
18
- level: "hard" | "soft" | "info";
19
- blocking: boolean;
20
- }
21
- export interface CapabilityEvaluationImpact {
22
- dimension: string;
23
- effect: "boost" | "required" | "optional";
24
- description: string;
25
- }
26
- export interface Capability {
27
- id: CapabilityId;
28
- name: string;
29
- group: CapabilityGroup;
30
- description: string;
31
- objectTypes: ProjectObjectType[];
32
- intent: string[];
33
- binds: CapabilityBind[];
34
- requires: CapabilityId[];
35
- excludes: CapabilityId[];
36
- provides: Array<keyof WorkflowCapabilities>;
37
- params: string[];
38
- risks: string[];
39
- disclosures: string[];
40
- cost: CapabilityCost;
41
- requiredConstraints: CapabilityConstraint[];
42
- evaluationImpact: CapabilityEvaluationImpact[];
43
- industryFit: Record<string, number>;
44
- addressesPainPoints: string[];
45
- intentSignals: RegExp[];
46
- userProtections: string[];
47
- merchantObligations: string[];
48
- requiresKeeper: boolean;
49
- keeperHint?: string;
50
- source: "core" | "composition";
51
- }
52
- export interface CapabilityAdoptionFinding {
53
- rule: string;
54
- severity: Severity;
55
- detail: string;
56
- }
57
- export interface CapabilityAdoptionResult {
58
- capability: CapabilityId;
59
- adopted: boolean;
60
- reason?: string;
61
- missingConstraints?: string[];
62
- findings: CapabilityAdoptionFinding[];
63
- evidence_matched?: boolean;
64
- }
65
- export declare const CAPABILITIES: Capability[];
66
- export declare const COMPOSITION_CAPABILITIES: Capability[];
67
- export declare const ALL_CAPABILITIES: Capability[];
68
- export declare function getCapability(id: CapabilityId): Capability | undefined;
69
- export declare function recommendCapabilities(industry: string, intentDescription: string, options?: {
70
- minFit?: number;
71
- maxCapabilities?: number;
72
- }): Capability[];
73
- export interface CapabilityEvidenceReport {
74
- matched: boolean;
75
- tested: number;
76
- hits: string[];
77
- cjkIntent?: boolean;
78
- }
79
- export interface StructuredEvidence {
80
- paymentModel?: string;
81
- trustArbitration?: string;
82
- trustRefundPolicy?: string;
83
- proofsOfDelivery?: string[];
84
- allocationCount?: number;
85
- }
86
- export declare function capabilityIntentEvidence(capability: Capability, intentText: string, structured?: StructuredEvidence): CapabilityEvidenceReport;
87
- export declare function capabilityHasIntentEvidence(capability: Capability, intentText: string): boolean;
88
- export declare function checkCapabilityConstraints(capability: Capability, satisfiedConstraintIds: Set<string>, opts?: {
89
- evidenceMatched?: boolean;
90
- evidence?: CapabilityEvidenceReport;
91
- }): CapabilityAdoptionResult;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- import{afterEach,beforeEach,describe,expect,it}from'vitest';import{existsSync,mkdirSync,mkdtempSync,readFileSync,rmSync,writeFileSync}from'node:fs';import{tmpdir}from'node:os';import{join}from'node:path';import{buildPristineMergedPack,getRegisteredPack,industryReadmeContent,packKind,registerIndustryPack,scaffoldIndustryPack,scanPacks}from'./industry-pack.js';import{evaluateIndustryCondition,mergedBaselinesOverlay,resolveComplianceRules,resolveDisputeRules,resolveIndustryBaselines,resolveIndustryPlaybook,resolveIndustryRules,resolveSupplyRules}from'./industry-layers.js';import{applyHardConstraints,resolveCategoryMatchRules}from'../evaluation/category-match-rules.js';import{setJudgmentIndustryOverlay,getJudgmentDoc,clearJudgmentLayers}from'../config/judgment.js';import{PERSONA_ROLES}from'../persona/types.js';let root;beforeEach(()=>{root=mkdtempSync(join(tmpdir(),'wowok-industry-audit-'));}),afterEach(()=>{if(existsSync(root))rmSync(root,{'recursive':!![],'force':!![]});clearJudgmentLayers();});function manifest(a,b){return{'pack':'industry-pack','name':a,'display_name':a,'version':'1.0.0','layers':b};}describe('industry\x20audit\x20—\x20scaffold\x20shape',()=>{it('14.\x20scaffold\x20writes\x20pack.json\x20(all\x20sections;\x20baselines/mode\x20null)\x20+\x20template\x20playbook.md',()=>{const a=scaffoldIndustryPack('audit_scaffold',root);expect(a['ok'])['toBe'](!![]),expect(a['files'])['toEqual'](['pack.json','playbook.md']);const b=JSON['parse'](readFileSync(join(a['dir'],'pack.json'),'utf-8'));expect(b['manifest']['pack'])['toBe']('industry-pack'),expect(b['manifest']['layers'])['toContain']('playbook');for(const d of['match','personae','dispute','compliance','supply','rules']){expect(b[d])['not']['toBeNull']();}expect(b['match']?.['category'])['toBe']('audit_scaffold'),expect(b['baselines'])['toBeNull'](),expect(b['mode'])['toBeNull'](),expect(b['compliance']?.['refund_window'])['toEqual']({'not_applicable':!![]}),expect(b['personae'])['toHaveLength'](PERSONA_ROLES['length']);const c=readFileSync(join(a['dir'],'playbook.md'),'utf-8');expect(c)['toContain']('Industry\x20Playbook'),expect(c)['toContain']('(Example)');}),it('14b.\x20industry\x20README\x20documents\x20the\x20baselines\x20layer\x20and\x20legal\x20layer\x20names',()=>{const a=industryReadmeContent();expect(a)['toContain']('##\x20baselines\x20—\x20judgment\x20baselines\x20overlay'),expect(a)['toContain']('factory\x20<\x20pack\x20baselines\x20<\x20user\x20document\x20<\x20persona\x20fragment\x20<\x20session\x20overrides'),expect(a)['toContain']('\x22severity_deduction\x22:\x20{\x20\x22critical\x22:\x2040\x20}'),expect(a)['toContain']('\x22rule_id\x22:\x20\x22R-UTIL-03\x22,\x20\x22enabled\x22:\x20false'),expect(a)['toContain']('Legal'),expect(a)['toContain']('`baselines`,\x20`playbook`');});}),describe('industry\x20audit\x20—\x20meaningful-content\x20gates',()=>{it('15.\x20a\x20pristine\x20(placeholder-only)\x20pack\x20registers\x20NOTHING:\x20every\x20resolve*\x20stays\x20undefined',()=>{const a=buildPristineMergedPack('audit_pristine');a['manifest']['layers']=['match','personae','dispute','compliance','supply','rules'];const b=registerIndustryPack(a);expect(b['ok'])['toBe'](!![]),expect(b['registered'])['toEqual']([]),expect(resolveCategoryMatchRules('audit_pristine'))['toBeUndefined'](),expect(resolveDisputeRules('audit_pristine'))['toBeUndefined'](),expect(resolveComplianceRules('audit_pristine'))['toBeUndefined'](),expect(resolveSupplyRules('audit_pristine'))['toBeUndefined'](),expect(resolveIndustryRules('audit_pristine'))['toBeUndefined'](),expect(resolveIndustryBaselines('audit_pristine'))['toBeUndefined']();const c=buildPristineMergedPack('audit_pristine2');c['manifest']['layers']=['compliance'],c['compliance']={'category':'audit_pristine2','refund_window':{'days':0xe}},expect(registerIndustryPack(c)['registered'])['toEqual'](['compliance']),expect(resolveComplianceRules('audit_pristine2')?.['refund_window']?.['days'])['toBe'](0xe);}),it('15b.\x20the\x20registry\x20record\x20lists\x20REGISTERED\x20layers,\x20not\x20declared\x20ones\x20(no\x20empty-shell\x20\x27full\x27)',()=>{const a=buildPristineMergedPack('audit_shell');a['manifest']['layers']=['match','personae','dispute','compliance','supply','rules'],expect(registerIndustryPack(a)['ok'])['toBe'](!![]);const b=getRegisteredPack('audit_shell');expect(b?.['layers'])['toEqual']([]),expect(packKind(b?.['layers']??[]))['toBe']('stub');const c=buildPristineMergedPack('audit_mixed');c['manifest']['layers']=['dispute','compliance','supply','rules'],c['compliance']={'category':'audit_mixed','refund_window':{'days':0x7}};const d=registerIndustryPack(c);expect(d['ok'])['toBe'](!![]),expect(d['registered'])['toEqual'](['compliance']);const e=getRegisteredPack('audit_mixed');expect(e?.['layers'])['toEqual'](['compliance']),expect(packKind(e?.['layers']??[]))['toBe']('partial');}),it('15c.\x20packKind\x20is\x20three-valued:\x20\x27full\x27\x20only\x20when\x20EVERY\x20business\x20layer\x20is\x20registered\x20(G-05)',()=>{expect(packKind([]))['toBe']('stub'),expect(packKind(['mode','match']))['toBe']('stub'),expect(packKind(['dispute']))['toBe']('partial'),expect(packKind(['mode','match','rules','playbook']))['toBe']('partial'),expect(packKind(['template','dispute','supply']))['toBe']('partial'),expect(packKind(['dispute','compliance','supply','rules','playbook']))['toBe']('full'),expect(packKind(['mode','match','dispute','compliance','supply','rules','playbook']))['toBe']('full');});}),describe('industry\x20audit\x20—\x20data\x20layers\x20(dispute/compliance/supply/rules)',()=>{it('16.\x20meaningful\x20dispute/compliance/supply/rules\x20register\x20and\x20resolve;\x20structured\x20conditions\x20evaluate',()=>{const a='audit_data',b=registerIndustryPack({'manifest':manifest(a,['dispute','compliance','supply','rules']),'dispute':{'category':a,'sla_tiers':[{'level':'L1','timeout':'72h','description':'standard\x20tier'}],'fault_rules':['late\x20delivery\x20without\x20evidence\x20->\x20merchant']},'compliance':{'category':a,'refund_window':{'days':0xe},'qualification':['Trade\x20License']},'supply':{'category':a,'supplier_qualification':['ISO-9001'],'first_order_policy':'sample-only','redundancy_required':!![]},'rules':{'category':a,'rules':[{'rule_id':'audit_r1','dimension':'risk','description':'must\x20have\x20arbitration','severity':'hard','red_flag':!![],'condition':{'field':'has_arbitration','op':'eq','value':!![]}},{'rule_id':'audit_r2','description':'counterfeit\x20suspicion','condition_hint':'buyer\x20reports\x20counterfeit'}]}});expect(b['ok'])['toBe'](!![]),expect(b['registered'])['toEqual'](['dispute','compliance','supply','rules']),expect(resolveDisputeRules(a)?.['sla_tiers']?.[0x0]?.['level'])['toBe']('L1'),expect(resolveComplianceRules(a)?.['refund_window']?.['days'])['toBe'](0xe),expect(resolveSupplyRules(a)?.['first_order_policy'])['toBe']('sample-only');const c=resolveIndustryRules(a)?.['rules']??[];expect(c)['toHaveLength'](0x2),expect(c[0x1]?.['condition'])['toBeUndefined'](),expect(evaluateIndustryCondition(c[0x0]['condition'],{'facts':{'has_arbitration':!![]},'entities':{}}))['toBe'](!![]),expect(evaluateIndustryCondition(c[0x0]['condition'],{'facts':{'has_arbitration':![]},'entities':{}}))['toBe'](![]);}),it('17.\x20a\x20meaningful\x20match\x20layer\x20is\x20queryable:\x20constraints\x20apply,\x20modes/weights\x20visible',()=>{const a='audit_match',b=registerIndustryPack({'manifest':manifest(a,['match']),'match':{'category':a,'hard_constraints':[{'field':'bPublished','kind':'truthy','description':'service\x20must\x20be\x20published'}],'soft_weights':{'trust':0x28,'price':0xa},'highlight_fields':['wip_hash'],'calendar_mode':'slot','geo_mode':'near','pricing_rules':['time_slot']}});expect(b['ok'])['toBe'](!![]),expect(b['registered'])['toEqual'](['match']);const c=resolveCategoryMatchRules(a);expect(c?.['geo_mode'])['toBe']('near'),expect(c?.['calendar_mode'])['toBe']('slot'),expect(c?.['soft_weights'])['toEqual']({'trust':0x28,'price':0xa});const d=applyHardConstraints(c,[{'bPublished':![]},{'bPublished':!![]}]);expect(d['passed'])['toHaveLength'](0x1),expect(d['dropped'][0x0]?.['candidate'])['toEqual']({'bPublished':![]});}),it('18a.\x20a\x20legal\x20baselines\x20fragment\x20registers\x20and\x20drives\x20mergedBaselinesOverlay\x20into\x20the\x20judgment\x20chain',()=>{const a='audit_base_ok',b={'monitor':{'thresholds':{'messenger_timeout_hours':0x3}}},c=registerIndustryPack({'manifest':manifest(a,['baselines']),'baselines':b});expect(c['ok'])['toBe'](!![]),expect(c['registered'])['toEqual'](['baselines']),expect(resolveIndustryBaselines(a)?.['fragment'])['toEqual'](b);const d=mergedBaselinesOverlay([a]);expect(d)['toEqual'](b),expect(setJudgmentIndustryOverlay(d)['ok'])['toBe'](!![]),expect(getJudgmentDoc()['monitor']['thresholds']['messenger_timeout_hours'])['toBe'](0x3);}),it('18b.\x20a\x20misspelled-dimension\x20baselines\x20fragment\x20is\x20rejected\x20with\x20a\x20visible\x20error\x20(register\x20+\x20scan)',()=>{const a={'evaluation':{'weights':{'trust_revews':0x32}}},b=registerIndustryPack({'manifest':manifest('audit_base_bad',['baselines']),'baselines':a});expect(b['ok'])['toBe'](![]),expect(b['errors']['join']('\x20'))['toContain']('unknown\x20dimension\x20\x27trust_revews\x27'),expect(resolveIndustryBaselines('audit_base_bad'))['toBeUndefined']();const c=join(root,'audit_base_scan');mkdirSync(c,{'recursive':!![]}),writeFileSync(join(c,'pack.json'),JSON['stringify']({'manifest':manifest('audit_base_scan',['baselines']),'baselines':a}),'utf-8');const [d]=scanPacks(root);expect(d['ok'])['toBe'](![]),expect(d['errors']['join']('\x20'))['toContain']('trust_revews');});}),describe('industry\x20audit\x20—\x20playbook\x20layer',()=>{it('19a.\x20real\x20playbook\x20content\x20registers\x20and\x20resolves',()=>{const a='audit_play',b=join(root,a);mkdirSync(b,{'recursive':!![]}),writeFileSync(join(b,'pack.json'),JSON['stringify']({'manifest':manifest(a,['playbook'])}),'utf-8'),writeFileSync(join(b,'playbook.md'),'#\x20audit_play\x20playbook\x0a\x0aAUDIT-REAL:\x20always\x20answer\x20complaint\x20threads\x20within\x204\x20hours.\x0a','utf-8');const [c]=scanPacks(root);expect(c['ok'])['toBe'](!![]),expect(c['registered'])['toContain']('playbook'),expect(resolveIndustryPlaybook(a)?.['content'])['toContain']('AUDIT-REAL');}),it('19b.\x20the\x20scaffolded\x20TEMPLATE\x20playbook\x20is\x20SKIPPED\x20(placeholder\x20bullets\x20carry\x20no\x20registerable\x20content)',()=>{scaffoldIndustryPack('audit_play_tmpl',root);const [a]=scanPacks(root);expect(a['ok'])['toBe'](!![]),expect(a['registered'])['toEqual']([]),expect(resolveIndustryPlaybook('audit_play_tmpl'))['toBeUndefined']();}),it('19c.\x20template\x20+\x20ONE\x20real\x20user\x20line\x20IS\x20meaningful\x20(no\x20false\x20negative\x20on\x20real\x20content)',()=>{scaffoldIndustryPack('audit_play_mix',root);const a=join(root,'audit_play_mix','playbook.md');writeFileSync(a,readFileSync(a,'utf-8')+'\x0a-\x20AUDIT-REAL:\x20answer\x20complaint\x20threads\x20within\x204\x20hours.\x0a','utf-8');const [b]=scanPacks(root);expect(b['ok'])['toBe'](!![]),expect(b['registered'])['toContain']('playbook'),expect(resolveIndustryPlaybook('audit_play_mix')?.['content'])['toContain']('AUDIT-REAL');});}),describe('industry\x20audit\x20—\x20manifest.layers\x20enable\x20flags',()=>{it('20.\x20a\x20layer\x20removed\x20from\x20manifest.layers\x20is\x20ignored\x20even\x20when\x20its\x20section\x20carries\x20real\x20content',()=>{const a='audit_off',b=registerIndustryPack({'manifest':manifest(a,['compliance']),'dispute':{'category':a,'sla_tiers':[{'level':'L1','timeout':'1h'}]},'compliance':{'category':a,'refund_window':{'days':0x7}}});expect(b['ok'])['toBe'](!![]),expect(b['registered'])['toEqual'](['compliance']),expect(resolveComplianceRules(a)?.['refund_window']?.['days'])['toBe'](0x7),expect(resolveDisputeRules(a))['toBeUndefined']();});});
@@ -1,17 +0,0 @@
1
- import { GOAL_TYPES, type GoalType } from "./types.js";
2
- export interface GoalClassification {
3
- goal_type: GoalType | null;
4
- confidence: number;
5
- matched: string[];
6
- alternatives: {
7
- goal_type: GoalType;
8
- score: number;
9
- }[];
10
- }
11
- interface GoalKeywordRule {
12
- goal_type: GoalType;
13
- keywords: string[];
14
- }
15
- export declare const GOAL_KEYWORD_RULES: readonly GoalKeywordRule[];
16
- export declare function classifyGoal(intentText: string): GoalClassification;
17
- export { GOAL_TYPES };