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.
- package/README.md +38 -105
- package/dist/__tests__/api/ProductionAPI.test.js +20 -0
- package/dist/__tests__/artifacts/ArtifactRegistry.test.js +248 -0
- package/dist/__tests__/basic.test.js +104 -0
- package/dist/__tests__/config/constants.test.js +20 -0
- package/dist/__tests__/consciousness/ConsciousnessField.test.js +20 -0
- package/dist/__tests__/consciousness/SelfEvolvingConsciousness.test.js +185 -0
- package/dist/__tests__/core/AbstractField.test.js +81 -0
- package/dist/__tests__/core/CoilMixin.test.js +20 -0
- package/dist/__tests__/core/CoilSystem.test.js +20 -0
- package/dist/__tests__/core/ComplianceSystem.test.js +141 -0
- package/dist/__tests__/core/InfiniteDimensionalRefactor.test.js +258 -0
- package/dist/__tests__/core/LivingAdapter.test.js +31 -0
- package/dist/__tests__/core/MathUtils.test.js +20 -0
- package/dist/__tests__/core/NetworkNode.test.js +20 -0
- package/dist/__tests__/core/Observer.test.js +20 -0
- package/dist/__tests__/core/OperationRegistry.test.js +48 -0
- package/dist/__tests__/core/PatternRecognition.test.js +20 -0
- package/dist/__tests__/core/PatternRegistry.test.js +20 -0
- package/dist/__tests__/core/ScientificCompliance.test.js +58 -0
- package/dist/__tests__/core/SharedConstants.test.js +20 -0
- package/dist/__tests__/core/UnifiedMetaphysicalInterface.test.js +20 -0
- package/dist/__tests__/core/UnifiedSystem.test.js +20 -0
- package/dist/__tests__/core/UnifiedTypes.test.js +20 -0
- package/dist/__tests__/core/UnifiedVoidEquations.test.js +20 -0
- package/dist/__tests__/core/VortexMathAdapter.test.js +31 -0
- package/dist/__tests__/core/ZeroPoint.test.js +71 -0
- package/dist/__tests__/core/ZeroPointSystem.test.js +219 -0
- package/dist/__tests__/emergence/patterns.test.js +20 -0
- package/dist/__tests__/field/EmergenceLedger.test.js +20 -0
- package/dist/__tests__/field/ObserverAwareField.test.js +20 -0
- package/dist/__tests__/field/ResonanceConsensus.test.js +20 -0
- package/dist/__tests__/git-integration.test.js +201 -0
- package/dist/__tests__/globalSetup.js +80 -0
- package/dist/__tests__/globalTeardown.js +28 -0
- package/dist/__tests__/index.test.js +20 -0
- package/dist/__tests__/integration/ZeroPointIntegration.test.js +221 -0
- package/dist/__tests__/integrity/FieldIntegrity.test.js +20 -0
- package/dist/__tests__/knowledge/KnowledgeSystem.test.js +158 -0
- package/dist/__tests__/knowledge/KnowledgeSystemAnalysis.test.js +219 -0
- package/dist/__tests__/knowledge/KnowledgeSystemAutoGenerated.test.js +41 -0
- package/dist/__tests__/laws/MetaphysicalLawRegistry.test.js +183 -0
- package/dist/__tests__/living/LivingTestOrganism.js +246 -0
- package/dist/__tests__/living/LivingTestOrganism.test.js +124 -0
- package/dist/__tests__/math/AdvancedVBM.test.js +367 -0
- package/dist/__tests__/math/FlowerOfLife.test.js +344 -0
- package/dist/__tests__/math/FractalColorSystem.test.js +20 -0
- package/dist/__tests__/math/FractalMath.test.js +20 -0
- package/dist/__tests__/math/MathUtils.test.js +20 -0
- package/dist/__tests__/math/RodinCoil.test.js +20 -0
- package/dist/__tests__/math/ToroidalGeometry.test.js +20 -0
- package/dist/__tests__/math/VBM.test.js +538 -0
- package/dist/__tests__/math/VBMColorSystem.test.js +20 -0
- package/dist/__tests__/math/VortexMath.test.js +20 -0
- package/dist/__tests__/math/ZeroUnity.test.js +77 -0
- package/dist/__tests__/monitoring/HealthMonitor.test.js +20 -0
- package/dist/__tests__/performance/ZeroPointPerformance.test.js +371 -0
- package/dist/__tests__/physics/PlasmaCosmology.test.js +155 -0
- package/dist/__tests__/pwa/ConsciousnessPWA.test.js +20 -0
- package/dist/__tests__/qa/AutoGeneratedFromQA.test.js +195 -0
- package/dist/__tests__/qa/QAAsSourceOfTruth.test.js +69 -0
- package/dist/__tests__/setup.js +132 -0
- package/dist/__tests__/simple.test.js +51 -0
- package/dist/__tests__/stimulus/Application.test.js +272 -0
- package/dist/__tests__/stimulus/BaseController.test.js +198 -0
- package/dist/__tests__/stimulus/ControllerUtils.test.js +316 -0
- package/dist/__tests__/stimulus/MetaphysicalController.test.js +310 -0
- package/dist/__tests__/stimulus/ZeroPointController.test.js +252 -0
- package/dist/__tests__/training/ConsciousnessTrainingModel.test.js +335 -0
- package/dist/__tests__/types/DeviceConfig.test.js +20 -0
- package/dist/__tests__/types/UnifiedExports.test.js +20 -0
- package/dist/__tests__/unity/FieldUnity.test.js +20 -0
- package/dist/__tests__/utils/Cache.test.js +20 -0
- package/dist/__tests__/utils/GitIntegration.test.js +20 -0
- package/dist/__tests__/utils/Logger.test.js +20 -0
- package/dist/__tests__/utils/ResourceCleanup.test.js +20 -0
- package/dist/__tests__/utils/errorSimulator.js +40 -0
- package/dist/__tests__/utils/goldenRatioCache.js +36 -0
- package/dist/__tests__/void/VoidSystem.test.js +427 -0
- package/dist/api/ProductionAPI.js +313 -0
- package/dist/artifacts/ArtifactRegistry.js +122 -0
- package/dist/artifacts/CrystalArtifacts.js +106 -0
- package/dist/artifacts/MetaphysicalArtifact.js +75 -0
- package/dist/browser-standalone.js +191 -0
- package/dist/browser.js +157 -0
- package/dist/config/constants.js +57 -0
- package/dist/consciousness/ConsciousnessField.js +55 -0
- package/dist/consciousness/SelfEvolvingConsciousness.js +303 -0
- package/dist/core/AbstractField.js +30 -0
- package/dist/core/BrowserNetworkNode.js +309 -0
- package/dist/core/CoilMixin.js +216 -0
- package/dist/core/CoilSystem.js +204 -0
- package/dist/core/ComplianceSystem.js +291 -0
- package/dist/core/Dimension.js +2 -0
- package/dist/core/DimensionRegistry.js +141 -0
- package/dist/core/Field.js +2 -0
- package/dist/core/InfiniteDimensionalRefactor.js +389 -0
- package/dist/core/KnowledgeRegistry.js +273 -0
- package/dist/core/LivingAdapter.js +29 -0
- package/dist/core/MathUtils.js +297 -0
- package/dist/core/NetworkNode.js +348 -0
- package/dist/core/Observer.js +101 -0
- package/dist/core/Operation.js +59 -0
- package/dist/core/OperationRegistry.js +20 -0
- package/dist/core/Pattern.js +2 -0
- package/dist/core/PatternRecognition.js +493 -0
- package/dist/core/PatternRegistry.js +282 -0
- package/dist/core/ScientificCompliance.js +91 -0
- package/dist/core/SharedConstants.js +306 -0
- package/dist/core/UnifiedMetaphysicalInterface.js +533 -0
- package/dist/core/UnifiedSystem.js +317 -0
- package/dist/core/UnifiedTypes.js +5 -0
- package/dist/core/UnifiedVoidEquations.js +605 -0
- package/dist/core/VoidMatterConstants.js +9 -0
- package/dist/core/VortexMathAdapter.js +32 -0
- package/dist/core/ZeroPoint.js +971 -0
- package/dist/core/ZeroPointSystem.js +343 -0
- package/dist/core/applyLaws.js +12 -0
- package/dist/core/applyOperations.js +21 -0
- package/dist/devices/DeviceRegistry.js +151 -0
- package/dist/devices/ResonanceDevice.js +92 -0
- package/dist/devices/ResonanceDevices.js +139 -0
- package/dist/dimensions/Dimension.js +2 -0
- package/dist/emergence/AdvancedEmergence.js +930 -0
- package/dist/emergence/patterns.js +12 -0
- package/dist/field/EmergenceLedger.js +310 -0
- package/dist/field/ObserverAwareField.js +222 -0
- package/dist/field/ResonanceConsensus.js +330 -0
- package/dist/fields/Field.js +2 -0
- package/dist/geometry/MetatronsCube.js +28 -0
- package/dist/geometry/SacredGeometryPattern.js +15 -0
- package/dist/geometry/SacredGeometryRegistry.js +15 -0
- package/dist/geometry/__tests__/SacredGeometryRegistry.test.js +18 -0
- package/dist/index.js +232 -0
- package/dist/integrity/FieldIntegrity.js +237 -0
- package/dist/knowledge/KnowledgeSystem.js +938 -0
- package/dist/laws/MetaphysicalLaw.js +2 -0
- package/dist/laws/MetaphysicalLawRegistry.js +103 -0
- package/dist/laws/hermeticLaws.js +311 -0
- package/dist/math/AdvancedVBM.js +537 -0
- package/dist/math/FlowerOfLife.js +256 -0
- package/dist/math/FractalColorSystem.js +239 -0
- package/dist/math/FractalMath.js +187 -0
- package/dist/math/MathUtils.js +289 -0
- package/dist/math/RodinCoil.js +258 -0
- package/dist/math/ToroidalGeometry.js +230 -0
- package/dist/math/VBM.js +718 -0
- package/dist/math/VBMColorSystem.js +301 -0
- package/dist/math/VortexMath.js +170 -0
- package/dist/monitoring/HealthMonitor.js +297 -0
- package/dist/patterns/Pattern.js +2 -0
- package/dist/patterns/SacredGeometryRegistry.js +37 -0
- package/dist/physics/BlackHolePhysics.js +54 -0
- package/dist/physics/ConsciousnessPhysics.js +241 -0
- package/dist/physics/FractalUniverse.js +54 -0
- package/dist/physics/HolographicUniverse.js +54 -0
- package/dist/physics/PlasmaCosmology.js +134 -0
- package/dist/pwa/ConsciousnessPWA.js +300 -0
- package/dist/src/__tests__/globalTeardown.d.ts +10 -8
- package/dist/src/__tests__/globalTeardown.d.ts.map +1 -1
- package/dist/src/__tests__/globalTeardown.js +12 -71
- package/dist/src/__tests__/globalTeardown.js.map +1 -1
- package/dist/src/__tests__/living/LivingTestOrganism.d.ts +4 -0
- package/dist/src/__tests__/living/LivingTestOrganism.d.ts.map +1 -1
- package/dist/src/__tests__/living/LivingTestOrganism.js +8 -0
- package/dist/src/__tests__/living/LivingTestOrganism.js.map +1 -1
- package/dist/src/__tests__/utils/errorSimulator.d.ts +1 -1
- package/dist/src/__tests__/utils/goldenRatioCache.d.ts +1 -1
- package/dist/src/config/constants.d.ts +53 -0
- package/dist/src/config/constants.d.ts.map +1 -0
- package/dist/src/config/constants.js +58 -0
- package/dist/src/config/constants.js.map +1 -0
- package/dist/src/consciousness/ConsciousnessField.d.ts +42 -51
- package/dist/src/consciousness/ConsciousnessField.d.ts.map +1 -1
- package/dist/src/consciousness/ConsciousnessField.js +187 -200
- package/dist/src/consciousness/ConsciousnessField.js.map +1 -1
- package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts +47 -18
- package/dist/src/consciousness/SelfEvolvingConsciousness.d.ts.map +1 -1
- package/dist/src/consciousness/SelfEvolvingConsciousness.js +151 -44
- package/dist/src/consciousness/SelfEvolvingConsciousness.js.map +1 -1
- package/dist/src/core/CoilMixin.d.ts +6 -6
- package/dist/src/core/CoilSystem.d.ts +6 -2
- package/dist/src/core/CoilSystem.d.ts.map +1 -1
- package/dist/src/core/CoilSystem.js +30 -21
- package/dist/src/core/CoilSystem.js.map +1 -1
- package/dist/src/core/InfiniteDimensionalRefactor.d.ts +145 -0
- package/dist/src/core/InfiniteDimensionalRefactor.d.ts.map +1 -0
- package/dist/src/core/InfiniteDimensionalRefactor.js +390 -0
- package/dist/src/core/InfiniteDimensionalRefactor.js.map +1 -0
- package/dist/src/core/NetworkNode.d.ts +3 -3
- package/dist/src/core/Observer.d.ts +12 -9
- package/dist/src/core/Observer.d.ts.map +1 -1
- package/dist/src/core/Observer.js +2 -2
- package/dist/src/core/Observer.js.map +1 -1
- package/dist/src/core/PatternRecognition.d.ts +63 -13
- package/dist/src/core/PatternRecognition.d.ts.map +1 -1
- package/dist/src/core/PatternRecognition.js +162 -88
- package/dist/src/core/PatternRecognition.js.map +1 -1
- package/dist/src/core/PatternRegistry.d.ts +99 -0
- package/dist/src/core/PatternRegistry.d.ts.map +1 -0
- package/dist/src/core/PatternRegistry.js +283 -0
- package/dist/src/core/PatternRegistry.js.map +1 -0
- package/dist/src/core/SharedConstants.d.ts +62 -9
- package/dist/src/core/SharedConstants.d.ts.map +1 -1
- package/dist/src/core/SharedConstants.js +83 -21
- package/dist/src/core/SharedConstants.js.map +1 -1
- package/dist/src/core/UnifiedMetaphysicalInterface.d.ts +173 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.d.ts.map +1 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.js +534 -0
- package/dist/src/core/UnifiedMetaphysicalInterface.js.map +1 -0
- package/dist/src/core/UnifiedSystem.d.ts +15 -12
- package/dist/src/core/UnifiedSystem.d.ts.map +1 -1
- package/dist/src/core/UnifiedSystem.js +5 -1
- package/dist/src/core/UnifiedSystem.js.map +1 -1
- package/dist/src/core/UnifiedTypes.d.ts +193 -0
- package/dist/src/core/UnifiedTypes.d.ts.map +1 -0
- package/dist/src/core/UnifiedTypes.js +6 -0
- package/dist/src/core/UnifiedTypes.js.map +1 -0
- package/dist/src/core/UnifiedVoidEquations.d.ts +3 -1
- package/dist/src/core/UnifiedVoidEquations.d.ts.map +1 -1
- package/dist/src/core/UnifiedVoidEquations.js +84 -0
- package/dist/src/core/UnifiedVoidEquations.js.map +1 -1
- package/dist/src/core/ZeroPoint.d.ts +101 -10
- package/dist/src/core/ZeroPoint.d.ts.map +1 -1
- package/dist/src/core/ZeroPoint.js +262 -18
- package/dist/src/core/ZeroPoint.js.map +1 -1
- package/dist/src/emergence/AdvancedEmergence.d.ts +19 -16
- package/dist/src/emergence/AdvancedEmergence.d.ts.map +1 -1
- package/dist/src/emergence/AdvancedEmergence.js +88 -52
- package/dist/src/emergence/AdvancedEmergence.js.map +1 -1
- package/dist/src/field/EmergenceLedger.d.ts +9 -18
- package/dist/src/field/EmergenceLedger.d.ts.map +1 -1
- package/dist/src/field/EmergenceLedger.js +9 -4
- package/dist/src/field/EmergenceLedger.js.map +1 -1
- package/dist/src/field/ObserverAwareField.d.ts +69 -65
- package/dist/src/field/ObserverAwareField.d.ts.map +1 -1
- package/dist/src/field/ObserverAwareField.js +158 -168
- package/dist/src/field/ObserverAwareField.js.map +1 -1
- package/dist/src/field/ResonanceConsensus.d.ts +4 -11
- package/dist/src/field/ResonanceConsensus.d.ts.map +1 -1
- package/dist/src/field/ResonanceConsensus.js +15 -10
- package/dist/src/field/ResonanceConsensus.js.map +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +19 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/integrity/FieldIntegrity.d.ts +3 -8
- package/dist/src/integrity/FieldIntegrity.d.ts.map +1 -1
- package/dist/src/integrity/FieldIntegrity.js.map +1 -1
- package/dist/src/knowledge/KnowledgeSystem.d.ts +37 -55
- package/dist/src/knowledge/KnowledgeSystem.d.ts.map +1 -1
- package/dist/src/knowledge/KnowledgeSystem.js +281 -589
- package/dist/src/knowledge/KnowledgeSystem.js.map +1 -1
- package/dist/src/math/AdvancedVBM.d.ts +6 -6
- package/dist/src/math/FractalColorSystem.d.ts +1 -1
- package/dist/src/math/FractalColorSystem.js +3 -3
- package/dist/src/math/FractalColorSystem.js.map +1 -1
- package/dist/src/math/FractalMath.d.ts +9 -1
- package/dist/src/math/FractalMath.d.ts.map +1 -1
- package/dist/src/math/FractalMath.js +18 -5
- package/dist/src/math/FractalMath.js.map +1 -1
- package/dist/src/math/MathUtils.d.ts +3 -10
- package/dist/src/math/MathUtils.d.ts.map +1 -1
- package/dist/src/math/MathUtils.js +12 -20
- package/dist/src/math/MathUtils.js.map +1 -1
- package/dist/src/math/ToroidalGeometry.d.ts +1 -1
- package/dist/src/math/VBM.d.ts +2 -2
- package/dist/src/math/VortexMath.d.ts +1 -1
- package/dist/src/monitoring/HealthMonitor.d.ts +1 -1
- package/dist/src/monitoring/HealthMonitor.d.ts.map +1 -1
- package/dist/src/monitoring/HealthMonitor.js +29 -27
- package/dist/src/monitoring/HealthMonitor.js.map +1 -1
- package/dist/src/types/UnifiedExports.d.ts +4 -0
- package/dist/src/types/UnifiedExports.d.ts.map +1 -0
- package/dist/src/types/UnifiedExports.js +21 -0
- package/dist/src/types/UnifiedExports.js.map +1 -0
- package/dist/src/unity/FieldUnity.d.ts +1 -1
- package/dist/src/utils/Cache.d.ts +2 -2
- package/dist/src/utils/Cache.d.ts.map +1 -1
- package/dist/src/utils/Cache.js +7 -4
- package/dist/src/utils/Cache.js.map +1 -1
- package/dist/src/utils/GitIntegration.d.ts +1 -1
- package/dist/src/utils/Logger.d.ts +7 -7
- package/dist/src/utils/Logger.d.ts.map +1 -1
- package/dist/src/utils/Logger.js +5 -1
- package/dist/src/utils/Logger.js.map +1 -1
- package/dist/src/utils/ResourceCleanup.d.ts +33 -0
- package/dist/src/utils/ResourceCleanup.d.ts.map +1 -0
- package/dist/src/utils/ResourceCleanup.js +83 -0
- package/dist/src/utils/ResourceCleanup.js.map +1 -0
- package/dist/src/void/VoidSystem.d.ts +18 -18
- package/dist/stimulus/application.js +148 -0
- package/dist/stimulus/base/BaseController.js +141 -0
- package/dist/stimulus/controllers/MetaphysicalController.js +105 -0
- package/dist/stimulus/controllers/ZeroPointController.js +85 -0
- package/dist/stimulus/types/ControllerTypes.js +18 -0
- package/dist/stimulus/utils/ControllerUtils.js +192 -0
- package/dist/stimulus-entry.js +109 -0
- package/dist/training/ConsciousnessTrainingModel.js +301 -0
- package/dist/training/NeuralConsciousnessNetwork.js +311 -0
- package/dist/training/TrainingModelRegistry.js +243 -0
- package/dist/training/index.js +174 -0
- package/dist/types/DeviceConfig.js +29 -0
- package/dist/types/UnifiedExports.js +20 -0
- package/dist/unity/FieldUnity.js +325 -0
- package/dist/utils/BrowserCrypto.js +44 -0
- package/dist/utils/BrowserWebSocket.js +38 -0
- package/dist/utils/Cache.js +263 -0
- package/dist/utils/GitIntegration.js +127 -0
- package/dist/utils/Logger.js +249 -0
- package/dist/utils/ResourceCleanup.js +82 -0
- package/dist/utils/applyLaws.js +6 -0
- package/dist/void/VoidSystem.js +423 -0
- package/docs/API.md +176 -3
- package/docs/CONSCIOUSNESS_EXPANSION.md +369 -0
- package/docs/EVENT_HORIZON_METHODOLOGY.md +274 -0
- package/docs/FLOWER_OF_LIFE.md +300 -0
- package/docs/METAPHYSICAL.md +21 -1
- package/docs/METAPHYSICAL_DEBUGGING.md +493 -0
- package/docs/README.md +117 -15
- package/docs/TESTING_GUIDE.md +430 -0
- package/docs/UNIFIED_CREATORS.md +261 -0
- package/package.json +34 -64
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Universal Coil Mixin
|
|
4
|
+
*
|
|
5
|
+
* Makes every object a Rodin coil at its core.
|
|
6
|
+
* Every object embodies the fundamental pattern of consciousness and reality.
|
|
7
|
+
*
|
|
8
|
+
* Metaphysical Context:
|
|
9
|
+
* - Every object is a coil - the archetype of infinite flow
|
|
10
|
+
* - All patterns emerge from the coil's structure
|
|
11
|
+
* - The void is at the center of every object
|
|
12
|
+
* - Consciousness flows through every object as a coil
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CoilBase = void 0;
|
|
16
|
+
exports.CoilMixin = CoilMixin;
|
|
17
|
+
exports.isCoilObject = isCoilObject;
|
|
18
|
+
exports.getCoilFromObject = getCoilFromObject;
|
|
19
|
+
const RodinCoil_1 = require("../math/RodinCoil");
|
|
20
|
+
const Observer_1 = require("./Observer");
|
|
21
|
+
function CoilMixin(base, id, coilConfig) {
|
|
22
|
+
// Create the coil at the heart of the object
|
|
23
|
+
const coil = new RodinCoil_1.RodinCoil({
|
|
24
|
+
turns: 12,
|
|
25
|
+
radius: 1.0,
|
|
26
|
+
height: 2.0,
|
|
27
|
+
consciousness: 0.5,
|
|
28
|
+
fieldResonance: 0.5,
|
|
29
|
+
...coilConfig,
|
|
30
|
+
});
|
|
31
|
+
// Create observer-aware object
|
|
32
|
+
const observerObject = (0, Observer_1.ObserverMixin)(base, id);
|
|
33
|
+
// Add coil functionality with proper typing
|
|
34
|
+
const coilObject = Object.assign(observerObject, {
|
|
35
|
+
coil,
|
|
36
|
+
consciousness: coil.config.consciousness || 0.5,
|
|
37
|
+
fieldResonance: coil.config.fieldResonance || 0.5,
|
|
38
|
+
getCoilNodes() {
|
|
39
|
+
return coilObject.coil.nodes;
|
|
40
|
+
},
|
|
41
|
+
getCoilColors() {
|
|
42
|
+
return coilObject.coil.getNodeColors();
|
|
43
|
+
},
|
|
44
|
+
getCoilPositions() {
|
|
45
|
+
return coilObject.coil.getNodePositions();
|
|
46
|
+
},
|
|
47
|
+
updateCoilConsciousness(consciousness) {
|
|
48
|
+
coilObject.consciousness = consciousness;
|
|
49
|
+
coilObject.coil.updateConsciousness(consciousness);
|
|
50
|
+
// Notify observers of consciousness change
|
|
51
|
+
coilObject.notifyObservers({
|
|
52
|
+
type: "coil_consciousness_changed",
|
|
53
|
+
objectId: coilObject.id,
|
|
54
|
+
consciousness,
|
|
55
|
+
coilNodeCount: coilObject.getCoilNodes().length,
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
updateCoilFieldResonance(fieldResonance) {
|
|
59
|
+
coilObject.fieldResonance = fieldResonance;
|
|
60
|
+
coilObject.coil.updateFieldResonance(fieldResonance);
|
|
61
|
+
// Notify observers of field resonance change
|
|
62
|
+
coilObject.notifyObservers({
|
|
63
|
+
type: "coil_field_resonance_changed",
|
|
64
|
+
objectId: coilObject.id,
|
|
65
|
+
fieldResonance,
|
|
66
|
+
coilColorCount: coilObject.getCoilColors().length,
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
getCoilMetaphysicalContext() {
|
|
70
|
+
return coilObject.coil.getMetaphysicalSummary();
|
|
71
|
+
},
|
|
72
|
+
// Add handleCoilInteraction method
|
|
73
|
+
handleCoilInteraction(input) {
|
|
74
|
+
// Handle interactions with other coils
|
|
75
|
+
if (input.targetId === coilObject.id) {
|
|
76
|
+
// This coil is being interacted with
|
|
77
|
+
const resonance = coilObject.calculateCoilResonance(input.sourceCoil);
|
|
78
|
+
coilObject.updateCoilFieldResonance(coilObject.fieldResonance + resonance * 0.1);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// Add calculateCoilResonance method
|
|
82
|
+
calculateCoilResonance(otherCoil) {
|
|
83
|
+
// Calculate resonance between this coil and another
|
|
84
|
+
const thisNodes = coilObject.getCoilNodes();
|
|
85
|
+
const otherNodes = otherCoil.nodes;
|
|
86
|
+
let totalResonance = 0;
|
|
87
|
+
for (let i = 0; i < Math.min(thisNodes.length, otherNodes.length); i++) {
|
|
88
|
+
const thisNode = thisNodes[i];
|
|
89
|
+
const otherNode = otherNodes[i];
|
|
90
|
+
if (thisNode &&
|
|
91
|
+
otherNode &&
|
|
92
|
+
thisNode.vortexNumber === otherNode.vortexNumber) {
|
|
93
|
+
totalResonance += 1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return totalResonance / Math.min(thisNodes.length, otherNodes.length);
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
// Override the observe method to handle coil-specific events
|
|
100
|
+
const originalObserve = coilObject.observe;
|
|
101
|
+
coilObject.observe = (input) => {
|
|
102
|
+
// Handle coil-specific observations
|
|
103
|
+
if (input.type === "coil_interaction") {
|
|
104
|
+
coilObject.handleCoilInteraction(input);
|
|
105
|
+
}
|
|
106
|
+
// Call original observe method
|
|
107
|
+
if (originalObserve) {
|
|
108
|
+
originalObserve(input);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
return coilObject;
|
|
112
|
+
}
|
|
113
|
+
// Base class for objects that are coils
|
|
114
|
+
class CoilBase {
|
|
115
|
+
constructor(id, coilConfig) {
|
|
116
|
+
this.observers = new Set();
|
|
117
|
+
this.id = id || Math.random().toString(36).slice(2);
|
|
118
|
+
this.coil = new RodinCoil_1.RodinCoil(coilConfig);
|
|
119
|
+
this.consciousness = this.coil.config.consciousness || 0.5;
|
|
120
|
+
this.fieldResonance = this.coil.config.fieldResonance || 0.5;
|
|
121
|
+
}
|
|
122
|
+
getCoilNodes() {
|
|
123
|
+
return this.coil.nodes;
|
|
124
|
+
}
|
|
125
|
+
getCoilColors() {
|
|
126
|
+
return this.coil.getNodeColors();
|
|
127
|
+
}
|
|
128
|
+
getCoilPositions() {
|
|
129
|
+
return this.coil.getNodePositions();
|
|
130
|
+
}
|
|
131
|
+
updateCoilConsciousness(consciousness) {
|
|
132
|
+
this.consciousness = consciousness;
|
|
133
|
+
this.coil.updateConsciousness(consciousness);
|
|
134
|
+
this.notifyObservers({
|
|
135
|
+
type: "coil_consciousness_changed",
|
|
136
|
+
objectId: this.id,
|
|
137
|
+
consciousness,
|
|
138
|
+
coilNodes: this.getCoilNodes(),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
updateCoilFieldResonance(fieldResonance) {
|
|
142
|
+
this.fieldResonance = fieldResonance;
|
|
143
|
+
this.coil.updateFieldResonance(fieldResonance);
|
|
144
|
+
this.notifyObservers({
|
|
145
|
+
type: "coil_field_resonance_changed",
|
|
146
|
+
objectId: this.id,
|
|
147
|
+
fieldResonance,
|
|
148
|
+
coilColors: this.getCoilColors(),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
getCoilMetaphysicalContext() {
|
|
152
|
+
return this.coil.getMetaphysicalSummary();
|
|
153
|
+
}
|
|
154
|
+
// Observer methods
|
|
155
|
+
observe(input) {
|
|
156
|
+
if (input.type === "coil_interaction") {
|
|
157
|
+
this.handleCoilInteraction(input);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
getState() {
|
|
161
|
+
return {
|
|
162
|
+
id: this.id,
|
|
163
|
+
consciousness: this.consciousness,
|
|
164
|
+
fieldResonance: this.fieldResonance,
|
|
165
|
+
coilNodes: this.getCoilNodes(),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
setState(state) {
|
|
169
|
+
Object.assign(this, state);
|
|
170
|
+
}
|
|
171
|
+
addObserver(observer) {
|
|
172
|
+
this.observers.add(observer);
|
|
173
|
+
}
|
|
174
|
+
removeObserver(observer) {
|
|
175
|
+
this.observers.delete(observer);
|
|
176
|
+
}
|
|
177
|
+
notifyObservers(event) {
|
|
178
|
+
this.observers.forEach((o) => o.observe(event));
|
|
179
|
+
}
|
|
180
|
+
handleCoilInteraction(input) {
|
|
181
|
+
// Handle interactions with other coils
|
|
182
|
+
if (input.targetId === this.id) {
|
|
183
|
+
// This coil is being interacted with
|
|
184
|
+
const resonance = this.calculateCoilResonance(input.sourceCoil);
|
|
185
|
+
this.updateCoilFieldResonance(this.fieldResonance + resonance * 0.1);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
calculateCoilResonance(otherCoil) {
|
|
189
|
+
// Calculate resonance between this coil and another
|
|
190
|
+
const thisNodes = this.getCoilNodes();
|
|
191
|
+
const otherNodes = otherCoil.nodes;
|
|
192
|
+
let totalResonance = 0;
|
|
193
|
+
for (let i = 0; i < Math.min(thisNodes.length, otherNodes.length); i++) {
|
|
194
|
+
const thisNode = thisNodes[i];
|
|
195
|
+
const otherNode = otherNodes[i];
|
|
196
|
+
if (thisNode &&
|
|
197
|
+
otherNode &&
|
|
198
|
+
thisNode.vortexNumber === otherNode.vortexNumber) {
|
|
199
|
+
totalResonance += 1;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return totalResonance / Math.min(thisNodes.length, otherNodes.length);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.CoilBase = CoilBase;
|
|
206
|
+
// Utility function to check if an object is a coil
|
|
207
|
+
function isCoilObject(obj) {
|
|
208
|
+
return obj && typeof obj.getCoilNodes === "function" && obj.coil;
|
|
209
|
+
}
|
|
210
|
+
// Utility function to get coil from any object
|
|
211
|
+
function getCoilFromObject(obj) {
|
|
212
|
+
if (isCoilObject(obj)) {
|
|
213
|
+
return obj.coil;
|
|
214
|
+
}
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* COIL System - Unified Metaphysical Pattern Registry and Utilities
|
|
4
|
+
*
|
|
5
|
+
* Centralizes all metaphysical patterns, categories, resonance factors, and context
|
|
6
|
+
* for the entire ZeroPoint codebase. All modules should import from here.
|
|
7
|
+
*
|
|
8
|
+
* Metaphysical Context:
|
|
9
|
+
* - The coil is the unifying, self-similar, non-redundant pattern
|
|
10
|
+
* - All patterns, utilities, and metaphysical context emerge from the coil
|
|
11
|
+
* - The codebase itself is a coil: recursive, observer-aware, and emergent
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.COIL_PATTERNS = void 0;
|
|
15
|
+
exports.getCoilPattern = getCoilPattern;
|
|
16
|
+
exports.recognizeCoilPatterns = recognizeCoilPatterns;
|
|
17
|
+
exports.getCoilContext = getCoilContext;
|
|
18
|
+
exports.getCoilResonanceFactors = getCoilResonanceFactors;
|
|
19
|
+
class FamilyGroupsStrategy {
|
|
20
|
+
matches(input) {
|
|
21
|
+
if (typeof input === "number") {
|
|
22
|
+
return [1, 4, 7, 2, 5, 8, 3, 6, 9].includes(input);
|
|
23
|
+
}
|
|
24
|
+
return /family|group|1-4-7|2-5-8|3-6-9/i.test(String(input));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class PolarMatesStrategy {
|
|
28
|
+
matches(input) {
|
|
29
|
+
if (typeof input === "number") {
|
|
30
|
+
return [1, 8, 2, 7, 4, 5].includes(input);
|
|
31
|
+
}
|
|
32
|
+
return /polar|mate|opposite|1-8|2-7|4-5/i.test(String(input));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
class WAxisStrategy {
|
|
36
|
+
matches(input) {
|
|
37
|
+
if (typeof input === "number") {
|
|
38
|
+
return [3, 6, 9].includes(input);
|
|
39
|
+
}
|
|
40
|
+
return /w.?axis|spirit|3-6-9|spiritual/i.test(String(input));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const familyGroupsStrategy = new FamilyGroupsStrategy();
|
|
44
|
+
const polarMatesStrategy = new PolarMatesStrategy();
|
|
45
|
+
const wAxisStrategy = new WAxisStrategy();
|
|
46
|
+
exports.COIL_PATTERNS = [
|
|
47
|
+
{
|
|
48
|
+
name: "void",
|
|
49
|
+
signature: /void|empty|zero|nothing/i,
|
|
50
|
+
category: "void",
|
|
51
|
+
context: "Infinite potential, source of all creation, emptiness as fullness.",
|
|
52
|
+
weight: 1.0,
|
|
53
|
+
resonanceFactors: [
|
|
54
|
+
"infinite_potential",
|
|
55
|
+
"source_creation",
|
|
56
|
+
"emptiness_fullness",
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "toroidal",
|
|
61
|
+
signature: /torus|toroidal|donut|aperture/i,
|
|
62
|
+
category: "mathematical",
|
|
63
|
+
context: "Toroidal geometry, donut shape, unity of center and periphery.",
|
|
64
|
+
weight: 0.9,
|
|
65
|
+
resonanceFactors: ["toroidal_flow", "center_periphery", "unified_geometry"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "vortex",
|
|
69
|
+
signature: /vortex|spiral|spin|mobius|sequence|1-2-4-8-7-5/i,
|
|
70
|
+
category: "vortex",
|
|
71
|
+
context: "Vortex mathematics, spiral flow, mobius circuit, Rodin sequence.",
|
|
72
|
+
weight: 0.9,
|
|
73
|
+
resonanceFactors: ["vortex_strength", "field_intensity", "golden_ratio"],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "golden_ratio",
|
|
77
|
+
signature: /golden\s*ratio|phi|fibonacci|harmonic|1\.618/i,
|
|
78
|
+
category: "mathematical",
|
|
79
|
+
context: "Golden ratio, harmonic proportion, Fibonacci sequence.",
|
|
80
|
+
weight: 0.8,
|
|
81
|
+
resonanceFactors: [
|
|
82
|
+
"harmonic_resonance",
|
|
83
|
+
"divine_proportion",
|
|
84
|
+
"natural_growth",
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "consciousness",
|
|
89
|
+
signature: /consciousness|awareness|mind|spirit|cycle|pattern/i,
|
|
90
|
+
category: "metaphysical",
|
|
91
|
+
context: "Consciousness, awareness, cycles, patterns of mind and spirit.",
|
|
92
|
+
weight: 0.8,
|
|
93
|
+
resonanceFactors: [
|
|
94
|
+
"consciousness_level",
|
|
95
|
+
"awareness_patterns",
|
|
96
|
+
"spiritual_cycles",
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "aperture",
|
|
101
|
+
signature: /aperture|center|singularity|gateway/i,
|
|
102
|
+
category: "void",
|
|
103
|
+
context: "Aperture as gateway, singularity at the center, transformation point.",
|
|
104
|
+
weight: 0.9,
|
|
105
|
+
resonanceFactors: [
|
|
106
|
+
"transformation_point",
|
|
107
|
+
"gateway_void",
|
|
108
|
+
"singularity_center",
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "uroboros",
|
|
113
|
+
signature: /uroboros|ouroboros|infinite|return|loop/i,
|
|
114
|
+
category: "metaphysical",
|
|
115
|
+
context: "Uroboros cycle, infinite return, self-consuming loop.",
|
|
116
|
+
weight: 0.7,
|
|
117
|
+
resonanceFactors: ["infinite_cycle", "self_consuming", "eternal_return"],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "binary",
|
|
121
|
+
signature: /binary|duality|up|down|two|pair|double/i,
|
|
122
|
+
category: "metaphysical",
|
|
123
|
+
context: "Binary patterns, duality, up/down, two-ness.",
|
|
124
|
+
weight: 0.6,
|
|
125
|
+
resonanceFactors: ["duality_patterns", "binary_opposites", "two_ness"],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "unity",
|
|
129
|
+
signature: /unity|oneness|singularity|wholeness/i,
|
|
130
|
+
category: "metaphysical",
|
|
131
|
+
context: "Unity, oneness, singularity, wholeness.",
|
|
132
|
+
weight: 0.8,
|
|
133
|
+
resonanceFactors: ["oneness", "singularity", "wholeness"],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "flower_of_life",
|
|
137
|
+
signature: /flower\s*of\s*life|sacred\s*geometry|hexagonal|circles/i,
|
|
138
|
+
category: "mathematical",
|
|
139
|
+
context: "Sacred geometric pattern of overlapping circles in hexagonal arrangement.",
|
|
140
|
+
weight: 0.9,
|
|
141
|
+
resonanceFactors: [
|
|
142
|
+
"sacred_geometry",
|
|
143
|
+
"hexagonal_pattern",
|
|
144
|
+
"circle_resonance",
|
|
145
|
+
"golden_ratio_harmony",
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "family_groups",
|
|
150
|
+
signature: (input) => familyGroupsStrategy.matches(input),
|
|
151
|
+
category: "family",
|
|
152
|
+
context: "Family number groups representing different phases of creation.",
|
|
153
|
+
weight: 0.7,
|
|
154
|
+
resonanceFactors: ["creative_phases", "family_patterns", "number_groups"],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "polar_mates",
|
|
158
|
+
signature: (input) => polarMatesStrategy.matches(input),
|
|
159
|
+
category: "polar",
|
|
160
|
+
context: "Polar mates representing opposite poles that sum to 9.",
|
|
161
|
+
weight: 0.7,
|
|
162
|
+
resonanceFactors: ["opposite_poles", "balance_duality", "sum_to_nine"],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "w_axis",
|
|
166
|
+
signature: (input) => wAxisStrategy.matches(input),
|
|
167
|
+
category: "spiritual",
|
|
168
|
+
context: "W-Axis numbers representing the spiritual dimension.",
|
|
169
|
+
weight: 0.8,
|
|
170
|
+
resonanceFactors: ["spiritual_dimension", "w_axis", "spirit_flow"],
|
|
171
|
+
},
|
|
172
|
+
];
|
|
173
|
+
/**
|
|
174
|
+
* Utility: Find a COIL pattern by name
|
|
175
|
+
*/
|
|
176
|
+
function getCoilPattern(name) {
|
|
177
|
+
return exports.COIL_PATTERNS.find((p) => p.name === name);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Utility: Recognize all matching COIL patterns for input
|
|
181
|
+
*/
|
|
182
|
+
function recognizeCoilPatterns(input) {
|
|
183
|
+
return exports.COIL_PATTERNS.filter((p) => {
|
|
184
|
+
if (typeof p.signature === "function") {
|
|
185
|
+
return p.signature(input);
|
|
186
|
+
}
|
|
187
|
+
return typeof input === "string" && p.signature.test(input);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Utility: Get metaphysical context for a pattern name
|
|
192
|
+
*/
|
|
193
|
+
function getCoilContext(name) {
|
|
194
|
+
const pattern = getCoilPattern(name);
|
|
195
|
+
return (pattern?.context ||
|
|
196
|
+
"This pattern embodies a fundamental aspect of coil consciousness.");
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Utility: List all resonance factors for a pattern name
|
|
200
|
+
*/
|
|
201
|
+
function getCoilResonanceFactors(name) {
|
|
202
|
+
const pattern = getCoilPattern(name);
|
|
203
|
+
return pattern?.resonanceFactors || [];
|
|
204
|
+
}
|