feat: add VFS methods and fix documentation accuracy

- Add exportToJSON() for directory structure export
- Add searchEntities() for advanced entity filtering
- Add bulkWrite() for efficient batch operations
- Fix VFS documentation to accurately reflect implementation
- Add USER_FUNCTIONS.md with domain-specific templates
- Clarify Knowledge Layer augmentation pattern
- Correct GitBridge integration examples
This commit is contained in:
David Snelling 2025-09-25 12:12:20 -07:00
parent a4ed075e5f
commit 7730b88618
6 changed files with 1150 additions and 131 deletions

View file

@ -7,7 +7,7 @@ Brainy's Virtual Filesystem (VFS) provides a POSIX-like filesystem interface tha
## Quick Start
```typescript
import { Brainy, VirtualFileSystem } from '@soulcraft/brainy'
import { Brainy } from '@soulcraft/brainy'
// Initialize Brainy
const brain = new Brainy({
@ -16,7 +16,7 @@ const brain = new Brainy({
await brain.init()
// Create VFS instance
const vfs = new VirtualFileSystem(brain)
const vfs = brain.vfs()
await vfs.init()
// Use like any filesystem
@ -140,8 +140,8 @@ await vfs.rmdir('/projects/my-app', { recursive: true })
// Rename/move file or directory
await vfs.rename(oldPath: string, newPath: string): Promise<void>
// Copy file (Note: Implementation needed)
// await vfs.copy(src: string, dest: string, options?: CopyOptions): Promise<void>
// Copy file or directory
await vfs.copy(src: string, dest: string, options?: CopyOptions): Promise<void>
```
**Example:**