@overkill-dev/run 0.0.81 → 0.0.83

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 (276) hide show
  1. package/assertion-protocol/source-location.js +4 -0
  2. package/assertion-protocol/source-location.js.map +1 -1
  3. package/baselines/calibration-reference.js +10 -0
  4. package/baselines/calibration-reference.js.map +1 -0
  5. package/baselines/calibration-store.js +185 -0
  6. package/baselines/calibration-store.js.map +1 -0
  7. package/baselines/performance-adapter.d.ts +1 -1
  8. package/baselines/performance-adapter.d.ts.map +1 -1
  9. package/baselines/performance-baseline.d.ts +17 -3
  10. package/baselines/performance-baseline.d.ts.map +1 -1
  11. package/baselines/performance-baseline.js +13 -1
  12. package/baselines/performance-baseline.js.map +1 -1
  13. package/baselines/performance-evaluation.js +12 -11
  14. package/baselines/performance-evaluation.js.map +1 -1
  15. package/baselines/performance-observation.js +74 -0
  16. package/baselines/performance-observation.js.map +1 -0
  17. package/baselines/performance-plan.js +28 -2
  18. package/baselines/performance-plan.js.map +1 -1
  19. package/baselines/performance-schema.js +14 -1
  20. package/baselines/performance-schema.js.map +1 -1
  21. package/baselines/performance-store.js +2 -14
  22. package/baselines/performance-store.js.map +1 -1
  23. package/baselines/performance-workflow.js +18 -10
  24. package/baselines/performance-workflow.js.map +1 -1
  25. package/bench/benchmark-run-report.js +14 -5
  26. package/bench/benchmark-run-report.js.map +1 -1
  27. package/bench/benchmark-statistics-schema.d.ts +4 -0
  28. package/bench/benchmark-statistics-schema.d.ts.map +1 -0
  29. package/bench/benchmark-statistics-schema.js +40 -0
  30. package/bench/benchmark-statistics-schema.js.map +1 -0
  31. package/bench/calibration-evidence.js +80 -0
  32. package/bench/calibration-evidence.js.map +1 -0
  33. package/bench/calibration-machine.d.ts +14 -0
  34. package/bench/calibration-machine.d.ts.map +1 -0
  35. package/bench/calibration-machine.js +43 -0
  36. package/bench/calibration-machine.js.map +1 -0
  37. package/bench/calibration-report.d.ts +24 -0
  38. package/bench/calibration-report.d.ts.map +1 -0
  39. package/bench/calibration-report.js +28 -0
  40. package/bench/calibration-report.js.map +1 -0
  41. package/bench/cpu-reference-workload.d.ts +2 -0
  42. package/bench/cpu-reference-workload.d.ts.map +1 -0
  43. package/bench/cpu-reference-workload.js +12 -0
  44. package/bench/cpu-reference-workload.js.map +1 -0
  45. package/bench/host-calibration-result.d.ts +15 -0
  46. package/bench/host-calibration-result.d.ts.map +1 -0
  47. package/bench/timeline-schema.d.ts +43 -0
  48. package/bench/timeline-schema.d.ts.map +1 -0
  49. package/bench/timeline-schema.js +28 -0
  50. package/bench/timeline-schema.js.map +1 -0
  51. package/engine/assertion-recorder.d.ts +12 -0
  52. package/engine/assertion-recorder.d.ts.map +1 -0
  53. package/engine/async-control.d.ts.map +1 -1
  54. package/engine/async-control.js +10 -1
  55. package/engine/async-control.js.map +1 -1
  56. package/engine/async-leak-diagnostics.js +18 -7
  57. package/engine/async-leak-diagnostics.js.map +1 -1
  58. package/engine/benchmark-environment.d.ts +8 -0
  59. package/engine/benchmark-environment.d.ts.map +1 -0
  60. package/engine/benchmark-garbage-collection.d.ts +0 -5
  61. package/engine/benchmark-garbage-collection.d.ts.map +1 -1
  62. package/engine/benchmark-garbage-collection.js.map +1 -1
  63. package/engine/benchmark-node.d.ts +3 -2
  64. package/engine/benchmark-node.d.ts.map +1 -1
  65. package/engine/benchmark-node.js +9 -0
  66. package/engine/benchmark-node.js.map +1 -0
  67. package/engine/benchmark-result.d.ts +90 -1
  68. package/engine/benchmark-result.d.ts.map +1 -1
  69. package/engine/benchmark-result.js.map +1 -1
  70. package/engine/benchmark-timeline.d.ts +12 -0
  71. package/engine/benchmark-timeline.d.ts.map +1 -0
  72. package/engine/case-attempt-execution.js +25 -17
  73. package/engine/case-attempt-execution.js.map +1 -1
  74. package/engine/case-body-execution.js +140 -3
  75. package/engine/case-body-execution.js.map +1 -1
  76. package/engine/case-execution.d.ts.map +1 -1
  77. package/engine/case-execution.js +61 -189
  78. package/engine/case-execution.js.map +1 -1
  79. package/engine/case-interruption.js +26 -0
  80. package/engine/case-interruption.js.map +1 -0
  81. package/engine/execution-async-leak-policy.d.ts +3 -0
  82. package/engine/execution-async-leak-policy.d.ts.map +1 -0
  83. package/engine/execution-async-leak-policy.js +38 -23
  84. package/engine/execution-async-leak-policy.js.map +1 -1
  85. package/engine/execution-error-ownership.d.ts +6 -0
  86. package/engine/execution-error-ownership.d.ts.map +1 -0
  87. package/engine/execution-error-ownership.js +83 -0
  88. package/engine/execution-error-ownership.js.map +1 -0
  89. package/engine/execution-global-error-observer.d.ts +1 -4
  90. package/engine/execution-global-error-observer.d.ts.map +1 -1
  91. package/engine/execution-global-error-observer.js +41 -81
  92. package/engine/execution-global-error-observer.js.map +1 -1
  93. package/engine/execution-observation.js +212 -0
  94. package/engine/execution-observation.js.map +1 -0
  95. package/engine/execution-options.d.ts +9 -0
  96. package/engine/execution-options.d.ts.map +1 -1
  97. package/engine/execution-preparation.d.ts +13 -0
  98. package/engine/execution-preparation.d.ts.map +1 -0
  99. package/engine/execution-preparation.js +34 -0
  100. package/engine/execution-preparation.js.map +1 -0
  101. package/engine/execution-supervision-state.js +13 -0
  102. package/engine/execution-supervision-state.js.map +1 -1
  103. package/engine/execution-supervision.d.ts +1 -1
  104. package/engine/execution-supervision.d.ts.map +1 -1
  105. package/engine/execution-supervision.js +10 -10
  106. package/engine/execution-supervision.js.map +1 -1
  107. package/engine/execution-test-plan-cases.js +15 -11
  108. package/engine/execution-test-plan-cases.js.map +1 -1
  109. package/engine/execution.d.ts +3 -1
  110. package/engine/execution.d.ts.map +1 -1
  111. package/engine/execution.js +3 -27
  112. package/engine/execution.js.map +1 -1
  113. package/engine/native-resource-observation.js +70 -0
  114. package/engine/native-resource-observation.js.map +1 -0
  115. package/engine/reporter-dispatcher.d.ts.map +1 -1
  116. package/engine/reporter-dispatcher.js +6 -3
  117. package/engine/reporter-dispatcher.js.map +1 -1
  118. package/engine/reporter-output-scope.js +7 -2
  119. package/engine/reporter-output-scope.js.map +1 -1
  120. package/engine/resource-owner-observation.js +52 -3
  121. package/engine/resource-owner-observation.js.map +1 -1
  122. package/engine/test-scope-lifecycle.js +9 -7
  123. package/engine/test-scope-lifecycle.js.map +1 -1
  124. package/file-store.d.ts +7 -0
  125. package/file-store.d.ts.map +1 -0
  126. package/package.json +14 -1
  127. package/packages/run/benchmark-calibration.entry-point.d.ts +13 -14
  128. package/packages/run/benchmark-calibration.entry-point.d.ts.map +1 -1
  129. package/packages/run/benchmark-calibration.entry-point.js +12 -54
  130. package/packages/run/benchmark-calibration.entry-point.js.map +1 -1
  131. package/packages/run/command-line.entry-point.d.ts.map +1 -1
  132. package/packages/run/command-line.entry-point.js +4 -0
  133. package/packages/run/command-line.entry-point.js.map +1 -1
  134. package/packages/run/run.entry-point.d.ts +3 -0
  135. package/packages/run/run.entry-point.d.ts.map +1 -1
  136. package/packages/run/run.entry-point.js +3 -0
  137. package/packages/run/run.entry-point.js.map +1 -1
  138. package/readme.md +43 -1
  139. package/run/attachment-eligibility.js +8 -4
  140. package/run/attachment-eligibility.js.map +1 -1
  141. package/run/benchmark-baseline-commands.js +9 -4
  142. package/run/benchmark-baseline-commands.js.map +1 -1
  143. package/run/benchmark-baseline-execution.js +20 -0
  144. package/run/benchmark-baseline-execution.js.map +1 -0
  145. package/run/benchmark-baseline-operations.js +0 -14
  146. package/run/benchmark-baseline-operations.js.map +1 -1
  147. package/run/benchmark-baseline-preparation.js +63 -0
  148. package/run/benchmark-baseline-preparation.js.map +1 -0
  149. package/run/benchmark-baseline-run.js +1 -44
  150. package/run/benchmark-baseline-run.js.map +1 -1
  151. package/run/benchmark-calibration.js +7 -0
  152. package/run/benchmark-calibration.js.map +1 -1
  153. package/run/benchmark-commands.d.ts.map +1 -1
  154. package/run/benchmark-commands.js +31 -0
  155. package/run/benchmark-commands.js.map +1 -1
  156. package/run/benchmark-definition-schema.js +8 -2
  157. package/run/benchmark-definition-schema.js.map +1 -1
  158. package/run/benchmark-execution-environment.js +2 -1
  159. package/run/benchmark-execution-environment.js.map +1 -1
  160. package/run/benchmark-garbage-collection.js +14 -3
  161. package/run/benchmark-garbage-collection.js.map +1 -1
  162. package/run/benchmark-normalization-preparation.js +59 -0
  163. package/run/benchmark-normalization-preparation.js.map +1 -0
  164. package/run/benchmark-placement.js +12 -3
  165. package/run/benchmark-placement.js.map +1 -1
  166. package/run/benchmark-policy-schema.js +30 -0
  167. package/run/benchmark-policy-schema.js.map +1 -0
  168. package/run/benchmark-report-metadata.js +5 -3
  169. package/run/benchmark-report-metadata.js.map +1 -1
  170. package/run/benchmark-result-schema.js +7 -53
  171. package/run/benchmark-result-schema.js.map +1 -1
  172. package/run/calibration-baseline-references.js +39 -0
  173. package/run/calibration-baseline-references.js.map +1 -0
  174. package/run/calibration-capture-session.js +97 -0
  175. package/run/calibration-capture-session.js.map +1 -0
  176. package/run/calibration-inventory.js +27 -0
  177. package/run/calibration-inventory.js.map +1 -0
  178. package/run/calibration-maintenance.js +88 -0
  179. package/run/calibration-maintenance.js.map +1 -0
  180. package/run/capability-policy.js +82 -79
  181. package/run/capability-policy.js.map +1 -1
  182. package/run/collected-run-execution.js +3 -7
  183. package/run/collected-run-execution.js.map +1 -1
  184. package/run/collected-run-plan.js +6 -13
  185. package/run/collected-run-plan.js.map +1 -1
  186. package/run/command-line-command-namespace.js +3 -0
  187. package/run/command-line-command-namespace.js.map +1 -1
  188. package/run/command-line-command.d.ts +1 -0
  189. package/run/command-line-command.d.ts.map +1 -1
  190. package/run/command-line-command.js.map +1 -1
  191. package/run/default-run-engine.js +25 -0
  192. package/run/default-run-engine.js.map +1 -1
  193. package/run/execution-session-collected.js +10 -3
  194. package/run/execution-session-collected.js.map +1 -1
  195. package/run/execution-session-lifecycle.js +28 -9
  196. package/run/execution-session-lifecycle.js.map +1 -1
  197. package/run/execution-session-observation.js +9 -3
  198. package/run/execution-session-observation.js.map +1 -1
  199. package/run/execution-session-schema.js +8 -2
  200. package/run/execution-session-schema.js.map +1 -1
  201. package/run/execution-session-supervised.js +10 -2
  202. package/run/execution-session-supervised.js.map +1 -1
  203. package/run/execution-session-types.d.ts +2 -0
  204. package/run/execution-session-types.d.ts.map +1 -1
  205. package/run/execution-session.js +4 -4
  206. package/run/execution-session.js.map +1 -1
  207. package/run/frozen-supervised-command-schema.js +2 -2
  208. package/run/frozen-supervised-command-schema.js.map +1 -1
  209. package/run/initialized-run-collection.js +80 -0
  210. package/run/initialized-run-collection.js.map +1 -0
  211. package/run/initialized-run.js +2 -49
  212. package/run/initialized-run.js.map +1 -1
  213. package/run/path-containment.js +13 -0
  214. package/run/path-containment.js.map +1 -1
  215. package/run/permission-denial-runtime-policy.js +30 -50
  216. package/run/permission-denial-runtime-policy.js.map +1 -1
  217. package/run/run-artifact-schema.d.ts +3 -0
  218. package/run/run-artifact-schema.d.ts.map +1 -0
  219. package/run/run-artifact-schema.js +3 -0
  220. package/run/run-artifact-schema.js.map +1 -1
  221. package/run/run-cancellation.js.map +1 -1
  222. package/run/run-collected-resolution.js +7 -0
  223. package/run/run-collected-resolution.js.map +1 -1
  224. package/run/run-command-schema.js +2 -0
  225. package/run/run-command-schema.js.map +1 -1
  226. package/run/run-engine-primitives.d.ts +2 -1
  227. package/run/run-engine-primitives.d.ts.map +1 -1
  228. package/run/run-execution.js +1 -1
  229. package/run/run-execution.js.map +1 -1
  230. package/run/run-facts.js +1 -0
  231. package/run/run-facts.js.map +1 -1
  232. package/run/run-input-resolution.js +5 -3
  233. package/run/run-input-resolution.js.map +1 -1
  234. package/run/run-isolated-command.js +8 -2
  235. package/run/run-isolated-command.js.map +1 -1
  236. package/run/run-isolated-process.js +5 -0
  237. package/run/run-isolated-process.js.map +1 -1
  238. package/run/run-local-command.js +3 -7
  239. package/run/run-local-command.js.map +1 -1
  240. package/run/run-local-coverage.js +3 -7
  241. package/run/run-local-coverage.js.map +1 -1
  242. package/run/run-local-planning.js +2 -0
  243. package/run/run-local-planning.js.map +1 -1
  244. package/run/run-record-result.d.ts +8 -0
  245. package/run/run-record-result.d.ts.map +1 -0
  246. package/run/run-record-result.js +79 -17
  247. package/run/run-record-result.js.map +1 -1
  248. package/run/run-result-schema.d.ts.map +1 -1
  249. package/run/run-result-schema.js +14 -9
  250. package/run/run-result-schema.js.map +1 -1
  251. package/run/run-supervised-process.js +14 -3
  252. package/run/run-supervised-process.js.map +1 -1
  253. package/run/run-support.js +11 -9
  254. package/run/run-support.js.map +1 -1
  255. package/run/run-types.d.ts +5 -2
  256. package/run/run-types.d.ts.map +1 -1
  257. package/run/run-types.js.map +1 -1
  258. package/run/run.js +3 -1
  259. package/run/run.js.map +1 -1
  260. package/run/supervised-child-execution.js +1 -1
  261. package/run/supervised-child-execution.js.map +1 -1
  262. package/run/supervised-child-test-plan.js +3 -3
  263. package/run/supervised-child-test-plan.js.map +1 -1
  264. package/run/supervised-child.js +46 -33
  265. package/run/supervised-child.js.map +1 -1
  266. package/run/supervised-protocol.js.map +1 -1
  267. package/run/worker-execution-engine.js +1 -1
  268. package/run/worker-execution-engine.js.map +1 -1
  269. package/run/worker-pool-command.js +4 -6
  270. package/run/worker-pool-command.js.map +1 -1
  271. package/run/worker-pool-host.entry-point.js +1 -1
  272. package/run/worker-pool-host.entry-point.js.map +1 -1
  273. package/run/worker-pool-protocol.js.map +1 -1
  274. package/run/worker-pool-worker-plan.js +2 -2
  275. package/run/worker-pool-worker-plan.js.map +1 -1
  276. package/software-bill-of-materials.cyclonedx.json +4 -4
@@ -11,6 +11,11 @@ export function createExecutionAsyncLeakMonitor(diagnostics) {
11
11
  ? createAsyncLeakMonitor()
12
12
  : createDisabledAsyncLeakMonitor();
13
13
  }
14
+ export function hasCasePolicyErrors(errors) {
15
+ return errors.some(function caseOwned(error) {
16
+ return error.attributedTo !== null;
17
+ });
18
+ }
14
19
  function runtimePolicyCase(executedCase) {
15
20
  return {
16
21
  result: { ...executedCase.result, outcome: null, verdict: 'runtime-policy' },
@@ -24,6 +29,19 @@ function hasPromiseTrackingContractFailure(executedCase) {
24
29
  return failure.kind === 'test-contract' && promiseTrackingContractFailureCodes.has(failure.code);
25
30
  });
26
31
  }
32
+ function caseActiveResourceLeak(input) {
33
+ if (!input.includeActiveResourceLeaks) {
34
+ return null;
35
+ }
36
+ const attribution = input.ambiguousResources().length > 0
37
+ ? { attributedTo: null, attributedToWork: null, phase: 'run' }
38
+ : { attributedTo: input.testCase.id, attributedToWork: input.testCase.workId, phase: 'body' };
39
+ return activeResourceLeakError({
40
+ ...attribution,
41
+ after: input.dependencies.readActiveResourceTypes(),
42
+ before: input.readResourceBaseline()
43
+ });
44
+ }
27
45
  export async function caseWithAsyncLeakPolicy(input) {
28
46
  if (input.executedCase.result.outcome === null) {
29
47
  return {
@@ -35,22 +53,14 @@ export async function caseWithAsyncLeakPolicy(input) {
35
53
  const promiseLeakError = hasPromiseTrackingContractFailure(input.executedCase)
36
54
  ? null
37
55
  : input.dependencies.asyncLeakMonitor.casePromiseLeakError(input.testCase);
38
- const activeLeakError = input.includeActiveResourceLeaks
39
- ? activeResourceLeakError({
40
- after: input.dependencies.readActiveResourceTypes(),
41
- attributedTo: input.testCase.id,
42
- attributedToWork: input.testCase.workId,
43
- before: input.activeResourceTypesBefore,
44
- phase: 'body'
45
- })
46
- : null;
56
+ const activeLeakError = caseActiveResourceLeak(input);
47
57
  const runnerErrors = [promiseLeakError, activeLeakError].filter(function isRunnerError(error) {
48
58
  return error !== null;
49
59
  });
50
60
  return {
51
- executedCase: runnerErrors.length === 0
52
- ? input.executedCase
53
- : runtimePolicyCase(input.executedCase),
61
+ executedCase: hasCasePolicyErrors(runnerErrors)
62
+ ? runtimePolicyCase(input.executedCase)
63
+ : input.executedCase,
54
64
  runnerErrors
55
65
  };
56
66
  }
@@ -61,20 +71,25 @@ export async function completeCaseWithAsyncLeakPolicy(input) {
61
71
  ? activeResourceLeakError({
62
72
  after: input.dependencies.readActiveResourceTypes(),
63
73
  before: observed.baseline,
64
- attributedTo: input.testCase.id,
65
- attributedToWork: input.testCase.workId,
66
- phase: 'body'
74
+ attributedTo: observed.ambiguousResources.length === 0 ? input.testCase.id : null,
75
+ attributedToWork: observed.ambiguousResources.length === 0 ? input.testCase.workId : null,
76
+ phase: observed.ambiguousResources.length === 0 ? 'body' : 'run'
67
77
  })
68
78
  : null;
69
79
  return leak === null ? observed.result : [...observed.result, leak];
70
80
  }
71
- export function concurrentRunActiveResourceLeak(dependencies, activeResourceTypesBefore) {
72
- return activeResourceLeakError({
73
- after: dependencies.readActiveResourceTypes(),
74
- attributedTo: null,
75
- attributedToWork: null,
76
- before: activeResourceTypesBefore,
77
- phase: 'run'
78
- });
81
+ export async function observeConcurrentResourceLeaks(dependencies, execute) {
82
+ const observed = await observeCaseResourceOwners(dependencies.readActiveResourceTypes, execute);
83
+ await settleAsyncWork();
84
+ return {
85
+ result: observed.result,
86
+ runnerError: activeResourceLeakError({
87
+ after: dependencies.readActiveResourceTypes(),
88
+ before: observed.baseline,
89
+ attributedTo: null,
90
+ attributedToWork: null,
91
+ phase: 'run'
92
+ })
93
+ };
79
94
  }
80
95
  //# sourceMappingURL=execution-async-leak-policy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-async-leak-policy.js","sourceRoot":"","sources":["../../../../source/engine/execution-async-leak-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAEjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAyBrD,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAA8B;IAC7E,yBAAyB;IACzB,wBAAwB;IACxB,2BAA2B;CAC9B,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAAC,WAAiC;IAC7E,OAAO,WAAW,KAAK,SAAS;QAC5B,CAAC,CAAC,sBAAsB,EAAE;QAC1B,CAAC,CAAC,8BAA8B,EAAE,CAAC;AAC3C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nC,yBAA4C;IAE5C,OAAO,uBAAuB,CAC1B;QACI,KAAK,EAAE,YAAY,CAAC,uBAAuB,EAAE;QAC7C,YAAY,EAAE,IAAI;QAClB,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE,yBAAyB;QACjC,KAAK,EAAE,KAAK;KACf,CACJ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"execution-async-leak-policy.js","sourceRoot":"","sources":["../../../../source/engine/execution-async-leak-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAEjC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA0BrD,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAA8B;IAC7E,yBAAyB;IACzB,wBAAwB;IACxB,2BAA2B;CAC9B,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAAC,WAAiC;IAC7E,OAAO,WAAW,KAAK,SAAS;QAC5B,CAAC,CAAC,sBAAsB,EAAE;QAC1B,CAAC,CAAC,8BAA8B,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAA8B;IAC9D,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,KAAK;QACvC,OAAO,KAAK,CAAC,YAAY,KAAK,IAAI,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,iBAAiB,CAAC,YAA4B;IACnD,OAAO;QACH,MAAM,EAAE,EAAE,GAAG,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE;QAC5E,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,oBAAoB,EAAE,YAAY,CAAC,oBAAoB;KAC1D,CAAC;AACN,CAAC;AAED,SAAS,iCAAiC,CAAC,YAA4B;IACn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CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;SACnE,CAAC;QACF,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAE,CAAC;AAC1E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAChD,YAAmC,EACnC,OAA6B;IAE7B,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,YAAY,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAChG,MAAM,eAAe,EAAE,CAAC;IACxB,OAAO;QACH,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,WAAW,EAAE,uBAAuB,CAAC;YACjC,KAAK,EAAE,YAAY,CAAC,uBAAuB,EAAE;YAC7C,MAAM,EAAE,QAAQ,CAAC,QAAQ;YACzB,YAAY,EAAE,IAAI;YAClB,gBAAgB,EAAE,IAAI;YACtB,KAAK,EAAE,KAAK;SACf,CAAC;KACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { RunnerError } from './run-result.ts';
2
+ export type ExecutionPhase = 'body' | 'collection' | 'run';
3
+ export type FatalErrorHandler = (error: RunnerError) => unknown;
4
+ export type FatalErrorHandlerDisposer = () => unknown;
5
+ export {};
6
+ //# sourceMappingURL=execution-error-ownership.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-error-ownership.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-error-ownership.ts"],"names":[],"mappings":"AAAA,YACY,EAEE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,oBAEoB,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,CAAC;AAC3D,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;AAChE,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,CAAC;AAEtD,MAAM,CAA0B,EAK/B,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ function createActiveScopes() {
3
+ const scopes = [];
4
+ return {
5
+ add(scope) {
6
+ scopes.push(scope);
7
+ },
8
+ all() {
9
+ return Array.from(scopes);
10
+ },
11
+ includes(scope) {
12
+ return scopes.includes(scope);
13
+ },
14
+ remove(scope) {
15
+ const index = scopes.lastIndexOf(scope);
16
+ if (index !== -1) {
17
+ scopes.splice(index, 1);
18
+ }
19
+ },
20
+ size() {
21
+ return scopes.length;
22
+ }
23
+ };
24
+ }
25
+ const ownershipKey = Symbol.for('@overkill-dev/engine/executionErrorOwnership');
26
+ function hasMethods(value, names) {
27
+ return typeof value === 'object' && value !== null && names.every(function callable(name) {
28
+ return typeof Reflect.get(value, name) === 'function';
29
+ });
30
+ }
31
+ function isErrorOwnership(value) {
32
+ if (typeof value !== 'object' || value === null) {
33
+ return false;
34
+ }
35
+ return Reflect.get(value, 'runScopeStorage') instanceof AsyncLocalStorage &&
36
+ Reflect.get(value, 'activeCaseStorage') instanceof AsyncLocalStorage &&
37
+ hasMethods(Reflect.get(value, 'activeScopes'), ['add', 'all', 'includes', 'remove', 'size']) &&
38
+ hasMethods(Reflect.get(value, 'processHookListeners'), ['install', 'removeWhenIdle']);
39
+ }
40
+ function createProcessHookListeners(activeScopes) {
41
+ let stop = null;
42
+ return {
43
+ install(receive) {
44
+ if (stop !== null) {
45
+ return;
46
+ }
47
+ function receiveUnhandledRejection(reason) {
48
+ receive('unhandledRejection', reason);
49
+ }
50
+ function receiveUncaughtException(error) {
51
+ receive('uncaughtException', error);
52
+ }
53
+ process.prependListener('unhandledRejection', receiveUnhandledRejection);
54
+ process.prependListener('uncaughtException', receiveUncaughtException);
55
+ stop = function removeProcessListeners() {
56
+ process.removeListener('unhandledRejection', receiveUnhandledRejection);
57
+ process.removeListener('uncaughtException', receiveUncaughtException);
58
+ };
59
+ },
60
+ removeWhenIdle() {
61
+ if (activeScopes.size() === 0) {
62
+ stop?.();
63
+ stop = null;
64
+ }
65
+ }
66
+ };
67
+ }
68
+ export function executionErrorOwnership() {
69
+ const existing = Reflect.get(globalThis, ownershipKey);
70
+ if (isErrorOwnership(existing)) {
71
+ return existing;
72
+ }
73
+ const activeScopes = createActiveScopes();
74
+ const created = {
75
+ runScopeStorage: new AsyncLocalStorage(),
76
+ activeCaseStorage: new AsyncLocalStorage(),
77
+ activeScopes,
78
+ processHookListeners: createProcessHookListeners(activeScopes)
79
+ };
80
+ Reflect.set(globalThis, ownershipKey, created);
81
+ return created;
82
+ }
83
+ //# sourceMappingURL=execution-error-ownership.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution-error-ownership.js","sourceRoot":"","sources":["../../../../source/engine/execution-error-ownership.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA+CrD,SAAS,kBAAkB;IACvB,MAAM,MAAM,GAAoB,EAAE,CAAC;IAEnC,OAAO;QACH,GAAG,CAAC,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QACD,GAAG;YACC,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;QACD,QAAQ,CAAC,KAAK;YACV,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QACD,MAAM,CAAC,KAAK;YACR,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAExC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;gBACf,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAC5B,CAAC;QACL,CAAC;QACD,IAAI;YACA,OAAO,MAAM,CAAC,MAAM,CAAC;QACzB,CAAC;KACJ,CAAC;AACN,CAAC;A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C,mBAAmB,EAAE,KAAK,CAAC,CAAC;YACxC,CAAC;YACD,OAAO,CAAC,eAAe,CAAC,oBAAoB,EAAE,yBAAyB,CAAC,CAAC;YACzE,OAAO,CAAC,eAAe,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC;YACvE,IAAI,GAAG,SAAS,sBAAsB;gBAClC,OAAO,CAAC,cAAc,CAAC,oBAAoB,EAAE,yBAAyB,CAAC,CAAC;gBACxE,OAAO,CAAC,cAAc,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC;YAC1E,CAAC,CAAC;QACN,CAAC;QACD,cAAc;YACV,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;gBAC5B,IAAI,EAAE,EAAE,CAAC;gBACT,IAAI,GAAG,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB;IACnC,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAChE,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG;QACZ,eAAe,EAAE,IAAI,iBAAiB,EAAiB;QACvD,iBAAiB,EAAE,IAAI,iBAAiB,EAAqB;QAC7D,YAAY;QACZ,oBAAoB,EAAE,0BAA0B,CAAC,YAAY,CAAC;KACjE,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;IAC/C,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -1,9 +1,7 @@
1
+ import { type ExecutionPhase, type FatalErrorHandler, type FatalErrorHandlerDisposer } from './execution-error-ownership.ts';
1
2
  import type { AttemptId } from './identity.ts';
2
3
  import { type RunnerError } from './run-result.ts';
3
4
  import type { TestPlanCase } from './test-plan.ts';
4
- type ExecutionPhase = 'body' | 'collection' | 'run';
5
- type FatalErrorHandler = (error: RunnerError) => unknown;
6
- type FatalErrorHandlerDisposer = () => unknown;
7
5
  export type ExecutionGlobalErrorObserver = {
8
6
  readonly fatalSignal: () => Promise<void>;
9
7
  readonly hasFatalError: () => boolean;
@@ -14,5 +12,4 @@ export type ExecutionGlobalErrorObserver = {
14
12
  readonly stop: () => unknown;
15
13
  readonly takeErrors: () => readonly RunnerError[];
16
14
  };
17
- export {};
18
15
  //# sourceMappingURL=execution-global-error-observer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"execution-global-error-observer.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-global-error-observer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAInD,KAAK,cACc,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,CAAC;AACpD,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC;AACzD,KAAK,yBAAyB,GAAG,MAAM,OAAO,CAAC;AAoE/C,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,yBAAyB,CAAC;IACjF,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3E,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAA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AAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IACnH,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;CACrD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
1
+ import { executionErrorOwnership } from "./execution-error-ownership.js";
2
+ import { createExecutionObservation, observingInfrastructure } from "./execution-observation.js";
2
3
  import { permissionDeniedRunnerErrorFromThrown } from "./run-result.js";
3
- const runScopeStorage = new AsyncLocalStorage();
4
- const activeCaseStorage = new AsyncLocalStorage();
4
+ const { runScopeStorage, activeCaseStorage, activeScopes, processHookListeners } = executionErrorOwnership();
5
5
  function createStoredValue(initialValue) {
6
6
  let currentValue = initialValue;
7
7
  return {
@@ -14,6 +14,7 @@ function createStoredValue(initialValue) {
14
14
  };
15
15
  }
16
16
  function createRunErrorScope(boundary) {
17
+ const observation = createExecutionObservation();
17
18
  const activeCaseKeys = new Set();
18
19
  const errors = [];
19
20
  const fatal = createStoredValue(false);
@@ -31,6 +32,7 @@ function createRunErrorScope(boundary) {
31
32
  }
32
33
  }
33
34
  return {
35
+ observation,
34
36
  activeCaseStarted(key) {
35
37
  activeCaseKeys.add(key);
36
38
  },
@@ -81,6 +83,8 @@ function createRunErrorScope(boundary) {
81
83
  stop() {
82
84
  stopped.write(true);
83
85
  fatalHandlers.clear();
86
+ activeCaseKeys.clear();
87
+ observation.stop();
84
88
  },
85
89
  takeErrors() {
86
90
  const currentErrors = Array.from(errors);
@@ -89,29 +93,6 @@ function createRunErrorScope(boundary) {
89
93
  }
90
94
  };
91
95
  }
92
- function createActiveScopes() {
93
- const scopes = [];
94
- return {
95
- add(scope) {
96
- scopes.push(scope);
97
- },
98
- all() {
99
- return Array.from(scopes);
100
- },
101
- includes(scope) {
102
- return scopes.includes(scope);
103
- },
104
- remove(scope) {
105
- const index = scopes.lastIndexOf(scope);
106
- if (index !== -1) {
107
- scopes.splice(index, 1);
108
- }
109
- },
110
- size() {
111
- return scopes.length;
112
- }
113
- };
114
- }
115
96
 
116
97
  function serializedReason(reason) {
117
98
  if (reason instanceof Error) {
@@ -187,41 +168,37 @@ function attributionDriftError(scope, hook, reason, activeCase) {
187
168
  function scopeIncludesCase(scope, activeCase) {
188
169
  return activeCase !== null && activeCase.scope === scope;
189
170
  }
190
- function activePermissionCase(input) {
191
- if (!scopeIncludesCase(input.scope, input.activeCase)) {
192
- return null;
193
- }
194
- return input.scope.hasActiveCase(input.activeCase) ? input.activeCase : null;
195
- }
196
171
  function permissionErrorForScope(input) {
197
- const activeCase = activePermissionCase(input);
198
- return permissionDeniedRunnerErrorFromThrown(input.reason, {
199
- attributedTo: activeCase?.id ?? null,
200
- attributedToWork: activeCase?.workId ?? null,
172
+ const activeCase = scopeIncludesCase(input.scope, input.activeCase) ? input.activeCase : null;
173
+ const attribution = activeCase === null
174
+ ? { attributedTo: null, attributedToWork: null, phase: input.scope.phase() }
175
+ : { attributedTo: activeCase.id, attributedToWork: activeCase.workId, phase: 'body' };
176
+ const error = permissionDeniedRunnerErrorFromThrown(input.reason, {
177
+ ...attribution,
201
178
  boundary: input.scope.boundary,
202
179
  diagnosticChannel: null,
203
- hook: input.hook,
204
- phase: activeCase === null ? input.scope.phase() : 'body'
180
+ hook: input.hook
205
181
  });
182
+ return error === null ? null : input.scope.observation.attribute(error);
183
+ }
184
+ function ownedHookError(input) {
185
+ if (scopeIncludesCase(input.scope, input.activeCase)) {
186
+ return attributedError(input.scope, input.hook, input.reason, input.activeCase);
187
+ }
188
+ const error = runLevelHookError(input.scope, input.hook, input.reason);
189
+ return input.scope.observation.attribute(error).subtype === 'attribution-drift'
190
+ ? attributionDriftError(input.scope, input.hook, input.reason, input.activeCase)
191
+ : error;
206
192
  }
207
193
  function errorForScope(input) {
208
- const permissionError = permissionErrorForScope(input);
209
- if (permissionError !== null) {
210
- return permissionError;
194
+ if (scopeIncludesCase(input.scope, input.activeCase) && !input.scope.hasActiveCase(input.activeCase)) {
195
+ return attributionDriftError(input.scope, input.hook, input.reason, input.activeCase);
211
196
  }
212
197
  if (input.ambiguousScope) {
213
- return attributionDriftError(input.scope, input.hook, input.reason, scopeIncludesCase(input.scope, input.activeCase) ? input.activeCase : null);
198
+ return attributionDriftError(input.scope, input.hook, input.reason, null);
214
199
  }
215
- if (!scopeIncludesCase(input.scope, input.activeCase)) {
216
- return runLevelHookError(input.scope, input.hook, input.reason);
217
- }
218
- if (input.scope.hasActiveCase(input.activeCase)) {
219
- return attributedError(input.scope, input.hook, input.reason, input.activeCase);
220
- }
221
- return attributionDriftError(input.scope, input.hook, input.reason, input.activeCase);
200
+ return permissionErrorForScope(input) ?? ownedHookError(input);
222
201
  }
223
- const activeScopes = createActiveScopes();
224
- const listenersInstalled = createStoredValue(false);
225
202
  function currentTargetScopes() {
226
203
  const currentScope = runScopeStorage.getStore();
227
204
  if (currentScope !== undefined && activeScopes.includes(currentScope)) {
@@ -230,40 +207,19 @@ function currentTargetScopes() {
230
207
  return activeScopes.all();
231
208
  }
232
209
  function receiveHookFailure(hook, reason) {
233
- const activeCase = activeCaseStorage.getStore() ?? null;
210
+ const activeCase = observingInfrastructure() ? null : activeCaseStorage.getStore() ?? null;
234
211
  const ambiguousScope = runScopeStorage.getStore() === undefined && activeScopes.size() > 1;
235
212
  for (const scope of currentTargetScopes()) {
236
213
  scope.recordError(errorForScope({ activeCase, ambiguousScope, hook, reason, scope }));
237
214
  }
238
215
  }
239
- function receiveUnhandledRejection(reason) {
240
- receiveHookFailure('unhandledRejection', reason);
241
- }
242
- function receiveUncaughtException(error) {
243
- receiveHookFailure('uncaughtException', error);
244
- }
245
- function createProcessHookListeners() {
246
- return {
247
- install() {
248
- if (listenersInstalled.read()) {
249
- return;
250
- }
251
- process.prependListener('unhandledRejection', receiveUnhandledRejection);
252
- process.prependListener('uncaughtException', receiveUncaughtException);
253
- listenersInstalled.write(true);
254
- },
255
- removeWhenIdle() {
256
- if (listenersInstalled.read() && activeScopes.size() === 0) {
257
- process.removeListener('unhandledRejection', receiveUnhandledRejection);
258
- process.removeListener('uncaughtException', receiveUncaughtException);
259
- listenersInstalled.write(false);
260
- }
261
- }
262
- };
263
- }
264
- const processHookListeners = createProcessHookListeners();
265
216
  export function createExecutionGlobalErrorObserver(boundary) {
266
217
  const scope = createRunErrorScope(boundary);
218
+ scope.observation.register(function stopOwnedGlobalObserver() {
219
+ scope.stop();
220
+ activeScopes.remove(scope);
221
+ processHookListeners.removeWhenIdle();
222
+ });
267
223
  return {
268
224
  async fatalSignal() {
269
225
  await scope.fatalSignal();
@@ -275,10 +231,12 @@ export function createExecutionGlobalErrorObserver(boundary) {
275
231
  return scope.onFatalError(handler);
276
232
  },
277
233
  async runBoundary(run) {
278
- processHookListeners.install();
234
+ processHookListeners.install(receiveHookFailure);
279
235
  activeScopes.add(scope);
280
236
  try {
281
- return await runScopeStorage.run(scope, run);
237
+ return await scope.observation.run(async function observeRunOwnership() {
238
+ return await runScopeStorage.run(scope, run);
239
+ });
282
240
  }
283
241
  finally {
284
242
  activeScopes.remove(scope);
@@ -294,7 +252,9 @@ export function createExecutionGlobalErrorObserver(boundary) {
294
252
  };
295
253
  scope.activeCaseStarted(activeCase);
296
254
  try {
297
- return await activeCaseStorage.run(activeCase, run);
255
+ return await scope.observation.runAttempt(testCase, attempt, async function observeAttemptOwnership() {
256
+ return await activeCaseStorage.run(activeCase, run);
257
+ });
298
258
  }
299
259
  finally {
300
260
  scope.activeCaseStopped(activeCase);
@@ -1 +1 @@
1
- {"version":3,"file":"execution-global-error-observer.js","sourceRoot":"","sources":["../../../../source/engine/execution-global-error-observer.ts"],"names":[],"mappings":"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D,UAAU;YACN,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC;QAC9B,CAAC;KACJ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"execution-global-error-observer.js","sourceRoot":"","sources":["../../../../source/engine/execution-global-error-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uBAAuB,EAQ1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACH,0BAA0B,EAC1B,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,qCAAqC,EAAoB,MAAM,iBAAiB,CAAC;AA+C1F,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,uBAAuB,EAAE,CAAC;AAE7G,SAAS,iBAAiB,CAAQ,YAAmB;IACjD,IAAI,YAAY,GAAG,YAAY,CAAC;IAEhC,OAAO;QACH,IAAI;YACA,OAAO,YAAY,CAAC;QACxB,CAAC;QACD,KAAK,CAAC,KAAK;YACP,YAAY,GAAG,KAAK,CAAC;QACzB,CAAC;KACJ,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB,CAAC,QAA2B;IACpD,MAAM,WAAW,GAAG,0BAA0B,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,IAAI,GAAG,EAAqB,CAAC;IACpD,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,aAAa,GAAG,IAAI,GAAG,EAAqB,CAAC;IACnD,MAAM,WAAW,GAAG,iBAAiB,CAAyC,IAAI,CAAC,CAAC;IACpF,MAAM,KAAK,GAAG,iBAAiB,CAAiB,KAAK,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAEzC,SAAS,WAAW,CAAC,KAAkB;QACnC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,IA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