@soulcraft/brainy 3.22.0 β 3.23.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.
- package/CHANGELOG.md +4 -0
- package/README.md +2 -51
- package/dist/brainy.d.ts +0 -18
- package/dist/brainy.js +0 -24
- package/dist/cli/index.js +0 -38
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/package.json +1 -1
- package/dist/cli/commands/conversation.d.ts +0 -22
- package/dist/cli/commands/conversation.js +0 -538
- package/dist/conversation/conversationManager.d.ts +0 -176
- package/dist/conversation/conversationManager.js +0 -666
- package/dist/conversation/index.d.ts +0 -8
- package/dist/conversation/index.js +0 -8
- package/dist/conversation/types.d.ts +0 -231
- package/dist/conversation/types.js +0 -8
- package/dist/mcp/conversationTools.d.ts +0 -88
- package/dist/mcp/conversationTools.js +0 -470
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.23.0](https://github.com/soulcraftlabs/brainy/compare/v3.22.0...v3.23.0) (2025-10-04)
|
|
6
|
+
|
|
7
|
+
- refactor: streamline core API surface
|
|
8
|
+
|
|
5
9
|
### [3.22.0](https://github.com/soulcraftlabs/brainy/compare/v3.21.0...v3.22.0) (2025-10-01)
|
|
6
10
|
|
|
7
11
|
- feat: add intelligent import for CSV, Excel, and PDF files (814cbb4)
|
package/README.md
CHANGED
|
@@ -19,14 +19,6 @@
|
|
|
19
19
|
|
|
20
20
|
## π Key Features
|
|
21
21
|
|
|
22
|
-
### π¬ **Infinite Agent Memory**
|
|
23
|
-
|
|
24
|
-
- **Never Lose Context**: Conversations preserved with semantic search
|
|
25
|
-
- **Smart Context Retrieval**: Triple Intelligence finds relevant past work
|
|
26
|
-
- **Claude Code Integration**: One command (`brainy conversation setup`) enables infinite memory
|
|
27
|
-
- **Automatic Artifact Linking**: Code and files connected to conversations
|
|
28
|
-
- **Scales to Millions**: Messages indexed and searchable in <100ms
|
|
29
|
-
|
|
30
22
|
### π **NEW in 3.21.0: Enhanced Import & Neural Processing**
|
|
31
23
|
|
|
32
24
|
- **π Progress Tracking**: Unified progress reporting with automatic time estimation
|
|
@@ -60,42 +52,6 @@
|
|
|
60
52
|
|
|
61
53
|
```bash
|
|
62
54
|
npm install @soulcraft/brainy
|
|
63
|
-
|
|
64
|
-
# For Claude Code infinite memory (optional):
|
|
65
|
-
brainy conversation setup
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### π¬ **Infinite Memory for Claude Code**
|
|
69
|
-
|
|
70
|
-
```javascript
|
|
71
|
-
// One-time setup:
|
|
72
|
-
// $ brainy conversation setup
|
|
73
|
-
|
|
74
|
-
// Claude Code now automatically:
|
|
75
|
-
// - Saves every conversation with embeddings
|
|
76
|
-
// - Retrieves relevant past context
|
|
77
|
-
// - Links code artifacts to conversations
|
|
78
|
-
// - Never loses context or momentum
|
|
79
|
-
|
|
80
|
-
// Use programmatically:
|
|
81
|
-
import { Brainy } from '@soulcraft/brainy'
|
|
82
|
-
|
|
83
|
-
const brain = new Brainy()
|
|
84
|
-
await brain.init()
|
|
85
|
-
|
|
86
|
-
// Save conversations
|
|
87
|
-
await brain.conversation.saveMessage(
|
|
88
|
-
"How do I implement JWT authentication?",
|
|
89
|
-
"user",
|
|
90
|
-
{ conversationId: "conv_123" }
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
// Get relevant context (semantic + temporal + graph)
|
|
94
|
-
const context = await brain.conversation.getRelevantContext(
|
|
95
|
-
"JWT token validation",
|
|
96
|
-
{ limit: 10, includeArtifacts: true }
|
|
97
|
-
)
|
|
98
|
-
// Returns: Ranked messages, linked code, similar conversations
|
|
99
55
|
```
|
|
100
56
|
|
|
101
57
|
### π― **True Zero Configuration**
|
|
@@ -675,7 +631,7 @@ const similar = await brain.search(existingContent, {
|
|
|
675
631
|
### AI Memory Layer with Context
|
|
676
632
|
|
|
677
633
|
```javascript
|
|
678
|
-
// Store
|
|
634
|
+
// Store messages with relationships
|
|
679
635
|
const userId = await brain.add("User 123", {
|
|
680
636
|
nounType: NounType.User,
|
|
681
637
|
tier: "premium"
|
|
@@ -692,7 +648,7 @@ const topicId = await brain.add("Product Support", {
|
|
|
692
648
|
category: "support"
|
|
693
649
|
})
|
|
694
650
|
|
|
695
|
-
// Link
|
|
651
|
+
// Link message elements
|
|
696
652
|
await brain.relate(userId, messageId, "sent")
|
|
697
653
|
await brain.relate(messageId, topicId, "about")
|
|
698
654
|
|
|
@@ -916,11 +872,6 @@ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
|
916
872
|
|
|
917
873
|
## π Documentation
|
|
918
874
|
|
|
919
|
-
### Infinite Agent Memory π¬
|
|
920
|
-
- [Conversation API Overview](docs/conversation/README.md) - **NEW!** Complete conversation management guide
|
|
921
|
-
- [MCP Integration for Claude Code](docs/conversation/MCP_INTEGRATION.md) - **NEW!** One-command setup
|
|
922
|
-
- [API Reference](docs/conversation/API_REFERENCE.md) - **NEW!** Full API documentation
|
|
923
|
-
|
|
924
875
|
### Framework Integration
|
|
925
876
|
- [Framework Integration Guide](docs/guides/framework-integration.md) - Complete framework setup guide
|
|
926
877
|
- [Next.js Integration](docs/guides/nextjs-integration.md) - React and Next.js examples
|
package/dist/brainy.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export declare class Brainy<T = any> implements BrainyInterface<T> {
|
|
|
38
38
|
private _extractor?;
|
|
39
39
|
private _tripleIntelligence?;
|
|
40
40
|
private _vfs?;
|
|
41
|
-
private _conversation?;
|
|
42
41
|
private initialized;
|
|
43
42
|
private dimensions?;
|
|
44
43
|
constructor(config?: BrainyConfig);
|
|
@@ -645,23 +644,6 @@ export declare class Brainy<T = any> implements BrainyInterface<T> {
|
|
|
645
644
|
* Virtual File System API - Knowledge Operating System
|
|
646
645
|
*/
|
|
647
646
|
vfs(): VirtualFileSystem;
|
|
648
|
-
/**
|
|
649
|
-
* Conversation Manager API - Infinite Agent Memory
|
|
650
|
-
*
|
|
651
|
-
* Provides conversation and context management for AI agents:
|
|
652
|
-
* - Save and retrieve conversation messages
|
|
653
|
-
* - Semantic search across conversation history
|
|
654
|
-
* - Smart context retrieval with relevance ranking
|
|
655
|
-
* - Artifact management (code, files, documents)
|
|
656
|
-
* - Conversation themes and clustering
|
|
657
|
-
*
|
|
658
|
-
* @returns ConversationManager instance
|
|
659
|
-
* @example
|
|
660
|
-
* const conv = brain.conversation
|
|
661
|
-
* await conv.saveMessage("How do I implement auth?", "user", { conversationId: "conv_123" })
|
|
662
|
-
* const context = await conv.getRelevantContext("authentication implementation")
|
|
663
|
-
*/
|
|
664
|
-
conversation(): any;
|
|
665
647
|
/**
|
|
666
648
|
* Data Management API - backup, restore, import, export
|
|
667
649
|
*/
|
package/dist/brainy.js
CHANGED
|
@@ -1428,30 +1428,6 @@ export class Brainy {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
return this._vfs;
|
|
1430
1430
|
}
|
|
1431
|
-
/**
|
|
1432
|
-
* Conversation Manager API - Infinite Agent Memory
|
|
1433
|
-
*
|
|
1434
|
-
* Provides conversation and context management for AI agents:
|
|
1435
|
-
* - Save and retrieve conversation messages
|
|
1436
|
-
* - Semantic search across conversation history
|
|
1437
|
-
* - Smart context retrieval with relevance ranking
|
|
1438
|
-
* - Artifact management (code, files, documents)
|
|
1439
|
-
* - Conversation themes and clustering
|
|
1440
|
-
*
|
|
1441
|
-
* @returns ConversationManager instance
|
|
1442
|
-
* @example
|
|
1443
|
-
* const conv = brain.conversation
|
|
1444
|
-
* await conv.saveMessage("How do I implement auth?", "user", { conversationId: "conv_123" })
|
|
1445
|
-
* const context = await conv.getRelevantContext("authentication implementation")
|
|
1446
|
-
*/
|
|
1447
|
-
conversation() {
|
|
1448
|
-
if (!this._conversation) {
|
|
1449
|
-
// Lazy-load ConversationManager to avoid circular dependencies
|
|
1450
|
-
const { ConversationManager } = require('./conversation/conversationManager.js');
|
|
1451
|
-
this._conversation = new ConversationManager(this);
|
|
1452
|
-
}
|
|
1453
|
-
return this._conversation;
|
|
1454
|
-
}
|
|
1455
1431
|
/**
|
|
1456
1432
|
* Data Management API - backup, restore, import, export
|
|
1457
1433
|
*/
|
package/dist/cli/index.js
CHANGED
|
@@ -11,7 +11,6 @@ import { coreCommands } from './commands/core.js';
|
|
|
11
11
|
import { utilityCommands } from './commands/utility.js';
|
|
12
12
|
import { vfsCommands } from './commands/vfs.js';
|
|
13
13
|
import { dataCommands } from './commands/data.js';
|
|
14
|
-
import conversationCommand from './commands/conversation.js';
|
|
15
14
|
import { readFileSync } from 'fs';
|
|
16
15
|
import { fileURLToPath } from 'url';
|
|
17
16
|
import { dirname, join } from 'path';
|
|
@@ -144,43 +143,6 @@ program
|
|
|
144
143
|
.option('--dimensions <number>', '2D or 3D', '2')
|
|
145
144
|
.option('-o, --output <file>', 'Output file')
|
|
146
145
|
.action(neuralCommands.visualize);
|
|
147
|
-
// ===== Conversation Commands (Infinite Memory) =====
|
|
148
|
-
program
|
|
149
|
-
.command('conversation')
|
|
150
|
-
.alias('conv')
|
|
151
|
-
.description('π¬ Infinite agent memory and context management')
|
|
152
|
-
.addCommand(new Command('setup')
|
|
153
|
-
.description('Set up MCP server for Claude Code integration')
|
|
154
|
-
.action(async () => {
|
|
155
|
-
await conversationCommand.handler({ action: 'setup', _: [] });
|
|
156
|
-
}))
|
|
157
|
-
.addCommand(new Command('search')
|
|
158
|
-
.description('Search messages across conversations')
|
|
159
|
-
.requiredOption('-q, --query <query>', 'Search query')
|
|
160
|
-
.option('-c, --conversation-id <id>', 'Filter by conversation')
|
|
161
|
-
.option('-r, --role <role>', 'Filter by role')
|
|
162
|
-
.option('-l, --limit <number>', 'Maximum results', '10')
|
|
163
|
-
.action(async (options) => {
|
|
164
|
-
await conversationCommand.handler({ action: 'search', ...options, _: [] });
|
|
165
|
-
}))
|
|
166
|
-
.addCommand(new Command('context')
|
|
167
|
-
.description('Get relevant context for a query')
|
|
168
|
-
.requiredOption('-q, --query <query>', 'Context query')
|
|
169
|
-
.option('-l, --limit <number>', 'Maximum messages', '10')
|
|
170
|
-
.action(async (options) => {
|
|
171
|
-
await conversationCommand.handler({ action: 'context', ...options, _: [] });
|
|
172
|
-
}))
|
|
173
|
-
.addCommand(new Command('thread')
|
|
174
|
-
.description('Get full conversation thread')
|
|
175
|
-
.requiredOption('-c, --conversation-id <id>', 'Conversation ID')
|
|
176
|
-
.action(async (options) => {
|
|
177
|
-
await conversationCommand.handler({ action: 'thread', ...options, _: [] });
|
|
178
|
-
}))
|
|
179
|
-
.addCommand(new Command('stats')
|
|
180
|
-
.description('Show conversation statistics')
|
|
181
|
-
.action(async () => {
|
|
182
|
-
await conversationCommand.handler({ action: 'stats', _: [] });
|
|
183
|
-
}));
|
|
184
146
|
// ===== VFS Commands (Subcommand Group) =====
|
|
185
147
|
program
|
|
186
148
|
.command('vfs')
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,3 @@ import { BrainyMCPAdapter, MCPAugmentationToolset, BrainyMCPService } from './mc
|
|
|
56
56
|
import { MCPRequest, MCPResponse, MCPDataAccessRequest, MCPToolExecutionRequest, MCPSystemInfoRequest, MCPAuthenticationRequest, MCPRequestType, MCPServiceOptions, MCPTool, MCP_VERSION } from './types/mcpTypes.js';
|
|
57
57
|
export { BrainyMCPAdapter, MCPAugmentationToolset, BrainyMCPService, MCPRequestType, MCP_VERSION };
|
|
58
58
|
export type { MCPRequest, MCPResponse, MCPDataAccessRequest, MCPToolExecutionRequest, MCPSystemInfoRequest, MCPAuthenticationRequest, MCPServiceOptions, MCPTool };
|
|
59
|
-
export { ConversationManager, createConversationManager } from './conversation/index.js';
|
|
60
|
-
export { MCPConversationToolset, createConversationToolset } from './mcp/conversationTools.js';
|
|
61
|
-
export type { MessageRole, ProblemSolvingPhase, ConversationMessage, ConversationMessageMetadata, ConversationThread, ConversationThreadMetadata, ConversationContext, RankedMessage, SaveMessageOptions, ContextRetrievalOptions, ConversationSearchOptions, ConversationSearchResult, ConversationTheme, ArtifactOptions, ConversationStats, CompactionOptions, CompactionResult } from './conversation/types.js';
|
package/dist/index.js
CHANGED
|
@@ -118,7 +118,4 @@ export {
|
|
|
118
118
|
BrainyMCPAdapter, MCPAugmentationToolset, BrainyMCPService,
|
|
119
119
|
// MCP types
|
|
120
120
|
MCPRequestType, MCP_VERSION };
|
|
121
|
-
// Export Conversation API (Infinite Agent Memory)
|
|
122
|
-
export { ConversationManager, createConversationManager } from './conversation/index.js';
|
|
123
|
-
export { MCPConversationToolset, createConversationToolset } from './mcp/conversationTools.js';
|
|
124
121
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "Universal Knowledge Protocolβ’ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns Γ 40 verbs for infinite expressiveness.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* π¬ Conversation CLI Commands
|
|
3
|
-
*
|
|
4
|
-
* CLI interface for infinite agent memory and conversation management
|
|
5
|
-
*/
|
|
6
|
-
interface CommandArguments {
|
|
7
|
-
action?: string;
|
|
8
|
-
conversationId?: string;
|
|
9
|
-
query?: string;
|
|
10
|
-
role?: string;
|
|
11
|
-
limit?: number;
|
|
12
|
-
format?: string;
|
|
13
|
-
output?: string;
|
|
14
|
-
_: string[];
|
|
15
|
-
}
|
|
16
|
-
export declare const conversationCommand: {
|
|
17
|
-
command: string;
|
|
18
|
-
describe: string;
|
|
19
|
-
builder: (yargs: any) => any;
|
|
20
|
-
handler: (argv: CommandArguments) => Promise<void>;
|
|
21
|
-
};
|
|
22
|
-
export default conversationCommand;
|