feat(smartfs): Integrate @push.rocks/smartfs and wire SmartFileFactory.nodeFs to return a real SmartFs instance

This commit is contained in:
2025-11-29 17:42:44 +00:00
parent ff620acece
commit 055b78e5ea
6 changed files with 15 additions and 14 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartfile',
version: '13.0.1',
version: '13.1.0',
description: 'High-level file representation classes (SmartFile, StreamFile, VirtualDirectory) for efficient in-memory file management in Node.js using TypeScript. Works seamlessly with @push.rocks/smartfs for filesystem operations.'
}

View File

@@ -14,9 +14,7 @@ export class SmartFileFactory {
* Creates a default factory using Node.js filesystem provider
*/
public static nodeFs(): SmartFileFactory {
// Temporarily using a placeholder - will be replaced with actual SmartFs initialization
// const smartFs = new SmartFs(new SmartFsProviderNode());
const smartFs = null; // Placeholder
const smartFs = new plugins.smartfs.SmartFs(new plugins.smartfs.SmartFsProviderNode());
return new SmartFileFactory(smartFs);
}

View File

@@ -10,6 +10,7 @@ export { fs, fsPromises, path, stream };
import * as lik from '@push.rocks/lik';
import * as smartfileInterfaces from '@push.rocks/smartfile-interfaces';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartfs from '@push.rocks/smartfs';
import * as smarthash from '@push.rocks/smarthash';
import * as smartjson from '@push.rocks/smartjson';
import * as smartmime from '@push.rocks/smartmime';
@@ -22,6 +23,7 @@ export {
lik,
smartfileInterfaces,
smartdelay,
smartfs,
smarthash,
smartjson,
smartmime,