ProjectOS / packages /knowledge-fabric /src /FrontierService.ts
AnthropicallyHuggingFaces's picture
Sync full ProjectOS monorepo from GitHub 7f633f5
a8f4b72 verified
Raw History Blame Contribute Delete
486 Bytes
import { FrontierRepository, type FrontierItemInput } from '@projectos/storage-fabric/sqlite/repositories';
import type { DatabaseSync } from 'node:sqlite';
export class FrontierService {
readonly repository: FrontierRepository;
constructor(db: DatabaseSync, repository = new FrontierRepository(db)) { this.repository = repository; }
create(item: FrontierItemInput) { return this.repository.create(item); }
get(frontierId: string) { return this.repository.get(frontierId); }
}