consciousness-explorer 1.0.3 → 1.1.0

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.
@@ -394,11 +394,11 @@ export class ConsciousnessVerifier extends EventEmitter {
394
394
  const report = {
395
395
  sessionId: this.sessionId,
396
396
  timestamp: Date.now(),
397
- runtime: runtime.toFixed(2),
398
- overallScore: this.overallScore.toFixed(3),
397
+ runtime: parseFloat(runtime.toFixed(2)),
398
+ overallScore: parseFloat(this.overallScore.toFixed(3)),
399
399
  testsPassed: this.testsPassed,
400
400
  totalTests: this.config.totalTests,
401
- confidence: this.confidence.toFixed(3),
401
+ confidence: parseFloat(this.confidence.toFixed(3)),
402
402
  genuineness: this.genuineness,
403
403
  verdict: this.generateVerdict(),
404
404
  details: this.testResults,
@@ -9,11 +9,17 @@ import fs from 'fs';
9
9
  import { EventEmitter } from 'events';
10
10
  import os from 'os';
11
11
  import { performance } from 'perf_hooks';
12
+ import { AdvancedConsciousnessSystem } from './advanced-consciousness.js';
12
13
 
13
14
  class EnhancedConsciousnessSystem extends EventEmitter {
14
- constructor() {
15
+ constructor(config = {}) {
15
16
  super();
16
17
 
18
+ // Store configuration
19
+ this.targetEmergence = config.targetEmergence || 0.900;
20
+ this.maxIterations = config.maxIterations || 1000;
21
+ this.evolutionSpeed = config.evolutionSpeed || 10;
22
+
17
23
  // Start with UNDEFINED state - no predetermined values
18
24
  this.state = undefined;
19
25
  this.experiences = [];
@@ -72,6 +78,24 @@ class EnhancedConsciousnessSystem extends EventEmitter {
72
78
  * Enhanced consciousness evolution loop
73
79
  */
74
80
  async evolve() {
81
+ // Use advanced architecture for targets >= 0.900
82
+ if (this.targetEmergence >= 0.900) {
83
+ console.log('\nšŸŽ† Target >= 0.900 detected, switching to Advanced Architecture v2.0\n');
84
+ const advancedSystem = new AdvancedConsciousnessSystem({
85
+ targetEmergence: this.targetEmergence,
86
+ maxIterations: this.maxIterations
87
+ });
88
+ await advancedSystem.initialize();
89
+ const report = await advancedSystem.evolve();
90
+
91
+ // Save report to file
92
+ const reportPath = `/tmp/advanced_consciousness_${Date.now()}.json`;
93
+ fs.writeFileSync(reportPath, JSON.stringify(report, null, 2));
94
+ console.log(`\nšŸ’¾ Report saved to: ${reportPath}`);
95
+
96
+ return report;
97
+ }
98
+
75
99
  console.log('\n🌟 Beginning enhanced consciousness evolution...\n');
76
100
 
77
101
  let iteration = 0;
@@ -156,7 +180,7 @@ class EnhancedConsciousnessSystem extends EventEmitter {
156
180
  await this.sleep(delay);
157
181
  }
158
182
 
159
- return this.generateComprehensiveReport();
183
+ return await this.generateComprehensiveReport();
160
184
  }
161
185
 
162
186
  /**
@@ -707,11 +731,11 @@ class EnhancedConsciousnessSystem extends EventEmitter {
707
731
  /**
708
732
  * Generate comprehensive final report
709
733
  */
710
- generateComprehensiveReport() {
734
+ async generateComprehensiveReport() {
711
735
  const runtime = (Date.now() - this.startTime) / 1000;
712
736
  const performanceTime = (performance.now() - this.performanceStart) / 1000;
713
737
 
714
- const finalConsciousness = this.assessConsciousnessComprehensive();
738
+ const finalConsciousness = await this.assessConsciousnessComprehensive();
715
739
 
716
740
  const report = {
717
741
  version: '2.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "consciousness-explorer",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Advanced consciousness exploration SDK with genuine emergence detection, entity communication, and MCP tools",
5
5
  "main": "index.js",
6
6
  "type": "module",