niceeval 0.18.0 → 0.19.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 (679) hide show
  1. package/INDEX.md +4 -2
  2. package/dist/adapter-usage.cjs.map +1 -1
  3. package/dist/adapter-usage.d.cts +1 -1
  4. package/dist/adapter-usage.d.mts +1 -1
  5. package/dist/adapter-usage.d.ts +1 -1
  6. package/dist/adapter.cjs +8 -7
  7. package/dist/adapter.cjs.map +1 -1
  8. package/dist/adapter.d.cts +21 -21
  9. package/dist/adapter.d.mts +21 -21
  10. package/dist/adapter.d.ts +21 -21
  11. package/dist/agents/{effect-runtime.cjs → agent-effects.cjs} +12 -18
  12. package/dist/agents/agent-effects.cjs.map +1 -0
  13. package/dist/agents/agent-effects.d.cts +23 -0
  14. package/dist/agents/agent-effects.d.mts +23 -0
  15. package/dist/agents/agent-effects.d.ts +23 -0
  16. package/dist/agents/agent-effects.js +16 -0
  17. package/dist/agents/agent-effects.js.map +1 -0
  18. package/dist/agents/ai-sdk.cjs +1 -1
  19. package/dist/agents/ai-sdk.cjs.map +1 -1
  20. package/dist/agents/bub.cjs +31 -18
  21. package/dist/agents/bub.cjs.map +1 -1
  22. package/dist/agents/bub.d.cts +9 -12
  23. package/dist/agents/bub.d.mts +9 -12
  24. package/dist/agents/bub.d.ts +9 -12
  25. package/dist/agents/claude-code-native.cjs +2 -2
  26. package/dist/agents/claude-code-native.cjs.map +1 -1
  27. package/dist/agents/claude-code.cjs +17 -11
  28. package/dist/agents/claude-code.cjs.map +1 -1
  29. package/dist/agents/claude-code.d.cts +11 -11
  30. package/dist/agents/claude-code.d.mts +11 -11
  31. package/dist/agents/claude-code.d.ts +11 -11
  32. package/dist/agents/codex-app-server.cjs +2 -2
  33. package/dist/agents/codex-app-server.cjs.map +1 -1
  34. package/dist/agents/codex.cjs +18 -12
  35. package/dist/agents/codex.cjs.map +1 -1
  36. package/dist/agents/codex.d.cts +12 -12
  37. package/dist/agents/codex.d.mts +12 -12
  38. package/dist/agents/codex.d.ts +12 -12
  39. package/dist/agents/deepseek-harness.cjs +2 -2
  40. package/dist/agents/deepseek-harness.cjs.map +1 -1
  41. package/dist/agents/hermes.cjs +3 -3
  42. package/dist/agents/hermes.cjs.map +1 -1
  43. package/dist/agents/index.cjs +3 -3
  44. package/dist/agents/index.cjs.map +1 -1
  45. package/dist/agents/index.d.cts +3 -3
  46. package/dist/agents/index.d.mts +3 -3
  47. package/dist/agents/index.d.ts +3 -3
  48. package/dist/agents/index.js +2 -2
  49. package/dist/agents/index.mjs +2 -2
  50. package/dist/agents/mcp.cjs.map +1 -1
  51. package/dist/agents/mcp.d.cts +2 -2
  52. package/dist/agents/mcp.d.mts +2 -2
  53. package/dist/agents/mcp.d.ts +2 -2
  54. package/dist/agents/omp.cjs +2 -2
  55. package/dist/agents/omp.cjs.map +1 -1
  56. package/dist/agents/openai-compat.cjs +2 -2
  57. package/dist/agents/openai-compat.cjs.map +1 -1
  58. package/dist/agents/openclaw.cjs +3 -3
  59. package/dist/agents/openclaw.cjs.map +1 -1
  60. package/dist/agents/opencode.cjs +16 -4
  61. package/dist/agents/opencode.cjs.map +1 -1
  62. package/dist/agents/plugin-extensions.cjs +71 -0
  63. package/dist/agents/plugin-extensions.cjs.map +1 -0
  64. package/dist/agents/plugin-extensions.d.cts +26 -0
  65. package/dist/agents/plugin-extensions.d.mts +26 -0
  66. package/dist/agents/plugin-extensions.d.ts +26 -0
  67. package/dist/agents/plugin-extensions.js +8 -0
  68. package/dist/agents/plugin-extensions.js.map +1 -0
  69. package/dist/agents/post-setup.cjs +14 -3
  70. package/dist/agents/post-setup.cjs.map +1 -1
  71. package/dist/agents/post-setup.d.cts +4 -2
  72. package/dist/agents/post-setup.d.mts +4 -2
  73. package/dist/agents/post-setup.d.ts +4 -2
  74. package/dist/agents/post-setup.js +8 -6
  75. package/dist/agents/sdk-streams.cjs +3 -3
  76. package/dist/agents/sdk-streams.cjs.map +1 -1
  77. package/dist/agents/{session-slot.cjs → session-key.cjs} +4 -4
  78. package/dist/agents/session-key.cjs.map +1 -0
  79. package/dist/agents/session-key.d.cts +12 -0
  80. package/dist/agents/session-key.d.mts +12 -0
  81. package/dist/agents/session-key.d.ts +12 -0
  82. package/dist/agents/session-key.js +6 -0
  83. package/dist/agents/session-key.js.map +1 -0
  84. package/dist/agents/shared.cjs +2 -2
  85. package/dist/agents/shared.cjs.map +1 -1
  86. package/dist/agents/shared.d.cts +4 -4
  87. package/dist/agents/shared.d.mts +4 -4
  88. package/dist/agents/shared.d.ts +4 -4
  89. package/dist/agents/skills.cjs.map +1 -1
  90. package/dist/agents/skills.d.cts +3 -3
  91. package/dist/agents/skills.d.mts +3 -3
  92. package/dist/agents/skills.d.ts +3 -3
  93. package/dist/agents/types.cjs.map +1 -1
  94. package/dist/agents/types.d.cts +55 -54
  95. package/dist/agents/types.d.mts +55 -54
  96. package/dist/agents/types.d.ts +55 -54
  97. package/dist/agents/ui-message-stream.cjs +4 -4
  98. package/dist/agents/ui-message-stream.cjs.map +1 -1
  99. package/dist/agents/unrecognized-events.cjs +32 -0
  100. package/dist/agents/unrecognized-events.cjs.map +1 -0
  101. package/dist/agents/unrecognized-events.d.cts +8 -0
  102. package/dist/agents/unrecognized-events.d.mts +8 -0
  103. package/dist/agents/unrecognized-events.d.ts +8 -0
  104. package/dist/agents/unrecognized-events.js +6 -0
  105. package/dist/agents/unrecognized-events.js.map +1 -0
  106. package/dist/assertions/api.cjs.map +1 -1
  107. package/dist/assertions/api.d.cts +3 -0
  108. package/dist/assertions/api.d.mts +3 -0
  109. package/dist/assertions/api.d.ts +3 -0
  110. package/dist/assertions/collection.cjs +1 -1
  111. package/dist/assertions/collection.cjs.map +1 -1
  112. package/dist/assertions/judge.cjs +1 -1
  113. package/dist/assertions/judge.cjs.map +1 -1
  114. package/dist/assertions/match.cjs +52 -21
  115. package/dist/assertions/match.cjs.map +1 -1
  116. package/dist/assertions/match.d.cts +16 -5
  117. package/dist/assertions/match.d.mts +16 -5
  118. package/dist/assertions/match.d.ts +16 -5
  119. package/dist/assertions/match.js +96 -94
  120. package/dist/assertions/measurements.cjs +22 -6
  121. package/dist/assertions/measurements.cjs.map +1 -1
  122. package/dist/assertions/measurements.d.cts +8 -1
  123. package/dist/assertions/measurements.d.mts +8 -1
  124. package/dist/assertions/measurements.d.ts +8 -1
  125. package/dist/assertions/numeric.cjs +2 -0
  126. package/dist/assertions/numeric.cjs.map +1 -1
  127. package/dist/assertions/numeric.d.cts +1 -1
  128. package/dist/assertions/numeric.d.mts +1 -1
  129. package/dist/assertions/numeric.d.ts +1 -1
  130. package/dist/assertions/quantity.cjs +42 -0
  131. package/dist/assertions/quantity.cjs.map +1 -0
  132. package/dist/assertions/quantity.d.cts +18 -0
  133. package/dist/assertions/quantity.d.mts +18 -0
  134. package/dist/assertions/quantity.d.ts +18 -0
  135. package/dist/assertions/quantity.js +22 -0
  136. package/dist/assertions/quantity.js.map +1 -0
  137. package/dist/assertions/record/attachment.cjs +2 -0
  138. package/dist/assertions/record/attachment.cjs.map +1 -1
  139. package/dist/assertions/record/codec.cjs +5 -1
  140. package/dist/assertions/record/codec.cjs.map +1 -1
  141. package/dist/assertions/record/model.cjs.map +1 -1
  142. package/dist/assertions/record/model.d.cts +3 -1
  143. package/dist/assertions/record/model.d.mts +3 -1
  144. package/dist/assertions/record/model.d.ts +3 -1
  145. package/dist/assertions/runtime.cjs +11 -6
  146. package/dist/assertions/runtime.cjs.map +1 -1
  147. package/dist/cli/program.cjs +3 -0
  148. package/dist/cli/program.cjs.map +1 -1
  149. package/dist/context/assert-first.cjs +6 -4
  150. package/dist/context/assert-first.cjs.map +1 -1
  151. package/dist/context/assert-first.d.cts +9 -3
  152. package/dist/context/assert-first.d.mts +9 -3
  153. package/dist/context/assert-first.d.ts +9 -3
  154. package/dist/context/notes.cjs +47 -0
  155. package/dist/context/notes.cjs.map +1 -0
  156. package/dist/context/notes.d.cts +10 -0
  157. package/dist/context/notes.d.mts +10 -0
  158. package/dist/context/notes.d.ts +10 -0
  159. package/dist/context/notes.js +6 -0
  160. package/dist/context/notes.js.map +1 -0
  161. package/dist/context/send-failures.cjs +1 -7
  162. package/dist/context/send-failures.cjs.map +1 -1
  163. package/dist/context/send-failures.d.cts +2 -3
  164. package/dist/context/send-failures.d.mts +2 -3
  165. package/dist/context/send-failures.d.ts +2 -3
  166. package/dist/context/send-retry.cjs +0 -1
  167. package/dist/context/send-retry.cjs.map +1 -1
  168. package/dist/context/send-retry.d.cts +1 -2
  169. package/dist/context/send-retry.d.mts +1 -2
  170. package/dist/context/send-retry.d.ts +1 -2
  171. package/dist/context/session.cjs +10 -17
  172. package/dist/context/session.cjs.map +1 -1
  173. package/dist/context/session.d.cts +4 -10
  174. package/dist/context/session.d.mts +4 -10
  175. package/dist/context/session.d.ts +4 -10
  176. package/dist/define.cjs +88 -65
  177. package/dist/define.cjs.map +1 -1
  178. package/dist/define.d.cts +3 -3
  179. package/dist/define.d.mts +3 -3
  180. package/dist/define.d.ts +3 -3
  181. package/dist/eval/cli/contribution.cjs +1 -1
  182. package/dist/eval/cli/contribution.cjs.map +1 -1
  183. package/dist/eval/host/index.cjs +1 -1
  184. package/dist/eval/host/index.cjs.map +1 -1
  185. package/dist/eval/record/evaluation.cjs +1 -1
  186. package/dist/eval/record/evaluation.cjs.map +1 -1
  187. package/dist/eval/record/membership-provenance.d.cts +3 -3
  188. package/dist/eval/record/membership-provenance.d.mts +3 -3
  189. package/dist/eval/record/membership-provenance.d.ts +3 -3
  190. package/dist/eval/record/score.cjs +2 -2
  191. package/dist/eval/record/score.cjs.map +1 -1
  192. package/dist/eval/record/sealed-assertion.cjs +1 -1
  193. package/dist/eval/record/sealed-assertion.cjs.map +1 -1
  194. package/dist/eval/record/verdict.cjs +2 -2
  195. package/dist/eval/record/verdict.cjs.map +1 -1
  196. package/dist/expect/index.cjs +10 -1
  197. package/dist/expect/index.cjs.map +1 -1
  198. package/dist/expect/index.d.cts +3 -1
  199. package/dist/expect/index.d.mts +3 -1
  200. package/dist/expect/index.d.ts +3 -1
  201. package/dist/expect/index.js +92 -76
  202. package/dist/expect/index.mjs +92 -76
  203. package/dist/experiment/host/cli/contribution.cjs +52 -39
  204. package/dist/experiment/host/cli/contribution.cjs.map +1 -1
  205. package/dist/experiment/host/cli/contribution.d.cts +18 -4
  206. package/dist/experiment/host/cli/contribution.d.mts +18 -4
  207. package/dist/experiment/host/cli/contribution.d.ts +18 -4
  208. package/dist/experiment/host/cli/contribution.js +2 -2
  209. package/dist/experiment/host/cli/debug-protocol.cjs +2 -2
  210. package/dist/experiment/host/cli/debug-protocol.cjs.map +1 -1
  211. package/dist/experiment/host/cli/debug-protocol.d.cts +2 -2
  212. package/dist/experiment/host/cli/debug-protocol.d.mts +2 -2
  213. package/dist/experiment/host/cli/debug-protocol.d.ts +2 -2
  214. package/dist/experiment/host/cli/output-protocol.cjs +1 -1
  215. package/dist/experiment/host/cli/output-protocol.cjs.map +1 -1
  216. package/dist/experiment/host/cli/output-protocol.d.cts +2 -2
  217. package/dist/experiment/host/cli/output-protocol.d.mts +2 -2
  218. package/dist/experiment/host/cli/output-protocol.d.ts +2 -2
  219. package/dist/experiment/host/current.cjs +2 -2
  220. package/dist/experiment/host/current.cjs.map +1 -1
  221. package/dist/experiment/host/index.cjs +1 -1
  222. package/dist/experiment/host/index.cjs.map +1 -1
  223. package/dist/experiment/host/operations.cjs +21 -22
  224. package/dist/experiment/host/operations.cjs.map +1 -1
  225. package/dist/experiment/host/runtime.cjs +8 -9
  226. package/dist/experiment/host/runtime.cjs.map +1 -1
  227. package/dist/experiment/host/runtime.d.cts +3 -3
  228. package/dist/experiment/host/runtime.d.mts +3 -3
  229. package/dist/experiment/host/runtime.d.ts +3 -3
  230. package/dist/experiment/host/teardown.cjs +3 -3
  231. package/dist/experiment/host/teardown.cjs.map +1 -1
  232. package/dist/experiment/host/teardown.d.cts +3 -3
  233. package/dist/experiment/host/teardown.d.mts +3 -3
  234. package/dist/experiment/host/teardown.d.ts +3 -3
  235. package/dist/experiment/host/types.cjs.map +1 -1
  236. package/dist/experiment/host/types.d.cts +19 -19
  237. package/dist/experiment/host/types.d.mts +19 -19
  238. package/dist/experiment/host/types.d.ts +19 -19
  239. package/dist/index.cjs +3 -3
  240. package/dist/index.cjs.map +1 -1
  241. package/dist/index.d.cts +3 -3
  242. package/dist/index.d.mts +3 -3
  243. package/dist/index.d.ts +3 -3
  244. package/dist/index.js +2 -2
  245. package/dist/index.mjs +2 -2
  246. package/dist/inspection/assertions.cjs +1 -1
  247. package/dist/inspection/assertions.cjs.map +1 -1
  248. package/dist/inspection/cli/contribution.cjs +8 -7
  249. package/dist/inspection/cli/contribution.cjs.map +1 -1
  250. package/dist/inspection/facts.cjs +4 -4
  251. package/dist/inspection/facts.cjs.map +1 -1
  252. package/dist/inspection/index.cjs +1 -5
  253. package/dist/inspection/index.cjs.map +1 -1
  254. package/dist/inspection/index.d.cts +1 -2
  255. package/dist/inspection/index.d.mts +1 -2
  256. package/dist/inspection/index.d.ts +1 -2
  257. package/dist/inspection/index.js +20 -26
  258. package/dist/inspection/lifecycle.cjs +7 -0
  259. package/dist/inspection/lifecycle.cjs.map +1 -0
  260. package/dist/inspection/lifecycle.d.cts +4 -0
  261. package/dist/inspection/lifecycle.d.mts +4 -0
  262. package/dist/inspection/lifecycle.d.ts +4 -0
  263. package/dist/inspection/lifecycle.js +6 -0
  264. package/dist/inspection/lifecycle.js.map +1 -0
  265. package/dist/inspection/notes.cjs +40 -0
  266. package/dist/inspection/notes.cjs.map +1 -0
  267. package/dist/inspection/notes.d.cts +12 -0
  268. package/dist/inspection/notes.d.mts +12 -0
  269. package/dist/inspection/notes.d.ts +12 -0
  270. package/dist/inspection/notes.js +8 -0
  271. package/dist/inspection/notes.js.map +1 -0
  272. package/dist/inspection/overview.cjs +12 -15
  273. package/dist/inspection/overview.cjs.map +1 -1
  274. package/dist/inspection/overview.d.cts +8 -6
  275. package/dist/inspection/overview.d.mts +8 -6
  276. package/dist/inspection/overview.d.ts +8 -6
  277. package/dist/inspection/planned-attempt.cjs +45 -0
  278. package/dist/inspection/planned-attempt.cjs.map +1 -0
  279. package/dist/inspection/planned-attempt.d.cts +109 -0
  280. package/dist/inspection/planned-attempt.d.mts +109 -0
  281. package/dist/inspection/planned-attempt.d.ts +109 -0
  282. package/dist/inspection/planned-attempt.js +24 -0
  283. package/dist/inspection/planned-attempt.js.map +1 -0
  284. package/dist/inspection/project-result.cjs +5 -5
  285. package/dist/inspection/project-result.cjs.map +1 -1
  286. package/dist/inspection/project-result.d.cts +58 -57
  287. package/dist/inspection/project-result.d.mts +58 -57
  288. package/dist/inspection/project-result.d.ts +58 -57
  289. package/dist/inspection/project-result.js +4 -4
  290. package/dist/inspection/project.cjs +3 -3
  291. package/dist/inspection/project.cjs.map +1 -1
  292. package/dist/inspection/protocol-values.cjs +1 -1
  293. package/dist/inspection/protocol-values.cjs.map +1 -1
  294. package/dist/inspection/protocol-values.d.cts +1 -1
  295. package/dist/inspection/protocol-values.d.mts +1 -1
  296. package/dist/inspection/protocol-values.d.ts +1 -1
  297. package/dist/inspection/protocol.cjs +8 -8
  298. package/dist/inspection/protocol.cjs.map +1 -1
  299. package/dist/inspection/protocol.d.cts +237 -219
  300. package/dist/inspection/protocol.d.mts +237 -219
  301. package/dist/inspection/protocol.d.ts +237 -219
  302. package/dist/inspection/public.cjs +1 -5
  303. package/dist/inspection/public.cjs.map +1 -1
  304. package/dist/inspection/public.d.cts +1 -2
  305. package/dist/inspection/public.d.mts +1 -2
  306. package/dist/inspection/public.d.ts +1 -2
  307. package/dist/inspection/public.js +14 -20
  308. package/dist/inspection/public.mjs +166 -129
  309. package/dist/inspection/query.cjs +1 -1
  310. package/dist/inspection/query.cjs.map +1 -1
  311. package/dist/inspection/results.cjs +61 -52
  312. package/dist/inspection/results.cjs.map +1 -1
  313. package/dist/inspection/results.d.cts +157 -140
  314. package/dist/inspection/results.d.mts +157 -140
  315. package/dist/inspection/results.d.ts +157 -140
  316. package/dist/inspection/select.cjs +33 -28
  317. package/dist/inspection/select.cjs.map +1 -1
  318. package/dist/inspection/source.cjs +1 -1
  319. package/dist/inspection/source.cjs.map +1 -1
  320. package/dist/inspection/sources.cjs +2 -2
  321. package/dist/inspection/sources.cjs.map +1 -1
  322. package/dist/inspection/trace.cjs +9 -8
  323. package/dist/inspection/trace.cjs.map +1 -1
  324. package/dist/inspection/trace.d.cts +4 -4
  325. package/dist/inspection/trace.d.mts +4 -4
  326. package/dist/inspection/trace.d.ts +4 -4
  327. package/dist/loaders/index.cjs +7 -279
  328. package/dist/loaders/index.cjs.map +1 -1
  329. package/dist/loaders/index.d.cts +2 -95
  330. package/dist/loaders/index.d.mts +2 -95
  331. package/dist/loaders/index.d.ts +2 -95
  332. package/dist/loaders/index.js +10 -12
  333. package/dist/loaders/index.mjs +10 -12
  334. package/dist/loaders/runtime.cjs +283 -0
  335. package/dist/loaders/runtime.cjs.map +1 -0
  336. package/dist/loaders/runtime.d.cts +95 -0
  337. package/dist/loaders/runtime.d.mts +95 -0
  338. package/dist/loaders/runtime.d.ts +95 -0
  339. package/dist/loaders/runtime.js +16 -0
  340. package/dist/loaders/runtime.js.map +1 -0
  341. package/dist/migrations/judge-provider.md +6 -6
  342. package/dist/{model-slots.cjs → model-roles.cjs} +12 -12
  343. package/dist/{model-slots.cjs.map → model-roles.cjs.map} +1 -1
  344. package/dist/{model-slots.d.cts → model-roles.d.cts} +10 -10
  345. package/dist/{model-slots.d.mts → model-roles.d.mts} +10 -10
  346. package/dist/{model-slots.d.ts → model-roles.d.ts} +10 -10
  347. package/dist/model-roles.js +14 -0
  348. package/dist/model-roles.js.map +1 -0
  349. package/dist/o11y/adapter-usage-projection.cjs +9 -8
  350. package/dist/o11y/adapter-usage-projection.cjs.map +1 -1
  351. package/dist/o11y/adapter-usage-projection.d.cts +23 -15
  352. package/dist/o11y/adapter-usage-projection.d.mts +23 -15
  353. package/dist/o11y/adapter-usage-projection.d.ts +23 -15
  354. package/dist/o11y/cache-read.cjs +14 -14
  355. package/dist/o11y/cache-read.cjs.map +1 -1
  356. package/dist/o11y/cache-read.d.cts +5 -5
  357. package/dist/o11y/cache-read.d.mts +5 -5
  358. package/dist/o11y/cache-read.d.ts +5 -5
  359. package/dist/o11y/derive.cjs.map +1 -1
  360. package/dist/o11y/derive.d.cts +2 -2
  361. package/dist/o11y/derive.d.mts +2 -2
  362. package/dist/o11y/derive.d.ts +2 -2
  363. package/dist/o11y/eval-usage.cjs +9 -9
  364. package/dist/o11y/eval-usage.cjs.map +1 -1
  365. package/dist/o11y/eval-usage.d.cts +7 -7
  366. package/dist/o11y/eval-usage.d.mts +7 -7
  367. package/dist/o11y/eval-usage.d.ts +7 -7
  368. package/dist/o11y/parsers/bub.cjs +57 -81
  369. package/dist/o11y/parsers/bub.cjs.map +1 -1
  370. package/dist/o11y/parsers/index.cjs.map +1 -1
  371. package/dist/o11y/parsers/index.d.cts +2 -0
  372. package/dist/o11y/parsers/index.d.mts +2 -0
  373. package/dist/o11y/parsers/index.d.ts +2 -0
  374. package/dist/o11y/parsers/opencode.cjs +129 -217
  375. package/dist/o11y/parsers/opencode.cjs.map +1 -1
  376. package/dist/o11y/parsers/opencode.d.cts +2 -5
  377. package/dist/o11y/parsers/opencode.d.mts +2 -5
  378. package/dist/o11y/parsers/opencode.d.ts +2 -5
  379. package/dist/o11y/types.cjs.map +1 -1
  380. package/dist/o11y/types.d.cts +1 -1
  381. package/dist/o11y/types.d.mts +1 -1
  382. package/dist/o11y/types.d.ts +1 -1
  383. package/dist/plugin/contracts.cjs +170 -120
  384. package/dist/plugin/contracts.cjs.map +1 -1
  385. package/dist/plugin/contracts.d.cts +102 -90
  386. package/dist/plugin/contracts.d.mts +102 -90
  387. package/dist/plugin/contracts.d.ts +102 -90
  388. package/dist/plugin/contracts.js +16 -12
  389. package/dist/plugin/index.cjs.map +1 -1
  390. package/dist/plugin/index.d.cts +1 -1
  391. package/dist/plugin/index.d.mts +1 -1
  392. package/dist/plugin/index.d.ts +1 -1
  393. package/dist/plugin/link.cjs +69 -64
  394. package/dist/plugin/link.cjs.map +1 -1
  395. package/dist/plugin/link.d.cts +5 -3
  396. package/dist/plugin/link.d.mts +5 -3
  397. package/dist/plugin/link.d.ts +5 -3
  398. package/dist/plugin/link.js +12 -8
  399. package/dist/record/codec/seal-manifest.d.cts +3 -3
  400. package/dist/record/codec/seal-manifest.d.mts +3 -3
  401. package/dist/record/codec/seal-manifest.d.ts +3 -3
  402. package/dist/record/family/attempt-note/definition.cjs +12 -0
  403. package/dist/record/family/attempt-note/definition.cjs.map +1 -0
  404. package/dist/record/family/attempt-note/definition.d.cts +6 -0
  405. package/dist/record/family/attempt-note/definition.d.mts +6 -0
  406. package/dist/record/family/attempt-note/definition.d.ts +6 -0
  407. package/dist/record/family/attempt-note/definition.js +6 -0
  408. package/dist/record/family/attempt-note/definition.js.map +1 -0
  409. package/dist/record/family/attempt-note/persistence.cjs +10 -0
  410. package/dist/record/family/attempt-note/persistence.cjs.map +1 -0
  411. package/dist/record/family/attempt-note/persistence.d.cts +6 -0
  412. package/dist/record/family/attempt-note/persistence.d.mts +6 -0
  413. package/dist/record/family/attempt-note/persistence.d.ts +6 -0
  414. package/dist/record/family/attempt-note/persistence.js +6 -0
  415. package/dist/record/family/attempt-note/persistence.js.map +1 -0
  416. package/dist/record/family/attempt-note/schema.cjs +20 -0
  417. package/dist/record/family/attempt-note/schema.cjs.map +1 -0
  418. package/dist/record/family/attempt-note/schema.d.cts +21 -0
  419. package/dist/record/family/attempt-note/schema.d.mts +21 -0
  420. package/dist/record/family/attempt-note/schema.d.ts +21 -0
  421. package/dist/record/family/attempt-note/schema.js +10 -0
  422. package/dist/record/family/attempt-note/schema.js.map +1 -0
  423. package/dist/record/family/catalog.cjs +32 -29
  424. package/dist/record/family/catalog.cjs.map +1 -1
  425. package/dist/record/family/catalog.d.cts +7 -2
  426. package/dist/record/family/catalog.d.mts +7 -2
  427. package/dist/record/family/catalog.d.ts +7 -2
  428. package/dist/record/family/current.cjs +48 -45
  429. package/dist/record/family/current.cjs.map +1 -1
  430. package/dist/record/family/current.d.cts +15 -0
  431. package/dist/record/family/current.d.mts +15 -0
  432. package/dist/record/family/current.d.ts +15 -0
  433. package/dist/record/model/index.js +66 -64
  434. package/dist/record/model/run-context.cjs +9 -3
  435. package/dist/record/model/run-context.cjs.map +1 -1
  436. package/dist/record/model/run-context.d.cts +9 -2
  437. package/dist/record/model/run-context.d.mts +9 -2
  438. package/dist/record/model/run-context.d.ts +9 -2
  439. package/dist/record/model/run-context.js +8 -6
  440. package/dist/record/model/seal-manifest.d.cts +1 -1
  441. package/dist/record/model/seal-manifest.d.mts +1 -1
  442. package/dist/record/model/seal-manifest.d.ts +1 -1
  443. package/dist/run/cli/contribution.cjs +6 -32
  444. package/dist/run/cli/contribution.cjs.map +1 -1
  445. package/dist/run/host/runtime.cjs +1 -1
  446. package/dist/run/host/runtime.cjs.map +1 -1
  447. package/dist/run/storage/sqlite.cjs +7 -7
  448. package/dist/run/storage/sqlite.cjs.map +1 -1
  449. package/dist/runner/adapter-usage.cjs +5 -3
  450. package/dist/runner/adapter-usage.cjs.map +1 -1
  451. package/dist/runner/adapter-usage.d.cts +2 -2
  452. package/dist/runner/adapter-usage.d.mts +2 -2
  453. package/dist/runner/adapter-usage.d.ts +2 -2
  454. package/dist/runner/adoption.cjs +9 -12
  455. package/dist/runner/adoption.cjs.map +1 -1
  456. package/dist/runner/attempt-notes.cjs +8 -0
  457. package/dist/runner/attempt-notes.cjs.map +1 -0
  458. package/dist/runner/attempt-notes.d.cts +4 -0
  459. package/dist/runner/attempt-notes.d.mts +4 -0
  460. package/dist/runner/attempt-notes.d.ts +4 -0
  461. package/dist/runner/attempt-notes.js +8 -0
  462. package/dist/runner/attempt-notes.js.map +1 -0
  463. package/dist/runner/attempt.cjs +61 -73
  464. package/dist/runner/attempt.cjs.map +1 -1
  465. package/dist/runner/attempt.d.cts +3 -3
  466. package/dist/runner/attempt.d.mts +3 -3
  467. package/dist/runner/attempt.d.ts +3 -3
  468. package/dist/runner/command-plan.cjs +21 -26
  469. package/dist/runner/command-plan.cjs.map +1 -1
  470. package/dist/runner/command-plan.d.cts +4 -4
  471. package/dist/runner/command-plan.d.mts +4 -4
  472. package/dist/runner/command-plan.d.ts +4 -4
  473. package/dist/runner/command-plan.js +4 -4
  474. package/dist/runner/config-identity.cjs.map +1 -1
  475. package/dist/runner/config-identity.d.cts +2 -2
  476. package/dist/runner/config-identity.d.mts +2 -2
  477. package/dist/runner/config-identity.d.ts +2 -2
  478. package/dist/runner/discover.cjs +6 -6
  479. package/dist/runner/discover.cjs.map +1 -1
  480. package/dist/runner/eval-selection.cjs +2 -2
  481. package/dist/runner/eval-selection.cjs.map +1 -1
  482. package/dist/runner/eval-selection.d.cts +2 -2
  483. package/dist/runner/eval-selection.d.mts +2 -2
  484. package/dist/runner/eval-selection.d.ts +2 -2
  485. package/dist/runner/feedback/human.cjs +1 -1
  486. package/dist/runner/feedback/human.cjs.map +1 -1
  487. package/dist/runner/feedback/json.cjs +4 -2
  488. package/dist/runner/feedback/json.cjs.map +1 -1
  489. package/dist/runner/feedback/json.d.cts +1 -1
  490. package/dist/runner/feedback/json.d.mts +1 -1
  491. package/dist/runner/feedback/json.d.ts +1 -1
  492. package/dist/runner/feedback/sink.cjs +1 -1
  493. package/dist/runner/feedback/sink.cjs.map +1 -1
  494. package/dist/runner/feedback/sink.d.cts +1 -1
  495. package/dist/runner/feedback/sink.d.mts +1 -1
  496. package/dist/runner/feedback/sink.d.ts +1 -1
  497. package/dist/runner/fingerprint.cjs +1 -1
  498. package/dist/runner/fingerprint.cjs.map +1 -1
  499. package/dist/runner/project-target.cjs.map +1 -1
  500. package/dist/runner/project-target.d.cts +2 -2
  501. package/dist/runner/project-target.d.mts +2 -2
  502. package/dist/runner/project-target.d.ts +2 -2
  503. package/dist/runner/record/attachments.cjs +2 -2
  504. package/dist/runner/record/attachments.cjs.map +1 -1
  505. package/dist/runner/record/planning.cjs +8 -2
  506. package/dist/runner/record/planning.cjs.map +1 -1
  507. package/dist/runner/record.cjs +2 -0
  508. package/dist/runner/record.cjs.map +1 -1
  509. package/dist/runner/report.cjs +3 -3
  510. package/dist/runner/report.cjs.map +1 -1
  511. package/dist/runner/report.d.cts +1 -1
  512. package/dist/runner/report.d.mts +1 -1
  513. package/dist/runner/report.d.ts +1 -1
  514. package/dist/runner/reuse-plan.cjs +2 -2
  515. package/dist/runner/reuse-plan.cjs.map +1 -1
  516. package/dist/runner/run.cjs +10 -45
  517. package/dist/runner/run.cjs.map +1 -1
  518. package/dist/runner/sandbox-pool.cjs +1 -2
  519. package/dist/runner/sandbox-pool.cjs.map +1 -1
  520. package/dist/runner/setup-prefix-preparation.cjs +1 -1
  521. package/dist/runner/setup-prefix-preparation.cjs.map +1 -1
  522. package/dist/runner/teardown-registry.cjs +2 -2
  523. package/dist/runner/teardown-registry.cjs.map +1 -1
  524. package/dist/runner/teardown-registry.d.cts +1 -1
  525. package/dist/runner/teardown-registry.d.mts +1 -1
  526. package/dist/runner/teardown-registry.d.ts +1 -1
  527. package/dist/runner/types.cjs +4 -4
  528. package/dist/runner/types.cjs.map +1 -1
  529. package/dist/runner/types.d.cts +64 -93
  530. package/dist/runner/types.d.mts +64 -93
  531. package/dist/runner/types.d.ts +64 -93
  532. package/dist/runner/types.js +2 -2
  533. package/dist/sandbox/action.cjs +1 -1
  534. package/dist/sandbox/action.cjs.map +1 -1
  535. package/dist/sandbox/cli/contribution.cjs +17 -14
  536. package/dist/sandbox/cli/contribution.cjs.map +1 -1
  537. package/dist/sandbox/cli/contribution.d.cts +1 -1
  538. package/dist/sandbox/cli/contribution.d.mts +1 -1
  539. package/dist/sandbox/cli/contribution.d.ts +1 -1
  540. package/dist/sandbox/commands.cjs +1 -1
  541. package/dist/sandbox/commands.cjs.map +1 -1
  542. package/dist/sandbox/commands.d.cts +1 -1
  543. package/dist/sandbox/commands.d.mts +1 -1
  544. package/dist/sandbox/commands.d.ts +1 -1
  545. package/dist/sandbox/compose.cjs +2 -2
  546. package/dist/sandbox/compose.cjs.map +1 -1
  547. package/dist/sandbox/docker-profile/registry.cjs +5 -9
  548. package/dist/sandbox/docker-profile/registry.cjs.map +1 -1
  549. package/dist/sandbox/docker-profile/registry.d.cts +0 -3
  550. package/dist/sandbox/docker-profile/registry.d.mts +0 -3
  551. package/dist/sandbox/docker-profile/registry.d.ts +0 -3
  552. package/dist/sandbox/docker-profile/registry.js +6 -12
  553. package/dist/sandbox/docker-profile/runtime.cjs +1 -1
  554. package/dist/sandbox/docker-profile/runtime.cjs.map +1 -1
  555. package/dist/sandbox/docker-profile/schema.cjs +12 -16
  556. package/dist/sandbox/docker-profile/schema.cjs.map +1 -1
  557. package/dist/sandbox/docker-profile/schema.d.cts +2 -6
  558. package/dist/sandbox/docker-profile/schema.d.mts +2 -6
  559. package/dist/sandbox/docker-profile/schema.d.ts +2 -6
  560. package/dist/sandbox/docker-profile/schema.js +24 -32
  561. package/dist/sandbox/incus.cjs +2 -2
  562. package/dist/sandbox/incus.cjs.map +1 -1
  563. package/dist/sandbox/index.cjs +4 -35
  564. package/dist/sandbox/index.cjs.map +1 -1
  565. package/dist/sandbox/index.d.cts +4 -8
  566. package/dist/sandbox/index.d.mts +4 -8
  567. package/dist/sandbox/index.d.ts +4 -8
  568. package/dist/sandbox/index.js +116 -172
  569. package/dist/sandbox/index.mjs +116 -172
  570. package/dist/sandbox/layer.cjs +3 -3
  571. package/dist/sandbox/layer.cjs.map +1 -1
  572. package/dist/sandbox/link.cjs +5 -0
  573. package/dist/sandbox/link.cjs.map +1 -1
  574. package/dist/sandbox/link.d.cts +3 -0
  575. package/dist/sandbox/link.d.mts +3 -0
  576. package/dist/sandbox/link.d.ts +3 -0
  577. package/dist/sandbox/runtime.cjs +9 -4
  578. package/dist/sandbox/runtime.cjs.map +1 -1
  579. package/dist/shared/failure-class.cjs +5 -5
  580. package/dist/shared/failure-class.cjs.map +1 -1
  581. package/dist/shared/failure-class.d.cts +4 -10
  582. package/dist/shared/failure-class.d.mts +4 -10
  583. package/dist/shared/failure-class.d.ts +4 -10
  584. package/dist/shared/types.cjs.map +1 -1
  585. package/dist/shared/types.d.cts +1 -1
  586. package/dist/shared/types.d.mts +1 -1
  587. package/dist/shared/types.d.ts +1 -1
  588. package/dist/show/contribution.cjs +17 -2
  589. package/dist/show/contribution.cjs.map +1 -1
  590. package/dist/show/contribution.d.cts +14 -0
  591. package/dist/show/contribution.d.mts +14 -0
  592. package/dist/show/contribution.d.ts +14 -0
  593. package/dist/show/model.cjs +8 -5
  594. package/dist/show/model.cjs.map +1 -1
  595. package/dist/show/model.d.cts +11 -8
  596. package/dist/show/model.d.mts +11 -8
  597. package/dist/show/model.d.ts +11 -8
  598. package/dist/show/render.cjs +34 -22
  599. package/dist/show/render.cjs.map +1 -1
  600. package/dist/sources/projector.cjs +1 -1
  601. package/dist/sources/projector.cjs.map +1 -1
  602. package/dist/types.cjs +1 -1
  603. package/dist/types.cjs.map +1 -1
  604. package/dist/types.d.cts +1 -1
  605. package/dist/types.d.mts +1 -1
  606. package/dist/types.d.ts +1 -1
  607. package/dist/types.js +2 -2
  608. package/dist/view/app-dist/.vite/manifest.json +2 -2
  609. package/dist/view/app-dist/assets/{index-B3ijZRph.js → index-CxrOUvHC.js} +17 -17
  610. package/dist/view/app-dist/assets/{quality-cost-scatter-B--DfJ9s.js → quality-cost-scatter-B6Aiss7x.js} +1 -1
  611. package/dist/view/app-dist/index.html +1 -1
  612. package/dist/view/cli/contribution.cjs +1 -1
  613. package/dist/view/cli/contribution.cjs.map +1 -1
  614. package/dist/view/function-runtime.mjs +318 -121
  615. package/dist/view/http-protocol.d.cts +1 -1
  616. package/dist/view/http-protocol.d.mts +1 -1
  617. package/dist/view/http-protocol.d.ts +1 -1
  618. package/dist/view/inspection-host.cjs +2 -2
  619. package/dist/view/inspection-host.cjs.map +1 -1
  620. package/dist/view/inspection-host.d.cts +349 -331
  621. package/dist/view/inspection-host.d.mts +349 -331
  622. package/dist/view/inspection-host.d.ts +349 -331
  623. package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +6 -6
  624. package/docs-site/zh/examples/integrations/claude-sdk.mdx +5 -5
  625. package/docs-site/zh/examples/integrations/codex-sdk.mdx +4 -4
  626. package/docs-site/zh/examples/integrations/langgraph.mdx +4 -4
  627. package/docs-site/zh/examples/integrations/pi-sdk.mdx +5 -5
  628. package/docs-site/zh/explanation/adapter.mdx +6 -6
  629. package/docs-site/zh/explanation/assert.mdx +7 -7
  630. package/docs-site/zh/explanation/drive.mdx +4 -4
  631. package/docs-site/zh/explanation/hitl.mdx +2 -2
  632. package/docs-site/zh/explanation/judge.mdx +2 -2
  633. package/docs-site/zh/introduction.mdx +2 -2
  634. package/docs-site/zh/reference/builtin-agents.mdx +46 -49
  635. package/docs-site/zh/reference/cli.mdx +16 -14
  636. package/docs-site/zh/reference/define-agent.mdx +19 -19
  637. package/docs-site/zh/reference/define-config.mdx +7 -15
  638. package/docs-site/zh/reference/define-eval.mdx +20 -14
  639. package/docs-site/zh/reference/define-experiment.mdx +18 -39
  640. package/docs-site/zh/reference/events.mdx +1 -1
  641. package/docs-site/zh/reference/expect.mdx +21 -0
  642. package/docs-site/zh/reference/official-adapters.mdx +12 -5
  643. package/docs-site/zh/troubleshooting/debugging.mdx +2 -2
  644. package/docs-site/zh/troubleshooting/recover-after-kill.mdx +1 -1
  645. package/docs-site/zh/tutorials/agent-onboarding.mdx +2 -2
  646. package/docs-site/zh/tutorials/authoring.mdx +2 -2
  647. package/docs-site/zh/tutorials/compare-runs.mdx +1 -1
  648. package/docs-site/zh/tutorials/concurrency.mdx +8 -8
  649. package/docs-site/zh/tutorials/configuration.mdx +5 -5
  650. package/docs-site/zh/tutorials/control-run-cost.mdx +19 -19
  651. package/docs-site/zh/tutorials/eval-groups.mdx +1 -1
  652. package/docs-site/zh/tutorials/evaluation-kinds.mdx +5 -5
  653. package/docs-site/zh/tutorials/experiment-services.mdx +32 -32
  654. package/docs-site/zh/tutorials/handle-execution-failures.mdx +2 -28
  655. package/docs-site/zh/tutorials/plugins.mdx +49 -143
  656. package/docs-site/zh/tutorials/sandbox-agent.mdx +1 -1
  657. package/docs-site/zh/tutorials/sandbox-reuse.mdx +7 -7
  658. package/docs-site/zh/tutorials/upgrade-0-18.mdx +1 -1
  659. package/docs-site/zh/tutorials/upgrade-0-19.mdx +121 -0
  660. package/docs-site/zh/tutorials/upgrade-0-20.mdx +12 -0
  661. package/docs-site/zh/tutorials/verify-judge.mdx +2 -2
  662. package/docs-site/zh/tutorials/viewing-results.mdx +2 -2
  663. package/docs-site/zh/tutorials/write-experiment.mdx +1 -1
  664. package/docs-site/zh/tutorials/write-send.mdx +13 -13
  665. package/package.json +1 -1
  666. package/dist/agents/effect-runtime.cjs.map +0 -1
  667. package/dist/agents/effect-runtime.d.cts +0 -29
  668. package/dist/agents/effect-runtime.d.mts +0 -29
  669. package/dist/agents/effect-runtime.d.ts +0 -29
  670. package/dist/agents/effect-runtime.js +0 -16
  671. package/dist/agents/effect-runtime.js.map +0 -1
  672. package/dist/agents/session-slot.cjs.map +0 -1
  673. package/dist/agents/session-slot.d.cts +0 -12
  674. package/dist/agents/session-slot.d.mts +0 -12
  675. package/dist/agents/session-slot.d.ts +0 -12
  676. package/dist/agents/session-slot.js +0 -6
  677. package/dist/agents/session-slot.js.map +0 -1
  678. package/dist/model-slots.js +0 -14
  679. package/dist/model-slots.js.map +0 -1
@@ -7,80 +7,96 @@ const __niceevalExport1 = __niceevalCanonical["atLeast"];
7
7
  export { __niceevalExport1 as atLeast };
8
8
  const __niceevalExport2 = __niceevalCanonical["atMost"];
9
9
  export { __niceevalExport2 as atMost };
10
- const __niceevalExport3 = __niceevalCanonical["commandMatch"];
11
- export { __niceevalExport3 as commandMatch };
12
- const __niceevalExport4 = __niceevalCanonical["commandSucceeded"];
13
- export { __niceevalExport4 as commandSucceeded };
14
- const __niceevalExport5 = __niceevalCanonical["countWhere"];
15
- export { __niceevalExport5 as countWhere };
16
- const __niceevalExport6 = __niceevalCanonical["defineContextMatch"];
17
- export { __niceevalExport6 as defineContextMatch };
18
- const __niceevalExport7 = __niceevalCanonical["defineJudge"];
19
- export { __niceevalExport7 as defineJudge };
20
- const __niceevalExport8 = __niceevalCanonical["defineMaterialMatch"];
21
- export { __niceevalExport8 as defineMaterialMatch };
22
- const __niceevalExport9 = __niceevalCanonical["defineScoreMatch"];
23
- export { __niceevalExport9 as defineScoreMatch };
24
- const __niceevalExport10 = __niceevalCanonical["defineValueMatch"];
25
- export { __niceevalExport10 as defineValueMatch };
26
- const __niceevalExport11 = __niceevalCanonical["equals"];
27
- export { __niceevalExport11 as equals };
28
- const __niceevalExport12 = __niceevalCanonical["eventMatch"];
29
- export { __niceevalExport12 as eventMatch };
30
- const __niceevalExport13 = __niceevalCanonical["excludes"];
31
- export { __niceevalExport13 as excludes };
32
- const __niceevalExport14 = __niceevalCanonical["factuality"];
33
- export { __niceevalExport14 as factuality };
34
- const __niceevalExport15 = __niceevalCanonical["faithfulness"];
35
- export { __niceevalExport15 as faithfulness };
36
- const __niceevalExport16 = __niceevalCanonical["filterWhere"];
37
- export { __niceevalExport16 as filterWhere };
38
- const __niceevalExport17 = __niceevalCanonical["greaterThan"];
39
- export { __niceevalExport17 as greaterThan };
40
- const __niceevalExport18 = __niceevalCanonical["hasSections"];
41
- export { __niceevalExport18 as hasSections };
42
- const __niceevalExport19 = __niceevalCanonical["inOrder"];
43
- export { __niceevalExport19 as inOrder };
44
- const __niceevalExport20 = __niceevalCanonical["includes"];
45
- export { __niceevalExport20 as includes };
46
- const __niceevalExport21 = __niceevalCanonical["includesUrl"];
47
- export { __niceevalExport21 as includesUrl };
48
- const __niceevalExport22 = __niceevalCanonical["instructionFollowing"];
49
- export { __niceevalExport22 as instructionFollowing };
50
- const __niceevalExport23 = __niceevalCanonical["isDefined"];
51
- export { __niceevalExport23 as isDefined };
52
- const __niceevalExport24 = __niceevalCanonical["isFalse"];
53
- export { __niceevalExport24 as isFalse };
54
- const __niceevalExport25 = __niceevalCanonical["isTrue"];
55
- export { __niceevalExport25 as isTrue };
56
- const __niceevalExport26 = __niceevalCanonical["jsonMatch"];
57
- export { __niceevalExport26 as jsonMatch };
58
- const __niceevalExport27 = __niceevalCanonical["lessThan"];
59
- export { __niceevalExport27 as lessThan };
60
- const __niceevalExport28 = __niceevalCanonical["mapEach"];
61
- export { __niceevalExport28 as mapEach };
62
- const __niceevalExport29 = __niceevalCanonical["mapValue"];
63
- export { __niceevalExport29 as mapValue };
64
- const __niceevalExport30 = __niceevalCanonical["matches"];
65
- export { __niceevalExport30 as matches };
66
- const __niceevalExport31 = __niceevalCanonical["measured"];
67
- export { __niceevalExport31 as measured };
68
- const __niceevalExport32 = __niceevalCanonical["not"];
69
- export { __niceevalExport32 as not };
70
- const __niceevalExport33 = __niceevalCanonical["or"];
71
- export { __niceevalExport33 as or };
72
- const __niceevalExport34 = __niceevalCanonical["pairwisePreference"];
73
- export { __niceevalExport34 as pairwisePreference };
74
- const __niceevalExport35 = __niceevalCanonical["pattern"];
75
- export { __niceevalExport35 as pattern };
76
- const __niceevalExport36 = __niceevalCanonical["quantile"];
77
- export { __niceevalExport36 as quantile };
78
- const __niceevalExport37 = __niceevalCanonical["referencesAnyPath"];
79
- export { __niceevalExport37 as referencesAnyPath };
80
- const __niceevalExport38 = __niceevalCanonical["satisfies"];
81
- export { __niceevalExport38 as satisfies };
82
- const __niceevalExport39 = __niceevalCanonical["similarity"];
83
- export { __niceevalExport39 as similarity };
84
- const __niceevalExport40 = __niceevalCanonical["toolMatch"];
85
- export { __niceevalExport40 as toolMatch };
10
+ const __niceevalExport3 = __niceevalCanonical["between"];
11
+ export { __niceevalExport3 as between };
12
+ const __niceevalExport4 = __niceevalCanonical["bytes"];
13
+ export { __niceevalExport4 as bytes };
14
+ const __niceevalExport5 = __niceevalCanonical["commandMatch"];
15
+ export { __niceevalExport5 as commandMatch };
16
+ const __niceevalExport6 = __niceevalCanonical["commandSucceeded"];
17
+ export { __niceevalExport6 as commandSucceeded };
18
+ const __niceevalExport7 = __niceevalCanonical["count"];
19
+ export { __niceevalExport7 as count };
20
+ const __niceevalExport8 = __niceevalCanonical["countWhere"];
21
+ export { __niceevalExport8 as countWhere };
22
+ const __niceevalExport9 = __niceevalCanonical["defineContextMatch"];
23
+ export { __niceevalExport9 as defineContextMatch };
24
+ const __niceevalExport10 = __niceevalCanonical["defineJudge"];
25
+ export { __niceevalExport10 as defineJudge };
26
+ const __niceevalExport11 = __niceevalCanonical["defineMaterialMatch"];
27
+ export { __niceevalExport11 as defineMaterialMatch };
28
+ const __niceevalExport12 = __niceevalCanonical["defineScoreMatch"];
29
+ export { __niceevalExport12 as defineScoreMatch };
30
+ const __niceevalExport13 = __niceevalCanonical["defineValueMatch"];
31
+ export { __niceevalExport13 as defineValueMatch };
32
+ const __niceevalExport14 = __niceevalCanonical["equals"];
33
+ export { __niceevalExport14 as equals };
34
+ const __niceevalExport15 = __niceevalCanonical["eventMatch"];
35
+ export { __niceevalExport15 as eventMatch };
36
+ const __niceevalExport16 = __niceevalCanonical["excludes"];
37
+ export { __niceevalExport16 as excludes };
38
+ const __niceevalExport17 = __niceevalCanonical["factuality"];
39
+ export { __niceevalExport17 as factuality };
40
+ const __niceevalExport18 = __niceevalCanonical["faithfulness"];
41
+ export { __niceevalExport18 as faithfulness };
42
+ const __niceevalExport19 = __niceevalCanonical["filterWhere"];
43
+ export { __niceevalExport19 as filterWhere };
44
+ const __niceevalExport20 = __niceevalCanonical["greaterThan"];
45
+ export { __niceevalExport20 as greaterThan };
46
+ const __niceevalExport21 = __niceevalCanonical["hasSections"];
47
+ export { __niceevalExport21 as hasSections };
48
+ const __niceevalExport22 = __niceevalCanonical["inOrder"];
49
+ export { __niceevalExport22 as inOrder };
50
+ const __niceevalExport23 = __niceevalCanonical["includes"];
51
+ export { __niceevalExport23 as includes };
52
+ const __niceevalExport24 = __niceevalCanonical["includesUrl"];
53
+ export { __niceevalExport24 as includesUrl };
54
+ const __niceevalExport25 = __niceevalCanonical["instructionFollowing"];
55
+ export { __niceevalExport25 as instructionFollowing };
56
+ const __niceevalExport26 = __niceevalCanonical["isDefined"];
57
+ export { __niceevalExport26 as isDefined };
58
+ const __niceevalExport27 = __niceevalCanonical["isFalse"];
59
+ export { __niceevalExport27 as isFalse };
60
+ const __niceevalExport28 = __niceevalCanonical["isTrue"];
61
+ export { __niceevalExport28 as isTrue };
62
+ const __niceevalExport29 = __niceevalCanonical["jsonMatch"];
63
+ export { __niceevalExport29 as jsonMatch };
64
+ const __niceevalExport30 = __niceevalCanonical["lessThan"];
65
+ export { __niceevalExport30 as lessThan };
66
+ const __niceevalExport31 = __niceevalCanonical["mapEach"];
67
+ export { __niceevalExport31 as mapEach };
68
+ const __niceevalExport32 = __niceevalCanonical["mapValue"];
69
+ export { __niceevalExport32 as mapValue };
70
+ const __niceevalExport33 = __niceevalCanonical["matches"];
71
+ export { __niceevalExport33 as matches };
72
+ const __niceevalExport34 = __niceevalCanonical["measured"];
73
+ export { __niceevalExport34 as measured };
74
+ const __niceevalExport35 = __niceevalCanonical["ms"];
75
+ export { __niceevalExport35 as ms };
76
+ const __niceevalExport36 = __niceevalCanonical["not"];
77
+ export { __niceevalExport36 as not };
78
+ const __niceevalExport37 = __niceevalCanonical["or"];
79
+ export { __niceevalExport37 as or };
80
+ const __niceevalExport38 = __niceevalCanonical["pairwisePreference"];
81
+ export { __niceevalExport38 as pairwisePreference };
82
+ const __niceevalExport39 = __niceevalCanonical["pattern"];
83
+ export { __niceevalExport39 as pattern };
84
+ const __niceevalExport40 = __niceevalCanonical["quantile"];
85
+ export { __niceevalExport40 as quantile };
86
+ const __niceevalExport41 = __niceevalCanonical["ratio"];
87
+ export { __niceevalExport41 as ratio };
88
+ const __niceevalExport42 = __niceevalCanonical["referencesAnyPath"];
89
+ export { __niceevalExport42 as referencesAnyPath };
90
+ const __niceevalExport43 = __niceevalCanonical["satisfies"];
91
+ export { __niceevalExport43 as satisfies };
92
+ const __niceevalExport44 = __niceevalCanonical["seconds"];
93
+ export { __niceevalExport44 as seconds };
94
+ const __niceevalExport45 = __niceevalCanonical["similarity"];
95
+ export { __niceevalExport45 as similarity };
96
+ const __niceevalExport46 = __niceevalCanonical["tokens"];
97
+ export { __niceevalExport46 as tokens };
98
+ const __niceevalExport47 = __niceevalCanonical["toolMatch"];
99
+ export { __niceevalExport47 as toolMatch };
100
+ const __niceevalExport48 = __niceevalCanonical["usd"];
101
+ export { __niceevalExport48 as usd };
86
102
  //# sourceMappingURL=index.js.map
@@ -7,80 +7,96 @@ const __niceevalExport1 = __niceevalCanonical["atLeast"];
7
7
  export { __niceevalExport1 as atLeast };
8
8
  const __niceevalExport2 = __niceevalCanonical["atMost"];
9
9
  export { __niceevalExport2 as atMost };
10
- const __niceevalExport3 = __niceevalCanonical["commandMatch"];
11
- export { __niceevalExport3 as commandMatch };
12
- const __niceevalExport4 = __niceevalCanonical["commandSucceeded"];
13
- export { __niceevalExport4 as commandSucceeded };
14
- const __niceevalExport5 = __niceevalCanonical["countWhere"];
15
- export { __niceevalExport5 as countWhere };
16
- const __niceevalExport6 = __niceevalCanonical["defineContextMatch"];
17
- export { __niceevalExport6 as defineContextMatch };
18
- const __niceevalExport7 = __niceevalCanonical["defineJudge"];
19
- export { __niceevalExport7 as defineJudge };
20
- const __niceevalExport8 = __niceevalCanonical["defineMaterialMatch"];
21
- export { __niceevalExport8 as defineMaterialMatch };
22
- const __niceevalExport9 = __niceevalCanonical["defineScoreMatch"];
23
- export { __niceevalExport9 as defineScoreMatch };
24
- const __niceevalExport10 = __niceevalCanonical["defineValueMatch"];
25
- export { __niceevalExport10 as defineValueMatch };
26
- const __niceevalExport11 = __niceevalCanonical["equals"];
27
- export { __niceevalExport11 as equals };
28
- const __niceevalExport12 = __niceevalCanonical["eventMatch"];
29
- export { __niceevalExport12 as eventMatch };
30
- const __niceevalExport13 = __niceevalCanonical["excludes"];
31
- export { __niceevalExport13 as excludes };
32
- const __niceevalExport14 = __niceevalCanonical["factuality"];
33
- export { __niceevalExport14 as factuality };
34
- const __niceevalExport15 = __niceevalCanonical["faithfulness"];
35
- export { __niceevalExport15 as faithfulness };
36
- const __niceevalExport16 = __niceevalCanonical["filterWhere"];
37
- export { __niceevalExport16 as filterWhere };
38
- const __niceevalExport17 = __niceevalCanonical["greaterThan"];
39
- export { __niceevalExport17 as greaterThan };
40
- const __niceevalExport18 = __niceevalCanonical["hasSections"];
41
- export { __niceevalExport18 as hasSections };
42
- const __niceevalExport19 = __niceevalCanonical["inOrder"];
43
- export { __niceevalExport19 as inOrder };
44
- const __niceevalExport20 = __niceevalCanonical["includes"];
45
- export { __niceevalExport20 as includes };
46
- const __niceevalExport21 = __niceevalCanonical["includesUrl"];
47
- export { __niceevalExport21 as includesUrl };
48
- const __niceevalExport22 = __niceevalCanonical["instructionFollowing"];
49
- export { __niceevalExport22 as instructionFollowing };
50
- const __niceevalExport23 = __niceevalCanonical["isDefined"];
51
- export { __niceevalExport23 as isDefined };
52
- const __niceevalExport24 = __niceevalCanonical["isFalse"];
53
- export { __niceevalExport24 as isFalse };
54
- const __niceevalExport25 = __niceevalCanonical["isTrue"];
55
- export { __niceevalExport25 as isTrue };
56
- const __niceevalExport26 = __niceevalCanonical["jsonMatch"];
57
- export { __niceevalExport26 as jsonMatch };
58
- const __niceevalExport27 = __niceevalCanonical["lessThan"];
59
- export { __niceevalExport27 as lessThan };
60
- const __niceevalExport28 = __niceevalCanonical["mapEach"];
61
- export { __niceevalExport28 as mapEach };
62
- const __niceevalExport29 = __niceevalCanonical["mapValue"];
63
- export { __niceevalExport29 as mapValue };
64
- const __niceevalExport30 = __niceevalCanonical["matches"];
65
- export { __niceevalExport30 as matches };
66
- const __niceevalExport31 = __niceevalCanonical["measured"];
67
- export { __niceevalExport31 as measured };
68
- const __niceevalExport32 = __niceevalCanonical["not"];
69
- export { __niceevalExport32 as not };
70
- const __niceevalExport33 = __niceevalCanonical["or"];
71
- export { __niceevalExport33 as or };
72
- const __niceevalExport34 = __niceevalCanonical["pairwisePreference"];
73
- export { __niceevalExport34 as pairwisePreference };
74
- const __niceevalExport35 = __niceevalCanonical["pattern"];
75
- export { __niceevalExport35 as pattern };
76
- const __niceevalExport36 = __niceevalCanonical["quantile"];
77
- export { __niceevalExport36 as quantile };
78
- const __niceevalExport37 = __niceevalCanonical["referencesAnyPath"];
79
- export { __niceevalExport37 as referencesAnyPath };
80
- const __niceevalExport38 = __niceevalCanonical["satisfies"];
81
- export { __niceevalExport38 as satisfies };
82
- const __niceevalExport39 = __niceevalCanonical["similarity"];
83
- export { __niceevalExport39 as similarity };
84
- const __niceevalExport40 = __niceevalCanonical["toolMatch"];
85
- export { __niceevalExport40 as toolMatch };
10
+ const __niceevalExport3 = __niceevalCanonical["between"];
11
+ export { __niceevalExport3 as between };
12
+ const __niceevalExport4 = __niceevalCanonical["bytes"];
13
+ export { __niceevalExport4 as bytes };
14
+ const __niceevalExport5 = __niceevalCanonical["commandMatch"];
15
+ export { __niceevalExport5 as commandMatch };
16
+ const __niceevalExport6 = __niceevalCanonical["commandSucceeded"];
17
+ export { __niceevalExport6 as commandSucceeded };
18
+ const __niceevalExport7 = __niceevalCanonical["count"];
19
+ export { __niceevalExport7 as count };
20
+ const __niceevalExport8 = __niceevalCanonical["countWhere"];
21
+ export { __niceevalExport8 as countWhere };
22
+ const __niceevalExport9 = __niceevalCanonical["defineContextMatch"];
23
+ export { __niceevalExport9 as defineContextMatch };
24
+ const __niceevalExport10 = __niceevalCanonical["defineJudge"];
25
+ export { __niceevalExport10 as defineJudge };
26
+ const __niceevalExport11 = __niceevalCanonical["defineMaterialMatch"];
27
+ export { __niceevalExport11 as defineMaterialMatch };
28
+ const __niceevalExport12 = __niceevalCanonical["defineScoreMatch"];
29
+ export { __niceevalExport12 as defineScoreMatch };
30
+ const __niceevalExport13 = __niceevalCanonical["defineValueMatch"];
31
+ export { __niceevalExport13 as defineValueMatch };
32
+ const __niceevalExport14 = __niceevalCanonical["equals"];
33
+ export { __niceevalExport14 as equals };
34
+ const __niceevalExport15 = __niceevalCanonical["eventMatch"];
35
+ export { __niceevalExport15 as eventMatch };
36
+ const __niceevalExport16 = __niceevalCanonical["excludes"];
37
+ export { __niceevalExport16 as excludes };
38
+ const __niceevalExport17 = __niceevalCanonical["factuality"];
39
+ export { __niceevalExport17 as factuality };
40
+ const __niceevalExport18 = __niceevalCanonical["faithfulness"];
41
+ export { __niceevalExport18 as faithfulness };
42
+ const __niceevalExport19 = __niceevalCanonical["filterWhere"];
43
+ export { __niceevalExport19 as filterWhere };
44
+ const __niceevalExport20 = __niceevalCanonical["greaterThan"];
45
+ export { __niceevalExport20 as greaterThan };
46
+ const __niceevalExport21 = __niceevalCanonical["hasSections"];
47
+ export { __niceevalExport21 as hasSections };
48
+ const __niceevalExport22 = __niceevalCanonical["inOrder"];
49
+ export { __niceevalExport22 as inOrder };
50
+ const __niceevalExport23 = __niceevalCanonical["includes"];
51
+ export { __niceevalExport23 as includes };
52
+ const __niceevalExport24 = __niceevalCanonical["includesUrl"];
53
+ export { __niceevalExport24 as includesUrl };
54
+ const __niceevalExport25 = __niceevalCanonical["instructionFollowing"];
55
+ export { __niceevalExport25 as instructionFollowing };
56
+ const __niceevalExport26 = __niceevalCanonical["isDefined"];
57
+ export { __niceevalExport26 as isDefined };
58
+ const __niceevalExport27 = __niceevalCanonical["isFalse"];
59
+ export { __niceevalExport27 as isFalse };
60
+ const __niceevalExport28 = __niceevalCanonical["isTrue"];
61
+ export { __niceevalExport28 as isTrue };
62
+ const __niceevalExport29 = __niceevalCanonical["jsonMatch"];
63
+ export { __niceevalExport29 as jsonMatch };
64
+ const __niceevalExport30 = __niceevalCanonical["lessThan"];
65
+ export { __niceevalExport30 as lessThan };
66
+ const __niceevalExport31 = __niceevalCanonical["mapEach"];
67
+ export { __niceevalExport31 as mapEach };
68
+ const __niceevalExport32 = __niceevalCanonical["mapValue"];
69
+ export { __niceevalExport32 as mapValue };
70
+ const __niceevalExport33 = __niceevalCanonical["matches"];
71
+ export { __niceevalExport33 as matches };
72
+ const __niceevalExport34 = __niceevalCanonical["measured"];
73
+ export { __niceevalExport34 as measured };
74
+ const __niceevalExport35 = __niceevalCanonical["ms"];
75
+ export { __niceevalExport35 as ms };
76
+ const __niceevalExport36 = __niceevalCanonical["not"];
77
+ export { __niceevalExport36 as not };
78
+ const __niceevalExport37 = __niceevalCanonical["or"];
79
+ export { __niceevalExport37 as or };
80
+ const __niceevalExport38 = __niceevalCanonical["pairwisePreference"];
81
+ export { __niceevalExport38 as pairwisePreference };
82
+ const __niceevalExport39 = __niceevalCanonical["pattern"];
83
+ export { __niceevalExport39 as pattern };
84
+ const __niceevalExport40 = __niceevalCanonical["quantile"];
85
+ export { __niceevalExport40 as quantile };
86
+ const __niceevalExport41 = __niceevalCanonical["ratio"];
87
+ export { __niceevalExport41 as ratio };
88
+ const __niceevalExport42 = __niceevalCanonical["referencesAnyPath"];
89
+ export { __niceevalExport42 as referencesAnyPath };
90
+ const __niceevalExport43 = __niceevalCanonical["satisfies"];
91
+ export { __niceevalExport43 as satisfies };
92
+ const __niceevalExport44 = __niceevalCanonical["seconds"];
93
+ export { __niceevalExport44 as seconds };
94
+ const __niceevalExport45 = __niceevalCanonical["similarity"];
95
+ export { __niceevalExport45 as similarity };
96
+ const __niceevalExport46 = __niceevalCanonical["tokens"];
97
+ export { __niceevalExport46 as tokens };
98
+ const __niceevalExport47 = __niceevalCanonical["toolMatch"];
99
+ export { __niceevalExport47 as toolMatch };
100
+ const __niceevalExport48 = __niceevalCanonical["usd"];
101
+ export { __niceevalExport48 as usd };
86
102
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.experimentCliContributions = exports.SESSION_CLI_OPTIONS = exports.ACCEPT_CLI_OPTIONS = exports.DEBUG_CLI_OPTIONS = exports.EXP_TEARDOWN_CLI_OPTIONS = exports.EXP_RENAME_CLI_OPTIONS = exports.EXP_LIST_CLI_OPTIONS = exports.EXP_NORMAL_CLI_OPTIONS = exports.CHECK_CLI_OPTIONS = exports.ExpPlanDocumentSchema = exports.decodeExpPlanDocument = void 0;
3
+ exports.experimentCliContributions = exports.INVOCATION_CLI_OPTIONS = exports.ACCEPT_CLI_OPTIONS = exports.DEBUG_CLI_OPTIONS = exports.EXP_TEARDOWN_CLI_OPTIONS = exports.EXP_RENAME_CLI_OPTIONS = exports.EXP_LIST_CLI_OPTIONS = exports.EXP_NORMAL_CLI_OPTIONS = exports.CHECK_CLI_OPTIONS = exports.ExpPlanDocumentSchema = exports.decodeExpPlanDocument = void 0;
4
4
  const runtime_ts_1 = require("../runtime.cjs");
5
5
  const effect_1 = require("effect");
6
6
  const application_ts_1 = require("../../../cli/application.cjs");
@@ -41,8 +41,11 @@ exports.EXP_NORMAL_CLI_OPTIONS = Object.freeze({
41
41
  attempts: option("string", "Run each selected Eval this many times."),
42
42
  "max-concurrency": option("string", "Limit concurrent Attempt execution."),
43
43
  "max-build-concurrency": option("string", "Limit concurrent Sandbox build preparation."),
44
- "max-setup-prefix-concurrency": option("string", "Limit concurrent Sandbox setup-prefix preparation."),
45
- "sandbox-setup-cache": option("string", "Use or bypass the Sandbox setup cache."),
44
+ "max-before-cache-concurrency": option("string", "Limit concurrent Sandbox before-cache preparation."),
45
+ "sandbox-before-cache": option("string", "Use or bypass the Sandbox before cache."),
46
+ // Let the root parser route retired options to this owner's migration error.
47
+ "sandbox-setup-cache": Object.freeze({ type: "string", help: Object.freeze({ summary: "Use --sandbox-before-cache.", visibility: "hidden" }) }),
48
+ "max-setup-prefix-concurrency": Object.freeze({ type: "string", help: Object.freeze({ summary: "Use --max-before-cache-concurrency.", visibility: "hidden" }) }),
46
49
  timeout: option("string", "Set the per-Attempt timeout in milliseconds."),
47
50
  budget: option("string", "Set the Invocation budget in USD."),
48
51
  tag: option("string", "Select only Evals with this tag."),
@@ -67,7 +70,7 @@ exports.EXP_RENAME_CLI_OPTIONS = Object.freeze({
67
70
  help: HELP_OPTION,
68
71
  });
69
72
  exports.EXP_TEARDOWN_CLI_OPTIONS = Object.freeze({
70
- teardown: option("boolean", "Run explicit Experiment teardown recovery."),
73
+ after: option("boolean", "Run explicit Experiment after recovery."),
71
74
  json: option("boolean", "Write machine output where the operation supports it."),
72
75
  "recover-shared-state": option("string", "Name a shared-state key for explicit recovery."),
73
76
  "owner-token": option("string", "Provide the exact shared-state owner token."),
@@ -84,7 +87,7 @@ exports.ACCEPT_CLI_OPTIONS = Object.freeze({
84
87
  dry: option("boolean", "Preview acceptance without publishing a Run."),
85
88
  help: HELP_OPTION,
86
89
  });
87
- exports.SESSION_CLI_OPTIONS = Object.freeze({
90
+ exports.INVOCATION_CLI_OPTIONS = Object.freeze({
88
91
  all: option("boolean", "Include completed invocation status entries."),
89
92
  json: option("boolean", "Write the status machine document."),
90
93
  help: HELP_OPTION,
@@ -96,7 +99,7 @@ const EXP_CLI_OPTIONS = Object.freeze({
96
99
  ...exports.EXP_RENAME_CLI_OPTIONS,
97
100
  ...exports.EXP_TEARDOWN_CLI_OPTIONS,
98
101
  });
99
- const SHARED_STATE_RECOVERY_USAGE = ` niceeval exp <selector> --teardown --recover-shared-state <key>
102
+ const SHARED_STATE_RECOVERY_USAGE = ` niceeval exp <selector> --after --recover-shared-state <key>
100
103
  --owner-token <token> --confirm-owner-terminated --confirm-remote-quiesced`;
101
104
  const CHECK_HELP = `Check Experiment selection:
102
105
  niceeval check [<experiment-prefix> [<eval-prefix>...]] [--tag <tag>]
@@ -117,10 +120,10 @@ Run options:
117
120
  --attempts <n> run each selected Eval this many times
118
121
  --max-concurrency <n> limit concurrent Attempt execution
119
122
  --max-build-concurrency <n> limit concurrent Sandbox build preparation
120
- --max-setup-prefix-concurrency <n>
121
- limit concurrent Sandbox setup-prefix preparation
122
- --sandbox-setup-cache <use|bypass>
123
- select the Sandbox setup cache path
123
+ --max-before-cache-concurrency <n>
124
+ limit concurrent Sandbox before-cache preparation
125
+ --sandbox-before-cache <use|bypass>
126
+ select the Sandbox before cache path
124
127
  --timeout <ms> set the per-Attempt timeout
125
128
  --budget <usd> set the Invocation budget
126
129
  --tag <tag> select only Evals with this tag
@@ -132,7 +135,7 @@ Run options:
132
135
  --junit <path> write a required JUnit report
133
136
 
134
137
  Recovery options:
135
- --teardown run only explicit Experiment teardown recovery
138
+ --after run only explicit Experiment after recovery
136
139
  --recover-shared-state <key> inspect or recover this immutable shared-state owner
137
140
  --owner-token <token> provide the exact owner token shown by inspection
138
141
  --confirm-owner-terminated confirm the recorded owner has terminated
@@ -155,9 +158,9 @@ Options:
155
158
  --dry preview a whole-Run acceptance without writing
156
159
  -h, --help show this help
157
160
  `;
158
- const SESSION_HELP = `Inspect project-local ephemeral Invocation status:
159
- niceeval session list [--all] [<experiment-prefix>]
160
- niceeval session show <invocation-id>
161
+ const INVOCATION_HELP = `Inspect project-local ephemeral Invocation status:
162
+ niceeval invocation list [--all] [<experiment-prefix>]
163
+ niceeval invocation show <invocation-id>
161
164
 
162
165
  Options:
163
166
  --all include completed Invocation status entries
@@ -285,11 +288,11 @@ function teardownInspectionProblemText(inspection) {
285
288
  return "sharedState recovery requires an experiment selector that resolves to exactly one Experiment.\n";
286
289
  case "experiment-mismatch":
287
290
  return `sharedState key ${JSON.stringify(inspection.evidence.key)} belongs to experiment ${inspection.evidence.experimentId}, not ${inspection.selectedExperimentId}; refusing recovery.\n`;
288
- case "teardown-required":
289
- return `error: sharedState recovery requires the selected Experiment ${inspection.experimentId} to declare teardown as a function. The active generation was left unchanged.
291
+ case "after-required":
292
+ return `error: sharedState recovery requires the selected Experiment ${inspection.experimentId} to declare after as a function. The active generation was left unchanged.
290
293
  `;
291
294
  case "recovery-confirmation-required":
292
- return `sharedState recovery requires \`--teardown --recover-shared-state <key> --owner-token <token> --confirm-owner-terminated --confirm-remote-quiesced\`.
295
+ return `sharedState recovery requires \`--after --recover-shared-state <key> --owner-token <token> --confirm-owner-terminated --confirm-remote-quiesced\`.
293
296
  `;
294
297
  default:
295
298
  return undefined;
@@ -314,7 +317,7 @@ function teardownFailure(operation, cause, recoveryKey) {
314
317
  return failure(operation, cause, 1, display);
315
318
  }
316
319
  function invocationText(result) {
317
- return `Invocation ${result.receipt.invocationId} · ${result.receipt.completion}\nRuns: ${result.receipt.createdRunIds.join(", ") || "none"}\nResults: ${result.summary.passed} passed · ${result.summary.failed} failed · ${result.summary.errored} errored · ${result.summary.skipped} skipped\nSetup prefixes: ${result.summary.setupPrefixes.hit} hit · ${result.summary.setupPrefixes.prepared} prepared · ${result.summary.setupPrefixes.failed} failed (${result.summary.setupPrefixes.total} total)\n`;
320
+ return `Invocation ${result.receipt.invocationId} · ${result.receipt.completion}\nRuns: ${result.receipt.createdRunIds.join(", ") || "none"}\nResults: ${result.summary.passed} passed · ${result.summary.failed} failed · ${result.summary.errored} errored · ${result.summary.skipped} skipped\nBefore caches: ${result.summary.beforeCaches.hit} hit · ${result.summary.beforeCaches.prepared} prepared · ${result.summary.beforeCaches.failed} failed (${result.summary.beforeCaches.total} total)\n`;
318
321
  }
319
322
  function dryRows(plan) {
320
323
  const rows = new Map();
@@ -411,7 +414,14 @@ function renameJson(result) {
411
414
  }
412
415
  function parsed(argv, options) {
413
416
  return effect_1.Effect.flatMap(application_ts_1.CliArguments, (argumentsService) => effect_1.Effect.try({
414
- try: () => argumentsService.parse(argv, options),
417
+ try: () => {
418
+ for (const [oldName, newName] of [["--max-setup-prefix-concurrency", "--max-before-cache-concurrency"], ["--sandbox-setup-cache", "--sandbox-before-cache"]]) {
419
+ if (argv.some((token) => token === oldName || token.startsWith(`${oldName}=`))) {
420
+ throw new TypeError(`${oldName} is no longer supported. Use ${newName}.`);
421
+ }
422
+ }
423
+ return argumentsService.parse(argv, options);
424
+ },
415
425
  catch: (cause) => failure("parse command", cause),
416
426
  }));
417
427
  }
@@ -443,22 +453,22 @@ function overrides(values) {
443
453
  const budget = numberFlag(values.budget, "--budget");
444
454
  const maxConcurrency = numberFlag(values["max-concurrency"], "--max-concurrency", true);
445
455
  const maxBuildConcurrency = numberFlag(values["max-build-concurrency"], "--max-build-concurrency", true);
446
- const maxSetupPrefixConcurrency = numberFlag(values["max-setup-prefix-concurrency"], "--max-setup-prefix-concurrency", true);
456
+ const maxBeforeCacheConcurrency = numberFlag(values["max-before-cache-concurrency"], "--max-before-cache-concurrency", true);
447
457
  const rerun = enumFlag(values.rerun, "--rerun", ["failed", "all"]);
448
458
  const keepSandbox = enumFlag(values["keep-sandbox"], "--keep-sandbox", ["failed", "all"]);
449
- const sandboxSetupCache = enumFlag(values["sandbox-setup-cache"], "--sandbox-setup-cache", ["use", "bypass"]);
459
+ const sandboxBeforeCache = enumFlag(values["sandbox-before-cache"], "--sandbox-before-cache", ["use", "bypass"]);
450
460
  return Object.freeze({
451
461
  ...(attempts === undefined ? {} : { attempts }),
452
462
  ...(timeoutMs === undefined ? {} : { timeoutMs }),
453
463
  ...(budget === undefined ? {} : { budget }),
454
464
  ...(maxConcurrency === undefined ? {} : { maxConcurrency }),
455
465
  ...(maxBuildConcurrency === undefined ? {} : { maxBuildConcurrency }),
456
- ...(maxSetupPrefixConcurrency === undefined ? {} : { maxSetupPrefixConcurrency }),
466
+ ...(maxBeforeCacheConcurrency === undefined ? {} : { maxBeforeCacheConcurrency }),
457
467
  ...(rerun === undefined ? {} : { rerun: rerun }),
458
468
  ...(keepSandbox === undefined ? {} : { keepSandbox: keepSandbox }),
459
- ...(sandboxSetupCache === undefined
469
+ ...(sandboxBeforeCache === undefined
460
470
  ? {}
461
- : { sandboxSetupCache: sandboxSetupCache }),
471
+ : { sandboxBeforeCache: sandboxBeforeCache }),
462
472
  ...(values["no-early-exit"] === true ? { earlyExit: false } : values["early-exit"] === true ? { earlyExit: true } : {}),
463
473
  });
464
474
  }
@@ -487,8 +497,11 @@ const expCommand = Object.freeze({
487
497
  run: (argv) => effect_1.Effect.gen(function* () {
488
498
  // First parse only determines the family branch. The second, branch-owned
489
499
  // schema rejects irrelevant flags before facts, config, or .env are read.
500
+ if (argv.some((arg) => arg === "--teardown" || arg.startsWith("--teardown="))) {
501
+ return yield* write("stderr", "--teardown is no longer supported; use --after.\n").pipe(effect_1.Effect.as(1));
502
+ }
490
503
  const preliminary = yield* parsed(argv, EXP_CLI_OPTIONS);
491
- const teardownMode = preliminary.values.teardown === true;
504
+ const teardownMode = preliminary.values.after === true;
492
505
  const preliminaryVerb = preliminary.values.experiment === undefined ? preliminary.positionals[0] : undefined;
493
506
  if (preliminaryVerb === "help" && preliminary.positionals.length === 1) {
494
507
  return yield* write("stdout", EXP_HELP).pipe(effect_1.Effect.as(0));
@@ -515,13 +528,13 @@ const expCommand = Object.freeze({
515
528
  return 1;
516
529
  }
517
530
  if (input.positionals.length > 1) {
518
- return yield* write("stderr", "niceeval exp --teardown accepts at most one Experiment selector.\n").pipe(effect_1.Effect.as(1));
531
+ return yield* write("stderr", "niceeval exp --after accepts at most one Experiment selector.\n").pipe(effect_1.Effect.as(1));
519
532
  }
520
533
  const selector = input.positionals[0];
521
534
  const recoveryKey = typeof input.values["recover-shared-state"] === "string"
522
535
  ? input.values["recover-shared-state"]
523
536
  : undefined;
524
- const inspection = yield* runtime_ts_1.rawExperimentHost.teardown.inspect({
537
+ const inspection = yield* runtime_ts_1.rawExperimentHost.after.inspect({
525
538
  cwd: invocation.cwd,
526
539
  currentHost: invocation.hostname,
527
540
  ...(selector === undefined ? {} : { experimentSelector: selector }),
@@ -546,17 +559,17 @@ const expCommand = Object.freeze({
546
559
  if (recoveryKey !== undefined && (typeof input.values["owner-token"] !== "string" ||
547
560
  input.values["confirm-owner-terminated"] !== true ||
548
561
  input.values["confirm-remote-quiesced"] !== true)) {
549
- yield* write("stderr", `sharedState recovery requires \`--teardown --recover-shared-state <key> --owner-token <token> --confirm-owner-terminated --confirm-remote-quiesced\`.
562
+ yield* write("stderr", `sharedState recovery requires \`--after --recover-shared-state <key> --owner-token <token> --confirm-owner-terminated --confirm-remote-quiesced\`.
550
563
  `);
551
564
  return 1;
552
565
  }
553
- if (inspection.status === "teardown-required") {
566
+ if (inspection.status === "after-required") {
554
567
  yield* write("stderr", teardownInspectionProblemText(inspection));
555
568
  return 1;
556
569
  }
557
570
  const interruption = yield* application_ts_1.CliInterruption;
558
571
  const output = yield* application_ts_1.CliOutput;
559
- const result = yield* runtime_ts_1.rawExperimentHost.teardown.run({
572
+ const result = yield* runtime_ts_1.rawExperimentHost.after.run({
560
573
  cwd: invocation.cwd,
561
574
  currentHost: invocation.hostname,
562
575
  ...(selector === undefined ? {} : { experimentSelector: selector }),
@@ -761,10 +774,10 @@ const debugCommand = Object.freeze({
761
774
  experimentId: result.experimentId,
762
775
  ...(result.evalId === undefined ? {} : { evalId: result.evalId }),
763
776
  evalIds: result.evalIds,
764
- setupPrefixPlan: result.setupPrefixPlan,
777
+ beforeCachePlan: result.beforeCachePlan,
765
778
  commandPlan: result.commandPlan,
766
779
  })
767
- : `Setup-prefix plan: ${result.setupPrefixPlan.nodes.length} unique nodes · cache lookup not-probed\n${(0, index_ts_1.renderHumanCommandPlan)(result.commandPlan, {
780
+ : `Before-cache plan: ${result.beforeCachePlan.nodes.length} unique nodes · cache lookup not-probed\n${(0, index_ts_1.renderHumanCommandPlan)(result.commandPlan, {
768
781
  isTTY: invocation.stdout.isTTY,
769
782
  noColor: invocation.noColor,
770
783
  width: invocation.stdout.columns,
@@ -807,14 +820,14 @@ const acceptCommand = Object.freeze({
807
820
  return 0;
808
821
  }),
809
822
  });
810
- const sessionCommand = Object.freeze({
811
- name: "session",
823
+ const invocationCommand = Object.freeze({
824
+ name: "invocation",
812
825
  summary: "inspect project-local ephemeral Invocation status",
813
- options: exports.SESSION_CLI_OPTIONS,
826
+ options: exports.INVOCATION_CLI_OPTIONS,
814
827
  run: (argv) => effect_1.Effect.gen(function* () {
815
- const input = yield* parsed(argv, exports.SESSION_CLI_OPTIONS);
828
+ const input = yield* parsed(argv, exports.INVOCATION_CLI_OPTIONS);
816
829
  if (input.values.help === true)
817
- return yield* write("stdout", SESSION_HELP).pipe(effect_1.Effect.as(0));
830
+ return yield* write("stdout", INVOCATION_HELP).pipe(effect_1.Effect.as(0));
818
831
  const [verb = "list", value] = input.positionals;
819
832
  const facts = yield* application_ts_1.CliInvocationFacts;
820
833
  const invocation = yield* facts.facts.pipe(effect_1.Effect.mapError((cause) => failure("read invocation facts", cause)));
@@ -828,7 +841,7 @@ const sessionCommand = Object.freeze({
828
841
  yield* write("stdout", input.values.json === true ? jsonDocument(result) : (0, session_ts_1.renderSessionShowText)(result));
829
842
  return 0;
830
843
  }
831
- return yield* write("stderr", "usage: niceeval session [list [<experiment-prefix>] | show <invocation-id>]\n").pipe(effect_1.Effect.as(1));
844
+ return yield* write("stderr", "usage: niceeval invocation [list [<experiment-prefix>] | show <invocation-id>]\n").pipe(effect_1.Effect.as(1));
832
845
  }),
833
846
  });
834
847
  /** The composition root receives frozen feature values; it never registers services. */
@@ -837,6 +850,6 @@ exports.experimentCliContributions = Object.freeze([
837
850
  expCommand,
838
851
  debugCommand,
839
852
  acceptCommand,
840
- sessionCommand,
853
+ invocationCommand,
841
854
  ]);
842
855
  //# sourceMappingURL=contribution.cjs.map