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
30 lines • 1.4 kB
TypeScript
/**
* View definition + result filesystem store.
*
* Layout:
* .aiwg/index/views/
* ├── <name>.yaml # definition
* └── results/
* ├── <name>.json # last computed result
* └── <name>.meta.json # freshness metadata
*
* @implements #1207
*/
import type { ViewDefinition, ViewResult, ViewResultMeta, ViewSummary } from './types.js';
export declare function resolveViewsRoot(cwd?: string): string;
/** Persist a definition; creates the views directory if needed. */
export declare function putDefinition(root: string, def: ViewDefinition): string;
/** Read a definition by name. Throws on missing or invalid. */
export declare function getDefinition(root: string, name: string): ViewDefinition;
/** Remove a definition and its results. */
export declare function removeView(root: string, name: string): {
defRemoved: boolean;
resultRemoved: boolean;
};
/** List all views with freshness summary. */
export declare function listViews(root: string, now?: Date): ViewSummary[];
/** Read a view's stored result. Throws on missing. */
export declare function getResult(root: string, name: string): ViewResult;
/** Persist a view result + metadata atomically. */
export declare function putResult(root: string, name: string, result: unknown, meta: ViewResultMeta): void;
//# sourceMappingURL=store.d.ts.map