@azx-pbc/axiom-runtime 0.0.0-stage → 0.0.1

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 (755) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +714 -2
  3. package/dist/cache/index.d.ts +191 -0
  4. package/dist/cache/index.d.ts.map +1 -0
  5. package/dist/cache/index.js +361 -0
  6. package/dist/cache/index.js.map +1 -0
  7. package/dist/canonical/jcs.d.ts +78 -0
  8. package/dist/canonical/jcs.d.ts.map +1 -0
  9. package/dist/canonical/jcs.js +500 -0
  10. package/dist/canonical/jcs.js.map +1 -0
  11. package/dist/canonical/restricted-json.d.ts +7 -0
  12. package/dist/canonical/restricted-json.d.ts.map +1 -0
  13. package/dist/canonical/restricted-json.js +318 -0
  14. package/dist/canonical/restricted-json.js.map +1 -0
  15. package/dist/canonical/restricted-value.d.ts +59 -0
  16. package/dist/canonical/restricted-value.d.ts.map +1 -0
  17. package/dist/canonical/restricted-value.js +156 -0
  18. package/dist/canonical/restricted-value.js.map +1 -0
  19. package/dist/canonical/restricted.d.ts +85 -0
  20. package/dist/canonical/restricted.d.ts.map +1 -0
  21. package/dist/canonical/restricted.js +163 -0
  22. package/dist/canonical/restricted.js.map +1 -0
  23. package/dist/canonical/signature.d.ts +38 -0
  24. package/dist/canonical/signature.d.ts.map +1 -0
  25. package/dist/canonical/signature.js +47 -0
  26. package/dist/canonical/signature.js.map +1 -0
  27. package/dist/eval/access/delivery.d.ts +63 -0
  28. package/dist/eval/access/delivery.d.ts.map +1 -0
  29. package/dist/eval/access/delivery.js +98 -0
  30. package/dist/eval/access/delivery.js.map +1 -0
  31. package/dist/eval/access/overlay.d.ts +72 -0
  32. package/dist/eval/access/overlay.d.ts.map +1 -0
  33. package/dist/eval/access/overlay.js +402 -0
  34. package/dist/eval/access/overlay.js.map +1 -0
  35. package/dist/eval/access/projection.d.ts +159 -0
  36. package/dist/eval/access/projection.d.ts.map +1 -0
  37. package/dist/eval/access/projection.js +211 -0
  38. package/dist/eval/access/projection.js.map +1 -0
  39. package/dist/eval/access/window.d.ts +128 -0
  40. package/dist/eval/access/window.d.ts.map +1 -0
  41. package/dist/eval/access/window.js +254 -0
  42. package/dist/eval/access/window.js.map +1 -0
  43. package/dist/eval/access/write.d.ts +113 -0
  44. package/dist/eval/access/write.d.ts.map +1 -0
  45. package/dist/eval/access/write.js +119 -0
  46. package/dist/eval/access/write.js.map +1 -0
  47. package/dist/eval/addressing.d.ts +131 -0
  48. package/dist/eval/addressing.d.ts.map +1 -0
  49. package/dist/eval/addressing.js +270 -0
  50. package/dist/eval/addressing.js.map +1 -0
  51. package/dist/eval/budget.d.ts +143 -0
  52. package/dist/eval/budget.d.ts.map +1 -0
  53. package/dist/eval/budget.js +387 -0
  54. package/dist/eval/budget.js.map +1 -0
  55. package/dist/eval/computed.d.ts +46 -0
  56. package/dist/eval/computed.d.ts.map +1 -0
  57. package/dist/eval/computed.js +89 -0
  58. package/dist/eval/computed.js.map +1 -0
  59. package/dist/eval/denials.d.ts +64 -0
  60. package/dist/eval/denials.d.ts.map +1 -0
  61. package/dist/eval/denials.js +87 -0
  62. package/dist/eval/denials.js.map +1 -0
  63. package/dist/eval/engine/cancellation.d.ts +12 -0
  64. package/dist/eval/engine/cancellation.d.ts.map +1 -0
  65. package/dist/eval/engine/cancellation.js +56 -0
  66. package/dist/eval/engine/cancellation.js.map +1 -0
  67. package/dist/eval/engine/delta.d.ts +104 -0
  68. package/dist/eval/engine/delta.d.ts.map +1 -0
  69. package/dist/eval/engine/delta.js +466 -0
  70. package/dist/eval/engine/delta.js.map +1 -0
  71. package/dist/eval/engine/deps.d.ts +136 -0
  72. package/dist/eval/engine/deps.d.ts.map +1 -0
  73. package/dist/eval/engine/deps.js +345 -0
  74. package/dist/eval/engine/deps.js.map +1 -0
  75. package/dist/eval/engine/identity.d.ts +128 -0
  76. package/dist/eval/engine/identity.d.ts.map +1 -0
  77. package/dist/eval/engine/identity.js +398 -0
  78. package/dist/eval/engine/identity.js.map +1 -0
  79. package/dist/eval/engine/index.d.ts +200 -0
  80. package/dist/eval/engine/index.d.ts.map +1 -0
  81. package/dist/eval/engine/index.js +1242 -0
  82. package/dist/eval/engine/index.js.map +1 -0
  83. package/dist/eval/engine/measurement.d.ts +23 -0
  84. package/dist/eval/engine/measurement.d.ts.map +1 -0
  85. package/dist/eval/engine/measurement.js +42 -0
  86. package/dist/eval/engine/measurement.js.map +1 -0
  87. package/dist/eval/engine/naive.d.ts +19 -0
  88. package/dist/eval/engine/naive.d.ts.map +1 -0
  89. package/dist/eval/engine/naive.js +59 -0
  90. package/dist/eval/engine/naive.js.map +1 -0
  91. package/dist/eval/engine/ops.d.ts +214 -0
  92. package/dist/eval/engine/ops.d.ts.map +1 -0
  93. package/dist/eval/engine/ops.js +1422 -0
  94. package/dist/eval/engine/ops.js.map +1 -0
  95. package/dist/eval/engine/patches.d.ts +40 -0
  96. package/dist/eval/engine/patches.d.ts.map +1 -0
  97. package/dist/eval/engine/patches.js +125 -0
  98. package/dist/eval/engine/patches.js.map +1 -0
  99. package/dist/eval/engine/ports.d.ts +71 -0
  100. package/dist/eval/engine/ports.d.ts.map +1 -0
  101. package/dist/eval/engine/ports.js +2 -0
  102. package/dist/eval/engine/ports.js.map +1 -0
  103. package/dist/eval/engine/session.d.ts +116 -0
  104. package/dist/eval/engine/session.d.ts.map +1 -0
  105. package/dist/eval/engine/session.js +653 -0
  106. package/dist/eval/engine/session.js.map +1 -0
  107. package/dist/eval/engine/snapshot.d.ts +97 -0
  108. package/dist/eval/engine/snapshot.d.ts.map +1 -0
  109. package/dist/eval/engine/snapshot.js +221 -0
  110. package/dist/eval/engine/snapshot.js.map +1 -0
  111. package/dist/eval/engine/subscriptions.d.ts +47 -0
  112. package/dist/eval/engine/subscriptions.d.ts.map +1 -0
  113. package/dist/eval/engine/subscriptions.js +103 -0
  114. package/dist/eval/engine/subscriptions.js.map +1 -0
  115. package/dist/eval/engine/trace.d.ts +77 -0
  116. package/dist/eval/engine/trace.d.ts.map +1 -0
  117. package/dist/eval/engine/trace.js +140 -0
  118. package/dist/eval/engine/trace.js.map +1 -0
  119. package/dist/eval/error-diagnostic.d.ts +26 -0
  120. package/dist/eval/error-diagnostic.d.ts.map +1 -0
  121. package/dist/eval/error-diagnostic.js +63 -0
  122. package/dist/eval/error-diagnostic.js.map +1 -0
  123. package/dist/eval/evaluate-expr.d.ts +44 -0
  124. package/dist/eval/evaluate-expr.d.ts.map +1 -0
  125. package/dist/eval/evaluate-expr.js +149 -0
  126. package/dist/eval/evaluate-expr.js.map +1 -0
  127. package/dist/eval/evaluate.d.ts +282 -0
  128. package/dist/eval/evaluate.d.ts.map +1 -0
  129. package/dist/eval/evaluate.js +391 -0
  130. package/dist/eval/evaluate.js.map +1 -0
  131. package/dist/eval/evolution/relocate.d.ts +72 -0
  132. package/dist/eval/evolution/relocate.d.ts.map +1 -0
  133. package/dist/eval/evolution/relocate.js +427 -0
  134. package/dist/eval/evolution/relocate.js.map +1 -0
  135. package/dist/eval/evolution/select.d.ts +11 -0
  136. package/dist/eval/evolution/select.d.ts.map +1 -0
  137. package/dist/eval/evolution/select.js +53 -0
  138. package/dist/eval/evolution/select.js.map +1 -0
  139. package/dist/eval/evolution/upcast.d.ts +13 -0
  140. package/dist/eval/evolution/upcast.d.ts.map +1 -0
  141. package/dist/eval/evolution/upcast.js +88 -0
  142. package/dist/eval/evolution/upcast.js.map +1 -0
  143. package/dist/eval/expr/aggregates.d.ts +75 -0
  144. package/dist/eval/expr/aggregates.d.ts.map +1 -0
  145. package/dist/eval/expr/aggregates.js +991 -0
  146. package/dist/eval/expr/aggregates.js.map +1 -0
  147. package/dist/eval/expr/arithmetic.d.ts +26 -0
  148. package/dist/eval/expr/arithmetic.d.ts.map +1 -0
  149. package/dist/eval/expr/arithmetic.js +387 -0
  150. package/dist/eval/expr/arithmetic.js.map +1 -0
  151. package/dist/eval/expr/between.d.ts +17 -0
  152. package/dist/eval/expr/between.d.ts.map +1 -0
  153. package/dist/eval/expr/between.js +46 -0
  154. package/dist/eval/expr/between.js.map +1 -0
  155. package/dist/eval/expr/binder.d.ts +96 -0
  156. package/dist/eval/expr/binder.d.ts.map +1 -0
  157. package/dist/eval/expr/binder.js +253 -0
  158. package/dist/eval/expr/binder.js.map +1 -0
  159. package/dist/eval/expr/call-dispatch.d.ts +28 -0
  160. package/dist/eval/expr/call-dispatch.d.ts.map +1 -0
  161. package/dist/eval/expr/call-dispatch.js +114 -0
  162. package/dist/eval/expr/call-dispatch.js.map +1 -0
  163. package/dist/eval/expr/collections.d.ts +20 -0
  164. package/dist/eval/expr/collections.d.ts.map +1 -0
  165. package/dist/eval/expr/collections.js +66 -0
  166. package/dist/eval/expr/collections.js.map +1 -0
  167. package/dist/eval/expr/compare.d.ts +36 -0
  168. package/dist/eval/expr/compare.d.ts.map +1 -0
  169. package/dist/eval/expr/compare.js +115 -0
  170. package/dist/eval/expr/compare.js.map +1 -0
  171. package/dist/eval/expr/datasets.d.ts +28 -0
  172. package/dist/eval/expr/datasets.d.ts.map +1 -0
  173. package/dist/eval/expr/datasets.js +304 -0
  174. package/dist/eval/expr/datasets.js.map +1 -0
  175. package/dist/eval/expr/digest.d.ts +23 -0
  176. package/dist/eval/expr/digest.d.ts.map +1 -0
  177. package/dist/eval/expr/digest.js +89 -0
  178. package/dist/eval/expr/digest.js.map +1 -0
  179. package/dist/eval/expr/domains.d.ts +19 -0
  180. package/dist/eval/expr/domains.d.ts.map +1 -0
  181. package/dist/eval/expr/domains.js +18 -0
  182. package/dist/eval/expr/domains.js.map +1 -0
  183. package/dist/eval/expr/host.d.ts +152 -0
  184. package/dist/eval/expr/host.d.ts.map +1 -0
  185. package/dist/eval/expr/host.js +36 -0
  186. package/dist/eval/expr/host.js.map +1 -0
  187. package/dist/eval/expr/lists.d.ts +24 -0
  188. package/dist/eval/expr/lists.d.ts.map +1 -0
  189. package/dist/eval/expr/lists.js +155 -0
  190. package/dist/eval/expr/lists.js.map +1 -0
  191. package/dist/eval/expr/member.d.ts +15 -0
  192. package/dist/eval/expr/member.d.ts.map +1 -0
  193. package/dist/eval/expr/member.js +32 -0
  194. package/dist/eval/expr/member.js.map +1 -0
  195. package/dist/eval/expr/money-ops.d.ts +10 -0
  196. package/dist/eval/expr/money-ops.d.ts.map +1 -0
  197. package/dist/eval/expr/money-ops.js +17 -0
  198. package/dist/eval/expr/money-ops.js.map +1 -0
  199. package/dist/eval/expr/operands.d.ts +27 -0
  200. package/dist/eval/expr/operands.d.ts.map +1 -0
  201. package/dist/eval/expr/operands.js +167 -0
  202. package/dist/eval/expr/operands.js.map +1 -0
  203. package/dist/eval/expr/presence.d.ts +27 -0
  204. package/dist/eval/expr/presence.d.ts.map +1 -0
  205. package/dist/eval/expr/presence.js +140 -0
  206. package/dist/eval/expr/presence.js.map +1 -0
  207. package/dist/eval/expr/records.d.ts +22 -0
  208. package/dist/eval/expr/records.d.ts.map +1 -0
  209. package/dist/eval/expr/records.js +101 -0
  210. package/dist/eval/expr/records.js.map +1 -0
  211. package/dist/eval/expr/rule-refs.d.ts +25 -0
  212. package/dist/eval/expr/rule-refs.d.ts.map +1 -0
  213. package/dist/eval/expr/rule-refs.js +60 -0
  214. package/dist/eval/expr/rule-refs.js.map +1 -0
  215. package/dist/eval/expr/sequences.d.ts +26 -0
  216. package/dist/eval/expr/sequences.d.ts.map +1 -0
  217. package/dist/eval/expr/sequences.js +151 -0
  218. package/dist/eval/expr/sequences.js.map +1 -0
  219. package/dist/eval/expr/value.d.ts +99 -0
  220. package/dist/eval/expr/value.d.ts.map +1 -0
  221. package/dist/eval/expr/value.js +14 -0
  222. package/dist/eval/expr/value.js.map +1 -0
  223. package/dist/eval/expression.d.ts +142 -0
  224. package/dist/eval/expression.d.ts.map +1 -0
  225. package/dist/eval/expression.js +446 -0
  226. package/dist/eval/expression.js.map +1 -0
  227. package/dist/eval/firing.d.ts +68 -0
  228. package/dist/eval/firing.d.ts.map +1 -0
  229. package/dist/eval/firing.js +222 -0
  230. package/dist/eval/firing.js.map +1 -0
  231. package/dist/eval/gate.d.ts +110 -0
  232. package/dist/eval/gate.d.ts.map +1 -0
  233. package/dist/eval/gate.js +278 -0
  234. package/dist/eval/gate.js.map +1 -0
  235. package/dist/eval/layout-visibility.d.ts +18 -0
  236. package/dist/eval/layout-visibility.d.ts.map +1 -0
  237. package/dist/eval/layout-visibility.js +61 -0
  238. package/dist/eval/layout-visibility.js.map +1 -0
  239. package/dist/eval/option-availability.d.ts +26 -0
  240. package/dist/eval/option-availability.d.ts.map +1 -0
  241. package/dist/eval/option-availability.js +580 -0
  242. package/dist/eval/option-availability.js.map +1 -0
  243. package/dist/eval/options-boundary.d.ts +15 -0
  244. package/dist/eval/options-boundary.d.ts.map +1 -0
  245. package/dist/eval/options-boundary.js +40 -0
  246. package/dist/eval/options-boundary.js.map +1 -0
  247. package/dist/eval/options.d.ts +99 -0
  248. package/dist/eval/options.d.ts.map +1 -0
  249. package/dist/eval/options.js +96 -0
  250. package/dist/eval/options.js.map +1 -0
  251. package/dist/eval/overrides.d.ts +116 -0
  252. package/dist/eval/overrides.d.ts.map +1 -0
  253. package/dist/eval/overrides.js +176 -0
  254. package/dist/eval/overrides.js.map +1 -0
  255. package/dist/eval/paths.d.ts +25 -0
  256. package/dist/eval/paths.d.ts.map +1 -0
  257. package/dist/eval/paths.js +47 -0
  258. package/dist/eval/paths.js.map +1 -0
  259. package/dist/eval/presentation-reads.d.ts +20 -0
  260. package/dist/eval/presentation-reads.d.ts.map +1 -0
  261. package/dist/eval/presentation-reads.js +2 -0
  262. package/dist/eval/presentation-reads.js.map +1 -0
  263. package/dist/eval/presentation.d.ts +122 -0
  264. package/dist/eval/presentation.d.ts.map +1 -0
  265. package/dist/eval/presentation.js +255 -0
  266. package/dist/eval/presentation.js.map +1 -0
  267. package/dist/eval/reader/context-value.d.ts +41 -0
  268. package/dist/eval/reader/context-value.d.ts.map +1 -0
  269. package/dist/eval/reader/context-value.js +129 -0
  270. package/dist/eval/reader/context-value.js.map +1 -0
  271. package/dist/eval/reader/covered.d.ts +53 -0
  272. package/dist/eval/reader/covered.d.ts.map +1 -0
  273. package/dist/eval/reader/covered.js +139 -0
  274. package/dist/eval/reader/covered.js.map +1 -0
  275. package/dist/eval/reader/declarations.d.ts +182 -0
  276. package/dist/eval/reader/declarations.d.ts.map +1 -0
  277. package/dist/eval/reader/declarations.js +153 -0
  278. package/dist/eval/reader/declarations.js.map +1 -0
  279. package/dist/eval/reader/member-access.d.ts +87 -0
  280. package/dist/eval/reader/member-access.d.ts.map +1 -0
  281. package/dist/eval/reader/member-access.js +212 -0
  282. package/dist/eval/reader/member-access.js.map +1 -0
  283. package/dist/eval/reader/memo.d.ts +34 -0
  284. package/dist/eval/reader/memo.d.ts.map +1 -0
  285. package/dist/eval/reader/memo.js +67 -0
  286. package/dist/eval/reader/memo.js.map +1 -0
  287. package/dist/eval/reader/overlay.d.ts +74 -0
  288. package/dist/eval/reader/overlay.d.ts.map +1 -0
  289. package/dist/eval/reader/overlay.js +365 -0
  290. package/dist/eval/reader/overlay.js.map +1 -0
  291. package/dist/eval/reader/questions.d.ts +37 -0
  292. package/dist/eval/reader/questions.d.ts.map +1 -0
  293. package/dist/eval/reader/questions.js +78 -0
  294. package/dist/eval/reader/questions.js.map +1 -0
  295. package/dist/eval/reader/resolve.d.ts +84 -0
  296. package/dist/eval/reader/resolve.d.ts.map +1 -0
  297. package/dist/eval/reader/resolve.js +310 -0
  298. package/dist/eval/reader/resolve.js.map +1 -0
  299. package/dist/eval/reader/value-read.d.ts +50 -0
  300. package/dist/eval/reader/value-read.d.ts.map +1 -0
  301. package/dist/eval/reader/value-read.js +133 -0
  302. package/dist/eval/reader/value-read.js.map +1 -0
  303. package/dist/eval/reader/withheld.d.ts +48 -0
  304. package/dist/eval/reader/withheld.d.ts.map +1 -0
  305. package/dist/eval/reader/withheld.js +108 -0
  306. package/dist/eval/reader/withheld.js.map +1 -0
  307. package/dist/eval/reader-paths.d.ts +24 -0
  308. package/dist/eval/reader-paths.d.ts.map +1 -0
  309. package/dist/eval/reader-paths.js +23 -0
  310. package/dist/eval/reader-paths.js.map +1 -0
  311. package/dist/eval/reader.d.ts +281 -0
  312. package/dist/eval/reader.d.ts.map +1 -0
  313. package/dist/eval/reader.js +560 -0
  314. package/dist/eval/reader.js.map +1 -0
  315. package/dist/eval/receipt.d.ts +37 -0
  316. package/dist/eval/receipt.d.ts.map +1 -0
  317. package/dist/eval/receipt.js +222 -0
  318. package/dist/eval/receipt.js.map +1 -0
  319. package/dist/eval/report/assemble.d.ts +84 -0
  320. package/dist/eval/report/assemble.d.ts.map +1 -0
  321. package/dist/eval/report/assemble.js +277 -0
  322. package/dist/eval/report/assemble.js.map +1 -0
  323. package/dist/eval/report/fold.d.ts +18 -0
  324. package/dist/eval/report/fold.d.ts.map +1 -0
  325. package/dist/eval/report/fold.js +58 -0
  326. package/dist/eval/report/fold.js.map +1 -0
  327. package/dist/eval/rule/alternatives.d.ts +23 -0
  328. package/dist/eval/rule/alternatives.d.ts.map +1 -0
  329. package/dist/eval/rule/alternatives.js +46 -0
  330. package/dist/eval/rule/alternatives.js.map +1 -0
  331. package/dist/eval/rule/behaviour.d.ts +47 -0
  332. package/dist/eval/rule/behaviour.d.ts.map +1 -0
  333. package/dist/eval/rule/behaviour.js +249 -0
  334. package/dist/eval/rule/behaviour.js.map +1 -0
  335. package/dist/eval/rule/compute.d.ts +46 -0
  336. package/dist/eval/rule/compute.d.ts.map +1 -0
  337. package/dist/eval/rule/compute.js +158 -0
  338. package/dist/eval/rule/compute.js.map +1 -0
  339. package/dist/eval/rule/create-state.d.ts +42 -0
  340. package/dist/eval/rule/create-state.d.ts.map +1 -0
  341. package/dist/eval/rule/create-state.js +134 -0
  342. package/dist/eval/rule/create-state.js.map +1 -0
  343. package/dist/eval/rule/diagnostics.d.ts +24 -0
  344. package/dist/eval/rule/diagnostics.d.ts.map +1 -0
  345. package/dist/eval/rule/diagnostics.js +45 -0
  346. package/dist/eval/rule/diagnostics.js.map +1 -0
  347. package/dist/eval/rule/execution.d.ts +24 -0
  348. package/dist/eval/rule/execution.d.ts.map +1 -0
  349. package/dist/eval/rule/execution.js +495 -0
  350. package/dist/eval/rule/execution.js.map +1 -0
  351. package/dist/eval/rule/gate.d.ts +12 -0
  352. package/dist/eval/rule/gate.d.ts.map +1 -0
  353. package/dist/eval/rule/gate.js +34 -0
  354. package/dist/eval/rule/gate.js.map +1 -0
  355. package/dist/eval/rule/item.d.ts +11 -0
  356. package/dist/eval/rule/item.d.ts.map +1 -0
  357. package/dist/eval/rule/item.js +265 -0
  358. package/dist/eval/rule/item.js.map +1 -0
  359. package/dist/eval/rule/prepare.d.ts +64 -0
  360. package/dist/eval/rule/prepare.d.ts.map +1 -0
  361. package/dist/eval/rule/prepare.js +131 -0
  362. package/dist/eval/rule/prepare.js.map +1 -0
  363. package/dist/eval/rule/result.d.ts +97 -0
  364. package/dist/eval/rule/result.d.ts.map +1 -0
  365. package/dist/eval/rule/result.js +347 -0
  366. package/dist/eval/rule/result.js.map +1 -0
  367. package/dist/eval/rule/runner.d.ts +128 -0
  368. package/dist/eval/rule/runner.d.ts.map +1 -0
  369. package/dist/eval/rule/runner.js +296 -0
  370. package/dist/eval/rule/runner.js.map +1 -0
  371. package/dist/eval/rule/screen.d.ts +32 -0
  372. package/dist/eval/rule/screen.d.ts.map +1 -0
  373. package/dist/eval/rule/screen.js +73 -0
  374. package/dist/eval/rule/screen.js.map +1 -0
  375. package/dist/eval/rule/state.d.ts +137 -0
  376. package/dist/eval/rule/state.d.ts.map +1 -0
  377. package/dist/eval/rule/state.js +2 -0
  378. package/dist/eval/rule/state.js.map +1 -0
  379. package/dist/eval/rule/steps.d.ts +44 -0
  380. package/dist/eval/rule/steps.d.ts.map +1 -0
  381. package/dist/eval/rule/steps.js +367 -0
  382. package/dist/eval/rule/steps.js.map +1 -0
  383. package/dist/eval/rule/visibility.d.ts +18 -0
  384. package/dist/eval/rule/visibility.d.ts.map +1 -0
  385. package/dist/eval/rule/visibility.js +79 -0
  386. package/dist/eval/rule/visibility.js.map +1 -0
  387. package/dist/eval/seal.d.ts +74 -0
  388. package/dist/eval/seal.d.ts.map +1 -0
  389. package/dist/eval/seal.js +154 -0
  390. package/dist/eval/seal.js.map +1 -0
  391. package/dist/eval/signature-coverage.d.ts +19 -0
  392. package/dist/eval/signature-coverage.d.ts.map +1 -0
  393. package/dist/eval/signature-coverage.js +160 -0
  394. package/dist/eval/signature-coverage.js.map +1 -0
  395. package/dist/eval/state/derive.d.ts +72 -0
  396. package/dist/eval/state/derive.d.ts.map +1 -0
  397. package/dist/eval/state/derive.js +61 -0
  398. package/dist/eval/state/derive.js.map +1 -0
  399. package/dist/eval/state/describe.d.ts +18 -0
  400. package/dist/eval/state/describe.d.ts.map +1 -0
  401. package/dist/eval/state/describe.js +19 -0
  402. package/dist/eval/state/describe.js.map +1 -0
  403. package/dist/eval/state/field-state.d.ts +471 -0
  404. package/dist/eval/state/field-state.d.ts.map +1 -0
  405. package/dist/eval/state/field-state.js +1604 -0
  406. package/dist/eval/state/field-state.js.map +1 -0
  407. package/dist/eval/state/measurement.d.ts +136 -0
  408. package/dist/eval/state/measurement.d.ts.map +1 -0
  409. package/dist/eval/state/measurement.js +209 -0
  410. package/dist/eval/state/measurement.js.map +1 -0
  411. package/dist/eval/state/options.d.ts +21 -0
  412. package/dist/eval/state/options.d.ts.map +1 -0
  413. package/dist/eval/state/options.js +3 -0
  414. package/dist/eval/state/options.js.map +1 -0
  415. package/dist/eval/state/readiness.d.ts +400 -0
  416. package/dist/eval/state/readiness.d.ts.map +1 -0
  417. package/dist/eval/state/readiness.js +1067 -0
  418. package/dist/eval/state/readiness.js.map +1 -0
  419. package/dist/eval/state/snapshot.d.ts +130 -0
  420. package/dist/eval/state/snapshot.d.ts.map +1 -0
  421. package/dist/eval/state/snapshot.js +35 -0
  422. package/dist/eval/state/snapshot.js.map +1 -0
  423. package/dist/eval/state/unavailable-options.d.ts +54 -0
  424. package/dist/eval/state/unavailable-options.d.ts.map +1 -0
  425. package/dist/eval/state/unavailable-options.js +82 -0
  426. package/dist/eval/state/unavailable-options.js.map +1 -0
  427. package/dist/eval/state/value-state.d.ts +38 -0
  428. package/dist/eval/state/value-state.d.ts.map +1 -0
  429. package/dist/eval/state/value-state.js +52 -0
  430. package/dist/eval/state/value-state.js.map +1 -0
  431. package/dist/eval/submission/admission.d.ts +50 -0
  432. package/dist/eval/submission/admission.d.ts.map +1 -0
  433. package/dist/eval/submission/admission.js +174 -0
  434. package/dist/eval/submission/admission.js.map +1 -0
  435. package/dist/eval/submission/authority.d.ts +71 -0
  436. package/dist/eval/submission/authority.d.ts.map +1 -0
  437. package/dist/eval/submission/authority.js +118 -0
  438. package/dist/eval/submission/authority.js.map +1 -0
  439. package/dist/eval/submission/datasets.d.ts +28 -0
  440. package/dist/eval/submission/datasets.d.ts.map +1 -0
  441. package/dist/eval/submission/datasets.js +109 -0
  442. package/dist/eval/submission/datasets.js.map +1 -0
  443. package/dist/eval/submission/index.d.ts +15 -0
  444. package/dist/eval/submission/index.d.ts.map +1 -0
  445. package/dist/eval/submission/index.js +13 -0
  446. package/dist/eval/submission/index.js.map +1 -0
  447. package/dist/eval/submission/refusals.d.ts +103 -0
  448. package/dist/eval/submission/refusals.d.ts.map +1 -0
  449. package/dist/eval/submission/refusals.js +15 -0
  450. package/dist/eval/submission/refusals.js.map +1 -0
  451. package/dist/eval/submission/signatures.d.ts +7 -0
  452. package/dist/eval/submission/signatures.d.ts.map +1 -0
  453. package/dist/eval/submission/signatures.js +215 -0
  454. package/dist/eval/submission/signatures.js.map +1 -0
  455. package/dist/eval/submission/writes.d.ts +51 -0
  456. package/dist/eval/submission/writes.d.ts.map +1 -0
  457. package/dist/eval/submission/writes.js +203 -0
  458. package/dist/eval/submission/writes.js.map +1 -0
  459. package/dist/eval/submission.d.ts +53 -0
  460. package/dist/eval/submission.d.ts.map +1 -0
  461. package/dist/eval/submission.js +521 -0
  462. package/dist/eval/submission.js.map +1 -0
  463. package/dist/eval/suggestions-to-engine.d.ts +18 -0
  464. package/dist/eval/suggestions-to-engine.d.ts.map +1 -0
  465. package/dist/eval/suggestions-to-engine.js +40 -0
  466. package/dist/eval/suggestions-to-engine.js.map +1 -0
  467. package/dist/eval/suggestions.d.ts +17 -0
  468. package/dist/eval/suggestions.d.ts.map +1 -0
  469. package/dist/eval/suggestions.js +314 -0
  470. package/dist/eval/suggestions.js.map +1 -0
  471. package/dist/eval/undecided.d.ts +64 -0
  472. package/dist/eval/undecided.d.ts.map +1 -0
  473. package/dist/eval/undecided.js +101 -0
  474. package/dist/eval/undecided.js.map +1 -0
  475. package/dist/eval/verdict.d.ts +66 -0
  476. package/dist/eval/verdict.d.ts.map +1 -0
  477. package/dist/eval/verdict.js +106 -0
  478. package/dist/eval/verdict.js.map +1 -0
  479. package/dist/eval/verify-signature.d.ts +78 -0
  480. package/dist/eval/verify-signature.d.ts.map +1 -0
  481. package/dist/eval/verify-signature.js +185 -0
  482. package/dist/eval/verify-signature.js.map +1 -0
  483. package/dist/eval/version-dispatch.d.ts +38 -0
  484. package/dist/eval/version-dispatch.d.ts.map +1 -0
  485. package/dist/eval/version-dispatch.js +61 -0
  486. package/dist/eval/version-dispatch.js.map +1 -0
  487. package/dist/eval/visibility.d.ts +33 -0
  488. package/dist/eval/visibility.d.ts.map +1 -0
  489. package/dist/eval/visibility.js +83 -0
  490. package/dist/eval/visibility.js.map +1 -0
  491. package/dist/evaluate.d.ts +24 -0
  492. package/dist/evaluate.d.ts.map +1 -0
  493. package/dist/evaluate.js +18 -0
  494. package/dist/evaluate.js.map +1 -0
  495. package/dist/expr/builtin-docs.d.ts +51 -0
  496. package/dist/expr/builtin-docs.d.ts.map +1 -0
  497. package/dist/expr/builtin-docs.js +874 -0
  498. package/dist/expr/builtin-docs.js.map +1 -0
  499. package/dist/expr/builtins.d.ts +50 -0
  500. package/dist/expr/builtins.d.ts.map +1 -0
  501. package/dist/expr/builtins.js +966 -0
  502. package/dist/expr/builtins.js.map +1 -0
  503. package/dist/expr/decimal-precision.d.ts +39 -0
  504. package/dist/expr/decimal-precision.d.ts.map +1 -0
  505. package/dist/expr/decimal-precision.js +62 -0
  506. package/dist/expr/decimal-precision.js.map +1 -0
  507. package/dist/expr/decimal.d.ts +172 -0
  508. package/dist/expr/decimal.d.ts.map +1 -0
  509. package/dist/expr/decimal.js +782 -0
  510. package/dist/expr/decimal.js.map +1 -0
  511. package/dist/expr/deprecations.d.ts +34 -0
  512. package/dist/expr/deprecations.d.ts.map +1 -0
  513. package/dist/expr/deprecations.js +17 -0
  514. package/dist/expr/deprecations.js.map +1 -0
  515. package/dist/expr/diagnostics.d.ts +21 -0
  516. package/dist/expr/diagnostics.d.ts.map +1 -0
  517. package/dist/expr/diagnostics.js +231 -0
  518. package/dist/expr/diagnostics.js.map +1 -0
  519. package/dist/expr/direction.d.ts +30 -0
  520. package/dist/expr/direction.d.ts.map +1 -0
  521. package/dist/expr/direction.js +77 -0
  522. package/dist/expr/direction.js.map +1 -0
  523. package/dist/expr/example-expression.d.ts +62 -0
  524. package/dist/expr/example-expression.d.ts.map +1 -0
  525. package/dist/expr/example-expression.js +670 -0
  526. package/dist/expr/example-expression.js.map +1 -0
  527. package/dist/expr/instant.d.ts +49 -0
  528. package/dist/expr/instant.d.ts.map +1 -0
  529. package/dist/expr/instant.js +111 -0
  530. package/dist/expr/instant.js.map +1 -0
  531. package/dist/expr/logic.d.ts +17 -0
  532. package/dist/expr/logic.d.ts.map +1 -0
  533. package/dist/expr/logic.js +65 -0
  534. package/dist/expr/logic.js.map +1 -0
  535. package/dist/expr/messages.d.ts +45 -0
  536. package/dist/expr/messages.d.ts.map +1 -0
  537. package/dist/expr/messages.js +280 -0
  538. package/dist/expr/messages.js.map +1 -0
  539. package/dist/expr/money.d.ts +38 -0
  540. package/dist/expr/money.d.ts.map +1 -0
  541. package/dist/expr/money.js +127 -0
  542. package/dist/expr/money.js.map +1 -0
  543. package/dist/expr/ordering.d.ts +56 -0
  544. package/dist/expr/ordering.d.ts.map +1 -0
  545. package/dist/expr/ordering.js +167 -0
  546. package/dist/expr/ordering.js.map +1 -0
  547. package/dist/expr/pattern.d.ts +44 -0
  548. package/dist/expr/pattern.d.ts.map +1 -0
  549. package/dist/expr/pattern.js +458 -0
  550. package/dist/expr/pattern.js.map +1 -0
  551. package/dist/expr/plain-date.d.ts +90 -0
  552. package/dist/expr/plain-date.d.ts.map +1 -0
  553. package/dist/expr/plain-date.js +230 -0
  554. package/dist/expr/plain-date.js.map +1 -0
  555. package/dist/expr/plural-categories.d.ts +8 -0
  556. package/dist/expr/plural-categories.d.ts.map +1 -0
  557. package/dist/expr/plural-categories.js +15 -0
  558. package/dist/expr/plural-categories.js.map +1 -0
  559. package/dist/expr/plural-keys.d.ts +39 -0
  560. package/dist/expr/plural-keys.d.ts.map +1 -0
  561. package/dist/expr/plural-keys.js +46 -0
  562. package/dist/expr/plural-keys.js.map +1 -0
  563. package/dist/expr/plural.d.ts +33 -0
  564. package/dist/expr/plural.d.ts.map +1 -0
  565. package/dist/expr/plural.js +50 -0
  566. package/dist/expr/plural.js.map +1 -0
  567. package/dist/expr/quantity.d.ts +31 -0
  568. package/dist/expr/quantity.d.ts.map +1 -0
  569. package/dist/expr/quantity.js +83 -0
  570. package/dist/expr/quantity.js.map +1 -0
  571. package/dist/expr/reduce.d.ts +50 -0
  572. package/dist/expr/reduce.d.ts.map +1 -0
  573. package/dist/expr/reduce.js +236 -0
  574. package/dist/expr/reduce.js.map +1 -0
  575. package/dist/expr/regex.d.ts +108 -0
  576. package/dist/expr/regex.d.ts.map +1 -0
  577. package/dist/expr/regex.js +1207 -0
  578. package/dist/expr/regex.js.map +1 -0
  579. package/dist/expr/select-locale.d.ts +67 -0
  580. package/dist/expr/select-locale.d.ts.map +1 -0
  581. package/dist/expr/select-locale.js +219 -0
  582. package/dist/expr/select-locale.js.map +1 -0
  583. package/dist/expr/sequences.d.ts +123 -0
  584. package/dist/expr/sequences.d.ts.map +1 -0
  585. package/dist/expr/sequences.js +234 -0
  586. package/dist/expr/sequences.js.map +1 -0
  587. package/dist/expr/strings.d.ts +50 -0
  588. package/dist/expr/strings.d.ts.map +1 -0
  589. package/dist/expr/strings.js +184 -0
  590. package/dist/expr/strings.js.map +1 -0
  591. package/dist/expr/validation.d.ts +32 -0
  592. package/dist/expr/validation.d.ts.map +1 -0
  593. package/dist/expr/validation.js +182 -0
  594. package/dist/expr/validation.js.map +1 -0
  595. package/dist/graph/freeze.d.ts +4 -0
  596. package/dist/graph/freeze.d.ts.map +1 -0
  597. package/dist/graph/freeze.js +52 -0
  598. package/dist/graph/freeze.js.map +1 -0
  599. package/dist/graph/index.d.ts +15 -0
  600. package/dist/graph/index.d.ts.map +1 -0
  601. package/dist/graph/index.js +13 -0
  602. package/dist/graph/index.js.map +1 -0
  603. package/dist/graph/inspect.d.ts +76 -0
  604. package/dist/graph/inspect.d.ts.map +1 -0
  605. package/dist/graph/inspect.js +263 -0
  606. package/dist/graph/inspect.js.map +1 -0
  607. package/dist/graph/read-walk.d.ts +101 -0
  608. package/dist/graph/read-walk.d.ts.map +1 -0
  609. package/dist/graph/read-walk.js +358 -0
  610. package/dist/graph/read-walk.js.map +1 -0
  611. package/dist/graph/record-index.d.ts +24 -0
  612. package/dist/graph/record-index.d.ts.map +1 -0
  613. package/dist/graph/record-index.js +35 -0
  614. package/dist/graph/record-index.js.map +1 -0
  615. package/dist/index.d.ts +104 -0
  616. package/dist/index.d.ts.map +1 -0
  617. package/dist/index.js +139 -0
  618. package/dist/index.js.map +1 -0
  619. package/dist/lookup/digest.d.ts +51 -0
  620. package/dist/lookup/digest.d.ts.map +1 -0
  621. package/dist/lookup/digest.js +46 -0
  622. package/dist/lookup/digest.js.map +1 -0
  623. package/dist/lookup/index.d.ts +28 -0
  624. package/dist/lookup/index.d.ts.map +1 -0
  625. package/dist/lookup/index.js +27 -0
  626. package/dist/lookup/index.js.map +1 -0
  627. package/dist/lookup/install.d.ts +48 -0
  628. package/dist/lookup/install.d.ts.map +1 -0
  629. package/dist/lookup/install.js +315 -0
  630. package/dist/lookup/install.js.map +1 -0
  631. package/dist/lookup/pass.d.ts +55 -0
  632. package/dist/lookup/pass.d.ts.map +1 -0
  633. package/dist/lookup/pass.js +212 -0
  634. package/dist/lookup/pass.js.map +1 -0
  635. package/dist/lookup/pins.d.ts +34 -0
  636. package/dist/lookup/pins.d.ts.map +1 -0
  637. package/dist/lookup/pins.js +39 -0
  638. package/dist/lookup/pins.js.map +1 -0
  639. package/dist/lookup/provenance.d.ts +23 -0
  640. package/dist/lookup/provenance.d.ts.map +1 -0
  641. package/dist/lookup/provenance.js +78 -0
  642. package/dist/lookup/provenance.js.map +1 -0
  643. package/dist/lookup/readiness.d.ts +13 -0
  644. package/dist/lookup/readiness.d.ts.map +1 -0
  645. package/dist/lookup/readiness.js +57 -0
  646. package/dist/lookup/readiness.js.map +1 -0
  647. package/dist/lookup/resolve.d.ts +24 -0
  648. package/dist/lookup/resolve.d.ts.map +1 -0
  649. package/dist/lookup/resolve.js +201 -0
  650. package/dist/lookup/resolve.js.map +1 -0
  651. package/dist/lookup/store.d.ts +41 -0
  652. package/dist/lookup/store.d.ts.map +1 -0
  653. package/dist/lookup/store.js +74 -0
  654. package/dist/lookup/store.js.map +1 -0
  655. package/dist/model/access.d.ts +200 -0
  656. package/dist/model/access.d.ts.map +1 -0
  657. package/dist/model/access.js +125 -0
  658. package/dist/model/access.js.map +1 -0
  659. package/dist/model/artifact-members.d.ts +3 -0
  660. package/dist/model/artifact-members.d.ts.map +1 -0
  661. package/dist/model/artifact-members.js +38 -0
  662. package/dist/model/artifact-members.js.map +1 -0
  663. package/dist/model/composition.d.ts +47 -0
  664. package/dist/model/composition.d.ts.map +1 -0
  665. package/dist/model/composition.js +66 -0
  666. package/dist/model/composition.js.map +1 -0
  667. package/dist/model/domain.d.ts +51 -0
  668. package/dist/model/domain.d.ts.map +1 -0
  669. package/dist/model/domain.js +75 -0
  670. package/dist/model/domain.js.map +1 -0
  671. package/dist/model/duration.d.ts +31 -0
  672. package/dist/model/duration.d.ts.map +1 -0
  673. package/dist/model/duration.js +136 -0
  674. package/dist/model/duration.js.map +1 -0
  675. package/dist/model/errors.d.ts +58 -0
  676. package/dist/model/errors.d.ts.map +1 -0
  677. package/dist/model/errors.js +81 -0
  678. package/dist/model/errors.js.map +1 -0
  679. package/dist/model/evolution.d.ts +177 -0
  680. package/dist/model/evolution.d.ts.map +1 -0
  681. package/dist/model/evolution.js +5 -0
  682. package/dist/model/evolution.js.map +1 -0
  683. package/dist/model/expr-children.d.ts +15 -0
  684. package/dist/model/expr-children.d.ts.map +1 -0
  685. package/dist/model/expr-children.js +45 -0
  686. package/dist/model/expr-children.js.map +1 -0
  687. package/dist/model/guards.d.ts +9 -0
  688. package/dist/model/guards.d.ts.map +1 -0
  689. package/dist/model/guards.js +11 -0
  690. package/dist/model/guards.js.map +1 -0
  691. package/dist/model/input.d.ts +42 -0
  692. package/dist/model/input.d.ts.map +1 -0
  693. package/dist/model/input.js +26 -0
  694. package/dist/model/input.js.map +1 -0
  695. package/dist/model/integer.d.ts +14 -0
  696. package/dist/model/integer.d.ts.map +1 -0
  697. package/dist/model/integer.js +16 -0
  698. package/dist/model/integer.js.map +1 -0
  699. package/dist/model/intrinsic.d.ts +18 -0
  700. package/dist/model/intrinsic.d.ts.map +1 -0
  701. package/dist/model/intrinsic.js +21 -0
  702. package/dist/model/intrinsic.js.map +1 -0
  703. package/dist/model/layout.d.ts +129 -0
  704. package/dist/model/layout.d.ts.map +1 -0
  705. package/dist/model/layout.js +2 -0
  706. package/dist/model/layout.js.map +1 -0
  707. package/dist/model/media.d.ts +33 -0
  708. package/dist/model/media.d.ts.map +1 -0
  709. package/dist/model/media.js +86 -0
  710. package/dist/model/media.js.map +1 -0
  711. package/dist/model/members.generated.d.ts +11 -0
  712. package/dist/model/members.generated.d.ts.map +1 -0
  713. package/dist/model/members.generated.js +71 -0
  714. package/dist/model/members.generated.js.map +1 -0
  715. package/dist/model/row-address.d.ts +27 -0
  716. package/dist/model/row-address.d.ts.map +1 -0
  717. package/dist/model/row-address.js +146 -0
  718. package/dist/model/row-address.js.map +1 -0
  719. package/dist/model/schema.d.ts +108 -0
  720. package/dist/model/schema.d.ts.map +1 -0
  721. package/dist/model/schema.js +2 -0
  722. package/dist/model/schema.js.map +1 -0
  723. package/dist/model/shape.d.ts +193 -0
  724. package/dist/model/shape.d.ts.map +1 -0
  725. package/dist/model/shape.js +2 -0
  726. package/dist/model/shape.js.map +1 -0
  727. package/dist/model/time.d.ts +61 -0
  728. package/dist/model/time.d.ts.map +1 -0
  729. package/dist/model/time.js +110 -0
  730. package/dist/model/time.js.map +1 -0
  731. package/dist/model/types.d.ts +1329 -0
  732. package/dist/model/types.d.ts.map +1 -0
  733. package/dist/model/types.js +424 -0
  734. package/dist/model/types.js.map +1 -0
  735. package/dist/model/values.d.ts +91 -0
  736. package/dist/model/values.d.ts.map +1 -0
  737. package/dist/model/values.js +195 -0
  738. package/dist/model/values.js.map +1 -0
  739. package/dist/model/wire.d.ts +356 -0
  740. package/dist/model/wire.d.ts.map +1 -0
  741. package/dist/model/wire.js +1504 -0
  742. package/dist/model/wire.js.map +1 -0
  743. package/dist/offline/index.d.ts +374 -0
  744. package/dist/offline/index.d.ts.map +1 -0
  745. package/dist/offline/index.js +422 -0
  746. package/dist/offline/index.js.map +1 -0
  747. package/dist/testing.d.ts +30 -0
  748. package/dist/testing.d.ts.map +1 -0
  749. package/dist/testing.js +42 -0
  750. package/dist/testing.js.map +1 -0
  751. package/dist/version.d.ts +30 -0
  752. package/dist/version.d.ts.map +1 -0
  753. package/dist/version.js +116 -0
  754. package/dist/version.js.map +1 -0
  755. package/package.json +98 -3
package/dist/index.js ADDED
@@ -0,0 +1,139 @@
1
+ /**
2
+ * `@azx-pbc/axiom-runtime` — the target-neutral core.
3
+ *
4
+ * One package serves Web, Node and React Native's Hermes, so nothing below may *depend on*
5
+ * a locale database, a clock, dynamic code evaluation, a DOM or a Node built-in. `Intl` is
6
+ * not a dependency: plural selection reads the vendored CLDR registry the package carries,
7
+ * never the host's `Intl.PluralRules`, so two hosts on different ICU releases render the
8
+ * same text. The entry point re-exports the shared wire contracts, the exact numeric and
9
+ * civil-date primitives, restricted canonical hashing and stateless evaluation. It carries no
10
+ * locale database: message rendering and cardinal selection are a separate entry,
11
+ * `@azx-pbc/axiom-runtime/messages`, so a rule-only host never loads the CLDR registry. The one
12
+ * locale fact on the root entry is the small vendored text-direction map (`directionOf`), which a
13
+ * host needs to paint `dir`/`lang` without loading message rendering. The
14
+ * built-in documentation registry and the documentation-example parser/evaluator are build-time
15
+ * reference machinery for the docs tools and ride on `@azx-pbc/axiom-runtime/docs`, so a device
16
+ * bundle never carries them.
17
+ */
18
+ export * from './model/types.js';
19
+ // A local time of day is a wire primitive with arithmetic that wraps inside one day, so its
20
+ // parser and helpers are host-readable beside the primitive they define.
21
+ export * from './model/time.js';
22
+ export * from './model/duration.js';
23
+ // A nested row's identity is a length-prefixed composite key; the codec is host-readable so a
24
+ // report reader and a writer agree on the one address a row has.
25
+ export * from './model/row-address.js';
26
+ export { isCompositionReport } from './model/composition.js';
27
+ export * from './model/access.js';
28
+ export * from './model/layout.js';
29
+ export * from './model/schema.js';
30
+ export * from './model/errors.js';
31
+ // The release version and its grammar are facts a host logs beside a stored artifact, and the
32
+ // compiler stamps the same constant on every artifact it emits. `compareVersions` stays internal:
33
+ // the receipt's producer check is the only reader, and a second public comparator would invite a
34
+ // host to invent a skew policy beside the one this runtime enforces.
35
+ export { AXIOM_VERSION, isVersionText } from './version.js';
36
+ export * from './expr/decimal.js';
37
+ export * from './expr/logic.js';
38
+ export * from './expr/money.js';
39
+ export * from './expr/quantity.js';
40
+ export * from './expr/plain-date.js';
41
+ export * from './expr/instant.js';
42
+ export * from './expr/builtins.js';
43
+ export * from './expr/validation.js';
44
+ export * from './expr/pattern.js';
45
+ export * from './expr/regex.js';
46
+ export * from './expr/reduce.js';
47
+ export * from './expr/diagnostics.js';
48
+ export * from './expr/deprecations.js';
49
+ // Locale selection reads the artifact and nothing else — no CLDR, no host locale database — so
50
+ // the root entry carries it, and it is the only door that does: the renderer that uses it is on
51
+ // `./messages`, where re-exporting the selector would put a CLDR-free function behind the entry
52
+ // that loads the registry. `test/runtime-entry-split.test.ts` pins both doors' names.
53
+ export { resolveSchemaLocale } from './expr/select-locale.js';
54
+ // Text direction is a document-level fact a host paints, not message formatting: it is a small
55
+ // vendored script map, carries no plural rules, and belongs on the root entry so a host does not
56
+ // load the renderer to learn which way its text runs.
57
+ export { directionOf } from './expr/direction.js';
58
+ // The canonical ordering every report and hash sorts by, so a caller that must reproduce
59
+ // that order cannot invent a second comparator.
60
+ export { compareCodePoints } from './expr/strings.js';
61
+ // Canonical hashing: the profile's reader and the trusted entry a host calls after it validated
62
+ // its own value. The canonicalisation counter is a measurement hook and stays off this door; its
63
+ // reader is on `@azx-pbc/axiom-runtime/testing`.
64
+ export { canonicalHash, canonicalHashOwned, canonicalizeOwned, canonicalizeRestricted, copyRestricted, parseRestrictedJson, sha256Hex, sha256HexOfBytes, utf8BytesOf, } from './canonical/jcs.js';
65
+ export * from './canonical/restricted-value.js';
66
+ export * from './canonical/signature.js';
67
+ // The wire boundary's readers and the refusal a host branches on. The wire-validation counter is
68
+ // a measurement hook and stays off this door; its reader is on
69
+ // `@azx-pbc/axiom-runtime/testing`.
70
+ export { memberOf, readArtifact, refusalOf, rowKeyToken, rowKeyValue, toAccessEntry, toEvaluationContext, toEvaluationEnv, toEvaluationInput, toEvaluationRecord, toFieldRef, toGateOverride, toHostWireValue, toLookupPort, toSessionWireValue, toSubmissionInput, toWireValue, wireDeclarationOf, wireDeclarationOfColumn, wireDeclarationOfDomain, } from './model/wire.js';
71
+ // The one derivation of what value a declaration admits. The compiler's static type and the
72
+ // reader's wire declaration both read it, so a context root, a field and an item cannot disagree
73
+ // about the domain a value must belong to.
74
+ export { valueDomainOf } from './model/domain.js';
75
+ export { isRecord, isWireValue, sameWireValue } from './model/values.js';
76
+ export * from './model/intrinsic.js';
77
+ export { canonicalMediaAcceptEntry, isCanonicalMediaAcceptEntry, MEDIA_EXTENSION_TYPES, mediaAcceptEntryMatches, mediaAcceptMatches, } from './model/media.js';
78
+ export * from './eval/evaluate.js';
79
+ export * from './eval/presentation.js';
80
+ export * from './eval/gate.js';
81
+ // One projection from a reported alternative to the engine operations a host applies: a rule's
82
+ // alternatives ride on its result and an option's on its blocker, and both use this shape.
83
+ export { toEngineOperations } from './eval/suggestions-to-engine.js';
84
+ // Option identity and eligibility: the one comparison a host loader, a page machine and the
85
+ // derived field state share, so a selection is judged in exactly one place.
86
+ export { ineligibleOptionValue, ineligibleWireValue, OPTION_NO_LONGER_ELIGIBLE, optionCodeValue, optionEligibility, } from './eval/options.js';
87
+ export { isE164PhoneNumber } from './expr/validation.js';
88
+ export { readGateOverrides, applyApprovedOverrides } from './eval/overrides.js';
89
+ export * from './eval/evaluate-expr.js';
90
+ export * from './eval/verify-signature.js';
91
+ // The one firing table: compiler publish readiness, a scenario runner and a downstream host
92
+ // all read the same answer for a rule kind's result.
93
+ export { firingBranch, isFiring, isRuleKind, unreachableBranchOf } from './eval/firing.js';
94
+ // Schema evolution: the retained-artifact catalogue, the upcasters a host publishes and the two
95
+ // operations that read them. A host that keeps seven-year records resolves a stored version,
96
+ // upcasts values by `fieldId` and decides what an in-flight draft evaluates under through these
97
+ // three entry points; the location mapping that carries a value between declarations stays
98
+ // internal.
99
+ export * from './model/evolution.js';
100
+ export { upcastRecord } from './eval/evolution/upcast.js';
101
+ export { selectEffectiveSchema } from './eval/evolution/select.js';
102
+ // A revision diff classifies a value-domain change and a row-scope change without holding the two
103
+ // records an upcast compares, so the comparisons a hop refuses on are exported rather than restated
104
+ // there.
105
+ export { sameValueDomain, unpairableRows, unresolvedUpcasters } from './eval/evolution/relocate.js';
106
+ export * from './graph/index.js';
107
+ export { isContextRootPath } from './eval/reader.js';
108
+ // The access projection is what a UI binding resolves a control's state from. The overlay
109
+ // resolver is public too: a host that resolves roles into the 4-level vocabulary hands the
110
+ // engine the overlay, and a binding that wants the same answer asks the same resolver.
111
+ export { createAccessResolver, fieldKey } from './eval/access/projection.js';
112
+ export { accessFor, meetAccess, projectAccessEntries, resolveOverlay, ruleReadFor, } from './eval/access/overlay.js';
113
+ export { createAccessWindow } from './eval/access/window.js';
114
+ // The write predicate and its refusal are public: a UI binding, a host's ingestion and the
115
+ // engine all answer a write the same way, and a caller branches on the structured code.
116
+ export { checkWrite, permitsUserWrite, WriteRefusedError } from './eval/access/write.js';
117
+ export { WRITE_REFUSAL_CODES, WRITE_REFUSAL_REPAIRS, writeRefusalRepair, } from './eval/access/write.js';
118
+ // The form-state surface: one evaluation, one derived description, and the snapshot a caller
119
+ // that already evaluated can derive from without a second pass.
120
+ export { describeFormState } from './eval/state/describe.js';
121
+ export { deriveFormState } from './eval/state/derive.js';
122
+ export { evaluateForm } from './eval/state/snapshot.js';
123
+ // A report body is what a derivation carries; sealing it is the one step that states the
124
+ // digest, so a host that needs the decision (not the description) seals it once itself. The
125
+ // seal counter is a measurement hook and lives on `@azx-pbc/axiom-runtime/testing`.
126
+ export { sealReport } from './eval/seal.js';
127
+ // A projection reads one evaluated snapshot, so a caller that already holds one exports its
128
+ // submission from that answer instead of paying for a second evaluation.
129
+ export { projectSubmission } from './eval/submission.js';
130
+ // The stateful session: one engine per session over a compiled artifact, with an incremental
131
+ // pass, row identity, atomic operations, subscriptions and the observation seams a counted
132
+ // test reads.
133
+ //
134
+ // The parity oracle, `evaluateAllNaive`, is a test-only assembler and lives on
135
+ // `@azx-pbc/axiom-runtime/testing`; a host builds on `createEngine` alone.
136
+ export { createEngine, SessionRefusedError } from './eval/engine/index.js';
137
+ export { SESSION_REFUSAL_CODES, SESSION_REFUSAL_REPAIRS, sessionRefusalRepair, } from './eval/engine/index.js';
138
+ export { createCancellationPort } from './eval/engine/cancellation.js';
139
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources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F,4FAA4F;AAC5F,oFAAoF;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,4FAA4F;AAC5F,yEAAyE;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,6FAA6F;AAC7F,2FAA2F;AAC3F,cAAc;AACd,EAAE;AACF,+EAA+E;AAC/E,2EAA2E;AAC3E,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["/**\n * `@azx-pbc/axiom-runtime` — the target-neutral core.\n *\n * One package serves Web, Node and React Native's Hermes, so nothing below may *depend on*\n * a locale database, a clock, dynamic code evaluation, a DOM or a Node built-in. `Intl` is\n * not a dependency: plural selection reads the vendored CLDR registry the package carries,\n * never the host's `Intl.PluralRules`, so two hosts on different ICU releases render the\n * same text. The entry point re-exports the shared wire contracts, the exact numeric and\n * civil-date primitives, restricted canonical hashing and stateless evaluation. It carries no\n * locale database: message rendering and cardinal selection are a separate entry,\n * `@azx-pbc/axiom-runtime/messages`, so a rule-only host never loads the CLDR registry. The one\n * locale fact on the root entry is the small vendored text-direction map (`directionOf`), which a\n * host needs to paint `dir`/`lang` without loading message rendering. The\n * built-in documentation registry and the documentation-example parser/evaluator are build-time\n * reference machinery for the docs tools and ride on `@azx-pbc/axiom-runtime/docs`, so a device\n * bundle never carries them.\n */\nexport * from './model/types.js';\n// A local time of day is a wire primitive with arithmetic that wraps inside one day, so its\n// parser and helpers are host-readable beside the primitive they define.\nexport * from './model/time.js';\nexport * from './model/duration.js';\n// A nested row's identity is a length-prefixed composite key; the codec is host-readable so a\n// report reader and a writer agree on the one address a row has.\nexport * from './model/row-address.js';\n// A document's declared shape, carried only in a type. `defineDocument` in the builder returns a\n// typed artifact, and the React bindings narrow their ids from it; the module has no runtime\n// member, so this door's bundle is unchanged.\nexport type {\n ArtifactShape,\n DeclaredFieldLike,\n DeclaredFieldShape,\n FieldIdsOf,\n FieldShapeOf,\n RecordOf,\n RowKeyRequirement,\n RowKeyRequirementOf,\n RuleIdsOf,\n ShapeOfArtifact,\n ShapeOfDocument,\n TypedArtifact,\n WireValueOf,\n} from './model/shape.js';\nexport { isCompositionReport } from './model/composition.js';\n// The composition report's shape is a value a host receives from storage, so its guard and two\n// types are host surface. The member walk that names an offending member is the receipt's detail\n// and stays internal: re-exporting it would invite a second closed-shape reader.\nexport type { AppliedOverlay, CompositionReport } from './model/composition.js';\nexport * from './model/access.js';\nexport * from './model/layout.js';\nexport * from './model/schema.js';\nexport * from './model/errors.js';\n// The release version and its grammar are facts a host logs beside a stored artifact, and the\n// compiler stamps the same constant on every artifact it emits. `compareVersions` stays internal:\n// the receipt's producer check is the only reader, and a second public comparator would invite a\n// host to invent a skew policy beside the one this runtime enforces.\nexport { AXIOM_VERSION, isVersionText } from './version.js';\nexport * from './expr/decimal.js';\nexport * from './expr/logic.js';\nexport * from './expr/money.js';\nexport * from './expr/quantity.js';\nexport * from './expr/plain-date.js';\nexport * from './expr/instant.js';\nexport * from './expr/builtins.js';\nexport * from './expr/validation.js';\nexport * from './expr/pattern.js';\nexport * from './expr/regex.js';\nexport * from './expr/reduce.js';\nexport * from './expr/diagnostics.js';\nexport * from './expr/deprecations.js';\n// Locale selection reads the artifact and nothing else — no CLDR, no host locale database — so\n// the root entry carries it, and it is the only door that does: the renderer that uses it is on\n// `./messages`, where re-exporting the selector would put a CLDR-free function behind the entry\n// that loads the registry. `test/runtime-entry-split.test.ts` pins both doors' names.\nexport { resolveSchemaLocale } from './expr/select-locale.js';\nexport type {\n LocaleCatalogue,\n SchemaLocaleMatch,\n SchemaLocaleOptions,\n SchemaLocaleRefusal,\n SchemaLocaleResolution,\n} from './expr/select-locale.js';\n// Text direction is a document-level fact a host paints, not message formatting: it is a small\n// vendored script map, carries no plural rules, and belongs on the root entry so a host does not\n// load the renderer to learn which way its text runs.\nexport { directionOf } from './expr/direction.js';\nexport type { Direction } from './expr/direction.js';\n// The canonical ordering every report and hash sorts by, so a caller that must reproduce\n// that order cannot invent a second comparator.\nexport { compareCodePoints } from './expr/strings.js';\n// Canonical hashing: the profile's reader and the trusted entry a host calls after it validated\n// its own value. The canonicalisation counter is a measurement hook and stays off this door; its\n// reader is on `@azx-pbc/axiom-runtime/testing`.\nexport {\n canonicalHash,\n canonicalHashOwned,\n canonicalizeOwned,\n canonicalizeRestricted,\n copyRestricted,\n parseRestrictedJson,\n sha256Hex,\n sha256HexOfBytes,\n utf8BytesOf,\n} from './canonical/jcs.js';\nexport * from './canonical/restricted-value.js';\nexport * from './canonical/signature.js';\n// The wire boundary's readers and the refusal a host branches on. The wire-validation counter is\n// a measurement hook and stays off this door; its reader is on\n// `@azx-pbc/axiom-runtime/testing`.\nexport {\n memberOf,\n readArtifact,\n refusalOf,\n rowKeyToken,\n rowKeyValue,\n toAccessEntry,\n toEvaluationContext,\n toEvaluationEnv,\n toEvaluationInput,\n toEvaluationRecord,\n toFieldRef,\n toGateOverride,\n toHostWireValue,\n toLookupPort,\n toSessionWireValue,\n toSubmissionInput,\n toWireValue,\n wireDeclarationOf,\n wireDeclarationOfColumn,\n wireDeclarationOfDomain,\n} from './model/wire.js';\nexport type {\n ArtifactAdmission,\n BoundaryRefusal,\n HostOnlySubmissionMember,\n WireDeclaration,\n} from './model/wire.js';\n// The one derivation of what value a declaration admits. The compiler's static type and the\n// reader's wire declaration both read it, so a context root, a field and an item cannot disagree\n// about the domain a value must belong to.\nexport { valueDomainOf } from './model/domain.js';\nexport type {\n ItemValueDomain,\n ValueDomain,\n ValueDomainDeclaration,\n ValueDomainFields,\n} from './model/domain.js';\nexport { isRecord, isWireValue, sameWireValue } from './model/values.js';\nexport * from './model/intrinsic.js';\nexport {\n canonicalMediaAcceptEntry,\n isCanonicalMediaAcceptEntry,\n MEDIA_EXTENSION_TYPES,\n mediaAcceptEntryMatches,\n mediaAcceptMatches,\n} from './model/media.js';\nexport * from './eval/evaluate.js';\nexport * from './eval/presentation.js';\nexport * from './eval/gate.js';\n// One projection from a reported alternative to the engine operations a host applies: a rule's\n// alternatives ride on its result and an option's on its blocker, and both use this shape.\nexport { toEngineOperations } from './eval/suggestions-to-engine.js';\n// Option identity and eligibility: the one comparison a host loader, a page machine and the\n// derived field state share, so a selection is judged in exactly one place.\nexport {\n ineligibleOptionValue,\n ineligibleWireValue,\n OPTION_NO_LONGER_ELIGIBLE,\n optionCodeValue,\n optionEligibility,\n} from './eval/options.js';\nexport type { OptionDomains, OptionItem, OptionPage, OptionValue } from './eval/options.js';\nexport { isE164PhoneNumber } from './expr/validation.js';\nexport { readGateOverrides, applyApprovedOverrides } from './eval/overrides.js';\nexport type {\n GateOverrideRefusal,\n GateRefusal,\n GateOverrideOutcome,\n ReadOverrides,\n} from './eval/overrides.js';\nexport * from './eval/evaluate-expr.js';\nexport * from './eval/verify-signature.js';\n// The one firing table: compiler publish readiness, a scenario runner and a downstream host\n// all read the same answer for a rule kind's result.\nexport { firingBranch, isFiring, isRuleKind, unreachableBranchOf } from './eval/firing.js';\nexport type { Observation, UnreachableBranch } from './eval/firing.js';\n// Schema evolution: the retained-artifact catalogue, the upcasters a host publishes and the two\n// operations that read them. A host that keeps seven-year records resolves a stored version,\n// upcasts values by `fieldId` and decides what an in-flight draft evaluates under through these\n// three entry points; the location mapping that carries a value between declarations stays\n// internal.\nexport * from './model/evolution.js';\nexport { upcastRecord } from './eval/evolution/upcast.js';\nexport { selectEffectiveSchema } from './eval/evolution/select.js';\n// A revision diff classifies a value-domain change and a row-scope change without holding the two\n// records an upcast compares, so the comparisons a hop refuses on are exported rather than restated\n// there.\nexport { sameValueDomain, unpairableRows, unresolvedUpcasters } from './eval/evolution/relocate.js';\nexport * from './graph/index.js';\nexport { isContextRootPath } from './eval/reader.js';\n// The declared shape an expression is read against. A compiled artifact derives it from its own\n// declarations and an authoring tool derives it from a draft that has not compiled, so a caller\n// that hands the read walk an index of its own states the two maps by this type rather than a\n// second shape that drifts from the reader's.\nexport type { RecordIndex } from './eval/reader.js';\n// The access projection is what a UI binding resolves a control's state from. The overlay\n// resolver is public too: a host that resolves roles into the 4-level vocabulary hands the\n// engine the overlay, and a binding that wants the same answer asks the same resolver.\nexport { createAccessResolver, fieldKey } from './eval/access/projection.js';\nexport type { AccessResolver, FieldAccessState } from './eval/access/projection.js';\nexport {\n accessFor,\n meetAccess,\n projectAccessEntries,\n resolveOverlay,\n ruleReadFor,\n} from './eval/access/overlay.js';\nexport type { ResolvedAccess } from './eval/access/overlay.js';\nexport { createAccessWindow } from './eval/access/window.js';\nexport type { AccessWindow } from './eval/access/window.js';\n// The write predicate and its refusal are public: a UI binding, a host's ingestion and the\n// engine all answer a write the same way, and a caller branches on the structured code.\nexport { checkWrite, permitsUserWrite, WriteRefusedError } from './eval/access/write.js';\nexport {\n WRITE_REFUSAL_CODES,\n WRITE_REFUSAL_REPAIRS,\n writeRefusalRepair,\n} from './eval/access/write.js';\nexport type {\n WriteOrigin,\n WriteRefusal,\n WriteRefusalCode,\n WriteRequest,\n} from './eval/access/write.js';\n// The form-state surface: one evaluation, one derived description, and the snapshot a caller\n// that already evaluated can derive from without a second pass.\nexport { describeFormState } from './eval/state/describe.js';\nexport { deriveFormState } from './eval/state/derive.js';\nexport type { FormState } from './eval/state/derive.js';\nexport { evaluateForm } from './eval/state/snapshot.js';\n// A report body is what a derivation carries; sealing it is the one step that states the\n// digest, so a host that needs the decision (not the description) seals it once itself. The\n// seal counter is a measurement hook and lives on `@azx-pbc/axiom-runtime/testing`.\nexport { sealReport } from './eval/seal.js';\nexport type { FormSnapshot } from './eval/state/snapshot.js';\n// A projection reads one evaluated snapshot, so a caller that already holds one exports its\n// submission from that answer instead of paying for a second evaluation.\nexport { projectSubmission } from './eval/submission.js';\nexport type { SubmissionProjectionOptions, SubmissionSnapshot } from './eval/submission.js';\n// The stateful session: one engine per session over a compiled artifact, with an incremental\n// pass, row identity, atomic operations, subscriptions and the observation seams a counted\n// test reads.\n//\n// The parity oracle, `evaluateAllNaive`, is a test-only assembler and lives on\n// `@azx-pbc/axiom-runtime/testing`; a host builds on `createEngine` alone.\nexport { createEngine, SessionRefusedError } from './eval/engine/index.js';\nexport {\n SESSION_REFUSAL_CODES,\n SESSION_REFUSAL_REPAIRS,\n sessionRefusalRepair,\n} from './eval/engine/index.js';\nexport { createCancellationPort } from './eval/engine/cancellation.js';\nexport type { CancellationPort, CancellationSignal } from './eval/engine/ports.js';\nexport type {\n CandidateDelta,\n CandidateOutcome,\n ChangedComputation,\n Engine,\n EngineCandidate,\n EngineConfig,\n EngineFieldDeps,\n EngineFieldExplanation,\n EngineFieldState,\n EngineOperation,\n EngineOutcome,\n EnginePatch,\n EnginePorts,\n EvaluationObserver,\n IdFactory,\n LastPass,\n PendingCheck,\n ProposedCandidate,\n SessionRefusal,\n SessionRefusalCode,\n StructuralWrite,\n} from './eval/engine/index.js';\nexport type { FormStateOptions } from './eval/state/options.js';\nexport type {\n ArrayCardinality,\n DecimalScale,\n FieldComputation,\n FieldMessage,\n FieldValueRefusal,\n FormFieldState,\n FormRowState,\n MediaConstraints,\n MediaConstraintViolation,\n RequiredStatus,\n RowAddressing,\n RowCountState,\n UnavailableOption,\n} from './eval/state/field-state.js';\nexport type { ValueState, WithheldReason } from './eval/state/value-state.js';\nexport type {\n FormBlocker,\n FormGateState,\n FormScreenState,\n FormSkippedCheck,\n FormUndeterminedCheck,\n FormUndeterminedComputation,\n GateOutcome,\n Readiness,\n SubmissionVerdict,\n} from './eval/state/readiness.js';\n"]}
@@ -0,0 +1,51 @@
1
+ import type { DatasetRef } from '../model/schema.js';
2
+ import type { LookupPort } from '../model/types.js';
3
+ /**
4
+ * A pinned table whose held copy is not the copy the artifact pins.
5
+ *
6
+ * The members are the ones `admitOfflineArtifact`'s `table_digest_mismatch` refusal states, so a
7
+ * host that renders one refusal renders the other and a diagnosis names the same four facts
8
+ * whichever door refused.
9
+ */
10
+ export interface DatasetDigestMismatch {
11
+ readonly tableId: string;
12
+ readonly tableVersion: number;
13
+ /** The digest the artifact pins. */
14
+ readonly expected: string;
15
+ /** The digest the held document hashes to. */
16
+ readonly actual: string;
17
+ }
18
+ /**
19
+ * The one comparison both doors make: the artifact's pin against the digest the held copy
20
+ * hashes to. `undefined` when they agree, so a caller branches on the mismatch rather than
21
+ * comparing digests itself and inventing a second definition of agreement.
22
+ *
23
+ * Both callers compute `actual` with `canonicalHash` over the held document — the same
24
+ * canonicaliser that produced the pin — so a difference here is a difference in bytes, never in
25
+ * spelling. `MemoryLookupStore` already holds that digest for every version it installed.
26
+ */
27
+ export declare function datasetDigestMismatch(pin: Pick<DatasetRef, 'tableId' | 'tableVersion' | 'sha256'>, actual: string): DatasetDigestMismatch | undefined;
28
+ /** Refuses an artifact/store pairing whose held bytes are not the bytes the artifact pins. */
29
+ export declare function refuseDatasetDigestMismatch(mismatch: DatasetDigestMismatch): never;
30
+ /**
31
+ * A port that can state the canonical digest of a version it holds.
32
+ *
33
+ * `MemoryLookupStore` implements it, so every evaluation that pairs this package's store with an
34
+ * artifact verifies the pinned bytes before a rule reads one. A custom store may implement it
35
+ * too; a port that cannot leaves its documents outside what this package can see, and admission
36
+ * is then the only door that verified them.
37
+ */
38
+ export interface DigestBearingPort {
39
+ /** The canonical digest of the held version, or `undefined` when this port holds none. */
40
+ tableDigest(tableId: string, tableVersion: number): string | undefined;
41
+ }
42
+ /**
43
+ * The digest capability one port states, read structurally because the port contract is owned by
44
+ * the store seam and `tableDigest` is optional: a store that implements it answers here and a
45
+ * store that does not simply cannot be checked at pairing.
46
+ *
47
+ * A malformed answer is ignored like no answer, so a hostile or buggy port cannot make the
48
+ * pairing believe it verified bytes it cannot state.
49
+ */
50
+ export declare function digestReaderOf(port: LookupPort): ((tableId: string, tableVersion: number) => string | undefined) | undefined;
51
+ //# sourceMappingURL=digest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../../src/lookup/digest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,oCAAoC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,cAAc,GAAG,QAAQ,CAAC,EAC5D,MAAM,EAAE,MAAM,GACb,qBAAqB,GAAG,SAAS,CAGnC;AAcD,8FAA8F;AAC9F,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,KAAK,CAElF;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACxE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,UAAU,GACf,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,CAO7E"}
@@ -0,0 +1,46 @@
1
+ import { AxiomError } from '../model/errors.js';
2
+ /**
3
+ * The one comparison both doors make: the artifact's pin against the digest the held copy
4
+ * hashes to. `undefined` when they agree, so a caller branches on the mismatch rather than
5
+ * comparing digests itself and inventing a second definition of agreement.
6
+ *
7
+ * Both callers compute `actual` with `canonicalHash` over the held document — the same
8
+ * canonicaliser that produced the pin — so a difference here is a difference in bytes, never in
9
+ * spelling. `MemoryLookupStore` already holds that digest for every version it installed.
10
+ */
11
+ export function datasetDigestMismatch(pin, actual) {
12
+ if (pin.sha256 === actual)
13
+ return undefined;
14
+ return { tableId: pin.tableId, tableVersion: pin.tableVersion, expected: pin.sha256, actual };
15
+ }
16
+ /**
17
+ * The refusal sentence one mismatch states, in the vocabulary offline admission uses
18
+ * (`table <id> version <n>`, `expected`, `actual`). The evaluation path is a thrown
19
+ * `AxiomError` rather than a returned refusal, so this is the one place its words are decided.
20
+ */
21
+ function datasetDigestMismatchMessage(mismatch) {
22
+ return (`table ${mismatch.tableId} version ${String(mismatch.tableVersion)} canonical digest ` +
23
+ `mismatch: expected ${mismatch.expected}, actual ${mismatch.actual}`);
24
+ }
25
+ /** Refuses an artifact/store pairing whose held bytes are not the bytes the artifact pins. */
26
+ export function refuseDatasetDigestMismatch(mismatch) {
27
+ throw new AxiomError('ENGINE_ERROR', datasetDigestMismatchMessage(mismatch), mismatch.tableId);
28
+ }
29
+ /**
30
+ * The digest capability one port states, read structurally because the port contract is owned by
31
+ * the store seam and `tableDigest` is optional: a store that implements it answers here and a
32
+ * store that does not simply cannot be checked at pairing.
33
+ *
34
+ * A malformed answer is ignored like no answer, so a hostile or buggy port cannot make the
35
+ * pairing believe it verified bytes it cannot state.
36
+ */
37
+ export function digestReaderOf(port) {
38
+ const read = Reflect.get(port, 'tableDigest');
39
+ if (typeof read !== 'function')
40
+ return undefined;
41
+ return (tableId, tableVersion) => {
42
+ const digest = Reflect.apply(read, port, [tableId, tableVersion]);
43
+ return typeof digest === 'string' ? digest : undefined;
44
+ };
45
+ }
46
+ //# sourceMappingURL=digest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digest.js","sourceRoot":"","sources":["../../src/lookup/digest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAmBhD;;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ors.js';\nimport type { LookupPort } from '../model/types.js';\n\n/**\n * A pinned table whose held copy is not the copy the artifact pins.\n *\n * The members are the ones `admitOfflineArtifact`'s `table_digest_mismatch` refusal states, so a\n * host that renders one refusal renders the other and a diagnosis names the same four facts\n * whichever door refused.\n */\nexport interface DatasetDigestMismatch {\n readonly tableId: string;\n readonly tableVersion: number;\n /** The digest the artifact pins. */\n readonly expected: string;\n /** The digest the held document hashes to. */\n readonly actual: string;\n}\n\n/**\n * The one comparison both doors make: the artifact's pin against the digest the held copy\n * hashes to. `undefined` when they agree, so a caller branches on the mismatch rather than\n * comparing digests itself and inventing a second definition of agreement.\n *\n * Both callers compute `actual` with `canonicalHash` over the held document — the same\n * canonicaliser that produced the pin — so a difference here is a difference in bytes, never in\n * spelling. `MemoryLookupStore` already holds that digest for every version it installed.\n */\nexport function datasetDigestMismatch(\n pin: Pick<DatasetRef, 'tableId' | 'tableVersion' | 'sha256'>,\n actual: string,\n): DatasetDigestMismatch | undefined {\n if (pin.sha256 === actual) return undefined;\n return { tableId: pin.tableId, tableVersion: pin.tableVersion, expected: pin.sha256, actual };\n}\n\n/**\n * The refusal sentence one mismatch states, in the vocabulary offline admission uses\n * (`table <id> version <n>`, `expected`, `actual`). The evaluation path is a thrown\n * `AxiomError` rather than a returned refusal, so this is the one place its words are decided.\n */\nfunction datasetDigestMismatchMessage(mismatch: DatasetDigestMismatch): string {\n return (\n `table ${mismatch.tableId} version ${String(mismatch.tableVersion)} canonical digest ` +\n `mismatch: expected ${mismatch.expected}, actual ${mismatch.actual}`\n );\n}\n\n/** Refuses an artifact/store pairing whose held bytes are not the bytes the artifact pins. */\nexport function refuseDatasetDigestMismatch(mismatch: DatasetDigestMismatch): never {\n throw new AxiomError('ENGINE_ERROR', datasetDigestMismatchMessage(mismatch), mismatch.tableId);\n}\n\n/**\n * A port that can state the canonical digest of a version it holds.\n *\n * `MemoryLookupStore` implements it, so every evaluation that pairs this package's store with an\n * artifact verifies the pinned bytes before a rule reads one. A custom store may implement it\n * too; a port that cannot leaves its documents outside what this package can see, and admission\n * is then the only door that verified them.\n */\nexport interface DigestBearingPort {\n /** The canonical digest of the held version, or `undefined` when this port holds none. */\n tableDigest(tableId: string, tableVersion: number): string | undefined;\n}\n\n/**\n * The digest capability one port states, read structurally because the port contract is owned by\n * the store seam and `tableDigest` is optional: a store that implements it answers here and a\n * store that does not simply cannot be checked at pairing.\n *\n * A malformed answer is ignored like no answer, so a hostile or buggy port cannot make the\n * pairing believe it verified bytes it cannot state.\n */\nexport function digestReaderOf(\n port: LookupPort,\n): ((tableId: string, tableVersion: number) => string | undefined) | undefined {\n const read: unknown = Reflect.get(port, 'tableDigest');\n if (typeof read !== 'function') return undefined;\n return (tableId: string, tableVersion: number) => {\n const digest: unknown = Reflect.apply(read, port, [tableId, tableVersion]);\n return typeof digest === 'string' ? digest : undefined;\n };\n}\n"]}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The lookup seam, specified in `spec/semantics/datasets-v1.md` (`[DATA-1.1.1]`–`[DATA-4.1.6]`).
3
+ *
4
+ * A lookup table is a pure artifact: the store resolves set membership, composite keys and
5
+ * decision rows against the versions it was given, records the provenance a report needs to
6
+ * reproduce every resolution seven years later — hit, miss or stale — and refuses anything it
7
+ * cannot resolve. Storage, signing and visit pins belong to the host.
8
+ *
9
+ * Three things decide a resolution and none of them may be guessed: which table, which
10
+ * version of it, and which row. A `data` table is selected by the host-supplied record date
11
+ * alone; a version whose window does not cover that date makes the table
12
+ * stale rather than falling back to a neighbour. A behavior table pins to
13
+ * the case and takes no date at all.
14
+ *
15
+ * The entry re-exports one capability per module: the installed store in `store.ts`, its
16
+ * resolution algorithms in `resolve.ts`, version selection in `readiness.ts`, report
17
+ * provenance in `provenance.ts`, catalog validation in `install.ts` and the pinned-version
18
+ * identity in `pins.ts`.
19
+ */
20
+ export type { DatasetColumn, DatasetDeclaration, HitPolicy, LookupMissReason, LookupPort, LookupProvenance, LookupResolution, LookupRow, LookupTableDocument, ResolvedLookupProvenance, ResolvedTable, ScalarPrimitive, SetResolution, StaleLookupProvenance, TableBinding, TableKind, } from '../model/types.js';
21
+ export type { DatasetInstallationProblem } from './install.js';
22
+ export { datasetInstallationProblems } from './install.js';
23
+ export type { DatasetDigestMismatch, DigestBearingPort } from './digest.js';
24
+ export { MemoryLookupStore } from './store.js';
25
+ export { toProvenance } from './provenance.js';
26
+ export { resolveDatasetPins } from './pins.js';
27
+ export type { DatasetPinMissReason, ResolvedDatasetPin } from './pins.js';
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lookup/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,SAAS,GACV,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAG3D,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The lookup seam, specified in `spec/semantics/datasets-v1.md` (`[DATA-1.1.1]`–`[DATA-4.1.6]`).
3
+ *
4
+ * A lookup table is a pure artifact: the store resolves set membership, composite keys and
5
+ * decision rows against the versions it was given, records the provenance a report needs to
6
+ * reproduce every resolution seven years later — hit, miss or stale — and refuses anything it
7
+ * cannot resolve. Storage, signing and visit pins belong to the host.
8
+ *
9
+ * Three things decide a resolution and none of them may be guessed: which table, which
10
+ * version of it, and which row. A `data` table is selected by the host-supplied record date
11
+ * alone; a version whose window does not cover that date makes the table
12
+ * stale rather than falling back to a neighbour. A behavior table pins to
13
+ * the case and takes no date at all.
14
+ *
15
+ * The entry re-exports one capability per module: the installed store in `store.ts`, its
16
+ * resolution algorithms in `resolve.ts`, version selection in `readiness.ts`, report
17
+ * provenance in `provenance.ts`, catalog validation in `install.ts` and the pinned-version
18
+ * identity in `pins.ts`.
19
+ */
20
+ export { datasetInstallationProblems } from './install.js';
21
+ export { MemoryLookupStore } from './store.js';
22
+ export { toProvenance } from './provenance.js';
23
+ // The artifact's data identity: every table it pins, resolved against the documents a caller
24
+ // holds. A decision bound to these hashes is bound to the data it was made on, and the answer
25
+ // is the artifact's rather than whichever rules happened to read which table.
26
+ export { resolveDatasetPins } from './pins.js';
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lookup/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAsBH,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,6FAA6F;AAC7F,8FAA8F;AAC9F,8EAA8E;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC","sourcesContent":["/**\n * The lookup seam, specified in `spec/semantics/datasets-v1.md` (`[DATA-1.1.1]`–`[DATA-4.1.6]`).\n *\n * A lookup table is a pure artifact: the store resolves set membership, composite keys and\n * decision rows against the versions it was given, records the provenance a report needs to\n * reproduce every resolution seven years later — hit, miss or stale — and refuses anything it\n * cannot resolve. Storage, signing and visit pins belong to the host.\n *\n * Three things decide a resolution and none of them may be guessed: which table, which\n * version of it, and which row. A `data` table is selected by the host-supplied record date\n * alone; a version whose window does not cover that date makes the table\n * stale rather than falling back to a neighbour. A behavior table pins to\n * the case and takes no date at all.\n *\n * The entry re-exports one capability per module: the installed store in `store.ts`, its\n * resolution algorithms in `resolve.ts`, version selection in `readiness.ts`, report\n * provenance in `provenance.ts`, catalog validation in `install.ts` and the pinned-version\n * identity in `pins.ts`.\n */\n\nexport type {\n DatasetColumn,\n DatasetDeclaration,\n HitPolicy,\n LookupMissReason,\n LookupPort,\n LookupProvenance,\n LookupResolution,\n LookupRow,\n LookupTableDocument,\n ResolvedLookupProvenance,\n ResolvedTable,\n ScalarPrimitive,\n SetResolution,\n StaleLookupProvenance,\n TableBinding,\n TableKind,\n} from '../model/types.js';\n\nexport type { DatasetInstallationProblem } from './install.js';\nexport { datasetInstallationProblems } from './install.js';\n// The one mismatch shape and comparison the offline door and the evaluation path share, plus\n// the optional capability a custom store states to have its held bytes verified at pairing.\nexport type { DatasetDigestMismatch, DigestBearingPort } from './digest.js';\nexport { MemoryLookupStore } from './store.js';\nexport { toProvenance } from './provenance.js';\n// The artifact's data identity: every table it pins, resolved against the documents a caller\n// holds. A decision bound to these hashes is bound to the data it was made on, and the answer\n// is the artifact's rather than whichever rules happened to read which table.\nexport { resolveDatasetPins } from './pins.js';\nexport type { DatasetPinMissReason, ResolvedDatasetPin } from './pins.js';\n"]}
@@ -0,0 +1,48 @@
1
+ import type { DatasetColumn, HitPolicy, LookupRow, LookupTableDocument } from '../model/types.js';
2
+ /** Canonical text of a key or member, with the table named in any refusal. */
3
+ export declare function canonicalKey(value: unknown, context: string): string;
4
+ /** A plain date as epoch days, with the table named in any refusal. */
5
+ export declare function dateToDay(text: string, context: string): number;
6
+ /** Refuses a table the store cannot answer from, naming it in the error path. */
7
+ export declare function refuseTable(tableId: string, message: string): never;
8
+ /** One table version's resolution facts, derived once when the table is added. */
9
+ export interface PreparedVersion {
10
+ readonly document: LookupTableDocument;
11
+ readonly hitPolicy: HitPolicy;
12
+ readonly keyColumns: readonly DatasetColumn[];
13
+ /** Inclusive start and exclusive end of a data-bound window, in epoch days. */
14
+ readonly effectiveFrom: number | undefined;
15
+ readonly effectiveTo: number | undefined;
16
+ readonly digest: string;
17
+ /** Rows by canonical key, in source order, so `COLLECT` can return every match. */
18
+ readonly rowsByKey: ReadonlyMap<string, readonly LookupRow[]>;
19
+ /** Set members, when this version is a set table. */
20
+ readonly members: ReadonlySet<string> | undefined;
21
+ }
22
+ /** One table's versions, ordered by the start of their effective window. */
23
+ export interface PreparedTable {
24
+ readonly versions: readonly PreparedVersion[];
25
+ }
26
+ /** A way a set of table versions cannot be installed together. */
27
+ export interface DatasetInstallationProblem {
28
+ readonly kind: 'duplicate_version' | 'overlapping_window' | 'multiple_behavior_versions' | 'version_order' | 'inconsistent_table';
29
+ readonly tableId: string;
30
+ readonly detail: string;
31
+ }
32
+ /**
33
+ * Checks every document, refuses the first that cannot answer a call, then refuses a set of
34
+ * versions that cannot be one installation. Both checks run before any version is prepared,
35
+ * so a refused catalog leaves no half-installed store.
36
+ */
37
+ export declare function prepareInstallation(documents: readonly LookupTableDocument[]): ReadonlyMap<string, PreparedTable>;
38
+ /**
39
+ * The invariants a set of table versions must satisfy to be one installation.
40
+ *
41
+ * A table id names one table; a data-bound table's versions are distinguished by their
42
+ * half-open windows, so two versions covering one date would make a resolution ambiguous
43
+ * and two versions sharing a number would make provenance unreproducible. The check is
44
+ * exported because the compiler refuses the same catalog at publish time: the store cannot
45
+ * be the first place an operator learns that two published windows overlap.
46
+ */
47
+ export declare function datasetInstallationProblems(documents: readonly LookupTableDocument[]): readonly DatasetInstallationProblem[];
48
+ //# sourceMappingURL=install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/lookup/install.ts"],"names":[],"mappings":"AAGA,OAAO,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