niceeval 0.16.2 → 0.17.0

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 (258) hide show
  1. package/dist/cli/bootstrap.cjs +7 -1
  2. package/dist/cli/bootstrap.cjs.map +1 -1
  3. package/dist/cli/project-configuration.cjs +8 -11
  4. package/dist/cli/project-configuration.cjs.map +1 -1
  5. package/dist/expect/index.cjs.map +1 -1
  6. package/dist/expect/index.d.cts +1 -0
  7. package/dist/expect/index.d.mts +1 -0
  8. package/dist/expect/index.d.ts +1 -0
  9. package/dist/experiment/host/cli/contribution.cjs +6 -11
  10. package/dist/experiment/host/cli/contribution.cjs.map +1 -1
  11. package/dist/experiment/host/cli/contribution.d.cts +0 -16
  12. package/dist/experiment/host/cli/contribution.d.mts +0 -16
  13. package/dist/experiment/host/cli/contribution.d.ts +0 -16
  14. package/dist/experiment/host/operations.cjs +3 -3
  15. package/dist/experiment/host/operations.cjs.map +1 -1
  16. package/dist/experiment/host/types.cjs.map +1 -1
  17. package/dist/experiment/host/types.d.cts +0 -4
  18. package/dist/experiment/host/types.d.mts +0 -4
  19. package/dist/experiment/host/types.d.ts +0 -4
  20. package/dist/fresh-import.cjs +2 -2
  21. package/dist/fresh-import.cjs.map +1 -1
  22. package/dist/fresh-import.d.cts +3 -3
  23. package/dist/fresh-import.d.mts +3 -3
  24. package/dist/fresh-import.d.ts +3 -3
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +1 -0
  27. package/dist/index.d.mts +1 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/inspection/codec.cjs.map +1 -1
  30. package/dist/inspection/codec.d.cts +1 -1
  31. package/dist/inspection/codec.d.mts +1 -1
  32. package/dist/inspection/codec.d.ts +1 -1
  33. package/dist/inspection/facts.cjs +66 -9
  34. package/dist/inspection/facts.cjs.map +1 -1
  35. package/dist/inspection/facts.d.cts +4 -0
  36. package/dist/inspection/facts.d.mts +4 -0
  37. package/dist/inspection/facts.d.ts +4 -0
  38. package/dist/inspection/facts.js +4 -2
  39. package/dist/inspection/index.cjs +1 -3
  40. package/dist/inspection/index.cjs.map +1 -1
  41. package/dist/inspection/index.d.cts +1 -1
  42. package/dist/inspection/index.d.mts +1 -1
  43. package/dist/inspection/index.d.ts +1 -1
  44. package/dist/inspection/index.js +44 -48
  45. package/dist/inspection/limits.cjs +3 -1
  46. package/dist/inspection/limits.cjs.map +1 -1
  47. package/dist/inspection/limits.d.cts +2 -0
  48. package/dist/inspection/limits.d.mts +2 -0
  49. package/dist/inspection/limits.d.ts +2 -0
  50. package/dist/inspection/limits.js +6 -4
  51. package/dist/inspection/project-source.cjs +4 -1
  52. package/dist/inspection/project-source.cjs.map +1 -1
  53. package/dist/inspection/protocol.cjs +10 -18
  54. package/dist/inspection/protocol.cjs.map +1 -1
  55. package/dist/inspection/protocol.d.cts +111 -173
  56. package/dist/inspection/protocol.d.mts +111 -173
  57. package/dist/inspection/protocol.d.ts +111 -173
  58. package/dist/inspection/public.mjs +73 -109
  59. package/dist/inspection/results.cjs +12 -48
  60. package/dist/inspection/results.cjs.map +1 -1
  61. package/dist/inspection/results.d.cts +124 -122
  62. package/dist/inspection/results.d.mts +124 -122
  63. package/dist/inspection/results.d.ts +124 -122
  64. package/dist/inspection/results.js +16 -20
  65. package/dist/inspection/select.cjs +80 -117
  66. package/dist/inspection/select.cjs.map +1 -1
  67. package/dist/inspection/source.cjs +14 -15
  68. package/dist/inspection/source.cjs.map +1 -1
  69. package/dist/inspection/source.d.cts +6 -3
  70. package/dist/inspection/source.d.mts +6 -3
  71. package/dist/inspection/source.d.ts +6 -3
  72. package/dist/inspection/trace.cjs +1 -1
  73. package/dist/inspection/trace.cjs.map +1 -1
  74. package/dist/load-config.cjs +17 -11
  75. package/dist/load-config.cjs.map +1 -1
  76. package/dist/load-config.d.cts +3 -2
  77. package/dist/load-config.d.mts +3 -2
  78. package/dist/load-config.d.ts +3 -2
  79. package/dist/o11y/adapter-usage-projection.cjs +5 -1
  80. package/dist/o11y/adapter-usage-projection.cjs.map +1 -1
  81. package/dist/o11y/adapter-usage-projection.d.cts +109 -1
  82. package/dist/o11y/adapter-usage-projection.d.mts +109 -1
  83. package/dist/o11y/adapter-usage-projection.d.ts +109 -1
  84. package/dist/o11y/cache-read.cjs +113 -0
  85. package/dist/o11y/cache-read.cjs.map +1 -0
  86. package/dist/o11y/cache-read.d.cts +80 -0
  87. package/dist/o11y/cache-read.d.mts +80 -0
  88. package/dist/o11y/cache-read.d.ts +80 -0
  89. package/dist/o11y/cache-read.js +8 -0
  90. package/dist/o11y/cache-read.js.map +1 -0
  91. package/dist/o11y/eval-usage.cjs +4 -1
  92. package/dist/o11y/eval-usage.cjs.map +1 -1
  93. package/dist/o11y/eval-usage.d.cts +4 -1
  94. package/dist/o11y/eval-usage.d.mts +4 -1
  95. package/dist/o11y/eval-usage.d.ts +4 -1
  96. package/dist/record/host/sqlite-host.cjs +188 -53
  97. package/dist/record/host/sqlite-host.cjs.map +1 -1
  98. package/dist/record/host/sqlite-host.d.cts +37 -1
  99. package/dist/record/host/sqlite-host.d.mts +37 -1
  100. package/dist/record/host/sqlite-host.d.ts +37 -1
  101. package/dist/record/host/sqlite-host.js +16 -8
  102. package/dist/record/maintenance/runtime.cjs +3 -3
  103. package/dist/record/maintenance/runtime.cjs.map +1 -1
  104. package/dist/record/sqlite/admission-repository.cjs +18 -18
  105. package/dist/record/sqlite/admission-repository.cjs.map +1 -1
  106. package/dist/record/sqlite/case-repository.cjs +6 -6
  107. package/dist/record/sqlite/case-repository.cjs.map +1 -1
  108. package/dist/record/sqlite/coordination-repository.cjs +25 -25
  109. package/dist/record/sqlite/coordination-repository.cjs.map +1 -1
  110. package/dist/record/sqlite/current-schema.cjs +115 -111
  111. package/dist/record/sqlite/current-schema.cjs.map +1 -1
  112. package/dist/record/sqlite/current-schema.d.cts +3 -3
  113. package/dist/record/sqlite/current-schema.d.mts +3 -3
  114. package/dist/record/sqlite/current-schema.d.ts +3 -3
  115. package/dist/record/sqlite/database.cjs +56 -53
  116. package/dist/record/sqlite/database.cjs.map +1 -1
  117. package/dist/record/sqlite/index.cjs +3 -1
  118. package/dist/record/sqlite/index.cjs.map +1 -1
  119. package/dist/record/sqlite/index.d.cts +5 -2
  120. package/dist/record/sqlite/index.d.mts +5 -2
  121. package/dist/record/sqlite/index.d.ts +5 -2
  122. package/dist/record/sqlite/legacy-schema-018.cjs +443 -0
  123. package/dist/record/sqlite/legacy-schema-018.cjs.map +1 -0
  124. package/dist/record/sqlite/legacy-schema-018.d.cts +6 -0
  125. package/dist/record/sqlite/legacy-schema-018.d.mts +6 -0
  126. package/dist/record/sqlite/legacy-schema-018.d.ts +6 -0
  127. package/dist/record/sqlite/legacy-schema-018.js +6 -0
  128. package/dist/record/sqlite/legacy-schema-018.js.map +1 -0
  129. package/dist/record/sqlite/migration.cjs +105 -46
  130. package/dist/record/sqlite/migration.cjs.map +1 -1
  131. package/dist/record/sqlite/migration.d.cts +2 -1
  132. package/dist/record/sqlite/migration.d.mts +2 -1
  133. package/dist/record/sqlite/migration.d.ts +2 -1
  134. package/dist/record/sqlite/portable-capture.cjs +13 -13
  135. package/dist/record/sqlite/portable-capture.cjs.map +1 -1
  136. package/dist/record/sqlite/registry-repository.cjs +22 -22
  137. package/dist/record/sqlite/registry-repository.cjs.map +1 -1
  138. package/dist/record/sqlite/schema.cjs +10 -2
  139. package/dist/record/sqlite/schema.cjs.map +1 -1
  140. package/dist/record/sqlite/schema.d.cts +4 -1
  141. package/dist/record/sqlite/schema.d.mts +4 -1
  142. package/dist/record/sqlite/schema.d.ts +4 -1
  143. package/dist/record/sqlite/schema.js +20 -14
  144. package/dist/record/sqlite/storage-worker.cjs +1 -1
  145. package/dist/record/sqlite/storage-worker.cjs.map +1 -1
  146. package/dist/record/sqlite/storage.cjs +316 -232
  147. package/dist/record/sqlite/storage.cjs.map +1 -1
  148. package/dist/record/sqlite/storage.d.cts +10 -2
  149. package/dist/record/sqlite/storage.d.mts +10 -2
  150. package/dist/record/sqlite/storage.d.ts +10 -2
  151. package/dist/record/sqlite/storage.js +54 -50
  152. package/dist/record/sqlite/types.cjs +1 -1
  153. package/dist/record/sqlite/types.cjs.map +1 -1
  154. package/dist/record/sqlite/types.d.cts +13 -1
  155. package/dist/record/sqlite/types.d.mts +13 -1
  156. package/dist/record/sqlite/types.d.ts +13 -1
  157. package/dist/run/cli/contribution.cjs +17 -12
  158. package/dist/run/cli/contribution.cjs.map +1 -1
  159. package/dist/run/host/lifecycle-adapter.cjs +1 -1
  160. package/dist/run/host/lifecycle-adapter.cjs.map +1 -1
  161. package/dist/run/storage/owner-identity.cjs +78 -16
  162. package/dist/run/storage/owner-identity.cjs.map +1 -1
  163. package/dist/run/storage/owner-identity.d.cts +2 -1
  164. package/dist/run/storage/owner-identity.d.mts +2 -1
  165. package/dist/run/storage/owner-identity.d.ts +2 -1
  166. package/dist/run/storage/sqlite.cjs +55 -55
  167. package/dist/run/storage/sqlite.cjs.map +1 -1
  168. package/dist/runner/accept.cjs +12 -42
  169. package/dist/runner/accept.cjs.map +1 -1
  170. package/dist/runner/accept.d.cts +2 -3
  171. package/dist/runner/accept.d.mts +2 -3
  172. package/dist/runner/accept.d.ts +2 -3
  173. package/dist/runner/adapter-usage.cjs +2 -2
  174. package/dist/runner/adapter-usage.cjs.map +1 -1
  175. package/dist/runner/adoption.cjs +14 -26
  176. package/dist/runner/adoption.cjs.map +1 -1
  177. package/dist/runner/adoption.d.cts +5 -13
  178. package/dist/runner/adoption.d.mts +5 -13
  179. package/dist/runner/adoption.d.ts +5 -13
  180. package/dist/runner/adoption.js +2 -4
  181. package/dist/runner/record.cjs +24 -18
  182. package/dist/runner/record.cjs.map +1 -1
  183. package/dist/runner/rename-experiment.cjs +5 -7
  184. package/dist/runner/rename-experiment.cjs.map +1 -1
  185. package/dist/runner/reuse-plan.cjs +37 -18
  186. package/dist/runner/reuse-plan.cjs.map +1 -1
  187. package/dist/runner/reuse-plan.d.cts +4 -1
  188. package/dist/runner/reuse-plan.d.mts +4 -1
  189. package/dist/runner/reuse-plan.d.ts +4 -1
  190. package/dist/runner/setup-prefix-plan.cjs +17 -12
  191. package/dist/runner/setup-prefix-plan.cjs.map +1 -1
  192. package/dist/runner/setup-prefix-plan.d.cts +0 -2
  193. package/dist/runner/setup-prefix-plan.d.mts +0 -2
  194. package/dist/runner/setup-prefix-plan.d.ts +0 -2
  195. package/dist/runner/setup-prefix-plan.js +8 -12
  196. package/dist/sandbox/backend.cjs +10 -1
  197. package/dist/sandbox/backend.cjs.map +1 -1
  198. package/dist/sandbox/backend.d.cts +16 -8
  199. package/dist/sandbox/backend.d.mts +16 -8
  200. package/dist/sandbox/backend.d.ts +16 -8
  201. package/dist/sandbox/backend.js +28 -26
  202. package/dist/sandbox/docker.cjs +7 -1
  203. package/dist/sandbox/docker.cjs.map +1 -1
  204. package/dist/sandbox/e2b-cache-repository.cjs +13 -3
  205. package/dist/sandbox/e2b-cache-repository.cjs.map +1 -1
  206. package/dist/sandbox/e2b-cache-repository.d.cts +3 -0
  207. package/dist/sandbox/e2b-cache-repository.d.mts +3 -0
  208. package/dist/sandbox/e2b-cache-repository.d.ts +3 -0
  209. package/dist/sandbox/e2b-cache-repository.js +16 -12
  210. package/dist/sandbox/e2b.cjs +2 -2
  211. package/dist/sandbox/e2b.cjs.map +1 -1
  212. package/dist/sandbox/incus/materialize.cjs +1 -1
  213. package/dist/sandbox/incus/materialize.cjs.map +1 -1
  214. package/dist/show/contribution.cjs +3 -3
  215. package/dist/show/contribution.cjs.map +1 -1
  216. package/dist/show/model.cjs +14 -13
  217. package/dist/show/model.cjs.map +1 -1
  218. package/dist/show/model.d.cts +7 -7
  219. package/dist/show/model.d.mts +7 -7
  220. package/dist/show/model.d.ts +7 -7
  221. package/dist/show/render.cjs +14 -0
  222. package/dist/show/render.cjs.map +1 -1
  223. package/dist/user-database/storage-worker.cjs +13 -3
  224. package/dist/user-database/storage-worker.cjs.map +1 -1
  225. package/dist/view/app-dist/.vite/manifest.json +2 -2
  226. package/dist/view/app-dist/assets/{index-CmVoXbwG.js → index-B3ijZRph.js} +17 -17
  227. package/dist/view/app-dist/assets/{quality-cost-scatter-BuLISaH4.js → quality-cost-scatter-B--DfJ9s.js} +1 -1
  228. package/dist/view/app-dist/index.html +1 -1
  229. package/dist/view/application-runtime.cjs +8 -0
  230. package/dist/view/application-runtime.cjs.map +1 -0
  231. package/dist/view/application-runtime.d.cts +9 -0
  232. package/dist/view/application-runtime.d.mts +9 -0
  233. package/dist/view/application-runtime.d.ts +9 -0
  234. package/dist/view/application-runtime.js +6 -0
  235. package/dist/view/application-runtime.js.map +1 -0
  236. package/dist/view/cli/contribution.cjs +5 -2
  237. package/dist/view/cli/contribution.cjs.map +1 -1
  238. package/dist/view/cli/contribution.d.cts +2 -1
  239. package/dist/view/cli/contribution.d.mts +2 -1
  240. package/dist/view/cli/contribution.d.ts +2 -1
  241. package/dist/view/function-runtime.mjs +1019 -456
  242. package/dist/view/http-protocol.d.cts +1 -9
  243. package/dist/view/http-protocol.d.mts +1 -9
  244. package/dist/view/http-protocol.d.ts +1 -9
  245. package/dist/view/inspection-host.cjs +39 -30
  246. package/dist/view/inspection-host.cjs.map +1 -1
  247. package/dist/view/inspection-host.d.cts +7545 -2
  248. package/dist/view/inspection-host.d.mts +7545 -2
  249. package/dist/view/inspection-host.d.ts +7545 -2
  250. package/dist/view/server.cjs +8 -5
  251. package/dist/view/server.cjs.map +1 -1
  252. package/dist/view/server.d.cts +4 -2
  253. package/dist/view/server.d.mts +4 -2
  254. package/dist/view/server.d.ts +4 -2
  255. package/docs-site/zh/reference/cli.mdx +1 -2
  256. package/docs-site/zh/tutorials/control-run-cost.mdx +22 -0
  257. package/docs-site/zh/tutorials/niceeval-taste-application.mdx +21 -0
  258. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InspectionTraceResultSchema = exports.InspectionTraceDetailResultSchema = exports.InspectionSourcesResultSchema = exports.InspectionScoredValueSchema = exports.InspectionRunValueSchema = exports.InspectionRunSummaryResultSchema = exports.InspectionRunOverviewResultSchema = exports.InspectionRunListResultSchema = exports.InspectionRunResultSchema = exports.InspectionOverviewResultSchema = exports.InspectionExperimentResultSchema = exports.InspectionAttemptUsageResultSchema = exports.InspectionAttemptTimingResultSchema = exports.InspectionAttemptResultSchema = exports.InspectionAttemptDiffResultSchema = exports.InspectionSourceError = exports.InspectionIntegrityError = exports.operationalInspectionSource = exports.externalInspectionSource = exports.openHostOwnedInspectionSource = exports.openInspectionSource = exports.InspectionOperationError = exports.selectInspectionOperation = exports.inspectionProtocolRegistry = exports.decodeInspectionDocument = exports.InspectionSuccessDocumentSchema = exports.InspectionFailureDocumentSchema = exports.InspectionExplanationDocumentSchema = exports.InspectionDiscoveryDocumentSchema = exports.InspectionDocumentSchema = exports.decodeInspectionOperation = exports.readScoreMatchAudit = exports.canonicalJsonValue = exports.canonicalInspectionJson = exports.decodeInspectionRequest = exports.closeInspectionJson = exports.QUERY_PROTOCOL = exports.INSPECTION_OPERATION_IDS = void 0;
3
+ exports.InspectionTraceResultSchema = exports.InspectionTraceDetailResultSchema = exports.InspectionSourcesResultSchema = exports.InspectionScoredValueSchema = exports.InspectionRunValueSchema = exports.InspectionRunListResultSchema = exports.InspectionRunResultSchema = exports.InspectionOverviewResultSchema = exports.InspectionExperimentResultSchema = exports.InspectionAttemptUsageResultSchema = exports.InspectionAttemptTimingResultSchema = exports.InspectionAttemptResultSchema = exports.InspectionAttemptDiffResultSchema = exports.InspectionSourceError = exports.InspectionIntegrityError = exports.operationalInspectionSource = exports.externalInspectionSource = exports.openHostOwnedInspectionSource = exports.openInspectionSource = exports.InspectionOperationError = exports.selectInspectionOperation = exports.inspectionProtocolRegistry = exports.decodeInspectionDocument = exports.InspectionSuccessDocumentSchema = exports.InspectionFailureDocumentSchema = exports.InspectionExplanationDocumentSchema = exports.InspectionDiscoveryDocumentSchema = exports.InspectionDocumentSchema = exports.decodeInspectionOperation = exports.readScoreMatchAudit = exports.canonicalJsonValue = exports.canonicalInspectionJson = exports.decodeInspectionRequest = exports.closeInspectionJson = exports.QUERY_PROTOCOL = exports.INSPECTION_OPERATION_IDS = void 0;
4
4
  var codec_ts_1 = require("./codec.cjs");
5
5
  Object.defineProperty(exports, "INSPECTION_OPERATION_IDS", { enumerable: true, get: function () { return codec_ts_1.INSPECTION_OPERATION_IDS; } });
6
6
  Object.defineProperty(exports, "QUERY_PROTOCOL", { enumerable: true, get: function () { return codec_ts_1.QUERY_PROTOCOL; } });
@@ -40,8 +40,6 @@ Object.defineProperty(exports, "InspectionExperimentResultSchema", { enumerable:
40
40
  Object.defineProperty(exports, "InspectionOverviewResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionOverviewResultSchema; } });
41
41
  Object.defineProperty(exports, "InspectionRunResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionRunResultSchema; } });
42
42
  Object.defineProperty(exports, "InspectionRunListResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionRunListResultSchema; } });
43
- Object.defineProperty(exports, "InspectionRunOverviewResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionRunOverviewResultSchema; } });
44
- Object.defineProperty(exports, "InspectionRunSummaryResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionRunSummaryResultSchema; } });
45
43
  Object.defineProperty(exports, "InspectionRunValueSchema", { enumerable: true, get: function () { return results_ts_1.InspectionRunValueSchema; } });
46
44
  Object.defineProperty(exports, "InspectionScoredValueSchema", { enumerable: true, get: function () { return results_ts_1.InspectionScoredValueSchema; } });
47
45
  Object.defineProperty(exports, "InspectionSourcesResultSchema", { enumerable: true, get: function () { return results_ts_1.InspectionSourcesResultSchema; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,uCAAgT;AAAvS,oHAAA,wBAAwB,OAAA;AAAE,0GAAA,cAAc,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAC/F,+CAA6E;AAApE,uHAAA,uBAAuB,OAAA;AAAE,kHAAA,kBAAkB,OAAA;AACpD,2EAAwN;AAA/M,2HAAA,mBAAmB,OAAA;AAC5B,uCAAqN;AAA5M,qHAAA,yBAAyB,OAAA;AAClC,6CAAqiB;AAA5hB,uHAAA,wBAAwB,OAAA;AAAE,gIAAA,iCAAiC,OAAA;AAAE,kIAAA,mCAAmC,OAAA;AAAE,8HAAA,+BAA+B,OAAA;AAAE,8HAAA,+BAA+B,OAAA;AAAE,uHAAA,wBAAwB,OAAA;AAAE,yHAAA,0BAA0B,OAAA;AACjO,yCAAmF;AAA1E,sHAAA,yBAAyB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAC5D,yCAA6O;AAApO,iHAAA,oBAAoB,OAAA;AAAE,0HAAA,6BAA6B,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAAE,wHAAA,2BAA2B,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AACpK,2CAA4gD;AAAngD,+HAAA,iCAAiC,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,iIAAA,mCAAmC,OAAA;AAAE,gIAAA,kCAAkC,OAAA;AAAE,8HAAA,gCAAgC,OAAA;AAAE,4HAAA,8BAA8B,OAAA;AAAE,uHAAA,yBAAyB,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,+HAAA,iCAAiC,OAAA;AAAE,8HAAA,gCAAgC,OAAA;AAAE,sHAAA,wBAAwB,OAAA;AAAE,yHAAA,2BAA2B,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,+HAAA,iCAAiC,OAAA;AAAE,yHAAA,2BAA2B,OAAA","sourcesContent":["export { INSPECTION_OPERATION_IDS, QUERY_PROTOCOL, closeInspectionJson, decodeInspectionRequest, type InspectionCodecError, type InspectionFailureCode, type InspectionJson, type InspectionOperation, type InspectionOperationId, type InspectionRequest, type InspectionSourceProvenance, } from \"./codec.ts\";\nexport { canonicalInspectionJson, canonicalJsonValue } from \"./canonical.ts\";\nexport { readScoreMatchAudit, type ScoreMatchAudit, type ScoreMatchAuditV3, type ScoreMatchAuditImageContent, type ScoreMatchAuditEnvelope, type ScoreMatchAuditReadResult, } from \"../assertions/score-match-audit.ts\";\nexport { decodeInspectionOperation, type InspectionOperationDecodeError, type InspectionQuery, type InspectionQueryError, type InspectionQueryProtocolError, type InspectionQuerySelectionError, } from \"./query.ts\";\nexport { InspectionDocumentSchema, InspectionDiscoveryDocumentSchema, InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema, InspectionSuccessDocumentSchema, decodeInspectionDocument, inspectionProtocolRegistry, type InspectionDiscoveryDocument, type InspectionDocument, type InspectionExplanationDocument, type InspectionExplanationDocumentFor, type InspectionFailureDocument, type InspectionOperationFor, type InspectionProtocolDecodeResult, type InspectionSuccessDocument, type InspectionSuccessDocumentFor, } from \"./protocol.ts\";\nexport { selectInspectionOperation, InspectionOperationError, } from \"./select.ts\";\nexport { openInspectionSource, openHostOwnedInspectionSource, externalInspectionSource, operationalInspectionSource, InspectionIntegrityError, InspectionSourceError, type InspectionFactSource, type InspectionSource, } from \"./source.ts\";\nexport { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunOverviewResultSchema, InspectionRunSummaryResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunOverviewDocument, type InspectionRunOverviewResult, type InspectionRunResult, type InspectionRunSummaryDocument, type InspectionRunSummaryResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from \"./results.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,uCAAgT;AAAvS,oHAAA,wBAAwB,OAAA;AAAE,0GAAA,cAAc,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAC/F,+CAA6E;AAApE,uHAAA,uBAAuB,OAAA;AAAE,kHAAA,kBAAkB,OAAA;AACpD,2EAAwN;AAA/M,2HAAA,mBAAmB,OAAA;AAC5B,uCAAqN;AAA5M,qHAAA,yBAAyB,OAAA;AAClC,6CAAqiB;AAA5hB,uHAAA,wBAAwB,OAAA;AAAE,gIAAA,iCAAiC,OAAA;AAAE,kIAAA,mCAAmC,OAAA;AAAE,8HAAA,+BAA+B,OAAA;AAAE,8HAAA,+BAA+B,OAAA;AAAE,uHAAA,wBAAwB,OAAA;AAAE,yHAAA,0BAA0B,OAAA;AACjO,yCAAmF;AAA1E,sHAAA,yBAAyB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAC5D,yCAA6O;AAApO,iHAAA,oBAAoB,OAAA;AAAE,0HAAA,6BAA6B,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAAE,wHAAA,2BAA2B,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AACpK,2CAA6zC;AAApzC,+HAAA,iCAAiC,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,iIAAA,mCAAmC,OAAA;AAAE,gIAAA,kCAAkC,OAAA;AAAE,8HAAA,gCAAgC,OAAA;AAAE,4HAAA,8BAA8B,OAAA;AAAE,uHAAA,yBAAyB,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,sHAAA,wBAAwB,OAAA;AAAE,yHAAA,2BAA2B,OAAA;AAAE,2HAAA,6BAA6B,OAAA;AAAE,+HAAA,iCAAiC,OAAA;AAAE,yHAAA,2BAA2B,OAAA","sourcesContent":["export { INSPECTION_OPERATION_IDS, QUERY_PROTOCOL, closeInspectionJson, decodeInspectionRequest, type InspectionCodecError, type InspectionFailureCode, type InspectionJson, type InspectionOperation, type InspectionOperationId, type InspectionRequest, type InspectionSourceProvenance, } from \"./codec.ts\";\nexport { canonicalInspectionJson, canonicalJsonValue } from \"./canonical.ts\";\nexport { readScoreMatchAudit, type ScoreMatchAudit, type ScoreMatchAuditV3, type ScoreMatchAuditImageContent, type ScoreMatchAuditEnvelope, type ScoreMatchAuditReadResult, } from \"../assertions/score-match-audit.ts\";\nexport { decodeInspectionOperation, type InspectionOperationDecodeError, type InspectionQuery, type InspectionQueryError, type InspectionQueryProtocolError, type InspectionQuerySelectionError, } from \"./query.ts\";\nexport { InspectionDocumentSchema, InspectionDiscoveryDocumentSchema, InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema, InspectionSuccessDocumentSchema, decodeInspectionDocument, inspectionProtocolRegistry, type InspectionDiscoveryDocument, type InspectionDocument, type InspectionExplanationDocument, type InspectionExplanationDocumentFor, type InspectionFailureDocument, type InspectionOperationFor, type InspectionProtocolDecodeResult, type InspectionSuccessDocument, type InspectionSuccessDocumentFor, } from \"./protocol.ts\";\nexport { selectInspectionOperation, InspectionOperationError, } from \"./select.ts\";\nexport { openInspectionSource, openHostOwnedInspectionSource, externalInspectionSource, operationalInspectionSource, InspectionIntegrityError, InspectionSourceError, type InspectionFactSource, type InspectionSource, } from \"./source.ts\";\nexport { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from \"./results.ts\";\n"]}
@@ -5,4 +5,4 @@ export { decodeInspectionOperation, type InspectionOperationDecodeError, type In
5
5
  export { InspectionDocumentSchema, InspectionDiscoveryDocumentSchema, InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema, InspectionSuccessDocumentSchema, decodeInspectionDocument, inspectionProtocolRegistry, type InspectionDiscoveryDocument, type InspectionDocument, type InspectionExplanationDocument, type InspectionExplanationDocumentFor, type InspectionFailureDocument, type InspectionOperationFor, type InspectionProtocolDecodeResult, type InspectionSuccessDocument, type InspectionSuccessDocumentFor, } from "./protocol.cjs";
6
6
  export { selectInspectionOperation, InspectionOperationError, } from "./select.cjs";
7
7
  export { openInspectionSource, openHostOwnedInspectionSource, externalInspectionSource, operationalInspectionSource, InspectionIntegrityError, InspectionSourceError, type InspectionFactSource, type InspectionSource, } from "./source.cjs";
8
- export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunOverviewResultSchema, InspectionRunSummaryResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunOverviewDocument, type InspectionRunOverviewResult, type InspectionRunResult, type InspectionRunSummaryDocument, type InspectionRunSummaryResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.cjs";
8
+ export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.cjs";
@@ -5,4 +5,4 @@ export { decodeInspectionOperation, type InspectionOperationDecodeError, type In
5
5
  export { InspectionDocumentSchema, InspectionDiscoveryDocumentSchema, InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema, InspectionSuccessDocumentSchema, decodeInspectionDocument, inspectionProtocolRegistry, type InspectionDiscoveryDocument, type InspectionDocument, type InspectionExplanationDocument, type InspectionExplanationDocumentFor, type InspectionFailureDocument, type InspectionOperationFor, type InspectionProtocolDecodeResult, type InspectionSuccessDocument, type InspectionSuccessDocumentFor, } from "./protocol.mjs";
6
6
  export { selectInspectionOperation, InspectionOperationError, } from "./select.mjs";
7
7
  export { openInspectionSource, openHostOwnedInspectionSource, externalInspectionSource, operationalInspectionSource, InspectionIntegrityError, InspectionSourceError, type InspectionFactSource, type InspectionSource, } from "./source.mjs";
8
- export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunOverviewResultSchema, InspectionRunSummaryResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunOverviewDocument, type InspectionRunOverviewResult, type InspectionRunResult, type InspectionRunSummaryDocument, type InspectionRunSummaryResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.mjs";
8
+ export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.mjs";
@@ -5,4 +5,4 @@ export { decodeInspectionOperation, type InspectionOperationDecodeError, type In
5
5
  export { InspectionDocumentSchema, InspectionDiscoveryDocumentSchema, InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema, InspectionSuccessDocumentSchema, decodeInspectionDocument, inspectionProtocolRegistry, type InspectionDiscoveryDocument, type InspectionDocument, type InspectionExplanationDocument, type InspectionExplanationDocumentFor, type InspectionFailureDocument, type InspectionOperationFor, type InspectionProtocolDecodeResult, type InspectionSuccessDocument, type InspectionSuccessDocumentFor, } from "./protocol.js";
6
6
  export { selectInspectionOperation, InspectionOperationError, } from "./select.js";
7
7
  export { openInspectionSource, openHostOwnedInspectionSource, externalInspectionSource, operationalInspectionSource, InspectionIntegrityError, InspectionSourceError, type InspectionFactSource, type InspectionSource, } from "./source.js";
8
- export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunOverviewResultSchema, InspectionRunSummaryResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunOverviewDocument, type InspectionRunOverviewResult, type InspectionRunResult, type InspectionRunSummaryDocument, type InspectionRunSummaryResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.js";
8
+ export { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionRunValueSchema, InspectionScoredValueSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, type InspectionAttemptDiffDocument, type InspectionAttemptDiffResult, type InspectionAttemptDocument, type InspectionAttemptResult, type InspectionAttemptSourcesDocument, type InspectionAttemptTimingDocument, type InspectionAttemptTimingResult, type InspectionAttemptTraceDetailDocument, type InspectionAttemptTraceDocument, type InspectionAttemptUsageDocument, type InspectionAttemptUsageResult, type InspectionExperimentDocument, type InspectionExperimentResult, type InspectionOverviewDocument, type InspectionOverviewResult, type InspectionResultByOperation, type InspectionResultDocumentByOperation, type InspectionResultMetadata, type InspectionRunDocument, type InspectionRunListDocument, type InspectionRunListResult, type InspectionRunResult, type InspectionRunValue, type InspectionScoredValue, type InspectionSourcesResult, type InspectionTraceDetailResult, type InspectionTraceResult, } from "./results.js";
@@ -29,52 +29,48 @@ const __niceevalExport12 = __niceevalCanonical["InspectionOverviewResultSchema"]
29
29
  export { __niceevalExport12 as InspectionOverviewResultSchema };
30
30
  const __niceevalExport13 = __niceevalCanonical["InspectionRunListResultSchema"];
31
31
  export { __niceevalExport13 as InspectionRunListResultSchema };
32
- const __niceevalExport14 = __niceevalCanonical["InspectionRunOverviewResultSchema"];
33
- export { __niceevalExport14 as InspectionRunOverviewResultSchema };
34
- const __niceevalExport15 = __niceevalCanonical["InspectionRunResultSchema"];
35
- export { __niceevalExport15 as InspectionRunResultSchema };
36
- const __niceevalExport16 = __niceevalCanonical["InspectionRunSummaryResultSchema"];
37
- export { __niceevalExport16 as InspectionRunSummaryResultSchema };
38
- const __niceevalExport17 = __niceevalCanonical["InspectionRunValueSchema"];
39
- export { __niceevalExport17 as InspectionRunValueSchema };
40
- const __niceevalExport18 = __niceevalCanonical["InspectionScoredValueSchema"];
41
- export { __niceevalExport18 as InspectionScoredValueSchema };
42
- const __niceevalExport19 = __niceevalCanonical["InspectionSourceError"];
43
- export { __niceevalExport19 as InspectionSourceError };
44
- const __niceevalExport20 = __niceevalCanonical["InspectionSourcesResultSchema"];
45
- export { __niceevalExport20 as InspectionSourcesResultSchema };
46
- const __niceevalExport21 = __niceevalCanonical["InspectionSuccessDocumentSchema"];
47
- export { __niceevalExport21 as InspectionSuccessDocumentSchema };
48
- const __niceevalExport22 = __niceevalCanonical["InspectionTraceDetailResultSchema"];
49
- export { __niceevalExport22 as InspectionTraceDetailResultSchema };
50
- const __niceevalExport23 = __niceevalCanonical["InspectionTraceResultSchema"];
51
- export { __niceevalExport23 as InspectionTraceResultSchema };
52
- const __niceevalExport24 = __niceevalCanonical["QUERY_PROTOCOL"];
53
- export { __niceevalExport24 as QUERY_PROTOCOL };
54
- const __niceevalExport25 = __niceevalCanonical["canonicalInspectionJson"];
55
- export { __niceevalExport25 as canonicalInspectionJson };
56
- const __niceevalExport26 = __niceevalCanonical["canonicalJsonValue"];
57
- export { __niceevalExport26 as canonicalJsonValue };
58
- const __niceevalExport27 = __niceevalCanonical["closeInspectionJson"];
59
- export { __niceevalExport27 as closeInspectionJson };
60
- const __niceevalExport28 = __niceevalCanonical["decodeInspectionDocument"];
61
- export { __niceevalExport28 as decodeInspectionDocument };
62
- const __niceevalExport29 = __niceevalCanonical["decodeInspectionOperation"];
63
- export { __niceevalExport29 as decodeInspectionOperation };
64
- const __niceevalExport30 = __niceevalCanonical["decodeInspectionRequest"];
65
- export { __niceevalExport30 as decodeInspectionRequest };
66
- const __niceevalExport31 = __niceevalCanonical["externalInspectionSource"];
67
- export { __niceevalExport31 as externalInspectionSource };
68
- const __niceevalExport32 = __niceevalCanonical["inspectionProtocolRegistry"];
69
- export { __niceevalExport32 as inspectionProtocolRegistry };
70
- const __niceevalExport33 = __niceevalCanonical["openHostOwnedInspectionSource"];
71
- export { __niceevalExport33 as openHostOwnedInspectionSource };
72
- const __niceevalExport34 = __niceevalCanonical["openInspectionSource"];
73
- export { __niceevalExport34 as openInspectionSource };
74
- const __niceevalExport35 = __niceevalCanonical["operationalInspectionSource"];
75
- export { __niceevalExport35 as operationalInspectionSource };
76
- const __niceevalExport36 = __niceevalCanonical["readScoreMatchAudit"];
77
- export { __niceevalExport36 as readScoreMatchAudit };
78
- const __niceevalExport37 = __niceevalCanonical["selectInspectionOperation"];
79
- export { __niceevalExport37 as selectInspectionOperation };
32
+ const __niceevalExport14 = __niceevalCanonical["InspectionRunResultSchema"];
33
+ export { __niceevalExport14 as InspectionRunResultSchema };
34
+ const __niceevalExport15 = __niceevalCanonical["InspectionRunValueSchema"];
35
+ export { __niceevalExport15 as InspectionRunValueSchema };
36
+ const __niceevalExport16 = __niceevalCanonical["InspectionScoredValueSchema"];
37
+ export { __niceevalExport16 as InspectionScoredValueSchema };
38
+ const __niceevalExport17 = __niceevalCanonical["InspectionSourceError"];
39
+ export { __niceevalExport17 as InspectionSourceError };
40
+ const __niceevalExport18 = __niceevalCanonical["InspectionSourcesResultSchema"];
41
+ export { __niceevalExport18 as InspectionSourcesResultSchema };
42
+ const __niceevalExport19 = __niceevalCanonical["InspectionSuccessDocumentSchema"];
43
+ export { __niceevalExport19 as InspectionSuccessDocumentSchema };
44
+ const __niceevalExport20 = __niceevalCanonical["InspectionTraceDetailResultSchema"];
45
+ export { __niceevalExport20 as InspectionTraceDetailResultSchema };
46
+ const __niceevalExport21 = __niceevalCanonical["InspectionTraceResultSchema"];
47
+ export { __niceevalExport21 as InspectionTraceResultSchema };
48
+ const __niceevalExport22 = __niceevalCanonical["QUERY_PROTOCOL"];
49
+ export { __niceevalExport22 as QUERY_PROTOCOL };
50
+ const __niceevalExport23 = __niceevalCanonical["canonicalInspectionJson"];
51
+ export { __niceevalExport23 as canonicalInspectionJson };
52
+ const __niceevalExport24 = __niceevalCanonical["canonicalJsonValue"];
53
+ export { __niceevalExport24 as canonicalJsonValue };
54
+ const __niceevalExport25 = __niceevalCanonical["closeInspectionJson"];
55
+ export { __niceevalExport25 as closeInspectionJson };
56
+ const __niceevalExport26 = __niceevalCanonical["decodeInspectionDocument"];
57
+ export { __niceevalExport26 as decodeInspectionDocument };
58
+ const __niceevalExport27 = __niceevalCanonical["decodeInspectionOperation"];
59
+ export { __niceevalExport27 as decodeInspectionOperation };
60
+ const __niceevalExport28 = __niceevalCanonical["decodeInspectionRequest"];
61
+ export { __niceevalExport28 as decodeInspectionRequest };
62
+ const __niceevalExport29 = __niceevalCanonical["externalInspectionSource"];
63
+ export { __niceevalExport29 as externalInspectionSource };
64
+ const __niceevalExport30 = __niceevalCanonical["inspectionProtocolRegistry"];
65
+ export { __niceevalExport30 as inspectionProtocolRegistry };
66
+ const __niceevalExport31 = __niceevalCanonical["openHostOwnedInspectionSource"];
67
+ export { __niceevalExport31 as openHostOwnedInspectionSource };
68
+ const __niceevalExport32 = __niceevalCanonical["openInspectionSource"];
69
+ export { __niceevalExport32 as openInspectionSource };
70
+ const __niceevalExport33 = __niceevalCanonical["operationalInspectionSource"];
71
+ export { __niceevalExport33 as operationalInspectionSource };
72
+ const __niceevalExport34 = __niceevalCanonical["readScoreMatchAudit"];
73
+ export { __niceevalExport34 as readScoreMatchAudit };
74
+ const __niceevalExport35 = __niceevalCanonical["selectInspectionOperation"];
75
+ export { __niceevalExport35 as selectInspectionOperation };
80
76
  //# sourceMappingURL=index.js.map
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT = exports.INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT = exports.INSPECTION_RESULT_BYTE_LIMIT = void 0;
3
+ exports.INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT = exports.INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT = exports.INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT = exports.INSPECTION_RESULT_BYTE_LIMIT = void 0;
4
4
  /** Maximum UTF-8 JSON bytes for any one fixed operation result field. */
5
5
  exports.INSPECTION_RESULT_BYTE_LIMIT = 512 * 1024;
6
6
  /** Complete Experiment aggregates and cells include per-Assertion coverage. */
7
7
  exports.INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT = 4 * 1024 * 1024;
8
8
  /** Full source content, Judge audit and base64 encoding for assertion detail only. */
9
9
  exports.INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT = 32 * 1024 * 1024;
10
+ /** Complete cache groups for all 4000 admitted physical calls, including maximum escaped identities. */
11
+ exports.INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT = 16 * 1024 * 1024;
10
12
  //# sourceMappingURL=limits.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"limits.js","sourceRoot":"","sources":["limits.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AAC5D,QAAA,4BAA4B,GAAG,GAAG,GAAG,IAAI,CAAC;AACvD,+EAA+E;AAClE,QAAA,uCAAuC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,sFAAsF;AACzE,QAAA,sCAAsC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC","sourcesContent":["/** Maximum UTF-8 JSON bytes for any one fixed operation result field. */\nexport const INSPECTION_RESULT_BYTE_LIMIT = 512 * 1024;\n/** Complete Experiment aggregates and cells include per-Assertion coverage. */\nexport const INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT = 4 * 1024 * 1024;\n/** Full source content, Judge audit and base64 encoding for assertion detail only. */\nexport const INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT = 32 * 1024 * 1024;\n"]}
1
+ {"version":3,"file":"limits.js","sourceRoot":"","sources":["limits.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AAC5D,QAAA,4BAA4B,GAAG,GAAG,GAAG,IAAI,CAAC;AACvD,+EAA+E;AAClE,QAAA,uCAAuC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,sFAAsF;AACzE,QAAA,sCAAsC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACvE,wGAAwG;AAC3F,QAAA,0CAA0C,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC","sourcesContent":["/** Maximum UTF-8 JSON bytes for any one fixed operation result field. */\nexport const INSPECTION_RESULT_BYTE_LIMIT = 512 * 1024;\n/** Complete Experiment aggregates and cells include per-Assertion coverage. */\nexport const INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT = 4 * 1024 * 1024;\n/** Full source content, Judge audit and base64 encoding for assertion detail only. */\nexport const INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT = 32 * 1024 * 1024;\n/** Complete cache groups for all 4000 admitted physical calls, including maximum escaped identities. */\nexport const INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT = 16 * 1024 * 1024;\n"]}
@@ -4,3 +4,5 @@ export declare const INSPECTION_RESULT_BYTE_LIMIT: number;
4
4
  export declare const INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT: number;
5
5
  /** Full source content, Judge audit and base64 encoding for assertion detail only. */
6
6
  export declare const INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT: number;
7
+ /** Complete cache groups for all 4000 admitted physical calls, including maximum escaped identities. */
8
+ export declare const INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT: number;
@@ -4,3 +4,5 @@ export declare const INSPECTION_RESULT_BYTE_LIMIT: number;
4
4
  export declare const INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT: number;
5
5
  /** Full source content, Judge audit and base64 encoding for assertion detail only. */
6
6
  export declare const INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT: number;
7
+ /** Complete cache groups for all 4000 admitted physical calls, including maximum escaped identities. */
8
+ export declare const INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT: number;
@@ -4,3 +4,5 @@ export declare const INSPECTION_RESULT_BYTE_LIMIT: number;
4
4
  export declare const INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT: number;
5
5
  /** Full source content, Judge audit and base64 encoding for assertion detail only. */
6
6
  export declare const INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT: number;
7
+ /** Complete cache groups for all 4000 admitted physical calls, including maximum escaped identities. */
8
+ export declare const INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT: number;
@@ -3,8 +3,10 @@ const __niceevalRequire = __niceevalCreateRequire(import.meta.url);
3
3
  const __niceevalCanonical = __niceevalRequire("./limits.cjs");
4
4
  const __niceevalExport0 = __niceevalCanonical["INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT"];
5
5
  export { __niceevalExport0 as INSPECTION_ASSERTION_DETAIL_BYTE_LIMIT };
6
- const __niceevalExport1 = __niceevalCanonical["INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT"];
7
- export { __niceevalExport1 as INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT };
8
- const __niceevalExport2 = __niceevalCanonical["INSPECTION_RESULT_BYTE_LIMIT"];
9
- export { __niceevalExport2 as INSPECTION_RESULT_BYTE_LIMIT };
6
+ const __niceevalExport1 = __niceevalCanonical["INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT"];
7
+ export { __niceevalExport1 as INSPECTION_ATTEMPT_USAGE_RESULT_BYTE_LIMIT };
8
+ const __niceevalExport2 = __niceevalCanonical["INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT"];
9
+ export { __niceevalExport2 as INSPECTION_EXPERIMENT_RESULT_BYTE_LIMIT };
10
+ const __niceevalExport3 = __niceevalCanonical["INSPECTION_RESULT_BYTE_LIMIT"];
11
+ export { __niceevalExport3 as INSPECTION_RESULT_BYTE_LIMIT };
10
12
  //# sourceMappingURL=limits.js.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.openCurrentProjectSource = void 0;
4
+ const cutoff_ts_1 = require("../run/storage/cutoff.cjs");
4
5
  const node_fs_1 = require("node:fs");
5
6
  const node_path_1 = require("node:path");
6
7
  const effect_1 = require("effect");
@@ -25,12 +26,14 @@ exports.openCurrentProjectSource = effect_1.Effect.fn("openCurrentProjectSource"
25
26
  const session = input.recordPath === undefined
26
27
  ? yield* (0, index_ts_1.acquireProjectRecordReadSession)(root)
27
28
  : yield* effect_1.Effect.acquireRelease(effect_1.Effect.try(() => (0, index_ts_1.openHostOwnedRecordReadSession)(input.recordPath)), (opened) => effect_1.Effect.sync(() => opened.close()));
28
- const cutoff = session.sealedCutoff();
29
+ const publication = session.publicationCutoff();
30
+ const cutoff = Object.freeze({ ...publication, identity: (0, cutoff_ts_1.publicationCutoffIdentity)(publication) });
29
31
  source = Object.freeze({
30
32
  kind: "project-record",
31
33
  cutoff: () => cutoff,
32
34
  findExperimentRunIds: session.findExperimentRunIds,
33
35
  readRunResource: session.readRunResource,
36
+ readRunResourcePage: (afterRunId = "", pageSize = 100) => session.listRunResources({ afterRunId, pageSize }),
34
37
  readSealedRunSummaryPage: session.readSealedRunSummaryPage,
35
38
  findAttemptLocatorCandidates: session.findAttemptLocatorCandidates,
36
39
  readSealedRunCore: (runId) => session.readSealedRunCore(runId, true),
@@ -1 +1 @@
1
- {"version":3,"file":"project-source.js","sourceRoot":"","sources":["project-source.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,yCAAoC;AACpC,mCAAwC;AACxC,8DAA0F;AAC1F,wDAA4G;AAC5G,kEAAkF;AAClF,4DAA0G;AAC1G,wEAAgE;AAIhE,2DAAqE;AAGrE,yCAA6H;AAC7H,2CAA2G;AAC3G,yDAAgF;AAChF,gFAAgF;AACnE,QAAA,wBAAwB,GAAG,eAAM,CAAC,EAAE,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,EAAE,KAKxF;IACG,MAAM,IAAI,GAAG,IAAA,mBAAO,EAAC,KAAK,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAC7C,IAAI,MAA4B,CAAC;IACjC,MAAM,SAAS,GAA0B,EAAE,CAAC;IAC5C,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,IAAA,oBAAU,EAAC,IAAA,mBAAO,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC;QAChF,MAAM,GAAG,KAAK,CAAC,CAAC,IAAA,gCAAoB,EAAC,IAAA,uCAA2B,EAAC,KAAK,CAAC,GAAG,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zD,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;YACrC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE;YAChF,aAAa;YACb,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,OAAO,EAAE,OAAO,CAAC,QAAS,CAAC,OAAO;YAClC,QAAQ,EAAE,OAAO,CAAC,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW;YACvF,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM;SACxD,CAAC;KACL,CAAC,CAAC;IACH,IAAA,mCAAgB,EAAC,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACvI,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC,CAAC;AACH,SAAS,SAAS,CAAC,KAAsE;IACrF,OAAO,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5D,CAAC","sourcesContent":["import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport { Effect, Result } from \"effect\";\nimport { prepareCurrentTarget, assessCurrentTarget } from \"../experiment/host/current.ts\";\nimport { acquireProjectRecordReadSession, openHostOwnedRecordReadSession } from \"../record/sqlite/index.ts\";\nimport { hydrateRecordAttachmentCurrent } from \"../record/attachment/protocol.ts\";\nimport { NiceEvalCurrentRecordAttachments, NiceEvalRecordAttachments } from \"../record/family/current.ts\";\nimport { recordIssue } from \"../record/errors/record-errors.ts\";\nimport type { Config } from \"../runner/types.ts\";\nimport type { CurrentAssessmentRun } from \"../runner/reuse-plan.ts\";\nimport type { CurrentAssessmentAttempt } from \"../runner/reuse-plan.ts\";\nimport { mergeCurrentAssessmentRuns } from \"../runner/reuse-plan.ts\";\nimport type { ReadableRunResource } from \"../run/storage/types.ts\";\nimport type { ResolvedInspectionAttempt } from \"./facts.ts\";\nimport { loadInspectionRuns, resolveInspectionMemberAttempt, readInspectionAssertions, attemptAttachment } from \"./facts.ts\";\nimport { openInspectionSource, operationalInspectionSource, type InspectionFactSource } from \"./source.ts\";\nimport { bindProjectInput, type CurrentResultSource } from \"./project-input.ts\";\n/** One scoped reader owns both the availability inputs and Inspection facts. */\nexport const openCurrentProjectSource = Effect.fn(\"openCurrentProjectSource\")(function* (input: {\n readonly cwd: string;\n readonly config: Config;\n readonly recordPath?: string;\n readonly freshImport?: boolean;\n}) {\n const root = resolve(input.cwd, \".niceeval\");\n let source: InspectionFactSource;\n const resources: ReadableRunResource[] = [];\n if (input.recordPath === undefined && !existsSync(resolve(root, \"record.sqlite\"))) {\n source = yield* openInspectionSource(operationalInspectionSource(input.cwd));\n }\n else {\n const session = input.recordPath === undefined\n ? yield* acquireProjectRecordReadSession(root)\n : yield* Effect.acquireRelease(Effect.try(() => openHostOwnedRecordReadSession(input.recordPath!)), (opened) => Effect.sync(() => opened.close()));\n const cutoff = session.sealedCutoff();\n source = Object.freeze({\n kind: \"project-record\" as const,\n cutoff: () => cutoff,\n findExperimentRunIds: session.findExperimentRunIds,\n readRunResource: session.readRunResource,\n readSealedRunSummaryPage: session.readSealedRunSummaryPage,\n findAttemptLocatorCandidates: session.findAttemptLocatorCandidates,\n readSealedRunCore: (runId: string) => session.readSealedRunCore(runId, true),\n readContentPage: session.readContentChunkPage,\n readCollectionPage: session.readCollectionItemPage,\n });\n let afterRunId = \"\";\n for (;;) {\n const page = session.listRunResources({ afterRunId, pageSize: 100 });\n resources.push(...page.runs);\n if (page.nextAfterRunId === null)\n break;\n afterRunId = page.nextAfterRunId;\n }\n }\n const target = yield* prepareCurrentTarget(input);\n const runs = yield* Effect.try(() => loadInspectionRuns(source));\n const publishedAttemptIds = new Map(runs.map((run) => [run.run.runId,\n new Set(run.physical.attempts.filter((attempt) => attempt.publicationIdentity !== undefined).map((attempt) => attempt.attemptId))]));\n const slotsByRunId = new Map(resources.map((resource) => [resource.runId, new Map(resource.slots.map((slot) => [slot.slotId, slot]))]));\n type Ref = {\n readonly action: \"executed\" | \"carried\" | \"accepted\";\n readonly resolved: ResolvedInspectionAttempt | undefined;\n readonly sourceRunId: string;\n readonly publication: Extract<ReadableRunResource[\"slots\"][number][\"publication\"], {\n state: \"published\";\n }> | undefined;\n };\n const assessmentRuns: CurrentAssessmentRun<Ref>[] = runs.map((run) => {\n const physicalBySlot = new Map(run.physical.members.map((row) => [row.slotId, row]));\n const slots = slotsByRunId.get(run.run.runId);\n return {\n createdRevision: run.physical.createdRevision,\n document: run.run,\n members: run.members.map((member) => ({\n document: member,\n bindingRevision: physicalBySlot.get(member.slotId)?.bindingRevision,\n attempt: member.attempt === null ? null : {\n resolved: resolveInspectionMemberAttempt(runs, run, member),\n sourceRunId: run.run.runId,\n action: member.action as \"executed\" | \"carried\" | \"accepted\",\n publication: published(slots?.get(member.slotId)?.publication),\n },\n })),\n };\n });\n const lifecycleRuns = yield* mergeCurrentAssessmentRuns(assessmentRuns, resources);\n type Attempt = Ref & CurrentAssessmentAttempt;\n const assessments = yield* assessCurrentTarget<Ref, Attempt, CurrentResultSource, Error>(target, {\n runs: lifecycleRuns,\n byRunId: new Map(lifecycleRuns.map((run) => [run.document.runId, run])),\n selectionHasProblem: false,\n coreIssues: [],\n readAttempt: (ref: Ref) => Effect.succeed(ref.resolved === undefined ? { state: \"missing\" as const } : {\n state: \"available\" as const,\n value: { ...ref, document: ref.resolved.attempt, publicationAvailable: ref.publication !== undefined || publishedAttemptIds.get(ref.resolved.origin.run.runId)?.has(ref.resolved.attempt.attemptId) === true },\n }),\n readAssertions: (attempt) => Effect.try(() => {\n const read = readInspectionAssertions(attempt.resolved!);\n if (read.state === \"available\")\n return { state: \"available\" as const, value: read.value };\n if (read.state === \"not-recorded\")\n return { state: \"not-recorded\" as const };\n if (read.state === \"unsupported\")\n return { state: \"unsupported\" as const, family: NiceEvalRecordAttachments.assertions.family, revision: read.attachment!.physical.familyRevision };\n return { state: \"invalid\" as const, issues: [recordIssue(\"record-schema-invalid\", [\"assertions\", \"current-invalid\"])] as const };\n }),\n readActivities: (attempt) => Effect.try(() => {\n const definition = NiceEvalRecordAttachments.runnerActivities.attempt;\n const attachment = attemptAttachment(attempt.resolved!, definition.family);\n if (attachment === undefined)\n return { state: \"not-recorded\" as const };\n if (attachment.physical.familyRevision !== NiceEvalCurrentRecordAttachments.runnerActivities.attempt.revision)\n return { state: \"unsupported\" as const, family: definition.family, revision: attachment.physical.familyRevision };\n const value = hydrateRecordAttachmentCurrent(definition, attachment.value, { content: () => Result.succeed(undefined), reference: () => Result.succeed(undefined) });\n return Result.isSuccess(value) ? { state: \"available\" as const, value: value.success } : { state: \"invalid\" as const, issues: [recordIssue(\"record-schema-invalid\", [definition.family, value.failure.code])] as const };\n }),\n sourceFor: (attempt, sourceBarrier): CurrentResultSource => ({\n attemptId: attempt.document.attemptId,\n origin: { runId: attempt.document.originRunId, slotId: attempt.document.slotId },\n sourceBarrier,\n sourceRunId: attempt.sourceRunId,\n locator: attempt.resolved!.locator,\n relation: attempt.sourceRunId === attempt.document.originRunId ? \"origin\" : \"reference\",\n action: attempt.publication?.action ?? attempt.action,\n }),\n });\n bindProjectInput(source, { cutoffIdentity: source.cutoff().identity, target, assessments, runs, resources: Object.freeze(resources) });\n return source;\n});\nfunction published(value: ReadableRunResource[\"slots\"][number][\"publication\"] | undefined) {\n return value?.state === \"published\" ? value : undefined;\n}\n"]}
1
+ {"version":3,"file":"project-source.js","sourceRoot":"","sources":["project-source.ts"],"names":[],"mappings":";;;AAAA,wDAAqE;AACrE,qCAAqC;AACrC,yCAAoC;AACpC,mCAAwC;AACxC,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C,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW;YACvF,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM;SACxD,CAAC;KACL,CAAC,CAAC;IACH,IAAA,mCAAgB,EAAC,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACvI,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC,CAAC;AACH,SAAS,SAAS,CAAC,KAAsE;IACrF,OAAO,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5D,CAAC","sourcesContent":["import { publicationCutoffIdentity } from \"../run/storage/cutoff.ts\";\nimport { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport { Effect, Result } from \"effect\";\nimport { prepareCurrentTarget, assessCurrentTarget } from \"../experiment/host/current.ts\";\nimport { acquireProjectRecordReadSession, openHostOwnedRecordReadSession } from \"../record/sqlite/index.ts\";\nimport { hydrateRecordAttachmentCurrent } from \"../record/attachment/protocol.ts\";\nimport { NiceEvalCurrentRecordAttachments, NiceEvalRecordAttachments } from \"../record/family/current.ts\";\nimport { recordIssue } from \"../record/errors/record-errors.ts\";\nimport type { Config } from \"../runner/types.ts\";\nimport type { CurrentAssessmentRun } from \"../runner/reuse-plan.ts\";\nimport type { CurrentAssessmentAttempt } from \"../runner/reuse-plan.ts\";\nimport { mergeCurrentAssessmentRuns } from \"../runner/reuse-plan.ts\";\nimport type { ReadableRunResource } from \"../run/storage/types.ts\";\nimport type { ResolvedInspectionAttempt } from \"./facts.ts\";\nimport { loadInspectionRuns, resolveInspectionMemberAttempt, readInspectionAssertions, attemptAttachment } from \"./facts.ts\";\nimport { openInspectionSource, operationalInspectionSource, type InspectionFactSource } from \"./source.ts\";\nimport { bindProjectInput, type CurrentResultSource } from \"./project-input.ts\";\n/** One scoped reader owns both the availability inputs and Inspection facts. */\nexport const openCurrentProjectSource = Effect.fn(\"openCurrentProjectSource\")(function* (input: {\n readonly cwd: string;\n readonly config: Config;\n readonly recordPath?: string;\n readonly freshImport?: boolean;\n}) {\n const root = resolve(input.cwd, \".niceeval\");\n let source: InspectionFactSource;\n const resources: ReadableRunResource[] = [];\n if (input.recordPath === undefined && !existsSync(resolve(root, \"record.sqlite\"))) {\n source = yield* openInspectionSource(operationalInspectionSource(input.cwd));\n }\n else {\n const session = input.recordPath === undefined\n ? yield* acquireProjectRecordReadSession(root)\n : yield* Effect.acquireRelease(Effect.try(() => openHostOwnedRecordReadSession(input.recordPath!)), (opened) => Effect.sync(() => opened.close()));\n const publication = session.publicationCutoff();\n const cutoff = Object.freeze({ ...publication, identity: publicationCutoffIdentity(publication) });\n source = Object.freeze({\n kind: \"project-record\" as const,\n cutoff: () => cutoff,\n findExperimentRunIds: session.findExperimentRunIds,\n readRunResource: session.readRunResource,\n readRunResourcePage: (afterRunId = \"\", pageSize = 100) => session.listRunResources({ afterRunId, pageSize }),\n readSealedRunSummaryPage: session.readSealedRunSummaryPage,\n findAttemptLocatorCandidates: session.findAttemptLocatorCandidates,\n readSealedRunCore: (runId: string) => session.readSealedRunCore(runId, true),\n readContentPage: session.readContentChunkPage,\n readCollectionPage: session.readCollectionItemPage,\n });\n let afterRunId = \"\";\n for (;;) {\n const page = session.listRunResources({ afterRunId, pageSize: 100 });\n resources.push(...page.runs);\n if (page.nextAfterRunId === null)\n break;\n afterRunId = page.nextAfterRunId;\n }\n }\n const target = yield* prepareCurrentTarget(input);\n const runs = yield* Effect.try(() => loadInspectionRuns(source));\n const publishedAttemptIds = new Map(runs.map((run) => [run.run.runId,\n new Set(run.physical.attempts.filter((attempt) => attempt.publicationIdentity !== undefined).map((attempt) => attempt.attemptId))]));\n const slotsByRunId = new Map(resources.map((resource) => [resource.runId, new Map(resource.slots.map((slot) => [slot.slotId, slot]))]));\n type Ref = {\n readonly action: \"executed\" | \"carried\" | \"accepted\";\n readonly resolved: ResolvedInspectionAttempt | undefined;\n readonly sourceRunId: string;\n readonly publication: Extract<ReadableRunResource[\"slots\"][number][\"publication\"], {\n state: \"published\";\n }> | undefined;\n };\n const assessmentRuns: CurrentAssessmentRun<Ref>[] = runs.map((run) => {\n const physicalBySlot = new Map(run.physical.members.map((row) => [row.slotId, row]));\n const slots = slotsByRunId.get(run.run.runId);\n return {\n createdRevision: run.physical.createdRevision,\n document: run.run,\n members: run.members.map((member) => ({\n document: member,\n bindingRevision: physicalBySlot.get(member.slotId)?.bindingRevision,\n attempt: member.attempt === null ? null : {\n resolved: resolveInspectionMemberAttempt(runs, run, member),\n sourceRunId: run.run.runId,\n action: member.action as \"executed\" | \"carried\" | \"accepted\",\n publication: published(slots?.get(member.slotId)?.publication),\n },\n })),\n };\n });\n const lifecycleRuns = yield* mergeCurrentAssessmentRuns(assessmentRuns, resources);\n type Attempt = Ref & CurrentAssessmentAttempt;\n const assessments = yield* assessCurrentTarget<Ref, Attempt, CurrentResultSource, Error>(target, {\n runs: lifecycleRuns,\n byRunId: new Map(lifecycleRuns.map((run) => [run.document.runId, run])),\n selectionHasProblem: false,\n coreIssues: [],\n readAttempt: (ref: Ref) => Effect.succeed(ref.resolved === undefined ? { state: \"missing\" as const } : {\n state: \"available\" as const,\n value: { ...ref, document: ref.resolved.attempt, publicationAvailable: ref.publication !== undefined || publishedAttemptIds.get(ref.resolved.origin.run.runId)?.has(ref.resolved.attempt.attemptId) === true },\n }),\n readAssertions: (attempt) => Effect.try(() => {\n const read = readInspectionAssertions(attempt.resolved!);\n if (read.state === \"available\")\n return { state: \"available\" as const, value: read.value };\n if (read.state === \"not-recorded\")\n return { state: \"not-recorded\" as const };\n if (read.state === \"unsupported\")\n return { state: \"unsupported\" as const, family: NiceEvalRecordAttachments.assertions.family, revision: read.attachment!.physical.familyRevision };\n return { state: \"invalid\" as const, issues: [recordIssue(\"record-schema-invalid\", [\"assertions\", \"current-invalid\"])] as const };\n }),\n readActivities: (attempt) => Effect.try(() => {\n const definition = NiceEvalRecordAttachments.runnerActivities.attempt;\n const attachment = attemptAttachment(attempt.resolved!, definition.family);\n if (attachment === undefined)\n return { state: \"not-recorded\" as const };\n if (attachment.physical.familyRevision !== NiceEvalCurrentRecordAttachments.runnerActivities.attempt.revision)\n return { state: \"unsupported\" as const, family: definition.family, revision: attachment.physical.familyRevision };\n const value = hydrateRecordAttachmentCurrent(definition, attachment.value, { content: () => Result.succeed(undefined), reference: () => Result.succeed(undefined) });\n return Result.isSuccess(value) ? { state: \"available\" as const, value: value.success } : { state: \"invalid\" as const, issues: [recordIssue(\"record-schema-invalid\", [definition.family, value.failure.code])] as const };\n }),\n sourceFor: (attempt, sourceBarrier): CurrentResultSource => ({\n attemptId: attempt.document.attemptId,\n origin: { runId: attempt.document.originRunId, slotId: attempt.document.slotId },\n sourceBarrier,\n sourceRunId: attempt.sourceRunId,\n locator: attempt.resolved!.locator,\n relation: attempt.sourceRunId === attempt.document.originRunId ? \"origin\" : \"reference\",\n action: attempt.publication?.action ?? attempt.action,\n }),\n });\n bindProjectInput(source, { cutoffIdentity: source.cutoff().identity, target, assessments, runs, resources: Object.freeze(resources) });\n return source;\n});\nfunction published(value: ReadableRunResource[\"slots\"][number][\"publication\"] | undefined) {\n return value?.state === \"published\" ? value : undefined;\n}\n"]}
@@ -28,11 +28,10 @@ const RunIdsSchema = effect_1.Schema.Array(identifiers_ts_1.RunIdSchema);
28
28
  const ProjectExperimentIdsSchema = effect_1.Schema.Array(identifiers_ts_1.ExperimentIdSchema).check(effect_1.Schema.makeFilter((ids) => ids.length > 0 && new Set(ids).size === ids.length));
29
29
  const operation = (kind, fields) => effect_1.Schema.Struct({ kind: effect_1.Schema.Literal(kind), ...fields });
30
30
  const SourceSchema = effect_1.Schema.Struct({
31
- kind: effect_1.Schema.Literals(["project-record", "external-record"]), sealedCutoffIdentity: effect_1.Schema.String,
31
+ kind: effect_1.Schema.Literals(["project-record", "external-record"]), publicationCutoffIdentity: effect_1.Schema.String,
32
32
  });
33
- const SealedCutoffSchema = effect_1.Schema.Struct({
34
- kind: effect_1.Schema.Literal("inspection-sealed-cutoff"), identity: effect_1.Schema.String, runCount: effect_1.Schema.Number,
35
- runs: effect_1.Schema.Array(effect_1.Schema.Struct({ runId: effect_1.Schema.String, logicalSealIdentity: effect_1.Schema.String })),
33
+ const PublicationCutoffSchema = effect_1.Schema.Struct({
34
+ storeGeneration: effect_1.Schema.String, revision: effect_1.Schema.Number.check(effect_1.Schema.isInt(), effect_1.Schema.isGreaterThanOrEqualTo(0)),
36
35
  });
37
36
  const SelectionSchema = effect_1.Schema.Struct({
38
37
  requestedRunIds: effect_1.Schema.Array(effect_1.Schema.String), selectedRunIds: effect_1.Schema.Array(effect_1.Schema.String), missingRunIds: effect_1.Schema.Array(effect_1.Schema.String),
@@ -40,17 +39,17 @@ const SelectionSchema = effect_1.Schema.Struct({
40
39
  const SuccessMetadataSchema = effect_1.Schema.Struct({
41
40
  protocol: effect_1.Schema.Literal(protocol_values_ts_1.QUERY_PROTOCOL), outcome: effect_1.Schema.Literal("success"),
42
41
  behaviorVersion: effect_1.Schema.Literal(protocol_values_ts_1.INSPECTION_BEHAVIOR_VERSION),
43
- source: SourceSchema, sealedCutoff: SealedCutoffSchema, selection: SelectionSchema,
42
+ source: SourceSchema, publicationCutoff: PublicationCutoffSchema, selection: SelectionSchema,
44
43
  issues: effect_1.Schema.Tuple([]), evidence: effect_1.Schema.Struct({ refs: effect_1.Schema.Array(effect_1.Schema.String) }),
45
44
  });
46
45
  const RunsListSuccessMetadataSchema = effect_1.Schema.Struct({
47
46
  protocol: effect_1.Schema.Literal(protocol_values_ts_1.QUERY_PROTOCOL), outcome: effect_1.Schema.Literal("success"),
48
47
  behaviorVersion: effect_1.Schema.Literal(protocol_values_ts_1.INSPECTION_BEHAVIOR_VERSION),
49
48
  source: SourceSchema,
50
- sealedCutoff: effect_1.Schema.Struct({ kind: effect_1.Schema.Literal("inspection-sealed-cutoff"), identity: effect_1.Schema.String, runCount: effect_1.Schema.Number }),
49
+ publicationCutoff: PublicationCutoffSchema,
51
50
  selection: effect_1.Schema.Struct({
52
51
  requestedRunIds: effect_1.Schema.Array(effect_1.Schema.String), selectedRunIds: effect_1.Schema.Array(effect_1.Schema.String), missingRunIds: effect_1.Schema.Array(effect_1.Schema.String),
53
- returnedRunCount: effect_1.Schema.Number, totalRunCount: effect_1.Schema.Number, truncated: effect_1.Schema.Boolean,
52
+ returnedRunCount: effect_1.Schema.Number, truncated: effect_1.Schema.Boolean,
54
53
  }),
55
54
  issues: effect_1.Schema.Tuple([]), evidence: effect_1.Schema.Struct({ refs: effect_1.Schema.Array(effect_1.Schema.String) }),
56
55
  });
@@ -68,11 +67,6 @@ const ArtifactsResultSchema = effect_1.Schema.Union([
68
67
  contentsTruncated: effect_1.Schema.Boolean,
69
68
  }),
70
69
  ]);
71
- const SealedRunSummarySchema = effect_1.Schema.Struct({
72
- runId: effect_1.Schema.String, writerGeneration: effect_1.Schema.String, startedAt: effect_1.Schema.String, logicalSealIdentity: effect_1.Schema.String,
73
- slotCount: effect_1.Schema.Number, memberCount: effect_1.Schema.Number, attemptCount: effect_1.Schema.Number, attachmentCount: effect_1.Schema.Number,
74
- contentCount: effect_1.Schema.Number, contentByteLength: effect_1.Schema.Number, sealEntryCount: effect_1.Schema.Number,
75
- });
76
70
  const ComparisonMemberSchema = effect_1.Schema.Struct({
77
71
  key: effect_1.Schema.String, runId: effect_1.Schema.String, slotId: effect_1.Schema.String, evalId: effect_1.Schema.String,
78
72
  attemptOrdinal: effect_1.Schema.Number, locator: effect_1.Schema.String,
@@ -90,10 +84,8 @@ exports.inspectionProtocolRegistry = Object.freeze({
90
84
  "project.get": spec({ request: operation("project.get", { experimentIds: effect_1.Schema.optional(ProjectExperimentIdsSchema) }), result: { project: project_result_ts_1.InspectionProjectResultSchema }, factKinds: ["current-project", "core", "assertions", "attempt-cost"] }),
91
85
  "overview.get": spec({ request: operation("overview.get", { runIds: effect_1.Schema.optional(RunIdsSchema) }), result: { overview: results_ts_1.InspectionOverviewResultSchema }, factKinds: ["core", "assertions", "attempt-cost"] }),
92
86
  "experiment.get": spec({ request: operation("experiment.get", { experimentId: identifiers_ts_1.ExperimentIdSchema }), result: { experiment: results_ts_1.InspectionExperimentResultSchema }, factKinds: ["core", "assertions", "attempt-cost", "agent-turns", "adapter-usage", "judge-usage"] }),
93
- "runs.list": spec({ request: operation("runs.list", { continuation: effect_1.Schema.optional(effect_1.Schema.String) }), result: { runs: effect_1.Schema.Array(SealedRunSummarySchema), continuation: effect_1.Schema.optional(effect_1.Schema.String) }, factKinds: ["core"] }),
94
- "run.get": spec({ request: operation("run.get", { runId: identifiers_ts_1.RunIdSchema }), result: { run: results_ts_1.InspectionRunResultSchema }, factKinds: ["core"] }),
95
- "run.summary": spec({ request: operation("run.summary", { runId: identifiers_ts_1.RunIdSchema }), result: { summary: results_ts_1.InspectionRunSummaryResultSchema }, factKinds: ["core", "assertions", "agent-turns"] }),
96
- "run.overview": spec({ request: operation("run.overview", { runId: identifiers_ts_1.RunIdSchema }), result: { runOverview: results_ts_1.InspectionRunOverviewResultSchema }, factKinds: ["core", "assertions", "agent-turns"] }),
87
+ "run.list": spec({ request: operation("run.list", { continuation: effect_1.Schema.optional(effect_1.Schema.String) }), result: { runs: results_ts_1.InspectionRunListResultSchema, continuation: effect_1.Schema.optional(effect_1.Schema.String) }, factKinds: ["core"] }),
88
+ "run.get": spec({ request: operation("run.get", { runId: identifiers_ts_1.RunIdSchema }), result: { run: results_ts_1.InspectionRunResultSchema }, factKinds: ["core", "assertions", "agent-turns", "adapter-usage", "judge-usage"] }),
97
89
  "attempt.get": spec({ request: operation("attempt.get", { locator: AttemptLocatorSchema }), result: { attempt: results_ts_1.InspectionAttemptResultSchema }, factKinds: ["core", "assertions"] }),
98
90
  "attempt.assertion.detail": spec({ request: operation("attempt.assertion.detail", { locator: AttemptLocatorSchema, entryId: codec_ts_1.AssertionEntryIdSchema }), result: { assertion: assertion_projection_ts_1.AssertionDetailResultSchema }, factKinds: ["assertions", "agent-turns", "sources"] }),
99
91
  "attempt.assertion.image": spec({ request: operation("attempt.assertion.image", { locator: AttemptLocatorSchema,
@@ -140,7 +132,7 @@ exports.InspectionRequestSchema = effect_1.Schema.Struct({
140
132
  });
141
133
  const successSchema = (id, entry) => {
142
134
  const fields = effect_1.Schema.fieldsAssign({ operation: effect_1.Schema.Literal(id), ...entry.result });
143
- const schema = id === "runs.list" ? RunsListSuccessMetadataSchema.pipe(fields)
135
+ const schema = id === "run.list" ? RunsListSuccessMetadataSchema.pipe(fields)
144
136
  : id === "runs.compare" ? CompareSuccessMetadataSchema.pipe(fields)
145
137
  : SuccessMetadataSchema.pipe(fields);
146
138
  // Object.entries erases the ID/result correlation established by the registry.
@@ -152,7 +144,7 @@ const explanationSchema = (id, entry) => {
152
144
  outcome: effect_1.Schema.Literal("explanation"), operation: effect_1.Schema.Literal(id),
153
145
  factKinds: effect_1.Schema.Tuple(entry.factKinds.map((value) => effect_1.Schema.Literal(value))),
154
146
  });
155
- if (id === "runs.list")
147
+ if (id === "run.list")
156
148
  return RunsListSuccessMetadataSchema.pipe(fields);
157
149
  return SuccessMetadataSchema.pipe(fields);
158
150
  };