@soulcraft/brainy 0.61.0 → 0.61.2
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 +345 -448
- package/bin/brainy.js +609 -19
- package/dist/augmentationPipeline.d.ts +19 -12
- package/dist/augmentationPipeline.js +19 -11
- package/dist/cli/catalog.d.ts +47 -0
- package/dist/cli/catalog.js +325 -0
- package/dist/cortex/cliWrapper.d.ts +32 -0
- package/dist/cortex/cliWrapper.js +209 -0
- package/dist/cortex/cortex-legacy.d.ts +264 -0
- package/dist/cortex/cortex-legacy.js +2463 -0
- package/dist/cortex/cortex.js +5 -5
- package/dist/cortex/serviceIntegration.d.ts +1 -1
- package/dist/cortex/serviceIntegration.js +1 -1
- package/dist/cortex.d.ts +11 -0
- package/dist/cortex.js +14 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +13 -3
- package/package.json +4 -5
package/dist/cortex/cortex.js
CHANGED
|
@@ -2158,7 +2158,7 @@ export class Cortex {
|
|
|
2158
2158
|
console.log(boxen(`${emojis.brain}☁️ ${colors.brain('BRAIN CLOUD PREMIUM FEATURES')}\n\n` +
|
|
2159
2159
|
`Premium connectors and features have moved to Brain Cloud!\n\n` +
|
|
2160
2160
|
`${colors.accent('◆')} ${colors.dim('Setup Brain Cloud:')} ${colors.highlight('brainy cloud')}\n` +
|
|
2161
|
-
`${colors.accent('◆')} ${colors.dim('Learn more:')} ${colors.highlight('https://
|
|
2161
|
+
`${colors.accent('◆')} ${colors.dim('Learn more:')} ${colors.highlight('https://soulcraft.com/brain-cloud')}\n\n` +
|
|
2162
2162
|
`${colors.retro('Available Tiers:')}\n` +
|
|
2163
2163
|
`${colors.success('🫙')} Brain Jar (Free) - Local coordination\n` +
|
|
2164
2164
|
`${colors.success('☁️')} Brain Cloud ($19/mo) - Sync everywhere\n` +
|
|
@@ -2174,7 +2174,7 @@ export class Cortex {
|
|
|
2174
2174
|
`${colors.accent('◆')} ${colors.dim('No credit card required')}\n` +
|
|
2175
2175
|
`${colors.accent('◆')} ${colors.dim('Cancel anytime')}\n\n` +
|
|
2176
2176
|
`${colors.highlight('Run: brainy cloud')}\n\n` +
|
|
2177
|
-
`Or visit: ${colors.accent('https://
|
|
2177
|
+
`Or visit: ${colors.accent('https://soulcraft.com/brain-cloud')}`, { padding: 1, borderStyle: 'round', borderColor: '#FFD700' }));
|
|
2178
2178
|
}
|
|
2179
2179
|
async licenseValidate(featureId) {
|
|
2180
2180
|
console.log(colors.info('Premium features available in Brain Cloud'));
|
|
@@ -2189,7 +2189,7 @@ export class Cortex {
|
|
|
2189
2189
|
console.log(boxen(`${emojis.lock} ${colors.brain('BRAIN CLOUD FEATURE')} ${emojis.atom}\n\n` +
|
|
2190
2190
|
`This feature is available in Brain Cloud!\n\n` +
|
|
2191
2191
|
`${colors.highlight('Setup: brainy cloud')}\n` +
|
|
2192
|
-
`${colors.dim('Learn more: https://
|
|
2192
|
+
`${colors.dim('Learn more: https://soulcraft.com/brain-cloud')}`, { padding: 1, borderStyle: 'round', borderColor: '#D67441' }));
|
|
2193
2193
|
}
|
|
2194
2194
|
return false;
|
|
2195
2195
|
}
|
|
@@ -2389,7 +2389,7 @@ export class Cortex {
|
|
|
2389
2389
|
]);
|
|
2390
2390
|
if (!accountResponse.hasAccount) {
|
|
2391
2391
|
console.log('\n' + boxen(`${emojis.sparkles} ${colors.brain('CREATE YOUR ACCOUNT')}\n\n` +
|
|
2392
|
-
`${colors.accent('◆')} Visit: ${colors.highlight('https://
|
|
2392
|
+
`${colors.accent('◆')} Visit: ${colors.highlight('https://soulcraft.com/brain-cloud')}\n` +
|
|
2393
2393
|
`${colors.accent('◆')} Click "Start Free Trial"\n` +
|
|
2394
2394
|
`${colors.accent('◆')} Get your API key\n` +
|
|
2395
2395
|
`${colors.accent('◆')} Return here to continue setup`, { padding: 1, borderStyle: 'round', borderColor: '#FFD700' }));
|
|
@@ -2432,7 +2432,7 @@ export class Cortex {
|
|
|
2432
2432
|
catch (error) {
|
|
2433
2433
|
spinner.fail('Setup failed');
|
|
2434
2434
|
console.error(colors.error('Error:'), error.message);
|
|
2435
|
-
console.log('\n' + colors.dim('Need help? Visit https://
|
|
2435
|
+
console.log('\n' + colors.dim('Need help? Visit https://soulcraft.com/brain-cloud/support'));
|
|
2436
2436
|
}
|
|
2437
2437
|
}
|
|
2438
2438
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Atomic Age Service Management Protocol
|
|
5
5
|
*/
|
|
6
6
|
import { BrainyData } from '../brainyData.js';
|
|
7
|
-
import { Cortex } from './cortex.js';
|
|
7
|
+
import { Cortex } from './cortex-legacy.js';
|
|
8
8
|
import * as fs from '../universal/fs.js';
|
|
9
9
|
import * as path from '../universal/path.js';
|
|
10
10
|
/**
|
package/dist/cortex.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cortex - The Brain's Central Orchestration System
|
|
3
|
+
*
|
|
4
|
+
* 🧠⚛️ The cerebral cortex that coordinates all augmentations
|
|
5
|
+
*
|
|
6
|
+
* This is the main export for the Cortex system. It provides the central
|
|
7
|
+
* coordination for all augmentations, managing their registration, execution,
|
|
8
|
+
* and pipeline orchestration.
|
|
9
|
+
*/
|
|
10
|
+
export { Cortex, cortex, ExecutionMode, PipelineOptions, AugmentationPipeline, augmentationPipeline } from './augmentationPipeline.js';
|
|
11
|
+
export type { BrainyAugmentations, IAugmentation, ISenseAugmentation, IConduitAugmentation, ICognitionAugmentation, IMemoryAugmentation, IPerceptionAugmentation, IDialogAugmentation, IActivationAugmentation, IWebSocketSupport, AugmentationResponse, AugmentationType } from './types/augmentations.js';
|
package/dist/cortex.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cortex - The Brain's Central Orchestration System
|
|
3
|
+
*
|
|
4
|
+
* 🧠⚛️ The cerebral cortex that coordinates all augmentations
|
|
5
|
+
*
|
|
6
|
+
* This is the main export for the Cortex system. It provides the central
|
|
7
|
+
* coordination for all augmentations, managing their registration, execution,
|
|
8
|
+
* and pipeline orchestration.
|
|
9
|
+
*/
|
|
10
|
+
// Re-export from augmentationPipeline (which contains the Cortex class)
|
|
11
|
+
export { Cortex, cortex, ExecutionMode,
|
|
12
|
+
// Backward compatibility
|
|
13
|
+
AugmentationPipeline, augmentationPipeline } from './augmentationPipeline.js';
|
|
14
|
+
//# sourceMappingURL=cortex.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Brainy
|
|
3
|
-
* A vector
|
|
2
|
+
* Brainy - Your AI-Powered Second Brain
|
|
3
|
+
* 🧠⚛️ A multi-dimensional database with vector, graph, and facet storage
|
|
4
|
+
*
|
|
5
|
+
* Core Components:
|
|
6
|
+
* - BrainyData: The brain (core database)
|
|
7
|
+
* - Cortex: The orchestrator (manages augmentations)
|
|
8
|
+
* - NeuralImport: AI-powered data understanding
|
|
9
|
+
* - Augmentations: Brain capabilities (plugins)
|
|
4
10
|
*/
|
|
5
11
|
import { BrainyData, BrainyDataConfig } from './brainyData.js';
|
|
6
12
|
export { BrainyData };
|
|
7
13
|
export type { BrainyDataConfig };
|
|
14
|
+
export { Cortex, cortex } from './cortex.js';
|
|
15
|
+
export { NeuralImport } from './cortex/neuralImport.js';
|
|
16
|
+
export type { NeuralAnalysisResult, DetectedEntity, DetectedRelationship, NeuralInsight, NeuralImportOptions } from './cortex/neuralImport.js';
|
|
8
17
|
import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics } from './utils/index.js';
|
|
9
18
|
export { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics };
|
|
10
19
|
import { UniversalSentenceEncoder, TransformerEmbedding, createEmbeddingFunction, defaultEmbeddingFunction, batchEmbed, embeddingFunctions } from './utils/embedding.js';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Brainy
|
|
3
|
-
* A vector
|
|
2
|
+
* Brainy - Your AI-Powered Second Brain
|
|
3
|
+
* 🧠⚛️ A multi-dimensional database with vector, graph, and facet storage
|
|
4
|
+
*
|
|
5
|
+
* Core Components:
|
|
6
|
+
* - BrainyData: The brain (core database)
|
|
7
|
+
* - Cortex: The orchestrator (manages augmentations)
|
|
8
|
+
* - NeuralImport: AI-powered data understanding
|
|
9
|
+
* - Augmentations: Brain capabilities (plugins)
|
|
4
10
|
*/
|
|
5
|
-
// No setup needed - using clean ONNX Runtime with Transformers.js
|
|
6
11
|
// Export main BrainyData class and related types
|
|
7
12
|
import { BrainyData } from './brainyData.js';
|
|
8
13
|
export { BrainyData };
|
|
14
|
+
// Export Cortex (the orchestrator)
|
|
15
|
+
export { Cortex, cortex } from './cortex.js';
|
|
16
|
+
// Export Neural Import (AI data understanding)
|
|
17
|
+
export { NeuralImport } from './cortex/neuralImport.js';
|
|
18
|
+
// Augmentation types are already exported later in the file
|
|
9
19
|
// Export distance functions for convenience
|
|
10
20
|
import { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics } from './utils/index.js';
|
|
11
21
|
export { euclideanDistance, cosineDistance, manhattanDistance, dotProductDistance, getStatistics };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"description": "Multi-Dimensional AI Database - Vector similarity, graph relationships, metadata facets with HNSW indexing and OPFS storage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
"build:browser": "npm run build && vite build --config vite.browser.config.ts",
|
|
92
92
|
"build:framework": "tsc",
|
|
93
93
|
"start": "node dist/framework.js",
|
|
94
|
-
"demo": "npm run build && cd demo/brainy-angular-demo && npm run build && npm run serve",
|
|
95
94
|
"prepare": "npm run build",
|
|
96
95
|
"test": "vitest run",
|
|
97
96
|
"test:memory": "node --max-old-space-size=4096 --expose-gc ./node_modules/vitest/vitest.mjs run",
|
|
@@ -158,13 +157,13 @@
|
|
|
158
157
|
"publishConfig": {
|
|
159
158
|
"access": "public"
|
|
160
159
|
},
|
|
161
|
-
"homepage": "https://github.com/
|
|
160
|
+
"homepage": "https://github.com/soulcraftlabs/brainy",
|
|
162
161
|
"bugs": {
|
|
163
|
-
"url": "https://github.com/
|
|
162
|
+
"url": "https://github.com/soulcraftlabs/brainy/issues"
|
|
164
163
|
},
|
|
165
164
|
"repository": {
|
|
166
165
|
"type": "git",
|
|
167
|
-
"url": "git+https://github.com/
|
|
166
|
+
"url": "git+https://github.com/soulcraftlabs/brainy.git"
|
|
168
167
|
},
|
|
169
168
|
"files": [
|
|
170
169
|
"dist/**/*.js",
|