agentlang
Version:
The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans
26 lines • 856 B
JavaScript
/**
* Filesystem module exports
*/
export * from './interfaces.js';
import { createNodeFS } from './node-fs.js';
import { createLightningFS } from './lightning-fs.js';
/**
* Create the appropriate filesystem implementation based on environment
* @returns Promise resolving to appropriate filesystem implementation
*/
export async function createFS(options) {
// Check if we're in a browser or Node environment
if (typeof window === 'undefined') {
// Node.js environment
return createNodeFS();
}
else {
// Browser environment - use Lightning FS
return createLightningFS(options);
}
}
// Export the specific filesystem implementations
export { createNodeFS } from './node-fs.js';
export { createLightningFS } from './lightning-fs.js';
export * from './interfaces.js';
//# sourceMappingURL=index.js.map