evalution 1.0.5 → 1.0.7

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 (335) hide show
  1. package/LICENSING.md +16 -1
  2. package/README.md +1 -0
  3. package/dist/check-BTg6THHB.d.ts +1925 -0
  4. package/dist/checks/index.d.ts +71 -0
  5. package/dist/checks/index.js +2 -0
  6. package/dist/checks-Cq97JU-h.js +309 -0
  7. package/dist/cli/index.js +5341 -352
  8. package/dist/client/assets/DatasetView-BcYR5beY.css +1 -0
  9. package/dist/client/assets/DatasetView-CWw3B_XI.js +15 -0
  10. package/dist/client/assets/EvalRunView-DJNSAydj.js +2 -0
  11. package/dist/client/assets/EvalView-R0Nkikzs.js +1 -0
  12. package/dist/client/assets/abap-BdImnpbu.js +1 -0
  13. package/dist/client/assets/actionscript-3-CoDkCxhg.js +1 -0
  14. package/dist/client/assets/ada-bCR0ucgS.js +1 -0
  15. package/dist/client/assets/andromeeda-C4gqWexZ.js +1 -0
  16. package/dist/client/assets/angular-html-CU67Zn6k.js +1 -0
  17. package/dist/client/assets/angular-ts-BwZT4LLn.js +1 -0
  18. package/dist/client/assets/apache-Pmp26Uib.js +1 -0
  19. package/dist/client/assets/apex-D8_7TLub.js +1 -0
  20. package/dist/client/assets/apl-dKokRX4l.js +1 -0
  21. package/dist/client/assets/applescript-Co6uUVPk.js +1 -0
  22. package/dist/client/assets/ara-BRHolxvo.js +1 -0
  23. package/dist/client/assets/asciidoc-Ve4PFQV2.js +1 -0
  24. package/dist/client/assets/asm-D_Q5rh1f.js +1 -0
  25. package/dist/client/assets/astro-CbQHKStN.js +1 -0
  26. package/dist/client/assets/aurora-x-D-2ljcwZ.js +1 -0
  27. package/dist/client/assets/awk-DMzUqQB5.js +1 -0
  28. package/dist/client/assets/ayu-dark-DYE7WIF3.js +1 -0
  29. package/dist/client/assets/ayu-light-BA47KaF1.js +1 -0
  30. package/dist/client/assets/ayu-mirage-32ctXXKs.js +1 -0
  31. package/dist/client/assets/ballerina-BFfxhgS-.js +1 -0
  32. package/dist/client/assets/bat-BkioyH1T.js +1 -0
  33. package/dist/client/assets/beancount-k_qm7-4y.js +1 -0
  34. package/dist/client/assets/berry-uYugtg8r.js +1 -0
  35. package/dist/client/assets/bibtex-CHM0blh-.js +1 -0
  36. package/dist/client/assets/bicep-Bmn6On1c.js +1 -0
  37. package/dist/client/assets/bird2-DPOp833l.js +1 -0
  38. package/dist/client/assets/blade-D4QpJJKB.js +1 -0
  39. package/dist/client/assets/bsl-BO_Y6i37.js +1 -0
  40. package/dist/client/assets/c-BIGW1oBm.js +1 -0
  41. package/dist/client/assets/c3-eo99z4R2.js +1 -0
  42. package/dist/client/assets/cadence-Bv_4Rxtq.js +1 -0
  43. package/dist/client/assets/cairo-KRGpt6FW.js +1 -0
  44. package/dist/client/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  45. package/dist/client/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  46. package/dist/client/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  47. package/dist/client/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  48. package/dist/client/assets/clarity-D53aC0YG.js +1 -0
  49. package/dist/client/assets/clojure-P80f7IUj.js +1 -0
  50. package/dist/client/assets/cmake-D1j8_8rp.js +1 -0
  51. package/dist/client/assets/cobol-nwyudZeR.js +1 -0
  52. package/dist/client/assets/codeowners-Bp6g37R7.js +1 -0
  53. package/dist/client/assets/codeql-DsOJ9woJ.js +1 -0
  54. package/dist/client/assets/coffee-Ch7k5sss.js +1 -0
  55. package/dist/client/assets/common-lisp-Cg-RD9OK.js +1 -0
  56. package/dist/client/assets/coq-DkFqJrB1.js +1 -0
  57. package/dist/client/assets/cpp-CofmeUqb.js +1 -0
  58. package/dist/client/assets/crystal-tKQVLTB8.js +1 -0
  59. package/dist/client/assets/csharp-COcwbKMJ.js +1 -0
  60. package/dist/client/assets/css-DPfMkruS.js +1 -0
  61. package/dist/client/assets/csv-fuZLfV_i.js +1 -0
  62. package/dist/client/assets/cue-D82EKSYY.js +1 -0
  63. package/dist/client/assets/cypher-COkxafJQ.js +1 -0
  64. package/dist/client/assets/d-85-TOEBH.js +1 -0
  65. package/dist/client/assets/dark-plus-C3mMm8J8.js +1 -0
  66. package/dist/client/assets/dart-CF10PKvl.js +1 -0
  67. package/dist/client/assets/data-grid-overlay-editor-CBVV2omk.js +1 -0
  68. package/dist/client/assets/dax-CEL-wOlO.js +1 -0
  69. package/dist/client/assets/desktop-BmXAJ9_W.js +1 -0
  70. package/dist/client/assets/diff-D97Zzqfu.js +1 -0
  71. package/dist/client/assets/docker-BcOcwvcX.js +1 -0
  72. package/dist/client/assets/dotenv-Da5cRb03.js +1 -0
  73. package/dist/client/assets/dracula-BzJJZx-M.js +1 -0
  74. package/dist/client/assets/dracula-soft-BXkSAIEj.js +1 -0
  75. package/dist/client/assets/dream-maker-BtqSS_iP.js +1 -0
  76. package/dist/client/assets/edge-BkV0erSs.js +1 -0
  77. package/dist/client/assets/elixir-CDX3lj18.js +1 -0
  78. package/dist/client/assets/elm-DbKCFpqz.js +1 -0
  79. package/dist/client/assets/emacs-lisp-C9XAeP06.js +1 -0
  80. package/dist/client/assets/erb-B12qg9BL.js +1 -0
  81. package/dist/client/assets/erlang-DsQrWhSR.js +1 -0
  82. package/dist/client/assets/everforest-dark-BgDCqdQA.js +1 -0
  83. package/dist/client/assets/everforest-light-C8M2exoo.js +1 -0
  84. package/dist/client/assets/fennel-BYunw83y.js +1 -0
  85. package/dist/client/assets/fish-BvzEVeQv.js +1 -0
  86. package/dist/client/assets/fluent-C4IJs8-o.js +1 -0
  87. package/dist/client/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  88. package/dist/client/assets/fortran-free-form-BxgE0vQu.js +1 -0
  89. package/dist/client/assets/fsharp-CXgrBDvD.js +1 -0
  90. package/dist/client/assets/gdresource-BOOCDP_w.js +1 -0
  91. package/dist/client/assets/gdscript-C5YyOfLZ.js +1 -0
  92. package/dist/client/assets/gdshader-DkwncUOv.js +1 -0
  93. package/dist/client/assets/genie-D0YGMca9.js +1 -0
  94. package/dist/client/assets/gherkin-DyxjwDmM.js +1 -0
  95. package/dist/client/assets/git-commit-F4YmCXRG.js +1 -0
  96. package/dist/client/assets/git-rebase-r7XF79zn.js +1 -0
  97. package/dist/client/assets/github-dark-DHJKELXO.js +1 -0
  98. package/dist/client/assets/github-dark-default-Cuk6v7N8.js +1 -0
  99. package/dist/client/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  100. package/dist/client/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  101. package/dist/client/assets/github-light-DAi9KRSo.js +1 -0
  102. package/dist/client/assets/github-light-default-D7oLnXFd.js +1 -0
  103. package/dist/client/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  104. package/dist/client/assets/gleam-BspZqrRM.js +1 -0
  105. package/dist/client/assets/glimmer-js-Rg0-pVw9.js +1 -0
  106. package/dist/client/assets/glimmer-ts-U6CK756n.js +1 -0
  107. package/dist/client/assets/glsl-DplSGwfg.js +1 -0
  108. package/dist/client/assets/gn-n2N0HUVH.js +1 -0
  109. package/dist/client/assets/gnuplot-DdkO51Og.js +1 -0
  110. package/dist/client/assets/go-CxLEBnE3.js +1 -0
  111. package/dist/client/assets/graphql-ChdNCCLP.js +1 -0
  112. package/dist/client/assets/groovy-gcz8RCvz.js +1 -0
  113. package/dist/client/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  114. package/dist/client/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  115. package/dist/client/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  116. package/dist/client/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  117. package/dist/client/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  118. package/dist/client/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  119. package/dist/client/assets/hack-CaT9iCJl.js +1 -0
  120. package/dist/client/assets/haml-B8DHNrY2.js +1 -0
  121. package/dist/client/assets/handlebars-BL8al0AC.js +1 -0
  122. package/dist/client/assets/haskell-Df6bDoY_.js +1 -0
  123. package/dist/client/assets/haxe-CzTSHFRz.js +1 -0
  124. package/dist/client/assets/hcl-BWvSN4gD.js +1 -0
  125. package/dist/client/assets/highlighted-body-KPVGNVTW-BqsjUFPI.js +1 -0
  126. package/dist/client/assets/hjson-D5-asLiD.js +1 -0
  127. package/dist/client/assets/hlsl-D3lLCCz7.js +1 -0
  128. package/dist/client/assets/horizon-BUw7H-hv.js +1 -0
  129. package/dist/client/assets/horizon-bright-Cn-bp-IR.js +1 -0
  130. package/dist/client/assets/houston-DnULxvSX.js +1 -0
  131. package/dist/client/assets/html-GMplVEZG.js +1 -0
  132. package/dist/client/assets/html-derivative-BFtXZ54Q.js +1 -0
  133. package/dist/client/assets/http-jrhK8wxY.js +1 -0
  134. package/dist/client/assets/hurl-irOxFIW8.js +1 -0
  135. package/dist/client/assets/hxml-Bvhsp5Yf.js +1 -0
  136. package/dist/client/assets/hy-DFXneXwc.js +1 -0
  137. package/dist/client/assets/imba-DGztddWO.js +1 -0
  138. package/dist/client/assets/index-B7OFMd2c.css +32 -0
  139. package/dist/client/assets/index-DOmAST6D.js +701 -0
  140. package/dist/client/assets/ini-BEwlwnbL.js +1 -0
  141. package/dist/client/assets/java-CylS5w8V.js +1 -0
  142. package/dist/client/assets/javascript-wDzz0qaB.js +1 -0
  143. package/dist/client/assets/jinja-4LBKfQ-Z.js +1 -0
  144. package/dist/client/assets/jison-wvAkD_A8.js +1 -0
  145. package/dist/client/assets/json-Cp-IABpG.js +1 -0
  146. package/dist/client/assets/json5-C9tS-k6U.js +1 -0
  147. package/dist/client/assets/jsonc-Des-eS-w.js +1 -0
  148. package/dist/client/assets/jsonl-DcaNXYhu.js +1 -0
  149. package/dist/client/assets/jsonnet-DFQXde-d.js +1 -0
  150. package/dist/client/assets/jssm-C2t-YnRu.js +1 -0
  151. package/dist/client/assets/jsx-g9-lgVsj.js +1 -0
  152. package/dist/client/assets/julia-CxzCAyBv.js +1 -0
  153. package/dist/client/assets/just-Cw27pwNe.js +1 -0
  154. package/dist/client/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  155. package/dist/client/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  156. package/dist/client/assets/kanagawa-wave-DWedfzmr.js +1 -0
  157. package/dist/client/assets/kdl-DV7GczEv.js +1 -0
  158. package/dist/client/assets/kotlin-BdnUsdx6.js +1 -0
  159. package/dist/client/assets/kusto-DZf3V79B.js +1 -0
  160. package/dist/client/assets/laserwave-DUszq2jm.js +1 -0
  161. package/dist/client/assets/latex-CWtU0Tv5.js +1 -0
  162. package/dist/client/assets/lean-BZvkOJ9d.js +1 -0
  163. package/dist/client/assets/less-B1dDrJ26.js +1 -0
  164. package/dist/client/assets/light-plus-B7mTdjB0.js +1 -0
  165. package/dist/client/assets/liquid-DYVedYrR.js +1 -0
  166. package/dist/client/assets/llvm-DjAJT7YJ.js +1 -0
  167. package/dist/client/assets/log-2UxHyX5q.js +1 -0
  168. package/dist/client/assets/logo-BtOb2qkB.js +1 -0
  169. package/dist/client/assets/lua-BaeVxFsk.js +1 -0
  170. package/dist/client/assets/luau-C-HG3fhB.js +1 -0
  171. package/dist/client/assets/make-CHLpvVh8.js +1 -0
  172. package/dist/client/assets/markdown-Cvjx9yec.js +1 -0
  173. package/dist/client/assets/marko-CnJfTvn9.js +1 -0
  174. package/dist/client/assets/material-theme-D5KoaKCx.js +1 -0
  175. package/dist/client/assets/material-theme-darker-BfHTSMKl.js +1 -0
  176. package/dist/client/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  177. package/dist/client/assets/material-theme-ocean-CyktbL80.js +1 -0
  178. package/dist/client/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  179. package/dist/client/assets/matlab-D7o27uSR.js +1 -0
  180. package/dist/client/assets/mdc-BMNejdWA.js +1 -0
  181. package/dist/client/assets/mdx-Cmh6b_Ma.js +1 -0
  182. package/dist/client/assets/mermaid-mWjccvbQ.js +1 -0
  183. package/dist/client/assets/min-dark-CafNBF8u.js +1 -0
  184. package/dist/client/assets/min-light-CTRr51gU.js +1 -0
  185. package/dist/client/assets/mipsasm-CKIfxQSi.js +1 -0
  186. package/dist/client/assets/mojo-rZm6bMo-.js +1 -0
  187. package/dist/client/assets/monokai-D4h5O-jR.js +1 -0
  188. package/dist/client/assets/moonbit-_H4v1dQx.js +1 -0
  189. package/dist/client/assets/move-IF9eRakj.js +1 -0
  190. package/dist/client/assets/narrat-DRg8JJMk.js +1 -0
  191. package/dist/client/assets/nextflow-Zz6hmt5N.js +1 -0
  192. package/dist/client/assets/nextflow-groovy-BeH2EWoN.js +1 -0
  193. package/dist/client/assets/nginx-BpAMiNFr.js +1 -0
  194. package/dist/client/assets/night-owl-C39BiMTA.js +1 -0
  195. package/dist/client/assets/night-owl-light-CMTm3GFP.js +1 -0
  196. package/dist/client/assets/nim-CVrawwO9.js +1 -0
  197. package/dist/client/assets/nix-CwoSXNpI.js +1 -0
  198. package/dist/client/assets/nord-Ddv68eIx.js +1 -0
  199. package/dist/client/assets/number-overlay-editor-DhCVhD05.js +9 -0
  200. package/dist/client/assets/nushell-Cz2AlsmD.js +1 -0
  201. package/dist/client/assets/objective-c-DXmwc3jG.js +1 -0
  202. package/dist/client/assets/objective-cpp-CLxacb5B.js +1 -0
  203. package/dist/client/assets/ocaml-C0hk2d4L.js +1 -0
  204. package/dist/client/assets/odin-BBf5iR-q.js +1 -0
  205. package/dist/client/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  206. package/dist/client/assets/one-light-C3Wv6jpd.js +1 -0
  207. package/dist/client/assets/openscad-C4EeE6gA.js +1 -0
  208. package/dist/client/assets/pascal-D93ZcfNL.js +1 -0
  209. package/dist/client/assets/perl-C0TMdlhV.js +1 -0
  210. package/dist/client/assets/php-Dhbhpdrm.js +1 -0
  211. package/dist/client/assets/pkl-u5AG7uiY.js +1 -0
  212. package/dist/client/assets/plastic-3e1v2bzS.js +1 -0
  213. package/dist/client/assets/plsql-ChMvpjG-.js +1 -0
  214. package/dist/client/assets/po-BTJTHyun.js +1 -0
  215. package/dist/client/assets/poimandres-CS3Unz2-.js +1 -0
  216. package/dist/client/assets/polar-C0HS_06l.js +1 -0
  217. package/dist/client/assets/postcss-CXtECtnM.js +1 -0
  218. package/dist/client/assets/powerquery-CEu0bR-o.js +1 -0
  219. package/dist/client/assets/powershell-Dpen1YoG.js +1 -0
  220. package/dist/client/assets/prisma-Dd19v3D-.js +1 -0
  221. package/dist/client/assets/prolog-CbFg5uaA.js +1 -0
  222. package/dist/client/assets/proto-C7zT0LnQ.js +1 -0
  223. package/dist/client/assets/pug-CGlum2m_.js +1 -0
  224. package/dist/client/assets/puppet-BMWR74SV.js +1 -0
  225. package/dist/client/assets/purescript-CklMAg4u.js +1 -0
  226. package/dist/client/assets/python-B6aJPvgy.js +1 -0
  227. package/dist/client/assets/qml-3beO22l8.js +1 -0
  228. package/dist/client/assets/qmldir-C8lEn-DE.js +1 -0
  229. package/dist/client/assets/qss-IeuSbFQv.js +1 -0
  230. package/dist/client/assets/r-Dspwwk_N.js +1 -0
  231. package/dist/client/assets/racket-BqYA7rlc.js +1 -0
  232. package/dist/client/assets/raku-DXvB9xmW.js +1 -0
  233. package/dist/client/assets/razor-Uh8Bk_45.js +1 -0
  234. package/dist/client/assets/red-bN70gL4F.js +1 -0
  235. package/dist/client/assets/reg-C-SQnVFl.js +1 -0
  236. package/dist/client/assets/regexp-CDVJQ6XC.js +1 -0
  237. package/dist/client/assets/rel-C3B-1QV4.js +1 -0
  238. package/dist/client/assets/riscv-BM1_JUlF.js +1 -0
  239. package/dist/client/assets/ron-D8l8udqQ.js +1 -0
  240. package/dist/client/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  241. package/dist/client/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  242. package/dist/client/assets/rose-pine-qdsjHGoJ.js +1 -0
  243. package/dist/client/assets/rosmsg-BJDFO7_C.js +1 -0
  244. package/dist/client/assets/rst-BrH8l1NY.js +1 -0
  245. package/dist/client/assets/ruby-Dw2BHqvy.js +1 -0
  246. package/dist/client/assets/rust-B1yitclQ.js +1 -0
  247. package/dist/client/assets/sas-cz2c8ADy.js +1 -0
  248. package/dist/client/assets/sass-Cj5Yp3dK.js +1 -0
  249. package/dist/client/assets/scala-C151Ov-r.js +1 -0
  250. package/dist/client/assets/scheme-C98Dy4si.js +1 -0
  251. package/dist/client/assets/scss-OYdSNvt2.js +1 -0
  252. package/dist/client/assets/sdbl-DVxCFoDh.js +1 -0
  253. package/dist/client/assets/shaderlab-Dg9Lc6iA.js +1 -0
  254. package/dist/client/assets/shellscript-Yzrsuije.js +1 -0
  255. package/dist/client/assets/shellsession-BADoaaVG.js +1 -0
  256. package/dist/client/assets/slack-dark-BthQWCQV.js +1 -0
  257. package/dist/client/assets/slack-ochin-DqwNpetd.js +1 -0
  258. package/dist/client/assets/smalltalk-BERRCDM3.js +1 -0
  259. package/dist/client/assets/snazzy-light-Bw305WKR.js +1 -0
  260. package/dist/client/assets/solarized-dark-DXbdFlpD.js +1 -0
  261. package/dist/client/assets/solarized-light-L9t79GZl.js +1 -0
  262. package/dist/client/assets/solidity-rGO070M0.js +1 -0
  263. package/dist/client/assets/soy-Brmx7dQM.js +1 -0
  264. package/dist/client/assets/sparql-rVzFXLq3.js +1 -0
  265. package/dist/client/assets/splunk-BtCnVYZw.js +1 -0
  266. package/dist/client/assets/sql-BLtJtn59.js +1 -0
  267. package/dist/client/assets/ssh-config-_ykCGR6B.js +1 -0
  268. package/dist/client/assets/stata-BH5u7GGu.js +1 -0
  269. package/dist/client/assets/stylus-BEDo0Tqx.js +1 -0
  270. package/dist/client/assets/surrealql-Bq5Q-fJD.js +1 -0
  271. package/dist/client/assets/svelte-C_ipcX3V.js +1 -0
  272. package/dist/client/assets/swift-D82vCrfD.js +1 -0
  273. package/dist/client/assets/synthwave-84-CbfX1IO0.js +1 -0
  274. package/dist/client/assets/system-verilog-CnnmHF94.js +1 -0
  275. package/dist/client/assets/systemd-4A_iFExJ.js +1 -0
  276. package/dist/client/assets/talonscript-CkByrt1z.js +1 -0
  277. package/dist/client/assets/tasl-QIJgUcNo.js +1 -0
  278. package/dist/client/assets/tcl-dwOrl1Do.js +1 -0
  279. package/dist/client/assets/templ-P3uqSqPl.js +1 -0
  280. package/dist/client/assets/terraform-BETggiCN.js +1 -0
  281. package/dist/client/assets/tex-idrVyKtj.js +1 -0
  282. package/dist/client/assets/tokyo-night-hegEt444.js +1 -0
  283. package/dist/client/assets/toml-vGWfd6FD.js +1 -0
  284. package/dist/client/assets/ts-tags-zn1MmPIZ.js +1 -0
  285. package/dist/client/assets/tsv-B_m7g4N7.js +1 -0
  286. package/dist/client/assets/tsx-COt5Ahok.js +1 -0
  287. package/dist/client/assets/turtle-BsS91CYL.js +1 -0
  288. package/dist/client/assets/twig-DNn4PbVi.js +1 -0
  289. package/dist/client/assets/typescript-BPQ3VLAy.js +1 -0
  290. package/dist/client/assets/typespec-BGHnOYBU.js +1 -0
  291. package/dist/client/assets/typst-DHCkPAjA.js +1 -0
  292. package/dist/client/assets/v-BcVCzyr7.js +1 -0
  293. package/dist/client/assets/vala-CsfeWuGM.js +1 -0
  294. package/dist/client/assets/vb-D17OF-Vu.js +1 -0
  295. package/dist/client/assets/verilog-BQ8w6xss.js +1 -0
  296. package/dist/client/assets/vesper-DU1UobuO.js +1 -0
  297. package/dist/client/assets/vhdl-CeAyd5Ju.js +1 -0
  298. package/dist/client/assets/viml-CJc9bBzg.js +1 -0
  299. package/dist/client/assets/vitesse-black-Bkuqu6BP.js +1 -0
  300. package/dist/client/assets/vitesse-dark-D0r3Knsf.js +1 -0
  301. package/dist/client/assets/vitesse-light-CVO1_9PV.js +1 -0
  302. package/dist/client/assets/vue-DN_0RTcg.js +1 -0
  303. package/dist/client/assets/vue-html-AaS7Mt5G.js +1 -0
  304. package/dist/client/assets/vue-vine-CQOfvN7w.js +1 -0
  305. package/dist/client/assets/vyper-CDx5xZoG.js +1 -0
  306. package/dist/client/assets/wasm-CG6Dc4jp.js +1 -0
  307. package/dist/client/assets/wasm-MzD3tlZU.js +1 -0
  308. package/dist/client/assets/wenyan-BV7otONQ.js +1 -0
  309. package/dist/client/assets/wgsl-Dx-B1_4e.js +1 -0
  310. package/dist/client/assets/wikitext-BhOHFoWU.js +1 -0
  311. package/dist/client/assets/wit-5i3qLPDT.js +1 -0
  312. package/dist/client/assets/wolfram-lXgVvXCa.js +1 -0
  313. package/dist/client/assets/xml-sdJ4AIDG.js +1 -0
  314. package/dist/client/assets/xsl-CtQFsRM5.js +1 -0
  315. package/dist/client/assets/yaml-Buea-lGh.js +1 -0
  316. package/dist/client/assets/zenscript-DVFEvuxE.js +1 -0
  317. package/dist/client/assets/zig-VOosw3JB.js +1 -0
  318. package/dist/client/index.html +2 -2
  319. package/dist/dataset-types-CSjbM_Vz.d.ts +564 -0
  320. package/dist/index.d.ts +3768 -936
  321. package/dist/index.js +3648 -604
  322. package/dist/instance-names-pVQxJbtw.js +12 -0
  323. package/dist/runtime-DCNx7dHI.js +302 -0
  324. package/dist/trace-Dn6Pfcc5.d.ts +200 -0
  325. package/dist/trace-event-ingestor-DI-HkA4Q.js +12759 -0
  326. package/dist/views/datasets/index.d.ts +68 -0
  327. package/dist/views/datasets/index.js +237 -0
  328. package/dist/views/index.d.ts +98 -0
  329. package/dist/views/index.js +156 -0
  330. package/dist/views/react/index.d.ts +55 -0
  331. package/dist/views/react/index.js +246 -0
  332. package/package.json +60 -9
  333. package/dist/client/assets/index-BAk2IWAg.js +0 -144
  334. package/dist/client/assets/index-CHPZsnKo.css +0 -32
  335. package/dist/vercel-ai-sdk-JhQ1efcg.js +0 -1236
@@ -0,0 +1,71 @@
1
+ import { An as TraceWithSpans, V as CheckInfo, i as CheckRun, t as Check } from "../check-BTg6THHB.js";
2
+ import { StandardSchemaV1 } from "@standard-schema/spec";
3
+
4
+ //#region src/checks/index.d.ts
5
+ /** The URI prefix every built-in check's URI starts with. */
6
+ declare const BUILTIN_CHECK_PREFIX = "evalution/checks#";
7
+ /**
8
+ * What the model finally answered: the output of the run's last `LLM` span —
9
+ * text for a chat model, parsed JSON for structured output. `undefined` when
10
+ * the run made no model call.
11
+ */
12
+ declare function finalOutput(trace: TraceWithSpans): unknown;
13
+ /**
14
+ * The final assistant text: {@link finalOutput} when it's text, its JSON when
15
+ * it isn't, and `""` when the run made no model call.
16
+ */
17
+ declare function finalText(trace: TraceWithSpans): string;
18
+ /** One tool call a run made, as its `TOOL` span recorded it. */
19
+ interface ToolCall {
20
+ /** The tool's name. */
21
+ name: string;
22
+ /** What it was called with. */
23
+ input: unknown;
24
+ /** What it returned, if it finished. */
25
+ output?: unknown;
26
+ /** Whether the call failed. */
27
+ error?: string;
28
+ }
29
+ /** Every tool call the run made, oldest first. */
30
+ declare function toolCalls(trace: TraceWithSpans): ToolCall[];
31
+ /** The run's total model cost in dollars, from every `LLM` span that reports one. */
32
+ declare function totalCost(trace: TraceWithSpans): number;
33
+ /** Whether any span in the trace reports a cost. */
34
+ declare function hasCost(trace: TraceWithSpans): boolean;
35
+ /**
36
+ * How long the run took, in ms: from its first span's start to its last
37
+ * span's end. `undefined` while any span is still running.
38
+ */
39
+ declare function traceDuration(trace: TraceWithSpans): number | undefined;
40
+ /** Passes when the final assistant text contains `text`. */
41
+ declare const outputContains: Check<{
42
+ readonly text: StandardSchemaV1<string, string>;
43
+ readonly caseSensitive: StandardSchemaV1<boolean | undefined, boolean | undefined>;
44
+ }>;
45
+ /** Passes when the final output deep-equals `expected`, as text or as JSON. */
46
+ declare const outputEquals: Check<{
47
+ readonly expected: StandardSchemaV1<unknown, unknown>;
48
+ }>;
49
+ /**
50
+ * Passes when a `TOOL` span named `name` exists — exactly `times` of them, if
51
+ * given. For the invariants where the call itself is the point ("it called
52
+ * `success`"), not the world it changed.
53
+ */
54
+ declare const toolCalled: Check<{
55
+ readonly name: StandardSchemaV1<string, string>;
56
+ readonly times: StandardSchemaV1<number | undefined, number | undefined>;
57
+ }>;
58
+ /** Passes when the run's total cost is at most `usd`. */
59
+ declare const maxCost: Check<{
60
+ readonly usd: StandardSchemaV1<number, number>;
61
+ }>;
62
+ /** Passes when the run took at most `ms`. */
63
+ declare const maxDuration: Check<{
64
+ readonly ms: StandardSchemaV1<number, number>;
65
+ }>;
66
+ /** The built-in check `uri` names, or `undefined` when it names none. */
67
+ declare function builtinCheck(uri: string): Check | undefined;
68
+ /** Every built-in, as the check picker lists it. */
69
+ declare function builtinCheckInfos(): CheckInfo[];
70
+ //#endregion
71
+ export { BUILTIN_CHECK_PREFIX, type CheckRun, ToolCall, builtinCheck, builtinCheckInfos, finalOutput, finalText, hasCost, maxCost, maxDuration, outputContains, outputEquals, toolCalled, toolCalls, totalCost, traceDuration };
@@ -0,0 +1,2 @@
1
+ import { a as finalText, c as maxDuration, d as toolCalled, f as toolCalls, i as finalOutput, l as outputContains, m as traceDuration, n as builtinCheck, o as hasCost, p as totalCost, r as builtinCheckInfos, s as maxCost, t as BUILTIN_CHECK_PREFIX, u as outputEquals } from "../checks-Cq97JU-h.js";
2
+ export { BUILTIN_CHECK_PREFIX, builtinCheck, builtinCheckInfos, finalOutput, finalText, hasCost, maxCost, maxDuration, outputContains, outputEquals, toolCalled, toolCalls, totalCost, traceDuration };
@@ -0,0 +1,309 @@
1
+ //#region src/prompt/playground/check.ts
2
+ /**
3
+ * Brand identifying a value produced by {@link check} — a sibling of
4
+ * `RESOURCE_TAG`, so the playground-module loader collects checks the same
5
+ * way it collects resources. A registered symbol, so a check made by one copy
6
+ * of evalution is still recognised by another.
7
+ */
8
+ const CHECK_TAG = Symbol.for("evalution.playground.check");
9
+ /**
10
+ * Declares a check an eval can run against each row's prompt run — "did it
11
+ * create a task called *Set up CI*?" — as a playground export, so it can use
12
+ * the app's own schema and helpers.
13
+ *
14
+ * A check is a resource whose `create` is called once, after the run, and
15
+ * returns a verdict instead of a value. Its `inputs` are a resource's: a
16
+ * resource object is resolved from the run's own lease (the same database
17
+ * the run's tools wrote to), and a Standard Schema is a parameter the eval
18
+ * binds — often to a dataset column holding the expected value. See
19
+ * `specs/evals.md` §B.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * // .evalution/playground/checks.ts
24
+ * import { check } from 'evalution';
25
+ * import { expect } from 'vitest';
26
+ * import { db } from './db.ts';
27
+ *
28
+ * export const createsTask = check({
29
+ * label: 'Creates a task with the expected title',
30
+ * inputs: { db, rootTaskId: z.string(), title: z.string() },
31
+ * async run({ db, rootTaskId, title }) {
32
+ * const tasks = await listTasksUnder(db, rootTaskId);
33
+ * expect(tasks.map(t => t.title)).toContain(title);
34
+ * },
35
+ * });
36
+ * ```
37
+ *
38
+ * @param definition - See {@link CheckDefinition}.
39
+ * @returns The check, to be exported under the name it should be known by.
40
+ */
41
+ function check(definition) {
42
+ return {
43
+ ...definition,
44
+ [CHECK_TAG]: true
45
+ };
46
+ }
47
+ /** Whether `value` was produced by {@link check}. */
48
+ function isCheck(value) {
49
+ return typeof value === "object" && value !== null && value[CHECK_TAG] === true;
50
+ }
51
+ /** The default {@link CheckDefinition.timeoutMs}. */
52
+ const DEFAULT_CHECK_TIMEOUT_MS = 3e4;
53
+ //#endregion
54
+ //#region src/shared/same-json.ts
55
+ /**
56
+ * Comparing JSON values by what they say, not how they're spelled: two
57
+ * objects with the same keys in another order are the same value.
58
+ */
59
+ /** Whether `a` and `b` are the same JSON value, whatever their key order. */
60
+ function sameJson(a, b) {
61
+ if (a === b) return true;
62
+ if (typeof a !== "object" || typeof b !== "object" || !a || !b) return false;
63
+ if (Array.isArray(a) !== Array.isArray(b)) return false;
64
+ const ak = Object.keys(a);
65
+ if (ak.length !== Object.keys(b).length) return false;
66
+ return ak.every((k) => Object.hasOwn(b, k) && sameJson(a[k], b[k]));
67
+ }
68
+ //#endregion
69
+ //#region src/checks/index.ts
70
+ /** The URI prefix every built-in check's URI starts with. */
71
+ const BUILTIN_CHECK_PREFIX = "evalution/checks#";
72
+ /** The trace's `LLM` spans, oldest first. */
73
+ function llmSpans(trace) {
74
+ return trace.spans.filter((s) => s.kind === "LLM" && s.llm).sort((a, b) => a.startTime - b.startTime);
75
+ }
76
+ /**
77
+ * What the model finally answered: the output of the run's last `LLM` span —
78
+ * text for a chat model, parsed JSON for structured output. `undefined` when
79
+ * the run made no model call.
80
+ */
81
+ function finalOutput(trace) {
82
+ return llmSpans(trace).at(-1)?.llm?.output;
83
+ }
84
+ /**
85
+ * The final assistant text: {@link finalOutput} when it's text, its JSON when
86
+ * it isn't, and `""` when the run made no model call.
87
+ */
88
+ function finalText(trace) {
89
+ const output = finalOutput(trace);
90
+ if (output === void 0 || output === null) return "";
91
+ return typeof output === "string" ? output : JSON.stringify(output);
92
+ }
93
+ /** Every tool call the run made, oldest first. */
94
+ function toolCalls(trace) {
95
+ return trace.spans.filter((s) => s.kind === "TOOL").sort((a, b) => a.startTime - b.startTime).map((s) => ({
96
+ name: s.tool?.toolName ?? s.name,
97
+ input: s.tool?.input,
98
+ ...s.tool?.output !== void 0 && { output: s.tool.output },
99
+ ...s.status === "error" && { error: s.errorMessage ?? "failed" }
100
+ }));
101
+ }
102
+ /** The run's total model cost in dollars, from every `LLM` span that reports one. */
103
+ function totalCost(trace) {
104
+ let total = 0;
105
+ for (const span of trace.spans) {
106
+ const cost = span.llm?.cost;
107
+ if (cost) total += cost.prompt + cost.completion;
108
+ }
109
+ return total;
110
+ }
111
+ /** Whether any span in the trace reports a cost. */
112
+ function hasCost(trace) {
113
+ return trace.spans.some((s) => !!s.llm?.cost);
114
+ }
115
+ /**
116
+ * How long the run took, in ms: from its first span's start to its last
117
+ * span's end. `undefined` while any span is still running.
118
+ */
119
+ function traceDuration(trace) {
120
+ if (trace.spans.length === 0) {
121
+ const { startTime, endTime } = trace.trace;
122
+ return endTime === void 0 ? void 0 : endTime - startTime;
123
+ }
124
+ let start = Number.POSITIVE_INFINITY;
125
+ let end = 0;
126
+ for (const span of trace.spans) {
127
+ if (span.endTime === void 0) return void 0;
128
+ start = Math.min(start, span.startTime);
129
+ end = Math.max(end, span.endTime);
130
+ }
131
+ return end - start;
132
+ }
133
+ /**
134
+ * A minimal Standard Schema, so the built-ins declare typed inputs without
135
+ * evalution depending on a validation library.
136
+ */
137
+ function schema(vendorCheck, expected) {
138
+ return { "~standard": {
139
+ version: 1,
140
+ vendor: "evalution",
141
+ validate: (value) => vendorCheck(value) ? { value } : { issues: [{ message: `expected ${expected}` }] }
142
+ } };
143
+ }
144
+ const isString = (v) => typeof v === "string";
145
+ const isNumber = (v) => typeof v === "number" && Number.isFinite(v);
146
+ const optional = (is) => (v) => v === void 0 || v === null || is(v);
147
+ const stringSchema = schema(isString, "a string");
148
+ const numberSchema = schema(isNumber, "a number");
149
+ const optionalNumber = schema(optional(isNumber), "a number");
150
+ const optionalBoolean = schema(optional((v) => typeof v === "boolean"), "true or false");
151
+ const anySchema = schema((_v) => true, "anything");
152
+ /** Throws the error a trace-reading built-in reports when the trace didn't finish arriving. */
153
+ function requireCompleteTrace(run) {
154
+ if (run.traceIncomplete) throw new Error("The trace didn't finish arriving in time, so this check can't read it");
155
+ }
156
+ /** `value` parsed as JSON, or as it is when it isn't JSON text. */
157
+ function parseMaybeJson(value) {
158
+ if (typeof value !== "string") return value;
159
+ try {
160
+ return JSON.parse(value);
161
+ } catch {
162
+ return value;
163
+ }
164
+ }
165
+ /** Passes when the final assistant text contains `text`. */
166
+ const outputContains = check({
167
+ label: "Output contains",
168
+ description: "The final assistant text contains the given text.",
169
+ inputs: {
170
+ text: stringSchema,
171
+ caseSensitive: optionalBoolean
172
+ },
173
+ run: ({ text, caseSensitive }, run) => {
174
+ requireCompleteTrace(run);
175
+ const output = finalText(run.trace);
176
+ return (caseSensitive === false || caseSensitive === void 0 ? output.toLowerCase().includes(text.toLowerCase()) : output.includes(text)) ? { pass: true } : {
177
+ pass: false,
178
+ message: `Output doesn't contain ${JSON.stringify(text)}`,
179
+ details: { actual: output }
180
+ };
181
+ }
182
+ });
183
+ /** Passes when the final output deep-equals `expected`, as text or as JSON. */
184
+ const outputEquals = check({
185
+ label: "Output equals",
186
+ description: "The final output equals the expected value, as text or JSON.",
187
+ inputs: { expected: anySchema },
188
+ run: ({ expected }, run) => {
189
+ requireCompleteTrace(run);
190
+ const output = finalOutput(run.trace);
191
+ return (typeof output === "string" && typeof expected === "string" ? output.trim() === expected.trim() : sameJson(parseMaybeJson(output), parseMaybeJson(expected))) ? { pass: true } : {
192
+ pass: false,
193
+ message: "Output doesn't equal the expected value",
194
+ details: {
195
+ expected,
196
+ actual: output
197
+ }
198
+ };
199
+ }
200
+ });
201
+ /**
202
+ * Passes when a `TOOL` span named `name` exists — exactly `times` of them, if
203
+ * given. For the invariants where the call itself is the point ("it called
204
+ * `success`"), not the world it changed.
205
+ */
206
+ const toolCalled = check({
207
+ label: "Tool called",
208
+ description: "The run called the named tool (exactly `times` times, if set).",
209
+ inputs: {
210
+ name: stringSchema,
211
+ times: optionalNumber
212
+ },
213
+ run: ({ name, times }, run) => {
214
+ requireCompleteTrace(run);
215
+ const count = toolCalls(run.trace).filter((c) => c.name === name).length;
216
+ return (times === void 0 || times === null ? count > 0 : count === times) ? { pass: true } : {
217
+ pass: false,
218
+ message: times === void 0 || times === null ? `'${name}' was never called` : `'${name}' was called ${count} time${count === 1 ? "" : "s"}, not ${times}`,
219
+ details: { calls: count }
220
+ };
221
+ }
222
+ });
223
+ /** Passes when the run's total cost is at most `usd`. */
224
+ const maxCost = check({
225
+ label: "Max cost",
226
+ description: "The run's total model cost is at most this many dollars.",
227
+ inputs: { usd: numberSchema },
228
+ run: ({ usd }, run) => {
229
+ requireCompleteTrace(run);
230
+ if (!hasCost(run.trace)) throw new Error("The trace reports no cost to compare");
231
+ const cost = totalCost(run.trace);
232
+ return cost <= usd ? {
233
+ pass: true,
234
+ details: { cost }
235
+ } : {
236
+ pass: false,
237
+ message: `Cost $${cost.toFixed(4)} exceeds $${usd}`,
238
+ details: { cost }
239
+ };
240
+ }
241
+ });
242
+ /** Passes when the run took at most `ms`. */
243
+ const maxDuration = check({
244
+ label: "Max duration",
245
+ description: "The run took at most this many milliseconds.",
246
+ inputs: { ms: numberSchema },
247
+ run: ({ ms }, run) => {
248
+ requireCompleteTrace(run);
249
+ const duration = traceDuration(run.trace);
250
+ if (duration === void 0) throw new Error("The trace is still running");
251
+ return duration <= ms ? {
252
+ pass: true,
253
+ details: { duration }
254
+ } : {
255
+ pass: false,
256
+ message: `Took ${duration}ms, over ${ms}ms`,
257
+ details: { duration }
258
+ };
259
+ }
260
+ });
261
+ const primitive = (name, syntax, isOptional = false) => ({
262
+ name,
263
+ type: {
264
+ kind: "primitive",
265
+ syntax,
266
+ base: syntax === "unknown" ? "string" : syntax
267
+ },
268
+ optional: isOptional
269
+ });
270
+ /** Every built-in, by export name. */
271
+ const BUILTINS = {
272
+ outputContains: {
273
+ check: outputContains,
274
+ parameters: [primitive("text", "string"), primitive("caseSensitive", "boolean", true)]
275
+ },
276
+ outputEquals: {
277
+ check: outputEquals,
278
+ parameters: [primitive("expected", "unknown")]
279
+ },
280
+ toolCalled: {
281
+ check: toolCalled,
282
+ parameters: [primitive("name", "string"), primitive("times", "number", true)]
283
+ },
284
+ maxCost: {
285
+ check: maxCost,
286
+ parameters: [primitive("usd", "number")]
287
+ },
288
+ maxDuration: {
289
+ check: maxDuration,
290
+ parameters: [primitive("ms", "number")]
291
+ }
292
+ };
293
+ /** The built-in check `uri` names, or `undefined` when it names none. */
294
+ function builtinCheck(uri) {
295
+ if (!uri.startsWith("evalution/checks#")) return void 0;
296
+ return BUILTINS[uri.slice(17)]?.check;
297
+ }
298
+ /** Every built-in, as the check picker lists it. */
299
+ function builtinCheckInfos() {
300
+ return Object.entries(BUILTINS).map(([name, { check: c, parameters }]) => ({
301
+ uri: `${BUILTIN_CHECK_PREFIX}${name}`,
302
+ label: c.label ?? name,
303
+ group: "Built-in",
304
+ ...c.description && { description: c.description },
305
+ parameters
306
+ }));
307
+ }
308
+ //#endregion
309
+ export { isCheck as _, finalText as a, maxDuration as c, toolCalled as d, toolCalls as f, check as g, DEFAULT_CHECK_TIMEOUT_MS as h, finalOutput as i, outputContains as l, traceDuration as m, builtinCheck as n, hasCost as o, totalCost as p, builtinCheckInfos as r, maxCost as s, BUILTIN_CHECK_PREFIX as t, outputEquals as u };