var y=Object.defineProperty;var z=(f)=>f;function A(f,j){this[f]=z.bind(null,j)}var H=(f,j)=>{for(var k in j)y(f,k,{get:j[k],enumerable:!0,configurable:!0,set:A.bind(j,k)})};var J=(f,j)=>()=>(f&&(j=f(f=0)),j);import{EmbeddingService as B,VectorIndexer as D}from"@contractspec/lib.knowledge/ingestion";import{ContextSnapshotPipeline as F,PostgresContextStorage as G}from"@contractspec/module.context-storage";function O(f){let j=new G({database:f.database,schema:f.schema,createTablesIfMissing:f.createTablesIfMissing}),k=f.embeddingProvider?new B(f.embeddingProvider,f.embeddingBatchSize):void 0,q=f.vectorStoreProvider&&f.vectorIndex?new D(f.vectorStoreProvider,f.vectorIndex):void 0,w=new F({store:j,documentProcessor:f.documentProcessor,embeddingService:k,vectorIndexer:q});return{store:j,pipeline:w}}export{O as createContextStorageService};
