niceeval 0.16.3-canary.99 → 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
@@ -5,16 +5,11 @@ declare const SuccessMetadataSchema: Schema.Struct<{
5
5
  readonly behaviorVersion: Schema.Literal<"2.0.0">;
6
6
  readonly source: Schema.Struct<{
7
7
  readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
8
- readonly sealedCutoffIdentity: Schema.String;
8
+ readonly publicationCutoffIdentity: Schema.String;
9
9
  }>;
10
- readonly sealedCutoff: Schema.Struct<{
11
- readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
12
- readonly identity: Schema.String;
13
- readonly runCount: Schema.Number;
14
- readonly runs: Schema.$Array<Schema.Struct<{
15
- readonly runId: Schema.String;
16
- readonly logicalSealIdentity: Schema.String;
17
- }>>;
10
+ readonly publicationCutoff: Schema.Struct<{
11
+ readonly storeGeneration: Schema.String;
12
+ readonly revision: Schema.Number;
18
13
  }>;
19
14
  readonly selection: Schema.Struct<{
20
15
  readonly requestedRunIds: Schema.$Array<Schema.String>;
@@ -32,19 +27,17 @@ declare const RunsListSuccessMetadataSchema: Schema.Struct<{
32
27
  readonly behaviorVersion: Schema.Literal<"2.0.0">;
33
28
  readonly source: Schema.Struct<{
34
29
  readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
35
- readonly sealedCutoffIdentity: Schema.String;
30
+ readonly publicationCutoffIdentity: Schema.String;
36
31
  }>;
37
- readonly sealedCutoff: Schema.Struct<{
38
- readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
39
- readonly identity: Schema.String;
40
- readonly runCount: Schema.Number;
32
+ readonly publicationCutoff: Schema.Struct<{
33
+ readonly storeGeneration: Schema.String;
34
+ readonly revision: Schema.Number;
41
35
  }>;
42
36
  readonly selection: Schema.Struct<{
43
37
  readonly requestedRunIds: Schema.$Array<Schema.String>;
44
38
  readonly selectedRunIds: Schema.$Array<Schema.String>;
45
39
  readonly missingRunIds: Schema.$Array<Schema.String>;
46
40
  readonly returnedRunCount: Schema.Number;
47
- readonly totalRunCount: Schema.Number;
48
41
  readonly truncated: Schema.Boolean;
49
42
  }>;
50
43
  readonly issues: Schema.Tuple<readonly []>;
@@ -56,20 +49,15 @@ declare const CompareSuccessMetadataSchema: Schema.Struct<{
56
49
  readonly protocol: Schema.Literal<"niceeval.query/v1">;
57
50
  readonly source: Schema.Struct<{
58
51
  readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
59
- readonly sealedCutoffIdentity: Schema.String;
52
+ readonly publicationCutoffIdentity: Schema.String;
60
53
  }>;
61
54
  readonly outcome: Schema.Literal<"success">;
62
55
  readonly evidence: Schema.Struct<{
63
56
  readonly refs: Schema.$Array<Schema.String>;
64
57
  }>;
65
- readonly sealedCutoff: Schema.Struct<{
66
- readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
67
- readonly identity: Schema.String;
68
- readonly runCount: Schema.Number;
69
- readonly runs: Schema.$Array<Schema.Struct<{
70
- readonly runId: Schema.String;
71
- readonly logicalSealIdentity: Schema.String;
72
- }>>;
58
+ readonly publicationCutoff: Schema.Struct<{
59
+ readonly storeGeneration: Schema.String;
60
+ readonly revision: Schema.Number;
73
61
  }>;
74
62
  readonly selection: Schema.Struct<{
75
63
  readonly requestedRunIds: Schema.$Array<Schema.String>;
@@ -3714,25 +3702,25 @@ export declare const inspectionProtocolRegistry: Readonly<{
3714
3702
  };
3715
3703
  readonly factKinds: readonly ["core", "assertions", "attempt-cost", "agent-turns", "adapter-usage", "judge-usage"];
3716
3704
  }>;
3717
- "runs.list": Readonly<{
3705
+ "run.list": Readonly<{
3718
3706
  readonly request: Schema.Struct<{
3719
- readonly kind: Schema.Literal<"runs.list">;
3707
+ readonly kind: Schema.Literal<"run.list">;
3720
3708
  } & {
3721
3709
  continuation: Schema.optional<Schema.String>;
3722
3710
  }>;
3723
3711
  readonly result: {
3724
3712
  runs: Schema.$Array<Schema.Struct<{
3725
3713
  readonly runId: Schema.String;
3726
- readonly writerGeneration: Schema.String;
3714
+ readonly invocationId: Schema.String;
3715
+ readonly experimentId: Schema.String;
3716
+ readonly state: Schema.Literals<readonly ["active", "completed", "interrupted", "failed"]>;
3727
3717
  readonly startedAt: Schema.String;
3728
- readonly logicalSealIdentity: Schema.String;
3729
- readonly slotCount: Schema.Number;
3730
- readonly memberCount: Schema.Number;
3731
- readonly attemptCount: Schema.Number;
3732
- readonly attachmentCount: Schema.Number;
3733
- readonly contentCount: Schema.Number;
3734
- readonly contentByteLength: Schema.Number;
3735
- readonly sealEntryCount: Schema.Number;
3718
+ readonly completedAt: Schema.optional<Schema.String>;
3719
+ readonly coverage: Schema.Struct<{
3720
+ readonly published: Schema.Number;
3721
+ readonly expected: Schema.Number;
3722
+ readonly missing: Schema.Number;
3723
+ }>;
3736
3724
  }>>;
3737
3725
  continuation: Schema.optional<Schema.String>;
3738
3726
  };
@@ -3785,93 +3773,25 @@ export declare const inspectionProtocolRegistry: Readonly<{
3785
3773
  readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.js").ExecutionIdentityDigest, string, never, never>;
3786
3774
  readonly outcome: Schema.Literals<readonly ["completed", "errored", "cancelled", "interrupted"]>;
3787
3775
  }>>;
3788
- }>;
3789
- };
3790
- readonly factKinds: readonly ["core"];
3791
- }>;
3792
- "run.summary": Readonly<{
3793
- readonly request: Schema.Struct<{
3794
- readonly kind: Schema.Literal<"run.summary">;
3795
- } & {
3796
- runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
3797
- }>;
3798
- readonly result: {
3799
- summary: Schema.Struct<{
3800
- readonly runs: Schema.$Array<Schema.Struct<{
3801
- readonly runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
3802
- readonly experimentId: Schema.Codec<import("../record/model/identifiers.js").ExperimentId, string, never, never>;
3803
- readonly context: Schema.Struct<{
3804
- readonly experimentId: Schema.Codec<import("../record/model/identifiers.js").ExperimentId, string, never, never>;
3805
- readonly execution: Schema.Codec<import("../record/model/run-context.js").RunExecutionContext, import("../record/model/run-context.js").RunExecutionContext, never, never>;
3806
- readonly labels: Schema.Codec<Readonly<Record<string, string>>, Readonly<Record<string, string>>, never, never>;
3807
- }>;
3808
- readonly startedAt: Schema.Codec<import("../record/model/identifiers.js").UtcMillis, number, never, never>;
3809
- readonly completedAt: Schema.Codec<import("../record/model/identifiers.js").UtcMillis, number, never, never>;
3810
- readonly expectedSlots: Schema.$Array<Schema.Struct<{
3811
- readonly slotId: Schema.Codec<import("../record/model/identifiers.js").SlotId, string, never, never>;
3812
- readonly evalId: Schema.Codec<import("../record/model/identifiers.js").EvalId, string, never, never>;
3813
- readonly attemptOrdinal: Schema.Number;
3814
- readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.js").ExecutionIdentityDigest, string, never, never>;
3815
- }>>;
3816
- }>>;
3817
3776
  readonly denominator: Schema.Struct<{
3818
3777
  readonly expected: Schema.Number;
3819
- readonly observed: Schema.Number;
3778
+ readonly published: Schema.Number;
3779
+ readonly missing: Schema.Number;
3820
3780
  }>;
3821
- readonly members: Schema.$Array<Schema.Struct<{
3822
- readonly runId: Schema.String;
3823
- readonly slotId: Schema.String;
3824
- readonly evalId: Schema.String;
3825
- readonly attemptOrdinal: Schema.Number;
3826
- readonly executionIdentityDigest: Schema.String;
3827
- readonly state: Schema.Literals<readonly ["executed", "carried", "accepted", "not-dispatched", "interrupted", "missing"]>;
3828
- readonly locator: Schema.NullOr<Schema.String>;
3829
- readonly outcome: Schema.NullOr<Schema.Literals<readonly ["completed", "errored", "cancelled", "interrupted"]>>;
3830
- readonly verdict: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "errored", "skipped"]>>;
3831
- readonly score: Schema.optional<Schema.Union<readonly [Schema.Struct<{
3832
- readonly state: Schema.Literal<"not-scored">;
3781
+ readonly slots: Schema.$Array<Schema.Struct<{
3782
+ readonly publication: Schema.Union<readonly [Schema.Struct<{
3783
+ readonly state: Schema.Literal<"pending">;
3833
3784
  }>, Schema.Struct<{
3834
- readonly state: Schema.Literal<"complete">;
3835
- readonly earned: Schema.Number;
3836
- readonly possible: Schema.Number;
3785
+ readonly state: Schema.Literal<"published">;
3786
+ readonly action: Schema.Literals<readonly ["executed", "carried", "accepted"]>;
3787
+ readonly attemptId: Schema.String;
3788
+ readonly attemptLocator: Schema.String;
3789
+ readonly originRunId: Schema.String;
3790
+ readonly originSlotId: Schema.String;
3837
3791
  }>, Schema.Struct<{
3838
- readonly state: Schema.Literal<"unavailable">;
3839
- readonly earned: Schema.Number;
3840
- readonly possible: Schema.Number;
3841
- readonly unavailable: Schema.Number;
3842
- }>]>>;
3843
- }>>;
3844
- }>;
3845
- };
3846
- readonly factKinds: readonly ["core", "assertions", "agent-turns"];
3847
- }>;
3848
- "run.overview": Readonly<{
3849
- readonly request: Schema.Struct<{
3850
- readonly kind: Schema.Literal<"run.overview">;
3851
- } & {
3852
- runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
3853
- }>;
3854
- readonly result: {
3855
- runOverview: Schema.Struct<{
3856
- readonly identity: Schema.Struct<{
3857
- readonly runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
3858
- readonly experimentId: Schema.Codec<import("../record/model/identifiers.js").ExperimentId, string, never, never>;
3859
- readonly adapter: Schema.NullOr<Schema.Codec<import("../types.js").AdapterIdentity, import("../types.js").AdapterIdentity, never, never>>;
3860
- }>;
3861
- readonly state: Schema.Literals<readonly ["active", "completed", "interrupted", "failed"]>;
3862
- readonly startedAt: Schema.Codec<import("../record/model/identifiers.js").UtcMillis, number, never, never>;
3863
- readonly completedAt: Schema.optional<Schema.Codec<import("../record/model/identifiers.js").UtcMillis, number, never, never>>;
3864
- readonly denominator: Schema.Struct<{
3865
- readonly expected: Schema.Number;
3866
- readonly observed: Schema.Number;
3867
- }>;
3868
- readonly members: Schema.$Array<Schema.Struct<{
3869
- readonly slot: Schema.Struct<{
3870
- readonly slotId: Schema.Codec<import("../record/model/identifiers.js").SlotId, string, never, never>;
3871
- readonly evalId: Schema.Codec<import("../record/model/identifiers.js").EvalId, string, never, never>;
3872
- readonly attemptOrdinal: Schema.Number;
3873
- readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.js").ExecutionIdentityDigest, string, never, never>;
3874
- }>;
3792
+ readonly state: Schema.Literal<"absent">;
3793
+ readonly reason: Schema.Literals<readonly ["early-exit-satisfied", "budget-exhausted", "stopped-by-failure", "interrupted-before-publication", "dispatch-failed"]>;
3794
+ }>]>;
3875
3795
  readonly state: Schema.Literals<readonly ["executed", "carried", "accepted", "not-dispatched", "interrupted", "pending"]>;
3876
3796
  readonly locator: Schema.NullOr<Schema.String>;
3877
3797
  readonly relation: Schema.NullOr<Schema.Literals<readonly ["origin", "reference"]>>;
@@ -4146,6 +4066,10 @@ export declare const inspectionProtocolRegistry: Readonly<{
4146
4066
  readonly reason: Schema.String;
4147
4067
  }>]>;
4148
4068
  }>]>>;
4069
+ readonly slotId: Schema.Codec<import("../record/model/identifiers.js").SlotId, string, never, never>;
4070
+ readonly evalId: Schema.Codec<import("../record/model/identifiers.js").EvalId, string, never, never>;
4071
+ readonly attemptOrdinal: Schema.Number;
4072
+ readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.js").ExecutionIdentityDigest, string, never, never>;
4149
4073
  }>>;
4150
4074
  readonly coverage: Schema.Struct<{
4151
4075
  readonly state: Schema.Literals<readonly ["complete", "partial", "not-recorded", "invalid", "unavailable"]>;
@@ -4530,7 +4454,7 @@ export declare const inspectionProtocolRegistry: Readonly<{
4530
4454
  }>>;
4531
4455
  }>;
4532
4456
  };
4533
- readonly factKinds: readonly ["core", "assertions", "agent-turns"];
4457
+ readonly factKinds: readonly ["core", "assertions", "agent-turns", "adapter-usage", "judge-usage"];
4534
4458
  }>;
4535
4459
  "attempt.get": Readonly<{
4536
4460
  readonly request: Schema.Struct<{
@@ -6688,6 +6612,60 @@ export declare const inspectionProtocolRegistry: Readonly<{
6688
6612
  }>;
6689
6613
  readonly result: {
6690
6614
  usage: Schema.Struct<{
6615
+ readonly cacheRead: Schema.Struct<{
6616
+ readonly total: Schema.Struct<{
6617
+ rate: Schema.Union<readonly [Schema.Struct<{
6618
+ readonly state: Schema.Literal<"exact">;
6619
+ readonly value: Schema.Number;
6620
+ }>, Schema.Struct<{
6621
+ readonly state: Schema.Literal<"unavailable">;
6622
+ readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
6623
+ }>]>;
6624
+ recordedCalls: Schema.Number;
6625
+ coveredCalls: Schema.Number;
6626
+ missingCacheReadCalls: Schema.Number;
6627
+ missingInputTotalCalls: Schema.Number;
6628
+ unknownStatusCalls: Schema.Number;
6629
+ collectionComplete: Schema.Boolean;
6630
+ reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
6631
+ }>;
6632
+ readonly modelSlots: Schema.$Array<Schema.Struct<{
6633
+ readonly rate: Schema.Union<readonly [Schema.Struct<{
6634
+ readonly state: Schema.Literal<"exact">;
6635
+ readonly value: Schema.Number;
6636
+ }>, Schema.Struct<{
6637
+ readonly state: Schema.Literal<"unavailable">;
6638
+ readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
6639
+ }>]>;
6640
+ readonly recordedCalls: Schema.Number;
6641
+ readonly coveredCalls: Schema.Number;
6642
+ readonly missingCacheReadCalls: Schema.Number;
6643
+ readonly missingInputTotalCalls: Schema.Number;
6644
+ readonly unknownStatusCalls: Schema.Number;
6645
+ readonly collectionComplete: Schema.Boolean;
6646
+ readonly reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
6647
+ readonly modelSlot: Schema.NullOr<Schema.String>;
6648
+ }>>;
6649
+ readonly models: Schema.$Array<Schema.Struct<{
6650
+ readonly rate: Schema.Union<readonly [Schema.Struct<{
6651
+ readonly state: Schema.Literal<"exact">;
6652
+ readonly value: Schema.Number;
6653
+ }>, Schema.Struct<{
6654
+ readonly state: Schema.Literal<"unavailable">;
6655
+ readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
6656
+ }>]>;
6657
+ readonly recordedCalls: Schema.Number;
6658
+ readonly coveredCalls: Schema.Number;
6659
+ readonly missingCacheReadCalls: Schema.Number;
6660
+ readonly missingInputTotalCalls: Schema.Number;
6661
+ readonly unknownStatusCalls: Schema.Number;
6662
+ readonly collectionComplete: Schema.Boolean;
6663
+ readonly reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
6664
+ readonly modelSlot: Schema.NullOr<Schema.String>;
6665
+ readonly provider: Schema.NullOr<Schema.String>;
6666
+ readonly model: Schema.NullOr<Schema.String>;
6667
+ }>>;
6668
+ }>;
6691
6669
  readonly configuredModels: Schema.Union<readonly [Schema.Struct<{
6692
6670
  readonly state: Schema.Literal<"not-recorded">;
6693
6671
  }>, Schema.Struct<{
@@ -7395,8 +7373,8 @@ export declare const inspectionProtocolRegistry: Readonly<{
7395
7373
  }>;
7396
7374
  }>;
7397
7375
  export type InspectionOperationId = keyof typeof inspectionProtocolRegistry;
7398
- export declare const INSPECTION_OPERATION_IDS: readonly ("run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[];
7399
- export declare const InspectionOperationIdSchema: Schema.Literals<readonly ("run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>;
7376
+ export declare const INSPECTION_OPERATION_IDS: readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[];
7377
+ export declare const InspectionOperationIdSchema: Schema.Literals<readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>;
7400
7378
  export declare const InspectionRequestSchema: Schema.Struct<{
7401
7379
  readonly protocol: Schema.Literal<"niceeval.query/v1">;
7402
7380
  readonly operation: Schema.Union<(Schema.Struct<{
@@ -7412,21 +7390,13 @@ export declare const InspectionRequestSchema: Schema.Struct<{
7412
7390
  } & {
7413
7391
  experimentId: Schema.Codec<import("../record/model/identifiers.js").ExperimentId, string, never, never>;
7414
7392
  }> | Schema.Struct<{
7415
- readonly kind: Schema.Literal<"runs.list">;
7393
+ readonly kind: Schema.Literal<"run.list">;
7416
7394
  } & {
7417
7395
  continuation: Schema.optional<Schema.String>;
7418
7396
  }> | Schema.Struct<{
7419
7397
  readonly kind: Schema.Literal<"run.get">;
7420
7398
  } & {
7421
7399
  runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
7422
- }> | Schema.Struct<{
7423
- readonly kind: Schema.Literal<"run.summary">;
7424
- } & {
7425
- runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
7426
- }> | Schema.Struct<{
7427
- readonly kind: Schema.Literal<"run.overview">;
7428
- } & {
7429
- runId: Schema.Codec<import("../record/model/identifiers.js").RunId, string, never, never>;
7430
7400
  }> | Schema.Struct<{
7431
7401
  readonly kind: Schema.Literal<"attempt.get">;
7432
7402
  } & {
@@ -7523,51 +7493,19 @@ export type InspectionOperationFor<Kind extends InspectionOperationId> = Extract
7523
7493
  readonly kind: Kind;
7524
7494
  }>;
7525
7495
  export declare const InspectionSuccessDocumentSchema: Schema.Union<readonly Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>[]>;
7526
- export declare const InspectionExplanationDocumentSchema: Schema.Union<(Schema.Struct<{
7527
- readonly protocol: Schema.Literal<"niceeval.query/v1">;
7528
- readonly source: Schema.Struct<{
7529
- readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
7530
- readonly sealedCutoffIdentity: Schema.String;
7531
- }>;
7532
- readonly issues: Schema.Tuple<readonly []>;
7533
- readonly evidence: Schema.Struct<{
7534
- readonly refs: Schema.$Array<Schema.String>;
7535
- }>;
7536
- readonly sealedCutoff: Schema.Struct<{
7537
- readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
7538
- readonly identity: Schema.String;
7539
- readonly runCount: Schema.Number;
7540
- }>;
7541
- readonly selection: Schema.Struct<{
7542
- readonly requestedRunIds: Schema.$Array<Schema.String>;
7543
- readonly selectedRunIds: Schema.$Array<Schema.String>;
7544
- readonly missingRunIds: Schema.$Array<Schema.String>;
7545
- readonly returnedRunCount: Schema.Number;
7546
- readonly totalRunCount: Schema.Number;
7547
- readonly truncated: Schema.Boolean;
7548
- }>;
7549
- readonly behaviorVersion: Schema.Literal<"2.0.0">;
7550
- readonly outcome: Schema.Literal<"explanation">;
7551
- readonly operation: Schema.Literal<"run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
7552
- readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-activities" | "runner-diagnostics" | "turn-contexts" | "current-project" | "attempt-cost" | "judge-usage" | "execution-traces">[]>;
7553
- }> | Schema.Struct<{
7496
+ export declare const InspectionExplanationDocumentSchema: Schema.Union<Schema.Struct<{
7554
7497
  readonly protocol: Schema.Literal<"niceeval.query/v1">;
7555
7498
  readonly source: Schema.Struct<{
7556
7499
  readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
7557
- readonly sealedCutoffIdentity: Schema.String;
7500
+ readonly publicationCutoffIdentity: Schema.String;
7558
7501
  }>;
7559
7502
  readonly issues: Schema.Tuple<readonly []>;
7560
7503
  readonly evidence: Schema.Struct<{
7561
7504
  readonly refs: Schema.$Array<Schema.String>;
7562
7505
  }>;
7563
- readonly sealedCutoff: Schema.Struct<{
7564
- readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
7565
- readonly identity: Schema.String;
7566
- readonly runCount: Schema.Number;
7567
- readonly runs: Schema.$Array<Schema.Struct<{
7568
- readonly runId: Schema.String;
7569
- readonly logicalSealIdentity: Schema.String;
7570
- }>>;
7506
+ readonly publicationCutoff: Schema.Struct<{
7507
+ readonly storeGeneration: Schema.String;
7508
+ readonly revision: Schema.Number;
7571
7509
  }>;
7572
7510
  readonly selection: Schema.Struct<{
7573
7511
  readonly requestedRunIds: Schema.$Array<Schema.String>;
@@ -7576,20 +7514,20 @@ export declare const InspectionExplanationDocumentSchema: Schema.Union<(Schema.S
7576
7514
  }>;
7577
7515
  readonly behaviorVersion: Schema.Literal<"2.0.0">;
7578
7516
  readonly outcome: Schema.Literal<"explanation">;
7579
- readonly operation: Schema.Literal<"run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
7580
- readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-activities" | "runner-diagnostics" | "turn-contexts" | "current-project" | "attempt-cost" | "judge-usage" | "execution-traces">[]>;
7581
- }>)[]>;
7517
+ readonly operation: Schema.Literal<"run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
7518
+ readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "runner-activities" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-diagnostics" | "turn-contexts" | "current-project" | "attempt-cost" | "judge-usage" | "execution-traces">[]>;
7519
+ }>[]>;
7582
7520
  export declare const InspectionDiscoveryDocumentSchema: Schema.Struct<{
7583
7521
  readonly protocol: Schema.Literal<"niceeval.query/v1">;
7584
7522
  readonly outcome: Schema.Literal<"discovery">;
7585
7523
  readonly operations: Schema.$Array<Schema.Union<Schema.Struct<{
7586
- readonly id: Schema.Literal<"run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
7524
+ readonly id: Schema.Literal<"run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
7587
7525
  }>[]>>;
7588
7526
  }>;
7589
7527
  export declare const InspectionFailureDocumentSchema: Schema.Struct<{
7590
7528
  readonly protocol: Schema.Literal<"niceeval.query/v1">;
7591
7529
  readonly outcome: Schema.Literal<"failure">;
7592
- readonly operation: Schema.NullOr<Schema.Literals<readonly ("run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>>;
7530
+ readonly operation: Schema.NullOr<Schema.Literals<readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>>;
7593
7531
  readonly failure: Schema.Struct<{
7594
7532
  readonly code: Schema.Literals<readonly ["inspection-request-invalid", "inspection-selection-missing", "inspection-source-invalid", "inspection-record-integrity-failure", "inspection-operation-failed", "inspection-result-invalid", "evidence-budget-exceeded", "restart-required", "current-target-unavailable"]>;
7595
7533
  readonly reason: Schema.String;
@@ -7606,7 +7544,7 @@ export declare const InspectionDocumentSchema: Schema.Union<readonly [
7606
7544
  typeof InspectionFailureDocumentSchema
7607
7545
  ]>;
7608
7546
  type Registry = typeof inspectionProtocolRegistry;
7609
- type MetadataFor<Kind extends InspectionOperationId> = Kind extends "runs.list" ? Schema.Schema.Type<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Schema.Type<typeof CompareSuccessMetadataSchema> : Schema.Schema.Type<typeof SuccessMetadataSchema>;
7547
+ type MetadataFor<Kind extends InspectionOperationId> = Kind extends "run.list" ? Schema.Schema.Type<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Schema.Type<typeof CompareSuccessMetadataSchema> : Schema.Schema.Type<typeof SuccessMetadataSchema>;
7610
7548
  type ResultFields<Kind extends InspectionOperationId> = {
7611
7549
  readonly [Field in keyof Registry[Kind]["result"]]: Registry[Kind]["result"][Field] extends Schema.Constraint ? Schema.Schema.Type<Registry[Kind]["result"][Field]> : never;
7612
7550
  };
@@ -7614,7 +7552,7 @@ export type InspectionSuccessDocumentFor<Kind extends InspectionOperationId> = K
7614
7552
  readonly operation: Kind;
7615
7553
  } & ResultFields<Kind> : never;
7616
7554
  export type InspectionSuccessDocument = InspectionSuccessDocumentFor<InspectionOperationId>;
7617
- type SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends "runs.list" ? Schema.Codec.Encoded<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Codec.Encoded<typeof CompareSuccessMetadataSchema> : Schema.Codec.Encoded<typeof SuccessMetadataSchema>) & {
7555
+ type SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends "run.list" ? Schema.Codec.Encoded<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Codec.Encoded<typeof CompareSuccessMetadataSchema> : Schema.Codec.Encoded<typeof SuccessMetadataSchema>) & {
7618
7556
  readonly operation: Kind;
7619
7557
  } & {
7620
7558
  readonly [Field in keyof Registry[Kind]["result"]]: Registry[Kind]["result"][Field] extends Schema.Constraint ? Schema.Codec.Encoded<Registry[Kind]["result"][Field]> : never;