@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-refs.js","sourceRoot":"","sources":["../../../src/eval/expr/rule-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM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D,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAC1B,OAA6B,EAC7B,EAAmD,EACnD,IAAyB;IAEzB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,QAAQ,EAAE,EAAE,CAAC;QACX,KAAK,YAAY;YACf,OAAO,IAAI,CAAC,aAAa,KAAK,SAAS;gBACrC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBAClB,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QACnE,KAAK,gBAAgB;YACnB,OAAO,IAAI,CAAC,YAAY,KAAK,SAAS;gBACpC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBAClB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;QAClD,KAAK,aAAa;YAChB,OAAO,IAAI,CAAC,UAAU,KAAK,SAAS;gBAClC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;gBAClB,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;AACH,CAAC","sourcesContent":["import { AxiomError } from '../../model/errors.js';\nimport type { ExprNode } from '../../model/types.js';\nimport { UNKNOWN } from '../../model/types.js';\nimport type { RuleHost } from './host.js';\nimport { outcomeToValue } from './operands.js';\nimport { valueOf } from './value.js';\nimport type { Evaluated } from './value.js';\n\n/** The rule-scoped operations `rule_ok`/`no_blocking` and the step folds need. */\nexport interface RuleReferenceContext {\n readonly rules: RuleHost | undefined;\n}\n\n/**\n * The declared name a rule-reference built-in names. The compiler admits\n * these only inside a gate rule and only as a literal, so an artifact that reaches another\n * rule id at run time — or reaches one from a standalone guard — is refused rather than\n * answered from a name the input chose.\n */\nfunction ruleReference(\n context: RuleReferenceContext,\n op: string,\n node: ExprNode | undefined,\n): { readonly host: RuleHost; readonly name: string } {\n const host = context.rules;\n if (host === undefined) {\n throw new AxiomError('ENGINE_ERROR', `${op} is only available inside a gate rule`);\n }\n if (node === undefined || node.kind !== 'literal' || typeof node.value !== 'string') {\n throw new AxiomError('ENGINE_ERROR', `${op} requires a declared name as its only argument`);\n }\n return { host, name: node.value };\n}\n\n/** `rule_ok(ruleId)`: the named rule's outcome lifted to boolean. */\nexport function ruleOkCall(context: RuleReferenceContext, args: readonly ExprNode[]): Evaluated {\n const { host, name } = ruleReference(context, 'rule_ok', args[0]);\n return valueOf(outcomeToValue(host.outcomeOf(name)), 'boolean');\n}\n\n/**\n * `no_blocking(kind)`: `true` when no `block`-severity rule of that kind blocks\n * (`RULES-1.1.9`). A folding query, so an undecided block rule makes it `false` rather than\n * undetermined, while a `FAIL` that states a branch (`RULES-1.1.5`) blocks nothing.\n */\nexport function noBlockingCall(\n context: RuleReferenceContext,\n args: readonly ExprNode[],\n): Evaluated {\n const { host, name } = ruleReference(context, 'no_blocking', args[0]);\n return valueOf(host.noBlocking(name), 'boolean');\n}\n\n/**\n * `rule_ok_in(stepId)`, `no_blocking_in(stepId)` and `required_in(stepId)`: the step folds of\n * `RULES-1.1.12`.\n *\n * A host that indexes the artifact's layout answers from its own state; one that does not\n * leaves the question undecided, which is the answer every absent capability gives. It is\n * never `true`, because silence must not read as permission.\n */\nexport function stepFoldCall(\n context: RuleReferenceContext,\n op: 'rule_ok_in' | 'no_blocking_in' | 'required_in',\n args: readonly ExprNode[],\n): Evaluated {\n const { host, name } = ruleReference(context, op, args[0]);\n switch (op) {\n case 'rule_ok_in':\n return host.outcomeOfStep === undefined\n ? valueOf(UNKNOWN)\n : valueOf(outcomeToValue(host.outcomeOfStep(name)), 'boolean');\n case 'no_blocking_in':\n return host.noBlockingIn === undefined\n ? valueOf(UNKNOWN)\n : valueOf(host.noBlockingIn(name), 'boolean');\n case 'required_in':\n return host.requiredIn === undefined\n ? valueOf(UNKNOWN)\n : valueOf(outcomeToValue(host.requiredIn(name)), 'boolean');\n }\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import type { ExprNode, LiteralDomain } from '../../model/types.js';
2
+ import type { Evaluated, EvaluatedValue } from './value.js';
3
+ /** The operators this family answers. */
4
+ export type SequenceOperator = 'sort' | 'slice' | 'distinct' | 'reverse';
5
+ /** The evaluator operations the list operators need. */
6
+ export interface SequenceContext {
7
+ evaluate(node: ExprNode): Evaluated;
8
+ typed(node: ExprNode, evaluated: EvaluatedValue): EvaluatedValue;
9
+ refuseElements(count: number): void;
10
+ declarationPathOf(path: string): string | undefined;
11
+ declaredElementDomainOf(path: string): LiteralDomain | undefined;
12
+ /** The declared members of the rows a declared record array binds, with their domains. */
13
+ recordItemMembersOf(path: string): Readonly<Record<string, LiteralDomain>> | undefined;
14
+ }
15
+ /**
16
+ * `sort(xs)`, `slice(xs, start, count)`, `distinct(xs)` and `reverse(xs)`.
17
+ *
18
+ * The operand is read once, and its element domains travel with each element: a declared
19
+ * array's `items` declaration or the domains a producer attached, exactly as an aggregate
20
+ * reads them. That is what makes `sort(f_amounts)` order decimals numerically rather than as
21
+ * text, and what the result carries forward so a later `min`, `in` or `==` reads the same
22
+ * declaration. An element this device cannot decide makes the whole answer that sentinel — a
23
+ * list that lost one member is not a sorted, deduplicated or reversed form of the input.
24
+ */
25
+ export declare function sequenceCall(context: SequenceContext, op: SequenceOperator, args: readonly ExprNode[]): Evaluated;
26
+ //# sourceMappingURL=sequences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequences.d.ts","sourceRoot":"","sources":["../../../src/eval/expr/sequences.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAgB,MAAM,sBAAsB,CAAC;AAclF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5D,yCAAyC;AACzC,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzE,wDAAwD;AACxD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,GAAG,cAAc,CAAC;IACjE,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpD,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAAC;IACjE,0FAA0F;IAC1F,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC;CACxF;AAUD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,eAAe,EACxB,EAAE,EAAE,gBAAgB,EACpB,IAAI,EAAE,SAAS,QAAQ,EAAE,GACxB,SAAS,CAgFX"}
@@ -0,0 +1,151 @@
1
+ import { AxiomError } from '../../model/errors.js';
2
+ import { isUndetermined, UNKNOWN } from '../../model/types.js';
3
+ import { isSafeInteger, isWireArray } from '../../model/values.js';
4
+ import { distinctElements, reverseElements, sliceElements, sortElements, } from '../../expr/sequences.js';
5
+ import { compareOrdered, valuesEqual } from './compare.js';
6
+ import { elementDomainsFor } from './domains.js';
7
+ import { foldUndetermined, isDecidedValue } from './operands.js';
8
+ import { valueOf } from './value.js';
9
+ /** The language's own order and equality, over the element domains the list carries. */
10
+ const LANGUAGE_ALGEBRA = {
11
+ compare: (left, right, path) => compareOrdered(valueOf(left.value, left.domain), valueOf(right.value, right.domain), path),
12
+ equal: (left, right, path) => valuesEqual(valueOf(left.value, left.domain), valueOf(right.value, right.domain), path),
13
+ };
14
+ /**
15
+ * `sort(xs)`, `slice(xs, start, count)`, `distinct(xs)` and `reverse(xs)`.
16
+ *
17
+ * The operand is read once, and its element domains travel with each element: a declared
18
+ * array's `items` declaration or the domains a producer attached, exactly as an aggregate
19
+ * reads them. That is what makes `sort(f_amounts)` order decimals numerically rather than as
20
+ * text, and what the result carries forward so a later `min`, `in` or `==` reads the same
21
+ * declaration. An element this device cannot decide makes the whole answer that sentinel — a
22
+ * list that lost one member is not a sorted, deduplicated or reversed form of the input.
23
+ */
24
+ export function sequenceCall(context, op, args) {
25
+ const [operandNode, ...rest] = args;
26
+ if (operandNode === undefined) {
27
+ throw new AxiomError('ENGINE_ERROR', `${op} requires a list operand`);
28
+ }
29
+ const operand = context.evaluate(operandNode);
30
+ if (operand.kind === 'absent')
31
+ return valueOf(UNKNOWN);
32
+ if (isUndetermined(operand.value))
33
+ return operand;
34
+ // `null` is the empty value, not an empty list: nothing was read, so the answer is undecided
35
+ // rather than a list that happens not to exist.
36
+ if (operand.value === null)
37
+ return valueOf(UNKNOWN);
38
+ if (!isWireArray(operand.value)) {
39
+ throw new AxiomError('ENGINE_ERROR', `${op} requires a list`, operandPath(operandNode));
40
+ }
41
+ context.refuseElements(operand.value.length);
42
+ const typedList = context.typed(operandNode, operand);
43
+ const origin = operandNode.kind === 'path' ? context.declarationPathOf(operandNode.path) : undefined;
44
+ const declared = origin === undefined ? undefined : context.declaredElementDomainOf(origin);
45
+ // The result states the operand's declared element domain, so an empty copy (a `slice` with a
46
+ // zero count, a `filter` that kept nothing, a `reverse` of an empty list) still folds as the
47
+ // operand's domain. A produced operand carries the same fact on its own value.
48
+ const elementDomain = declared ?? typedList.elementDomain;
49
+ const elementDomains = elementDomainsFor(operand.value, typedList.elementDomains, declared);
50
+ // A declared array of records binds closed rows: the member domains live in the array's
51
+ // declaration, exactly as `sequenceOf` reads them for an aggregate operand.
52
+ const declaredRecordMembers = origin === undefined ? undefined : context.recordItemMembersOf(origin);
53
+ const declaredClosedMembers = declaredRecordMembers === undefined ? undefined : Object.keys(declaredRecordMembers);
54
+ let undetermined;
55
+ const elements = [];
56
+ const memberDomains = typedList.elementMemberDomains;
57
+ const closedMembers = typedList.elementClosedMembers;
58
+ const withheldRows = typedList.withheldRows;
59
+ const undeterminedRows = typedList.undeterminedRows;
60
+ for (const [index, value] of operand.value.entries()) {
61
+ if (isUndetermined(value)) {
62
+ undetermined = foldUndetermined(undetermined, value);
63
+ continue;
64
+ }
65
+ // Every element carries the whole declaration it was read under: its own domain, a
66
+ // record's member domains and closed members, and the access sidebands naming the members
67
+ // withheld or unproduced. A copy that kept only `value` + `domain` made a sliced row's
68
+ // projection undecided and read a withheld member as an absence.
69
+ const memberDomain = memberDomains?.[index] ?? declaredRecordMembers;
70
+ const closed = closedMembers?.[index] ?? declaredClosedMembers;
71
+ const withheld = withheldRows?.[index];
72
+ const unproduced = undeterminedRows?.[index];
73
+ elements.push({
74
+ value,
75
+ domain: elementDomains?.[index],
76
+ ...(memberDomain === undefined ? {} : { memberDomains: memberDomain }),
77
+ ...(closed === undefined ? {} : { closedMembers: closed }),
78
+ ...(withheld === undefined ? {} : { withheldMembers: withheld }),
79
+ ...(unproduced === undefined ? {} : { undeterminedMembers: unproduced }),
80
+ });
81
+ }
82
+ if (undetermined !== undefined)
83
+ return valueOf(undetermined);
84
+ switch (op) {
85
+ case 'sort': {
86
+ const ordered = sortElements(elements, LANGUAGE_ALGEBRA, operandPath(operandNode));
87
+ return listResult(ordered, elementDomain);
88
+ }
89
+ case 'distinct': {
90
+ const kept = distinctElements(elements, LANGUAGE_ALGEBRA, operandPath(operandNode));
91
+ return listResult(kept, elementDomain);
92
+ }
93
+ case 'reverse':
94
+ return listResult(reverseElements(elements), elementDomain);
95
+ case 'slice': {
96
+ const start = integerArgument(context, rest[0], 'slice', 2);
97
+ const count = integerArgument(context, rest[1], 'slice', 3);
98
+ return listResult(sliceElements(elements, start, count, operandPath(operandNode)), elementDomain);
99
+ }
100
+ }
101
+ }
102
+ /**
103
+ * A list result carrying each kept element's own declaration, in result order.
104
+ *
105
+ * The sidebands are re-emitted aligned with the kept elements, not with the operand: `sort`
106
+ * and `distinct` reorder and drop elements, and a withheld member or a member domain that did
107
+ * not travel with its element would attach to the wrong row.
108
+ */
109
+ function listResult(elements, elementDomain) {
110
+ const withheldRows = elements.map((element) => element.withheldMembers);
111
+ const memberDomains = elements.map((element) => element.memberDomains);
112
+ const closedMembers = elements.map((element) => element.closedMembers);
113
+ const undeterminedRows = elements.map((element) => element.undeterminedMembers);
114
+ return {
115
+ kind: 'value',
116
+ value: elements.map((element) => element.value),
117
+ domain: undefined,
118
+ elementDomains: elements.map((element) => element.domain),
119
+ ...(elementDomain === undefined ? {} : { elementDomain }),
120
+ ...(withheldRows.some((entry) => entry !== undefined)
121
+ ? { withheldRows: withheldRows.map((entry) => entry ?? []) }
122
+ : {}),
123
+ ...(memberDomains.some((entry) => entry !== undefined)
124
+ ? { elementMemberDomains: memberDomains }
125
+ : {}),
126
+ ...(closedMembers.some((entry) => entry !== undefined)
127
+ ? { elementClosedMembers: closedMembers }
128
+ : {}),
129
+ ...(undeterminedRows.some((entry) => entry !== undefined)
130
+ ? { undeterminedRows: undeterminedRows.map((entry) => entry ?? []) }
131
+ : {}),
132
+ };
133
+ }
134
+ /** The path a refusal names: the operand's own read where it has one. */
135
+ function operandPath(node) {
136
+ return node.kind === 'path' ? node.path : '';
137
+ }
138
+ /** A decided integer operand, or the refusal that says which position it is. */
139
+ function integerArgument(context, node, op, position) {
140
+ if (node === undefined) {
141
+ throw new AxiomError('ENGINE_ERROR', `${op} requires ${String(position)} operands`);
142
+ }
143
+ const evaluated = context.evaluate(node);
144
+ if (!isDecidedValue(evaluated) ||
145
+ typeof evaluated.value !== 'number' ||
146
+ !isSafeInteger(evaluated.value)) {
147
+ throw new AxiomError('ENGINE_ERROR', `${op} argument ${String(position)} requires an integer`, operandPath(node));
148
+ }
149
+ return evaluated.value;
150
+ }
151
+ //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AAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzC,IACE,CAAC,cAAc,CAAC,SAAS,CAAC;QAC1B,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ;QACnC,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,EAC/B,CAAC;QACD,MAAM,IAAI,UAAU,CAClB,cAAc,EACd,GAAG,EAAE,aAAa,MAAM,CAAC,QAAQ,CAAC,sBAAsB,EACxD,WAAW,CAAC,IAAI,CAAC,CAClB,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC,KAAK,CAAC;AACzB,CAAC","sourcesContent":["import { AxiomError } from '../../model/errors.js';\nimport type { ExprNode, LiteralDomain, Undetermined } from '../../model/types.js';\nimport { isUndetermined, UNKNOWN } from '../../model/types.js';\nimport { isSafeInteger, isWireArray } from '../../model/values.js';\nimport {\n distinctElements,\n reverseElements,\n sliceElements,\n sortElements,\n} from '../../expr/sequences.js';\nimport type { SequenceAlgebra, SequenceElement } from '../../expr/sequences.js';\nimport { compareOrdered, valuesEqual } from './compare.js';\nimport { elementDomainsFor } from './domains.js';\nimport { foldUndetermined, isDecidedValue } from './operands.js';\nimport { valueOf } from './value.js';\nimport type { Evaluated, EvaluatedValue } from './value.js';\n/** The operators this family answers. */\nexport type SequenceOperator = 'sort' | 'slice' | 'distinct' | 'reverse';\n\n/** The evaluator operations the list operators need. */\nexport interface SequenceContext {\n evaluate(node: ExprNode): Evaluated;\n typed(node: ExprNode, evaluated: EvaluatedValue): EvaluatedValue;\n refuseElements(count: number): void;\n declarationPathOf(path: string): string | undefined;\n declaredElementDomainOf(path: string): LiteralDomain | undefined;\n /** The declared members of the rows a declared record array binds, with their domains. */\n recordItemMembersOf(path: string): Readonly<Record<string, LiteralDomain>> | undefined;\n}\n\n/** The language's own order and equality, over the element domains the list carries. */\nconst LANGUAGE_ALGEBRA: SequenceAlgebra = {\n compare: (left, right, path) =>\n compareOrdered(valueOf(left.value, left.domain), valueOf(right.value, right.domain), path),\n equal: (left, right, path) =>\n valuesEqual(valueOf(left.value, left.domain), valueOf(right.value, right.domain), path),\n};\n\n/**\n * `sort(xs)`, `slice(xs, start, count)`, `distinct(xs)` and `reverse(xs)`.\n *\n * The operand is read once, and its element domains travel with each element: a declared\n * array's `items` declaration or the domains a producer attached, exactly as an aggregate\n * reads them. That is what makes `sort(f_amounts)` order decimals numerically rather than as\n * text, and what the result carries forward so a later `min`, `in` or `==` reads the same\n * declaration. An element this device cannot decide makes the whole answer that sentinel — a\n * list that lost one member is not a sorted, deduplicated or reversed form of the input.\n */\nexport function sequenceCall(\n context: SequenceContext,\n op: SequenceOperator,\n args: readonly ExprNode[],\n): Evaluated {\n const [operandNode, ...rest] = args;\n if (operandNode === undefined) {\n throw new AxiomError('ENGINE_ERROR', `${op} requires a list operand`);\n }\n const operand = context.evaluate(operandNode);\n if (operand.kind === 'absent') return valueOf(UNKNOWN);\n if (isUndetermined(operand.value)) return operand;\n // `null` is the empty value, not an empty list: nothing was read, so the answer is undecided\n // rather than a list that happens not to exist.\n if (operand.value === null) return valueOf(UNKNOWN);\n if (!isWireArray(operand.value)) {\n throw new AxiomError('ENGINE_ERROR', `${op} requires a list`, operandPath(operandNode));\n }\n context.refuseElements(operand.value.length);\n const typedList = context.typed(operandNode, operand);\n const origin =\n operandNode.kind === 'path' ? context.declarationPathOf(operandNode.path) : undefined;\n const declared = origin === undefined ? undefined : context.declaredElementDomainOf(origin);\n // The result states the operand's declared element domain, so an empty copy (a `slice` with a\n // zero count, a `filter` that kept nothing, a `reverse` of an empty list) still folds as the\n // operand's domain. A produced operand carries the same fact on its own value.\n const elementDomain = declared ?? typedList.elementDomain;\n const elementDomains = elementDomainsFor(operand.value, typedList.elementDomains, declared);\n // A declared array of records binds closed rows: the member domains live in the array's\n // declaration, exactly as `sequenceOf` reads them for an aggregate operand.\n const declaredRecordMembers =\n origin === undefined ? undefined : context.recordItemMembersOf(origin);\n const declaredClosedMembers =\n declaredRecordMembers === undefined ? undefined : Object.keys(declaredRecordMembers);\n let undetermined: Undetermined | undefined;\n const elements: SequenceElement[] = [];\n const memberDomains = typedList.elementMemberDomains;\n const closedMembers = typedList.elementClosedMembers;\n const withheldRows = typedList.withheldRows;\n const undeterminedRows = typedList.undeterminedRows;\n for (const [index, value] of operand.value.entries()) {\n if (isUndetermined(value)) {\n undetermined = foldUndetermined(undetermined, value);\n continue;\n }\n // Every element carries the whole declaration it was read under: its own domain, a\n // record's member domains and closed members, and the access sidebands naming the members\n // withheld or unproduced. A copy that kept only `value` + `domain` made a sliced row's\n // projection undecided and read a withheld member as an absence.\n const memberDomain = memberDomains?.[index] ?? declaredRecordMembers;\n const closed = closedMembers?.[index] ?? declaredClosedMembers;\n const withheld = withheldRows?.[index];\n const unproduced = undeterminedRows?.[index];\n elements.push({\n value,\n domain: elementDomains?.[index],\n ...(memberDomain === undefined ? {} : { memberDomains: memberDomain }),\n ...(closed === undefined ? {} : { closedMembers: closed }),\n ...(withheld === undefined ? {} : { withheldMembers: withheld }),\n ...(unproduced === undefined ? {} : { undeterminedMembers: unproduced }),\n });\n }\n if (undetermined !== undefined) return valueOf(undetermined);\n\n switch (op) {\n case 'sort': {\n const ordered = sortElements(elements, LANGUAGE_ALGEBRA, operandPath(operandNode));\n return listResult(ordered, elementDomain);\n }\n case 'distinct': {\n const kept = distinctElements(elements, LANGUAGE_ALGEBRA, operandPath(operandNode));\n return listResult(kept, elementDomain);\n }\n case 'reverse':\n return listResult(reverseElements(elements), elementDomain);\n case 'slice': {\n const start = integerArgument(context, rest[0], 'slice', 2);\n const count = integerArgument(context, rest[1], 'slice', 3);\n return listResult(\n sliceElements(elements, start, count, operandPath(operandNode)),\n elementDomain,\n );\n }\n }\n}\n\n/**\n * A list result carrying each kept element's own declaration, in result order.\n *\n * The sidebands are re-emitted aligned with the kept elements, not with the operand: `sort`\n * and `distinct` reorder and drop elements, and a withheld member or a member domain that did\n * not travel with its element would attach to the wrong row.\n */\nfunction listResult(\n elements: readonly SequenceElement[],\n elementDomain: LiteralDomain | undefined,\n): Evaluated {\n const withheldRows = elements.map((element) => element.withheldMembers);\n const memberDomains = elements.map((element) => element.memberDomains);\n const closedMembers = elements.map((element) => element.closedMembers);\n const undeterminedRows = elements.map((element) => element.undeterminedMembers);\n return {\n kind: 'value',\n value: elements.map((element) => element.value),\n domain: undefined,\n elementDomains: elements.map((element) => element.domain),\n ...(elementDomain === undefined ? {} : { elementDomain }),\n ...(withheldRows.some((entry) => entry !== undefined)\n ? { withheldRows: withheldRows.map((entry) => entry ?? []) }\n : {}),\n ...(memberDomains.some((entry) => entry !== undefined)\n ? { elementMemberDomains: memberDomains }\n : {}),\n ...(closedMembers.some((entry) => entry !== undefined)\n ? { elementClosedMembers: closedMembers }\n : {}),\n ...(undeterminedRows.some((entry) => entry !== undefined)\n ? { undeterminedRows: undeterminedRows.map((entry) => entry ?? []) }\n : {}),\n };\n}\n\n/** The path a refusal names: the operand's own read where it has one. */\nfunction operandPath(node: ExprNode): string {\n return node.kind === 'path' ? node.path : '';\n}\n\n/** A decided integer operand, or the refusal that says which position it is. */\nfunction integerArgument(\n context: SequenceContext,\n node: ExprNode | undefined,\n op: string,\n position: number,\n): number {\n if (node === undefined) {\n throw new AxiomError('ENGINE_ERROR', `${op} requires ${String(position)} operands`);\n }\n const evaluated = context.evaluate(node);\n if (\n !isDecidedValue(evaluated) ||\n typeof evaluated.value !== 'number' ||\n !isSafeInteger(evaluated.value)\n ) {\n throw new AxiomError(\n 'ENGINE_ERROR',\n `${op} argument ${String(position)} requires an integer`,\n operandPath(node),\n );\n }\n return evaluated.value;\n}\n"]}
@@ -0,0 +1,99 @@
1
+ import type { RuntimeValue } from '../../expr/builtins.js';
2
+ import type { LiteralDomain, UndeterminedRows } from '../../model/types.js';
3
+ /** A resolved value together with the static domain the artifact pins for it, if any. */
4
+ export interface EvaluatedValue {
5
+ readonly kind: 'value';
6
+ readonly value: RuntimeValue;
7
+ /**
8
+ * The operand's static domain where the artifact states it: a literal's declared
9
+ * domain, a field's or context root's primitive, or the fixed result type of a
10
+ * built-in. `undefined` means the artifact does not pin one (a type-parameterised
11
+ * built-in such as `min`), and the value is then no domain's value: its spelling never
12
+ * supplies a domain the declaration did not.
13
+ */
14
+ readonly domain: LiteralDomain | undefined;
15
+ /**
16
+ * The element domains of a list value, when the node that produced it knew them. A list
17
+ * becomes a plain wire array on the way through `if` or `??`, so without this a computed
18
+ * list would lose the declaration its members were read under and compare them by spelling.
19
+ * Only an element-domain question reads it; a value's own `domain` stays authoritative.
20
+ */
21
+ readonly elementDomains?: readonly (LiteralDomain | undefined)[];
22
+ /**
23
+ * The element domain a produced list declares, when the producer knew it from the operand.
24
+ *
25
+ * `elementDomains` states one domain per element, so an empty list states none. A list that
26
+ * is the copy of a declared operand (`reverse`, `slice`, `filter`, `map`) still carries that
27
+ * operand's element domain here, which is what lets `sum(reverse(f_amounts))` answer money
28
+ * rather than decimal `0` for an empty list. This is deliberately not the value's own
29
+ * `domain`: a list is `array`, and only its elements have the domain an aggregate folds.
30
+ */
31
+ readonly elementDomain?: LiteralDomain;
32
+ /**
33
+ * The declared domain of each member of a record value, where the producer knew them.
34
+ *
35
+ * A table read produces bare output records: the store hands back canonical wire values,
36
+ * and the declaration that a column is a `decimal` lives only in the table's columns. This
37
+ * carries those declarations beside the value, so `r.max_reading` read through a
38
+ * comprehension is a decimal rather than text that happens to be numeric
39
+ * (`EXPR-5.1.10`, `EXPR-10.2.2`). A member absent here states no domain, and a consumer
40
+ * that needs one answers undecided rather than reading a spelling.
41
+ */
42
+ readonly memberDomains?: Readonly<Record<string, LiteralDomain>>;
43
+ /**
44
+ * The declared members of a record value, in declaration order, when the producer knew them.
45
+ *
46
+ * A dataset row's output columns and a declared `record` field's members are closed: the
47
+ * artifact says which members the record has, whether or not the submission stated each one.
48
+ * `keys` and `values` read this sideband rather than the value's own enumerable keys, because
49
+ * those state what the record happened to carry, not what its declaration admits. A record
50
+ * without it is open (a record-typed context root), and both built-ins refuse it rather than
51
+ * guessing that the value's current members are the whole type.
52
+ */
53
+ readonly closedMembers?: readonly string[];
54
+ /**
55
+ * The declared members of each element a list value carries, in element order, when the
56
+ * producer knew them: the per-row counterpart of `closedMembers` for a `COLLECT` hit or a
57
+ * list of records. `undefined` at an index states an element whose type is open.
58
+ */
59
+ readonly elementClosedMembers?: readonly (readonly string[] | undefined)[];
60
+ /**
61
+ * The member domains of each element of a list value, in element order, when the producer
62
+ * knew them: the per-row counterpart of `memberDomains` for a `COLLECT` hit.
63
+ */
64
+ readonly elementMemberDomains?: readonly (Readonly<Record<string, LiteralDomain>> | undefined)[];
65
+ /** Dotted member paths withheld below this record value, relative to the value itself. */
66
+ readonly withheldMembers?: readonly string[];
67
+ /**
68
+ * The members each element a list value carries withheld from this device, in element order.
69
+ *
70
+ * The value tree cannot carry them: a member access withholds was removed from the row, and
71
+ * the binder must not read that removal as a genuine absence. A binder over this value
72
+ * answers `UNKNOWN` for a path this list names, so `empty`/`present`/`absent` and `??` keep
73
+ * the undecided answer access left (`EXPR-9.1.4`, `EXPR-9.1.5`, `EXPR-9.1.7`).
74
+ */
75
+ readonly withheldRows?: readonly (readonly string[])[];
76
+ /**
77
+ * The members each element a list value carries that a writer could not produce, in element
78
+ * order, with the sentinel each read states.
79
+ *
80
+ * It is the produced counterpart of `withheldRows`: the value tree cannot carry an
81
+ * undetermined member, and the binder must answer the member's own `UNKNOWN` or `DEFERRED`
82
+ * rather than reading its removal as an absence. A row's state never widens to the list's.
83
+ */
84
+ readonly undeterminedRows?: UndeterminedRows;
85
+ }
86
+ /** A path that is genuinely absent, which is a state of its own. */
87
+ export interface EvaluatedAbsent {
88
+ readonly kind: 'absent';
89
+ }
90
+ export type Evaluated = EvaluatedValue | EvaluatedAbsent;
91
+ /** The absence marker, so an absent read is one shared value. */
92
+ export declare const ABSENT: EvaluatedAbsent;
93
+ /** The withheld-member lists values carry into a list, aligned with the list's elements. */
94
+ export declare function withheldRowsOf(elements: readonly Evaluated[]): readonly (readonly string[])[] | undefined;
95
+ /** Builds a resolved value, optionally carrying the domain the artifact declared for it. */
96
+ export declare function valueOf(value: RuntimeValue, domain?: LiteralDomain): EvaluatedValue;
97
+ /** The presence states `present`/`absent`/`is_relevant` distinguish. */
98
+ export type Presence = 'present' | 'null' | 'absent' | 'undetermined' | 'redacted' | 'unreadable';
99
+ //# sourceMappingURL=value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/eval/expr/value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,yFAAyF;AACzF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC;IACjE;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IACjE;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;IAC3E;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;IACjG,0FAA0F;IAC1F,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,CAAC;IACvD;;;;;;;OAOG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CAC9C;AAED,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB;AAED,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,eAAe,CAAC;AAEzD,iEAAiE;AACjE,eAAO,MAAM,MAAM,EAAE,eAAoC,CAAC;AAE1D,4FAA4F;AAC5F,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,SAAS,EAAE,GAC7B,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAS5C;AAED,4FAA4F;AAC5F,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,CAEnF;AAED,wEAAwE;AACxE,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** The absence marker, so an absent read is one shared value. */
2
+ export const ABSENT = { kind: 'absent' };
3
+ /** The withheld-member lists values carry into a list, aligned with the list's elements. */
4
+ export function withheldRowsOf(elements) {
5
+ if (!elements.some((element) => element.kind === 'value' && element.withheldMembers !== undefined)) {
6
+ return undefined;
7
+ }
8
+ return elements.map((element) => element.kind === 'value' ? (element.withheldMembers ?? []) : []);
9
+ }
10
+ /** Builds a resolved value, optionally carrying the domain the artifact declared for it. */
11
+ export function valueOf(value, domain) {
12
+ return { kind: 'value', value, domain };
13
+ }
14
+ //# sourceMappingURL=value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"value.js","sourceRoot":"","sources":["../../../src/eval/expr/value.ts"],"names":[],"mappings":"AA8FA,iEAAiE;AACjE,MAAM,CAAC,MAAM,MAAM,GAAoB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAE1D,4FAA4F;AAC5F,MAAM,UAAU,cAAc,CAC5B,QAA8B;IAE9B,IACE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,CAAC,EAC9F,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC9B,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAChE,CAAC;AACJ,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,OAAO,CAAC,KAAmB,EAAE,MAAsB;IACjE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC1C,CAAC","sourcesContent":["import type { RuntimeValue } from '../../expr/builtins.js';\nimport type { LiteralDomain, UndeterminedRows } from '../../model/types.js';\n\n/** A resolved value together with the static domain the artifact pins for it, if any. */\nexport interface EvaluatedValue {\n readonly kind: 'value';\n readonly value: RuntimeValue;\n /**\n * The operand's static domain where the artifact states it: a literal's declared\n * domain, a field's or context root's primitive, or the fixed result type of a\n * built-in. `undefined` means the artifact does not pin one (a type-parameterised\n * built-in such as `min`), and the value is then no domain's value: its spelling never\n * supplies a domain the declaration did not.\n */\n readonly domain: LiteralDomain | undefined;\n /**\n * The element domains of a list value, when the node that produced it knew them. A list\n * becomes a plain wire array on the way through `if` or `??`, so without this a computed\n * list would lose the declaration its members were read under and compare them by spelling.\n * Only an element-domain question reads it; a value's own `domain` stays authoritative.\n */\n readonly elementDomains?: readonly (LiteralDomain | undefined)[];\n /**\n * The element domain a produced list declares, when the producer knew it from the operand.\n *\n * `elementDomains` states one domain per element, so an empty list states none. A list that\n * is the copy of a declared operand (`reverse`, `slice`, `filter`, `map`) still carries that\n * operand's element domain here, which is what lets `sum(reverse(f_amounts))` answer money\n * rather than decimal `0` for an empty list. This is deliberately not the value's own\n * `domain`: a list is `array`, and only its elements have the domain an aggregate folds.\n */\n readonly elementDomain?: LiteralDomain;\n /**\n * The declared domain of each member of a record value, where the producer knew them.\n *\n * A table read produces bare output records: the store hands back canonical wire values,\n * and the declaration that a column is a `decimal` lives only in the table's columns. This\n * carries those declarations beside the value, so `r.max_reading` read through a\n * comprehension is a decimal rather than text that happens to be numeric\n * (`EXPR-5.1.10`, `EXPR-10.2.2`). A member absent here states no domain, and a consumer\n * that needs one answers undecided rather than reading a spelling.\n */\n readonly memberDomains?: Readonly<Record<string, LiteralDomain>>;\n /**\n * The declared members of a record value, in declaration order, when the producer knew them.\n *\n * A dataset row's output columns and a declared `record` field's members are closed: the\n * artifact says which members the record has, whether or not the submission stated each one.\n * `keys` and `values` read this sideband rather than the value's own enumerable keys, because\n * those state what the record happened to carry, not what its declaration admits. A record\n * without it is open (a record-typed context root), and both built-ins refuse it rather than\n * guessing that the value's current members are the whole type.\n */\n readonly closedMembers?: readonly string[];\n /**\n * The declared members of each element a list value carries, in element order, when the\n * producer knew them: the per-row counterpart of `closedMembers` for a `COLLECT` hit or a\n * list of records. `undefined` at an index states an element whose type is open.\n */\n readonly elementClosedMembers?: readonly (readonly string[] | undefined)[];\n /**\n * The member domains of each element of a list value, in element order, when the producer\n * knew them: the per-row counterpart of `memberDomains` for a `COLLECT` hit.\n */\n readonly elementMemberDomains?: readonly (Readonly<Record<string, LiteralDomain>> | undefined)[];\n /** Dotted member paths withheld below this record value, relative to the value itself. */\n readonly withheldMembers?: readonly string[];\n /**\n * The members each element a list value carries withheld from this device, in element order.\n *\n * The value tree cannot carry them: a member access withholds was removed from the row, and\n * the binder must not read that removal as a genuine absence. A binder over this value\n * answers `UNKNOWN` for a path this list names, so `empty`/`present`/`absent` and `??` keep\n * the undecided answer access left (`EXPR-9.1.4`, `EXPR-9.1.5`, `EXPR-9.1.7`).\n */\n readonly withheldRows?: readonly (readonly string[])[];\n /**\n * The members each element a list value carries that a writer could not produce, in element\n * order, with the sentinel each read states.\n *\n * It is the produced counterpart of `withheldRows`: the value tree cannot carry an\n * undetermined member, and the binder must answer the member's own `UNKNOWN` or `DEFERRED`\n * rather than reading its removal as an absence. A row's state never widens to the list's.\n */\n readonly undeterminedRows?: UndeterminedRows;\n}\n\n/** A path that is genuinely absent, which is a state of its own. */\nexport interface EvaluatedAbsent {\n readonly kind: 'absent';\n}\n\nexport type Evaluated = EvaluatedValue | EvaluatedAbsent;\n\n/** The absence marker, so an absent read is one shared value. */\nexport const ABSENT: EvaluatedAbsent = { kind: 'absent' };\n\n/** The withheld-member lists values carry into a list, aligned with the list's elements. */\nexport function withheldRowsOf(\n elements: readonly Evaluated[],\n): readonly (readonly string[])[] | undefined {\n if (\n !elements.some((element) => element.kind === 'value' && element.withheldMembers !== undefined)\n ) {\n return undefined;\n }\n return elements.map((element) =>\n element.kind === 'value' ? (element.withheldMembers ?? []) : [],\n );\n}\n\n/** Builds a resolved value, optionally carrying the domain the artifact declared for it. */\nexport function valueOf(value: RuntimeValue, domain?: LiteralDomain): EvaluatedValue {\n return { kind: 'value', value, domain };\n}\n\n/** The presence states `present`/`absent`/`is_relevant` distinguish. */\nexport type Presence = 'present' | 'null' | 'absent' | 'undetermined' | 'redacted' | 'unreadable';\n"]}
@@ -0,0 +1,142 @@
1
+ import type { EvaluationBudget, RuleAllowance } from './budget.js';
2
+ import type { RuntimeValue } from '../expr/builtins.js';
3
+ import type { ExprNode, LiteralDomain, LookupResolution, Outcome, SetResolution, UndeterminedRows } from '../model/types.js';
4
+ import { BinderPaths } from './paths.js';
5
+ import type { BinderScope } from './expr/binder.js';
6
+ import type { CallContext } from './expr/call-dispatch.js';
7
+ import type { ExpressionHost, LookupHost, RuleHost } from './expr/host.js';
8
+ import type { Evaluated, EvaluatedValue } from './expr/value.js';
9
+ export type { Evaluated, EvaluatedValue } from './expr/value.js';
10
+ export type { ExpressionHost, LookupHost, RuleHost } from './expr/host.js';
11
+ /**
12
+ * Evaluates the closed expression AST against a host reader.
13
+ *
14
+ * The evaluator is the language: node dispatch, the 4×4 lattice, lazy `if` and `??`,
15
+ * comparison and equality, the arithmetic operators and the built-in dispatch all live
16
+ * here. The rule engine and standalone guard evaluation differ only in the host they
17
+ * supply, so no rule-specific concern can change an expression's meaning.
18
+ */
19
+ export declare class ExpressionEvaluator implements CallContext {
20
+ readonly host: ExpressionHost;
21
+ readonly lookups: LookupHost;
22
+ readonly rules: RuleHost | undefined;
23
+ private readonly ledger;
24
+ /** The comprehension scopes currently in force, innermost last. */
25
+ readonly scopes: BinderScope[];
26
+ /** Binder reads that returned a value carrying withheld members. */
27
+ private binderWithheld;
28
+ /** The path answers a binder scope gives, memoised for this evaluation. */
29
+ readonly paths: BinderPaths;
30
+ /** The provenance each distinct resolution in this pass stands for. */
31
+ private readonly provenanceByResolution;
32
+ /** The host's declared-domain question, captured once so a per-element call allocates none. */
33
+ private readonly declaredDomain;
34
+ constructor(host: ExpressionHost, lookups: LookupHost, rules?: RuleHost, budget?: EvaluationBudget);
35
+ /**
36
+ * Starts one rule's allowances, so the rows a later rule addresses are not charged to an
37
+ * earlier rule's spend. Returns the interrupted counters a nested rule must restore.
38
+ */
39
+ beginRule(): RuleAllowance;
40
+ /** Restores the allowances of the rule that asked about a rule it evaluated. */
41
+ endRule(previous: RuleAllowance): void;
42
+ /** Refuses an item scope over more elements than this evaluation allows. */
43
+ refuseElements(count: number): void;
44
+ /** Enters one comprehension, returning the nesting depth it interrupted. */
45
+ beginComprehension(): number;
46
+ /** Leaves one comprehension, restoring the nesting depth it interrupted. */
47
+ endComprehension(previous: number): void;
48
+ /** Counts the elements a nested comprehension materialised against this rule's allowance. */
49
+ chargeElements(count: number): void;
50
+ /** Refuses a block of report entries before an item rule allocates one per row. */
51
+ ensureDecisionRoom(count: number, operation: string): void;
52
+ /** Counts the report entries a rule produced against the pass-wide decision ceiling. */
53
+ spendDecisions(count: number, operation: string): void;
54
+ /**
55
+ * Whether a read since `mark` touched a hidden, excluded field. A host that tracks no
56
+ * disclosure answers no, which is the guard-evaluation case where no schema holds a policy.
57
+ */
58
+ touchedWithheld(mark: number): boolean;
59
+ /** The current disclosure-taint position, or a constant when the host tracks none. */
60
+ taintMark(): number;
61
+ /** The current position in binder reads that carried withheld members. */
62
+ binderTaintMark(): number;
63
+ /** Whether a binder read since `mark` carried withheld members into this expression. */
64
+ touchedBinderWithheld(mark: number): boolean;
65
+ /**
66
+ * Runs `visit` once per item of a declared array with the implicit item scope in force, so
67
+ * an item-scoped rule reads `$it`, `$i`, `$prev` and `$next` exactly as a comprehension
68
+ * does.
69
+ *
70
+ * `withheld` is the read's own statement of which members each row withheld from this device,
71
+ * in array order: the row no longer carries them, and without it `empty`, `present`, `absent`
72
+ * and `??` would read that removal as a genuine absence (`ACCESS-1.3.3`, `EXPR-9.1.5`).
73
+ *
74
+ * `undetermined` is the same statement for a member a writer could not produce, with the
75
+ * sentinel each read states (`RULES-2.1.7`). It stays per row: one row's unproduced member is
76
+ * that row's answer and never widens to the array or its siblings.
77
+ */
78
+ withItemScope<T>(arrayPath: string, elements: readonly EvaluatedValue[], index: number, visit: () => T, withheld?: readonly (readonly string[])[], undetermined?: UndeterminedRows): T;
79
+ /**
80
+ * Runs `visit` under binder scopes that are already in force on another evaluator.
81
+ *
82
+ * A pass that reads an expression on a second host — an alternative or an availability
83
+ * condition evaluated where its reads stay out of the report — is still inside the scope its
84
+ * owner judged: an `item`-scoped rule's `$it` names that rule's row, and the row was bound
85
+ * before the second host existed. The scopes are plain data, so they are shared rather than
86
+ * rebuilt from the rows they were bound to.
87
+ */
88
+ withBinderScopes<T>(scopes: readonly BinderScope[], visit: () => T): T;
89
+ /** Visits `node` and everything below it, refusing an evaluation over the node budget. */
90
+ evaluate(node: ExprNode): Evaluated;
91
+ /** The outcome a value stands for; a non-boolean has none. */
92
+ statusOf(evaluated: Evaluated): Outcome;
93
+ /**
94
+ * A path the current binder scope names is resolved here; every other path is a declared
95
+ * field or context root the host resolves. A binder is a lexical binding, so it wins over
96
+ * a declared field of the same name.
97
+ */
98
+ private readPath;
99
+ private readScoped;
100
+ /** The declared path a binder path names, so a member read through the binder keeps the
101
+ * domain its declaration pins. `undefined` where no declaration backs it:
102
+ * the index, or an element of a list the artifact did not declare.
103
+ */
104
+ declarationPathOf(path: string): string | undefined;
105
+ private domainOfPath;
106
+ /** The declared element domain of a declared array, for the elements an aggregate reads. */
107
+ declaredElementDomainOf(path: string): LiteralDomain | undefined;
108
+ /** The declared primitive of a declared path, captured for the binder walk. */
109
+ declaredDomainOf(path: string): LiteralDomain | undefined;
110
+ /**
111
+ * The declared members of a record path, resolved through the binder scope in force.
112
+ *
113
+ * A member path (`$it.f_rows`) maps to the declaration the row's array states; the binder
114
+ * itself (`$it`, `r`) has no declaration path and is answered from the value's own
115
+ * `closedMembers` sideband instead.
116
+ */
117
+ recordMembersOf(path: string): Readonly<Record<string, LiteralDomain>> | undefined;
118
+ /** The declared members of a record array's rows, through the binder scope in force. */
119
+ recordItemMembersOf(path: string): Readonly<Record<string, LiteralDomain>> | undefined;
120
+ evalArgs(args: readonly ExprNode[]): readonly RuntimeValue[];
121
+ evalArgument(arg: ExprNode): RuntimeValue;
122
+ /** `x in xs` under the equality rule, answered by the membership family. */
123
+ private evalMembership;
124
+ /**
125
+ * Records the report entry one resolution produces. A resolution that
126
+ * formed no query — `decide` with an input the record does not carry — has no entry to
127
+ * record, because there is no table identity and no key to reproduce.
128
+ *
129
+ * The port memo hands back the same resolution object for a repeated call, so the
130
+ * provenance object is built once per distinct resolution and the report's canonical
131
+ * token is derived once per provenance rather than once per call.
132
+ */
133
+ recordResolution(resolution: SetResolution | LookupResolution): void;
134
+ /**
135
+ * Attaches the operand's static domain, so `"1.5"` and the decimal `1.5` are two
136
+ * values of different domains. A literal states its
137
+ * own domain, a path takes the declared primitive, and a built-in with a fixed result
138
+ * type contributes that type; a type-parameterised built-in contributes nothing.
139
+ */
140
+ typed(node: ExprNode, evaluated: EvaluatedValue): EvaluatedValue;
141
+ }
142
+ //# sourceMappingURL=expression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../src/eval/expression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKxD,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AASzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAU3E,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE3E;;;;;;;GAOG;AACH,qBAAa,mBAAoB,YAAW,WAAW;IACrD,QAAQ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