/** * GlobalSchemaView (v2.18) * * Parallel-fetch schema for all enabled profiles, merged by profile name. */ import type { ProfileManager } from './profile-manager.js'; import type { ProfileRole } from './profile-manager.js'; export interface ProfileSchema { name: string; type: string; role: ProfileRole; tables: Array<{ schema: string; name: string; columns: Array<{ name: string; type: string; nullable: boolean; comment?: string; }>; primaryKey: string[]; foreignKeys: unknown[]; indexes: unknown[]; comment?: string; }>; /** * v5.0.1 Bug N3: 当 loadProfile 或 getSchema 失败时,把错误消息推到 warnings。 * 之前 catch 块静默吞掉所有错误返回 tables:[]。现在 LLM 能在 warnings 看到根因。 */ warnings?: string[]; } export interface GlobalSchemaView { generatedAt: string; profiles: ProfileSchema[]; } export declare function buildGlobalSchemaView(pm: ProfileManager): Promise; //# sourceMappingURL=global-schema-view.d.ts.map