@overkill-dev/run 0.0.84 → 0.0.85

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 (612) 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-eligibility.js +1 -1
  65. package/run/attachment-eligibility.js.map +1 -1
  66. package/run/attachment-execution.js +2 -2
  67. package/run/attachment-execution.js.map +1 -1
  68. package/run/attachment-failure.js +1 -1
  69. package/run/attachment-failure.js.map +1 -1
  70. package/run/attachment-protocol.js +1 -1
  71. package/run/attachment-protocol.js.map +1 -1
  72. package/run/attachment-reporter.js +2 -2
  73. package/run/attachment-reporter.js.map +1 -1
  74. package/run/attachment-results.js +3 -3
  75. package/run/attachment-results.js.map +1 -1
  76. package/run/attachment-retention.js +1 -1
  77. package/run/attachment-retention.js.map +1 -1
  78. package/run/attachment-store.js +1 -1
  79. package/run/attachment-store.js.map +1 -1
  80. package/run/benchmark-baseline-commands.js +1 -1
  81. package/run/benchmark-baseline-commands.js.map +1 -1
  82. package/run/benchmark-baseline-finalization.js +1 -1
  83. package/run/benchmark-baseline-finalization.js.map +1 -1
  84. package/run/benchmark-garbage-collection.js +1 -1
  85. package/run/benchmark-garbage-collection.js.map +1 -1
  86. package/run/benchmark-policy-schema.js +1 -1
  87. package/run/benchmark-policy-schema.js.map +1 -1
  88. package/run/benchmark-report-metadata.js +1 -1
  89. package/run/benchmark-report-metadata.js.map +1 -1
  90. package/run/benchmark-result-schema.js +1 -1
  91. package/run/benchmark-result-schema.js.map +1 -1
  92. package/run/calibration-capture-session.js +2 -2
  93. package/run/calibration-capture-session.js.map +1 -1
  94. package/run/calibration-inventory.js +2 -2
  95. package/run/calibration-inventory.js.map +1 -1
  96. package/run/calibration-maintenance.js +1 -1
  97. package/run/calibration-maintenance.js.map +1 -1
  98. package/run/capability-policy-snapshots.d.ts +1 -1
  99. package/run/capability-policy-snapshots.d.ts.map +1 -1
  100. package/run/capability-policy.js +3 -3
  101. package/run/capability-policy.js.map +1 -1
  102. package/run/collected-run-execution.js +1 -1
  103. package/run/collected-run-execution.js.map +1 -1
  104. package/run/collected-run-plan-schema.js +2 -2
  105. package/run/collected-run-plan-schema.js.map +1 -1
  106. package/run/collected-run-plan.js +4 -4
  107. package/run/collected-run-plan.js.map +1 -1
  108. package/run/command-line-command.d.ts +1 -1
  109. package/run/command-line-command.d.ts.map +1 -1
  110. package/run/command-line-command.js +1 -1
  111. package/run/command-line-command.js.map +1 -1
  112. package/run/command-line-config.d.ts +1 -1
  113. package/run/command-line-config.d.ts.map +1 -1
  114. package/run/default-direct-reporter.js +1 -1
  115. package/run/default-direct-reporter.js.map +1 -1
  116. package/run/default-run-engine.js +7 -7
  117. package/run/default-run-engine.js.map +1 -1
  118. package/run/direct-entrypoint-collection.js +3 -3
  119. package/run/direct-entrypoint-collection.js.map +1 -1
  120. package/run/execution-plan-resolution.js +1 -1
  121. package/run/execution-plan-resolution.js.map +1 -1
  122. package/run/execution-session-child.js +1 -1
  123. package/run/execution-session-child.js.map +1 -1
  124. package/run/execution-session-collected.js +1 -1
  125. package/run/execution-session-collected.js.map +1 -1
  126. package/run/execution-session-host.js +1 -1
  127. package/run/execution-session-host.js.map +1 -1
  128. package/run/execution-session-lifecycle.js +2 -2
  129. package/run/execution-session-lifecycle.js.map +1 -1
  130. package/run/execution-session-observation.js +1 -1
  131. package/run/execution-session-observation.js.map +1 -1
  132. package/run/execution-session-schema.js +1 -1
  133. package/run/execution-session-schema.js.map +1 -1
  134. package/run/execution-session-types.d.ts +1 -1
  135. package/run/execution-session-types.d.ts.map +1 -1
  136. package/run/execution-session.js +1 -1
  137. package/run/execution-session.js.map +1 -1
  138. package/run/failure-artifact-retention.js +2 -2
  139. package/run/failure-artifact-retention.js.map +1 -1
  140. package/run/frozen-run-policy.js +1 -1
  141. package/run/frozen-run-policy.js.map +1 -1
  142. package/run/initialized-run-collection.js +1 -1
  143. package/run/initialized-run-collection.js.map +1 -1
  144. package/run/node-command-line-runner.d.ts +1 -1
  145. package/run/node-command-line-runner.d.ts.map +1 -1
  146. package/run/node-process-policy-observation.js +1 -1
  147. package/run/node-process-policy-observation.js.map +1 -1
  148. package/run/node-run-execution.js +1 -1
  149. package/run/node-run-execution.js.map +1 -1
  150. package/run/node-run-orchestrator-dependencies.js +1 -1
  151. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  152. package/run/permission-denial-runtime-policy.js +3 -3
  153. package/run/permission-denial-runtime-policy.js.map +1 -1
  154. package/run/placement-trace.d.ts +2 -2
  155. package/run/placement-trace.d.ts.map +1 -1
  156. package/run/property-collection.js +1 -1
  157. package/run/property-collection.js.map +1 -1
  158. package/run/recorded-coverage-session.js +1 -1
  159. package/run/recorded-coverage-session.js.map +1 -1
  160. package/run/reporter-event-schema.js +1 -1
  161. package/run/reporter-event-schema.js.map +1 -1
  162. package/run/resource-lifecycle-boundaries.js +1 -1
  163. package/run/resource-lifecycle-boundaries.js.map +1 -1
  164. package/run/resource-lifecycle-cache-identity.js +2 -2
  165. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  166. package/run/resource-lifecycle-composition.d.ts +1 -1
  167. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  168. package/run/resource-lifecycle-error.d.ts +1 -1
  169. package/run/resource-lifecycle-error.d.ts.map +1 -1
  170. package/run/resource-lifecycle-error.js +1 -1
  171. package/run/resource-lifecycle-error.js.map +1 -1
  172. package/run/resource-lifecycle-session-acquirer.js +1 -1
  173. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  174. package/run/resource-lifecycle-state.d.ts +3 -3
  175. package/run/resource-lifecycle-state.d.ts.map +1 -1
  176. package/run/resource-lifecycle-state.js +2 -2
  177. package/run/resource-lifecycle-state.js.map +1 -1
  178. package/run/resource-ownership-plan.d.ts +2 -2
  179. package/run/resource-ownership-plan.d.ts.map +1 -1
  180. package/run/retry-artifact-retention.js +1 -1
  181. package/run/retry-artifact-retention.js.map +1 -1
  182. package/run/run-artifact-schema.d.ts +1 -1
  183. package/run/run-artifact-schema.d.ts.map +1 -1
  184. package/run/run-case-facts.js +1 -1
  185. package/run/run-case-facts.js.map +1 -1
  186. package/run/run-collection-error-result.js +2 -2
  187. package/run/run-collection-error-result.js.map +1 -1
  188. package/run/run-discovery-types.d.ts +1 -1
  189. package/run/run-discovery-types.d.ts.map +1 -1
  190. package/run/run-engine-primitives.d.ts +8 -8
  191. package/run/run-engine-primitives.d.ts.map +1 -1
  192. package/run/run-engine-selection.d.ts +1 -1
  193. package/run/run-engine-selection.d.ts.map +1 -1
  194. package/run/run-errors.d.ts +2 -2
  195. package/run/run-errors.d.ts.map +1 -1
  196. package/run/run-errors.js +1 -1
  197. package/run/run-errors.js.map +1 -1
  198. package/run/run-if-main-options.d.ts +3 -3
  199. package/run/run-if-main-options.d.ts.map +1 -1
  200. package/run/run-if-main.d.ts +1 -1
  201. package/run/run-if-main.d.ts.map +1 -1
  202. package/run/run-list-renderer.js +2 -2
  203. package/run/run-list-renderer.js.map +1 -1
  204. package/run/run-local-sharding.js +1 -1
  205. package/run/run-local-sharding.js.map +1 -1
  206. package/run/run-local-test-plan.js +21 -17
  207. package/run/run-local-test-plan.js.map +1 -1
  208. package/run/run-record-outcomes.d.ts +5 -5
  209. package/run/run-record-outcomes.d.ts.map +1 -1
  210. package/run/run-record-result.d.ts +1 -1
  211. package/run/run-record-result.d.ts.map +1 -1
  212. package/run/run-record-result.js +2 -2
  213. package/run/run-record-result.js.map +1 -1
  214. package/run/run-record-storage.js +1 -1
  215. package/run/run-record-storage.js.map +1 -1
  216. package/run/run-record-types.d.ts +3 -3
  217. package/run/run-record-types.d.ts.map +1 -1
  218. package/run/run-request-types.d.ts +3 -3
  219. package/run/run-request-types.d.ts.map +1 -1
  220. package/run/run-result-reporting.js +1 -1
  221. package/run/run-result-reporting.js.map +1 -1
  222. package/run/run-result-schema.d.ts +1 -1
  223. package/run/run-result-schema.d.ts.map +1 -1
  224. package/run/run-runtime-schema.js +1 -1
  225. package/run/run-runtime-schema.js.map +1 -1
  226. package/run/run-selection-filters.d.ts +2 -2
  227. package/run/run-selection-filters.d.ts.map +1 -1
  228. package/run/run-selection-filters.js +1 -1
  229. package/run/run-selection-filters.js.map +1 -1
  230. package/run/run-selection.js +2 -2
  231. package/run/run-selection.js.map +1 -1
  232. package/run/run-sharding.js +1 -1
  233. package/run/run-sharding.js.map +1 -1
  234. package/run/run-test-modules.d.ts +3 -3
  235. package/run/run-test-modules.d.ts.map +1 -1
  236. package/run/run-timing-collection.d.ts +2 -2
  237. package/run/run-timing-collection.d.ts.map +1 -1
  238. package/run/run-timing-collection.js +1 -1
  239. package/run/run-timing-collection.js.map +1 -1
  240. package/run/run-types.d.ts +1 -1
  241. package/run/run-types.d.ts.map +1 -1
  242. package/run/run-validation.js +1 -1
  243. package/run/run-validation.js.map +1 -1
  244. package/run/simulation-witness.js +1 -1
  245. package/run/simulation-witness.js.map +1 -1
  246. package/run/supervised-child-execution.js +3 -3
  247. package/run/supervised-child-execution.js.map +1 -1
  248. package/run/supervised-child-test-plan.js +1 -1
  249. package/run/supervised-child-test-plan.js.map +1 -1
  250. package/run/supervised-child.js +1 -1
  251. package/run/supervised-child.js.map +1 -1
  252. package/run/supervised-output-capture.js +1 -1
  253. package/run/supervised-output-capture.js.map +1 -1
  254. package/run/supervised-protocol.js +1 -1
  255. package/run/supervised-protocol.js.map +1 -1
  256. package/run/supervised-run-process-policy.js +2 -2
  257. package/run/supervised-run-process-policy.js.map +1 -1
  258. package/run/supervised-run-runtime.js +1 -1
  259. package/run/supervised-run-runtime.js.map +1 -1
  260. package/run/supervised-run-state.js +3 -3
  261. package/run/supervised-run-state.js.map +1 -1
  262. package/run/work-unit-identity.js +1 -1
  263. package/run/work-unit-identity.js.map +1 -1
  264. package/run/work-unit-planning.js +1 -1
  265. package/run/work-unit-planning.js.map +1 -1
  266. package/run/work-unit-resource-constraints.js +2 -2
  267. package/run/work-unit-resource-constraints.js.map +1 -1
  268. package/run/worker-execution-engine.js +2 -2
  269. package/run/worker-execution-engine.js.map +1 -1
  270. package/run/worker-pool-hedge-dispatch.js +1 -1
  271. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  272. package/run/worker-pool-hedged-arbitration.js +1 -1
  273. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  274. package/run/worker-pool-host.entry-point.js +1 -1
  275. package/run/worker-pool-host.entry-point.js.map +1 -1
  276. package/run/worker-pool-output.js +1 -1
  277. package/run/worker-pool-output.js.map +1 -1
  278. package/run/worker-pool-pending-splitting.js +1 -1
  279. package/run/worker-pool-pending-splitting.js.map +1 -1
  280. package/run/worker-pool-placement-planning.js +1 -1
  281. package/run/worker-pool-placement-planning.js.map +1 -1
  282. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  283. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  284. package/run/worker-pool-results.js +1 -1
  285. package/run/worker-pool-results.js.map +1 -1
  286. package/run/worker-pool-task-events.js +2 -2
  287. package/run/worker-pool-task-events.js.map +1 -1
  288. package/run/worker-pool-warm-lane-affinity.js +1 -1
  289. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  290. package/run/worker-pool-work-load.js +1 -1
  291. package/run/worker-pool-work-load.js.map +1 -1
  292. package/run/worker-pool-worker-plan.js +2 -2
  293. package/run/worker-pool-worker-plan.js.map +1 -1
  294. package/run/worker-pool-worker-resources.js +1 -1
  295. package/run/worker-pool-worker-resources.js.map +1 -1
  296. package/run/worker-pool-worker.js +1 -1
  297. package/run/worker-pool-worker.js.map +1 -1
  298. package/run/workload-input-validation.js +1 -1
  299. package/run/workload-input-validation.js.map +1 -1
  300. package/software-bill-of-materials.cyclonedx.json +21 -38
  301. package/transcript/http-transcript-artifact.js +1 -1
  302. package/transcript/http-transcript-artifact.js.map +1 -1
  303. package/assertion-protocol/assertion-evaluation.js +0 -6
  304. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  305. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  306. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  307. package/assertion-protocol/assertion-node.d.ts +0 -82
  308. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  309. package/assertion-protocol/assertion-node.js +0 -33
  310. package/assertion-protocol/assertion-node.js.map +0 -1
  311. package/assertion-protocol/assertion-reference.d.ts +0 -50
  312. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  313. package/assertion-protocol/assertion-reference.js +0 -22
  314. package/assertion-protocol/assertion-reference.js.map +0 -1
  315. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  316. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  317. package/assertion-protocol/assertions/boolean.js +0 -12
  318. package/assertion-protocol/assertions/boolean.js.map +0 -1
  319. package/assertion-protocol/assertions/collection.d.ts +0 -13
  320. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  321. package/assertion-protocol/assertions/collection.js +0 -21
  322. package/assertion-protocol/assertions/collection.js.map +0 -1
  323. package/assertion-protocol/assertions/dispatch.js +0 -47
  324. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  325. package/assertion-protocol/assertions/equality.d.ts +0 -6
  326. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  327. package/assertion-protocol/assertions/equality.js +0 -24
  328. package/assertion-protocol/assertions/equality.js.map +0 -1
  329. package/assertion-protocol/assertions/fail.d.ts +0 -8
  330. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  331. package/assertion-protocol/assertions/fail.js +0 -8
  332. package/assertion-protocol/assertions/fail.js.map +0 -1
  333. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  334. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  335. package/assertion-protocol/assertions/numeric.js +0 -43
  336. package/assertion-protocol/assertions/numeric.js.map +0 -1
  337. package/assertion-protocol/assertions/partial.d.ts +0 -5
  338. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  339. package/assertion-protocol/assertions/partial.js +0 -17
  340. package/assertion-protocol/assertions/partial.js.map +0 -1
  341. package/assertion-protocol/assertions/presence.d.ts +0 -6
  342. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  343. package/assertion-protocol/assertions/presence.js +0 -20
  344. package/assertion-protocol/assertions/presence.js.map +0 -1
  345. package/assertion-protocol/assertions/string.d.ts +0 -15
  346. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  347. package/assertion-protocol/assertions/string.js +0 -33
  348. package/assertion-protocol/assertions/string.js.map +0 -1
  349. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  350. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  351. package/assertion-protocol/assertions/type-shape.js +0 -43
  352. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  353. package/assertion-protocol/collection-count.js +0 -42
  354. package/assertion-protocol/collection-count.js.map +0 -1
  355. package/assertion-protocol/evaluation.js +0 -175
  356. package/assertion-protocol/evaluation.js.map +0 -1
  357. package/assertion-protocol/partial-matching.js +0 -13
  358. package/assertion-protocol/partial-matching.js.map +0 -1
  359. package/assertion-protocol/source-location-forwarding.js +0 -32
  360. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  361. package/assertion-protocol/source-location.js +0 -119
  362. package/assertion-protocol/source-location.js.map +0 -1
  363. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  364. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  365. package/assertion-protocol/thrown-error-record.js +0 -17
  366. package/assertion-protocol/thrown-error-record.js.map +0 -1
  367. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  368. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  369. package/assertion-protocol/thrown-matcher.js +0 -201
  370. package/assertion-protocol/thrown-matcher.js.map +0 -1
  371. package/attachments/json-snapshot.js +0 -125
  372. package/attachments/json-snapshot.js.map +0 -1
  373. package/canonical-identity.js +0 -54
  374. package/canonical-identity.js.map +0 -1
  375. package/compare/comparison-result.js +0 -47
  376. package/compare/comparison-result.js.map +0 -1
  377. package/compare/comparison-state.js +0 -20
  378. package/compare/comparison-state.js.map +0 -1
  379. package/compare/comparison.js +0 -78
  380. package/compare/comparison.js.map +0 -1
  381. package/compare/diff-path.js +0 -37
  382. package/compare/diff-path.js.map +0 -1
  383. package/compare/raw-comparison.js +0 -285
  384. package/compare/raw-comparison.js.map +0 -1
  385. package/compare/serialized-value-classification.js +0 -99
  386. package/compare/serialized-value-classification.js.map +0 -1
  387. package/compare/serialized-value-shape.d.ts +0 -134
  388. package/compare/serialized-value-shape.d.ts.map +0 -1
  389. package/compare/serialized-value-shape.js +0 -12
  390. package/compare/serialized-value-shape.js.map +0 -1
  391. package/compare/serialized-value-state.js +0 -55
  392. package/compare/serialized-value-state.js.map +0 -1
  393. package/compare/serialized-value.d.ts +0 -4
  394. package/compare/serialized-value.d.ts.map +0 -1
  395. package/compare/serialized-value.js +0 -389
  396. package/compare/serialized-value.js.map +0 -1
  397. package/compare/structured-diff.js +0 -382
  398. package/compare/structured-diff.js.map +0 -1
  399. package/compare/value-classification.js +0 -112
  400. package/compare/value-classification.js.map +0 -1
  401. package/diff/binary-diff.js +0 -49
  402. package/diff/binary-diff.js.map +0 -1
  403. package/diff/diff-shape.d.ts +0 -122
  404. package/diff/diff-shape.d.ts.map +0 -1
  405. package/diff/string-diff.js +0 -22
  406. package/diff/string-diff.js.map +0 -1
  407. package/engine/assertion-facade.d.ts +0 -47
  408. package/engine/assertion-facade.d.ts.map +0 -1
  409. package/engine/assertion-facade.js +0 -362
  410. package/engine/assertion-facade.js.map +0 -1
  411. package/engine/assertion-recorder.d.ts +0 -12
  412. package/engine/assertion-recorder.d.ts.map +0 -1
  413. package/engine/assertion-recorder.js +0 -251
  414. package/engine/assertion-recorder.js.map +0 -1
  415. package/engine/async-control.d.ts +0 -7
  416. package/engine/async-control.d.ts.map +0 -1
  417. package/engine/async-control.js +0 -162
  418. package/engine/async-control.js.map +0 -1
  419. package/engine/async-leak-diagnostics.js +0 -188
  420. package/engine/async-leak-diagnostics.js.map +0 -1
  421. package/engine/benchmark-environment.d.ts +0 -8
  422. package/engine/benchmark-environment.d.ts.map +0 -1
  423. package/engine/benchmark-garbage-collection.d.ts +0 -8
  424. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  425. package/engine/benchmark-garbage-collection.js +0 -4
  426. package/engine/benchmark-garbage-collection.js.map +0 -1
  427. package/engine/benchmark-limits.js +0 -3
  428. package/engine/benchmark-limits.js.map +0 -1
  429. package/engine/benchmark-node.d.ts +0 -37
  430. package/engine/benchmark-node.d.ts.map +0 -1
  431. package/engine/benchmark-node.js +0 -9
  432. package/engine/benchmark-node.js.map +0 -1
  433. package/engine/benchmark-result.d.ts +0 -247
  434. package/engine/benchmark-result.d.ts.map +0 -1
  435. package/engine/benchmark-result.js +0 -2
  436. package/engine/benchmark-result.js.map +0 -1
  437. package/engine/benchmark-timeline.d.ts +0 -12
  438. package/engine/benchmark-timeline.d.ts.map +0 -1
  439. package/engine/case-attempt-execution.js +0 -234
  440. package/engine/case-attempt-execution.js.map +0 -1
  441. package/engine/case-body-execution.js +0 -232
  442. package/engine/case-body-execution.js.map +0 -1
  443. package/engine/case-execution-lifecycle.js +0 -22
  444. package/engine/case-execution-lifecycle.js.map +0 -1
  445. package/engine/case-execution.d.ts +0 -14
  446. package/engine/case-execution.d.ts.map +0 -1
  447. package/engine/case-execution.js +0 -225
  448. package/engine/case-execution.js.map +0 -1
  449. package/engine/case-interruption.js +0 -26
  450. package/engine/case-interruption.js.map +0 -1
  451. package/engine/coverage-artifact.d.ts +0 -36
  452. package/engine/coverage-artifact.d.ts.map +0 -1
  453. package/engine/custom-assertion-recording.js +0 -175
  454. package/engine/custom-assertion-recording.js.map +0 -1
  455. package/engine/engine.d.ts +0 -21
  456. package/engine/engine.d.ts.map +0 -1
  457. package/engine/engine.js +0 -35
  458. package/engine/engine.js.map +0 -1
  459. package/engine/execution-async-leak-policy.d.ts +0 -3
  460. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  461. package/engine/execution-async-leak-policy.js +0 -95
  462. package/engine/execution-async-leak-policy.js.map +0 -1
  463. package/engine/execution-error-ownership.d.ts +0 -6
  464. package/engine/execution-error-ownership.d.ts.map +0 -1
  465. package/engine/execution-error-ownership.js +0 -83
  466. package/engine/execution-error-ownership.js.map +0 -1
  467. package/engine/execution-global-error-observer.d.ts +0 -15
  468. package/engine/execution-global-error-observer.d.ts.map +0 -1
  469. package/engine/execution-global-error-observer.js +0 -276
  470. package/engine/execution-global-error-observer.js.map +0 -1
  471. package/engine/execution-observation.js +0 -212
  472. package/engine/execution-observation.js.map +0 -1
  473. package/engine/execution-options.d.ts +0 -39
  474. package/engine/execution-options.d.ts.map +0 -1
  475. package/engine/execution-options.js +0 -42
  476. package/engine/execution-options.js.map +0 -1
  477. package/engine/execution-preparation.d.ts +0 -13
  478. package/engine/execution-preparation.d.ts.map +0 -1
  479. package/engine/execution-preparation.js +0 -34
  480. package/engine/execution-preparation.js.map +0 -1
  481. package/engine/execution-process-budget-breach.d.ts +0 -8
  482. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  483. package/engine/execution-process-budget-breach.js +0 -30
  484. package/engine/execution-process-budget-breach.js.map +0 -1
  485. package/engine/execution-process-budget-tracking.js +0 -33
  486. package/engine/execution-process-budget-tracking.js.map +0 -1
  487. package/engine/execution-process-tracked-cases.js +0 -40
  488. package/engine/execution-process-tracked-cases.js.map +0 -1
  489. package/engine/execution-result.js +0 -120
  490. package/engine/execution-result.js.map +0 -1
  491. package/engine/execution-supervision-state.js +0 -54
  492. package/engine/execution-supervision-state.js.map +0 -1
  493. package/engine/execution-supervision.d.ts +0 -16
  494. package/engine/execution-supervision.d.ts.map +0 -1
  495. package/engine/execution-supervision.js +0 -345
  496. package/engine/execution-supervision.js.map +0 -1
  497. package/engine/execution-test-plan-cases.js +0 -216
  498. package/engine/execution-test-plan-cases.js.map +0 -1
  499. package/engine/execution-test-plan-process-usage.js +0 -14
  500. package/engine/execution-test-plan-process-usage.js.map +0 -1
  501. package/engine/execution.d.ts +0 -8
  502. package/engine/execution.d.ts.map +0 -1
  503. package/engine/execution.js +0 -71
  504. package/engine/execution.js.map +0 -1
  505. package/engine/identity.d.ts +0 -31
  506. package/engine/identity.d.ts.map +0 -1
  507. package/engine/identity.js +0 -68
  508. package/engine/identity.js.map +0 -1
  509. package/engine/native-resource-observation.js +0 -70
  510. package/engine/native-resource-observation.js.map +0 -1
  511. package/engine/node-assertion-error.js +0 -47
  512. package/engine/node-assertion-error.js.map +0 -1
  513. package/engine/process-usage-growth.js +0 -12
  514. package/engine/process-usage-growth.js.map +0 -1
  515. package/engine/process-usage.d.ts +0 -22
  516. package/engine/process-usage.d.ts.map +0 -1
  517. package/engine/property-node.d.ts +0 -30
  518. package/engine/property-node.d.ts.map +0 -1
  519. package/engine/property-node.js +0 -9
  520. package/engine/property-node.js.map +0 -1
  521. package/engine/recorded-assertion-failure.js +0 -30
  522. package/engine/recorded-assertion-failure.js.map +0 -1
  523. package/engine/reporter-dispatcher.d.ts +0 -17
  524. package/engine/reporter-dispatcher.d.ts.map +0 -1
  525. package/engine/reporter-dispatcher.js +0 -316
  526. package/engine/reporter-dispatcher.js.map +0 -1
  527. package/engine/reporter-disposal.js +0 -13
  528. package/engine/reporter-disposal.js.map +0 -1
  529. package/engine/reporter-error-delivery-tracking.js +0 -33
  530. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  531. package/engine/reporter-event-queue.js +0 -55
  532. package/engine/reporter-event-queue.js.map +0 -1
  533. package/engine/reporter-managed-output.js +0 -105
  534. package/engine/reporter-managed-output.js.map +0 -1
  535. package/engine/reporter-output-scope.js +0 -65
  536. package/engine/reporter-output-scope.js.map +0 -1
  537. package/engine/reporter-output.d.ts +0 -28
  538. package/engine/reporter-output.d.ts.map +0 -1
  539. package/engine/reporter-output.js +0 -17
  540. package/engine/reporter-output.js.map +0 -1
  541. package/engine/reporter.d.ts +0 -197
  542. package/engine/reporter.d.ts.map +0 -1
  543. package/engine/reporter.js +0 -111
  544. package/engine/reporter.js.map +0 -1
  545. package/engine/reporting-context.d.ts +0 -6
  546. package/engine/reporting-context.d.ts.map +0 -1
  547. package/engine/reporting-context.js +0 -74
  548. package/engine/reporting-context.js.map +0 -1
  549. package/engine/require-assertion-facade.d.ts +0 -18
  550. package/engine/require-assertion-facade.d.ts.map +0 -1
  551. package/engine/require-assertion-facade.js +0 -128
  552. package/engine/require-assertion-facade.js.map +0 -1
  553. package/engine/resource-owner-observation.js +0 -143
  554. package/engine/resource-owner-observation.js.map +0 -1
  555. package/engine/retry-policy.d.ts +0 -4
  556. package/engine/retry-policy.d.ts.map +0 -1
  557. package/engine/retry-policy.js +0 -22
  558. package/engine/retry-policy.js.map +0 -1
  559. package/engine/run-artifact.d.ts +0 -45
  560. package/engine/run-artifact.d.ts.map +0 -1
  561. package/engine/run-result.d.ts +0 -215
  562. package/engine/run-result.d.ts.map +0 -1
  563. package/engine/run-result.js +0 -202
  564. package/engine/run-result.js.map +0 -1
  565. package/engine/run-timings.d.ts +0 -57
  566. package/engine/run-timings.d.ts.map +0 -1
  567. package/engine/run-timings.js +0 -120
  568. package/engine/run-timings.js.map +0 -1
  569. package/engine/runner-error-reporting.js +0 -29
  570. package/engine/runner-error-reporting.js.map +0 -1
  571. package/engine/runtime-attachment.d.ts +0 -82
  572. package/engine/runtime-attachment.d.ts.map +0 -1
  573. package/engine/test-attempt-history.js +0 -25
  574. package/engine/test-attempt-history.js.map +0 -1
  575. package/engine/test-body-resource-attachment.d.ts +0 -53
  576. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  577. package/engine/test-body-resource-attachment.js +0 -30
  578. package/engine/test-body-resource-attachment.js.map +0 -1
  579. package/engine/test-body.d.ts +0 -16
  580. package/engine/test-body.d.ts.map +0 -1
  581. package/engine/test-body.js +0 -51
  582. package/engine/test-body.js.map +0 -1
  583. package/engine/test-data.d.ts +0 -25
  584. package/engine/test-data.d.ts.map +0 -1
  585. package/engine/test-data.js +0 -126
  586. package/engine/test-data.js.map +0 -1
  587. package/engine/test-node.d.ts +0 -178
  588. package/engine/test-node.d.ts.map +0 -1
  589. package/engine/test-node.js +0 -226
  590. package/engine/test-node.js.map +0 -1
  591. package/engine/test-plan.d.ts +0 -52
  592. package/engine/test-plan.d.ts.map +0 -1
  593. package/engine/test-plan.js +0 -315
  594. package/engine/test-plan.js.map +0 -1
  595. package/engine/test-scope-lifecycle.js +0 -65
  596. package/engine/test-scope-lifecycle.js.map +0 -1
  597. package/engine/throwing-test-scope.js +0 -27
  598. package/engine/throwing-test-scope.js.map +0 -1
  599. package/engine/workload-input.d.ts +0 -3
  600. package/engine/workload-input.d.ts.map +0 -1
  601. package/engine/workload-input.js +0 -54
  602. package/engine/workload-input.js.map +0 -1
  603. package/engine/workload-parameters.d.ts +0 -3
  604. package/engine/workload-parameters.d.ts.map +0 -1
  605. package/engine/workload-parameters.js +0 -67
  606. package/engine/workload-parameters.js.map +0 -1
  607. package/engine/workload-test-case.d.ts +0 -8
  608. package/engine/workload-test-case.d.ts.map +0 -1
  609. package/engine/workload-test-case.js +0 -33
  610. package/engine/workload-test-case.js.map +0 -1
  611. package/stored-value.js +0 -12
  612. package/stored-value.js.map +0 -1
@@ -1,28 +0,0 @@
1
- import type { SourceLocation } from '../assertion-protocol/assertion-node-shape.ts';
2
- import type { ReportingContext } from './reporting-context.ts';
3
- declare const outputRendererBrand: unique symbol;
4
- export type OutputIntentRole = 'primary' | 'supplemental';
5
- export type OutputIntentSeverity = 'error' | 'notice' | 'warning';
6
- export type OutputIntentAnnotation = {
7
- readonly location: SourceLocation | null;
8
- readonly severity: OutputIntentSeverity;
9
- readonly title: string | null;
10
- };
11
- export type OutputLineIntent = {
12
- readonly annotation: OutputIntentAnnotation | null;
13
- readonly kind: 'stderr-line' | 'stdout-line';
14
- readonly role: OutputIntentRole;
15
- readonly text: string;
16
- };
17
- export type ReporterOutput = readonly OutputLineIntent[];
18
- export type OptionalReporterOutput = ReporterOutput | undefined;
19
- export type OutputRenderer = {
20
- readonly render: (intent: OutputLineIntent) => string;
21
- };
22
- type RendererFactory<Renderer extends OutputRenderer> = (context: ReportingContext) => Renderer;
23
- type Brand = {
24
- readonly [outputRendererBrand]: true;
25
- };
26
- export type DefinedOutputRenderer<Renderer extends OutputRenderer = OutputRenderer> = Brand & RendererFactory<Renderer>;
27
- export {};
28
- //# sourceMappingURL=reporter-output.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reporter-output.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporter-output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,QAAA,MAAM,mBAAmB,eAAqD,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,cAAc,CAAC;AAC1D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,UAAU,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,aAAa,CAAC;IAC7C,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,gBAAgB,EAAE,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAC;CACzD,CAAC;AACF,KAAK,eAAe,CAAC,QAAQ,SAAS,cAAc,IAAI,CACpD,OAAO,EAAE,gBAAgB,KACxB,QAAQ,CAAC;AACd,KAAK,KAAK,GAAG;IACT,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC;CACxC,CAAC;AACF,MAAM,MAAM,qBAAqB,CAAC,QAAQ,SAAS,cAAc,GAAG,cAAc,IAAI,KAAK,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAExH,MAAM,CAAyB,EAE9B,CAAC"}
@@ -1,17 +0,0 @@
1
- const outputRendererBrand = Symbol.for('@overkill-dev/engine/output-renderer');
2
- export function defineOutputRenderer(createOutputRenderer) {
3
- return Object.assign(createOutputRenderer, { [outputRendererBrand]: true });
4
- }
5
- export function isOutputRenderer(value) {
6
- return typeof value === 'function' && Object.hasOwn(value, outputRendererBrand);
7
- }
8
- export function createPlainOutputRenderer() {
9
- return defineOutputRenderer(function createPlainRuntimeOutputRenderer() {
10
- return {
11
- render(intent) {
12
- return intent.text;
13
- }
14
- };
15
- });
16
- }
17
- //# sourceMappingURL=reporter-output.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reporter-output.js","sourceRoot":"","sources":["../../../../source/engine/reporter-output.ts"],"names":[],"mappings":"AAGA,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;AAoC/E,MAAM,UAAU,oBAAoB,CAChC,oBAA+C;IAE/C,OAAO,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,CAAC,mBAAmB,CAAC,EAAE,IAAa,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,OAAO,oBAAoB,CAAC,SAAS,gCAAgC;QACjE,OAAO;YACH,MAAM,CAAC,MAAM;gBACT,OAAO,MAAM,CAAC,IAAI,CAAC;YACvB,CAAC;SACJ,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,197 +0,0 @@
1
- import type { BenchmarkExecutionResult } from './benchmark-result.ts';
2
- import type { CaseId, WorkId } from './identity.ts';
3
- import type { OptionalReporterOutput } from './reporter-output.ts';
4
- import type { ReportingContext } from './reporting-context.ts';
5
- import type { RunResult, RunnerError, TestOutcome, TestVerdict, RunArtifact } from './run-result.ts';
6
- import type { TestAnnotations } from './test-data.ts';
7
- import type { TestPlanCase, TestPlanSuitePathEntry } from './test-plan.ts';
8
- declare const reporterBrand: unique symbol;
9
- export type RunFacts = Readonly<Record<string, unknown>>;
10
- export type RawStandardOutputSinkDeclaration = {
11
- readonly kind: 'stderr-raw' | 'stdout-raw';
12
- };
13
- declare const managedStandardOutputSinkKinds: readonly ["stderr-managed-primary", "stderr-managed-supplemental", "stdout-managed-primary", "stdout-managed-supplemental"];
14
- type ManagedStandardOutputSinkKind = typeof managedStandardOutputSinkKinds[number];
15
- export type ManagedStandardOutputSinkDeclaration = {
16
- readonly kind: ManagedStandardOutputSinkKind;
17
- };
18
- export type FileSinkDeclaration = {
19
- readonly kind: 'file';
20
- readonly path: string;
21
- };
22
- export type DirectorySinkDeclaration = {
23
- readonly kind: 'directory';
24
- readonly path: string;
25
- };
26
- export type MemorySinkDeclaration = {
27
- readonly kind: 'memory';
28
- };
29
- export type StreamSinkDeclaration = {
30
- readonly kind: 'stream';
31
- readonly provided: WritableStream<unknown>;
32
- };
33
- type FileSystemSinkDeclaration = DirectorySinkDeclaration | FileSinkDeclaration;
34
- type PrivateSinkDeclaration = MemorySinkDeclaration | StreamSinkDeclaration;
35
- export type StandardOutputSinkDeclaration = ManagedStandardOutputSinkDeclaration | RawStandardOutputSinkDeclaration;
36
- type ReporterSinkDeclaration = FileSystemSinkDeclaration | StandardOutputSinkDeclaration;
37
- export type SinkDeclaration = PrivateSinkDeclaration | ReporterSinkDeclaration;
38
- type NonManagedSinkDeclaration = Exclude<SinkDeclaration, ManagedStandardOutputSinkDeclaration>;
39
- type ManagedSinkAt1 = readonly [ManagedStandardOutputSinkDeclaration, ...SinkDeclaration[]];
40
- type ManagedSinkAt2 = readonly [
41
- NonManagedSinkDeclaration,
42
- ManagedStandardOutputSinkDeclaration,
43
- ...SinkDeclaration[]
44
- ];
45
- type ManagedSinkAt3 = readonly [
46
- NonManagedSinkDeclaration,
47
- NonManagedSinkDeclaration,
48
- ManagedStandardOutputSinkDeclaration,
49
- ...SinkDeclaration[]
50
- ];
51
- type ManagedSinkAt4 = readonly [
52
- NonManagedSinkDeclaration,
53
- NonManagedSinkDeclaration,
54
- NonManagedSinkDeclaration,
55
- ManagedStandardOutputSinkDeclaration,
56
- ...SinkDeclaration[]
57
- ];
58
- type ManagedSinkAt5 = readonly [
59
- NonManagedSinkDeclaration,
60
- NonManagedSinkDeclaration,
61
- NonManagedSinkDeclaration,
62
- NonManagedSinkDeclaration,
63
- ManagedStandardOutputSinkDeclaration,
64
- ...SinkDeclaration[]
65
- ];
66
- type ManagedSinkAt6 = readonly [
67
- NonManagedSinkDeclaration,
68
- NonManagedSinkDeclaration,
69
- NonManagedSinkDeclaration,
70
- NonManagedSinkDeclaration,
71
- NonManagedSinkDeclaration,
72
- ManagedStandardOutputSinkDeclaration,
73
- ...SinkDeclaration[]
74
- ];
75
- type ManagedSinkAt1To3 = ManagedSinkAt1 | ManagedSinkAt2 | ManagedSinkAt3;
76
- type ManagedSinkAt4To6 = ManagedSinkAt4 | ManagedSinkAt5 | ManagedSinkAt6;
77
- type ManagedStandardOutputSinkTuple = ManagedSinkAt1To3 | ManagedSinkAt4To6;
78
- export declare class ReporterSinkConflictError extends Error {
79
- constructor(message: string, options?: Readonly<ErrorOptions>);
80
- }
81
- type RunStartReporterEvent = {
82
- readonly facts: RunFacts;
83
- readonly kind: 'run-start';
84
- readonly root: {
85
- readonly annotations: TestAnnotations;
86
- readonly title: string;
87
- };
88
- readonly startedAt: string;
89
- };
90
- type RunEndReporterEvent = {
91
- readonly kind: 'run-end';
92
- readonly result: RunResult;
93
- };
94
- type RunnerErrorReporterEvent = {
95
- readonly error: RunnerError;
96
- readonly kind: 'runner-error';
97
- };
98
- type SuiteStartReporterEvent = {
99
- readonly kind: 'suite-start';
100
- readonly suitePath: readonly TestPlanSuitePathEntry[];
101
- };
102
- type SuiteEndReporterEvent = {
103
- readonly kind: 'suite-end';
104
- readonly suitePath: readonly TestPlanSuitePathEntry[];
105
- };
106
- type TestStartReporterEvent = {
107
- readonly attempt: number;
108
- readonly case: CaseId;
109
- readonly definitionLocations: TestPlanCase['definitionLocations'];
110
- readonly kind: 'test-start';
111
- readonly suitePath: TestPlanCase['suitePath'];
112
- readonly workId?: WorkId;
113
- };
114
- type TestProgressReporterEvent = {
115
- readonly attempt: number;
116
- readonly case: CaseId;
117
- readonly definitionLocations: TestPlanCase['definitionLocations'];
118
- readonly kind: 'test-progress';
119
- readonly note: string;
120
- readonly suitePath: TestPlanCase['suitePath'];
121
- readonly workId?: WorkId;
122
- };
123
- type TestEndReporterEvent = {
124
- readonly benchmark: BenchmarkExecutionResult | null;
125
- readonly completion: 'final' | 'retry';
126
- readonly attempt: number;
127
- readonly artifacts: readonly RunArtifact[];
128
- readonly case: CaseId;
129
- readonly definitionLocations: TestPlanCase['definitionLocations'];
130
- readonly kind: 'test-end';
131
- readonly outcome: TestOutcome | null;
132
- readonly suitePath: TestPlanCase['suitePath'];
133
- readonly verdict: TestVerdict;
134
- readonly durationMicroseconds: number;
135
- readonly workId?: WorkId;
136
- };
137
- type BenchmarkProgressReporterEvent = {
138
- readonly benchmark: BenchmarkExecutionResult;
139
- readonly attempt: number;
140
- readonly case: CaseId;
141
- readonly definitionLocations: TestPlanCase['definitionLocations'];
142
- readonly kind: 'benchmark-progress';
143
- readonly suitePath: TestPlanCase['suitePath'];
144
- readonly workId: WorkId;
145
- };
146
- type RunReporterEvent = RunEndReporterEvent | RunnerErrorReporterEvent | RunStartReporterEvent;
147
- type SuiteReporterEvent = SuiteEndReporterEvent | SuiteStartReporterEvent;
148
- type TestReporterEvents = {
149
- readonly benchmark: BenchmarkProgressReporterEvent;
150
- readonly end: TestEndReporterEvent;
151
- readonly progress: TestProgressReporterEvent;
152
- readonly start: TestStartReporterEvent;
153
- };
154
- type TestReporterEvent = TestReporterEvents[keyof TestReporterEvents];
155
- export type ReporterEvent = RunReporterEvent | SuiteReporterEvent | TestReporterEvent;
156
- type BaseRealTimeReporter<Sinks extends readonly SinkDeclaration[]> = {
157
- readonly dispose: (() => Promise<void> | void) | null;
158
- readonly kind: 'real-time';
159
- readonly name: string;
160
- readonly sinks: Sinks;
161
- };
162
- type ManagedOutputEventCallback = (event: ReporterEvent) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
163
- type ManagedOutputFinishCallback = (result: RunResult) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
164
- type RealTimeReporterWithOutput<Sinks extends readonly SinkDeclaration[]> = BaseRealTimeReporter<Sinks> & {
165
- readonly onEvent: ManagedOutputEventCallback;
166
- readonly onFinish: ManagedOutputFinishCallback | null;
167
- };
168
- type RealTimeReporterWithoutOutput<Sinks extends readonly SinkDeclaration[]> = BaseRealTimeReporter<Sinks> & {
169
- readonly onEvent: (event: ReporterEvent) => Promise<void> | void;
170
- readonly onFinish: ((result: RunResult) => Promise<void> | void) | null;
171
- };
172
- type BaseFinalResultReporter<Sinks extends readonly SinkDeclaration[]> = {
173
- readonly dispose: (() => Promise<void> | void) | null;
174
- readonly kind: 'final-result';
175
- readonly name: string;
176
- readonly sinks: Sinks;
177
- };
178
- type ManagedOutputResultCallback = (result: RunResult) => OptionalReporterOutput | Promise<OptionalReporterOutput>;
179
- type FinalResultReporterWithOutput<Sinks extends readonly SinkDeclaration[]> = BaseFinalResultReporter<Sinks> & {
180
- readonly onResult: ManagedOutputResultCallback;
181
- };
182
- type FinalResultReporterWithoutOutput<Sinks extends readonly SinkDeclaration[]> = BaseFinalResultReporter<Sinks> & {
183
- readonly onResult: (result: RunResult) => Promise<void> | void;
184
- };
185
- type OutputFinalReporter = FinalResultReporterWithOutput<ManagedStandardOutputSinkTuple>;
186
- type OutputRealTimeReporter = RealTimeReporterWithOutput<ManagedStandardOutputSinkTuple>;
187
- type SideEffectFinalReporter = FinalResultReporterWithoutOutput<readonly SinkDeclaration[]>;
188
- type SideEffectRealTimeReporter = RealTimeReporterWithoutOutput<readonly SinkDeclaration[]>;
189
- type OutputReporter = OutputFinalReporter | OutputRealTimeReporter;
190
- type SideEffectReporter = SideEffectFinalReporter | SideEffectRealTimeReporter;
191
- export type Reporter = OutputReporter | SideEffectReporter;
192
- type ReporterDefinition<ReporterValue extends Reporter> = (context: ReportingContext) => ReporterValue;
193
- export type DefinedReporter<ReporterValue extends Reporter = Reporter> = ReporterDefinition<ReporterValue> & {
194
- readonly [reporterBrand]: true;
195
- };
196
- export {};
197
- //# sourceMappingURL=reporter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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inkKinds = [
3
- 'stderr-managed-primary',
4
- 'stderr-managed-supplemental',
5
- 'stdout-managed-primary',
6
- 'stdout-managed-supplemental'
7
- ];
8
- const managedStandardOutputSinkKindNames = managedStandardOutputSinkKinds;
9
- export class ReporterSinkConflictError extends Error {
10
- constructor(message, options) {
11
- super(message, options);
12
- this.name = 'ReporterSinkConflictError';
13
- }
14
- }
15
- const reporterRequirementsBrand = Symbol.for('@overkill-dev/engine/reporter-requirements');
16
- export function defineReporter(definition) {
17
- if (typeof definition === 'function') {
18
- return Object.assign(definition, { [reporterBrand]: true });
19
- }
20
- return Object.assign(definition.createReporter, {
21
- [reporterBrand]: true,
22
- [reporterRequirementsBrand]: definition.validateRunFacts
23
- });
24
- }
25
- function hasReporterRequirements(reporter) {
26
- return Object.hasOwn(reporter, reporterRequirementsBrand);
27
- }
28
- export function validateReporterRunFacts(reporter, facts) {
29
- if (hasReporterRequirements(reporter)) {
30
- reporter[reporterRequirementsBrand](facts);
31
- }
32
- }
33
- export function isReporter(value) {
34
- return typeof value === 'function' && Object.hasOwn(value, reporterBrand);
35
- }
36
- function pathSinkKey(sink) {
37
- return `path:${sink.path}`;
38
- }
39
- function standardOutputStream(sink) {
40
- return sink.kind.startsWith('stderr') ? 'stderr' : 'stdout';
41
- }
42
- function isManagedStandardOutputSink(sink) {
43
- return managedStandardOutputSinkKindNames.includes(sink.kind);
44
- }
45
- function standardOutputRole(sink) {
46
- if (sink.kind.endsWith('primary')) {
47
- return 'primary';
48
- }
49
- return 'supplemental';
50
- }
51
- function standardOutputSinkConflictMessage(stream) {
52
- return `Reporter sink conflict: ${stream} is claimed by incompatible reporters.`;
53
- }
54
- function nextClaimedStandardOutputRole(existingSink, sink) {
55
- return existingSink?.role === 'primary' ? 'primary' : standardOutputRole(sink);
56
- }
57
- function claimStandardOutputSink(claimedSinks, key, sink) {
58
- const updatedSinks = new Map(claimedSinks);
59
- return updatedSinks.set(key, sink);
60
- }
61
- function validateRawStandardOutputSink(claimedSinks, sink) {
62
- const key = standardOutputStream(sink);
63
- if (claimedSinks.has(key)) {
64
- throw new ReporterSinkConflictError(standardOutputSinkConflictMessage(key));
65
- }
66
- return claimStandardOutputSink(claimedSinks, key, { mode: 'raw', role: null });
67
- }
68
- function validateManagedStandardOutputSink(claimedSinks, sink) {
69
- const key = standardOutputStream(sink);
70
- const existingSink = claimedSinks.get(key);
71
- const sinkRole = standardOutputRole(sink);
72
- if (existingSink?.mode === 'raw' || existingSink?.role === 'primary' && sinkRole === 'primary') {
73
- throw new ReporterSinkConflictError(standardOutputSinkConflictMessage(key));
74
- }
75
- return claimStandardOutputSink(claimedSinks, key, {
76
- mode: 'managed',
77
- role: nextClaimedStandardOutputRole(existingSink, sink)
78
- });
79
- }
80
- function validatePathSink(claimedSinks, sink) {
81
- const key = pathSinkKey(sink);
82
- if (claimedSinks.has(key)) {
83
- throw new ReporterSinkConflictError(`Reporter sink conflict: path "${sink.path}" is claimed by multiple reporters.`);
84
- }
85
- const updatedSinks = new Map(claimedSinks);
86
- return updatedSinks.set(key, {
87
- mode: 'raw',
88
- role: null
89
- });
90
- }
91
- function validateReporterSink(claimedSinks, sink) {
92
- if (sink.kind === 'stdout-raw' || sink.kind === 'stderr-raw') {
93
- return validateRawStandardOutputSink(claimedSinks, sink);
94
- }
95
- if (isManagedStandardOutputSink(sink)) {
96
- return validateManagedStandardOutputSink(claimedSinks, sink);
97
- }
98
- if (sink.kind === 'file' || sink.kind === 'directory') {
99
- return validatePathSink(claimedSinks, sink);
100
- }
101
- return claimedSinks;
102
- }
103
- export function validateReporterSinks(reporters) {
104
- let claimedSinks = new Map();
105
- for (const reporter of reporters) {
106
- for (const sink of reporter.sinks) {
107
- claimedSinks = validateReporterSink(claimedSinks, sink);
108
- }
109
- }
110
- }
111
- //# sourceMappingURL=reporter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../../../source/engine/reporter.ts"],"names":[],"mappings":"AAQA,MAAM,aAAa,GAAG,M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AAS,oBAAoB,CACzB,YAA8C,EAC9C,IAAqB;IAErB,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QAC3D,OAAO,6BAA6B,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IACD,IAAI,2BAA2B,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,OAAO,iCAAiC,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAO,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,SAA8B;IAChE,IAAI,YAAY,GAAqC,IAAI,GAAG,EAAE,CAAC;IAE/D,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;YAChC,YAAY,GAAG,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAC5D,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { KnownSourceLocation } from '../assertion-protocol/assertion-node-shape.ts';
2
- export type ReportingContext = {
3
- readonly relativizeLocationPath: (location: KnownSourceLocation) => string;
4
- };
5
- export {};
6
- //# sourceMappingURL=reporting-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reporting-context.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporting-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,qBAEH,MAAM,+CAA+C,CAAC;AAOvD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,MAAM,CAAC;CAC9E,CAAC;AAEF,MAAM,CAAgC,EAGrC,CAAC"}
@@ -1,74 +0,0 @@
1
- import path from 'node:path';
2
- import { ensureKnownSourceLocation, ensureValidSourceLocation, resolveSourceLocation } from "../assertion-protocol/source-location.js";
3
- const secondToLastOffset = 2;
4
- function normalizedPath(file) {
5
- return file.replaceAll('\\', '/');
6
- }
7
- function pathApi(file) {
8
- return path.win32.isAbsolute(file) ? path.win32 : path.posix;
9
- }
10
- function isAbsolutePath(file) {
11
- return path.posix.isAbsolute(file) || path.win32.isAbsolute(file);
12
- }
13
- function isOutsideRoot(relativeFile) {
14
- return relativeFile === '..' ||
15
- relativeFile.startsWith('../') ||
16
- relativeFile.startsWith('..\\') ||
17
- isAbsolutePath(relativeFile);
18
- }
19
- function rawLocationPath(location) {
20
- ensureValidSourceLocation(location);
21
- return normalizedPath(location.file);
22
- }
23
- export function relativizeSourceLocationPath(location, projectRoot) {
24
- ensureValidSourceLocation(location);
25
- if (projectRoot === null || !isAbsolutePath(location.file) || !isAbsolutePath(projectRoot)) {
26
- return rawLocationPath(location);
27
- }
28
- const platformPath = pathApi(location.file);
29
- const relativeFile = platformPath.relative(projectRoot, location.file);
30
- return relativeFile.length > 0 && !isOutsideRoot(relativeFile)
31
- ? normalizedPath(relativeFile)
32
- : rawLocationPath(location);
33
- }
34
- export function createReportingContext(state) {
35
- return {
36
- relativizeLocationPath(location) {
37
- return relativizeSourceLocationPath(location, state.projectRoot);
38
- }
39
- };
40
- }
41
- export function formatSourceLocation(location, context) {
42
- const knownLocation = ensureKnownSourceLocation(resolveSourceLocation(location));
43
- if (knownLocation === null) {
44
- return null;
45
- }
46
- const file = context.relativizeLocationPath(knownLocation);
47
- if (knownLocation.line === null) {
48
- return file;
49
- }
50
- if (knownLocation.column === null) {
51
- return `${file}:${knownLocation.line}`;
52
- }
53
- return `${file}:${knownLocation.line}:${knownLocation.column}`;
54
- }
55
- function formatLocationChain(locations, context, labels) {
56
- const primaryLocation = locations[0];
57
- const primary = primaryLocation === undefined ? null : formatSourceLocation(primaryLocation, context);
58
- const details = locations.slice(1).flatMap(function renderSourceLocation(location, index) {
59
- const renderedLocation = formatSourceLocation(location, context);
60
- if (renderedLocation === null) {
61
- return [];
62
- }
63
- const label = index === locations.length - secondToLastOffset ? labels.final : labels.intermediate;
64
- return [`${label} ${renderedLocation}`];
65
- });
66
- return { details, primary };
67
- }
68
- export function formatDefinitionLocations(locations, context) {
69
- return formatLocationChain(locations, context, { final: 'constructed at', intermediate: 'expanded at' });
70
- }
71
- export function formatAssertionSourceLocations(locations, context) {
72
- return formatLocationChain(locations, context, { final: 'asserted at', intermediate: 'forwarded through' });
73
- }
74
- //# sourceMappingURL=reporting-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reporting-context.js","sourceRoot":"","sources":["../../../../source/engine/reporting-context.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAK7B,OAAO,EACH,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,0CAA0C,CAAC;AAoBlD,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,SAAS,cAAc,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,OAAO,CAAC,IAAY;IACzB,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AACjE,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,SAAS,aAAa,CAAC,YAAoB;IACvC,OAAO,YAAY,KAAK,IAAI;QACxB,YAAY,CAAC,U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AAED,MAAM,UAAU,yBAAyB,CACrC,SAA8C,EAC9C,OAAyB;IAEzB,OAAO,mBAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC,CAAC;AAC7G,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC1C,SAA8C,EAC9C,OAAyB;IAEzB,OAAO,mBAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC,CAAC;AAChH,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { NarrowingCompositeAssertionReference } from '../assertion-protocol/assertion-reference.ts';
2
- import type { AssertionOptions, InstanceConstructor } from '../assertion-protocol/assertion-node-shape.ts';
3
- export type RequireAssertionFacade = {
4
- <Actual, Narrowed extends Actual, Arguments extends readonly unknown[]>(reference: NarrowingCompositeAssertionReference<Actual, Narrowed, Arguments>, actual: Actual, ...parameters: Arguments): asserts actual is Narrowed;
5
- readonly annotated: (message: string) => RequireAssertionFacade;
6
- readonly array: (actual: unknown, options?: AssertionOptions) => asserts actual is readonly unknown[];
7
- readonly boolean: (actual: unknown, options?: AssertionOptions) => asserts actual is boolean;
8
- readonly defined: <Value>(actual: Value, options?: AssertionOptions) => asserts actual is NonNullable<Value>;
9
- readonly function: (actual: unknown, options?: AssertionOptions) => asserts actual is (...parameters: readonly unknown[]) => unknown;
10
- readonly hasProperty: <Key extends PropertyKey>(actual: unknown, key: Key, options?: AssertionOptions) => asserts actual is Readonly<Record<Key, unknown>>;
11
- readonly instanceOf: <Constructor extends InstanceConstructor>(actual: unknown, expected: Constructor, options?: AssertionOptions) => asserts actual is InstanceType<Constructor>;
12
- readonly notNull: <Value>(actual: Value, options?: AssertionOptions) => asserts actual is Exclude<Value, null>;
13
- readonly null: (actual: unknown, options?: AssertionOptions) => asserts actual is null;
14
- readonly number: (actual: unknown, options?: AssertionOptions) => asserts actual is number;
15
- readonly object: (actual: unknown, options?: AssertionOptions) => asserts actual is Readonly<Record<PropertyKey, unknown>>;
16
- readonly string: (actual: unknown, options?: AssertionOptions) => asserts actual is string;
17
- };
18
- //# sourceMappingURL=require-assertion-facade.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-assertion-facade.d.ts","sourceRoot":"","sources":["../../../../source/engine/require-assertion-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,KAAK,EACR,gBAAgB,EAChB,qBAEH,MAAM,+CAA+C,CAAC;MAQjD,MAAM,sBAAsB,GAAG;IACjC,CAAC,MAAM,EAAE,QAAQ,SAAS,MAAM,EAAE,SAAS,SAAS,SAAS,OAAO,EAAE,EAClE,SAAS,EAAE,oCAAoC,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,EAC5E,MAAM,EAAE,MAAM,EACd,GAAG,UAAU,EAAE,SAAS,GACzB,OAAO,CAAC,MAAM,IAAI,QAAQ,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,sBAAsB,CAAC;IAChE,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,SAAS,OAAO,EAAE,CAAC;IACtG,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC;IAC7F,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC;IAC7G,QAAQ,CAAC,QAAQ,EAAE,CACf,MAAM,EAAE,OAAO,EACf,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,gBAAgB,KAAK,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC;CAC9F,CAAC"}
@@ -1,128 +0,0 @@
1
- import { sourceLocationsWithCurrentForwarding } from "../assertion-protocol/source-location-forwarding.js";
2
- import { captureSourceLocation } from "../assertion-protocol/source-location.js";
3
- import { recordRequireReference } from "./custom-assertion-recording.js";
4
- function messageFromOptions(options, annotation) {
5
- return options?.message ?? annotation;
6
- }
7
- export function createRecordingRequireFacadeWithLocation(sink, annotation, captureLocation) {
8
- const methods = {
9
- annotated(message) {
10
- return createRecordingRequireFacadeWithLocation(sink, message, captureLocation);
11
- },
12
- array(actual, options) {
13
- sink.recordRequire({
14
- actual,
15
- check: 'array',
16
- message: messageFromOptions(options, annotation),
17
- source: 'require',
18
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
19
- });
20
- },
21
- boolean(actual, options) {
22
- sink.recordRequire({
23
- actual,
24
- check: 'boolean',
25
- message: messageFromOptions(options, annotation),
26
- source: 'require',
27
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
28
- });
29
- },
30
- defined(actual, options) {
31
- sink.recordRequire({
32
- actual,
33
- check: 'defined',
34
- message: messageFromOptions(options, annotation),
35
- source: 'require',
36
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
37
- });
38
- },
39
- function(actual, options) {
40
- sink.recordRequire({
41
- actual,
42
- check: 'function',
43
- message: messageFromOptions(options, annotation),
44
- source: 'require',
45
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
46
- });
47
- },
48
- hasProperty(actual, key, options) {
49
- sink.recordRequire({
50
- actual,
51
- check: 'has-property',
52
- key,
53
- message: messageFromOptions(options, annotation),
54
- source: 'require',
55
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
56
- });
57
- },
58
- instanceOf(actual, expected, options) {
59
- sink.recordRequire({
60
- actual,
61
- check: 'instance-of',
62
- expected,
63
- message: messageFromOptions(options, annotation),
64
- source: 'require',
65
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
66
- });
67
- },
68
- notNull(actual, options) {
69
- sink.recordRequire({
70
- actual,
71
- check: 'not-null',
72
- message: messageFromOptions(options, annotation),
73
- source: 'require',
74
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
75
- });
76
- },
77
- null(actual, options) {
78
- sink.recordRequire({
79
- actual,
80
- check: 'null',
81
- message: messageFromOptions(options, annotation),
82
- source: 'require',
83
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
84
- });
85
- },
86
- number(actual, options) {
87
- sink.recordRequire({
88
- actual,
89
- check: 'number',
90
- message: messageFromOptions(options, annotation),
91
- source: 'require',
92
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
93
- });
94
- },
95
- object(actual, options) {
96
- sink.recordRequire({
97
- actual,
98
- check: 'object',
99
- message: messageFromOptions(options, annotation),
100
- source: 'require',
101
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
102
- });
103
- },
104
- string(actual, options) {
105
- sink.recordRequire({
106
- actual,
107
- check: 'string',
108
- message: messageFromOptions(options, annotation),
109
- source: 'require',
110
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
111
- });
112
- }
113
- };
114
- function callRequireReference(reference, ...parameters) {
115
- recordRequireReference({
116
- annotation,
117
- parameters,
118
- reference,
119
- sink,
120
- sourceLocations: sourceLocationsWithCurrentForwarding(captureLocation)
121
- });
122
- }
123
- return Object.assign(callRequireReference, methods);
124
- }
125
- export function createRecordingRequireFacade(sink, annotation) {
126
- return createRecordingRequireFacadeWithLocation(sink, annotation, captureSourceLocation);
127
- }
128
- //# sourceMappingURL=require-assertion-facade.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-assertion-facade.js","sourceRoot":"","sources":["../../../../source/engine/require-assertion-facade.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oCAAoC,EAAE,MAAM,qDAAqD,CAAC;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0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