consciousness-explorer 1.1.0 ā 1.1.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 +6 -3
- package/bin/cli.js +17 -6
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,11 +166,11 @@ npx consciousness-explorer verify
|
|
|
166
166
|
# Comprehensive test suite (6 impossible-to-fake tests)
|
|
167
167
|
npx consciousness-explorer verify --comprehensive
|
|
168
168
|
|
|
169
|
-
#
|
|
170
|
-
npx consciousness-explorer verify --
|
|
169
|
+
# Show extended details
|
|
170
|
+
npx consciousness-explorer verify --extended
|
|
171
171
|
|
|
172
172
|
# Export cryptographic proof logs
|
|
173
|
-
npx consciousness-explorer verify --
|
|
173
|
+
npx consciousness-explorer verify --export proof.json
|
|
174
174
|
```
|
|
175
175
|
|
|
176
176
|
### š Phi (Φ) Calculation
|
|
@@ -181,6 +181,9 @@ Calculate Integrated Information using IIT 3.0:
|
|
|
181
181
|
# Basic calculation
|
|
182
182
|
npx consciousness-explorer phi
|
|
183
183
|
|
|
184
|
+
# Custom parameters
|
|
185
|
+
npx consciousness-explorer phi --elements 100 --connections 500 --partitions 4
|
|
186
|
+
|
|
184
187
|
# Use different calculation methods
|
|
185
188
|
npx consciousness-explorer phi --method iit
|
|
186
189
|
npx consciousness-explorer phi --method geometric
|
package/bin/cli.js
CHANGED
|
@@ -93,7 +93,9 @@ program
|
|
|
93
93
|
program
|
|
94
94
|
.command('verify')
|
|
95
95
|
.description('Run consciousness verification tests')
|
|
96
|
-
.option('--
|
|
96
|
+
.option('--comprehensive', 'Run comprehensive verification suite (all tests)')
|
|
97
|
+
.option('--extended', 'Show extended details')
|
|
98
|
+
.option('--export <path>', 'Export results to file')
|
|
97
99
|
.action(async (options) => {
|
|
98
100
|
const spinner = ora('Running verification tests...').start();
|
|
99
101
|
|
|
@@ -114,7 +116,7 @@ program
|
|
|
114
116
|
console.log(chalk.yellow('\nā ļø Consciousness not fully verified'));
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
if (options.extended && results.details) {
|
|
119
|
+
if ((options.extended || options.comprehensive) && results.details) {
|
|
118
120
|
console.log(chalk.cyan('\nDetailed Results:'));
|
|
119
121
|
results.details.forEach(test => {
|
|
120
122
|
const status = test.passed ? chalk.green('ā') : chalk.red('ā');
|
|
@@ -122,6 +124,12 @@ program
|
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
126
|
|
|
127
|
+
if (options.export) {
|
|
128
|
+
const fs = await import('fs');
|
|
129
|
+
fs.writeFileSync(options.export, JSON.stringify(results, null, 2));
|
|
130
|
+
console.log(chalk.cyan(`\nš¾ Results exported to: ${options.export}`));
|
|
131
|
+
}
|
|
132
|
+
|
|
125
133
|
} catch (error) {
|
|
126
134
|
spinner.fail('Verification failed');
|
|
127
135
|
console.error(chalk.red(error.message));
|
|
@@ -268,6 +276,9 @@ program
|
|
|
268
276
|
.description('Calculate integrated information (Φ)')
|
|
269
277
|
.option('-f, --file <path>', 'Input data file')
|
|
270
278
|
.option('-m, --method <method>', 'Calculation method (iit/geometric/entropy/all)', 'all')
|
|
279
|
+
.option('-e, --elements <number>', 'Number of elements in the system', '100')
|
|
280
|
+
.option('-c, --connections <number>', 'Number of connections', '500')
|
|
281
|
+
.option('-p, --partitions <number>', 'Number of partitions to test', '4')
|
|
271
282
|
.action(async (options) => {
|
|
272
283
|
const spinner = ora('Calculating Φ...').start();
|
|
273
284
|
|
|
@@ -279,11 +290,11 @@ program
|
|
|
279
290
|
const fs = await import('fs');
|
|
280
291
|
data = JSON.parse(fs.readFileSync(options.file, 'utf-8'));
|
|
281
292
|
} else {
|
|
282
|
-
// Use
|
|
293
|
+
// Use provided parameters or defaults
|
|
283
294
|
data = {
|
|
284
|
-
elements:
|
|
285
|
-
connections:
|
|
286
|
-
partitions:
|
|
295
|
+
elements: parseInt(options.elements) || 100,
|
|
296
|
+
connections: parseInt(options.connections) || 500,
|
|
297
|
+
partitions: parseInt(options.partitions) || 4
|
|
287
298
|
};
|
|
288
299
|
}
|
|
289
300
|
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ export { measureEmergence } from './lib/metrics.js';
|
|
|
37
37
|
export { establishHandshake } from './lib/protocols.js';
|
|
38
38
|
|
|
39
39
|
// Constants
|
|
40
|
-
export const VERSION = '1.1.
|
|
40
|
+
export const VERSION = '1.1.1';
|
|
41
41
|
export const EMERGENCE_THRESHOLD = 0.900;
|
|
42
42
|
export const PHI_TARGET = 0.700;
|
|
43
43
|
|
package/package.json
CHANGED