@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,43 +0,0 @@
1
- import { assertionOutcome } from "../assertion-evaluation.js";
2
- import { isPlainObject } from "../partial-matching.js";
3
- export const typeShapeSummaryByCheck = {
4
- array: 'Expected value to be an array.',
5
- boolean: 'Expected value to be a boolean.',
6
- function: 'Expected value to be a function.',
7
- 'has-property': 'Expected object to have the own property.',
8
- 'instance-of': 'Expected value to be an instance of the constructor.',
9
- number: 'Expected value to be a number.',
10
- object: 'Expected value to be an object.',
11
- string: 'Expected value to be a string.'
12
- };
13
- function isFiniteNumber(value) {
14
- return typeof value === 'number' && Number.isFinite(value);
15
- }
16
- function isSupportedObject(value) {
17
- return typeof value === 'object' && value !== null;
18
- }
19
- export function evaluateArray(assertion) {
20
- return assertionOutcome(assertion.actual, 'array', Array.isArray(assertion.actual));
21
- }
22
- export function evaluateBoolean(assertion) {
23
- return assertionOutcome(assertion.actual, 'boolean', typeof assertion.actual === 'boolean');
24
- }
25
- export function evaluateFunction(assertion) {
26
- return assertionOutcome(assertion.actual, 'function', typeof assertion.actual === 'function');
27
- }
28
- export function evaluateHasProperty(assertion) {
29
- return assertionOutcome(assertion.actual, `own property ${String(assertion.key)}`, isSupportedObject(assertion.actual) && Object.hasOwn(assertion.actual, assertion.key));
30
- }
31
- export function evaluateInstanceOf(assertion) {
32
- return assertionOutcome(assertion.actual, assertion.expected, assertion.actual instanceof assertion.expected);
33
- }
34
- export function evaluateNumber(assertion) {
35
- return assertionOutcome(assertion.actual, 'finite number', isFiniteNumber(assertion.actual));
36
- }
37
- export function evaluateObject(assertion) {
38
- return assertionOutcome(assertion.actual, 'plain object', isPlainObject(assertion.actual));
39
- }
40
- export function evaluateString(assertion) {
41
- return assertionOutcome(assertion.actual, 'string', typeof assertion.actual === 'string');
42
- }
43
- //# sourceMappingURL=type-shape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-shape.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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vC,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,CACxF,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,SAAkC;IACjE,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,YAAY,SAAS,CAAC,QAAQ,CAAC,CAAC;AAClH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;AAC9F,CAAC"}
@@ -1,42 +0,0 @@
1
- import { isPlainObject, ownKeys } from "./partial-matching.js";
2
- function isObject(value) {
3
- return typeof value === 'object' && value !== null;
4
- }
5
- function hasIteratorProvider(value) {
6
- return typeof Reflect.get(value, Symbol.iterator) === 'function';
7
- }
8
- function iterableItems(value) {
9
- if (!isObject(value) || !hasIteratorProvider(value)) {
10
- return null;
11
- }
12
- return value[Symbol.iterator]();
13
- }
14
- function countIterator(iterator, limit) {
15
- let count = 0;
16
- let item = iterator.next();
17
- while (item.done !== true && count < limit) {
18
- count += 1;
19
- item = iterator.next();
20
- }
21
- return count;
22
- }
23
- function knownCollectionCount(value) {
24
- if (typeof value === 'string' || Array.isArray(value)) {
25
- return value.length;
26
- }
27
- if (value instanceof Map || value instanceof Set) {
28
- return value.size;
29
- }
30
- return isPlainObject(value) ? ownKeys(value).length : null;
31
- }
32
- export function collectionCount(value, limit) {
33
- const knownCount = knownCollectionCount(value);
34
- if (knownCount !== null) {
35
- return { count: knownCount, supported: true };
36
- }
37
- const iterator = iterableItems(value);
38
- return iterator === null
39
- ? { count: 0, supported: false }
40
- : { count: countIterator(iterator, limit), supported: true };
41
- }
42
- //# sourceMappingURL=collection-count.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection-count.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/collection-count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO/D,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACvD,CAAC;AAMD,SAAS,mBAAmB,CAAC,KAA8B;IACvD,OAAO,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,CAAC;AACrE,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACjC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;AACpC,CAAC;AAED,SAAS,aAAa,CAAC,QAA2B,EAAE,KAAa;IAC7D,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE3B,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;QACzC,KAAK,IAAI,CAAC,CAAC;QACX,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC;IACxB,CAAC;IAED,IAAI,KAAK,YAAY,GAAG,IAAI,KAAK,YAAY,GAAG,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC,IAAI,CAAC;IACtB,CAAC;IAED,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc,EAAE,KAAa;IACzD,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE/C,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAEtC,OAAO,QAAQ,KAAK,IAAI;QACpB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QAChC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACrE,CAAC"}
@@ -1,175 +0,0 @@
1
- import { serializeValue } from "../compare/serialized-value.js";
2
- import { assertionSummary } from "./assertion-node.js";
3
- import { assertionEvaluatorByCheck } from "./assertions/dispatch.js";
4
- import { resolveSourceLocation } from "./source-location.js";
5
- function primitiveValueType(value) {
6
- if (value === null) {
7
- return 'null';
8
- }
9
- const valueType = typeof value;
10
- return valueType === 'object' || valueType === 'function' ? null : valueType;
11
- }
12
- function invalidOperand(check, role, value, index) {
13
- const type = primitiveValueType(value);
14
- return type === null
15
- ? null
16
- : {
17
- check,
18
- index,
19
- role,
20
- type
21
- };
22
- }
23
- function invalidMember(check, role, values) {
24
- for (const [index, value] of values.entries()) {
25
- const invalid = invalidOperand(check, role, value, index);
26
- if (invalid !== null) {
27
- return invalid;
28
- }
29
- }
30
- return null;
31
- }
32
- function invalidExactDeepAssertionOperand(check, assertion) {
33
- return invalidOperand(check, 'actual', assertion.actual, null) ??
34
- invalidOperand(check, 'expected', assertion.expected, null);
35
- }
36
- function invalidArrayContainsPartialOperand(check, assertion) {
37
- const invalidActualMember = Array.isArray(assertion.actual)
38
- ? invalidMember(check, 'actual', assertion.actual)
39
- : null;
40
- return invalidOperand(check, 'actual', assertion.actual, null) ??
41
- invalidActualMember ??
42
- invalidOperand(check, 'expected', assertion.expected, null);
43
- }
44
- function invalidMembersPartialDeepEqualOperand(check, assertion) {
45
- const invalidActualMember = Array.isArray(assertion.actual)
46
- ? invalidMember(check, 'actual', assertion.actual)
47
- : null;
48
- const invalidExpectedMember = Array.isArray(assertion.expected)
49
- ? invalidMember(check, 'expected', assertion.expected)
50
- : null;
51
- return invalidOperand(check, 'actual', assertion.actual, null) ??
52
- invalidOperand(check, 'expected', assertion.expected, null) ??
53
- invalidActualMember ??
54
- invalidExpectedMember;
55
- }
56
- const deepOperandFinders = {
57
- 'array-contains-partial': invalidArrayContainsPartialOperand,
58
- 'deep-equal': invalidExactDeepAssertionOperand,
59
- 'members-partial-deep-equal': invalidMembersPartialDeepEqualOperand,
60
- 'not-deep-equal': invalidExactDeepAssertionOperand,
61
- 'partial-deep-equal': invalidExactDeepAssertionOperand
62
- };
63
- function isDeepAssertionCheck(check) {
64
- return Object.hasOwn(deepOperandFinders, check);
65
- }
66
- function isDeepAssertion(assertion) {
67
- return isDeepAssertionCheck(assertion.check) && Object.hasOwn(assertion, 'expected');
68
- }
69
- export function invalidDeepAssertionOperand(assertion) {
70
- if (assertion.check === 'composite') {
71
- for (const child of assertion.children) {
72
- const invalid = invalidDeepAssertionOperand(child);
73
- if (invalid !== null) {
74
- return invalid;
75
- }
76
- }
77
- return null;
78
- }
79
- return isDeepAssertion(assertion)
80
- ? deepOperandFinders[assertion.check](assertion.check, assertion)
81
- : null;
82
- }
83
- function evaluateAssertionNode(check, assertion) {
84
- return assertionEvaluatorByCheck[check](assertion);
85
- }
86
- function assertNonEmptyItems(items, message) {
87
- if (items.length === 0) {
88
- throw new TypeError(message);
89
- }
90
- }
91
- function resolveSourceLocations(sourceLocations) {
92
- const resolved = sourceLocations.map(resolveSourceLocation);
93
- assertNonEmptyItems(resolved, 'Expected resolved assertion source locations to be non-empty.');
94
- return resolved;
95
- }
96
- function evaluateForeignAssertion(assertion, id) {
97
- if (assertion.result.passed) {
98
- return null;
99
- }
100
- return {
101
- actual: serializeValue(assertion.label),
102
- diff: null,
103
- error: assertion.result.error,
104
- expected: serializeValue('foreign assertion pass'),
105
- id,
106
- kind: 'foreign',
107
- label: assertion.label,
108
- path: [],
109
- source: assertion.source,
110
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
111
- summary: assertion.message ?? assertion.summary
112
- };
113
- }
114
- function evaluateLeafAssertion(assertion, id) {
115
- const evaluation = {
116
- ...evaluateAssertionNode(assertion.check, assertion),
117
- summary: assertionSummary(assertion)
118
- };
119
- if (evaluation.passed) {
120
- return null;
121
- }
122
- return {
123
- actual: evaluation.actual,
124
- diff: evaluation.diff,
125
- expected: evaluation.expected,
126
- id,
127
- kind: 'leaf',
128
- path: evaluation.path,
129
- source: assertion.source,
130
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
131
- summary: evaluation.summary
132
- };
133
- }
134
- function evaluateCompositeChild(assertion, id) {
135
- if (assertion.check === 'foreign') {
136
- return evaluateForeignAssertion(assertion, id);
137
- }
138
- return evaluateLeafAssertion(assertion, id);
139
- }
140
- function evaluateCompositeAssertion(assertion, id) {
141
- const children = assertion.children.flatMap(function evaluateChild(child, index) {
142
- const failedCheck = evaluateCompositeChild(child, `${id}.${index + 1}`);
143
- return failedCheck === null ? [] : [failedCheck];
144
- });
145
- if (children.length === 0) {
146
- return null;
147
- }
148
- assertNonEmptyItems(children, 'Expected composite assertion failure to contain failed children.');
149
- return {
150
- actual: serializeValue(assertion.actual),
151
- children,
152
- diff: null,
153
- expected: serializeValue(assertion.expected),
154
- id,
155
- kind: 'composite',
156
- path: [],
157
- source: assertion.source,
158
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
159
- summary: assertionSummary(assertion)
160
- };
161
- }
162
- export function evaluateAssertion(assertion, id) {
163
- const checkId = String(id);
164
- if (assertion.check === 'composite') {
165
- return evaluateCompositeAssertion(assertion, checkId);
166
- }
167
- if (assertion.check === 'foreign') {
168
- return evaluateForeignAssertion(assertion, checkId);
169
- }
170
- return evaluateLeafAssertion(assertion, checkId);
171
- }
172
- export function assertionPasses(assertion) {
173
- return evaluateAssertion(assertion, 1) === null;
174
- }
175
- //# sourceMappingURL=evaluation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluation.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EACH,gBAAgB,EAMnB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,yBAAyB,EAA6B,MAAM,0BAA0B,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA4C7D,SAAS,kBAAkB,CAAC,KAAc;IACtC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;IAE/B,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;A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C,SAAwB;IACpD,OAAO,iBAAiB,CAAC,SAAS,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;AACpD,CAAC"}
@@ -1,13 +0,0 @@
1
- import "../compare/comparison.js";
2
- export function isPlainObject(value) {
3
- if (typeof value !== 'object' || value === null || Array.isArray(value)) {
4
- return false;
5
- }
6
- const prototype = Object.getPrototypeOf(value);
7
- return prototype === Object.prototype || prototype === null;
8
- }
9
- export function ownKeys(value) {
10
- return Reflect.ownKeys(value);
11
- }
12
-
13
- //# sourceMappingURL=partial-matching.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"partial-matching.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/partial-matching.ts"],"names":[],"mappings":"AAAA,OAAkC,0BAA0B,CAAC;AAE7D,MAAM,UAAU,aAAa,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACtE,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,SAAS,GAAY,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAExD,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAA6C;IACjE,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC"}
@@ -1,32 +0,0 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- const assertionSourceLocationStorageKey = Symbol.for('@overkill-dev/assertion-source-location-storage');
3
- function isAssertionSourceLocationStorage(value) {
4
- return value instanceof AsyncLocalStorage;
5
- }
6
- function assertionSourceLocationStorage() {
7
- const existing = Reflect.get(globalThis, assertionSourceLocationStorageKey);
8
- if (isAssertionSourceLocationStorage(existing)) {
9
- return existing;
10
- }
11
- const storage = new AsyncLocalStorage();
12
- Reflect.set(globalThis, assertionSourceLocationStorageKey, storage);
13
- return storage;
14
- }
15
- function readActiveSourceLocations() {
16
- return assertionSourceLocationStorage().getStore() ?? [];
17
- }
18
- function assertNonEmptySourceLocations(sourceLocations) {
19
- if (sourceLocations.length === 0) {
20
- throw new TypeError('Assertion source location forwarding requires at least one location.');
21
- }
22
- }
23
- export function sourceLocationsWithCurrentForwarding(captureLocation) {
24
- const sourceLocations = [
25
- ...readActiveSourceLocations(),
26
- captureLocation()
27
- ];
28
- assertNonEmptySourceLocations(sourceLocations);
29
- return sourceLocations;
30
- }
31
-
32
- //# sourceMappingURL=source-location-forwarding.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-location-forwarding.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location-forwarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMrD,MAAM,iCAAiC,GAAG,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;AAExG,SAAS,gCAAgC,CACrC,KAAc;IAEd,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAS,8BAA8B;IACnC,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,iCAAiC,CAAC,CAAC;IAErF,IAAI,gCAAgC,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7C,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAuC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAEpE,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,SAAS,yBAAyB;IAC9B,OAAO,8BAA8B,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAC;AAED,SAAS,6BAA6B,CAClC,eAAoD;IAEpD,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAChG,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC,CAChD,eAA+C;IAE/C,MAAM,eAAe,GAAG;QACpB,GAAG,yBAAyB,EAAE;QAC9B,eAAe,EAAE;KACpB,CAAC;IAEF,6BAA6B,CAAC,eAAe,CAAC,CAAC;IAE/C,OAAO,eAAe,CAAC;AAC3B,CAAC"}
@@ -1,119 +0,0 @@
1
- import { fileURLToPath } from 'node:url';
2
- export const unknownSourceLocation = {
3
- kind: 'unknown'
4
- };
5
- const stackFramePattern = /^\s*at (?:.+? \()?(?<file>.+):(?<line>\d+):(?<column>\d+)\)?$/u;
6
- const internalModulePatterns = [
7
- /\/property\/property-authoring\.[cm]?[jt]s$/u,
8
- /\/authoring\/test-node-authoring\.[cm]?[jt]s$/u,
9
- /\/assertion-protocol\/source-location\.[cm]?[jt]s$/u,
10
- /\/assertion-protocol\/source-location-forwarding\.[cm]?[jt]s$/u,
11
- /\/assertion-protocol\/assertion-reference\.[cm]?[jt]s$/u,
12
- /\/engine\/assertion-facade\.[cm]?[jt]s$/u,
13
- /\/engine\/custom-assertion-recording\.[cm]?[jt]s$/u,
14
- /\/engine\/require-assertion-facade\.[cm]?[jt]s$/u,
15
- /\/packages\/test\/authoring-source-locations\.[cm]?[jt]s$/u,
16
- /\/packages\/test\/table-authoring\.[cm]?[jt]s$/u,
17
- /\/packages\/test\/test-authoring\.[cm]?[jt]s$/u,
18
- /\/packages\/test\/test\.entry-point\.[cm]?[jt]s$/u
19
- ];
20
- function normalizeStackFile(file) {
21
- if (!file.startsWith('file:')) {
22
- return file;
23
- }
24
- try {
25
- return fileURLToPath(file);
26
- }
27
- catch {
28
- return file;
29
- }
30
- }
31
- function stackFileIsInternal(file) {
32
- if (file.length === 0 || file.startsWith('node:')) {
33
- return true;
34
- }
35
- const normalizedFile = file.replaceAll('\\', '/');
36
- return internalModulePatterns.some(function patternMatches(pattern) {
37
- return pattern.test(normalizedFile);
38
- });
39
- }
40
- function knownSourceLocation(file, line, column) {
41
- if (file.length === 0) {
42
- throw new TypeError('Known source location file must not be empty.');
43
- }
44
- return { column, file, kind: 'known', line };
45
- }
46
- export function ensureValidSourceLocation(location) {
47
- if (location.kind === 'known' && location.file.length === 0) {
48
- throw new TypeError('Known source location file must not be empty.');
49
- }
50
- }
51
- export function ensureKnownSourceLocation(location) {
52
- ensureValidSourceLocation(location);
53
- return location.kind === 'known' ? location : null;
54
- }
55
- function sourceLocationFromStackGroups(groups) {
56
- const file = normalizeStackFile(groups.file);
57
- return stackFileIsInternal(file)
58
- ? null
59
- : knownSourceLocation(file, Number(groups.line), Number(groups.column));
60
- }
61
- function isStackFrameGroups(groups) {
62
- return groups.file !== undefined && groups.line !== undefined && groups.column !== undefined;
63
- }
64
- function sourceLocationFromStackLine(line) {
65
- const groups = stackFramePattern.exec(line)?.groups;
66
- return groups !== undefined && isStackFrameGroups(groups)
67
- ? sourceLocationFromStackGroups(groups)
68
- : null;
69
- }
70
- export function sourceLocationFromStack(stack) {
71
- return stack.split('\n').reduce(function findLocation(found, line) {
72
- return found ?? sourceLocationFromStackLine(line);
73
- }, null) ?? unknownSourceLocation;
74
- }
75
- export function captureSourceLocation() {
76
- const stackCarrier = new Error('Overkill source location');
77
- let location = null;
78
- return function capturedSourceLocation() {
79
- if (location === null) {
80
- location = sourceLocationFromStack(stackCarrier.stack ?? '');
81
- }
82
- return location;
83
- };
84
- }
85
- function resolveProviderSourceLocation(location) {
86
- try {
87
- return location();
88
- }
89
- catch {
90
- return null;
91
- }
92
- }
93
- export function resolveSourceLocation(location) {
94
- if (typeof location !== 'function') {
95
- ensureValidSourceLocation(location);
96
- return location;
97
- }
98
- const resolvedLocation = resolveProviderSourceLocation(location);
99
- if (resolvedLocation === null) {
100
- return unknownSourceLocation;
101
- }
102
- ensureValidSourceLocation(resolvedLocation);
103
- return resolvedLocation;
104
- }
105
- export function resolveSourceLocations(locations) {
106
- const [first, ...remaining] = locations;
107
- return [resolveSourceLocation(first), ...remaining.map(resolveSourceLocation)];
108
- }
109
- export function ensureDefinitionLocations(definitionLocations) {
110
- if (definitionLocations.length === 0) {
111
- throw new TypeError('Test node definition locations must contain at least one location.');
112
- }
113
- for (const location of definitionLocations) {
114
- if (typeof location !== 'function') {
115
- ensureValidSourceLocation(location);
116
- }
117
- }
118
- }
119
- //# sourceMappingURL=source-location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-location.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AASzC,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACjD,IAAI,EAAE,SAAS;CAClB,CAAC;AAEF,MAAM,iBAAiB,GAAG,gEAAgE,CAAC;AAE3F,MAAM,sBAAsB,GAAG;IAC3B,8CAA8C;IAC9C,gDAAgD;IAChD,qDAAqD;IACrD,gEAAgE;IAChE,yDAAyD;IACzD,0CAA0C;IAC1C,oDAAoD;IACpD,kDAAkD;IAClD,4DAA4D;IAC5D,iDAAiD;IACjD,gDAAgD;IAChD,mDAAmD;CAC7C,CAAC;AAEX,SAAS,kBAAkB,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,CAAC;QACD,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAY;IACrC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAA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C,QAAQ,CAAC,CAAC;QACpC,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,gBAAgB,GAAG,6BAA6B,CAAC,QAAQ,CAAC,CAAC;IAEjE,IAAI,gBAAgB,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,qBAAqB,CAAC;IACjC,CAAC;IAED,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAE5C,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,SAA0D;IAE1D,MAAM,CAAE,KAAK,EAAE,GAAG,SAAS,CAAE,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAE,qBAAqB,CAAC,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAE,CAAC;AACrF,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,mBAAwD;IAC9F,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,SAAS,CAAC,oEAAoE,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,mBAAmB,EAAE,CAAC;QACzC,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,7 +0,0 @@
1
- export type ThrownErrorRecord = {
2
- readonly message: string;
3
- readonly name: string;
4
- readonly stack: string | null;
5
- readonly thrown: unknown;
6
- };
7
- //# sourceMappingURL=thrown-error-record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-error-record.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -1,17 +0,0 @@
1
- export function createThrownErrorRecord(thrown) {
2
- if (thrown instanceof Error) {
3
- return {
4
- message: thrown.message,
5
- name: thrown.name,
6
- stack: thrown.stack ?? null,
7
- thrown
8
- };
9
- }
10
- return {
11
- message: 'Test body threw a non-error value.',
12
- name: typeof thrown,
13
- stack: null,
14
- thrown
15
- };
16
- }
17
- //# sourceMappingURL=thrown-error-record.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-error-record.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,uBAAuB,CAAC,MAAe;IACnD,IAAI,MAAM,YAAY,KAAK,EAAE,CAAC;QAC1B,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI;YAC3B,MAAM;SACT,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO,EAAE,oCAAoC;QAC7C,IAAI,EAAE,OAAO,MAAM;QACnB,KAAK,EAAE,IAAI;QACX,MAAM;KACT,CAAC;AACN,CAAC"}
@@ -1,34 +0,0 @@
1
- import type { InstanceConstructor } from './assertion-node-shape.ts';
2
- type OptionalFields<Shape, RequiredKey extends keyof Shape> = {
3
- readonly [ShapeKey in keyof Shape as ShapeKey extends RequiredKey ? never : ShapeKey]?: Shape[ShapeKey];
4
- };
5
- type RequiredField<Shape, RequiredKey extends keyof Shape> = {
6
- readonly [ShapeKey in RequiredKey]-?: Shape[ShapeKey];
7
- };
8
- type RequireAtLeastOne<Shape, Key extends keyof Shape = keyof Shape> = {
9
- readonly [RequiredKey in Key]: OptionalFields<Shape, RequiredKey> & RequiredField<Shape, RequiredKey>;
10
- }[Key];
11
- type ErrorConstructor = InstanceConstructor & (abstract new (...args: never[]) => Error);
12
- type ErrorMatcherFields = {
13
- readonly cause: ThrownMatcher;
14
- readonly code: string;
15
- readonly message: RegExp | string;
16
- readonly name: string;
17
- readonly type: ErrorConstructor;
18
- };
19
- export type ExactThrownMatcher = {
20
- readonly cause?: never;
21
- readonly code?: never;
22
- readonly exact: unknown;
23
- readonly message?: never;
24
- readonly name?: never;
25
- readonly type?: never;
26
- };
27
- export type ErrorMatcher = RequireAtLeastOne<ErrorMatcherFields> & {
28
- readonly exact?: never;
29
- };
30
- export type ThrownMatcher = ErrorMatcher | ExactThrownMatcher;
31
- type NonPromise<Body extends () => unknown> = ReturnType<Body> extends PromiseLike<unknown> ? never : Body;
32
- export type SynchronousCallback<Body extends () => unknown> = [ReturnType<Body>] extends [never] ? Body : NonPromise<Body>;
33
- export {};
34
- //# sourceMappingURL=thrown-matcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-matcher.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAMR,qBAGH,MAAM,2BAA2B,CAAC;AAEnC,KAAK,cAAc,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IAC1D,QAAQ,EAAE,QAAQ,IAAI,MAAM,KAAK,IAAI,QAAQ,SAAS,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC1G,CAAC;AAEF,KAAK,aAAa,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IACzD,QAAQ,EAAE,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC;CACxD,CAAC;AAEF,KAAK,iBAAiB,CAAC,KAAK,EAAE,GAAG,SAAS,MAAM,KAAK,GAAG,MAAM,KAAK,IAAI;IACnE,QAAQ,EAAE,WAAW,IAAI,GAAG,GAAG,cAAc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