UNPKG

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 2.01 kB
"use strict"; /** * PackFS - Secure filesystem access for LLM agent frameworks */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.createFileSystem = createFileSystem; __exportStar(require("./core/index.js"), exports); __exportStar(require("./backends/index.js"), exports); __exportStar(require("./processors/index.js"), exports); __exportStar(require("./semantic/index.js"), exports); __exportStar(require("./integrations/index.js"), exports); __exportStar(require("./enhanced/index.js"), exports); __exportStar(require("./compression/index.js"), exports); __exportStar(require("./storage/index.js"), exports); // Convenience exports for common use cases const compatibility_adapter_js_1 = require("./semantic/compatibility-adapter.js"); const disk_semantic_backend_js_1 = require("./semantic/disk-semantic-backend.js"); /** * Convenience factory function to create an enhanced filesystem with disk backend * This simplifies the common use case of creating a filesystem for a directory */ function createFileSystem(rootPath, _options) { // Create semantic backend directly with path const semanticBackend = new disk_semantic_backend_js_1.DiskSemanticBackend(rootPath); return (0, compatibility_adapter_js_1.createEnhancedFileSystem)(semanticBackend); } //# sourceMappingURL=index.js.map