@overkill-dev/run 0.0.84 → 0.0.86

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 (618) hide show
  1. package/attachments/failure-artifact-stream.js +2 -2
  2. package/attachments/failure-artifact-stream.js.map +1 -1
  3. package/attachments/run-json-artifact.js +1 -1
  4. package/attachments/run-json-artifact.js.map +1 -1
  5. package/baselines/calibration-store.js +2 -2
  6. package/baselines/calibration-store.js.map +1 -1
  7. package/baselines/performance-adapter.d.ts +2 -2
  8. package/baselines/performance-adapter.d.ts.map +1 -1
  9. package/baselines/performance-baseline.d.ts +2 -2
  10. package/baselines/performance-baseline.d.ts.map +1 -1
  11. package/baselines/performance-baseline.js +1 -1
  12. package/baselines/performance-baseline.js.map +1 -1
  13. package/baselines/performance-check.js +2 -2
  14. package/baselines/performance-check.js.map +1 -1
  15. package/baselines/performance-evaluation.js +1 -1
  16. package/baselines/performance-evaluation.js.map +1 -1
  17. package/baselines/performance-observation.js +1 -1
  18. package/baselines/performance-observation.js.map +1 -1
  19. package/baselines/performance-plan.js +3 -3
  20. package/baselines/performance-plan.js.map +1 -1
  21. package/baselines/performance-store.js +2 -2
  22. package/baselines/performance-store.js.map +1 -1
  23. package/baselines/performance-workflow.js +2 -2
  24. package/baselines/performance-workflow.js.map +1 -1
  25. package/bench/benchmark-statistics-schema.d.ts +1 -1
  26. package/bench/benchmark-statistics-schema.d.ts.map +1 -1
  27. package/bench/calibration-evidence.js +1 -1
  28. package/bench/calibration-evidence.js.map +1 -1
  29. package/bench/calibration-report.d.ts +1 -1
  30. package/bench/calibration-report.d.ts.map +1 -1
  31. package/bench/timeline-schema.js +1 -1
  32. package/bench/timeline-schema.js.map +1 -1
  33. package/config/config.js +1 -1
  34. package/config/config.js.map +1 -1
  35. package/config/execution.d.ts +1 -1
  36. package/config/execution.d.ts.map +1 -1
  37. package/config/property-policy.js +1 -1
  38. package/config/property-policy.js.map +1 -1
  39. package/config/schema.d.ts +4 -4
  40. package/config/schema.d.ts.map +1 -1
  41. package/config/schema.js +2 -2
  42. package/config/schema.js.map +1 -1
  43. package/config/types.d.ts +6 -6
  44. package/config/types.d.ts.map +1 -1
  45. package/package.json +4 -28
  46. package/packages/run/run.entry-point.d.ts +3 -3
  47. package/packages/run/run.entry-point.d.ts.map +1 -1
  48. package/packages/run/run.entry-point.js +1 -1
  49. package/packages/run/run.entry-point.js.map +1 -1
  50. package/reporters/human-reporter-rendering.js +2 -2
  51. package/reporters/human-reporter-rendering.js.map +1 -1
  52. package/reporters/line-failure-rendering.js +1 -1
  53. package/reporters/line-failure-rendering.js.map +1 -1
  54. package/reporters/line-reporter.js +2 -2
  55. package/reporters/line-reporter.js.map +1 -1
  56. package/reporters/progress-reporter.js +1 -1
  57. package/reporters/progress-reporter.js.map +1 -1
  58. package/reporters/tree-reporter.js +1 -1
  59. package/reporters/tree-reporter.js.map +1 -1
  60. package/resources/resource-definition-shape.d.ts +1 -1
  61. package/resources/resource-definition-shape.d.ts.map +1 -1
  62. package/resources/resource-workload-binding.js +2 -2
  63. package/resources/resource-workload-binding.js.map +1 -1
  64. package/run/attachment-connection.js +1 -0
  65. package/run/attachment-connection.js.map +1 -1
  66. package/run/attachment-eligibility.js +1 -1
  67. package/run/attachment-eligibility.js.map +1 -1
  68. package/run/attachment-execution.js +2 -2
  69. package/run/attachment-execution.js.map +1 -1
  70. package/run/attachment-failure.js +1 -1
  71. package/run/attachment-failure.js.map +1 -1
  72. package/run/attachment-protocol.js +1 -1
  73. package/run/attachment-protocol.js.map +1 -1
  74. package/run/attachment-reporter.js +2 -2
  75. package/run/attachment-reporter.js.map +1 -1
  76. package/run/attachment-results.js +3 -3
  77. package/run/attachment-results.js.map +1 -1
  78. package/run/attachment-retention.js +1 -1
  79. package/run/attachment-retention.js.map +1 -1
  80. package/run/attachment-server.js +1 -0
  81. package/run/attachment-server.js.map +1 -1
  82. package/run/attachment-store.js +1 -1
  83. package/run/attachment-store.js.map +1 -1
  84. package/run/benchmark-baseline-commands.js +1 -1
  85. package/run/benchmark-baseline-commands.js.map +1 -1
  86. package/run/benchmark-baseline-finalization.js +1 -1
  87. package/run/benchmark-baseline-finalization.js.map +1 -1
  88. package/run/benchmark-garbage-collection.js +1 -1
  89. package/run/benchmark-garbage-collection.js.map +1 -1
  90. package/run/benchmark-policy-schema.js +1 -1
  91. package/run/benchmark-policy-schema.js.map +1 -1
  92. package/run/benchmark-report-metadata.js +1 -1
  93. package/run/benchmark-report-metadata.js.map +1 -1
  94. package/run/benchmark-result-schema.js +1 -1
  95. package/run/benchmark-result-schema.js.map +1 -1
  96. package/run/calibration-capture-session.js +2 -2
  97. package/run/calibration-capture-session.js.map +1 -1
  98. package/run/calibration-inventory.js +2 -2
  99. package/run/calibration-inventory.js.map +1 -1
  100. package/run/calibration-maintenance.js +1 -1
  101. package/run/calibration-maintenance.js.map +1 -1
  102. package/run/capability-policy-snapshots.d.ts +1 -1
  103. package/run/capability-policy-snapshots.d.ts.map +1 -1
  104. package/run/capability-policy.js +3 -3
  105. package/run/capability-policy.js.map +1 -1
  106. package/run/collected-run-execution.js +1 -1
  107. package/run/collected-run-execution.js.map +1 -1
  108. package/run/collected-run-plan-schema.js +2 -2
  109. package/run/collected-run-plan-schema.js.map +1 -1
  110. package/run/collected-run-plan.js +4 -4
  111. package/run/collected-run-plan.js.map +1 -1
  112. package/run/command-line-command.d.ts +1 -1
  113. package/run/command-line-command.d.ts.map +1 -1
  114. package/run/command-line-command.js +1 -1
  115. package/run/command-line-command.js.map +1 -1
  116. package/run/command-line-config.d.ts +1 -1
  117. package/run/command-line-config.d.ts.map +1 -1
  118. package/run/default-direct-reporter.js +1 -1
  119. package/run/default-direct-reporter.js.map +1 -1
  120. package/run/default-run-engine.js +7 -7
  121. package/run/default-run-engine.js.map +1 -1
  122. package/run/direct-entrypoint-collection.js +3 -3
  123. package/run/direct-entrypoint-collection.js.map +1 -1
  124. package/run/execution-plan-resolution.js +1 -1
  125. package/run/execution-plan-resolution.js.map +1 -1
  126. package/run/execution-session-child.js +1 -1
  127. package/run/execution-session-child.js.map +1 -1
  128. package/run/execution-session-collected.js +1 -1
  129. package/run/execution-session-collected.js.map +1 -1
  130. package/run/execution-session-host.js +1 -1
  131. package/run/execution-session-host.js.map +1 -1
  132. package/run/execution-session-lifecycle.js +2 -2
  133. package/run/execution-session-lifecycle.js.map +1 -1
  134. package/run/execution-session-observation.js +1 -1
  135. package/run/execution-session-observation.js.map +1 -1
  136. package/run/execution-session-schema.js +1 -1
  137. package/run/execution-session-schema.js.map +1 -1
  138. package/run/execution-session-types.d.ts +1 -1
  139. package/run/execution-session-types.d.ts.map +1 -1
  140. package/run/execution-session.js +1 -1
  141. package/run/execution-session.js.map +1 -1
  142. package/run/failure-artifact-retention.js +2 -2
  143. package/run/failure-artifact-retention.js.map +1 -1
  144. package/run/frozen-run-policy.js +1 -1
  145. package/run/frozen-run-policy.js.map +1 -1
  146. package/run/initialized-run-collection.js +1 -1
  147. package/run/initialized-run-collection.js.map +1 -1
  148. package/run/node-command-line-runner.d.ts +1 -1
  149. package/run/node-command-line-runner.d.ts.map +1 -1
  150. package/run/node-process-policy-observation.js +1 -1
  151. package/run/node-process-policy-observation.js.map +1 -1
  152. package/run/node-run-execution.js +1 -1
  153. package/run/node-run-execution.js.map +1 -1
  154. package/run/node-run-orchestrator-dependencies.js +1 -1
  155. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  156. package/run/permission-denial-runtime-policy.js +3 -3
  157. package/run/permission-denial-runtime-policy.js.map +1 -1
  158. package/run/placement-trace.d.ts +2 -2
  159. package/run/placement-trace.d.ts.map +1 -1
  160. package/run/property-collection.js +1 -1
  161. package/run/property-collection.js.map +1 -1
  162. package/run/recorded-coverage-session.js +1 -1
  163. package/run/recorded-coverage-session.js.map +1 -1
  164. package/run/reporter-event-schema.js +1 -1
  165. package/run/reporter-event-schema.js.map +1 -1
  166. package/run/resource-lifecycle-boundaries.js +1 -1
  167. package/run/resource-lifecycle-boundaries.js.map +1 -1
  168. package/run/resource-lifecycle-cache-identity.js +2 -2
  169. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  170. package/run/resource-lifecycle-composition.d.ts +1 -1
  171. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  172. package/run/resource-lifecycle-error.d.ts +1 -1
  173. package/run/resource-lifecycle-error.d.ts.map +1 -1
  174. package/run/resource-lifecycle-error.js +1 -1
  175. package/run/resource-lifecycle-error.js.map +1 -1
  176. package/run/resource-lifecycle-session-acquirer.js +1 -1
  177. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  178. package/run/resource-lifecycle-state.d.ts +3 -3
  179. package/run/resource-lifecycle-state.d.ts.map +1 -1
  180. package/run/resource-lifecycle-state.js +2 -2
  181. package/run/resource-lifecycle-state.js.map +1 -1
  182. package/run/resource-ownership-plan.d.ts +2 -2
  183. package/run/resource-ownership-plan.d.ts.map +1 -1
  184. package/run/retry-artifact-retention.js +1 -1
  185. package/run/retry-artifact-retention.js.map +1 -1
  186. package/run/run-artifact-schema.d.ts +1 -1
  187. package/run/run-artifact-schema.d.ts.map +1 -1
  188. package/run/run-case-facts.js +1 -1
  189. package/run/run-case-facts.js.map +1 -1
  190. package/run/run-collection-error-result.js +2 -2
  191. package/run/run-collection-error-result.js.map +1 -1
  192. package/run/run-discovery-types.d.ts +1 -1
  193. package/run/run-discovery-types.d.ts.map +1 -1
  194. package/run/run-engine-primitives.d.ts +8 -8
  195. package/run/run-engine-primitives.d.ts.map +1 -1
  196. package/run/run-engine-selection.d.ts +1 -1
  197. package/run/run-engine-selection.d.ts.map +1 -1
  198. package/run/run-errors.d.ts +2 -2
  199. package/run/run-errors.d.ts.map +1 -1
  200. package/run/run-errors.js +1 -1
  201. package/run/run-errors.js.map +1 -1
  202. package/run/run-if-main-options.d.ts +3 -3
  203. package/run/run-if-main-options.d.ts.map +1 -1
  204. package/run/run-if-main.d.ts +1 -1
  205. package/run/run-if-main.d.ts.map +1 -1
  206. package/run/run-list-renderer.js +2 -2
  207. package/run/run-list-renderer.js.map +1 -1
  208. package/run/run-local-sharding.js +1 -1
  209. package/run/run-local-sharding.js.map +1 -1
  210. package/run/run-local-test-plan.js +21 -17
  211. package/run/run-local-test-plan.js.map +1 -1
  212. package/run/run-record-outcomes.d.ts +5 -5
  213. package/run/run-record-outcomes.d.ts.map +1 -1
  214. package/run/run-record-result.d.ts +1 -1
  215. package/run/run-record-result.d.ts.map +1 -1
  216. package/run/run-record-result.js +2 -2
  217. package/run/run-record-result.js.map +1 -1
  218. package/run/run-record-storage.js +1 -1
  219. package/run/run-record-storage.js.map +1 -1
  220. package/run/run-record-types.d.ts +3 -3
  221. package/run/run-record-types.d.ts.map +1 -1
  222. package/run/run-request-types.d.ts +3 -3
  223. package/run/run-request-types.d.ts.map +1 -1
  224. package/run/run-result-reporting.js +1 -1
  225. package/run/run-result-reporting.js.map +1 -1
  226. package/run/run-result-schema.d.ts +1 -1
  227. package/run/run-result-schema.d.ts.map +1 -1
  228. package/run/run-runtime-schema.js +1 -1
  229. package/run/run-runtime-schema.js.map +1 -1
  230. package/run/run-selection-filters.d.ts +2 -2
  231. package/run/run-selection-filters.d.ts.map +1 -1
  232. package/run/run-selection-filters.js +1 -1
  233. package/run/run-selection-filters.js.map +1 -1
  234. package/run/run-selection.js +2 -2
  235. package/run/run-selection.js.map +1 -1
  236. package/run/run-sharding.js +1 -1
  237. package/run/run-sharding.js.map +1 -1
  238. package/run/run-test-modules.d.ts +3 -3
  239. package/run/run-test-modules.d.ts.map +1 -1
  240. package/run/run-timing-collection.d.ts +2 -2
  241. package/run/run-timing-collection.d.ts.map +1 -1
  242. package/run/run-timing-collection.js +1 -1
  243. package/run/run-timing-collection.js.map +1 -1
  244. package/run/run-types.d.ts +1 -1
  245. package/run/run-types.d.ts.map +1 -1
  246. package/run/run-validation.js +1 -1
  247. package/run/run-validation.js.map +1 -1
  248. package/run/simulation-witness.js +1 -1
  249. package/run/simulation-witness.js.map +1 -1
  250. package/run/supervised-child-execution.js +5 -4
  251. package/run/supervised-child-execution.js.map +1 -1
  252. package/run/supervised-child-test-plan.js +1 -1
  253. package/run/supervised-child-test-plan.js.map +1 -1
  254. package/run/supervised-child.js +3 -3
  255. package/run/supervised-child.js.map +1 -1
  256. package/run/supervised-output-capture.js +1 -1
  257. package/run/supervised-output-capture.js.map +1 -1
  258. package/run/supervised-protocol.js +1 -1
  259. package/run/supervised-protocol.js.map +1 -1
  260. package/run/supervised-run-process-policy.js +2 -2
  261. package/run/supervised-run-process-policy.js.map +1 -1
  262. package/run/supervised-run-runtime.js +1 -1
  263. package/run/supervised-run-runtime.js.map +1 -1
  264. package/run/supervised-run-state.js +3 -3
  265. package/run/supervised-run-state.js.map +1 -1
  266. package/run/work-unit-identity.js +1 -1
  267. package/run/work-unit-identity.js.map +1 -1
  268. package/run/work-unit-planning.js +1 -1
  269. package/run/work-unit-planning.js.map +1 -1
  270. package/run/work-unit-resource-constraints.js +2 -2
  271. package/run/work-unit-resource-constraints.js.map +1 -1
  272. package/run/worker-execution-engine.js +2 -2
  273. package/run/worker-execution-engine.js.map +1 -1
  274. package/run/worker-pool-hedge-dispatch.js +1 -1
  275. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  276. package/run/worker-pool-hedged-arbitration.js +1 -1
  277. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  278. package/run/worker-pool-host.entry-point.js +1 -1
  279. package/run/worker-pool-host.entry-point.js.map +1 -1
  280. package/run/worker-pool-output.js +1 -1
  281. package/run/worker-pool-output.js.map +1 -1
  282. package/run/worker-pool-pending-splitting.js +1 -1
  283. package/run/worker-pool-pending-splitting.js.map +1 -1
  284. package/run/worker-pool-placement-planning.js +1 -1
  285. package/run/worker-pool-placement-planning.js.map +1 -1
  286. package/run/worker-pool-protocol.js +1 -0
  287. package/run/worker-pool-protocol.js.map +1 -1
  288. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  289. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  290. package/run/worker-pool-results.js +1 -1
  291. package/run/worker-pool-results.js.map +1 -1
  292. package/run/worker-pool-task-events.js +2 -2
  293. package/run/worker-pool-task-events.js.map +1 -1
  294. package/run/worker-pool-warm-lane-affinity.js +1 -1
  295. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  296. package/run/worker-pool-work-load.js +1 -1
  297. package/run/worker-pool-work-load.js.map +1 -1
  298. package/run/worker-pool-worker-plan.js +2 -2
  299. package/run/worker-pool-worker-plan.js.map +1 -1
  300. package/run/worker-pool-worker-resources.js +1 -1
  301. package/run/worker-pool-worker-resources.js.map +1 -1
  302. package/run/worker-pool-worker.js +1 -1
  303. package/run/worker-pool-worker.js.map +1 -1
  304. package/run/workload-input-validation.js +1 -1
  305. package/run/workload-input-validation.js.map +1 -1
  306. package/software-bill-of-materials.cyclonedx.json +21 -38
  307. package/transcript/http-transcript-artifact.js +1 -1
  308. package/transcript/http-transcript-artifact.js.map +1 -1
  309. package/assertion-protocol/assertion-evaluation.js +0 -6
  310. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  311. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  312. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  313. package/assertion-protocol/assertion-node.d.ts +0 -82
  314. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  315. package/assertion-protocol/assertion-node.js +0 -33
  316. package/assertion-protocol/assertion-node.js.map +0 -1
  317. package/assertion-protocol/assertion-reference.d.ts +0 -50
  318. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  319. package/assertion-protocol/assertion-reference.js +0 -22
  320. package/assertion-protocol/assertion-reference.js.map +0 -1
  321. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  322. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  323. package/assertion-protocol/assertions/boolean.js +0 -12
  324. package/assertion-protocol/assertions/boolean.js.map +0 -1
  325. package/assertion-protocol/assertions/collection.d.ts +0 -13
  326. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  327. package/assertion-protocol/assertions/collection.js +0 -21
  328. package/assertion-protocol/assertions/collection.js.map +0 -1
  329. package/assertion-protocol/assertions/dispatch.js +0 -47
  330. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  331. package/assertion-protocol/assertions/equality.d.ts +0 -6
  332. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  333. package/assertion-protocol/assertions/equality.js +0 -24
  334. package/assertion-protocol/assertions/equality.js.map +0 -1
  335. package/assertion-protocol/assertions/fail.d.ts +0 -8
  336. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  337. package/assertion-protocol/assertions/fail.js +0 -8
  338. package/assertion-protocol/assertions/fail.js.map +0 -1
  339. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  340. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  341. package/assertion-protocol/assertions/numeric.js +0 -43
  342. package/assertion-protocol/assertions/numeric.js.map +0 -1
  343. package/assertion-protocol/assertions/partial.d.ts +0 -5
  344. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  345. package/assertion-protocol/assertions/partial.js +0 -17
  346. package/assertion-protocol/assertions/partial.js.map +0 -1
  347. package/assertion-protocol/assertions/presence.d.ts +0 -6
  348. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  349. package/assertion-protocol/assertions/presence.js +0 -20
  350. package/assertion-protocol/assertions/presence.js.map +0 -1
  351. package/assertion-protocol/assertions/string.d.ts +0 -15
  352. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  353. package/assertion-protocol/assertions/string.js +0 -33
  354. package/assertion-protocol/assertions/string.js.map +0 -1
  355. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  356. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  357. package/assertion-protocol/assertions/type-shape.js +0 -43
  358. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  359. package/assertion-protocol/collection-count.js +0 -42
  360. package/assertion-protocol/collection-count.js.map +0 -1
  361. package/assertion-protocol/evaluation.js +0 -175
  362. package/assertion-protocol/evaluation.js.map +0 -1
  363. package/assertion-protocol/partial-matching.js +0 -13
  364. package/assertion-protocol/partial-matching.js.map +0 -1
  365. package/assertion-protocol/source-location-forwarding.js +0 -32
  366. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  367. package/assertion-protocol/source-location.js +0 -119
  368. package/assertion-protocol/source-location.js.map +0 -1
  369. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  370. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  371. package/assertion-protocol/thrown-error-record.js +0 -17
  372. package/assertion-protocol/thrown-error-record.js.map +0 -1
  373. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  374. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  375. package/assertion-protocol/thrown-matcher.js +0 -201
  376. package/assertion-protocol/thrown-matcher.js.map +0 -1
  377. package/attachments/json-snapshot.js +0 -125
  378. package/attachments/json-snapshot.js.map +0 -1
  379. package/canonical-identity.js +0 -54
  380. package/canonical-identity.js.map +0 -1
  381. package/compare/comparison-result.js +0 -47
  382. package/compare/comparison-result.js.map +0 -1
  383. package/compare/comparison-state.js +0 -20
  384. package/compare/comparison-state.js.map +0 -1
  385. package/compare/comparison.js +0 -78
  386. package/compare/comparison.js.map +0 -1
  387. package/compare/diff-path.js +0 -37
  388. package/compare/diff-path.js.map +0 -1
  389. package/compare/raw-comparison.js +0 -285
  390. package/compare/raw-comparison.js.map +0 -1
  391. package/compare/serialized-value-classification.js +0 -99
  392. package/compare/serialized-value-classification.js.map +0 -1
  393. package/compare/serialized-value-shape.d.ts +0 -134
  394. package/compare/serialized-value-shape.d.ts.map +0 -1
  395. package/compare/serialized-value-shape.js +0 -12
  396. package/compare/serialized-value-shape.js.map +0 -1
  397. package/compare/serialized-value-state.js +0 -55
  398. package/compare/serialized-value-state.js.map +0 -1
  399. package/compare/serialized-value.d.ts +0 -4
  400. package/compare/serialized-value.d.ts.map +0 -1
  401. package/compare/serialized-value.js +0 -389
  402. package/compare/serialized-value.js.map +0 -1
  403. package/compare/structured-diff.js +0 -382
  404. package/compare/structured-diff.js.map +0 -1
  405. package/compare/value-classification.js +0 -112
  406. package/compare/value-classification.js.map +0 -1
  407. package/diff/binary-diff.js +0 -49
  408. package/diff/binary-diff.js.map +0 -1
  409. package/diff/diff-shape.d.ts +0 -122
  410. package/diff/diff-shape.d.ts.map +0 -1
  411. package/diff/string-diff.js +0 -22
  412. package/diff/string-diff.js.map +0 -1
  413. package/engine/assertion-facade.d.ts +0 -47
  414. package/engine/assertion-facade.d.ts.map +0 -1
  415. package/engine/assertion-facade.js +0 -362
  416. package/engine/assertion-facade.js.map +0 -1
  417. package/engine/assertion-recorder.d.ts +0 -12
  418. package/engine/assertion-recorder.d.ts.map +0 -1
  419. package/engine/assertion-recorder.js +0 -251
  420. package/engine/assertion-recorder.js.map +0 -1
  421. package/engine/async-control.d.ts +0 -7
  422. package/engine/async-control.d.ts.map +0 -1
  423. package/engine/async-control.js +0 -162
  424. package/engine/async-control.js.map +0 -1
  425. package/engine/async-leak-diagnostics.js +0 -188
  426. package/engine/async-leak-diagnostics.js.map +0 -1
  427. package/engine/benchmark-environment.d.ts +0 -8
  428. package/engine/benchmark-environment.d.ts.map +0 -1
  429. package/engine/benchmark-garbage-collection.d.ts +0 -8
  430. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  431. package/engine/benchmark-garbage-collection.js +0 -4
  432. package/engine/benchmark-garbage-collection.js.map +0 -1
  433. package/engine/benchmark-limits.js +0 -3
  434. package/engine/benchmark-limits.js.map +0 -1
  435. package/engine/benchmark-node.d.ts +0 -37
  436. package/engine/benchmark-node.d.ts.map +0 -1
  437. package/engine/benchmark-node.js +0 -9
  438. package/engine/benchmark-node.js.map +0 -1
  439. package/engine/benchmark-result.d.ts +0 -247
  440. package/engine/benchmark-result.d.ts.map +0 -1
  441. package/engine/benchmark-result.js +0 -2
  442. package/engine/benchmark-result.js.map +0 -1
  443. package/engine/benchmark-timeline.d.ts +0 -12
  444. package/engine/benchmark-timeline.d.ts.map +0 -1
  445. package/engine/case-attempt-execution.js +0 -234
  446. package/engine/case-attempt-execution.js.map +0 -1
  447. package/engine/case-body-execution.js +0 -232
  448. package/engine/case-body-execution.js.map +0 -1
  449. package/engine/case-execution-lifecycle.js +0 -22
  450. package/engine/case-execution-lifecycle.js.map +0 -1
  451. package/engine/case-execution.d.ts +0 -14
  452. package/engine/case-execution.d.ts.map +0 -1
  453. package/engine/case-execution.js +0 -225
  454. package/engine/case-execution.js.map +0 -1
  455. package/engine/case-interruption.js +0 -26
  456. package/engine/case-interruption.js.map +0 -1
  457. package/engine/coverage-artifact.d.ts +0 -36
  458. package/engine/coverage-artifact.d.ts.map +0 -1
  459. package/engine/custom-assertion-recording.js +0 -175
  460. package/engine/custom-assertion-recording.js.map +0 -1
  461. package/engine/engine.d.ts +0 -21
  462. package/engine/engine.d.ts.map +0 -1
  463. package/engine/engine.js +0 -35
  464. package/engine/engine.js.map +0 -1
  465. package/engine/execution-async-leak-policy.d.ts +0 -3
  466. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  467. package/engine/execution-async-leak-policy.js +0 -95
  468. package/engine/execution-async-leak-policy.js.map +0 -1
  469. package/engine/execution-error-ownership.d.ts +0 -6
  470. package/engine/execution-error-ownership.d.ts.map +0 -1
  471. package/engine/execution-error-ownership.js +0 -83
  472. package/engine/execution-error-ownership.js.map +0 -1
  473. package/engine/execution-global-error-observer.d.ts +0 -15
  474. package/engine/execution-global-error-observer.d.ts.map +0 -1
  475. package/engine/execution-global-error-observer.js +0 -276
  476. package/engine/execution-global-error-observer.js.map +0 -1
  477. package/engine/execution-observation.js +0 -212
  478. package/engine/execution-observation.js.map +0 -1
  479. package/engine/execution-options.d.ts +0 -39
  480. package/engine/execution-options.d.ts.map +0 -1
  481. package/engine/execution-options.js +0 -42
  482. package/engine/execution-options.js.map +0 -1
  483. package/engine/execution-preparation.d.ts +0 -13
  484. package/engine/execution-preparation.d.ts.map +0 -1
  485. package/engine/execution-preparation.js +0 -34
  486. package/engine/execution-preparation.js.map +0 -1
  487. package/engine/execution-process-budget-breach.d.ts +0 -8
  488. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  489. package/engine/execution-process-budget-breach.js +0 -30
  490. package/engine/execution-process-budget-breach.js.map +0 -1
  491. package/engine/execution-process-budget-tracking.js +0 -33
  492. package/engine/execution-process-budget-tracking.js.map +0 -1
  493. package/engine/execution-process-tracked-cases.js +0 -40
  494. package/engine/execution-process-tracked-cases.js.map +0 -1
  495. package/engine/execution-result.js +0 -120
  496. package/engine/execution-result.js.map +0 -1
  497. package/engine/execution-supervision-state.js +0 -54
  498. package/engine/execution-supervision-state.js.map +0 -1
  499. package/engine/execution-supervision.d.ts +0 -16
  500. package/engine/execution-supervision.d.ts.map +0 -1
  501. package/engine/execution-supervision.js +0 -345
  502. package/engine/execution-supervision.js.map +0 -1
  503. package/engine/execution-test-plan-cases.js +0 -216
  504. package/engine/execution-test-plan-cases.js.map +0 -1
  505. package/engine/execution-test-plan-process-usage.js +0 -14
  506. package/engine/execution-test-plan-process-usage.js.map +0 -1
  507. package/engine/execution.d.ts +0 -8
  508. package/engine/execution.d.ts.map +0 -1
  509. package/engine/execution.js +0 -71
  510. package/engine/execution.js.map +0 -1
  511. package/engine/identity.d.ts +0 -31
  512. package/engine/identity.d.ts.map +0 -1
  513. package/engine/identity.js +0 -68
  514. package/engine/identity.js.map +0 -1
  515. package/engine/native-resource-observation.js +0 -70
  516. package/engine/native-resource-observation.js.map +0 -1
  517. package/engine/node-assertion-error.js +0 -47
  518. package/engine/node-assertion-error.js.map +0 -1
  519. package/engine/process-usage-growth.js +0 -12
  520. package/engine/process-usage-growth.js.map +0 -1
  521. package/engine/process-usage.d.ts +0 -22
  522. package/engine/process-usage.d.ts.map +0 -1
  523. package/engine/property-node.d.ts +0 -30
  524. package/engine/property-node.d.ts.map +0 -1
  525. package/engine/property-node.js +0 -9
  526. package/engine/property-node.js.map +0 -1
  527. package/engine/recorded-assertion-failure.js +0 -30
  528. package/engine/recorded-assertion-failure.js.map +0 -1
  529. package/engine/reporter-dispatcher.d.ts +0 -17
  530. package/engine/reporter-dispatcher.d.ts.map +0 -1
  531. package/engine/reporter-dispatcher.js +0 -316
  532. package/engine/reporter-dispatcher.js.map +0 -1
  533. package/engine/reporter-disposal.js +0 -13
  534. package/engine/reporter-disposal.js.map +0 -1
  535. package/engine/reporter-error-delivery-tracking.js +0 -33
  536. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  537. package/engine/reporter-event-queue.js +0 -55
  538. package/engine/reporter-event-queue.js.map +0 -1
  539. package/engine/reporter-managed-output.js +0 -105
  540. package/engine/reporter-managed-output.js.map +0 -1
  541. package/engine/reporter-output-scope.js +0 -65
  542. package/engine/reporter-output-scope.js.map +0 -1
  543. package/engine/reporter-output.d.ts +0 -28
  544. package/engine/reporter-output.d.ts.map +0 -1
  545. package/engine/reporter-output.js +0 -17
  546. package/engine/reporter-output.js.map +0 -1
  547. package/engine/reporter.d.ts +0 -197
  548. package/engine/reporter.d.ts.map +0 -1
  549. package/engine/reporter.js +0 -111
  550. package/engine/reporter.js.map +0 -1
  551. package/engine/reporting-context.d.ts +0 -6
  552. package/engine/reporting-context.d.ts.map +0 -1
  553. package/engine/reporting-context.js +0 -74
  554. package/engine/reporting-context.js.map +0 -1
  555. package/engine/require-assertion-facade.d.ts +0 -18
  556. package/engine/require-assertion-facade.d.ts.map +0 -1
  557. package/engine/require-assertion-facade.js +0 -128
  558. package/engine/require-assertion-facade.js.map +0 -1
  559. package/engine/resource-owner-observation.js +0 -143
  560. package/engine/resource-owner-observation.js.map +0 -1
  561. package/engine/retry-policy.d.ts +0 -4
  562. package/engine/retry-policy.d.ts.map +0 -1
  563. package/engine/retry-policy.js +0 -22
  564. package/engine/retry-policy.js.map +0 -1
  565. package/engine/run-artifact.d.ts +0 -45
  566. package/engine/run-artifact.d.ts.map +0 -1
  567. package/engine/run-result.d.ts +0 -215
  568. package/engine/run-result.d.ts.map +0 -1
  569. package/engine/run-result.js +0 -202
  570. package/engine/run-result.js.map +0 -1
  571. package/engine/run-timings.d.ts +0 -57
  572. package/engine/run-timings.d.ts.map +0 -1
  573. package/engine/run-timings.js +0 -120
  574. package/engine/run-timings.js.map +0 -1
  575. package/engine/runner-error-reporting.js +0 -29
  576. package/engine/runner-error-reporting.js.map +0 -1
  577. package/engine/runtime-attachment.d.ts +0 -82
  578. package/engine/runtime-attachment.d.ts.map +0 -1
  579. package/engine/test-attempt-history.js +0 -25
  580. package/engine/test-attempt-history.js.map +0 -1
  581. package/engine/test-body-resource-attachment.d.ts +0 -53
  582. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  583. package/engine/test-body-resource-attachment.js +0 -30
  584. package/engine/test-body-resource-attachment.js.map +0 -1
  585. package/engine/test-body.d.ts +0 -16
  586. package/engine/test-body.d.ts.map +0 -1
  587. package/engine/test-body.js +0 -51
  588. package/engine/test-body.js.map +0 -1
  589. package/engine/test-data.d.ts +0 -25
  590. package/engine/test-data.d.ts.map +0 -1
  591. package/engine/test-data.js +0 -126
  592. package/engine/test-data.js.map +0 -1
  593. package/engine/test-node.d.ts +0 -178
  594. package/engine/test-node.d.ts.map +0 -1
  595. package/engine/test-node.js +0 -226
  596. package/engine/test-node.js.map +0 -1
  597. package/engine/test-plan.d.ts +0 -52
  598. package/engine/test-plan.d.ts.map +0 -1
  599. package/engine/test-plan.js +0 -315
  600. package/engine/test-plan.js.map +0 -1
  601. package/engine/test-scope-lifecycle.js +0 -65
  602. package/engine/test-scope-lifecycle.js.map +0 -1
  603. package/engine/throwing-test-scope.js +0 -27
  604. package/engine/throwing-test-scope.js.map +0 -1
  605. package/engine/workload-input.d.ts +0 -3
  606. package/engine/workload-input.d.ts.map +0 -1
  607. package/engine/workload-input.js +0 -54
  608. package/engine/workload-input.js.map +0 -1
  609. package/engine/workload-parameters.d.ts +0 -3
  610. package/engine/workload-parameters.d.ts.map +0 -1
  611. package/engine/workload-parameters.js +0 -67
  612. package/engine/workload-parameters.js.map +0 -1
  613. package/engine/workload-test-case.d.ts +0 -8
  614. package/engine/workload-test-case.d.ts.map +0 -1
  615. package/engine/workload-test-case.js +0 -33
  616. package/engine/workload-test-case.js.map +0 -1
  617. package/stored-value.js +0 -12
  618. package/stored-value.js.map +0 -1
@@ -1,143 +0,0 @@
1
- import asyncHooks, { AsyncLocalStorage } from 'node:async_hooks';
2
- import { createStoredValue } from "../stored-value.js";
3
- import { registerExecutionDisposal } from "./execution-observation.js";
4
- import { recordNativeResource, forgetNativeResource, clearNativeResources, observeNativeResources, sameNativeResourceType } from "./native-resource-observation.js";
5
- const activeResourceOwners = new AsyncLocalStorage();
6
- const activeAcquisition = new AsyncLocalStorage();
7
- const acquisitions = new Set();
8
- function createResourceAcquisition() {
9
- const owner = Symbol('resource acquisition');
10
- const allocations = new Set();
11
- const ownedAllocations = new Map();
12
- return {
13
- owner,
14
- record(type) {
15
- allocations.add(type);
16
- if (activeAcquisition.getStore() === owner) {
17
- ownedAllocations.set(type, (ownedAllocations.get(type) ?? 0) + 1);
18
- }
19
- },
20
- owns(type) {
21
- const provider = type.replace('Socket', '').toUpperCase();
22
- if (!allocations.has(provider)) {
23
- return true;
24
- }
25
- const count = ownedAllocations.get(provider) ?? 0;
26
- ownedAllocations.set(provider, Math.max(0, count - 1));
27
- return count > 0;
28
- }
29
- };
30
- }
31
- function recordResourceOwnerAllocation(type) {
32
- for (const acquisition of acquisitions) {
33
- acquisition.record(type);
34
- }
35
- }
36
- const allocationObservers = new Set();
37
- const allocationHook = createStoredValue(null);
38
- export function observeResourceOwnerAllocations() {
39
- const observer = Symbol('resource allocation observer');
40
- allocationObservers.add(observer);
41
- if (allocationHook.read() === null) {
42
- const createHookKey = 'createHook';
43
- const hook = asyncHooks[createHookKey]({
44
- init(id, type, _trigger, resource) {
45
- recordResourceOwnerAllocation(type);
46
- recordNativeResource(id, type, resource);
47
- },
48
- destroy(id) {
49
- forgetNativeResource(id);
50
- }
51
- });
52
- hook.enable();
53
- allocationHook.write(hook);
54
- }
55
- return function stopResourceOwnerAllocations() {
56
- allocationObservers.delete(observer);
57
- if (allocationObservers.size === 0) {
58
- allocationHook.read()?.disable();
59
- allocationHook.write(null);
60
- clearNativeResources();
61
- }
62
- };
63
- }
64
- function newResourceTypes(before, after) {
65
- const remaining = new Map();
66
- for (const type of before) {
67
- remaining.set(type, (remaining.get(type) ?? 0) + 1);
68
- }
69
- return after.filter(function newlyAllocated(type) {
70
- const count = remaining.get(type) ?? 0;
71
- remaining.set(type, Math.max(0, count - 1));
72
- return count === 0;
73
- });
74
- }
75
- async function acquiredResourceTypes(read, create) {
76
- const acquisition = createResourceAcquisition();
77
- const before = Array.from(read());
78
- acquisitions.add(acquisition);
79
- const unregister = registerExecutionDisposal(function stopAcquisitionObservation() {
80
- acquisitions.delete(acquisition);
81
- });
82
- try {
83
- const value = await activeAcquisition.run(acquisition.owner, create);
84
- return { value, resources: newResourceTypes(before, read()).filter(acquisition.owns) };
85
- }
86
- finally {
87
- unregister();
88
- acquisitions.delete(acquisition);
89
- }
90
- }
91
- export async function observeResourceOwnerAcquisition(create) {
92
- const observation = activeResourceOwners.getStore();
93
- if (observation === undefined) {
94
- return { value: await create(), owner: { resources: [] } };
95
- }
96
- const { value, resources } = await acquiredResourceTypes(observation.read, create);
97
- observation.append(resources);
98
- return { value, owner: { resources } };
99
- }
100
- export function releaseResourceOwner(owner) {
101
- const observation = activeResourceOwners.getStore();
102
- if (observation === undefined) {
103
- return;
104
- }
105
- observation.remove(owner.resources);
106
- }
107
- export async function observeCaseResourceOwners(read, run) {
108
- const resources = Array.from(read());
109
- const nativeResources = observeNativeResources();
110
- const observation = {
111
- read,
112
- append(types) {
113
- resources.push(...types);
114
- },
115
- remove(types) {
116
- for (const type of types) {
117
- const index = resources.indexOf(type);
118
- if (index !== -1) {
119
- resources.splice(index, 1);
120
- }
121
- }
122
- },
123
- baseline() {
124
- return Array.from(resources);
125
- }
126
- };
127
- const result = await activeResourceOwners.run(observation, run);
128
- return {
129
- result,
130
- get baseline() {
131
- return [...observation.baseline(), ...nativeResources().active];
132
- },
133
- get ambiguousResources() {
134
- const growth = newResourceTypes(observation.baseline(), read());
135
- return growth.filter(function uncertainOwnership(type) {
136
- return nativeResources().uncertain.some(function matchingProvider(provider) {
137
- return sameNativeResourceType(type, provider);
138
- });
139
- });
140
- }
141
- };
142
- }
143
- //# sourceMappingURL=resource-owner-observation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource-owner-observation.js","sourceRoot":"","sources":["../../../../source/engine/resource-owner-observation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAE,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EACH,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACzB,MAAM,kCAAkC,CAAC;AAqB1C,MAAM,oBAAoB,GAAG,IAAI,iBAAiB,EAAyB,CAAC;AAC5E,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAU,CAAC;AAM1D,MAAM,YAAY,GAAG,IAAI,GAAG,EAAuB,CAAC;AAEpD,SAAS,yBAAyB;IAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IACtC,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAkB,CAAC;IACnD,OAAO;QACH,KAAK;QACL,MAAM,CAAC,IAAI;YACP,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACtB,IAAI,iBAAiB,CAAC,QAAQ,EAAE,KAAK,KAAK,EAAE,CAAC;gBACzC,gBAAgB,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC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BAAkB,CAAC,IAAI;gBACjD,OAAO,eAAe,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,QAAQ;oBACtE,OAAO,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,4 +0,0 @@
1
- export type TestRetryPolicy = {
2
- readonly maxAttempts: number;
3
- };
4
- //# sourceMappingURL=retry-policy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry-policy.d.ts","sourceRoot":"","sources":["../../../../source/engine/retry-policy.ts"],"names":[],"mappings":"MAGM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAChC,CAAC"}
@@ -1,22 +0,0 @@
1
- export function assertRetryPolicy(policy) {
2
- if (policy !== null && (!Number.isSafeInteger(policy.maxAttempts) || policy.maxAttempts < 1)) {
3
- throw new TypeError('Retry maxAttempts must be a positive safe integer.');
4
- }
5
- }
6
- function retryableFailure(failure) {
7
- return ['assertion', 'body-error', 'timeout'].includes(failure.kind);
8
- }
9
- export function assertRetryFamily(policy, testPlan) {
10
- if (policy !== null && testPlan.cases.some(function isOtherFamily(testCase) {
11
- return testCase.testFamily !== null && testCase.testFamily !== 'integration';
12
- })) {
13
- throw new TypeError('Retries require integration or family-neutral test plans.');
14
- }
15
- }
16
- function isRetryableOutcome(outcome) {
17
- return outcome?.kind === 'fail' && outcome.failures.every(retryableFailure);
18
- }
19
- export function retryPolicyAllowsAttempt(policy, index, outcome) {
20
- return policy !== null && index < policy.maxAttempts && isRetryableOutcome(outcome);
21
- }
22
- //# sourceMappingURL=retry-policy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry-policy.js","sourceRoot":"","sources":["../../../../source/engine/retry-policy.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,iBAAiB,CAAC,MAA8B;IAC5D,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3F,MAAM,IAAI,SAAS,CAAC,oDAAoD,CAAC,CAAC;IAC9E,CAAC;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAoB;IAC1C,OAAO,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAA8B,EAAE,QAAkB;IAChF,IACI,MAAM,KAAK,IAAI,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,QAAQ;QAClE,OAAO,QAAQ,CAAC,UAAU,KAAK,IAAI,IAAI,QAAQ,CAAC,UAAU,KAAK,aAAa,CAAC;IACjF,CAAC,CAAC,EACJ,CAAC;QACC,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAC;IACrF,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CAAC,OAA2B;IACnD,OAAO,OAAO,EAAE,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,wBAAwB,CACpC,MAA8B,EAC9B,KAAa,EACb,OAA2B;IAE3B,OAAO,MAAM,KAAK,IAAI,IAAI,KAAK,GAAG,MAAM,CAAC,WAAW,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACxF,CAAC"}
@@ -1,45 +0,0 @@
1
- import type { AttemptId, CaseId, RuntimeId, WorkloadId } from './identity.ts';
2
- export type RunArtifactScope = {
3
- readonly activeCases: readonly CaseId[];
4
- readonly case: CaseId;
5
- readonly confidence: 'active-case' | 'concurrent-active';
6
- readonly kind: 'case';
7
- } | {
8
- readonly kind: 'run';
9
- };
10
- type RunArtifactBaseId = {
11
- readonly runtimes: readonly RuntimeId[];
12
- readonly sequence: number;
13
- readonly subtype: 'attachment' | 'coverage' | 'hedged-conflict' | 'log-capture' | 'witness';
14
- readonly workload: WorkloadId | null;
15
- };
16
- type CaseArtifactId = RunArtifactBaseId & {
17
- readonly attempt: AttemptId;
18
- readonly scope: Extract<RunArtifactScope, {
19
- readonly kind: 'case';
20
- }>;
21
- };
22
- type RunScopedArtifactId = RunArtifactBaseId & {
23
- readonly attempt: null;
24
- readonly scope: {
25
- readonly kind: 'run';
26
- };
27
- };
28
- export type RunArtifactId = CaseArtifactId | RunScopedArtifactId;
29
- export type CapturedOutputArtifactPayload = {
30
- readonly byteLength: number;
31
- readonly capturedAtMicroseconds: number;
32
- readonly kind: 'captured-output';
33
- readonly stream: 'stderr' | 'stdout';
34
- readonly text: string;
35
- readonly truncated: boolean;
36
- };
37
- export type CapturedOutputArtifact = {
38
- readonly id: RunArtifactId & {
39
- readonly subtype: 'log-capture' | 'witness';
40
- };
41
- readonly payload: CapturedOutputArtifactPayload;
42
- readonly source: 'boundary-captured' | 'native';
43
- };
44
- export {};
45
- //# sourceMappingURL=run-artifact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-artifact.d.ts","sourceRoot":"","sources":["../../../../source/engine/run-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,aAAa,GAAG,mBAAmB,CAAC;IACzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,GAAG;IACA,QAAQ,CAAC,IAAI,EAAE,KAAK,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AAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC;IAChD,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,QAAQ,CAAC;CACnD,CAAC"}
@@ -1,215 +0,0 @@
1
- import type { FailedCheck, NonEmptyReadonlyArray, ResolvableSourceLocation } from '../assertion-protocol/assertion-node-shape.ts';
2
- import type { AttemptId, CaseId, WorkId } from './identity.ts';
3
- import type { CapturedOutputArtifact, RunArtifactId } from './run-artifact.ts';
4
- import type { RunTimings } from './run-timings.ts';
5
- import type { RunProcessUsage } from './process-usage.ts';
6
- import type { CoverageArtifact } from './coverage-artifact.ts';
7
- import type { RuntimeAttachmentArtifact } from './runtime-attachment.ts';
8
- import type { BenchmarkExecutionResult } from './benchmark-result.ts';
9
- type RunnerErrorSubtypeByName = {
10
- readonly artifact: 'artifact';
11
- readonly attributionDrift: 'attribution-drift';
12
- readonly coverage: 'coverage';
13
- readonly crash: 'crash';
14
- readonly fixture: 'fixture';
15
- readonly loader: 'loader';
16
- readonly measurement: 'measurement';
17
- readonly permission: 'permission';
18
- readonly reporter: 'reporter';
19
- readonly processExhaustion: 'process-exhaustion';
20
- readonly runtimeState: 'runtime-state';
21
- readonly runtimePolicy: 'runtime-policy';
22
- readonly uncaughtException: 'uncaught-exception';
23
- readonly unhandledRejection: 'unhandled-rejection';
24
- };
25
- type RunnerErrorSubtype = RunnerErrorSubtypeByName[keyof RunnerErrorSubtypeByName];
26
- export type PassOutcome = {
27
- readonly checks?: never;
28
- readonly kind: 'pass';
29
- readonly reason?: never;
30
- };
31
- export type AssertionTestFailure = {
32
- readonly checks: NonEmptyReadonlyArray<FailedCheck>;
33
- readonly kind: 'assertion';
34
- };
35
- export type BodyErrorTestFailure = {
36
- readonly error: {
37
- readonly message: string;
38
- readonly name: string;
39
- readonly stack: string | null;
40
- readonly thrown: unknown;
41
- };
42
- readonly kind: 'body-error';
43
- };
44
- type TestContractFailureCodeByName = {
45
- readonly deadBuilderAssertion: 'dead-builder-assertion';
46
- readonly invalidAssertionReference: 'invalid-assertion-reference';
47
- readonly invalidCompositeResult: 'invalid-composite-result';
48
- readonly invalidDeepAssertionOperand: 'invalid-deep-assertion-operand';
49
- readonly invalidPlan: 'invalid-plan';
50
- readonly invalidTimeoutControl: 'invalid-timeout-control';
51
- readonly invalidRequireReference: 'invalid-require-reference';
52
- readonly noAssertions: 'no-assertions';
53
- readonly pendingInFlightTask: 'pending-in-flight-task';
54
- readonly pendingAsyncAssertion: 'pending-async-assertion';
55
- readonly planMismatch: 'plan-mismatch';
56
- readonly unobservedInFlightTask: 'unobserved-in-flight-task';
57
- };
58
- export type TestContractFailureCode = TestContractFailureCodeByName[keyof TestContractFailureCodeByName];
59
- export type TestContractFailure = {
60
- readonly actual: unknown;
61
- readonly code: TestContractFailureCode;
62
- readonly expected: string;
63
- readonly kind: 'test-contract';
64
- readonly summary: string;
65
- };
66
- type TimeoutTestFailure = {
67
- readonly deadlineMilliseconds: number;
68
- readonly elapsedMilliseconds: number;
69
- readonly kind: 'timeout';
70
- };
71
- type CleanupErrorTestFailure = {
72
- readonly error: {
73
- readonly message: string;
74
- readonly name: string;
75
- readonly stack: string | null;
76
- readonly thrown: unknown;
77
- };
78
- readonly kind: 'cleanup-error';
79
- };
80
- export type HedgedDuplicateConflictFailure = {
81
- readonly artifact: RunArtifactId;
82
- readonly kind: 'hedged-duplicate-conflict';
83
- readonly summary: string;
84
- };
85
- type TestFailureTypes = readonly [
86
- AssertionTestFailure,
87
- BodyErrorTestFailure,
88
- CleanupErrorTestFailure,
89
- HedgedDuplicateConflictFailure,
90
- TestContractFailure,
91
- TimeoutTestFailure
92
- ];
93
- export type TestFailure = TestFailureTypes[number];
94
- export type FailOutcome = {
95
- readonly failures: NonEmptyReadonlyArray<TestFailure>;
96
- readonly kind: 'fail';
97
- readonly reason?: never;
98
- };
99
- export type SkipOutcome = {
100
- readonly checks?: never;
101
- readonly kind: 'skip';
102
- readonly reason: string;
103
- };
104
- export type InconclusiveOutcome = {
105
- readonly checks?: never;
106
- readonly kind: 'inconclusive';
107
- readonly reason: string;
108
- };
109
- export type TestOutcome = FailOutcome | InconclusiveOutcome | PassOutcome | SkipOutcome;
110
- export type TestVerdict = TestOutcome['kind'] | 'crashed' | 'process-exhausted' | 'runtime-policy';
111
- export type RunnerError = {
112
- readonly attributedToAttempt: AttemptId | null;
113
- readonly attributedTo: CaseId | null;
114
- readonly attributedToWork?: WorkId | null;
115
- readonly cause: unknown;
116
- readonly diagnostics: readonly RunnerErrorDiagnostic[];
117
- readonly message: string;
118
- readonly subtype: RunnerErrorSubtype;
119
- };
120
- type RunnerErrorDiagnostic = {
121
- readonly label: string;
122
- readonly value: string;
123
- };
124
- export type CaseRunnerErrorOptions = {
125
- readonly cause: unknown;
126
- readonly subtype: RunnerErrorSubtype;
127
- };
128
- export declare class CaseRunnerError extends Error {
129
- private readonly runnerErrorCause;
130
- private readonly runnerErrorSubtype;
131
- constructor(message: string, options: CaseRunnerErrorOptions);
132
- runnerError(attributedTo: CaseId, attributedToWork: WorkId): RunnerError;
133
- }
134
- export type RunSummary = {
135
- readonly crashed: number;
136
- readonly defined: number;
137
- readonly discovered: number;
138
- readonly failed: number;
139
- readonly inconclusive: number;
140
- readonly passed: number;
141
- readonly planned: number;
142
- readonly processExhausted: number;
143
- readonly runtimePolicy: number;
144
- readonly skipped: number;
145
- };
146
- export type RunStatus = 'failed' | 'passed';
147
- export type RunPlanStatus = 'empty-selection' | 'empty-shard' | 'planned';
148
- export type TestAttemptResult = {
149
- readonly benchmark: BenchmarkExecutionResult | null;
150
- readonly attempt: AttemptId;
151
- readonly outcome: TestOutcome | null;
152
- readonly verdict: TestVerdict;
153
- readonly durationMicroseconds: number;
154
- };
155
- export type RetrySummary = {
156
- readonly attempts: number;
157
- readonly finalVerdict: TestVerdict;
158
- };
159
- export type PerTestResult = {
160
- readonly benchmark: BenchmarkExecutionResult | null;
161
- readonly attempts: NonEmptyReadonlyArray<TestAttemptResult>;
162
- readonly retried: RetrySummary | null;
163
- readonly definitionLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>;
164
- readonly id: CaseId;
165
- readonly outcome: TestOutcome | null;
166
- readonly verdict: TestVerdict;
167
- readonly workId: WorkId;
168
- readonly durationMicroseconds: number;
169
- };
170
- export type HedgedConflictEvidence = {
171
- readonly attachments: readonly RuntimeAttachmentArtifact[];
172
- readonly attempts: NonEmptyReadonlyArray<TestAttemptResult>;
173
- readonly outcome: TestOutcome | null;
174
- readonly verdict: TestVerdict;
175
- };
176
- export type HedgedConflictArtifactPayload = {
177
- readonly authoritative: HedgedConflictEvidence;
178
- readonly conflicting: HedgedConflictEvidence;
179
- readonly kind: 'hedged-conflict';
180
- readonly work: WorkId;
181
- };
182
- export type HedgedConflictArtifact = {
183
- readonly id: RunArtifactId & {
184
- readonly subtype: 'hedged-conflict';
185
- };
186
- readonly payload: HedgedConflictArtifactPayload;
187
- readonly source: 'native';
188
- };
189
- type DiagnosticArtifact = CapturedOutputArtifact | RuntimeAttachmentArtifact;
190
- export type RunArtifact = CoverageArtifact | DiagnosticArtifact | HedgedConflictArtifact;
191
- export type SuiteRunCounts = {
192
- readonly discovered: number;
193
- readonly executed: number;
194
- readonly planned: number;
195
- };
196
- export type OrphanedNode = {
197
- readonly definitionLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>;
198
- readonly file: string | null;
199
- readonly kind: 'suite' | 'table' | 'test';
200
- readonly title: string;
201
- };
202
- export type RunResult = {
203
- readonly artifacts: readonly RunArtifact[];
204
- readonly bySuite: Readonly<Record<string, SuiteRunCounts>>;
205
- readonly orphans: readonly OrphanedNode[];
206
- readonly perTest: readonly PerTestResult[];
207
- readonly planStatus: RunPlanStatus;
208
- readonly processUsage: RunProcessUsage | null;
209
- readonly runnerErrors: readonly RunnerError[];
210
- readonly status: RunStatus;
211
- readonly summary: RunSummary;
212
- readonly timings: RunTimings;
213
- };
214
- export {};
215
- //# sourceMappingURL=run-result.d.ts.map
@@ -1 +0,0 @@
1
- {"version":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3C,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9C,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF"}
@@ -1,202 +0,0 @@
1
- export function invalidDeepAssertionOperandFailure(actual) {
2
- return {
3
- actual,
4
- code: 'invalid-deep-assertion-operand',
5
- expected: 'non-primitive deep assertion operand',
6
- kind: 'test-contract',
7
- summary: 'Deep assertions require non-primitive operands.'
8
- };
9
- }
10
- const permissionCapabilities = {
11
- ChildProcess: 'child-process',
12
- FileSystemRead: 'fs-read',
13
- FileSystemWrite: 'fs-write',
14
- Inspector: 'inspector',
15
- Network: 'net',
16
- OpenSSLStore: 'openssl-store',
17
- WASI: 'wasi',
18
- WorkerThreads: 'worker'
19
- };
20
- function readStringProperty(value, property) {
21
- if (value === null || typeof value !== 'object') {
22
- return null;
23
- }
24
- const propertyValue = Reflect.get(value, property);
25
- return typeof propertyValue === 'string' ? propertyValue : null;
26
- }
27
- function accessDeniedErrorCode(error) {
28
- return readStringProperty(error, 'code');
29
- }
30
- function permissionCapability(permission, fallback) {
31
- if (permission === null) {
32
- return fallback;
33
- }
34
- return permissionCapabilities[permission] ?? fallback;
35
- }
36
- function serializedDeniedError(error) {
37
- if (error instanceof Error) {
38
- return {
39
- code: accessDeniedErrorCode(error),
40
- message: error.message,
41
- name: error.name,
42
- permission: readStringProperty(error, 'permission'),
43
- resource: readStringProperty(error, 'resource'),
44
- stack: error.stack ?? null
45
- };
46
- }
47
- return {
48
- code: accessDeniedErrorCode(error),
49
- message: String(error),
50
- name: 'Error',
51
- permission: readStringProperty(error, 'permission'),
52
- resource: readStringProperty(error, 'resource'),
53
- stack: null
54
- };
55
- }
56
- function permissionDeniedMessage(permission, resource) {
57
- const permissionLabel = permission ?? 'unknown permission';
58
- return resource === null
59
- ? `Permission denied: ${permissionLabel}.`
60
- : `Permission denied: ${permissionLabel} for ${resource}.`;
61
- }
62
- function permissionDeniedCause(input) {
63
- const permission = readStringProperty(input.error, 'permission') ??
64
- readStringProperty(input.diagnosticMessage, 'permission');
65
- const resource = readStringProperty(input.error, 'resource') ??
66
- readStringProperty(input.diagnosticMessage, 'resource');
67
- return {
68
- boundary: input.context.boundary,
69
- capability: permissionCapability(permission, input.capabilityFallback),
70
- diagnosticChannel: input.context.diagnosticChannel,
71
- error: input.error === null ? null : serializedDeniedError(input.error),
72
- hook: input.context.hook,
73
- kind: 'node-permission-denial',
74
- permission,
75
- phase: input.context.phase,
76
- resource,
77
- source: input.source
78
- };
79
- }
80
- function permissionDeniedRunnerError(context, cause) {
81
- return {
82
- attributedToAttempt: null,
83
- attributedTo: context.attributedTo,
84
- attributedToWork: context.attributedToWork,
85
- cause,
86
- diagnostics: [],
87
- message: permissionDeniedMessage(cause.permission, cause.resource),
88
- subtype: 'permission'
89
- };
90
- }
91
- function isAccessDeniedError(error) {
92
- return accessDeniedErrorCode(error) === 'ERR_ACCESS_DENIED';
93
- }
94
- export function permissionDeniedRunnerErrorFromThrown(error, context) {
95
- if (!isAccessDeniedError(error)) {
96
- return null;
97
- }
98
- return permissionDeniedRunnerError(context, permissionDeniedCause({
99
- capabilityFallback: null,
100
- context,
101
- diagnosticMessage: null,
102
- error,
103
- source: 'throw'
104
- }));
105
- }
106
- export function permissionDeniedRunnerErrorFromDiagnostic(diagnostic, context) {
107
- return permissionDeniedRunnerError(context, permissionDeniedCause({
108
- capabilityFallback: diagnostic.fallbackCapability,
109
- context: {
110
- ...context,
111
- diagnosticChannel: diagnostic.channel
112
- },
113
- diagnosticMessage: diagnostic.message,
114
- error: null,
115
- source: 'diagnostic-channel'
116
- }));
117
- }
118
- export function isPermissionDeniedRunnerError(error) {
119
- return error.subtype === 'permission' &&
120
- typeof error.cause === 'object' &&
121
- error.cause !== null &&
122
- Reflect.get(error.cause, 'kind') === 'node-permission-denial';
123
- }
124
- const caseRunnerErrorBrand = Symbol.for('@overkill-dev/engine/CaseRunnerError');
125
- export class CaseRunnerError extends Error {
126
- runnerErrorCause;
127
- runnerErrorSubtype;
128
- constructor(message, options) {
129
- super(message, options);
130
- this.name = 'CaseRunnerError';
131
- this.runnerErrorCause = options.cause;
132
- this.runnerErrorSubtype = options.subtype;
133
- Object.defineProperty(this, caseRunnerErrorBrand, {
134
- value: true
135
- });
136
- }
137
- runnerError(attributedTo, attributedToWork) {
138
- return {
139
- attributedToAttempt: null,
140
- attributedTo,
141
- attributedToWork,
142
- cause: this.runnerErrorCause,
143
- diagnostics: [],
144
- message: this.message,
145
- subtype: this.runnerErrorSubtype
146
- };
147
- }
148
- }
149
- function hasCaseRunnerErrorBrand(value) {
150
- if (typeof value !== 'object' || value === null) {
151
- return false;
152
- }
153
- return Reflect.get(value, caseRunnerErrorBrand) === true &&
154
- typeof Reflect.get(value, 'runnerError') === 'function';
155
- }
156
- export function isCaseRunnerError(value) {
157
- return value instanceof CaseRunnerError || hasCaseRunnerErrorBrand(value);
158
- }
159
- function failingRunConditions(summary, runnerErrors) {
160
- return [
161
- runnerErrors.length > 0,
162
- summary.crashed > 0,
163
- summary.failed > 0,
164
- summary.planned === 0,
165
- summary.processExhausted > 0,
166
- summary.runtimePolicy > 0
167
- ];
168
- }
169
- export function runStatusFromSummary(summary, runnerErrors) {
170
- if (failingRunConditions(summary, runnerErrors).includes(true)) {
171
- return 'failed';
172
- }
173
- return 'passed';
174
- }
175
- export function runStatusFromPlan(summary, runnerErrors, planStatus) {
176
- if (runnerErrors.length === 0 && planStatus === 'empty-shard') {
177
- return 'passed';
178
- }
179
- return runStatusFromSummary(summary, runnerErrors);
180
- }
181
- function hasBenchmarkResult(result) {
182
- return Object.hasOwn(result, 'benchmark');
183
- }
184
- export function singleAttemptResult(result, attempt) {
185
- const benchmark = hasBenchmarkResult(result) ? result.benchmark : null;
186
- return {
187
- ...result,
188
- benchmark,
189
- attempts: [{
190
- benchmark,
191
- attempt,
192
- durationMicroseconds: result.durationMicroseconds,
193
- outcome: result.outcome,
194
- verdict: result.verdict
195
- }],
196
- retried: null
197
- };
198
- }
199
- export function verdictFromOutcome(outcome) {
200
- return outcome.kind;
201
- }
202
- //# sourceMappingURL=run-result.js.map