/** * SMI-866: Import validated skills to test database * * This script imports skills from a validated-skills.json file into the SQLite database, * builds the FTS5 search index, and generates an import report. * * Usage: * npx tsx packages/core/src/scripts/import-to-database.ts [input-file] [--db path] * * Arguments: * input-file Path to validated-skills.json (default: ./validated-skills.json) * --db Path to output database (default: packages/core/data/skills.db) * * Output: * - SQLite database with imported skills * - FTS5 search index populated * - data/import-report.json with statistics */ /** * Import report structure */ interface ImportReport { success: boolean; timestamp: string; inputFile: string; databasePath: string; stats: { inputCount: number; importedCount: number; skippedCount: number; duplicateCount: number; ftsIndexCount: number; qualityScoresCalculated: number; }; verification: { recordCountMatch: boolean; ftsIndexPopulated: boolean; allRequiredFieldsPresent: boolean; orphanedRecords: number; searchTestPassed: boolean; searchTestQuery: string; searchTestResults: number; }; errors: Array<{ skill: string; error: string; }>; warnings: string[]; duration: number; } /** * Import validated skills to the database */ export declare function importToDatabase(inputFile: string, dbPath: string): Promise; /** * Save import report to file */ export declare function saveReport(report: ImportReport, outputPath: string): void; export {}; //# sourceMappingURL=import-to-database.d.ts.map