feat: complete VFS with Knowledge Layer integration

- Add importFile() method for single file imports
- Implement entity helper methods (linkEntities, findEntityOccurrences)
- Fix critical embedding tokenizer bug (char.charCodeAt error)
- Fix removeRelationship to actually remove using brain.unrelate()
- Add setMetadata/getMetadata methods
- Fix GitBridge to query real relationships and events
- Enable background Knowledge Layer processing
- Rewrite README to emphasize knowledge over files
- Add comprehensive VFS documentation (core, knowledge layer, examples)
- Add complete test suite covering all VFS methods

This completes the VFS implementation with full Knowledge Layer support,
enabling files as living knowledge that understand themselves, evolve
over time, and connect to everything related.
This commit is contained in:
David Snelling 2025-09-25 10:47:44 -07:00
parent b3c4f348ab
commit 581f9906fd
17 changed files with 2441 additions and 352 deletions

View file

@ -426,6 +426,8 @@ export interface IVirtualFileSystem {
getTodos(path: string): Promise<VFSTodo[] | undefined>
setTodos(path: string, todos: VFSTodo[]): Promise<void>
addTodo(path: string, todo: VFSTodo): Promise<void>
getMetadata(path: string): Promise<VFSMetadata | undefined>
setMetadata(path: string, metadata: Partial<VFSMetadata>): Promise<void>
// Streaming (returns Node.js compatible streams)
createReadStream(path: string, options?: ReadStreamOptions): NodeJS.ReadableStream