Contract · @openagentry/core
Each category is a small TypeScript interface. Methods are total —
every failure throws a structured AgentryError
with a stable code, a phase, and a suggested fix.
// @openagentry/core
export interface DatabaseAdapter {
readonly category: 'db';
readonly id: string;
createInstance(opts): Promise<DatabaseInstance>;
destroyInstance(i, confirm): Promise<void>;
connectionString(i, env): Promise<string>;
exportState(i): Promise<DatabaseStateBundle>;
importState(b): Promise<DatabaseInstance>;
}