UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

27 lines 1.31 kB
/** * Semantic enrichment sidecar store. * * Storage: * .aiwg/index/semantic/<sanitized-id>.json * * Sanitization: replace `/` with `__` and any non-[a-zA-Z0-9._-] with `_`. * Preserves `.md`, `.ts`, etc. extensions readably while keeping filesystem-safe. * * @implements #1204 */ import type { EnrichmentSummary, SemanticFields } from './types.js'; export declare function resolveSemanticRoot(cwd?: string): string; export declare function sanitizeId(id: string): string; export declare function has(root: string, id: string): boolean; export declare function get(root: string, id: string): SemanticFields; export declare function put(root: string, id: string, fields: SemanticFields): string; export declare function remove(root: string, id: string): boolean; /** Drop ALL enrichment data — implements `aiwg index enrich --reset`. */ export declare function reset(root: string): { removed: number; }; /** Compute the content hash that would be stored as `enrichedHash`. */ export declare function computeContentHash(content: string | Buffer): string; /** List all enrichment entries with staleness flag (caller supplies current hashes). */ export declare function list(root: string, currentHashes: Record<string, string>, now?: Date): EnrichmentSummary[]; //# sourceMappingURL=store.d.ts.map