UNPKG

il2cpp-dump-analyzer-mcp

Version:

Agentic RAG system for analyzing IL2CPP dump.cs files from Unity games

70 lines (69 loc) 2.07 kB
import { IHashManager } from './supabase-hash-manager'; /** * Manages file hashes to prevent duplicate processing of dump.cs files */ export declare class HashManager implements IHashManager { private hashFilePath; private processedHashes; constructor(hashFilePath?: string); /** * Calculate SHA-256 hash of a file * @param filePath Path to the file * @returns SHA-256 hash as hex string */ calculateFileHash(filePath: string): string; /** * Check if a file has already been processed * @param filePath Path to the dump.cs file * @returns true if file was already processed, false otherwise */ isFileProcessed(filePath: string): boolean; /** * Mark a file as processed by storing its hash * @param filePath Path to the dump.cs file * @returns The hash that was stored */ markFileAsProcessed(filePath: string): string; /** * Get the hash of a file without marking it as processed * @param filePath Path to the dump.cs file * @returns The SHA-256 hash of the file */ getFileHash(filePath: string): string; /** * Remove a hash from the processed list (useful for reprocessing) * @param filePath Path to the dump.cs file * @returns true if hash was removed, false if it wasn't found */ removeFileHash(filePath: string): boolean; /** * Clear all processed hashes */ clearAllHashes(): void; /** * Get all processed hashes * @returns Array of all stored hashes */ getAllHashes(): string[]; /** * Get the number of processed files * @returns Count of processed files */ getProcessedCount(): number; /** * Load hashes from the storage file */ private loadHashes; /** * Save hashes to the storage file */ private saveHashes; /** * Get information about the hash storage * @returns Object with hash file path and count */ getInfo(): { hashFilePath: string; processedCount: number; }; }