@soulcraft/brainy 3.12.0 → 3.14.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.
@@ -283,6 +283,22 @@ export interface IVirtualFileSystem {
283
283
  recursive?: boolean;
284
284
  }): Promise<void>;
285
285
  readdir(path: string, options?: ReaddirOptions): Promise<string[] | VFSDirent[]>;
286
+ getDirectChildren(path: string): Promise<VFSEntity[]>;
287
+ getTreeStructure(path: string, options?: {
288
+ maxDepth?: number;
289
+ includeHidden?: boolean;
290
+ sort?: 'name' | 'modified' | 'size';
291
+ }): Promise<any>;
292
+ getDescendants(path: string, options?: {
293
+ includeAncestor?: boolean;
294
+ type?: 'file' | 'directory';
295
+ }): Promise<VFSEntity[]>;
296
+ inspect(path: string): Promise<{
297
+ node: VFSEntity;
298
+ children: VFSEntity[];
299
+ parent: VFSEntity | null;
300
+ stats: VFSStats;
301
+ }>;
286
302
  stat(path: string): Promise<VFSStats>;
287
303
  lstat(path: string): Promise<VFSStats>;
288
304
  exists(path: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/brainy",
3
- "version": "3.12.0",
3
+ "version": "3.14.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",