loccon
Version:
A simple local context storage and management tool with CLI and web interfaces. Store, search, and organize code snippets, notes, and development contexts with sharded JSON storage.
18 lines • 828 B
TypeScript
import { StorageManager } from './storage';
import { ContextEntry, SearchResult } from '../types';
export declare class ContextManager {
private storage;
constructor(storage: StorageManager);
static create(customStoragePath?: string): Promise<ContextManager>;
add(tag: string, content: string, categories?: string[]): Promise<void>;
read(tag: string): Promise<ContextEntry | null>;
update(tag: string, content: string, categories?: string[]): Promise<void>;
remove(tag: string): Promise<boolean>;
list(): Promise<string[]>;
getAll(): Promise<Record<string, ContextEntry>>;
search(query: string, useFuzzy?: boolean): Promise<SearchResult[]>;
exists(tag: string): Promise<boolean>;
getStoragePath(): string;
rebuildIndex(): Promise<void>;
}
//# sourceMappingURL=context.d.ts.map