packfs-core
Version:
Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.
41 lines • 1.91 kB
TypeScript
/**
* Memory-based semantic filesystem backend
* Implements the semantic interface using in-memory storage with vector indexing simulation
*/
import { SemanticFileSystemInterface } from './interface.js';
import { FileAccessIntent, FileAccessResult, ContentUpdateIntent, ContentUpdateResult, OrganizationIntent, OrganizationResult, DiscoveryIntent, DiscoveryResult, RemovalIntent, RemovalResult, WorkflowIntent, WorkflowResult, NaturalLanguageIntent, NaturalLanguageResult, SemanticConfig } from './types.js';
/**
* In-memory implementation of semantic filesystem
* Uses simulated vector indexing for semantic operations
*/
export declare class MemorySemanticBackend extends SemanticFileSystemInterface {
private files;
private semanticIndex;
constructor(config?: Partial<SemanticConfig>);
accessFile(intent: FileAccessIntent): Promise<FileAccessResult>;
updateContent(intent: ContentUpdateIntent): Promise<ContentUpdateResult>;
organizeFiles(intent: OrganizationIntent): Promise<OrganizationResult>;
discoverFiles(intent: DiscoveryIntent): Promise<DiscoveryResult>;
removeFiles(intent: RemovalIntent): Promise<RemovalResult>;
executeWorkflow(workflow: WorkflowIntent): Promise<WorkflowResult>;
interpretNaturalLanguage(intent: NaturalLanguageIntent): Promise<NaturalLanguageResult>;
private handleSingleFileAccess;
private performContentUpdate;
private findFilesByTarget;
private findBySemanticQuery;
private findByCriteria;
private findByPattern;
private moveFiles;
private copyFiles;
private groupFiles;
private listFiles;
private findFiles;
private searchContent;
private searchSemantic;
private searchIntegrated;
private extractKeywords;
private updateSemanticIndex;
private removeFromSemanticIndex;
private getDirectoryContents;
}
//# sourceMappingURL=memory-semantic-backend.d.ts.map