UNPKG

cline-sdk

Version:

Comprehensive SDK for Cline - AI-powered development assistant with database integration, execution modes, and custom functions

66 lines 1.97 kB
/** * Database Schema Tool * * Allows the AI to inspect and understand database schemas, tables, and relationships */ import { PostgreSQLManager } from "../database/postgres-manager"; export interface DatabaseSchemaToolInput { action: "listSchemas" | "listTables" | "describeTable" | "getRelationships" | "searchTables" | "getContext"; schemaName?: string; tableName?: string; searchTerm?: string; includeData?: boolean; } export interface DatabaseSchemaToolResult { success: boolean; data?: any; error?: string; executionTime: number; context?: string; } export declare class DatabaseSchemaTool { private dbManager; constructor(dbManager: PostgreSQLManager); execute(input: DatabaseSchemaToolInput): Promise<DatabaseSchemaToolResult>; private listSchemas; private listTables; private describeTable; private getTableRelationships; private getRelationships; private searchTables; private getFullContext; private getTableSummary; getDefinition(): { name: string; description: string; inputSchema: { type: string; properties: { action: { type: string; description: string; enum: string[]; }; schemaName: { type: string; description: string; }; tableName: { type: string; description: string; }; searchTerm: { type: string; description: string; }; includeData: { type: string; description: string; default: boolean; }; }; required: string[]; }; }; } //# sourceMappingURL=database-schema-tool.d.ts.map