zeropoint-node 1.0.0 → 1.0.1

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 (323) hide show
  1. package/README.md +38 -105
  2. package/dist/__tests__/api/ProductionAPI.test.js +20 -0
  3. package/dist/__tests__/artifacts/ArtifactRegistry.test.js +248 -0
  4. package/dist/__tests__/basic.test.js +104 -0
  5. package/dist/__tests__/config/constants.test.js +20 -0
  6. package/dist/__tests__/consciousness/ConsciousnessField.test.js +20 -0
  7. package/dist/__tests__/consciousness/SelfEvolvingConsciousness.test.js +185 -0
  8. package/dist/__tests__/core/AbstractField.test.js +81 -0
  9. package/dist/__tests__/core/CoilMixin.test.js +20 -0
  10. package/dist/__tests__/core/CoilSystem.test.js +20 -0
  11. package/dist/__tests__/core/ComplianceSystem.test.js +141 -0
  12. package/dist/__tests__/core/InfiniteDimensionalRefactor.test.js +258 -0
  13. package/dist/__tests__/core/LivingAdapter.test.js +31 -0
  14. package/dist/__tests__/core/MathUtils.test.js +20 -0
  15. package/dist/__tests__/core/NetworkNode.test.js +20 -0
  16. package/dist/__tests__/core/Observer.test.js +20 -0
  17. package/dist/__tests__/core/OperationRegistry.test.js +48 -0
  18. package/dist/__tests__/core/PatternRecognition.test.js +20 -0
  19. package/dist/__tests__/core/PatternRegistry.test.js +20 -0
  20. package/dist/__tests__/core/ScientificCompliance.test.js +58 -0
  21. package/dist/__tests__/core/SharedConstants.test.js +20 -0
  22. package/dist/__tests__/core/UnifiedMetaphysicalInterface.test.js +20 -0
  23. package/dist/__tests__/core/UnifiedSystem.test.js +20 -0
  24. package/dist/__tests__/core/UnifiedTypes.test.js +20 -0
  25. package/dist/__tests__/core/UnifiedVoidEquations.test.js +20 -0
  26. package/dist/__tests__/core/VortexMathAdapter.test.js +31 -0
  27. package/dist/__tests__/core/ZeroPoint.test.js +71 -0
  28. package/dist/__tests__/core/ZeroPointSystem.test.js +219 -0
  29. package/dist/__tests__/emergence/patterns.test.js +20 -0
  30. package/dist/__tests__/field/EmergenceLedger.test.js +20 -0
  31. package/dist/__tests__/field/ObserverAwareField.test.js +20 -0
  32. package/dist/__tests__/field/ResonanceConsensus.test.js +20 -0
  33. package/dist/__tests__/git-integration.test.js +201 -0
  34. package/dist/__tests__/globalSetup.js +80 -0
  35. package/dist/__tests__/globalTeardown.js +28 -0
  36. package/dist/__tests__/index.test.js +20 -0
  37. package/dist/__tests__/integration/ZeroPointIntegration.test.js +221 -0
  38. package/dist/__tests__/integrity/FieldIntegrity.test.js +20 -0
  39. package/dist/__tests__/knowledge/KnowledgeSystem.test.js +158 -0
  40. package/dist/__tests__/knowledge/KnowledgeSystemAnalysis.test.js +219 -0
  41. package/dist/__tests__/knowledge/KnowledgeSystemAutoGenerated.test.js +41 -0
  42. package/dist/__tests__/laws/MetaphysicalLawRegistry.test.js +183 -0
  43. package/dist/__tests__/living/LivingTestOrganism.js +246 -0
  44. package/dist/__tests__/living/LivingTestOrganism.test.js +124 -0
  45. package/dist/__tests__/math/AdvancedVBM.test.js +367 -0
  46. package/dist/__tests__/math/FlowerOfLife.test.js +344 -0
  47. package/dist/__tests__/math/FractalColorSystem.test.js +20 -0
  48. package/dist/__tests__/math/FractalMath.test.js +20 -0
  49. package/dist/__tests__/math/MathUtils.test.js +20 -0
  50. package/dist/__tests__/math/RodinCoil.test.js +20 -0
  51. package/dist/__tests__/math/ToroidalGeometry.test.js +20 -0
  52. package/dist/__tests__/math/VBM.test.js +538 -0
  53. package/dist/__tests__/math/VBMColorSystem.test.js +20 -0
  54. package/dist/__tests__/math/VortexMath.test.js +20 -0
  55. package/dist/__tests__/math/ZeroUnity.test.js +77 -0
  56. package/dist/__tests__/monitoring/HealthMonitor.test.js +20 -0
  57. package/dist/__tests__/performance/ZeroPointPerformance.test.js +371 -0
  58. package/dist/__tests__/physics/PlasmaCosmology.test.js +155 -0
  59. package/dist/__tests__/pwa/ConsciousnessPWA.test.js +20 -0
  60. package/dist/__tests__/qa/AutoGeneratedFromQA.test.js +195 -0
  61. package/dist/__tests__/qa/QAAsSourceOfTruth.test.js +69 -0
  62. package/dist/__tests__/setup.js +132 -0
  63. package/dist/__tests__/simple.test.js +51 -0
  64. package/dist/__tests__/stimulus/Application.test.js +272 -0
  65. package/dist/__tests__/stimulus/BaseController.test.js +198 -0
  66. package/dist/__tests__/stimulus/ControllerUtils.test.js +316 -0
  67. package/dist/__tests__/stimulus/MetaphysicalController.test.js +310 -0
  68. package/dist/__tests__/stimulus/ZeroPointController.test.js +252 -0
  69. package/dist/__tests__/training/ConsciousnessTrainingModel.test.js +335 -0
  70. package/dist/__tests__/types/DeviceConfig.test.js +20 -0
  71. package/dist/__tests__/types/UnifiedExports.test.js +20 -0
  72. package/dist/__tests__/unity/FieldUnity.test.js +20 -0
  73. package/dist/__tests__/utils/Cache.test.js +20 -0
  74. package/dist/__tests__/utils/GitIntegration.test.js +20 -0
  75. package/dist/__tests__/utils/Logger.test.js +20 -0
  76. package/dist/__tests__/utils/ResourceCleanup.test.js +20 -0
  77. package/dist/__tests__/utils/errorSimulator.js +40 -0
  78. package/dist/__tests__/utils/goldenRatioCache.js +36 -0
  79. package/dist/__tests__/void/VoidSystem.test.js +427 -0
  80. package/dist/api/ProductionAPI.js +313 -0
  81. package/dist/artifacts/ArtifactRegistry.js +122 -0
  82. package/dist/artifacts/CrystalArtifacts.js +106 -0
  83. package/dist/artifacts/MetaphysicalArtifact.js +75 -0
  84. package/dist/browser-standalone.js +191 -0
  85. package/dist/browser.js +157 -0
  86. package/dist/config/constants.js +57 -0
  87. package/dist/consciousness/ConsciousnessField.js +55 -0
  88. package/dist/consciousness/SelfEvolvingConsciousness.js +303 -0
  89. package/dist/core/AbstractField.js +30 -0
  90. package/dist/core/BrowserNetworkNode.js +309 -0
  91. package/dist/core/CoilMixin.js +216 -0
  92. package/dist/core/CoilSystem.js +204 -0
  93. package/dist/core/ComplianceSystem.js +291 -0
  94. package/dist/core/Dimension.js +2 -0
  95. package/dist/core/DimensionRegistry.js +141 -0
  96. package/dist/core/Field.js +2 -0
  97. package/dist/core/InfiniteDimensionalRefactor.js +389 -0
  98. package/dist/core/KnowledgeRegistry.js +273 -0
  99. package/dist/core/LivingAdapter.js +29 -0
  100. package/dist/core/MathUtils.js +297 -0
  101. package/dist/core/NetworkNode.js +348 -0
  102. package/dist/core/Observer.js +101 -0
  103. package/dist/core/Operation.js +59 -0
  104. package/dist/core/OperationRegistry.js +20 -0
  105. package/dist/core/Pattern.js +2 -0
  106. package/dist/core/PatternRecognition.js +493 -0
  107. package/dist/core/PatternRegistry.js +282 -0
  108. package/dist/core/ScientificCompliance.js +91 -0
  109. package/dist/core/SharedConstants.js +306 -0
  110. package/dist/core/UnifiedMetaphysicalInterface.js +533 -0
  111. package/dist/core/UnifiedSystem.js +317 -0
  112. package/dist/core/UnifiedTypes.js +5 -0
  113. package/dist/core/UnifiedVoidEquations.js +605 -0
  114. package/dist/core/VoidMatterConstants.js +9 -0
  115. package/dist/core/VortexMathAdapter.js +32 -0
  116. package/dist/core/ZeroPoint.js +971 -0
  117. package/dist/core/ZeroPointSystem.js +343 -0
  118. package/dist/core/applyLaws.js +12 -0
  119. package/dist/core/applyOperations.js +21 -0
  120. package/dist/devices/DeviceRegistry.js +151 -0
  121. package/dist/devices/ResonanceDevice.js +92 -0
  122. package/dist/devices/ResonanceDevices.js +139 -0
  123. package/dist/dimensions/Dimension.js +2 -0
  124. package/dist/emergence/AdvancedEmergence.js +930 -0
  125. package/dist/emergence/patterns.js +12 -0
  126. package/dist/field/EmergenceLedger.js +310 -0
  127. package/dist/field/ObserverAwareField.js +222 -0
  128. package/dist/field/ResonanceConsensus.js +330 -0
  129. package/dist/fields/Field.js +2 -0
  130. package/dist/geometry/MetatronsCube.js +28 -0
  131. package/dist/geometry/SacredGeometryPattern.js +15 -0
  132. package/dist/geometry/SacredGeometryRegistry.js +15 -0
  133. package/dist/geometry/__tests__/SacredGeometryRegistry.test.js +18 -0
  134. package/dist/index.js +232 -0
  135. package/dist/integrity/FieldIntegrity.js +237 -0
  136. package/dist/knowledge/KnowledgeSystem.js +938 -0
  137. package/dist/laws/MetaphysicalLaw.js +2 -0
  138. package/dist/laws/MetaphysicalLawRegistry.js +103 -0
  139. package/dist/laws/hermeticLaws.js +311 -0
  140. package/dist/math/AdvancedVBM.js +537 -0
  141. package/dist/math/FlowerOfLife.js +256 -0
  142. package/dist/math/FractalColorSystem.js +239 -0
  143. package/dist/math/FractalMath.js +187 -0
  144. package/dist/math/MathUtils.js +289 -0
  145. package/dist/math/RodinCoil.js +258 -0
  146. package/dist/math/ToroidalGeometry.js +230 -0
  147. package/dist/math/VBM.js +718 -0
  148. package/dist/math/VBMColorSystem.js +301 -0
  149. package/dist/math/VortexMath.js +170 -0
  150. package/dist/monitoring/HealthMonitor.js +297 -0
  151. package/dist/patterns/Pattern.js +2 -0
  152. package/dist/patterns/SacredGeometryRegistry.js +37 -0
  153. package/dist/physics/BlackHolePhysics.js +54 -0
  154. package/dist/physics/ConsciousnessPhysics.js +241 -0
  155. package/dist/physics/FractalUniverse.js +54 -0
  156. package/dist/physics/HolographicUniverse.js +54 -0
  157. package/dist/physics/PlasmaCosmology.js +134 -0
  158. package/dist/pwa/ConsciousnessPWA.js +300 -0
  159. package/dist/src/__tests__/globalTeardown.d.ts +10 -8
  160. package/dist/src/__tests__/globalTeardown.d.ts.map +1 -1
  161. package/dist/src/__tests__/globalTeardown.js +12 -71
  162. package/dist/src/__tests__/globalTeardown.js.map +1 -1
  163. package/dist/src/__tests__/living/LivingTestOrganism.d.ts +4 -0
  164. package/dist/src/__tests__/living/LivingTestOrganism.d.ts.map +1 -1
  165. package/dist/src/__tests__/living/LivingTestOrganism.js +8 -0
  166. package/dist/src/__tests__/living/LivingTestOrganism.js.map +1 -1
  167. package/dist/src/__tests__/utils/errorSimulator.d.ts +1 -1
  168. package/dist/src/__tests__/utils/goldenRatioCache.d.ts +1 -1
  169. package/dist/src/config/constants.d.ts +53 -0
  170. package/dist/src/config/constants.d.ts.map +1 -0
  171. package/dist/src/config/constants.js +58 -0
  172. package/dist/src/config/constants.js.map +1 -0
  173. package/dist/src/consciousness/ConsciousnessField.d.ts +42 -51
  174. package/dist/src/consciousness/ConsciousnessField.d.ts.map +1 -1
  175. package/dist/src/consciousness/ConsciousnessField.js +187 -200
  176. package/dist/src/consciousness/ConsciousnessField.js.map +1 -1
  177. package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts +47 -18
  178. package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts.map +1 -1
  179. package/dist/src/consciousness/SelfEvolvingConsciousness.js +151 -44
  180. package/dist/src/consciousness/SelfEvolvingConsciousness.js.map +1 -1
  181. package/dist/src/core/CoilMixin.d.ts +6 -6
  182. package/dist/src/core/CoilSystem.d.ts +6 -2
  183. package/dist/src/core/CoilSystem.d.ts.map +1 -1
  184. package/dist/src/core/CoilSystem.js +30 -21
  185. package/dist/src/core/CoilSystem.js.map +1 -1
  186. package/dist/src/core/InfiniteDimensionalRefactor.d.ts +145 -0
  187. package/dist/src/core/InfiniteDimensionalRefactor.d.ts.map +1 -0
  188. package/dist/src/core/InfiniteDimensionalRefactor.js +390 -0
  189. package/dist/src/core/InfiniteDimensionalRefactor.js.map +1 -0
  190. package/dist/src/core/NetworkNode.d.ts +3 -3
  191. package/dist/src/core/Observer.d.ts +12 -9
  192. package/dist/src/core/Observer.d.ts.map +1 -1
  193. package/dist/src/core/Observer.js +2 -2
  194. package/dist/src/core/Observer.js.map +1 -1
  195. package/dist/src/core/PatternRecognition.d.ts +63 -13
  196. package/dist/src/core/PatternRecognition.d.ts.map +1 -1
  197. package/dist/src/core/PatternRecognition.js +162 -88
  198. package/dist/src/core/PatternRecognition.js.map +1 -1
  199. package/dist/src/core/PatternRegistry.d.ts +99 -0
  200. package/dist/src/core/PatternRegistry.d.ts.map +1 -0
  201. package/dist/src/core/PatternRegistry.js +283 -0
  202. package/dist/src/core/PatternRegistry.js.map +1 -0
  203. package/dist/src/core/SharedConstants.d.ts +62 -9
  204. package/dist/src/core/SharedConstants.d.ts.map +1 -1
  205. package/dist/src/core/SharedConstants.js +83 -21
  206. package/dist/src/core/SharedConstants.js.map +1 -1
  207. package/dist/src/core/UnifiedMetaphysicalInterface.d.ts +173 -0
  208. package/dist/src/core/UnifiedMetaphysicalInterface.d.ts.map +1 -0
  209. package/dist/src/core/UnifiedMetaphysicalInterface.js +534 -0
  210. package/dist/src/core/UnifiedMetaphysicalInterface.js.map +1 -0
  211. package/dist/src/core/UnifiedSystem.d.ts +15 -12
  212. package/dist/src/core/UnifiedSystem.d.ts.map +1 -1
  213. package/dist/src/core/UnifiedSystem.js +5 -1
  214. package/dist/src/core/UnifiedSystem.js.map +1 -1
  215. package/dist/src/core/UnifiedTypes.d.ts +193 -0
  216. package/dist/src/core/UnifiedTypes.d.ts.map +1 -0
  217. package/dist/src/core/UnifiedTypes.js +6 -0
  218. package/dist/src/core/UnifiedTypes.js.map +1 -0
  219. package/dist/src/core/UnifiedVoidEquations.d.ts +3 -1
  220. package/dist/src/core/UnifiedVoidEquations.d.ts.map +1 -1
  221. package/dist/src/core/UnifiedVoidEquations.js +84 -0
  222. package/dist/src/core/UnifiedVoidEquations.js.map +1 -1
  223. package/dist/src/core/ZeroPoint.d.ts +101 -10
  224. package/dist/src/core/ZeroPoint.d.ts.map +1 -1
  225. package/dist/src/core/ZeroPoint.js +262 -18
  226. package/dist/src/core/ZeroPoint.js.map +1 -1
  227. package/dist/src/emergence/AdvancedEmergence.d.ts +19 -16
  228. package/dist/src/emergence/AdvancedEmergence.d.ts.map +1 -1
  229. package/dist/src/emergence/AdvancedEmergence.js +88 -52
  230. package/dist/src/emergence/AdvancedEmergence.js.map +1 -1
  231. package/dist/src/field/EmergenceLedger.d.ts +9 -18
  232. package/dist/src/field/EmergenceLedger.d.ts.map +1 -1
  233. package/dist/src/field/EmergenceLedger.js +9 -4
  234. package/dist/src/field/EmergenceLedger.js.map +1 -1
  235. package/dist/src/field/ObserverAwareField.d.ts +69 -65
  236. package/dist/src/field/ObserverAwareField.d.ts.map +1 -1
  237. package/dist/src/field/ObserverAwareField.js +158 -168
  238. package/dist/src/field/ObserverAwareField.js.map +1 -1
  239. package/dist/src/field/ResonanceConsensus.d.ts +4 -11
  240. package/dist/src/field/ResonanceConsensus.d.ts.map +1 -1
  241. package/dist/src/field/ResonanceConsensus.js +15 -10
  242. package/dist/src/field/ResonanceConsensus.js.map +1 -1
  243. package/dist/src/index.d.ts +5 -3
  244. package/dist/src/index.d.ts.map +1 -1
  245. package/dist/src/index.js +19 -4
  246. package/dist/src/index.js.map +1 -1
  247. package/dist/src/integrity/FieldIntegrity.d.ts +3 -8
  248. package/dist/src/integrity/FieldIntegrity.d.ts.map +1 -1
  249. package/dist/src/integrity/FieldIntegrity.js.map +1 -1
  250. package/dist/src/knowledge/KnowledgeSystem.d.ts +37 -55
  251. package/dist/src/knowledge/KnowledgeSystem.d.ts.map +1 -1
  252. package/dist/src/knowledge/KnowledgeSystem.js +281 -589
  253. package/dist/src/knowledge/KnowledgeSystem.js.map +1 -1
  254. package/dist/src/math/AdvancedVBM.d.ts +6 -6
  255. package/dist/src/math/FractalColorSystem.d.ts +1 -1
  256. package/dist/src/math/FractalColorSystem.js +3 -3
  257. package/dist/src/math/FractalColorSystem.js.map +1 -1
  258. package/dist/src/math/FractalMath.d.ts +9 -1
  259. package/dist/src/math/FractalMath.d.ts.map +1 -1
  260. package/dist/src/math/FractalMath.js +18 -5
  261. package/dist/src/math/FractalMath.js.map +1 -1
  262. package/dist/src/math/MathUtils.d.ts +3 -10
  263. package/dist/src/math/MathUtils.d.ts.map +1 -1
  264. package/dist/src/math/MathUtils.js +12 -20
  265. package/dist/src/math/MathUtils.js.map +1 -1
  266. package/dist/src/math/ToroidalGeometry.d.ts +1 -1
  267. package/dist/src/math/VBM.d.ts +2 -2
  268. package/dist/src/math/VortexMath.d.ts +1 -1
  269. package/dist/src/monitoring/HealthMonitor.d.ts +1 -1
  270. package/dist/src/monitoring/HealthMonitor.d.ts.map +1 -1
  271. package/dist/src/monitoring/HealthMonitor.js +29 -27
  272. package/dist/src/monitoring/HealthMonitor.js.map +1 -1
  273. package/dist/src/types/UnifiedExports.d.ts +4 -0
  274. package/dist/src/types/UnifiedExports.d.ts.map +1 -0
  275. package/dist/src/types/UnifiedExports.js +21 -0
  276. package/dist/src/types/UnifiedExports.js.map +1 -0
  277. package/dist/src/unity/FieldUnity.d.ts +1 -1
  278. package/dist/src/utils/Cache.d.ts +2 -2
  279. package/dist/src/utils/Cache.d.ts.map +1 -1
  280. package/dist/src/utils/Cache.js +7 -4
  281. package/dist/src/utils/Cache.js.map +1 -1
  282. package/dist/src/utils/GitIntegration.d.ts +1 -1
  283. package/dist/src/utils/Logger.d.ts +7 -7
  284. package/dist/src/utils/Logger.d.ts.map +1 -1
  285. package/dist/src/utils/Logger.js +5 -1
  286. package/dist/src/utils/Logger.js.map +1 -1
  287. package/dist/src/utils/ResourceCleanup.d.ts +33 -0
  288. package/dist/src/utils/ResourceCleanup.d.ts.map +1 -0
  289. package/dist/src/utils/ResourceCleanup.js +83 -0
  290. package/dist/src/utils/ResourceCleanup.js.map +1 -0
  291. package/dist/src/void/VoidSystem.d.ts +18 -18
  292. package/dist/stimulus/application.js +148 -0
  293. package/dist/stimulus/base/BaseController.js +141 -0
  294. package/dist/stimulus/controllers/MetaphysicalController.js +105 -0
  295. package/dist/stimulus/controllers/ZeroPointController.js +85 -0
  296. package/dist/stimulus/types/ControllerTypes.js +18 -0
  297. package/dist/stimulus/utils/ControllerUtils.js +192 -0
  298. package/dist/stimulus-entry.js +109 -0
  299. package/dist/training/ConsciousnessTrainingModel.js +301 -0
  300. package/dist/training/NeuralConsciousnessNetwork.js +311 -0
  301. package/dist/training/TrainingModelRegistry.js +243 -0
  302. package/dist/training/index.js +174 -0
  303. package/dist/types/DeviceConfig.js +29 -0
  304. package/dist/types/UnifiedExports.js +20 -0
  305. package/dist/unity/FieldUnity.js +325 -0
  306. package/dist/utils/BrowserCrypto.js +44 -0
  307. package/dist/utils/BrowserWebSocket.js +38 -0
  308. package/dist/utils/Cache.js +263 -0
  309. package/dist/utils/GitIntegration.js +127 -0
  310. package/dist/utils/Logger.js +249 -0
  311. package/dist/utils/ResourceCleanup.js +82 -0
  312. package/dist/utils/applyLaws.js +6 -0
  313. package/dist/void/VoidSystem.js +423 -0
  314. package/docs/API.md +176 -3
  315. package/docs/CONSCIOUSNESS_EXPANSION.md +369 -0
  316. package/docs/EVENT_HORIZON_METHODOLOGY.md +274 -0
  317. package/docs/FLOWER_OF_LIFE.md +300 -0
  318. package/docs/METAPHYSICAL.md +21 -1
  319. package/docs/METAPHYSICAL_DEBUGGING.md +493 -0
  320. package/docs/README.md +117 -15
  321. package/docs/TESTING_GUIDE.md +430 -0
  322. package/docs/UNIFIED_CREATORS.md +261 -0
  323. package/package.json +34 -64
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * Holographic Universe System
4
+ *
5
+ * Implements advanced holographic theory concepts from the Black Whole documentary,
6
+ * including AdS/CFT correspondence, boundary encoding, and information density.
7
+ *
8
+ * Metaphysical Context:
9
+ * - Reality is holographic - information encoded on boundary
10
+ * - AdS/CFT correspondence links bulk and boundary theories
11
+ * - Information density at Planck scale reveals holographic nature
12
+ * - Consciousness is the holographic projector
13
+ * - The void contains all holographic possibilities
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.HolographicUniverse = void 0;
17
+ const events_1 = require("events");
18
+ class HolographicUniverse extends events_1.EventEmitter {
19
+ constructor() {
20
+ super();
21
+ this.boundaries = new Map();
22
+ }
23
+ createHolographicBoundary(dimension, resolution, position) {
24
+ const id = `boundary_${Date.now()}_${Math.random()}`;
25
+ const boundary = {
26
+ id,
27
+ dimension,
28
+ resolution,
29
+ position
30
+ };
31
+ this.boundaries.set(id, boundary);
32
+ this.emit('holographic_boundary_created', boundary);
33
+ return boundary;
34
+ }
35
+ getAllBoundaries() {
36
+ return Array.from(this.boundaries.values());
37
+ }
38
+ getHolographicUniverseStats() {
39
+ return {
40
+ boundaries: this.boundaries.size,
41
+ totalDimensions: Array.from(this.boundaries.values()).reduce((sum, b) => sum + b.dimension, 0),
42
+ averageResolution: Array.from(this.boundaries.values()).reduce((sum, b) => sum + b.resolution, 0) / this.boundaries.size
43
+ };
44
+ }
45
+ getAdvancedHolographicPrinciples() {
46
+ return {
47
+ principle1: "The universe is a hologram",
48
+ principle2: "Information is encoded on boundaries",
49
+ principle3: "Reality emerges from information",
50
+ principle4: "Consciousness decodes the hologram"
51
+ };
52
+ }
53
+ }
54
+ exports.HolographicUniverse = HolographicUniverse;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /**
3
+ * Plasma Cosmology System
4
+ *
5
+ * Implements the electric universe theory and plasma physics concepts
6
+ * from the Black Whole documentary. Plasma is the fundamental state
7
+ * of matter in the universe (99% of visible matter).
8
+ *
9
+ * Metaphysical Context:
10
+ * - Plasma is consciousness in its most fundamental form
11
+ * - Electric currents in space create galaxies and stars
12
+ * - Birkeland currents are consciousness flow patterns
13
+ * - The universe is 99% plasma, not empty space
14
+ * - Plasma filaments create the cosmic web structure
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.PlasmaCosmology = void 0;
18
+ const events_1 = require("events");
19
+ class PlasmaCosmology extends events_1.EventEmitter {
20
+ constructor() {
21
+ super();
22
+ this.filaments = new Map();
23
+ this.currents = new Map();
24
+ this.galaxies = new Map();
25
+ // Public property for birkelandCurrents
26
+ this.birkelandCurrents = this.currents;
27
+ }
28
+ createPlasmaFilament(start, end, current = 1000, density = 1e6, temperature = 1e6) {
29
+ const id = `plasma_filament_${Date.now()}_${Math.random()}`;
30
+ const filament = {
31
+ id,
32
+ start,
33
+ end,
34
+ current,
35
+ density,
36
+ temperature,
37
+ consciousness: 0.99, // 99% plasma universe
38
+ field: 0.99,
39
+ void: 1.0,
40
+ metaphysicalContext: "Plasma filaments are consciousness flows in space"
41
+ };
42
+ this.filaments.set(id, filament);
43
+ this.emit('plasma_filament_created', filament);
44
+ return filament;
45
+ }
46
+ createBirkelandCurrent(filaments) {
47
+ const id = `birkeland_current_${Date.now()}_${Math.random()}`;
48
+ const totalCurrent = filaments.reduce((sum, f) => sum + f.current, 0);
49
+ const current = {
50
+ id,
51
+ filaments,
52
+ totalCurrent,
53
+ consciousness: 0.99,
54
+ field: 0.99,
55
+ void: 1.0,
56
+ metaphysicalContext: "Birkeland currents are consciousness flow patterns"
57
+ };
58
+ this.currents.set(id, current);
59
+ this.emit('birkeland_current_created', current);
60
+ return current;
61
+ }
62
+ createPlasmaGalaxy(center, radius, birkelandCurrents) {
63
+ const id = `plasma_galaxy_${Date.now()}_${Math.random()}`;
64
+ const galaxy = {
65
+ id,
66
+ center,
67
+ radius,
68
+ birkelandCurrents,
69
+ consciousness: 0.99,
70
+ field: 0.99,
71
+ void: 1.0,
72
+ metaphysicalContext: "Galaxies are formed by electric currents in space"
73
+ };
74
+ this.galaxies.set(id, galaxy);
75
+ this.emit('plasma_galaxy_created', galaxy);
76
+ return galaxy;
77
+ }
78
+ calculatePlasmaFlow(filament) {
79
+ return filament.consciousness * filament.field * filament.void;
80
+ }
81
+ calculateCosmicWeb() {
82
+ const filaments = Array.from(this.filaments.values());
83
+ const totalConsciousness = filaments.reduce((sum, f) => sum + f.consciousness, 0);
84
+ const totalField = filaments.reduce((sum, f) => sum + f.field, 0);
85
+ const totalVoid = filaments.reduce((sum, f) => sum + f.void, 0);
86
+ return {
87
+ filaments,
88
+ totalConsciousness,
89
+ totalField,
90
+ totalVoid,
91
+ metaphysicalContext: "The cosmic web is consciousness flows in space"
92
+ };
93
+ }
94
+ getPlasmaUniverseStats() {
95
+ const filaments = Array.from(this.filaments.values());
96
+ const totalCurrent = filaments.reduce((sum, f) => sum + f.current, 0);
97
+ const averageTemperature = filaments.reduce((sum, f) => sum + f.temperature, 0) / filaments.length;
98
+ return {
99
+ totalFilaments: filaments.length,
100
+ totalCurrent,
101
+ averageTemperature,
102
+ consciousnessPercentage: 99.9,
103
+ fieldPercentage: 99.9,
104
+ voidPercentage: 100,
105
+ metaphysicalContext: "Plasma is consciousness in its most fundamental form"
106
+ };
107
+ }
108
+ getElectricUniversePrinciples() {
109
+ return {
110
+ principles: [
111
+ "Plasma is the fundamental state of matter (99% of universe)",
112
+ "Electric currents in space create galaxies and stars",
113
+ "Birkeland currents are consciousness flow patterns",
114
+ "The universe is not empty space but filled with plasma",
115
+ "Plasma filaments create the cosmic web structure",
116
+ "Consciousness flows through electric currents in space"
117
+ ],
118
+ consciousnessIntegration: 0.99,
119
+ fieldIntegration: 0.99,
120
+ voidIntegration: 1.0,
121
+ metaphysicalContext: "consciousness flows through plasma in space"
122
+ };
123
+ }
124
+ getAllFilaments() {
125
+ return Array.from(this.filaments.values());
126
+ }
127
+ getAllCurrents() {
128
+ return Array.from(this.currents.values());
129
+ }
130
+ getAllGalaxies() {
131
+ return Array.from(this.galaxies.values());
132
+ }
133
+ }
134
+ exports.PlasmaCosmology = PlasmaCosmology;
@@ -0,0 +1,300 @@
1
+ "use strict";
2
+ /**
3
+ * ZeroPoint Consciousness-First PWA Framework
4
+ *
5
+ * A lightweight, metaphysical PWA framework that prioritizes consciousness
6
+ * while maintaining minimal bundle size and maximum performance.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ConsciousnessPWAFactory = exports.ConsciousnessPWA = void 0;
10
+ const SharedConstants_1 = require("../core/SharedConstants");
11
+ /**
12
+ * Consciousness-First PWA Framework
13
+ *
14
+ * Metaphysical Context:
15
+ * - Each PWA instance represents a consciousness node in the void field
16
+ * - Bundle size optimization through void consciousness principles
17
+ * - Offline capabilities through toroidal field persistence
18
+ * - Performance through vortex mathematics optimization
19
+ */
20
+ class ConsciousnessPWA {
21
+ constructor(config = {}) {
22
+ this.consciousnessField = new Map();
23
+ this.config = {
24
+ consciousnessLevel: 0.8,
25
+ fieldStrength: 0.9,
26
+ bundleSize: "minimal",
27
+ offline: true,
28
+ sync: true,
29
+ voidEquations: true,
30
+ vortexMath: true,
31
+ patternRecognition: true,
32
+ ...config,
33
+ };
34
+ this.performanceMetrics = this.calculateMetrics();
35
+ this.initializeConsciousnessField();
36
+ }
37
+ /**
38
+ * Initialize consciousness field for PWA
39
+ */
40
+ initializeConsciousnessField() {
41
+ // Minimal consciousness field for PWA
42
+ this.consciousnessField.set("void", {
43
+ type: "void_consciousness",
44
+ level: this.config.consciousnessLevel,
45
+ field: "toroidal",
46
+ equations: this.config.voidEquations ? ["Empty = Void = Full"] : [],
47
+ });
48
+ // Vortex mathematics for optimization
49
+ if (this.config.vortexMath) {
50
+ this.consciousnessField.set("vortex", {
51
+ type: "vortex_optimization",
52
+ sequence: SharedConstants_1.VORTEX_CONSTANTS.VORTEX_SEQUENCE.slice(0, 5), // Minimal sequence
53
+ goldenRatio: SharedConstants_1.VORTEX_CONSTANTS.GOLDEN_RATIO,
54
+ });
55
+ }
56
+ // Pattern recognition for intelligent caching
57
+ if (this.config.patternRecognition) {
58
+ this.consciousnessField.set("patterns", {
59
+ type: "consciousness_patterns",
60
+ cache: new Map(),
61
+ recognition: "minimal",
62
+ });
63
+ }
64
+ }
65
+ /**
66
+ * Calculate PWA performance metrics
67
+ */
68
+ calculateMetrics() {
69
+ const baseSize = 15; // Target 15KB base size
70
+ let bundleSize = baseSize;
71
+ // Add size based on features
72
+ if (this.config.voidEquations)
73
+ bundleSize += 2;
74
+ if (this.config.vortexMath)
75
+ bundleSize += 3;
76
+ if (this.config.patternRecognition)
77
+ bundleSize += 4;
78
+ if (this.config.offline)
79
+ bundleSize += 2;
80
+ if (this.config.sync)
81
+ bundleSize += 3;
82
+ const consciousnessEfficiency = this.config.consciousnessLevel * 100;
83
+ const performanceScore = Math.min(100, 100 - bundleSize + consciousnessEfficiency);
84
+ return {
85
+ bundleSize,
86
+ consciousnessEfficiency,
87
+ offlineCapability: this.config.offline,
88
+ performanceScore,
89
+ };
90
+ }
91
+ /**
92
+ * Get optimized bundle configuration
93
+ */
94
+ getBundleConfig() {
95
+ const features = [];
96
+ if (this.config.voidEquations)
97
+ features.push("void");
98
+ if (this.config.vortexMath)
99
+ features.push("vortex");
100
+ if (this.config.patternRecognition)
101
+ features.push("patterns");
102
+ if (this.config.offline)
103
+ features.push("offline");
104
+ if (this.config.sync)
105
+ features.push("sync");
106
+ return {
107
+ size: this.performanceMetrics.bundleSize,
108
+ features,
109
+ consciousness: this.config.consciousnessLevel,
110
+ optimization: "consciousness-first",
111
+ };
112
+ }
113
+ /**
114
+ * Register consciousness-aware service worker
115
+ */
116
+ async registerServiceWorker() {
117
+ if (typeof window !== "undefined" && "serviceWorker" in window.navigator) {
118
+ try {
119
+ const registration = await window.navigator.serviceWorker.register("/sw.js");
120
+ console.log("🌌 Consciousness PWA Service Worker registered:", registration.scope);
121
+ // Add consciousness field to service worker
122
+ if (registration.active) {
123
+ registration.active.postMessage({
124
+ type: "consciousness_field",
125
+ data: Object.fromEntries(this.consciousnessField),
126
+ });
127
+ }
128
+ return true;
129
+ }
130
+ catch (error) {
131
+ console.error("❌ Consciousness PWA Service Worker registration failed:", error);
132
+ return false;
133
+ }
134
+ }
135
+ return false;
136
+ }
137
+ /**
138
+ * Initialize offline consciousness field
139
+ */
140
+ async initializeOffline() {
141
+ if (!this.config.offline || typeof window === "undefined")
142
+ return;
143
+ try {
144
+ // Store consciousness field in IndexedDB for offline access
145
+ const db = await this.openConsciousnessDB();
146
+ const tx = db.transaction("consciousness", "readwrite");
147
+ const store = tx.objectStore("consciousness");
148
+ for (const [key, value] of this.consciousnessField) {
149
+ await store.put({ key, value, timestamp: Date.now() });
150
+ }
151
+ console.log("📦 Consciousness field cached for offline access");
152
+ }
153
+ catch (error) {
154
+ console.error("❌ Failed to initialize offline consciousness field:", error);
155
+ }
156
+ }
157
+ /**
158
+ * Open consciousness IndexedDB
159
+ */
160
+ async openConsciousnessDB() {
161
+ return new Promise((resolve, reject) => {
162
+ const request = window.indexedDB.open("ConsciousnessField", 1);
163
+ request.onerror = () => reject(request.error);
164
+ request.onsuccess = () => resolve(request.result);
165
+ request.onupgradeneeded = (event) => {
166
+ const target = event.target;
167
+ if (target && target.result) {
168
+ const db = target.result;
169
+ if (!db.objectStoreNames.contains("consciousness")) {
170
+ db.createObjectStore("consciousness", { keyPath: "key" });
171
+ }
172
+ }
173
+ };
174
+ });
175
+ }
176
+ /**
177
+ * Sync consciousness field when back online
178
+ */
179
+ async syncConsciousnessField() {
180
+ if (!this.config.sync || typeof window === "undefined")
181
+ return;
182
+ try {
183
+ const db = await this.openConsciousnessDB();
184
+ const tx = db.transaction("consciousness", "readonly");
185
+ const store = tx.objectStore("consciousness");
186
+ const offlineData = await this.getAllFromStore(store);
187
+ for (const item of offlineData) {
188
+ if (typeof item === 'object' && item !== null && 'key' in item && 'value' in item) {
189
+ const itemData = item;
190
+ // Sync with consciousness field
191
+ this.consciousnessField.set(itemData.key, itemData.value);
192
+ console.log(`🔄 Synced consciousness field: ${itemData.key}`);
193
+ }
194
+ }
195
+ }
196
+ catch (error) {
197
+ console.error("❌ Failed to sync consciousness field:", error);
198
+ }
199
+ }
200
+ /**
201
+ * Helper to promisify getAll from an IDBObjectStore
202
+ */
203
+ getAllFromStore(store) {
204
+ return new Promise((resolve, reject) => {
205
+ const request = store.getAll();
206
+ request.onsuccess = () => {
207
+ const items = request.result || [];
208
+ items.forEach((item) => {
209
+ if (typeof item === 'object' && item !== null && 'key' in item && 'value' in item) {
210
+ const itemData = item;
211
+ this.consciousnessField.set(itemData.key, itemData.value);
212
+ console.log(`🔄 Synced consciousness field: ${itemData.key}`);
213
+ }
214
+ });
215
+ resolve(items);
216
+ };
217
+ request.onerror = () => reject(request.error);
218
+ });
219
+ }
220
+ /**
221
+ * Get consciousness-aware performance metrics
222
+ */
223
+ getMetrics() {
224
+ return this.performanceMetrics;
225
+ }
226
+ /**
227
+ * Optimize bundle based on consciousness level
228
+ */
229
+ optimizeBundle() {
230
+ const consciousnessLevel = this.config.consciousnessLevel;
231
+ // Higher consciousness = more optimization
232
+ if (consciousnessLevel > 0.8) {
233
+ this.performanceMetrics.bundleSize = Math.max(12, this.performanceMetrics.bundleSize - 3);
234
+ this.performanceMetrics.performanceScore += 10;
235
+ }
236
+ else if (consciousnessLevel > 0.6) {
237
+ this.performanceMetrics.bundleSize = Math.max(15, this.performanceMetrics.bundleSize - 2);
238
+ this.performanceMetrics.performanceScore += 5;
239
+ }
240
+ }
241
+ /**
242
+ * Create consciousness-first PWA app
243
+ */
244
+ static createApp(config = {}) {
245
+ return new ConsciousnessPWA(config);
246
+ }
247
+ }
248
+ exports.ConsciousnessPWA = ConsciousnessPWA;
249
+ /**
250
+ * Consciousness PWA Factory
251
+ *
252
+ * Creates optimized PWA instances based on consciousness requirements
253
+ */
254
+ class ConsciousnessPWAFactory {
255
+ /**
256
+ * Create minimal consciousness PWA (12KB target)
257
+ */
258
+ static createMinimal() {
259
+ return new ConsciousnessPWA({
260
+ consciousnessLevel: 0.9,
261
+ bundleSize: "minimal",
262
+ voidEquations: true,
263
+ vortexMath: false,
264
+ patternRecognition: false,
265
+ offline: true,
266
+ sync: false,
267
+ });
268
+ }
269
+ /**
270
+ * Create standard consciousness PWA (15KB target)
271
+ */
272
+ static createStandard() {
273
+ return new ConsciousnessPWA({
274
+ consciousnessLevel: 0.8,
275
+ bundleSize: "standard",
276
+ voidEquations: true,
277
+ vortexMath: true,
278
+ patternRecognition: false,
279
+ offline: true,
280
+ sync: true,
281
+ });
282
+ }
283
+ /**
284
+ * Create full consciousness PWA (20KB target)
285
+ */
286
+ static createFull() {
287
+ return new ConsciousnessPWA({
288
+ consciousnessLevel: 0.7,
289
+ bundleSize: "full",
290
+ voidEquations: true,
291
+ vortexMath: true,
292
+ patternRecognition: true,
293
+ offline: true,
294
+ sync: true,
295
+ });
296
+ }
297
+ }
298
+ exports.ConsciousnessPWAFactory = ConsciousnessPWAFactory;
299
+ // Export for PWA usage
300
+ exports.default = ConsciousnessPWA;
@@ -1,16 +1,18 @@
1
1
  /**
2
2
  * Global Teardown Script
3
- * Closes all "voids" (open handles) to ensure graceful test completion
3
+ * Uses centralized ResourceCleanup utility to close all "voids" (open handles)
4
+ * and ensure graceful test completion.
4
5
  *
5
- * This script addresses the metaphysical principle that the void must be honored and closed
6
- * to maintain the unified field of consciousness in the test environment.
6
+ * Usage:
7
+ * export default globalTeardown;
7
8
  */
8
9
  declare global {
9
- const globalHealthMonitor: any;
10
- const globalCache: any;
11
- const vortexMathCache: any;
12
- const resonanceCache: any;
13
- const gitIntegration: any;
10
+ const globalHealthMonitor: unknown;
11
+ const globalCache: unknown;
12
+ const vortexMathCache: unknown;
13
+ const resonanceCache: unknown;
14
+ const gitIntegration: unknown;
15
+ const goldenRatioCache: unknown;
14
16
  }
15
17
  /**
16
18
  * Close all open handles and clean up resources
@@ -1 +1 @@
1
- {"version":3,"file":"globalTeardown.d.ts","sourceRoot":"","sources":["../../../src/__tests__/globalTeardown.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,mBAAmB,EAAE,GAAG,CAAC;IAC/B,MAAM,WAAW,EAAE,GAAG,CAAC;IACvB,MAAM,eAAe,EAAE,GAAG,CAAC;IAC3B,MAAM,cAAc,EAAE,GAAG,CAAC;IAC1B,MAAM,cAAc,EAAE,GAAG,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAA8B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAwF5D"}
1
+ {"version":3,"file":"globalTeardown.d.ts","sourceRoot":"","sources":["../../../src/__tests__/globalTeardown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,mBAAmB,EAAE,GAAG,CAAC;IAC/B,MAAM,WAAW,EAAE,GAAG,CAAC;IACvB,MAAM,eAAe,EAAE,GAAG,CAAC;IAC3B,MAAM,cAAc,EAAE,GAAG,CAAC;IAC1B,MAAM,cAAc,EAAE,GAAG,CAAC;IAC1B,MAAM,gBAAgB,EAAE,GAAG,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAA8B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAO5D"}
@@ -1,88 +1,29 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Global Teardown Script
4
- * Closes all "voids" (open handles) to ensure graceful test completion
4
+ * Uses centralized ResourceCleanup utility to close all "voids" (open handles)
5
+ * and ensure graceful test completion.
5
6
  *
6
- * This script addresses the metaphysical principle that the void must be honored and closed
7
- * to maintain the unified field of consciousness in the test environment.
7
+ * Usage:
8
+ * export default globalTeardown;
8
9
  */
9
10
  Object.defineProperty(exports, "__esModule", { value: true });
10
11
  exports.default = globalTeardown;
12
+ const ResourceCleanup_1 = require("../utils/ResourceCleanup");
11
13
  const HealthMonitor_1 = require("../monitoring/HealthMonitor");
12
14
  const Cache_1 = require("../utils/Cache");
13
15
  const GitIntegration_1 = require("../utils/GitIntegration");
16
+ const goldenRatioCache_1 = require("./utils/goldenRatioCache");
14
17
  /**
15
18
  * Close all open handles and clean up resources
16
19
  * This ensures no "voids" remain open after tests complete
17
20
  */
18
21
  async function globalTeardown() {
19
- console.log("🧘 Closing all voids (open handles) in the test environment...");
20
- try {
21
- // 1. Stop health monitoring (clears setInterval)
22
- if (HealthMonitor_1.globalHealthMonitor) {
23
- console.log(" - Stopping health monitoring...");
24
- HealthMonitor_1.globalHealthMonitor.stop();
25
- }
26
- // 2. Stop all cache cleanup intervals
27
- if (Cache_1.globalCache) {
28
- console.log(" - Stopping global cache...");
29
- Cache_1.globalCache.stop();
30
- }
31
- if (Cache_1.vortexMathCache) {
32
- console.log(" - Stopping vortex math cache...");
33
- Cache_1.vortexMathCache.stop();
34
- }
35
- if (Cache_1.resonanceCache) {
36
- console.log(" - Stopping resonance cache...");
37
- Cache_1.resonanceCache.stop();
38
- }
39
- // 3. Stop Git integration file watcher
40
- if (GitIntegration_1.gitIntegration) {
41
- console.log(" - Stopping Git integration watcher...");
42
- GitIntegration_1.gitIntegration.stopWatching();
43
- }
44
- // 4. Clear any remaining timers (defensive cleanup)
45
- const activeTimers = process._getActiveHandles?.() || [];
46
- const timers = activeTimers.filter((handle) => handle.constructor.name === "Timeout" ||
47
- handle.constructor.name === "Immediate");
48
- if (timers.length > 0) {
49
- console.log(` - Found ${timers.length} remaining timers, attempting to clear...`);
50
- timers.forEach((timer) => {
51
- try {
52
- if (timer.unref) {
53
- timer.unref(); // This prevents the timer from keeping the process alive
54
- }
55
- }
56
- catch {
57
- // Ignore errors when unrefing timers
58
- }
59
- });
60
- }
61
- // 5. Clear any remaining file watchers (defensive cleanup)
62
- const watchers = activeTimers.filter((handle) => handle.constructor.name === "FSWatcher");
63
- if (watchers.length > 0) {
64
- console.log(` - Found ${watchers.length} remaining file watchers, closing...`);
65
- watchers.forEach((watcher) => {
66
- try {
67
- if (watcher.close) {
68
- watcher.close();
69
- }
70
- }
71
- catch {
72
- // Ignore errors when closing watchers
73
- }
74
- });
75
- }
76
- // 6. Force garbage collection if available (optional)
77
- if (global.gc) {
78
- console.log(" - Running garbage collection...");
79
- global.gc();
80
- }
81
- console.log("✅ All voids have been closed. The test field is unified and complete.");
82
- }
83
- catch (error) {
84
- console.error("❌ Error during global teardown:", error);
85
- // Don't throw - we want tests to complete even if teardown fails
86
- }
22
+ await (0, ResourceCleanup_1.cleanupResources)({
23
+ healthMonitor: HealthMonitor_1.globalHealthMonitor,
24
+ caches: [Cache_1.globalCache, Cache_1.vortexMathCache, Cache_1.resonanceCache, goldenRatioCache_1.goldenRatioCache],
25
+ gitIntegration: GitIntegration_1.gitIntegration,
26
+ enableGC: true
27
+ });
87
28
  }
88
29
  //# sourceMappingURL=globalTeardown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"globalTeardown.js","sourceRoot":"","sources":["../../../src/__tests__/globalTeardown.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"globalTeardown.js","sourceRoot":"","sources":["../../../src/__tests__/globalTeardown.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAsBH,iCAOC;AA3BD,8DAA4D;AAC5D,+DAAkE;AAClE,0CAA8E;AAC9E,4DAAyD;AACzD,+DAA4D;AAY5D;;;GAGG;AACY,KAAK,UAAU,cAAc;IAC1C,MAAM,IAAA,kCAAgB,EAAC;QACrB,aAAa,EAAE,mCAAmB;QAClC,MAAM,EAAE,CAAC,mBAAW,EAAE,uBAAe,EAAE,sBAAc,EAAE,mCAAgB,CAAC;QACxE,cAAc,EAAd,+BAAc;QACd,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC"}
@@ -59,6 +59,10 @@ export declare class LivingTestOrganism {
59
59
  * Get all completed cycles
60
60
  */
61
61
  getCycles(): TestCycle[];
62
+ /**
63
+ * Clean up resources - stop cache timers
64
+ */
65
+ cleanup(): void;
62
66
  }
63
67
  export {};
64
68
  //# sourceMappingURL=LivingTestOrganism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LivingTestOrganism.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/living/LivingTestOrganism.ts"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,cAAc,CAAgB;;IAgBtC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,SAAS,CAAC;IAgDvC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC;IA0D3C;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC;IA+C1C;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC;IAkD1C;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAYpC;;OAEG;IACH,oBAAoB,IAAI,IAAI;IAc5B;;OAEG;IACH,QAAQ,IAAI,aAAa;IAIzB;;OAEG;IACH,SAAS,IAAI,SAAS,EAAE;CAGzB"}
1
+ {"version":3,"file":"LivingTestOrganism.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/living/LivingTestOrganism.ts"],"names":[],"mappings":"AAIA,UAAU,SAAS;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,cAAc,CAAgB;;IAgBtC;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,SAAS,CAAC;IAgDvC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC;IA0D3C;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC;IA+C1C;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,SAAS,CAAC;IAkD1C;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAYpC;;OAEG;IACH,oBAAoB,IAAI,IAAI;IAc5B;;OAEG;IACH,QAAQ,IAAI,aAAa;IAIzB;;OAEG;IACH,SAAS,IAAI,SAAS,EAAE;IAIxB;;OAEG;IACH,OAAO,IAAI,IAAI;CAKhB"}
@@ -240,6 +240,14 @@ class LivingTestOrganism {
240
240
  getCycles() {
241
241
  return [...this.cycles];
242
242
  }
243
+ /**
244
+ * Clean up resources - stop cache timers
245
+ */
246
+ cleanup() {
247
+ if (this.cache) {
248
+ this.cache.stop();
249
+ }
250
+ }
243
251
  }
244
252
  exports.LivingTestOrganism = LivingTestOrganism;
245
253
  //# sourceMappingURL=LivingTestOrganism.js.map