UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

69 lines 2.1 kB
/** * Database Cleanup Tool - Comprehensive Invalid Model Entry Removal * * This tool provides a robust, production-ready cleanup system for removing * invalid model entries from the OpenRouter models database and updating * pipeline profiles that reference removed models. */ import { z } from "zod"; export interface CleanupResult { validModels: string[]; invalidModels: string[]; removedModels: string[]; updatedProfiles: Array<{ id: string; name: string; changes: { [stage: string]: { from: string; to: string; }; }; }>; errors: string[]; stats: { totalModelsChecked: number; modelsRemoved: number; profilesUpdated: number; executionTimeMs: number; }; } export interface ModelValidationResult { modelId: string; isValid: boolean; error?: string; provider?: string; name?: string; } /** * Schema for the cleanup models tool */ export declare const CleanupModelsSchema: z.ZodObject<{ dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { timeout: number; dryRun: boolean; force: boolean; batchSize: number; }, { timeout?: number | undefined; dryRun?: boolean | undefined; force?: boolean | undefined; batchSize?: number | undefined; }>; /** * Main cleanup function */ export declare function runDatabaseCleanup(args: z.infer<typeof CleanupModelsSchema>): Promise<CleanupResult>; /** * CLI tool function for the cleanup command */ export declare function runCleanupModelsTool(args: z.infer<typeof CleanupModelsSchema>): Promise<{ result: string; }>; export declare const cleanupModelsToolName = "cleanup_models"; export declare const cleanupModelsToolDescription = "Remove invalid model entries and update affected pipeline profiles"; //# sourceMappingURL=database-cleanup.d.ts.map