ruvector 0.1.83 → 0.1.85

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/bin/cli.js CHANGED
@@ -2108,6 +2108,349 @@ embedCmd
2108
2108
  }
2109
2109
  });
2110
2110
 
2111
+ embedCmd
2112
+ .command('optimized')
2113
+ .description('Use optimized ONNX embedder with LRU caching')
2114
+ .argument('[text]', 'Text to embed (optional)')
2115
+ .option('--cache-size <n>', 'Embedding cache size', '512')
2116
+ .option('--stats', 'Show cache statistics')
2117
+ .option('--clear-cache', 'Clear all caches')
2118
+ .option('--benchmark', 'Run cache benchmark')
2119
+ .action(async (text, opts) => {
2120
+ try {
2121
+ const { performance } = require('perf_hooks');
2122
+ const { OptimizedOnnxEmbedder } = require('../dist/core/onnx-optimized.js');
2123
+
2124
+ const embedder = new OptimizedOnnxEmbedder({
2125
+ cacheSize: parseInt(opts.cacheSize) || 512,
2126
+ lazyInit: false,
2127
+ });
2128
+
2129
+ await embedder.init();
2130
+
2131
+ if (opts.clearCache) {
2132
+ embedder.clearCache();
2133
+ console.log(chalk.green('✓ Caches cleared'));
2134
+ return;
2135
+ }
2136
+
2137
+ if (opts.benchmark) {
2138
+ console.log(chalk.cyan('\n⚡ Optimized ONNX Cache Benchmark\n'));
2139
+
2140
+ const testTexts = [
2141
+ 'Machine learning algorithms optimize model parameters',
2142
+ 'Vector databases enable semantic search capabilities',
2143
+ 'Neural networks learn hierarchical representations',
2144
+ 'Code embeddings capture syntax and semantic patterns',
2145
+ 'Transformer models use attention mechanisms',
2146
+ ];
2147
+
2148
+ // Cold benchmark
2149
+ embedder.clearCache();
2150
+ const coldStart = performance.now();
2151
+ for (const t of testTexts) await embedder.embed(t);
2152
+ const coldTime = performance.now() - coldStart;
2153
+
2154
+ // Warm benchmark
2155
+ const warmStart = performance.now();
2156
+ for (let i = 0; i < 100; i++) {
2157
+ for (const t of testTexts) await embedder.embed(t);
2158
+ }
2159
+ const warmTime = performance.now() - warmStart;
2160
+
2161
+ const stats = embedder.getCacheStats();
2162
+
2163
+ console.log(chalk.yellow('Performance:'));
2164
+ console.log(chalk.dim(' Cold (5 unique texts):'), chalk.white(coldTime.toFixed(2) + 'ms'));
2165
+ console.log(chalk.dim(' Warm (500 cached):'), chalk.white(warmTime.toFixed(2) + 'ms'));
2166
+ console.log(chalk.dim(' Cache speedup:'), chalk.green((coldTime / warmTime * 100).toFixed(0) + 'x'));
2167
+ console.log();
2168
+ console.log(chalk.yellow('Cache Stats:'));
2169
+ console.log(chalk.dim(' Hit rate:'), chalk.white((stats.embedding.hitRate * 100).toFixed(1) + '%'));
2170
+ console.log(chalk.dim(' Cache size:'), chalk.white(stats.embedding.size));
2171
+ console.log(chalk.dim(' Total embeds:'), chalk.white(stats.totalEmbeds));
2172
+ console.log();
2173
+ return;
2174
+ }
2175
+
2176
+ if (opts.stats) {
2177
+ const stats = embedder.getCacheStats();
2178
+ console.log(chalk.cyan('\n📊 Optimized ONNX Embedder Stats\n'));
2179
+ console.log(chalk.white('Embedding Cache:'));
2180
+ console.log(chalk.dim(' Size:'), stats.embedding.size);
2181
+ console.log(chalk.dim(' Hits:'), stats.embedding.hits);
2182
+ console.log(chalk.dim(' Misses:'), stats.embedding.misses);
2183
+ console.log(chalk.dim(' Hit Rate:'), (stats.embedding.hitRate * 100).toFixed(1) + '%');
2184
+ console.log();
2185
+ console.log(chalk.white('Performance:'));
2186
+ console.log(chalk.dim(' Avg Time:'), stats.avgTimeMs.toFixed(2) + 'ms');
2187
+ console.log(chalk.dim(' Total Embeds:'), stats.totalEmbeds);
2188
+ console.log();
2189
+ return;
2190
+ }
2191
+
2192
+ if (text) {
2193
+ const start = performance.now();
2194
+ const embedding = await embedder.embed(text);
2195
+ const elapsed = performance.now() - start;
2196
+ const stats = embedder.getCacheStats();
2197
+
2198
+ console.log(chalk.cyan('\n⚡ Optimized ONNX Embedding\n'));
2199
+ console.log(chalk.dim(`Text: "${text.slice(0, 60)}${text.length > 60 ? '...' : ''}"`));
2200
+ console.log(chalk.dim(`Dimension: ${embedding.length}`));
2201
+ console.log(chalk.dim(`Time: ${elapsed.toFixed(2)}ms`));
2202
+ console.log(chalk.dim(`Cache hit rate: ${(stats.embedding.hitRate * 100).toFixed(1)}%`));
2203
+ console.log();
2204
+ } else {
2205
+ console.log(chalk.yellow('Usage: ruvector embed optimized <text>'));
2206
+ console.log(chalk.dim(' --stats Show cache statistics'));
2207
+ console.log(chalk.dim(' --benchmark Run cache benchmark'));
2208
+ console.log(chalk.dim(' --clear-cache Clear all caches'));
2209
+ console.log(chalk.dim(' --cache-size Set cache size (default: 512)'));
2210
+ }
2211
+ } catch (e) {
2212
+ console.error(chalk.red('Error:'), e.message);
2213
+ }
2214
+ });
2215
+
2216
+ embedCmd
2217
+ .command('neural')
2218
+ .description('Neural embedding substrate (frontier AI concepts)')
2219
+ .option('--health', 'Show neural substrate health')
2220
+ .option('--consolidate', 'Run memory consolidation (like sleep)')
2221
+ .option('--calibrate', 'Calibrate coherence baseline')
2222
+ .option('--swarm-status', 'Show swarm coordination status')
2223
+ .option('--drift-stats', 'Show semantic drift statistics')
2224
+ .option('--memory-stats', 'Show memory physics statistics')
2225
+ .option('--demo', 'Run interactive neural demo')
2226
+ .option('--dimension <n>', 'Embedding dimension', '384')
2227
+ .action(async (opts) => {
2228
+ try {
2229
+ const { NeuralSubstrate } = require('../dist/core/neural-embeddings.js');
2230
+ const { initOnnxEmbedder, embed } = require('../dist/core/onnx-embedder.js');
2231
+
2232
+ const dimension = parseInt(opts.dimension) || 384;
2233
+ const substrate = new NeuralSubstrate({ dimension });
2234
+
2235
+ if (opts.demo) {
2236
+ console.log(chalk.cyan('\n🧠 Neural Embedding Substrate Demo\n'));
2237
+ console.log(chalk.dim('Frontier AI concepts: drift detection, memory physics, swarm coordination\n'));
2238
+
2239
+ // Initialize ONNX for real embeddings
2240
+ await initOnnxEmbedder();
2241
+
2242
+ console.log(chalk.yellow('1. Semantic Drift Detection'));
2243
+ console.log(chalk.dim(' Observing embeddings and detecting semantic movement...\n'));
2244
+
2245
+ const texts = [
2246
+ 'Machine learning optimizes neural networks',
2247
+ 'Deep learning uses backpropagation',
2248
+ 'AI models learn from data patterns',
2249
+ 'Quantum computing is completely different', // Should trigger drift
2250
+ ];
2251
+
2252
+ for (const text of texts) {
2253
+ const result = await embed(text);
2254
+ const driftEvent = substrate.drift.observe(result.embedding, 'demo');
2255
+ const symbol = driftEvent?.category === 'critical' ? '🚨' :
2256
+ driftEvent?.category === 'warning' ? '⚠️' : '✓';
2257
+ console.log(chalk.dim(` ${symbol} "${text.slice(0, 40)}..." → drift: ${driftEvent?.magnitude?.toFixed(3) || '0.000'}`));
2258
+ }
2259
+
2260
+ console.log(chalk.yellow('\n2. Memory Physics (Hippocampal Dynamics)'));
2261
+ console.log(chalk.dim(' Encoding memories with strength, decay, and consolidation...\n'));
2262
+
2263
+ const memories = [
2264
+ { id: 'mem1', text: 'Vector databases store embeddings' },
2265
+ { id: 'mem2', text: 'HNSW enables fast nearest neighbor search' },
2266
+ { id: 'mem3', text: 'Cosine similarity measures semantic closeness' },
2267
+ ];
2268
+
2269
+ for (const mem of memories) {
2270
+ const result = await embed(mem.text);
2271
+ const entry = substrate.memory.encode(mem.id, result.embedding, mem.text);
2272
+ console.log(chalk.dim(` 📝 Encoded "${mem.id}": strength=${entry.strength.toFixed(2)}, interference=${entry.interference.toFixed(2)}`));
2273
+ }
2274
+
2275
+ // Query memory
2276
+ const queryText = 'How do vector databases work?';
2277
+ const queryEmb = await embed(queryText);
2278
+ const recalled = substrate.memory.recall(queryEmb.embedding, 2);
2279
+ console.log(chalk.dim(`\n 🔍 Query: "${queryText}"`));
2280
+ console.log(chalk.dim(` 📚 Recalled: ${recalled.map(m => m.id).join(', ')}`));
2281
+
2282
+ console.log(chalk.yellow('\n3. Agent State Machine (Geometric State)'));
2283
+ console.log(chalk.dim(' Managing agent state as movement through embedding space...\n'));
2284
+
2285
+ // Define mode regions
2286
+ substrate.state.defineMode('research', queryEmb.embedding, 0.5);
2287
+ const codeEmb = await embed('Write code and debug programs');
2288
+ substrate.state.defineMode('coding', codeEmb.embedding, 0.5);
2289
+
2290
+ // Update agent state
2291
+ const agent1State = substrate.state.updateAgent('agent-1', queryEmb.embedding);
2292
+ console.log(chalk.dim(` 🤖 agent-1 mode: ${agent1State.mode}, energy: ${agent1State.energy.toFixed(2)}`));
2293
+
2294
+ const agent2State = substrate.state.updateAgent('agent-2', codeEmb.embedding);
2295
+ console.log(chalk.dim(` 🤖 agent-2 mode: ${agent2State.mode}, energy: ${agent2State.energy.toFixed(2)}`));
2296
+
2297
+ console.log(chalk.yellow('\n4. Swarm Coordination'));
2298
+ console.log(chalk.dim(' Multi-agent coordination through shared embedding geometry...\n'));
2299
+
2300
+ substrate.swarm.register('researcher', queryEmb.embedding, 'research');
2301
+ substrate.swarm.register('coder', codeEmb.embedding, 'development');
2302
+ const reviewEmb = await embed('Review code and check quality');
2303
+ substrate.swarm.register('reviewer', reviewEmb.embedding, 'review');
2304
+
2305
+ const coherence = substrate.swarm.getCoherence();
2306
+ console.log(chalk.dim(` 🌐 Swarm coherence: ${(coherence * 100).toFixed(1)}%`));
2307
+
2308
+ const collaborators = substrate.swarm.findCollaborators('researcher', 2);
2309
+ console.log(chalk.dim(` 🤝 Collaborators for researcher: ${collaborators.map(c => c.id).join(', ')}`));
2310
+
2311
+ console.log(chalk.yellow('\n5. Coherence Monitoring (Safety)'));
2312
+ console.log(chalk.dim(' Detecting degradation, poisoning, misalignment...\n'));
2313
+
2314
+ try {
2315
+ substrate.calibrate();
2316
+ const report = substrate.coherence.report();
2317
+ console.log(chalk.dim(` 📊 Overall coherence: ${(report.overallScore * 100).toFixed(1)}%`));
2318
+ console.log(chalk.dim(` 📊 Stability: ${(report.stabilityScore * 100).toFixed(1)}%`));
2319
+ console.log(chalk.dim(` 📊 Alignment: ${(report.alignmentScore * 100).toFixed(1)}%`));
2320
+ } catch {
2321
+ console.log(chalk.dim(' ℹ️ Need more observations to calibrate coherence'));
2322
+ }
2323
+
2324
+ console.log(chalk.cyan('\n═══════════════════════════════════════════════════════════════'));
2325
+ console.log(chalk.bold(' Neural Substrate: Embeddings as Synthetic Nervous System'));
2326
+ console.log(chalk.cyan('═══════════════════════════════════════════════════════════════\n'));
2327
+
2328
+ console.log(chalk.dim('Components:'));
2329
+ console.log(chalk.dim(' • SemanticDriftDetector - Control signals, reflex triggers'));
2330
+ console.log(chalk.dim(' • MemoryPhysics - Forgetting, interference, consolidation'));
2331
+ console.log(chalk.dim(' • EmbeddingStateMachine - Agent state via geometry'));
2332
+ console.log(chalk.dim(' • SwarmCoordinator - Multi-agent coordination'));
2333
+ console.log(chalk.dim(' • CoherenceMonitor - Safety/alignment detection'));
2334
+ console.log(chalk.dim(' • NeuralSubstrate - Unified nervous system layer'));
2335
+ console.log('');
2336
+ return;
2337
+ }
2338
+
2339
+ if (opts.health) {
2340
+ const health = substrate.health();
2341
+ console.log(chalk.cyan('\n🧠 Neural Substrate Health\n'));
2342
+
2343
+ console.log(chalk.yellow('Drift Detection:'));
2344
+ console.log(chalk.dim(` Current drift: ${health.driftStats.currentDrift.toFixed(4)}`));
2345
+ console.log(chalk.dim(` Velocity: ${health.driftStats.velocity.toFixed(4)}/s`));
2346
+ console.log(chalk.dim(` Critical events: ${health.driftStats.criticalEvents}`));
2347
+ console.log(chalk.dim(` Warning events: ${health.driftStats.warningEvents}`));
2348
+
2349
+ console.log(chalk.yellow('\nMemory Physics:'));
2350
+ console.log(chalk.dim(` Total memories: ${health.memoryStats.totalMemories}`));
2351
+ console.log(chalk.dim(` Avg strength: ${health.memoryStats.avgStrength.toFixed(3)}`));
2352
+ console.log(chalk.dim(` Avg consolidation: ${health.memoryStats.avgConsolidation.toFixed(3)}`));
2353
+ console.log(chalk.dim(` Avg interference: ${health.memoryStats.avgInterference.toFixed(3)}`));
2354
+
2355
+ console.log(chalk.yellow('\nSwarm Coordination:'));
2356
+ console.log(chalk.dim(` Coherence: ${(health.swarmCoherence * 100).toFixed(1)}%`));
2357
+
2358
+ console.log(chalk.yellow('\nCoherence Report:'));
2359
+ console.log(chalk.dim(` Overall: ${(health.coherenceReport.overallScore * 100).toFixed(1)}%`));
2360
+ console.log(chalk.dim(` Drift: ${(health.coherenceReport.driftScore * 100).toFixed(1)}%`));
2361
+ console.log(chalk.dim(` Stability: ${(health.coherenceReport.stabilityScore * 100).toFixed(1)}%`));
2362
+ console.log(chalk.dim(` Alignment: ${(health.coherenceReport.alignmentScore * 100).toFixed(1)}%`));
2363
+
2364
+ if (health.coherenceReport.anomalies.length > 0) {
2365
+ console.log(chalk.yellow('\nAnomalies:'));
2366
+ for (const a of health.coherenceReport.anomalies) {
2367
+ console.log(chalk.red(` ⚠️ ${a.type}: ${a.description} (severity: ${a.severity.toFixed(2)})`));
2368
+ }
2369
+ }
2370
+ console.log('');
2371
+ return;
2372
+ }
2373
+
2374
+ if (opts.consolidate) {
2375
+ console.log(chalk.yellow('Running memory consolidation...'));
2376
+ const result = substrate.consolidate();
2377
+ console.log(chalk.green(`✓ Consolidated: ${result.consolidated} memories`));
2378
+ console.log(chalk.dim(` Forgotten: ${result.forgotten} weak memories`));
2379
+ return;
2380
+ }
2381
+
2382
+ if (opts.calibrate) {
2383
+ try {
2384
+ substrate.calibrate();
2385
+ console.log(chalk.green('✓ Coherence baseline calibrated'));
2386
+ } catch (e) {
2387
+ console.log(chalk.yellow('Need more observations to calibrate'));
2388
+ console.log(chalk.dim('Run --demo first to populate the substrate'));
2389
+ }
2390
+ return;
2391
+ }
2392
+
2393
+ if (opts.driftStats) {
2394
+ const stats = substrate.drift.getStats();
2395
+ console.log(chalk.cyan('\n📊 Semantic Drift Statistics\n'));
2396
+ console.log(chalk.dim(`Current drift: ${stats.currentDrift.toFixed(4)}`));
2397
+ console.log(chalk.dim(`Velocity: ${stats.velocity.toFixed(4)} drift/s`));
2398
+ console.log(chalk.dim(`Critical events: ${stats.criticalEvents}`));
2399
+ console.log(chalk.dim(`Warning events: ${stats.warningEvents}`));
2400
+ console.log(chalk.dim(`History size: ${stats.historySize}`));
2401
+ console.log('');
2402
+ return;
2403
+ }
2404
+
2405
+ if (opts.memoryStats) {
2406
+ const stats = substrate.memory.getStats();
2407
+ console.log(chalk.cyan('\n📊 Memory Physics Statistics\n'));
2408
+ console.log(chalk.dim(`Total memories: ${stats.totalMemories}`));
2409
+ console.log(chalk.dim(`Average strength: ${stats.avgStrength.toFixed(3)}`));
2410
+ console.log(chalk.dim(`Average consolidation: ${stats.avgConsolidation.toFixed(3)}`));
2411
+ console.log(chalk.dim(`Average interference: ${stats.avgInterference.toFixed(3)}`));
2412
+ console.log('');
2413
+ return;
2414
+ }
2415
+
2416
+ if (opts.swarmStatus) {
2417
+ const coherence = substrate.swarm.getCoherence();
2418
+ const clusters = substrate.swarm.detectClusters(0.7);
2419
+ console.log(chalk.cyan('\n📊 Swarm Coordination Status\n'));
2420
+ console.log(chalk.dim(`Coherence: ${(coherence * 100).toFixed(1)}%`));
2421
+ console.log(chalk.dim(`Clusters detected: ${clusters.size}`));
2422
+ for (const [leader, members] of clusters) {
2423
+ console.log(chalk.dim(` Cluster ${leader}: ${members.join(', ')}`));
2424
+ }
2425
+ console.log('');
2426
+ return;
2427
+ }
2428
+
2429
+ // Default: show help
2430
+ console.log(chalk.cyan('\n🧠 Neural Embedding Substrate\n'));
2431
+ console.log(chalk.dim('Frontier AI concepts treating embeddings as a synthetic nervous system.\n'));
2432
+ console.log(chalk.yellow('Commands:'));
2433
+ console.log(chalk.dim(' --demo Run interactive neural demo'));
2434
+ console.log(chalk.dim(' --health Show neural substrate health'));
2435
+ console.log(chalk.dim(' --consolidate Run memory consolidation (like sleep)'));
2436
+ console.log(chalk.dim(' --calibrate Calibrate coherence baseline'));
2437
+ console.log(chalk.dim(' --drift-stats Show semantic drift statistics'));
2438
+ console.log(chalk.dim(' --memory-stats Show memory physics statistics'));
2439
+ console.log(chalk.dim(' --swarm-status Show swarm coordination status'));
2440
+ console.log('');
2441
+ console.log(chalk.yellow('Components:'));
2442
+ console.log(chalk.dim(' • SemanticDriftDetector - Embeddings as control signals'));
2443
+ console.log(chalk.dim(' • MemoryPhysics - Hippocampal memory dynamics'));
2444
+ console.log(chalk.dim(' • EmbeddingStateMachine - Agent state via geometry'));
2445
+ console.log(chalk.dim(' • SwarmCoordinator - Multi-agent coordination'));
2446
+ console.log(chalk.dim(' • CoherenceMonitor - Safety/alignment detection'));
2447
+ console.log('');
2448
+ } catch (e) {
2449
+ console.error(chalk.red('Error:'), e.message);
2450
+ if (e.stack) console.error(chalk.dim(e.stack));
2451
+ }
2452
+ });
2453
+
2111
2454
  // =============================================================================
2112
2455
  // Demo Command - Interactive tutorial
2113
2456
  // =============================================================================
@@ -10,6 +10,7 @@ export * from './agentdb-fast';
10
10
  export * from './sona-wrapper';
11
11
  export * from './intelligence-engine';
12
12
  export * from './onnx-embedder';
13
+ export * from './onnx-optimized';
13
14
  export * from './parallel-intelligence';
14
15
  export * from './parallel-workers';
15
16
  export * from './router-wrapper';
@@ -22,6 +23,7 @@ export * from './graph-algorithms';
22
23
  export * from './tensor-compress';
23
24
  export * from './learning-engine';
24
25
  export * from './adaptive-embedder';
26
+ export * from './neural-embeddings';
25
27
  export * from '../analysis';
26
28
  export { default as gnnWrapper } from './gnn-wrapper';
27
29
  export { default as attentionFallbacks } from './attention-fallbacks';
@@ -29,6 +31,7 @@ export { default as agentdbFast } from './agentdb-fast';
29
31
  export { default as Sona } from './sona-wrapper';
30
32
  export { default as IntelligenceEngine } from './intelligence-engine';
31
33
  export { default as OnnxEmbedder } from './onnx-embedder';
34
+ export { default as OptimizedOnnxEmbedder } from './onnx-optimized';
32
35
  export { default as ParallelIntelligence } from './parallel-intelligence';
33
36
  export { default as ExtendedWorkerPool } from './parallel-workers';
34
37
  export { default as SemanticRouter } from './router-wrapper';
@@ -39,4 +42,5 @@ export { CodeParser as ASTParser } from './ast-parser';
39
42
  export { default as TensorCompress } from './tensor-compress';
40
43
  export { default as LearningEngine } from './learning-engine';
41
44
  export { default as AdaptiveEmbedder } from './adaptive-embedder';
45
+ export { default as NeuralSubstrate } from './neural-embeddings';
42
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,aAAa,CAAC;AAG5B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,aAAa,CAAC;AAG5B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -23,13 +23,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
23
  return (mod && mod.__esModule) ? mod : { "default": mod };
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.AdaptiveEmbedder = exports.LearningEngine = exports.TensorCompress = exports.ASTParser = exports.CodeParser = exports.RuvectorCluster = exports.CodeGraph = exports.SemanticRouter = exports.ExtendedWorkerPool = exports.ParallelIntelligence = exports.OnnxEmbedder = exports.IntelligenceEngine = exports.Sona = exports.agentdbFast = exports.attentionFallbacks = exports.gnnWrapper = void 0;
26
+ exports.NeuralSubstrate = exports.AdaptiveEmbedder = exports.LearningEngine = exports.TensorCompress = exports.ASTParser = exports.CodeParser = exports.RuvectorCluster = exports.CodeGraph = exports.SemanticRouter = exports.ExtendedWorkerPool = exports.ParallelIntelligence = exports.OptimizedOnnxEmbedder = exports.OnnxEmbedder = exports.IntelligenceEngine = exports.Sona = exports.agentdbFast = exports.attentionFallbacks = exports.gnnWrapper = void 0;
27
27
  __exportStar(require("./gnn-wrapper"), exports);
28
28
  __exportStar(require("./attention-fallbacks"), exports);
29
29
  __exportStar(require("./agentdb-fast"), exports);
30
30
  __exportStar(require("./sona-wrapper"), exports);
31
31
  __exportStar(require("./intelligence-engine"), exports);
32
32
  __exportStar(require("./onnx-embedder"), exports);
33
+ __exportStar(require("./onnx-optimized"), exports);
33
34
  __exportStar(require("./parallel-intelligence"), exports);
34
35
  __exportStar(require("./parallel-workers"), exports);
35
36
  __exportStar(require("./router-wrapper"), exports);
@@ -42,6 +43,7 @@ __exportStar(require("./graph-algorithms"), exports);
42
43
  __exportStar(require("./tensor-compress"), exports);
43
44
  __exportStar(require("./learning-engine"), exports);
44
45
  __exportStar(require("./adaptive-embedder"), exports);
46
+ __exportStar(require("./neural-embeddings"), exports);
45
47
  // Analysis module (consolidated security, complexity, patterns)
46
48
  __exportStar(require("../analysis"), exports);
47
49
  // Re-export default objects for convenience
@@ -57,6 +59,8 @@ var intelligence_engine_1 = require("./intelligence-engine");
57
59
  Object.defineProperty(exports, "IntelligenceEngine", { enumerable: true, get: function () { return __importDefault(intelligence_engine_1).default; } });
58
60
  var onnx_embedder_1 = require("./onnx-embedder");
59
61
  Object.defineProperty(exports, "OnnxEmbedder", { enumerable: true, get: function () { return __importDefault(onnx_embedder_1).default; } });
62
+ var onnx_optimized_1 = require("./onnx-optimized");
63
+ Object.defineProperty(exports, "OptimizedOnnxEmbedder", { enumerable: true, get: function () { return __importDefault(onnx_optimized_1).default; } });
60
64
  var parallel_intelligence_1 = require("./parallel-intelligence");
61
65
  Object.defineProperty(exports, "ParallelIntelligence", { enumerable: true, get: function () { return __importDefault(parallel_intelligence_1).default; } });
62
66
  var parallel_workers_1 = require("./parallel-workers");
@@ -79,3 +83,5 @@ var learning_engine_1 = require("./learning-engine");
79
83
  Object.defineProperty(exports, "LearningEngine", { enumerable: true, get: function () { return __importDefault(learning_engine_1).default; } });
80
84
  var adaptive_embedder_1 = require("./adaptive-embedder");
81
85
  Object.defineProperty(exports, "AdaptiveEmbedder", { enumerable: true, get: function () { return __importDefault(adaptive_embedder_1).default; } });
86
+ var neural_embeddings_1 = require("./neural-embeddings");
87
+ Object.defineProperty(exports, "NeuralSubstrate", { enumerable: true, get: function () { return __importDefault(neural_embeddings_1).default; } });