📚 Function & Symbol Inventory (AST Ground Truth)¶
Complete abstract syntax tree (AST) symbol extraction covering every class, method, function, and parameter signature across the repository with exact file and line citations.
-
:material-cog: Core Engine
-
:material-magnify-scan: Analyzers & Scanners
-
:material-tools: System Engines (62 Modules)
-
:material-view-dashboard: Presentation & UI
-
:material-folder-multiple: Nexus Explorer (VFS & Rust FFI)
-
:material-test-tube: Verification & Test Suites
src — 359 files¶
src/cortex_unified/init.py¶
Module: Cortex Cleaner - safe, fast cleanup and system-care toolkit.
- getattr(name) (L62)
- dir() (L82)
src/cortex_unified/main.py¶
Module: python -m cortex_unified entry point.
- main() (L24)
src/cortex_unified/accessibility/init.py¶
Module: Accessibility module for Cortex Cleaner.
- setup_accessibility(widget) (L25)
- setup_full_accessibility(widget, enable_shortcuts, enable_announcements) (L35)
src/cortex_unified/accessibility/keyboard_handler.py¶
Module: Keyboard-only navigation: focus cycling, tab order, and app shortcuts.
- class KeyboardHandler (L20)
- init(self, widget) (L27)
- setup_keyboard_navigation(self) (L39)
- _find_focusable_widgets(self) (L60)
- find_widgets(parent) (L71)
- _setup_tab_order(self) (L85)
- handle_tab_navigation(self, event) (L99)
- setup_shortcuts(self, shortcuts) (L120)
- setup_default_shortcuts(self) (L136)
- _trigger_scan(self) (L156)
- _trigger_clean(self) (L166)
- _open_settings(self) (L176)
- _refresh(self) (L182)
- _select_all(self) (L192)
- _show_help(self) (L199)
- _quit_application(self) (L206)
- _cancel_operation(self) (L211)
- _activate_focused(self) (L221)
- _toggle_selection(self) (L227)
- eventFilter(self, obj, event) (L235)
- _handle_arrow_navigation(self, event) (L248)
- _navigate_with_arrows(self, key) (L261)
- add_widget_to_navigation(self, widget) (L281)
- remove_widget_from_navigation(self, widget) (L287)
- get_shortcut_info(self) (L294)
src/cortex_unified/accessibility/screen_reader.py¶
Module: Screen-reader affordances for Qt widget hierarchies.
- class ScreenReaderSupport (L34)
- init(self, widget) (L42)
- _init_platform_accessibility(self) (L53)
- add_aria_labels(self, elements) (L67)
- _generate_accessible_name(self, widget) (L96)
- _generate_accessible_description(self, widget) (L110)
- _get_accessible_role(self, widget) (L138)
- announce_changes(self, message) (L159)
- _announce_windows(self, message) (L181)
- _announce_macos(self, message) (L196)
- _announce_linux(self, message) (L203)
- setup_accessible_descriptions(self) (L210)
- _setup_live_regions(self) (L228)
- _setup_landmarks(self) (L242)
- set_focus_announcement(self, widget, message) (L256)
- on_focus_in() (L265)
- create_accessible_table(self, table_widget) (L275)
- create_accessible_tree(self, tree_widget) (L296)
- announce_progress(self, percentage, message) (L309)
- announce_error(self, error_message) (L317)
- announce_success(self, success_message) (L321)
- get_accessibility_info(self) (L325)
src/cortex_unified/accessibility/themes.py¶
Module: High contrast and accessibility themes for Cortex Cleaner.
- class AccessibilityThemes (L16)
- init(self) (L19)
- apply_high_contrast_theme(self, widget) (L30)
- apply_dark_theme(self, widget) (L79)
- apply_light_theme(self, widget) (L122)
- restore_default_theme(self, widget) (L165)
- get_available_themes(self) (L186)
- apply_theme(self, theme_name, widget) (L195)
- get_current_theme(self) (L210)
- is_high_contrast_enabled(self) (L214)
- get_theme_manager() (L221)
- apply_accessibility_theme(theme_name, widget) (L228)
src/cortex_unified/analyzers/init.py¶
Module: Analyzers module for Cortex Cleaner.
src/cortex_unified/analyzers/advanced_disk_analyzer.py¶
Module: Advanced Disk Analyzer — MFT fast scan, treemap/sunburst, cloud targets.
- class FileEntry (L105)
- class FolderNode (L122)
- add_file(self, rel_path, size, ext) (L132)
- to_treemap(self, max_depth) (L149)
- walk(node, depth) (L152)
- to_sunburst(self, max_depth) (L167)
- walk(node, depth, parent) (L170)
- to_bar_chart(self, top_n) (L184)
- walk(node) (L187)
- top_extensions(self, limit) (L198)
- class Scanner (L207)
- init(self, cancel_event, progress_cb) (L209)
- scan(self, root) (L219)
- _check_cancel(self) (L224)
- _report(self, path) (L228)
- class NTFSScanner (L241)
- init(self, args, *kwargs) (L244)
- _check_mft_access(self) (L249)
- scan(self, root) (L264)
- _scan_mft(self, root) (L271)
- _scan_walk(self, root) (L275)
- class PosixScanner (L314)
- scan(self, root) (L316)
- class CloudScanner (L356)
- init(self, args, providers, *kwargs) (L358)
- _check_rclone(self) (L364)
- scan(self, root) (L372)
- _scan_remote(self, remote) (L380)
- class AdvancedDiskAnalyzer (L424)
- init(self, include_cloud, cloud_providers, cancel_event, progress_cb) (L426)
- _create_scanner(self, include_cloud, providers) (L439)
- async scan(self, root) (L455)
- build_tree(self, entries) (L466)
- get_visualizations(self) (L478)
- get_stats(self) (L493)
- scan_sync(root, include_cloud, progress_cb, cancel_event) (L514)
src/cortex_unified/analyzers/advanced_shredder.py¶
Module: Advanced multi-pattern overwrite disk sanitization (DoD 5220.22-M style pass sequence).
- class ShredMethod (L23)
- class AdvancedShredder (L36)
- init(self) (L54)
- _generate_pass_data(self, pattern, size) (L60)
- shred_file(self, file_path, passes, method) (L67)
- shred_directory(self, dir_path, passes, method) (L148)
src/cortex_unified/analyzers/advanced_uninstaller.py¶
Module: Advanced Uninstaller — Steam, Chocolatey, Winget, Store, portable, orphaned.
- class AppInfo (L87)
- to_dict(self) (L106)
- class LeftoverScanResult (L115)
- to_dict(self) (L127)
- class UninstallResult (L137)
- _normalize_path(path) (L153)
- _get_registry_apps() (L160)
- _get_steam_apps() (L225)
- _get_chocolatey_apps() (L310)
- _get_winget_apps() (L342)
- _get_scoop_apps() (L375)
- _get_store_apps() (L407)
- _get_windows_features() (L442)
- _get_portable_apps() (L477)
- _scan_leftovers(app, pre_snapshot) (L530)
- class AdvancedUninstaller (L595)
- init(self, create_restore_point, progress_callback, cancel_event) (L598)
- enumerate_all(self, force_refresh) (L613)
- uninstall_batch(self, app_ids, force, scan_leftovers) (L651)
- _uninstall_one(self, app, force, scan_leftovers) (L685)
- _split_command(cmd) (L724)
- _run_uninstaller(self, cmd, app) (L747)
- _forced_uninstall(self, app) (L803)
- _remove_install_dir(self, app) (L825)
- _kill_processes(self, name) (L873)
- _cleanup_registry_traces(self, app) (L883)
- _cleanup_services_tasks(self, name) (L935)
- _scan_leftovers_deep(self, app) (L987)
src/cortex_unified/analyzers/audio_duplicate_finder.py¶
Module: Audio duplicate detection via acoustic fingerprinting (Chromaprint-inspired).
- _build_band_edges() (L95)
- _fft(mag) (L120)
- _magnitude_spectrum(frame) (L151)
- _decode_wav(path) (L167)
- _resample(samples, sr_in, sr_out) (L228)
- _decode_generic(path) (L247)
- _band_energies(mag) (L292)
- _subfingerprint_for_frame(energies, prev_energies) (L308)
- _fingerprint_from_samples(samples) (L340)
- _fallback_raw_fingerprint(path) (L362)
- compute_audio_fingerprint(path) (L415)
- _hamming32(a, b) (L448)
- audio_compare(fp_a, fp_b) (L455)
- class AudioDuplicateFinder (L506)
- init(self, root_path, threshold, config) (L517)
- _should_exclude(self, path) (L544)
- _is_audio(self, path) (L556)
- find_audio_duplicates(self, threads, progress_callback, cancel_event) (L564)
- _fp_one(p) (L604)
- _find(x) (L667)
- _union(a, b) (L676)
- get_stats(self) (L704)
src/cortex_unified/analyzers/broken_link_detector.py¶
Module: Enhanced broken link detector for Cortex Cleaner.
- class BrokenLink (L16)
- class BrokenSymlink (L29)
- post_init(self) (L33)
- class BrokenShortcut (L40)
- post_init(self) (L46)
- class BrokenRegistryRef (L53)
- post_init(self) (L58)
- class RepairResult (L65)
- class RepairOutcome (L76)
- _is_reparse_link(path) (L84)
- _resolve_send2trash() (L102)
- repair(items, use_trash, dry_run) (L111)
- class BrokenLinkDetector (L212)
- init(self, config) (L215)
- _setup_windows_modules(self) (L239)
- _should_exclude_path(self, path) (L261)
- _get_file_stats(self, path) (L281)
- scan_symlinks(self, path) (L292)
- scan_windows_shortcuts(self, path) (L369)
- _analyze_shortcut(self, lnk_path) (L433)
- _analyze_shortcut_basic(self, lnk_path) (L475)
- scan_registry_references(self) (L506)
- _scan_registry_key(self, hkey, subkey_path) (L532)
- _extract_paths_from_string(self, text) (L577)
- _assess_symlink_repairability(self, broken_link) (L612)
- _assess_shortcut_repairability(self, broken_shortcut) (L621)
- _assess_registry_repairability(self, broken_ref) (L626)
- _calculate_confidence_score(self, broken_link) (L632)
- find_moved_targets(self, original_target) (L658)
- _get_search_locations(self, original_path) (L695)
- attempt_repair(self, broken_link) (L750)
- _create_backup(self, original_path) (L794)
- _repair_symlink(self, broken_link, new_target, backup_result) (L820)
- _repair_shortcut(self, broken_shortcut, new_target, backup_result) (L844)
- _repair_registry_ref(self, broken_ref, new_target, backup_result) (L899)
- categorize_broken_links(self, links) (L910)
- scan_all(self, path, progress, cancel_event, include_registry) (L945)
- _cancelled(self) (L988)
- _emit(self, text) (L995)
- get_scan_statistics(self) (L1006)
src/cortex_unified/analyzers/cache_cleaner.py¶
Module: Discovery of application caches and log files.
- class CacheCleaner (L17)
- init(self, config) (L20)
- _get_platform_cache_paths(self) (L124)
- get_custom_scan_roots(self) (L162)
- is_archive(self, path) (L195)
- _should_exclude_path(self, path) (L202)
- _is_cache_directory(self, path) (L214)
- _is_cache_file(self, path) (L222)
- find_large_logs(self, roots, min_size_mb, exclude_archives, progress_callback, cancel_event) (L232)
- _is_log(name) (L258)
- find_cache_files(self, custom_paths) (L312)
- get_stats(self) (L380)
- _format_bytes(self, bytes_count) (L401)
- get_cache_directories(self) (L409)
src/cortex_unified/analyzers/cloud_storage_analyzer.py¶
Module: Cloud Storage Analyzer — rclone, S3, Azure, Google Drive, OneDrive, SharePoint.
- class CloudFileEntry (L75)
- to_dict(self) (L90)
- class CloudScanStats (L101)
- class DuplicateGroup (L117)
- wasted_bytes(self) (L125)
- _pricing_cache_dir() (L136)
- class PricingCatalog (L147)
- init(self, ttl_hours, timeout) (L157)
- _cache_file(self, provider, region) (L166)
- _read_cache(self, provider, region) (L173)
- _write_cache(self, provider, region, rates) (L189)
- _http_json(self, url) (L201)
- _fetch_aws(self, region) (L215)
- _fetch_azure(self, region) (L259)
- rates(self, provider, region) (L289)
- rate(self, provider, region, storage_class) (L306)
- _normalise_class(name) (L325)
- class CloudProvider (L341)
- init(self, config) (L347)
- async list_objects(self, bucket, prefix, max_keys) (L355)
- region(self) (L367)
- estimate_cost(self, stats) (L377)
- validate_config(self) (L395)
- class S3Provider (L406)
- init(self, config) (L410)
- _init_client(self) (L419)
- region(self) (L448)
- _bucket_region(self, bucket) (L455)
- async list_objects(self, bucket, prefix, max_keys) (L473)
- estimate_cost(self, stats) (L526)
- class AzureBlobProvider (L538)
- init(self, config) (L542)
- _init_client(self) (L551)
- region(self) (L577)
- async list_objects(self, container, prefix, max_keys) (L598)
- estimate_cost(self, stats) (L641)
- class GoogleDriveProvider (L652)
- init(self, config) (L664)
- _get(self, params) (L673)
- async list_objects(self, bucket, prefix, max_keys) (L690)
- class OneDriveProvider (L752)
- init(self, config) (L763)
- _get(self, url) (L772)
- async list_objects(self, bucket, prefix, max_keys) (L788)
- class RcloneProvider (L840)
- init(self, config) (L850)
- _locate_binary(explicit) (L859)
- available(self) (L873)
- list_remotes(self) (L879)
- async list_objects(self, bucket, prefix, max_keys) (L892)
- estimate_cost(self, stats) (L944)
- class CloudStorageAnalyzer (L956)
- init(self, default_provider, provider_configs, cancel_event, progress_cb) (L967)
- _init_providers(self, default) (L983)
- get_provider(self, name) (L996)
- available_targets(self) (L1002)
- async scan(self, target, max_objects) (L1037)
- scan_sync(self, target, max_objects, progress_cb, cancel_event) (L1074)
- async _collect() (L1090)
- find_duplicates(self, entries, local_hashes) (L1117)
- generate_report(self, entries, stats, duplicates) (L1157)
src/cortex_unified/analyzers/content_defined_chunker.py¶
Module: Content-Defined Chunking (FastCDC / VectorCDC) for deduplication acceleration.
- _build_gear_table(seed) (L77)
- _mask_for_avg(avg) (L87)
- class Chunk (L102)
- to_dict(self) (L108)
- class ChunkStats (L116)
- _chunk_hash(data) (L130)
- gear_chunk(data, avg_size, min_size, max_size) (L138)
- file_chunks(path, avg_size, min_size, max_size, cap_bytes) (L190)
- jaccard(a, b) (L205)
- chunk_similarity(data_a, data_b, avg_size, min_size, max_size) (L216)
- class ContentDefinedChunker (L232)
- init(self, root_path, threshold, avg_size, min_size, max_size, config) (L246)
- _should_exclude(self, path) (L280)
- find_cdc_duplicates(self, threads, progress_callback, cancel_event) (L292)
- _one(p) (L337)
- _find(x) (L388)
- _union(a, b) (L397)
- get_stats(self) (L425)
- vector_cdc_chunk(data, avg_size, min_size, max_size) (L444)
- class IdeaInvertedIndex (L495)
- init(self) (L500)
- insert(self, path, chunks) (L507)
- find_similar(self, path, threshold) (L516)
src/cortex_unified/analyzers/czkawka_tools.py¶
Module: Czkawka multi-tool suite — empty, broken, bad-ext, bad-names, exif, video-optimizer.
- _temp_dirs() (L62)
- _sniff_extension(path) (L112)
- class EmptyResult (L135)
- class EmptyFinder (L142)
- init(self, root, config) (L144)
- find(self, cancel, progress) (L152)
- class SymlinkResult (L194)
- class InvalidSymlinkFinder (L200)
- init(self, root, config) (L202)
- find(self, cancel, progress) (L210)
- class BrokenFileFinder (L239)
- init(self, root, config) (L241)
- _is_broken(self, p) (L249)
- find(self, threads, cancel, progress) (L282)
- check(p) (L296)
- class BadExtResult (L319)
- class BadExtensionFinder (L325)
- init(self, root, config) (L327)
- find(self, cancel, progress) (L335)
- class BadNamesFinder (L371)
- init(self, root, config) (L373)
- find(self, cancel) (L381)
- class ExifCleaner (L397)
- init(self, root, config) (L399)
- scan(self, cancel) (L406)
- strip(self, paths) (L435)
- class TempFileFinder (L465)
- init(self, root, config) (L467)
- find(self, cancel) (L474)
- class VideoInfo (L504)
- class VideoOptimizer (L517)
- find_static_borders(self, video) (L519)
- optimize(self, video, out, crf, preset) (L547)
src/cortex_unified/analyzers/deep_cleaner.py¶
Module: Cross-platform "deep clean" discovery over per-OS target tables.
- get_path_size_safe(path) (L19)
- class DeepCleaner (L39)
- init(self, config) (L42)
- _find_orphaned_app_data(self) (L51)
- _get_scan_targets(self) (L165)
- find_junk(self, progress_callback) (L217)
- get_stats(self) (L273)
- _format_bytes(self, bytes_count) (L284)
src/cortex_unified/analyzers/disk_analyzer.py¶
Module: Disk space analysis: volume usage, tree breakdown, per-extension stats.
- class DiskAnalyzer (L17)
- init(self, config, root_path) (L20)
- _should_exclude_path(self, path) (L38)
- analyze_disk_usage(self) (L50)
- analyze_directory_tree(self, max_depth) (L87)
- _analyze_directory_recursive(self, path, max_depth, current_depth) (L98)
- analyze_file_types(self) (L150)
- find_largest_directories(self, limit) (L203)
- get_stats(self) (L244)
- _format_bytes(self, bytes_count) (L279)
- export_to_json(self, filepath) (L287)
src/cortex_unified/analyzers/docker_cleaner.py¶
Module: Scans a local Docker daemon for reclaimable resources (images, stopped
- class DockerImage (L26)
- str(self) (L35)
- class DockerContainer (L42)
- str(self) (L51)
- class DockerVolume (L58)
- str(self) (L66)
- class DockerNetwork (L73)
- str(self) (L80)
- class CleanupResult (L87)
- total_removed(self) (L97)
- class DockerCleaner (L103)
- init(self, config) (L111)
- client(self) (L130)
- is_docker_available(self) (L150)
- scan_unused_images(self) (L167)
- scan_stopped_containers(self) (L221)
- scan_unused_volumes(self) (L262)
- scan_unused_networks(self) (L302)
- cleanup_resources(self, resources, dry_run) (L342)
- get_filesystem_cache_size(self) (L408)
- get_space_usage(self) (L445)
- get_stats(self) (L471)
- _is_image_unused(self, image_id) (L475)
- _is_volume_orphaned(self, volume_name) (L486)
- _is_network_unused(self, network_id) (L499)
- _get_container_size(self, container) (L508)
- _get_volume_size(self, volume) (L524)
- _format_bytes(self, bytes_size) (L551)
src/cortex_unified/analyzers/duplicate_finder.py¶
Module: Hash-based duplicate file detection.
- _gear_hash(data) (L37)
- fastcdc_chunk(data, min_size, avg_size, max_size) (L49)
- _fsb_hash(chunk) (L86)
- class DuplicateFinder (L97)
- init(self, config, root_path) (L100)
- _should_exclude_path(self, path) (L125)
- _get_file_hash(self, filepath) (L137)
- _get_file_size(self, filepath) (L191)
- _find_files_by_size(self) (L198)
- find_duplicates(self, threads) (L240)
- get_stats(self) (L274)
- _calculate_potential_savings(self) (L287)
- auto_select_duplicates(self, strategy) (L300)
- _format_bytes(self, size) (L332)
- get_hash_algorithm_info(self) (L340)
- _fastcdc_chunks(self, data, min_size, avg_size, max_size) (L353)
- _fsb_hash(self, chunk) (L408)
- find_duplicates_chunked(self, min_chunk, avg_chunk, max_chunk, threads, progress_callback, cancel_event) (L419)
- _process_file(p) (L470)
- get_chunked_stats(self, dup_chunks) (L509)
src/cortex_unified/analyzers/duplicate_folder_finder.py¶
Module: Content-identical folder detection.
- class DuplicateFolderFinder (L19)
- init(self, config, root_path) (L22)
- _should_exclude_path(self, path) (L42)
- _get_folder_hash(self, folderpath) (L54)
- find_duplicate_folders(self, threads, progress, cancel_event) (L104)
- _cancelled() (L116)
- _emit(text) (L122)
- get_stats(self) (L193)
- auto_select_folders(self, strategy) (L205)
src/cortex_unified/analyzers/file_shredder.py¶
Module: Overwrite-based file shredding.
- class FileShredder (L18)
- init(self, config) (L21)
- _generate_random_data(self, size) (L34)
- _generate_pattern_data(self, size, pattern) (L40)
- shred_file(self, filepath, passes, allow_system_files) (L46)
- shred_files(self, filepaths, passes) (L122)
- get_stats(self) (L150)
- set_passes(self, passes) (L158)
- verify_deletion(self, verify) (L164)
src/cortex_unified/analyzers/fuzzy_finder.py¶
Module: Fuzzy (similarity, not exact) file hashing via CTPH / TLSH-style digests.
- _fnv1a(data) (L98)
- _chunk_hash(chunk) (L109)
- _to_char(values) (L118)
- _ctph_blocks(data, block_size) (L125)
- fuzzy_hash_bytes(data, block_size) (L162)
- fuzzy_hash_file(path, block_size) (L177)
- _edit_distance(a, b) (L192)
- fuzzy_compare(sig1, sig2) (L207)
- _parse(sig) (L218)
- _compare_pair(a, b) (L233)
- _score_frag(a, b) (L252)
- class FuzzyDuplicateFinder (L274)
- init(self, root_path, threshold, block_size, config) (L285)
- _should_exclude(self, path) (L312)
- _eligible(self, path) (L324)
- find_fuzzy_duplicates(self, threads, progress_callback, cancel_event) (L332)
- _hash_one(p) (L372)
- _find(x) (L414)
- _union(a, b) (L423)
- get_stats(self) (L451)
src/cortex_unified/analyzers/large_file_finder.py¶
Module: Discovery of files above a configurable size threshold.
- is_ai_model(path) (L26)
- class LargeFileFinder (L31)
- init(self, config, root_path) (L34)
- _should_exclude_path(self, path) (L56)
- _get_file_size(self, filepath) (L68)
- find_large_files(self, min_size_mb, threads) (L75)
- get_stats(self) (L133)
- _format_bytes(self, bytes_count) (L149)
- filter_by_size(self, min_size_mb, max_size_mb) (L157)
- group_by_extension(self) (L173)
- group_by_ai_models(self) (L185)
- get_ai_models(self, min_size_mb) (L200)
- tag_file(self, path) (L205)
src/cortex_unified/analyzers/leftover_detector.py¶
Module: Advanced heuristics and leftover detection for Cortex Cleaner.
- class DetectedItem (L25)
- to_dict(self) (L35)
- class OrphanedFolder (L45)
- post_init(self) (L53)
- class InstallerFile (L58)
- post_init(self) (L65)
- class RegistryOrphan (L70)
- post_init(self) (L77)
- class CleanupRecommendation (L82)
- class LeftoverDetector (L91)
- init(self, config) (L94)
- _setup_installation_paths(self) (L123)
- _load_detection_patterns(self) (L161)
- scan_orphaned_folders(self, paths) (L221)
- _scan_directory_for_orphans(self, directory) (L246)
- _is_system_directory(self, path) (L276)
- _analyze_folder_for_orphan_signs(self, folder) (L286)
- _folder_appears_abandoned(self, folder) (L322)
- _contains_uninstaller_remnants(self, folder) (L343)
- _create_orphaned_folder_object(self, folder, confidence) (L355)
- _determine_installation_path_type(self, folder) (L392)
- _contains_executables(self, folder) (L409)
- _contains_config_files(self, folder) (L420)
- _contains_data_files(self, folder) (L435)
- _calculate_folder_size(self, folder) (L446)
- _extract_app_name(self, folder_name) (L460)
- detect_installer_files(self, paths) (L468)
- _scan_for_installer_files(self, directory, installer_extensions) (L515)
- _analyze_installer_file(self, file_path) (L538)
- _check_installer_duplicate(self, file_path) (L574)
- _extract_version_from_filename(self, filename) (L587)
- _calculate_installer_confidence(self, file_path, size_bytes) (L604)
- analyze_registry_orphans(self) (L622)
- _analyze_registry_key(self, hive, hive_name, key_path) (L647)
- _check_registry_subkey_for_orphans(self, hive, hive_name, full_key_path, subkey_name) (L669)
- _create_registry_orphan(self, registry_key, hive, referenced_path, key_type) (L696)
- apply_ml_patterns(self, items) (L720)
- _apply_pattern_adjustments(self, item) (L767)
- calculate_confidence_score(self, item) (L793)
- generate_cleanup_recommendations(self, confidence_threshold) (L797)
- export_results(self, filepath) (L849)
- get_stats(self) (L871)
src/cortex_unified/analyzers/near_duplicate_finder.py¶
Module: Near-duplicate detection via MinHash LSH + Bloom filtering.
- class BloomFilter (L72)
- init(self, n, p, k) (L79)
- _hashes(self, data) (L91)
- add(self, data) (L107)
- contains(self, data) (L115)
- fpr(self) (L124)
- _shingle_text(text, k) (L133)
- _shingle_bytes(data, k) (L146)
- _hash_shingle(shingle, seed) (L153)
- class NearDuplicateFinder (L163)
- init(self, root_path, threshold, shingle_k, hash_perm, bands, use_bloom, config) (L176)
- _should_exclude(self, path) (L209)
- _is_text(self, path) (L221)
- _minhash(self, shingles) (L232)
- _lsh_candidates(self, signatures) (L244)
- _jaccard(self, a, b) (L272)
- _weighted_jaccard(self, a, b, df, n_docs) (L282)
- find_near_duplicates(self, threads, progress_callback, cancel_event) (L306)
- _shingle_one(p) (L370)
- _minhash_one(item) (L411)
- _find(x) (L432)
- _union(a, b) (L441)
- get_stats(self) (L477)
src/cortex_unified/analyzers/old_file_cleaner.py¶
Module: Discovery of files untouched for a configurable number of days.
- class OldFileCleaner (L14)
- init(self, config, root_path) (L17)
- _should_exclude_path(self, path) (L35)
- find_old_files(self, min_age_days) (L47)
- get_stats(self) (L96)
- _format_bytes(self, bytes_count) (L124)
- filter_by_age_range(self, min_days, max_days) (L132)
- group_by_age(self) (L146)
src/cortex_unified/analyzers/package_manager_cleaner.py¶
Module: Detects installed package managers and clears their regenerable caches.
- class Package (L23)
- post_init(self) (L33)
- class PackageManager (L41)
- class CleanupResult (L52)
- post_init(self) (L60)
- class HealthStatus (L68)
- post_init(self) (L74)
- class PackageManagerCleaner (L166)
- init(self, config) (L175)
- detect_package_managers(self) (L302)
- _get_package_manager_version(self, name, executable) (L338)
- _get_cache_path(self, name, config) (L366)
- clean_pip_cache(self, keep_recent_days) (L457)
- clean_npm_cache(self, verify_integrity) (L513)
- clean_system_packages(self, package_manager) (L561)
- find_orphaned_packages(self, package_manager) (L603)
- _find_pip_orphaned_packages(self, manager) (L640)
- _find_npm_orphaned_packages(self, manager) (L671)
- _find_apt_orphaned_packages(self, manager) (L697)
- _find_dnf_orphaned_packages(self, manager) (L731)
- _find_pacman_orphaned_packages(self, manager) (L760)
- _find_brew_orphaned_packages(self, manager) (L790)
- backup_package_lists(self) (L816)
- _backup_package_lists(self, managers) (L820)
- verify_package_manager_health(self, package_manager) (L860)
- _get_manager_by_name(self, name) (L914)
- _get_cache_size(self, cache_path) (L921)
- get_stats(self) (L940)
- _format_bytes(self, bytes_count) (L959)
- scan_caches(self, target_folders, include_python_projects, keep_recent_days, enabled_categories, progress_callback, cancel_event) (L968)
- _scan_project_caches_in_folder(self, folder, keep_recent_days, enabled_categories, progress_callback, cancel_event) (L1019)
- _match_dir(d_name) (L1043)
- _scan_manager_cache(self, manager, keep_recent_days) (L1119)
- _get_dir_size(self, path, cutoff_date) (L1147)
- clean_cargo_project(self, target_path, dry_run) (L1176)
- auto_discover_project_caches(self, enabled_categories, keep_recent_days, progress_callback, cancel_event, max_depth) (L1207)
- cleanup_caches(self, resources, dry_run, progress_callback, cancel_event) (L1300)
- _cleanup_python_cache(self, cache_path, dry_run) (L1373)
- _cleanup_manager_cache(self, manager_name, dry_run) (L1426)
src/cortex_unified/analyzers/perceptual_duplicate_finder.py¶
Module: Perceptual image/photo duplicate detection via pHash / aHash / dHash.
- _validate_pil() (L88)
- _cos_table(n) (L103)
- _dct2d(rows, cos, size) (L116)
- average_hash(path) (L140)
- difference_hash(path) (L157)
- perceptual_hash(path) (L176)
- _haar_1d(arr) (L211)
- _haar_2d_grayscale(pixels, size, levels) (L223)
- wavelet_hash(path) (L248)
- compute_hash(path, kind) (L280)
- hamming_distance(a, b) (L291)
- class PerceptualDuplicateFinder (L300)
- init(self, root_path, max_distance, kinds, require_all_kinds, config) (L316)
- _should_exclude(self, path) (L352)
- _is_image(self, path) (L364)
- find_perceptual_duplicates(self, threads, progress_callback, cancel_event) (L372)
- _hash_one(p) (L415)
- _find(x) (L468)
- _union(a, b) (L477)
- _window_size(self, n) (L511)
- get_stats(self) (L519)
src/cortex_unified/analyzers/portable_manager.py¶
Module: Portable Manager — PortableApps.com / LiberKey catalog, USB toolkit.
- class PortableApp (L73)
- to_dict(self) (L87)
- _find_removable_drives() (L101)
- _find_portable_roots() (L132)
- _parse_appinfo(ini_path) (L176)
- class PortableManager (L216)
- init(self, progress, cancel) (L218)
- scan_portable_roots(self, roots) (L226)
- check_updates(self, apps) (L270)
- update_app(self, app, timeout) (L334)
- export_toolkit(self, target, include_sysinternals, sysinternals_tools, include_live_iso, timeout) (L371)
- _download_sysinternals(self, tool, dest, timeout) (L417)
src/cortex_unified/analyzers/privacy_cleaner.py¶
Module: Detects and removes browser traces (cache, cookies, history, sessions)
- class PrivacyCleaner (L18)
- init(self) (L25)
- scan_browsers(self) (L46)
- scan_system_traces(self) (L72)
- clean_browser(self, browser, items) (L94)
- clean_system_traces(self, clean_recent) (L134)
- _discover_chromium_profiles(base_path) (L161)
- _scan_chromium_profile(self, prof_path, stats) (L178)
- _clean_chromium_profile(self, prof_path, items) (L196)
- _scan_firefox(self, profiles_path, stats) (L220)
- _get_file_size(path) (L241)
- _get_dir_size(path) (L251)
- _safe_delete(path) (L270)
- _safe_delete_dir(path) (L279)
- _clean_directory_contents(self, path) (L284)
src/cortex_unified/analyzers/project_cache_scanner.py¶
Module: Auto-discovery of project cache folders across fixed drives.
- _fixed_drive_roots() (L38)
- _known_code_roots() (L71)
- class ProjectCacheScanner (L119)
- init(self, enabled_categories, keep_recent_days) (L128)
- scan_fixed_drives(self, progress_callback, cancel_event, max_depth, prefer_code_roots) (L147)
- _scan_root(self, folder, keep_recent_days, progress_callback, cancel_event, max_depth) (L185)
- _match_dir(d_name) (L198)
- _should_skip_dir(name) (L218)
- _get_dir_size(self, path, cutoff_date) (L356)
- _format_bytes(n) (L379)
src/cortex_unified/analyzers/registry_cleaner_ai.py¶
Module: AI/ML-Enhanced Registry Cleaner — learned safety, contextual risk scoring.
- class RegistryIssue (L93)
- to_dict(self) (L106)
- class ScanResult (L115)
- to_json(self) (L122)
- class CleanResult (L136)
- _split(path) (L161)
- _split32(path) (L171)
- _expand(p) (L179)
- _resolve_target(raw) (L206)
- _target_candidates(raw) (L228)
- _verifiable(path) (L254)
- _target_exists(raw) (L293)
- _target_exists_any(candidates) (L302)
- _exe_from_command(cmd) (L317)
- _detect_missing_path(key_path, values, access) (L323)
- _detect_orphaned_uninstall(key_path, values, access) (L331)
- _detect_missing_path_value(key_path, values, access) (L349)
- _detect_shared_dll_gone(key_path, values, access) (L365)
- _font_candidates(data) (L373)
- _detect_orphaned_font(key_path, values, access) (L386)
- _detect_orphaned_service(key_path, values, access) (L396)
- _key_age_days(key_path, access) (L421)
- _detect_stale_mru(key_path, values, access, stale_days) (L445)
- _log2(x) (L530)
- _categorize_key(key_path) (L536)
- _extract_features(key_path, value_name, value_data, value_type, parent_exists, uninstaller_exists, is_signed, age_days) (L545)
- _is_authenticode_signed(path) (L605)
- class GUID (L618)
- class WINTRUST_FILE_INFO (L625)
- class WINTRUST_DATA (L634)
- class _MLModel (L680)
- init(self, model_path) (L683)
- predict(self, features) (L698)
- _heuristic_score(self, features) (L713)
- class AIRegistryCleaner (L747)
- init(self, model_path, create_restore_point, progress_callback, cancel_event) (L750)
- _run_ps(self, script, timeout) (L770)
- _key_exists(self, path) (L786)
- _get_parent(self, path) (L805)
- _values_map(self, path, access) (L814)
- _enum_values(self, path) (L834)
- _check_uninstaller(self, path) (L840)
- _check_signature(self, path) (L850)
- _estimate_age(self, path) (L866)
- scan(self, categories) (L886)
- _iter_subkeys(self, root, access) (L973)
- _offending_value(self, key_path, values, category) (L992)
- clean(self, issues, selected_ids, full_hive_backup) (L1024)
- _remove_and_backup(self, issue) (L1075)
- _delete_key(self, key_path) (L1089)
- _delete_value(self, key_path, value_name) (L1125)
- _backup_key(self, key_path) (L1151)
- _backup_registry(self) (L1175)
- _create_restore_point(self) (L1190)
src/cortex_unified/analyzers/residual_cleaner.py¶
Module: Residual Cleaner — finds leftover folders after application uninstall.
- class ResidualCleaner (L15)
- init(self) (L27)
- scan_for_app(self, app_name, publisher) (L42)
- _build_search_tokens(app_name, publisher) (L93)
- _matches_tokens(entry, tokens) (L126)
- _get_size(path) (L141)
src/cortex_unified/analyzers/residual_hunter.py¶
Module: Backward-compatibility alias for ResidualCleaner.
src/cortex_unified/analyzers/video_duplicate_finder.py¶
Module: Video near-duplicate detection via keyframe perceptual hashing + temporal consistency.
- _cos_table(n) (L108)
- _dct2d(rows, cos, size) (L117)
- _phash_image(img) (L138)
- _hamming(a, b) (L159)
- _extract_frames_cv2(path, max_frames) (L169)
- _extract_frames_imageio(path, max_frames) (L218)
- _fallback_raw_video_fp(path) (L271)
- compute_video_fingerprint(path, max_frames) (L292)
- video_compare(fp_a, fp_b, max_distance) (L312)
- class VideoDuplicateFinder (L405)
- init(self, root_path, threshold, max_distance, config) (L417)
- _should_exclude(self, path) (L446)
- _is_video(self, path) (L458)
- find_video_duplicates(self, threads, progress_callback, cancel_event) (L464)
- _fp_one(p) (L503)
- _find(x) (L556)
- _union(a, b) (L565)
- get_stats(self) (L593)
src/cortex_unified/analyzers/weaponized_shredder.py¶
Module: Backward-compatibility alias for AdvancedShredder.
src/cortex_unified/cli/init.py¶
Module: Command Line Interface (CLI) module for Cortex Workstation.
src/cortex_unified/cli/cli.py¶
Module: Command-line interface for Cortex Cleaner (legacy cortex-cleaner).
- _has_registry_cleaner() (L42)
- getattr(name) (L56)
- main() (L68)
- clean_empty(dry_run, delete, trash, pattern, older_than, exclude_pattern, config, no_config, yes, verbose, quiet, log_file, json_log, threads, cpu_priority, io_priority, checkpoint_interval, resume_from, path) (L92)
- find_large_files(min_size, pattern, exclude_pattern, config, no_config, verbose, log_file, json_log, threads, export, path) (L275)
- find_duplicates(strategy, hash_algorithm, preview, delete, pattern, exclude_pattern, config, no_config, yes, verbose, log_file, json_log, threads, export, path) (L371)
- clean_temp(dry_run, delete, trash, min_age, exclude_pattern, config, no_config, yes, verbose, log_file, json_log) (L500)
- analyze_disk(analyze, export_json, export_treemap, export_sunburst, export_dashboard, max_depth, threads, cpu_priority, io_priority, memory_limit, checkpoint_interval, resume_from, config, no_config, verbose, log_file, json_log, path) (L625)
- list_startup_items() (L824)
- analyze_processes(export) (L853)
- docker_cleanup(dry_run, clean, images, containers, volumes, networks, clean_all, config, no_config, yes, verbose, log_file, json_log, export) (L908)
- package_cleanup(pip, npm, yarn, conda, system, clean_all, orphaned, keep_recent_days, dry_run, clean, config, no_config, yes, verbose, log_file, json_log, export) (L1067)
- heuristics_scan(confidence_threshold, scan_registry, ml_patterns, dry_run, clean, config, no_config, yes, verbose, log_file, json_log, export, path) (L1215)
- secure_delete(shred, passes, verify, yes, verbose, log_file, json_log, files) (L1370)
- restore(restore, dry_run, yes, verbose, log_file, json_log) (L1432)
- generate_report(type, export, name, verbose, log_file, json_log) (L1499)
- checkpoint() (L1567)
- list_checkpoints(config, verbose) (L1573)
- delete(checkpoint_id, verbose) (L1603)
- cleanup(max_age, verbose) (L1625)
- scan_enhanced(checkpoint_id, enable_checkpoints, enable_throttling, cpu_limit, memory_limit, dry_run, delete, trash, pattern, older_than, exclude_pattern, config, no_config, yes, verbose, quiet, log_file, json_log, threads, path) (L1665)
- scan_broken_links(scan_symlinks, scan_shortcuts, scan_registry, repair, backup, confidence_threshold, export, verbose, path) (L1860)
- clean_shaders_cmd(min_age_days, dry_run) (L2006)
- clean_ai_cmd(dry_run) (L2023)
- trim_ssd_cmd(drive) (L2038)
- vss_health_cmd() (L2050)
- verify_checksums_cmd(manifest_file) (L2063)
src/cortex_unified/core/init.py¶
Module: Cortex Workstation Core Engine and Orchestration Framework.
src/cortex_unified/core/background_agent.py¶
Module: Background Agent — lightweight real-time system monitor.
- class BackgroundAgent (L16)
- init(self, check_interval) (L24)
- start_monitoring(self) (L43)
- stop(self) (L96)
src/cortex_unified/core/config.py¶
Module: Legacy YAML configuration management for Cortex Cleaner.
- class Config (L19)
- init(self, config_path) (L29)
- _get_default_config_path(self) (L35)
- _load_config(self) (L40)
- _defaults() (L85)
- exclude_patterns(self) (L98)
- exclude_dirs(self) (L103)
- exclude_regex_patterns(self) (L108)
- min_age_days(self) (L113)
- default_action(self) (L118)
- log_file(self) (L124)
- json_logging(self) (L130)
- threads(self) (L136)
- follow_symlinks(self) (L142)
- matches_exclude_patterns(self, path) (L147)
src/cortex_unified/core/config_v2.py¶
Module: Pydantic-based configuration management for Cortex Cleaner.
- _read_yaml_file(path) (L65)
- class _YamlConfigSource (L77)
- init(self, settings_cls, config_file) (L85)
- get_field_value(self, field, field_name) (L91)
- call(self) (L96)
- class ScanConfig (L102)
- class PerformanceConfig (L149)
- clamp_threads(cls, v) (L183)
- class SecurityConfig (L190)
- class LoggingConfig (L228)
- class DatabaseConfig (L252)
- class UIConfig (L278)
- class Config (L302)
- init(self, **data) (L350)
- settings_customise_sources(cls, settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings) (L369)
- _load_yaml(path) (L388)
- save_to_yaml(self, path) (L393)
- matches_exclude_patterns(self, path) (L412)
- exclude_patterns(self) (L444)
- exclude_dirs(self) (L449)
- exclude_regex_patterns(self) (L454)
- min_age_days(self) (L459)
- default_action(self) (L464)
- log_file(self) (L469)
- json_logging(self) (L474)
- threads(self) (L479)
- follow_symlinks(self) (L484)
- create_default_config(path) (L556)
src/cortex_unified/core/database.py¶
Module: SQLite persistence layer for Cortex Cleaner.
- class Base (L35)
- class ScanRun (L39)
- repr(self) (L71)
- duration_seconds(self) (L77)
- to_dict(self) (L84)
- class DeletedItem (L102)
- repr(self) (L140)
- to_dict(self) (L145)
- class ScheduledJob (L162)
- repr(self) (L191)
- class SystemMetric (L196)
- class UserPreference (L224)
- repr(self) (L237)
- class Database (L242)
- init(self, db_path, echo) (L249)
- session(self) (L285)
- create_scan_run(self, scan_type, root_path, health_score_before) (L299)
- update_scan_run(self, run_id, status, items_found, bytes_found, items_deleted, bytes_freed, health_score_after, error_message) (L318)
- get_scan_history(self, limit, scan_type, since) (L351)
- get_scan_stats(self, days) (L371)
- add_deleted_item(self, run_id, path, size_bytes, file_type, backup_path, deletion_method, sha256) (L413)
- get_restorable_items(self, limit, in_quarantine_only) (L442)
- mark_item_restored(self, item_id) (L461)
- cleanup_old_quarantine(self, days) (L469)
- record_metric(self, disk_total_gb, disk_used_gb, disk_free_gb, health_score, drive_path) (L483)
- get_metrics_history(self, days, drive_path) (L509)
- cleanup_old_history(self, max_entries) (L531)
- get_database(db_path) (L559)
- db_session() (L574)
src/cortex_unified/core/deleter.py¶
Module: File and directory deletion functionality for Cortex Cleaner.
- class Deleter (L17)
- init(self, dry_run, use_trash) (L26)
- _delete_file(self, filepath) (L40)
- _delete_directory(self, dirpath) (L93)
- delete(self, empty_files, empty_dirs) (L132)
- generate_manifest(self, output_dir) (L160)
src/cortex_unified/core/logging_setup.py¶
Module: Structured logging configuration for Cortex Cleaner.
- add_correlation_id(logger, method_name, event_dict) (L23)
- add_app_context(logger, method_name, event_dict) (L30)
- censor_sensitive_data(logger, method_name, event_dict) (L40)
- _censor_dict(d) (L51)
- configure_logging(log_level, log_file, json_output, enable_colors, enable_censoring) (L72)
- get_logger(name) (L170)
- set_correlation_id(correlation_id) (L190)
- clear_correlation_id() (L207)
- class LogContext (L212)
- init(self, **kwargs) (L223)
- enter(self) (L228)
- exit(self, exc_type, exc_val, exc_tb) (L233)
- log_scan_start(logger, scan_type, root_path, **kwargs) (L239)
- log_scan_complete(logger, scan_type, items_found, bytes_found, duration_seconds, **kwargs) (L253)
- log_scan_error(logger, scan_type, error, **kwargs) (L271)
- log_file_operation(logger, operation, path, success, **kwargs) (L287)
- log_performance_metric(logger, metric_name, value, unit, **kwargs) (L305)
src/cortex_unified/core/proc.py¶
Module: Cancellable, tree-safe subprocess execution.
- class ProcessCancelled (L56)
- init(self, args) (L63)
- run(args, timeout, cancel_event, text, encoding, errors, input, creationflags, cwd, env) (L70)
- _kill_tree(proc) (L148)
- _reap_quietly(proc) (L179)
src/cortex_unified/core/scanner.py¶
Module: Discovery of empty files and directories under a configured root.
- class Scanner (L21)
- init(self, config, root_path, enable_checkpoints, enable_throttling) (L29)
- _should_exclude_path(self, path) (L65)
- _is_file_empty(self, filepath) (L71)
- _is_file_old_enough(self, filepath) (L82)
- _scan_file(self, filepath) (L95)
- _scan_directory(self, dirpath, max_depth) (L108)
- scan(self, threads, checkpoint_id, max_depth) (L221)
- _estimate_total_items(self) (L294)
- _scan_directory_enhanced(self, dirpath, scan_state, max_depth) (L309)
- pause_scan(self) (L367)
- resume_scan(self, checkpoint_id) (L372)
- get_scan_progress(self) (L378)
- create_checkpoint(self) (L384)
- list_checkpoints(self) (L395)
- get_stats(self) (L401)
src/cortex_unified/core/security.py¶
Module: Security utilities for Cortex Cleaner.
- _get_protected_paths() (L59)
- is_safe_path(path, base_dir) (L95)
- is_system_file(path) (L168)
- validate_paths(paths, base_dir) (L217)
- is_path_writable(path) (L256)
- get_safe_temp_dir() (L280)
- check_deletion_safety(path, allow_system_files) (L289)
src/cortex_unified/core/smart_scanner.py¶
Module: Smart Scanner — orchestrates parallel system analysis and produces a Health Score.
- class SmartScanReport (L25)
- init(self) (L28)
- total_cleanable_mb(self) (L46)
- calculate_score(self) (L53)
- class SmartScannerWorker (L73)
- init(self, config) (L80)
- run(self) (L88)
- stop(self) (L163)
- _scan_temp_dirs(self) (L171)
- _scan_browser_caches(self) (L195)
- _scan_dir_mb(self, path, max_depth) (L220)
- _scan_recycle_bin(self) (L239)
src/cortex_unified/core/smart_suggest.py¶
Module: Smart Suggestions - a tiny, fully-offline, on-device learning engine.
- _sigmoid(z) (L40)
- _size_bucket(size_bytes) (L50)
- _age_bucket(age_days) (L67)
- featurize(context) (L81)
- class SmartSuggester (L107)
- init(self, model_path, learning_rate) (L110)
- score(self, context) (L122)
- recommend(self, context, threshold) (L129)
- rank(self, items) (L135)
- observe(self, context, cleaned) (L143)
- observe_batch(self, items, cleaned) (L158)
- _enforce_cap_locked(self) (L164)
- _load(self) (L173)
- save(self) (L187)
- stats(self) (L205)
- reset(self) (L216)
src/cortex_unified/core/temp_cleaner.py¶
Module: Discovery and safe removal of stale files from operating-system temp locations.
- class TempFinding (L57)
- _normalize(path) (L66)
- _is_junction(entry) (L71)
- class TempCleaner (L88)
- init(self, min_age_days, exclude_patterns, follow_symlinks) (L91)
- LOCATIONS(cls) (L132)
- _usable(label, path) (L164)
- _discover_locations(self) (L193)
- _is_excluded(self, path, name) (L201)
- _is_old_enough(self, path) (L208)
- _walk(self, root, label, cutoff, findings) (L223)
- scan(self) (L285)
- total_reclaimable(self) (L304)
- clean(self, findings, use_trash, dry_run) (L308)
src/cortex_unified/core/utils.py¶
Module: Shared utilities: logging setup, formatting, path helpers, error types.
- get_system_excludes() (L15)
- is_system_directory(path) (L40)
- setup_logging(verbose, log_file, json_logging, component, log_level) (L45)
- get_component_logger(component, verbose, log_file, json_logging) (L179)
- log_operation_start(logger, operation, **kwargs) (L194)
- log_operation_end(logger, context, success, error, **kwargs) (L214)
- log_performance_metrics(logger, operation, metrics) (L241)
- generate_manifest_filename() (L257)
- normalize_path(path) (L262)
- get_file_age_days(filepath) (L266)
- class DeepCleanerError (L277)
- init(self, message, operation, component, error_code, details) (L284)
- class DockerError (L295)
- class VisualizationError (L299)
- class HeuristicsError (L303)
- class PackageManagerError (L307)
- class PerformanceError (L311)
- class AccessibilityError (L315)
- handle_error(logger, error, operation, component, reraise) (L319)
- safe_execute(func, logger, operation, default_return, **kwargs) (L349)
- class ResourceManager (L373)
- init(self, logger, operation) (L376)
- enter(self) (L385)
- exit(self, exc_type, exc_val, exc_tb) (L392)
- add_resource(self, resource) (L413)
- add_cleanup_function(self, func, args, *kwargs) (L417)
- format_bytes(bytes_value) (L422)
- format_duration(seconds) (L448)
- validate_path(path, must_exist, must_be_dir, must_be_file) (L461)
- ensure_directory(path, create) (L494)
- get_system_info() (L520)
- create_error_report(error, context) (L553)
src/cortex_unified/debug/init.py¶
Module: Cortex Cleaner Production Debugging & Diagnostics Engine.
src/cortex_unified/debug/runner.py¶
Module: Production-Grade Diagnostics and Debugging Runner.
- _col(text, code) (L36)
- green(text) (L43)
- red(text) (L50)
- yellow(text) (L57)
- cyan(text) (L64)
- bold(text) (L71)
- class DiagnosticItem (L79)
- class DiagnosticSection (L91)
- total(self) (L101)
- is_success(self) (L108)
- class DiagnosticReport (L117)
- to_dict(self) (L128)
- class DiagnosticRunner (L156)
- init(self, verbose) (L158)
- run_section(self, title, fn) (L168)
- check_icons(self, sec) (L197)
- check_system_tools(self, sec) (L243)
- check_analyzers(self, sec) (L275)
- check_core_engine(self, sec) (L307)
- check_caches_and_algorithms(self, sec) (L364)
- check_nexus_explorer(self, sec) (L418)
- check_ui_pages(self, sec) (L654)
- run_all(self) (L699)
- _print_section_summary(self, sec) (L774)
- run_all_diagnostics(verbose) (L792)
- main() (L800)
src/cortex_unified/engine/init.py¶
Module: Cortex Cleaner high-performance engine.
src/cortex_unified/engine/categories.py¶
Module: Data-driven, risk-annotated registry of cleanable locations.
- class RiskLevel (L25)
- rank(self) (L33)
- class CleanupCategory (L41)
- existing_paths(self) (L55)
- _env_path(*names) (L67)
- _existing(paths) (L76)
- _fixed_drive_roots() (L151)
- _custom_temp_roots() (L172)
- _discover_app_caches(bases, max_depth) (L196)
- _walk(path, depth) (L214)
- _safe_scandir(path) (L243)
- _get_dir_size(path) (L259)
- _ai_ide_recording_dirs(home) (L274)
- _docker_desktop_cache_dirs(local) (L292)
- _cargo_cache_dirs(home) (L315)
- _rustup_toolchain_dirs(home) (L325)
- _scoop_cache_dirs(home) (L336)
- _npm_pip_cache_dirs(home, local) (L359)
- _wsl_vhdx_dirs(home) (L384)
- _browser_cache_dirs(local) (L397)
- _windows_categories() (L424)
- _posix_categories() (L772)
- default_categories() (L848)
- categories_by_id() (L855)
src/cortex_unified/engine/cli.py¶
Module: Modern, safe CLI for the Cortex engine.
- _require_feature(feature) (L65)
- _fmt_memory_stats(stats) (L74)
- _find_app_by_name(name) (L93)
- _echo_findings(findings, as_json) (L107)
- _fmt_bytes(n) (L125)
src/cortex_unified/engine/fastwalk.py¶
Module: High-performance filesystem traversal built on os.scandir.
- class WalkOptions (L43)
- class FastWalker (L77)
- init(self, options) (L84)
- cancel(self) (L97)
- reset(self) (L101)
- _excluded_dir(self, name, full) (L112)
- _matches_patterns(self, name, full) (L120)
- iter_files(self, root, on_error, progress) (L134)
- scan(self, root, progress) (L227)
- find_empty(self, root) (L253)
- _visit(dpath) (L268)
- scan_ntfs_usn(self, volume_root, progress_callback) (L313)
src/cortex_unified/engine/guard.py¶
Module: Path safety guard for destructive operations.
- class GuardVerdict (L26)
- bool(self) (L32)
- _windows_protected() (L39)
- _posix_protected() (L61)
- class PathGuard (L74)
- init(self, sandbox, allow_system) (L77)
- check(self, path) (L95)
- is_writable(self, path) (L124)
- _is_within(child, parent) (L135)
src/cortex_unified/engine/hashing.py¶
Module: Fast content hashing and duplicate detection.
- _new_hasher() (L56)
- hash_file(path, limit) (L65)
- class DuplicateFinderEngine (L89)
- init(self, workers) (L92)
- find(self, entries, progress) (L101)
- _group_by_hash(self, paths, limit, progress) (L130)
- wasted_bytes(groups) (L155)
src/cortex_unified/engine/models.py¶
Module: Immutable-ish data models shared across the engine.
- class StorageKind (L17)
- overwrite_effective(self) (L34)
- class DeletionMethod (L39)
- class DeletionOutcome (L48)
- class FileEntry (L60)
- age_days(self) (L84)
- reclaimable_size(self) (L92)
- is_cloud_placeholder(self) (L104)
- is_junction(self) (L110)
- special_note(self) (L116)
- to_dict(self) (L121)
- class ScanResult (L138)
- error_count(self) (L156)
- to_dict(self) (L162)
- class DeletionResult (L181)
- succeeded(self) (L192)
- to_dict(self) (L198)
src/cortex_unified/engine/secure_delete.py¶
Module: Storage-aware deletion with honest guarantees.
- _resolve_send2trash() (L45)
- _has_trash() (L61)
- getattr(name) (L66)
- class OverwriteNotEffective (L85)
- init(self, kind, path) (L92)
- class SecureDeleter (L105)
- init(self, guard, probe, overwrite_passes) (L108)
- delete(self, path, method, force_overwrite_on_flash) (L124)
- delete_many(self, paths, method, progress, cancel_event, sizes) (L179)
- _fast_safe(self, p, approved) (L222)
- _delete_batch(self, files, dirs, method, progress, cancel_event, sizes) (L243)
- _size(p) (L253)
- _recycle_batch(self, items, progress, cancel_event, chunk, sizes) (L298)
- _size(p) (L313)
- _recycle(self, p, size) (L366)
- _plain_delete(self, p, size) (L382)
- _is_cloud_placeholder(p) (L393)
- _overwrite_delete(self, p, size, force) (L406)
- _overwrite_file(self, p) (L442)
- _record(self, p, outcome, method, size, reason) (L466)
- _quick_locked(p) (L476)
- _size_of(p) (L494)
- adaptive_delete(self, path, level, verify) (L512)
- summary(self) (L544)
src/cortex_unified/engine/service.py¶
Module: High-level cleaner service - the single orchestration entry point.
- _throttle(cb, interval) (L38)
- wrapped(msg) (L49)
- class CategoryScan (L62)
- file_count(self) (L75)
- breakdown(self, limit) (L81)
- to_dict(self) (L118)
- class CleanupReport (L135)
- total_reclaimable_bytes(self) (L142)
- total_files(self) (L149)
- cloud_skipped(self) (L156)
- cloud_skipped_bytes(self) (L161)
- cloud_note(self) (L166)
- to_dict(self) (L179)
- class CleanerService (L193)
- init(self, guard, probe) (L196)
- scan_categories(self, category_ids, max_risk, include_disabled, progress, cancel_event) (L209)
- clean_categories(self, report, method, progress, cancel_event) (L250)
- find_duplicates(self, roots, min_size, progress, cancel_event, extensions) (L274)
- _hprog(done, total) (L307)
- find_large_files(self, root, min_mb, limit, progress, cancel_event) (L315)
- _rep(cur_dir, seen) (L331)
- find_empty(self, root, cancel_event) (L342)
- _select_categories(self, ids, max_risk, include_disabled) (L355)
- _scan_category(self, cat, progress, cancel_event) (L369)
- _matches_any(name, globs) (L415)
src/cortex_unified/engine/storage.py¶
Module: Cross-platform storage-medium detection.
- class StorageInfo (L54)
- overwrite_effective(self) (L62)
- class StorageProbe (L69)
- init(self) (L72)
- probe(self, path) (L79)
- _mount_key(self, path) (L94)
- _probe_uncached(self, path, anchor) (L108)
- _probe_windows(self, drive_letter) (L122)
- _probe_linux(self, path) (L152)
- _probe_macos(self, path) (L179)
- _run(cmd) (L194)
- _shared_probe() (L212)
- detect_storage(path) (L219)
src/cortex_unified/engine/winattrs.py¶
Module: Windows file-attribute and reparse-point classification.
- attrs_of(st) (L72)
- reparse_tag_of(st) (L77)
- is_reparse_point(attrs) (L92)
- is_cloud_tag(tag) (L97)
- is_dehydrated(attrs) (L102)
- is_cloud(attrs, tag) (L113)
- is_junction(tag) (L122)
- size_may_be_misleading(attrs) (L132)
- describe(attrs, tag) (L137)
- on_disk_size(path, logical_size) (L160)
src/cortex_unified/explorer/init.py¶
Module: Cortex Cleaner Explorer Subsystem.
src/cortex_unified/explorer/archive.py¶
Module: Archive inspector and extraction module.
src/cortex_unified/explorer/cloud.py¶
Module: Cloud integration module.
src/cortex_unified/explorer/content_search.py¶
Module: File content search and ripgrep integration.
src/cortex_unified/explorer/core.py¶
Module: Native core file engine and table model.
src/cortex_unified/explorer/ffi.py¶
Module: Rust FFI bridge for high-performance filesystem operations.
src/cortex_unified/explorer/folder_tree.py¶
Module: Filesystem tree view navigation widget.
src/cortex_unified/explorer/icons.py¶
Module: Vector icon pipeline for Explorer subsystem.
src/cortex_unified/explorer/indexer.py¶
Module: Fast background filesystem indexing engine.
src/cortex_unified/explorer/network.py¶
Module: Network filesystem and remote share explorer.
src/cortex_unified/explorer/plugins.py¶
Module: Plugin architecture and extension manager.
src/cortex_unified/explorer/transfers.py¶
Module: File transfer queue and progress monitoring module.
src/cortex_unified/explorer/undo.py¶
Module: Undo and redo file operation history stack.
src/cortex_unified/explorer/widget.py¶
Module: Fluent Qt6 File Explorer Widget module.
src/cortex_unified/i18n/init.py¶
Module: Backwards-compatibility alias for cortex_unified.translations.
src/cortex_unified/licensing/init.py¶
Module: Offline-first licensing and entitlement system.
src/cortex_unified/licensing/fingerprint.py¶
Module: Stable, privacy-preserving machine fingerprint for license binding.
- _windows_ids() (L35)
- _macos_ids() (L62)
- _linux_ids() (L86)
- collect_identifiers() (L103)
- compute_fingerprint() (L122)
- get_fingerprint() (L128)
- reset_cache() (L136)
src/cortex_unified/licensing/gating.py¶
Module: Entitlement checks: the single gateway every gated feature goes through.
- class EntitlementError (L39)
- init(self, feature, required, current, message) (L42)
- current_tier() (L57)
- effective_features() (L62)
- allowed(feature) (L67)
- require(feature) (L80)
- gate(feature) (L90)
- decorator(func) (L93)
- wrapper(args, *kwargs) (L95)
- reset_cache() (L117)
src/cortex_unified/licensing/license_manager.py¶
Module: Offline license activation, validation and trial management.
- _today() (L57)
- _parse_date(value) (L64)
- class LicensePayload (L75)
- canonical(self) (L88)
- sign(self) (L101)
- verify_signature(self, signature) (L107)
- from_dict(cls, raw) (L114)
- class LicenseState (L135)
- features(self) (L150)
- allows(self, feature) (L154)
- to_dict(self) (L158)
- _masked_key(self) (L175)
- license_path() (L186)
- class LicenseManager (L191)
- init(self, path) (L200)
- _file_signature(path) (L213)
- invalidate(self) (L221)
- _save(self, payload) (L227)
- _load_document(self) (L240)
- activate(self, key, tier, name, email, term_days) (L261)
- start_trial(self) (L293)
- deactivate(self) (L305)
- validate(self) (L316)
- _validate_uncached(self) (L332)
- status(self) (L379)
- get_license_manager() (L390)
- reset_singleton() (L399)
src/cortex_unified/licensing/tiers.py¶
Module: Tier and feature definitions for Cortex Cleaner.
- class Tier (L19)
- rank(self) (L29)
- includes(self, minimum) (L33)
- parse(cls, value) (L38)
- class Feature (L55)
- features_for_tier(tier) (L130)
src/cortex_unified/performance/init.py¶
Module: Performance optimization and monitoring module for Cortex Cleaner.
src/cortex_unified/performance/multi_drive_scanner.py¶
Module: Parallel scanning across multiple drives, volumes, and user profiles.
- class DriveInfo (L34)
- used_size(self) (L46)
- usage_percent(self) (L51)
- class NetworkDrive (L58)
- class UserProfile (L69)
- class ScanProgress (L81)
- post_init(self) (L91)
- overall_progress(self) (L99)
- class AggregatedResult (L110)
- class MultiUserScanner (L120)
- init(self, config) (L127)
- detect_user_profiles(self) (L139)
- _detect_windows_user_profiles_enhanced(self) (L170)
- _detect_unix_user_profiles_enhanced(self) (L213)
- _check_path_permissions(self, path) (L265)
- _get_windows_last_login(self, username) (L278)
- _get_unix_last_login(self, username) (L313)
- _is_user_active_windows(self, username) (L338)
- _is_user_active_unix(self, username) (L352)
- scan_user_profile(self, profile, scanner_factory) (L366)
- handle_permissions(self, path) (L407)
- _can_elevate(self) (L440)
- aggregate_results(self, results) (L451)
- class DriveManager (L490)
- init(self, config) (L493)
- detect_all_drives(self) (L505)
- _create_drive_info(self, partition) (L543)
- _get_drive_type(self, partition) (L577)
- _get_drive_label(self, path) (L605)
- _fallback_drive_detection(self) (L635)
- _detect_windows_drives(self) (L652)
- _detect_unix_drives(self) (L696)
- handle_network_drives(self, credentials) (L723)
- _process_network_drive(self, partition) (L746)
- _store_credentials(self, credentials) (L773)
- _get_stored_credentials(self, server) (L804)
- _attempt_network_connection(self, network_drive, credentials) (L818)
- _connect_windows_network_drive(self, network_drive, credentials) (L825)
- _connect_unix_network_drive(self, network_drive, credentials) (L850)
- monitor_drive_changes(self, callback) (L857)
- _start_monitoring(self) (L864)
- _monitor_loop(self) (L873)
- _notify_drive_change(self, drive_path, change_type) (L903)
- handle_disconnected_drives(self, drive_id) (L911)
- stop_monitoring(self) (L938)
- _parse_network_path(self, device_path) (L944)
- class MultiDriveScanner (L965)
- init(self, config) (L968)
- detect_drives(self) (L978)
- detect_all_drives(self) (L982)
- scan_multiple_drives(self, drives, parallel, scanner_factory) (L1036)
- _scan_drives_parallel(self, drives, scanner_factory) (L1082)
- _scan_drives_sequential(self, drives, scanner_factory) (L1119)
- _scan_single_drive_with_progress(self, drive_path, scanner_factory) (L1149)
- _scan_single_drive(self, drive_path, scanner_factory) (L1191)
- handle_network_drives(self, credentials) (L1204)
- monitor_drive_changes(self, callback) (L1208)
- handle_disconnected_drives(self, drive_id) (L1214)
- scan_user_profiles(self, admin_mode) (L1220)
- detect_user_profiles(self, admin_mode) (L1271)
- add_progress_callback(self, callback) (L1275)
- _notify_progress(self, message) (L1281)
- get_scan_progress(self) (L1294)
- get_scan_results(self) (L1299)
- get_aggregated_results(self) (L1304)
- clear_results(self) (L1312)
- scan_multiple_locations(self, locations, parallel) (L1318)
- stop_monitoring(self) (L1389)
src/cortex_unified/performance/optimization.py¶
Module: Performance optimization utilities for Cortex Cleaner operations.
- class OptimizationSettings (L19)
- class PerformanceOptimizer (L32)
- init(self, settings, logger) (L35)
- start_optimization(self) (L59)
- stop_optimization(self) (L84)
- _optimize_garbage_collection(self) (L103)
- _start_memory_monitoring(self) (L119)
- monitor_memory() (L126)
- _trigger_memory_cleanup(self) (L156)
- _clear_internal_caches(self) (L174)
- get_optimal_thread_count(self, operation_type) (L182)
- get_optimal_buffer_size(self, file_size) (L214)
- should_use_streaming(self, data_size) (L233)
- optimize_for_operation(self, operation_name, operation_func, args, *kwargs) (L245)
- _get_current_memory_mb(self) (L295)
- get_performance_report(self) (L308)
- suggest_optimizations(self) (L351)
- export_performance_data(self, filepath) (L399)
src/cortex_unified/performance/profiler.py¶
Module: Performance profiling and monitoring for Cortex Cleaner operations.
- class ProfileReport (L12)
- to_dict(self) (L21)
- class OperationProfiler (L34)
- init(self) (L37)
- profile_operation(self, operation_name) (L47)
- start_operation(self, operation_name) (L55)
- end_operation(self) (L61)
- get_reports(self) (L81)
- get_report_by_name(self, operation_name) (L85)
- clear_reports(self) (L89)
- get_summary(self) (L94)
src/cortex_unified/performance/resource_monitor.py¶
Module: Resource monitoring and management for Cortex Cleaner operations.
- class SystemMetrics (L17)
- class ResourceMonitor (L30)
- init(self, logger) (L33)
- start_monitoring(self, interval) (L55)
- stop_monitoring(self) (L70)
- add_callback(self, callback) (L80)
- remove_callback(self, callback) (L88)
- get_current_metrics(self) (L97)
- _monitor_loop(self) (L149)
- _add_to_history(self, metrics) (L194)
- _check_thresholds(self, metrics) (L202)
- get_metrics_summary(self, duration_minutes) (L214)
- get_optimization_recommendations(self) (L254)
- should_throttle_operations(self) (L287)
- get_recommended_thread_count(self) (L304)
- export_metrics(self, filepath, duration_hours) (L327)
src/cortex_unified/performance/resource_throttler.py¶
Module: Resource throttling and system performance management.
- class SystemLoad (L14)
- is_high_load(self, cpu_threshold, memory_threshold) (L22)
- class ResourceThrottler (L27)
- init(self, cpu_limit, io_priority, memory_limit) (L30)
- set_process_priority(self, priority) (L50)
- set_eco_qos(self, enable) (L92)
- get_system_load(self) (L137)
- throttle_if_needed(self) (L189)
- adjust_thread_count(self, current_threads) (L214)
- start_monitoring(self, interval) (L238)
- monitor_loop() (L245)
- stop_monitoring(self) (L259)
- get_cached_load(self) (L265)
- is_throttling_active(self) (L270)
- get_throttle_delay(self) (L274)
- reset_throttling(self) (L278)
src/cortex_unified/performance/scan_manager.py¶
Module: Scan management with checkpoint and resume functionality.
- class ScanCheckpoint (L15)
- to_dict(self) (L26)
- from_dict(cls, data) (L33)
- class ScanProgress (L41)
- class ScanManager (L51)
- init(self, config) (L54)
- create_checkpoint(self, scan_state) (L74)
- load_checkpoint(self, checkpoint_id) (L112)
- pause_scan(self) (L146)
- resume_scan(self, checkpoint_id) (L151)
- is_paused(self) (L159)
- wait_if_paused(self) (L164)
- start_scan(self, total_items) (L169)
- stop_scan(self) (L180)
- update_progress(self, current_path, increment) (L186)
- get_scan_progress(self) (L194)
- list_checkpoints(self) (L213)
- delete_checkpoint(self, checkpoint_id) (L231)
- cleanup_old_checkpoints(self, max_age_days) (L253)
src/cortex_unified/performance/settings_integration.py¶
Module: Settings integration for performance optimization and throttling logic.
- class PerformanceSettingsWidget (L20)
- init(self, parent) (L25)
- setup_ui(self) (L36)
- load_settings(self) (L85)
- save_settings(self) (L103)
- class PerformanceManager (L127)
- init(self) (L130)
- load_saved_settings(self) (L142)
- apply_properties(self, properties) (L161)
- create_settings_widget(self, parent) (L185)
- get_performance_manager() (L194)
src/cortex_unified/reports/init.py¶
Module: Reports and restore module for Cortex Cleaner.
src/cortex_unified/reports/reports.py¶
Module: Report generation and export: text, HTML, JSON, and CSV.
- class ReportsGenerator (L17)
- init(self, config, reports_dir) (L20)
- _get_default_reports_dir(self) (L33)
- generate_text_report(self, data, report_name) (L39)
- _format_text_report(self, data) (L65)
- _add_text_section(self, lines, data, indent) (L83)
- generate_html_report(self, data, report_name) (L101)
- _format_html_report(self, data) (L127)
- _format_html_section(self, data, level) (L156)
- generate_json_report(self, data, report_name) (L190)
- generate_csv_report(self, data, report_name) (L219)
- get_stats(self) (L249)
- list_reports(self) (L268)
- delete_report(self, report_name) (L294)
src/cortex_unified/reports/restore_manager.py¶
Module: Backup manifests and quarantine-style restoration of deleted files.
- class RestoreManager (L16)
- init(self, config, backup_dir) (L19)
- _get_default_backup_dir(self) (L33)
- list_manifests(self) (L39)
- get_manifest_details(self, manifest_file) (L62)
- restore_from_manifest(self, manifest_file, dry_run, overwrite_existing) (L73)
- create_backup(self, files_to_backup, backup_name) (L176)
- delete_backup(self, backup_name) (L235)
- get_stats(self) (L258)
- filter_manifests_by_date(self, start_date, end_date) (L275)
src/cortex_unified/scheduler/init.py¶
Module: Task scheduling module for Cortex Cleaner.
src/cortex_unified/scheduler/auto_clean_rules.py¶
Module: Condition-triggered cleanup rules evaluated against live system state.
- class AutoCleanRules (L19)
- init(self, config) (L22)
- add_disk_usage_rule(self, threshold_percent, action, clean_params) (L37)
- add_startup_rule(self, action, clean_params) (L61)
- add_shutdown_rule(self, action, clean_params) (L82)
- add_scheduled_rule(self, schedule_type, schedule_params, action, clean_params) (L103)
- _check_disk_usage(self, threshold_percent) (L130)
- _execute_clean_action(self, action, clean_params) (L149)
- _clean_empty_files(self, params) (L163)
- _clean_temp_files(self, params) (L182)
- _clean_cache_files(self, params) (L207)
- _custom_clean_action(self, params) (L238)
- evaluate_rules(self) (L277)
- start_monitoring(self, interval_seconds) (L307)
- stop_monitoring(self) (L324)
- _monitor_loop(self, interval_seconds) (L332)
- get_stats(self) (L342)
- enable_rule(self, rule_index) (L355)
- disable_rule(self, rule_index) (L362)
- remove_rule(self, rule_index) (L368)
src/cortex_unified/scheduler/scheduler.py¶
Module: OS-native scheduling for cleanup jobs: schtasks, launchd, cron.
- class TaskScheduler (L18)
- init(self, config) (L21)
- create_scheduled_task(self, name, command, schedule_type, schedule_params) (L32)
- _create_windows_task(self, name, command, schedule_type, schedule_params) (L64)
- _create_macos_task(self, name, command, schedule_type, schedule_params) (L105)
- _generate_launchd_plist(self, name, command, schedule_type, schedule_params) (L130)
- _create_linux_task(self, name, command, schedule_type, schedule_params) (L209)
- _generate_cron_expression(self, schedule_type, schedule_params) (L239)
- list_scheduled_tasks(self) (L260)
- _list_windows_tasks(self) (L276)
- _list_macos_tasks(self) (L301)
- _list_linux_tasks(self) (L325)
- delete_scheduled_task(self, name) (L347)
- get_stats(self) (L379)
src/cortex_unified/system_tools/init.py¶
Module: System tools module for Cortex Cleaner.
src/cortex_unified/system_tools/adaptive_sanitizer.py¶
Module: Adaptive privacy-preserving sanitization (PL0-PL3).
- class PrivacyLevel (L73)
- class SanitizeResult (L89)
- to_dict(self) (L103)
- _is_hot(path) (L118)
- class AdaptiveSanitizer (L140)
- init(self, guard, probe) (L150)
- auto_level(self, path, requested) (L161)
- sanitize(self, path, level, verify, force, timeout) (L186)
- _execute(self, p, lvl, kind, verify, force, timeout) (L250)
- _pl0(self, p, kind, verify, force, timeout) (L267)
- _pl1(self, p, kind, verify, force, timeout) (L301)
- _pl2(self, p, kind, verify, timeout) (L380)
- _pl3(self, p, kind, verify, timeout) (L435)
- _trim_parent(self, p) (L458)
src/cortex_unified/system_tools/ai_telemetry_cleaner.py¶
Module: Windows 11 AI, Copilot, Recall & Semantic Telemetry Cleaner.
- class AiArtifactInfo (L35)
- to_dict(self) (L45)
- class AiTelemetryReport (L59)
- to_dict(self) (L68)
- class AiCleanResult (L81)
- to_dict(self) (L89)
- class AiTelemetryCleaner (L100)
- init(self) (L103)
- _get_search_roots(self) (L107)
- scan(self) (L157)
- _record_artifact(self, report, name, category, path, description, is_wal) (L183)
- checkpoint_wal_journal(self, wal_path) (L216)
- clean(self, checkpoint_wal, dry_run) (L246)
src/cortex_unified/system_tools/app_uninstaller.py¶
Module: Windows Application Uninstaller for Cortex Cleaner.
- class AppUninstaller (L12)
- init(self) (L22)
- get_installed_apps(self) (L30)
- uninstall_app(self, app_info, silent) (L79)
- get_app_size_mb(self, app_info) (L119)
- _read_app_entry(winreg, hive, parent_path, subkey_name) (L131)
- _val(name, default) (L139)
src/cortex_unified/system_tools/app_updater.py¶
Module: Software Updater - a safe GUI-friendly wrapper over Windows Package Manager.
- class UpgradableApp (L32)
- to_dict(self) (L40)
- class AppUpdater (L51)
- init(self) (L54)
- is_available() (L59)
- list_upgradable(self) (L63)
- upgrade(self, package_id) (L72)
- upgrade_all(self) (L91)
- parse_upgrade_output(text) (L105)
- _run(self, cmd, timeout) (L153)
src/cortex_unified/system_tools/bitlocker_auditor.py¶
Module: Cortex Cleaner — BitLocker & Drive Encryption Auditor.
- class EncryptedVolumeInfo (L23)
- is_protected(self) (L37)
- is_fully_encrypted(self) (L42)
- class BitLockerAuditReport (L48)
- class BitLockerAuditor (L58)
- init(self) (L61)
- audit(self) (L65)
- _query_manage_bde(self) (L99)
- _query_wmi_powershell(self) (L185)
src/cortex_unified/system_tools/bitrot_scrubber.py¶
Module: Cortex Cleaner — Silent BitRot & File Integrity Scrubber.
- class ScrubberRecord (L25)
- class BitRotIssue (L35)
- class BitRotScrubReport (L45)
- class BitRotScrubber (L57)
- init(self, db_path) (L60)
- _init_db(self) (L71)
- _compute_sha256(path) (L88)
- scrub(self, target_dir, max_files) (L100)
- reset_baseline(self, target_dir) (L188)
src/cortex_unified/system_tools/boot_performance.py¶
Module: Boot performance analysis - using Windows' OWN boot measurements.
- class BootRecord (L45)
- boot_seconds(self) (L52)
- to_dict(self) (L56)
- class BootIssue (L63)
- impact_seconds(self) (L71)
- to_dict(self) (L75)
- class BootPerformanceMonitor (L81)
- is_supported() (L85)
- analyze(self, max_boots, max_issues) (L89)
- _script(max_boots, max_issues) (L105)
- _parse(out) (L126)
- _int(v) (L135)
- _as_list(v) (L144)
- _run(self, script) (L180)
src/cortex_unified/system_tools/browser_cleaner.py¶
Module: Deep Browser Cleaner — IndexedDB, Service Workers, Code Cache, GPU cache, cookies.
- class Cleanable (L75)
- _discover_chromium_profiles(base_names) (L89)
- _discover_firefox_profiles() (L125)
- class DeepBrowserCleaner (L156)
- init(self, keep_cookies, progress, cancel) (L158)
- scan(self) (L167)
- _scan_chromium_profile(self, profile, browser) (L183)
- _scan_firefox_profile(self, profile) (L225)
- clean(self, paths, shred) (L257)
- clean_cookies_keep_list(self, cookies_db) (L285)
- vacuum_databases(self, dbs) (L309)
src/cortex_unified/system_tools/browser_deep_cleaner.py¶
Module: Cortex Cleaner — Forensic Multi-Browser Deep Privacy & Cache Sanitizer.
- class BrowserTarget (L20)
- class BrowserCleanResult (L30)
- post_init(self) (L37)
- class BrowserDeepCleaner (L45)
- _dir_stats(cls, path) (L49)
- scan_browser_caches(cls) (L69)
- clean_targets(cls, targets) (L145)
src/cortex_unified/system_tools/browser_extensions.py¶
Module: Browser-extension audit - read-only inventory of installed extensions.
- class BrowserExtension (L27)
- broad_permissions(self) (L36)
- to_dict(self) (L43)
- class BrowserExtensionAuditor (L55)
- init(self, home) (L66)
- _localappdata(self) (L70)
- audit(self) (L79)
- _scan_chromium(self) (L88)
- _scan_chromium_ext_root(self, browser, ext_root) (L106)
- _from_chromium_manifest(browser, ext_id, manifest) (L130)
- _firefox_root(self) (L147)
- _scan_firefox(self) (L156)
- _safe_iterdir(path) (L189)
- _read_manifest(path) (L199)
src/cortex_unified/system_tools/checksum_matrix.py¶
Module: Forensic Checksum Matrix & Integrity Manifest Generator/Verifier.
- class FileChecksumResult (L37)
- to_dict(self) (L48)
- class ManifestVerifyItem (L63)
- to_dict(self) (L71)
- class ManifestVerificationReport (L83)
- is_all_valid(self) (L96)
- to_dict(self) (L100)
- class ChecksumMatrix (L116)
- init(self) (L119)
- hash_file(self, file_path, algorithms) (L123)
- generate_manifest(self, directory, output_file, algorithm, recursive) (L173)
- verify_manifest(self, manifest_file) (L216)
src/cortex_unified/system_tools/compact_os.py¶
Module: NTFS CompactOS / per-folder NTFS compression support.
- class FolderEstimate (L97)
- to_dict(self) (L106)
- class CompressionResult (L119)
- class CompactOSManager (L128)
- init(self) (L131)
- is_supported() (L139)
- is_admin(self) (L143)
- compactos_query(self) (L157)
- drive_compression_state(self, drive) (L177)
- find_compressible_folders(self, root, min_size_mb, cancel_event, progress_callback) (L192)
- _estimate_folder(self, folder, cancel_event, progress_callback) (L234)
- _check_compression_attribute(self, folder) (L292)
- compact_folder(self, path, recursive, cancel_event) (L308)
- _parse_failure(out) (L349)
- _run(self, args, timeout, cancel_event) (L364)
src/cortex_unified/system_tools/component_store.py¶
Module: Component store (WinSxS) analysis and Windows upgrade leftovers.
- class LeftoverRisk (L39)
- class StoreAnalysis (L48)
- explorer_gap_note(self) (L65)
- reclaimable_estimate(self) (L79)
- to_dict(self) (L88)
- class Leftover (L107)
- removable_here(self) (L120)
- rollback_expired(self) (L125)
- to_dict(self) (L129)
- class CleanupOutcome (L145)
- freed_bytes(self) (L157)
- to_dict(self) (L161)
- class ComponentStore (L174)
- init(self) (L177)
- is_supported() (L182)
- is_elevated() (L187)
- analyze(self, timeout, cancel_event) (L199)
- _parse_analysis(out) (L216)
- _bytes_after(label) (L227)
- find_leftovers(self, progress, cancel_event, analysis) (L281)
- _try_remove_spurious_package(self, timeout) (L425)
- cleanup(self, reset_base, timeout, progress, cancel_event, auto_fix_spurious) (L443)
- run_servicing_task(self, timeout) (L574)
- _run_dism(self, args, timeout, cancel_event) (L601)
- _decode(raw) (L624)
- _dir_size(path) (L638)
- _age_days(path) (L659)
src/cortex_unified/system_tools/component_store_cleaner.py¶
Module: Component Store / WinSxS Cleaner — DISM-based analysis and cleanup.
- class ComponentStoreInfo (L93)
- reclaimable_gb(self) (L106)
- class CleanupResult (L115)
- class PackageInfo (L127)
- class ComponentStoreCleaner (L139)
- init(self, dism_path, create_restore_point, progress_callback, cancel_event) (L142)
- _run_dism(self, args, timeout) (L164)
- _parse_analyze(self, output) (L181)
- _parse_packages(self, output) (L227)
- analyze(self) (L250)
- cleanup(self, reset_base, sp_superseded) (L260)
- fix_staged_packages(self) (L305)
- analyze_offline(self, wim_path, index) (L349)
- cleanup_offline(self, wim_path, index, reset_base) (L359)
- schedule_cleanup(self, task_name, frequency_days, reset_base) (L388)
src/cortex_unified/system_tools/context_menu_manager.py¶
Module: Cortex Cleaner — Windows Context Menu & Shell Extension Manager.
- class ContextMenuItem (L25)
- class ContextMenuReport (L38)
- class ContextMenuManager (L45)
- _extract_command(cls, key_path) (L59)
- _check_program_exists(cls, command) (L72)
- enumerate_context_menu(cls) (L91)
- analyze(cls) (L156)
- disable_entry(cls, registry_path) (L167)
- enable_entry(cls, registry_path) (L182)
src/cortex_unified/system_tools/crash_dump_cleaner.py¶
Module: Cortex Cleaner — Windows Crash Dump & Error Reporting (WER) Cleaner.
- class CrashDumpItem (L18)
- class CrashDumpCleanReport (L28)
- post_init(self) (L36)
- class CrashDumpCleaner (L44)
- scan_dumps(cls) (L48)
- clean_dumps(cls, items_to_delete) (L120)
src/cortex_unified/system_tools/defender.py¶
Module: Windows Security (Defender) status + quick scan trigger.
- class DefenderStatus (L27)
- healthy(self) (L40)
- to_dict(self) (L45)
- class WindowsDefender (L61)
- is_supported() (L65)
- status(self) (L69)
- _parse_status(out) (L83)
- _int(v) (L94)
- recent_threats(self, limit) (L117)
- _parse_threats(out) (L132)
- start_quick_scan(self) (L154)
- _clean_date(raw) (L165)
- _run(self, script, timeout, want_returncode) (L181)
src/cortex_unified/system_tools/delivery_optimization_cleaner.py¶
Module: Cortex Cleaner — Windows Delivery Optimization (WUDO) Cache Cleaner.
- class DeliveryOptimizationStatus (L18)
- class DeliveryOptimizationCleanReport (L27)
- post_init(self) (L33)
- class DeliveryOptimizationCleaner (L41)
- get_status(cls) (L45)
- clean_cache(cls) (L81)
src/cortex_unified/system_tools/dev_cleaner.py¶
Module: Cortex Cleaner — Developer Ecosystem & Build Artifacts Purger.
- class DevCacheItem (L24)
- class DevCleanResult (L36)
- post_init(self) (L42)
- class DevCleaner (L50)
- _dir_metrics(cls, dir_path) (L54)
- scan_dev_caches(cls) (L74)
- clean_items(cls, items) (L172)
src/cortex_unified/system_tools/dev_drive_optimizer.py¶
Module: Cortex Cleaner — ReFS Dev Drive & Block-Cloning Optimizer.
- class DevDriveInfo (L28)
- class DevDriveAuditReport (L42)
- class DevDriveOptimizer (L50)
- init(self) (L53)
- audit(self) (L57)
- _get_logical_drives(self) (L89)
- _inspect_drive(self, drive_letter) (L98)
- test_block_cloning(self, source_path, target_path) (L173)
src/cortex_unified/system_tools/dev_package_cache_cleaner.py¶
Module: Developer Package Caches (Winget, Cargo, Vcpkg, NuGet, Pip) Deep Cleaner.
- class DevPackageStoreInfo (L36)
- to_dict(self) (L46)
- class DevPackageReport (L60)
- to_dict(self) (L67)
- class DevPackageCleanResult (L78)
- to_dict(self) (L86)
- class DevPackageCacheCleaner (L97)
- init(self) (L100)
- get_candidate_stores(self) (L104)
- scan(self) (L168)
- clean(self, selected_ecosystems, dry_run) (L204)
src/cortex_unified/system_tools/device_fingerprint.py¶
Module: Pure, conservative device fingerprinting from observed LAN evidence.
- class FingerprintEvidence (L13)
- to_dict(self) (L21)
- class DeviceFingerprint (L33)
- to_dict(self) (L43)
- _get(value, name, default) (L74)
- _observations(device) (L81)
- _add(evidence, source, value, strength, weight, detail) (L101)
- _collect(device, observations) (L119)
- _rank(text, rules) (L156)
- _product_version(evidence) (L169)
- fingerprint_device(device) (L189)
src/cortex_unified/system_tools/diagnostic_data_manager.py¶
Module: Cortex Cleaner — Windows Telemetry & Diagnostic Data Manager.
- class TelemetrySetting (L25)
- class TelemetryAuditReport (L39)
- class DiagnosticDataManager (L48)
- _read_dword(cls, hive, subkey, name) (L132)
- _write_dword(cls, hive, subkey, name, value) (L146)
- audit_telemetry(cls) (L162)
- apply_maximum_privacy(cls) (L199)
src/cortex_unified/system_tools/directstorage_optimizer.py¶
Module: Windows 11 DirectStorage & BypassIO Hardware Acceleration Auditor.
- class BypassIoVolumeReport (L23)
- to_dict(self) (L34)
- class DirectStorageAuditReport (L47)
- to_dict(self) (L56)
- class DirectStorageOptimizer (L67)
- init(self) (L70)
- parse_bypassio_output(cls, volume, text) (L75)
- _get_active_drives(self) (L114)
- audit(self) (L130)
src/cortex_unified/system_tools/disk_benchmark.py¶
Module: Cortex Cleaner — Storage Performance & IOPS Disk Benchmark.
- class DiskBenchmarkMetric (L23)
- class DiskBenchmarkReport (L32)
- class DiskBenchmarkEngine (L45)
- run_benchmark(cls, target_directory, file_size_mb, progress_cb, cancel_check) (L49)
src/cortex_unified/system_tools/disk_health.py¶
Module: Disk health (S.M.A.R.T.) reporting - read-only, honest.
- class DiskHealth (L27)
- is_healthy(self) (L40)
- to_dict(self) (L44)
- class DiskHealthMonitor (L59)
- is_supported() (L63)
- get_health(self) (L67)
- _parse(out) (L92)
- _int(v) (L103)
- _run(self, script) (L129)
src/cortex_unified/system_tools/dns_benchmark.py¶
Module: Cortex Cleaner — Multi-Threaded DNS Latency Benchmark & Optimizer.
- class DnsServerSpec (L21)
- class DnsBenchmarkResult (L44)
- class DnsBenchmarkEngine (L57)
- _build_dns_query(domain) (L63)
- _query_dns(cls, server_ip, domain, timeout_seconds) (L83)
- benchmark_server(cls, server, domains, timeout_seconds) (L101)
- run_full_benchmark(cls, servers, progress_cb, cancel_check) (L145)
- apply_dns_servers(cls, interface_name, primary_ip, secondary_ip) (L180)
src/cortex_unified/system_tools/drive_optimizer.py¶
Module: Media-aware drive optimization - the honest way.
- class OptimizeOp (L33)
- class DriveInfo (L41)
- to_dict(self) (L48)
- class OptimizeResult (L59)
- class DriveOptimizer (L67)
- init(self) (L70)
- is_supported() (L75)
- list_drives(self) (L79)
- _recommend(kind) (L91)
- optimize(self, letter, op, cancel_event) (L103)
- _fixed_drive_letters(self) (L146)
- _run_ps(self, script, timeout, cancel_event) (L161)
src/cortex_unified/system_tools/driver_inventory.py¶
Module: Driver inventory - READ-ONLY listing of installed device drivers.
- class DriverInfo (L28)
- to_dict(self) (L36)
- class DriverInventory (L47)
- is_supported() (L51)
- list_drivers(self) (L55)
- _parse(out) (L68)
- _clean_date(raw) (L105)
- _run(self, script) (L124)
src/cortex_unified/system_tools/driver_manager.py¶
Module: Driver Cleaner & Updater — offline-capable, WHQL-verified, restore points.
- class DriverInfo (L78)
- to_dict(self) (L98)
- class DriverPack (L105)
- class ScanResult (L119)
- to_json(self) (L127)
- class DriverManager (L142)
- init(self, create_restore_point, progress_callback, cancel_event, offline_mode, driverpack_index) (L145)
- _run(self, cmd, timeout) (L166)
- _run_ps(self, script, timeout) (L183)
- _load_index(self, path) (L189)
- _save_index(self, path) (L204)
- _pack_to_dict(self, pack) (L215)
- _enumerate_pnp(self) (L224)
- _check_updates_online(self, drivers) (L311)
- _wua_driver_updates(self) (L411)
- _check_updates_offline(self, drivers) (L435)
- _version_newer(self, v1, v2) (L459)
- parse(v) (L461)
- scan(self) (L472)
- update_selected(self, hardware_ids, force) (L496)
- _download_and_install(self, drv, force) (L529)
- _install_from_store(self, inf_name, force) (L549)
- cleanup_driver_store(self, dry_run) (L557)
- export_driverpack_index(self, path) (L610)
- get_stats(self) (L615)
src/cortex_unified/system_tools/driver_store_cleaner.py¶
Module: Cortex Cleaner — Driver Store Explorer & Superseded Driver Purger.
- class DriverPackage (L22)
- class DriverCleanResult (L36)
- post_init(self) (L42)
- class DriverStoreCleaner (L50)
- enumerate_drivers(cls) (L54)
- delete_driver(cls, published_name, force) (L116)
- export_all_drivers(cls, backup_dir) (L138)
src/cortex_unified/system_tools/env_variable_manager.py¶
Module: Cortex Cleaner — Windows Environment Variable & PATH Optimizer.
- class PathEntry (L26)
- class EnvVariable (L36)
- class PathAnalysisReport (L45)
- class CleanupResult (L56)
- class EnvironmentVariableManager (L65)
- _read_registry_value(cls, hive, subkey, name) (L72)
- _write_registry_value(cls, hive, subkey, name, value, reg_type) (L84)
- enumerate_variables(cls, scope) (L96)
- analyze_path(cls) (L123)
- clean_path(cls, scope, remove_dead, remove_duplicates, remove_empty) (L176)
- export_env_to_file(cls, output_path, scope, fmt) (L238)
src/cortex_unified/system_tools/event_log_cleaner.py¶
Module: Cortex Cleaner — Enterprise Windows Event Log Sweeper.
- class EventLogChannel (L20)
- class EventLogCleanResult (L31)
- class EventLogCleaner (L41)
- list_all_logs(cls, progress_cb) (L63)
- clear_log(cls, channel_name, backup_directory) (L105)
- clear_all_logs(cls, backup_directory, progress_cb) (L148)
src/cortex_unified/system_tools/event_log_monitor.py¶
Module: Cortex Cleaner — Windows Event Log Anomaly & Hardware Error Monitor.
- class LogAnomalyEvent (L22)
- class AnomalyScanReport (L34)
- class EventLogMonitor (L45)
- query_anomalies(cls, max_events_per_category) (L57)
src/cortex_unified/system_tools/external_exposure.py¶
Module: Explicit, read-only exposure lookup for a router-reported public IPv4.
- class ExposureLookupError (L18)
- class ExternalService (L23)
- to_dict(self) (L32)
- class ExposureResult (L42)
- to_dict(self) (L49)
- _public_ipv4(value) (L62)
- _default_transport(url, headers, timeout) (L77)
- class ExternalExposureClient (L105)
- init(self, provider, api_key, api_secret, transport) (L108)
- lookup(self, public_ip, consent, timeout) (L124)
- _parse_shodan(payload) (L154)
- _parse_censys(payload) (L180)
- _deduplicate(values) (L217)
src/cortex_unified/system_tools/firewall_manager.py¶
Module: Windows Firewall control - block/allow programs and remote addresses.
- class FirewallRule (L35)
- to_dict(self) (L47)
- class FirewallManager (L62)
- is_supported() (L66)
- block_program(self, program_path, direction, label) (L72)
- allow_program(self, program_path, direction, label) (L78)
- block_remote_address(self, address, direction, label) (L84)
- _new_rule(self, action, direction, label, program, remote_address) (L92)
- list_rules(self, cortex_only) (L120)
- set_enabled(self, name, enabled) (L142)
- remove_rule(self, name) (L150)
- _parse_rules(out) (L160)
- _valid_address(addr) (L192)
- _ps_quote(value) (L214)
- _run(self, script, want_output) (L218)
src/cortex_unified/system_tools/font_cache_manager.py¶
Module: Cortex Cleaner — Windows Font Cache Inspector & Optimizer.
- class FontEntry (L26)
- class FontAnalysisReport (L39)
- class FontCleanResult (L51)
- class FontCacheManager (L58)
- _get_fonts_dir(cls) (L64)
- _detect_format(cls, file_name) (L70)
- enumerate_fonts(cls) (L81)
- analyze(cls) (L135)
- clean_orphaned_entries(cls) (L157)
src/cortex_unified/system_tools/free_space_wipe.py¶
Module: Free-space wipe - overwrite the unused space on a volume.
- class WipeResult (L32)
- class FreeSpaceWiper (L40)
- is_supported() (L44)
- medium_for(self, drive_letter) (L48)
- wipe(self, drive_letter, cancel_event) (L56)
src/cortex_unified/system_tools/game_mode.py¶
Module: Gaming Mode - one-click, fully reversible PC boost for game sessions.
- class BoostReport (L64)
- to_dict(self) (L77)
- class GameMode (L92)
- init(self, extra_suspend, dry_run) (L95)
- is_supported() (L112)
- _candidates(self) (L116)
- preview(self) (L133)
- start(self) (L149)
- stop(self) (L195)
- enter(self) (L222)
- exit(self, exc_type, exc, tb) (L229)
- _pick_boost_plan(self, plans) (L240)
- run_proc_checked(args) (L252)
src/cortex_unified/system_tools/health_check.py¶
Module: One-click PC health check - aggregates the fast, read-only diagnostics.
- class HealthCheck (L31)
- to_dict(self) (L39)
- class HealthReport (L46)
- to_dict(self) (L52)
- class HealthChecker (L61)
- run(self, progress) (L64)
- _score(checks) (L90)
- _check_disk_space() (L113)
- _check_memory() (L133)
- _check_disk_health() (L150)
- _check_boot() (L172)
- _check_security() (L197)
- _check_updates() (L220)
src/cortex_unified/system_tools/hosts_file_manager.py¶
Module: Cortex Cleaner — Windows Hosts File Editor & Anti-Telemetry DNS Shield.
- class HostEntry (L22)
- class HostsOperationResult (L51)
- class HostsFileManager (L59)
- get_hosts_path(cls) (L63)
- parse_hosts_file(cls, hosts_path) (L71)
- _create_backup(cls, hosts_path) (L112)
- save_hosts_entries(cls, entries, hosts_path) (L125)
- apply_anti_telemetry_shield(cls, hosts_path) (L160)
src/cortex_unified/system_tools/junction_auditor.py¶
Module: Cortex Cleaner — NTFS Hard Link, Junction & Reparse Point Auditor.
- class ReparseItem (L28)
- class JunctionAuditReport (L39)
- class JunctionAuditor (L50)
- init(self) (L53)
- audit(self, root_path, max_depth) (L57)
- _scan(dir_path, depth) (L77)
- remove_dead_junction(self, link_path) (L167)
src/cortex_unified/system_tools/lan_scanner.py¶
Module: LAN device discovery - see what else is on your local network.
- class LanDevice (L37)
- to_dict(self) (L44)
- class LanScanner (L49)
- scan(self) (L52)
- _vendor_for(mac) (L58)
- _parse(cls, out) (L69)
- _run(self) (L96)
src/cortex_unified/system_tools/leftover_cleaner.py¶
Module: Leftover Cleaner - find and safely remove what an uninstaller leaves behind.
- edit_distance(a, b, max_distance) (L64)
- match_string_to_product(candidate, product_name) (L91)
- build_tokens(display_name, publisher) (L138)
- confidence_level(raw) (L179)
- class SafetyPolicy (L222)
- post_init(self) (L230)
- build(cls, extra_protected) (L238)
- is_prohibited(self, path) (L258)
- _has_system_attribute(path) (L272)
- _is_reparse_point(path) (L283)
- class InstalledApp (L313)
- to_dict(self) (L325)
- detect_installer_type(key_name, uninstall_string) (L335)
- read_installed_apps() (L347)
- _read_uninstall_entry(hive, hive_name, branch, subkey) (L381)
- _clean_registry_path(value) (L421)
- _tasks_root() (L433)
- class LeftoverFinding (L439)
- to_dict(self) (L450)
- _add(f, points, reason) (L460)
- class ExclusionsStore (L471)
- init(self, path) (L481)
- _load(self) (L491)
- save(self) (L506)
- _norm(path) (L526)
- add(self, path) (L533)
- discard(self, path) (L541)
- paths(self) (L549)
- len(self) (L553)
- is_excluded(self, path) (L557)
- class LeftoverScanner (L594)
- init(self, installed_apps, policy, exclusions, cancel_event) (L605)
- _cancelled(self) (L619)
- _allowed(self, f) (L623)
- _ensure_inventory(self) (L629)
- _load_live_inventory(self) (L645)
- scan_app(self, app) (L653)
- scan_orphans(self) (L685)
- _disambiguate_similar(self, app, findings) (L715)
- _sweep_roots(self) (L745)
- _program_dir_roots(self) (L773)
- _sweep_filesystem(self, app, tokens, findings) (L785)
- _walk_fs_level(self, app, tokens, directory, depth, findings) (L791)
- _score_folder_content(self, path, f, app) (L838)
- _score_orphan_folder(self, path, f) (L886)
- _claimed_by_live_app(self, path, name_lower) (L919)
- _folder_identity(self, name) (L931)
- _sweep_registry(self, app, tokens, findings) (L945)
- _walk_reg_level(self, app, tokens, hive, hive_name, key, display_path, depth, findings) (L970)
- _explicit_pointer(self, key, app) (L1018)
- find_residual_uninstall_keys(self, app) (L1040)
- _same_product(a, b) (L1068)
- _start_menu_dirs(self) (L1085)
- _sweep_shortcuts(self, app, findings) (L1096)
- _com_branches(self) (L1133)
- _sweep_com(self, app, findings) (L1143)
- _com_server_path(key, branch) (L1199)
- _sweep_inno_log(self, app, findings) (L1240)
- _sweep_services(self, app, findings) (L1284)
- _sweep_tasks(self, app, findings) (L1333)
- _cross_check(self, app, findings) (L1365)
- class CleanOutcome (L1400)
- to_dict(self) (L1409)
- class LeftoverCleaner (L1415)
- init(self, backup_root, policy) (L1434)
- clean(self, findings, create_restore_point, exclusions, cancel_event) (L1442)
- _restore_point() (L1493)
- _recycle(self, f) (L1508)
- _clean_registry(self, f, session) (L1527)
- _clean_service(self, f, session) (L1566)
- _clean_task(self, f, session) (L1601)
- _tasks_root_for(self, task_name) (L1633)
- _write_journal(self, session, journal, outcomes, restore_note) (L1639)
- stamp_now() (L1664)
src/cortex_unified/system_tools/load_tester.py¶
Module: Load / resilience tester - measure how much YOUR OWN service can take.
- class Authorization (L52)
- to_dict(self) (L60)
- class TargetAuthorizer (L68)
- classify(host) (L72)
- authorize(self, host, ownership_token, verify_public) (L99)
- _verify_ownership(host, token) (L124)
- new_token() (L139)
- class HttpLoadConfig (L150)
- class TcpLoadConfig (L162)
- class LoadResult (L172)
- rps(self) (L185)
- error_rate(self) (L190)
- percentile(self, p) (L194)
- summary(self) (L202)
- class LoadTester (L227)
- init(self) (L230)
- run_http(self, cfg, auth, progress, cancel_event, confirm, safe_mode) (L236)
- worker(idx) (L261)
- run_tcp(self, cfg, auth, progress, cancel_event, confirm, safe_mode) (L308)
- worker(idx) (L332)
- _run_pool(worker, conc, deadline, cancel, progress, result, start) (L366)
- _progress_snapshot(result, start, final) (L384)
- _audit(kind, target, auth, conc, dur) (L399)
src/cortex_unified/system_tools/memory_compression_tuner.py¶
Module: Cortex Cleaner — Windows Memory Compression & SysMain Optimizer.
- class MemoryCompressionStatus (L25)
- compressed_mb(self) (L38)
- total_ram_gb(self) (L43)
- available_ram_gb(self) (L48)
- class MemoryTunerReport (L54)
- class MemoryCompressionTuner (L60)
- init(self) (L63)
- audit(self) (L67)
- class MEMORYSTATUSEX (L113)
- set_memory_compression(self, enable) (L157)
src/cortex_unified/system_tools/memory_optimizer.py¶
Module: Cortex Cleaner — Working Set & System RAM Memory Optimizer.
- class SystemRamMetrics (L22)
- class ProcessMemoryItem (L34)
- class MemoryOptimizeResult (L44)
- post_init(self) (L51)
- ok(self) (L59)
- message(self) (L64)
- to_dict(self) (L70)
- class MemoryOptimizer (L82)
- get_system_ram_metrics(cls) (L92)
- scan_process_memory(cls, limit) (L112)
- trim_process_working_set(cls, pid) (L143)
- optimize_all_background_working_sets(cls, pids) (L179)
- memory_stats() (L204)
- optimize(min_rss_mb, dry_run) (L229)
src/cortex_unified/system_tools/memory_standby_purger.py¶
Module: Windows NT Kernel RAM Standby List & Working Set Purger.
- class LUID (L39)
- class LUID_AND_ATTRIBUTES (L47)
- class TOKEN_PRIVILEGES (L55)
- class MEMORYSTATUSEX (L63)
- class MemorySnapshot (L79)
- to_dict(self) (L89)
- class PurgeResult (L102)
- class MemoryStandbyPurger (L112)
- init(self) (L115)
- get_memory_snapshot(self) (L129)
- enable_privilege(self, priv_name) (L149)
- purge_standby_list(self) (L177)
- purge_working_sets(self) (L181)
- purge_modified_page_list(self) (L185)
- _send_memory_command(self, cmd_val, label) (L189)
src/cortex_unified/system_tools/mft_slack_scrubber.py¶
Module: NTFS Master File Table ($MFT) & Directory Index Slack Scrubber.
- class NtfsMftGeometry (L24)
- to_dict(self) (L39)
- class MftScrubReport (L55)
- to_dict(self) (L65)
- class MftSlackScrubber (L77)
- init(self, volume) (L80)
- query_geometry(self) (L87)
- parse_ntfsinfo_output(cls, volume, text) (L109)
- audit(self) (L149)
- scrub(self) (L160)
src/cortex_unified/system_tools/model_cache_manager.py¶
Module: Model cache manager – hardlink-aware HF hub, Ollama, LM Studio, ComfyUI.
- _verify_path(path, allowed_roots) (L61)
- class ModelStore (L81)
- to_dict(self) (L95)
- _hardlink_aware_size(root) (L111)
- class ModelCacheManager (L150)
- _get_comfyui_candidates(cls) (L174)
- COMFYUI_CANDIDATES(self) (L199)
- _first_existing(self, candidates) (L208)
- scan_hf_hub(self, progress, cancel_event) (L226)
- scan_ollama(self) (L284)
- scan_all(self, progress, cancel_event) (L296)
- clean_hf_orphans(self, dry_run, timeout) (L321)
- delete_hf_revision(self, repo, revision, dry_run, timeout) (L349)
- explain_quantization_saving(model_bytes, quant) (L370)
- read_safetensors_metadata(path) (L383)
- read_gguf_metadata(path) (L435)
- summarize(self) (L461)
src/cortex_unified/system_tools/network_automation.py¶
Module: Safe Windows scheduling for unattended private-LAN inventory scans.
- class NetworkSchedule (L26)
- class NetworkScheduleError (L38)
- _validated(spec) (L42)
- build_scan_command(spec) (L72)
- build_windows_arguments(spec) (L89)
- class NetworkScanScheduler (L106)
- supported() (L110)
- create(self, spec) (L114)
- delete(self) (L127)
- status(self) (L136)
src/cortex_unified/system_tools/network_discovery.py¶
Module: Deep LAN device discovery - find everything actually on your network.
- class Device (L177)
- randomized_mac(self) (L200)
- label(self) (L205)
- _looks_like_uuid(text) (L232)
- kind(self) (L239)
- evidence(self) (L292)
- merge(self, other) (L307)
- to_dict(self) (L336)
- class Interface (L372)
- network(self) (L380)
- class DiscoveryResult (L389)
- to_dict(self) (L403)
- class NetworkDiscovery (L431)
- init(self, timeout_s, workers) (L434)
- scan(self, progress, cancel_event, deep, rounds, audit_profile, include_upnp_wan, record_history, requested_networks, custom_ports, nmap_modes, advisory_catalog_path) (L442)
- _say(msg) (L482)
- _cancelled() (L489)
- local_interfaces() (L663)
- _local_devices(interfaces) (L693)
- default_gateways(self) (L726)
- _read_neighbors(self) (L753)
- _read_neighbors_windows(self) (L761)
- _read_arp_command(self) (L786)
- _broadcast_ping(targets) (L813)
- _arp_sweep(self, hosts, cancel_event, settle_s) (L829)
- _poke(ip) (L846)
- _is_ipv4(value) (L872)
- _usable_host(cls, ip, mac) (L883)
- _ip_sort_key(ip) (L906)
- _merge(into, found) (L916)
- _run_ps(self, script, timeout) (L927)
- _discover_mdns(self, cancel_event) (L943)
- _absorb_mdns(self, found, data, src_ip) (L998)
- _split_service_instance(value) (L1046)
- _build_dns_query(name, qtype) (L1059)
- _parse_dns_records(cls, data) (L1069)
- _read_name(data, offset) (L1114)
- _discover_ssdp(self, cancel_event) (L1144)
- _discover_wsd(self, cancel_event) (L1206)
- _pseudo_uuid() (L1270)
- _parse_http_headers(data) (L1278)
- _resolve_names(self, devices, cancel_event) (L1289)
- _resolve(device) (L1296)
- _netbios_name(self, ip, timeout) (L1319)
- _fingerprint(self, devices, cancel_event) (L1357)
- _build_notes(devices, targets, gateways) (L1428)
src/cortex_unified/system_tools/network_inventory.py¶
Module: Persistent, point-in-time network inventory with typed change reporting.
- _text(value, limit) (L32)
- _json_safe(value, depth) (L39)
- class InventoryService (L60)
- key(self) (L68)
- to_dict(self) (L72)
- class InventoryFinding (L83)
- key(self) (L91)
- to_dict(self) (L95)
- class InventoryDevice (L106)
- to_dict(self) (L117)
- class DeviceMetadata (L132)
- to_dict(self) (L141)
- class InventoryChange (L154)
- to_dict(self) (L164)
- class InventoryChanges (L173)
- to_dict(self) (L183)
- class InventorySnapshot (L198)
- to_dict(self) (L211)
- _normalize_mac(value) (L223)
- _randomized_mac(mac) (L231)
- _identity(device) (L241)
- _service(value) (L254)
- _finding(value) (L297)
- _get(value, name, default) (L322)
- normalize_device(value) (L330)
- identity_key_for(value) (L373)
- class NetworkInventory (L378)
- init(self, path, retention) (L381)
- close(self) (L403)
- enter(self) (L410)
- exit(self, *_args) (L414)
- _new_connection(self) (L418)
- _connect(self) (L429)
- _release(self, connection) (L435)
- _migrate(self) (L440)
- record_snapshot(self, devices, observed_at, gateway_mac) (L558)
- _record_snapshot(self, devices, observed_at, gateway_mac) (L568)
- update(self, devices, findings) (L629)
- _load_previous(connection) (L675)
- _compare(current, previous, previous_gateway, gateway_mac) (L724)
- _store_device(connection, snapshot_id, timestamp, identity_key, confidence, device) (L848)
- _enforce_retention(self, connection) (L913)
- _metadata_identity(value) (L934)
- _metadata_values(custom_name, trust_state, tags, notes) (L949)
- set_metadata(self, identity, custom_name, trust_state, tags, notes) (L971)
- get_metadata(self, identity) (L1008)
- list_metadata(self) (L1022)
- _metadata_from_row(row) (L1035)
- exposure_trends(self, limit) (L1055)
- _csv_cell(value) (L1083)
- _csv_value(value) (L1091)
- export_inventory_csv(self, path) (L1100)
- import_inventory_csv(self, path, dry_run, overwrite) (L1144)
- snapshot_count(self) (L1216)
- device_lifetimes(self) (L1226)
- _timestamp(value) (L1240)
src/cortex_unified/system_tools/network_monitor.py¶
Module: Network connection monitor - see what's talking to your machine and out.
- class Connection (L50)
- listening_public(self) (L65)
- remote_external(self) (L71)
- to_dict(self) (L77)
- _is_private(addr) (L95)
- class NetworkMonitor (L106)
- connections(self) (L109)
- _meta_for(psutil, pid) (L156)
- summarize(conns) (L176)
src/cortex_unified/system_tools/network_scan_cli.py¶
Module: Noninteractive entry point for scheduled private-LAN inventory scans.
- _parser() (L17)
- _write_atomic(path, payload) (L31)
- main(argv) (L50)
src/cortex_unified/system_tools/network_security_audit.py¶
Module: Evidence-backed analysis for authorized private-LAN observations.
- class SecurityFinding (L15)
- post_init(self) (L28)
- to_dict(self) (L37)
- finding_id(self) (L54)
- description(self) (L59)
- recommendation(self) (L64)
- cve(self) (L69)
- _evidence(observation, extra) (L74)
- _finding(observation, code, severity, title, detail, remediation, confidence, extra) (L86)
- _observation_findings(observation) (L112)
- analyze_services(services, catalog) (L221)
- _get(value, name, default) (L241)
- _device_observations(device) (L248)
- _deduplicate(findings) (L262)
- audit_devices(devices, vulnerability_catalog) (L276)
- audit_wan(wan_status) (L349)
src/cortex_unified/system_tools/network_service_scanner.py¶
Module: Bounded, non-destructive service observation on authorized private LANs.
- class ScanProfile (L33)
- _json_safe(value) (L47)
- class ServiceObservation (L63)
- to_dict(self) (L94)
- target(self) (L117)
- service(self) (L122)
- details(self) (L127)
- evidence(self) (L132)
- parse_allowed_networks(values) (L192)
- parse_network_scope_spec(value) (L209)
- is_authorized_target(value, allowed_networks) (L240)
- ports_for_profile(profile) (L262)
- normalize_custom_ports(values) (L273)
- parse_custom_port_spec(value) (L294)
- _clean(data) (L319)
- _recv(sock, limit) (L330)
- _product_version(text) (L350)
- _service_from_banner(text) (L365)
- class _RateLimiter (L388)
- init(self, rate) (L391)
- acquire(self, cancel) (L397)
- class NetworkServiceScanner (L406)
- init(self, timeout, workers, rate_limit) (L409)
- scan(self, hosts, allowed_networks, profile, progress, cancel_event, custom_ports) (L420)
- _progress(progress, message) (L464)
- _jobs(addresses, ports) (L475)
- _scan_tcp(self, addresses, profile, ports, limiter, cancel, observations, progress) (L486)
- _probe_tcp(self, ip, port, profile, limiter, cancel) (L533)
- _connect(self, observation) (L583)
- _identify(self, observation, profile, cancel) (L592)
- _probe_tls(self, observation) (L617)
- _probe_http(self, observation, path) (L641)
- _probe_mqtt(self, observation) (L707)
- _probe_redis(self, observation) (L731)
- _scan_udp(self, addresses, profile, limiter, cancel, observations) (L753)
- _probe_udp(self, ip, port, name, payload) (L775)
- validate_private_target(target) (L816)
- observation_json(observation) (L824)
src/cortex_unified/system_tools/network_stack_optimizer.py¶
Module: Cortex Cleaner — Enterprise Network Stack & DNS Optimizer.
- class TcpGlobalSettings (L17)
- class NetworkResetReport (L28)
- post_init(self) (L36)
- class NetworkStackOptimizer (L44)
- flush_dns(cls) (L48)
- clear_arp_cache(cls) (L62)
- reset_winsock(cls) (L76)
- reset_tcp_ip_stack(cls) (L90)
- get_tcp_settings(cls) (L104)
- set_tcp_autotuning(cls, level) (L132)
- set_ecn_capability(cls, state) (L150)
- execute_complete_network_repair(cls) (L164)
src/cortex_unified/system_tools/network_tools.py¶
Module: Network diagnostic utilities: ping, traceroute, DNS, port & IP checks.
- class PingResult (L47)
- to_dict(self) (L59)
- class Hop (L70)
- to_dict(self) (L76)
- class NetworkTools (L83)
- ping(self, host, count, timeout_s, cancel_event) (L88)
- _parse_ping(host, out) (L114)
- traceroute(self, host, max_hops) (L147)
- _parse_traceroute(out) (L161)
- dns_lookup(host) (L183)
- reverse_dns(ip) (L195)
- check_port(host, port, timeout) (L206)
- scan_common_ports(self, host, timeout) (L214)
- ip_info(address) (L227)
- _category(ip) (L249)
- _run(self, args, timeout, cancel_event) (L269)
src/cortex_unified/system_tools/network_traffic.py¶
Module: Live network throughput monitor - system-wide and per-interface.
- class NicSample (L25)
- to_dict(self) (L34)
- class TrafficSample (L46)
- to_dict(self) (L57)
- class TrafficMonitor (L70)
- instance(cls) (L81)
- init(self) (L89)
- sample(self) (L97)
src/cortex_unified/system_tools/nmap_adapter.py¶
Module: Optional Nmap integration, bounded to explicitly authorized private LANs.
- class NmapError (L40)
- class NmapUnavailableError (L44)
- class NmapAuthorizationError (L48)
- class NmapPrivilegeError (L52)
- class NmapExecutionError (L56)
- class NmapOutputError (L60)
- class NmapStatus (L65)
- _is_windows_admin() (L73)
- _local_name(tag) (L83)
- _children(element, name) (L90)
- _descendants(element, name) (L97)
- _bounded_root(payload) (L104)
- _normalize_targets(targets, allowed_networks) (L138)
- _normalize_ports(ports) (L169)
- _normalize_modes(modes) (L192)
- parse_nmap_xml(payload, allowed_networks) (L219)
- class NmapAdapter (L324)
- init(self, executable) (L327)
- _executable(self) (L331)
- available(self) (L338)
- status(self) (L342)
- build_arguments(self, targets, allowed_networks, ports, modes) (L352)
- scan(self, targets, allowed_networks, ports, modes, timeout, cancel_event) (L388)
- nmap_status(executable) (L428)
- is_nmap_available(executable) (L433)
- scan_nmap(targets, allowed_networks, ports, modes, timeout, cancel_event, executable) (L438)
src/cortex_unified/system_tools/notification_cleaner.py¶
Module: Cortex Cleaner — Windows Action Center & Push Notification Database Cleaner.
- class NotificationDatabaseStatus (L20)
- class NotificationCleanResult (L30)
- post_init(self) (L37)
- class NotificationCleaner (L45)
- get_status(cls) (L49)
- clean_notification_database(cls) (L72)
src/cortex_unified/system_tools/oui.py¶
Module: MAC address identity: IEEE-backed vendor lookup and privacy detection.
- normalize(mac) (L62)
- _first_octet(mac) (L73)
- is_randomized(mac) (L88)
- is_multicast(mac) (L101)
- lookup(mac) (L109)
- shorten(vendor) (L141)
- describe_vendor(mac) (L163)
- cache_dir() (L179)
- cached_registry_path() (L184)
- load_ieee_registry(path) (L189)
- load_cached_registry() (L229)
- ensure_registry_loaded() (L237)
- has_full_registry() (L251)
- registry_age_days() (L257)
- registry_status() (L266)
- refresh_from_ieee(timeout, cancel_event) (L287)
- prefix_count() (L352)
src/cortex_unified/system_tools/pagefile_optimizer.py¶
Module: Cortex Cleaner — Windows Pagefile & Virtual Memory Optimizer.
- class MEMORYSTATUSEX (L27)
- class PagefileConfig (L43)
- class VirtualMemoryStatus (L53)
- class PagefileOptimizer (L66)
- get_memory_metrics(cls) (L72)
- get_pagefile_config(cls) (L92)
- get_status(cls) (L148)
- set_custom_pagefile(cls, drive_letter, initial_mb, maximum_mb) (L189)
- set_automatic_pagefile(cls) (L210)
src/cortex_unified/system_tools/performance_tuner.py¶
Module: Windows power-plan tuner - safe, reversible performance control.
- class PowerPlan (L34)
- to_dict(self) (L41)
- class PerformanceTuner (L46)
- is_supported() (L50)
- list_plans(self) (L54)
- _parse(out) (L61)
- active_plan(self) (L75)
- set_active(self, guid) (L82)
- _run(self, args, want_returncode) (L97)
src/cortex_unified/system_tools/power_plan_optimizer.py¶
Module: Cortex Cleaner — Windows Power Scheme & CPU Throttle Optimizer.
- class PowerScheme (L22)
- class PowerPlanStatus (L31)
- class PowerPlanOptimizer (L40)
- get_status(cls) (L46)
- set_active_scheme(cls, scheme_guid) (L97)
- unlock_ultimate_performance_plan(cls) (L111)
- set_reduced_hibernation(cls) (L133)
- disable_hibernation(cls) (L147)
src/cortex_unified/system_tools/prefetch_analyzer.py¶
Module: Cortex Cleaner — Windows Prefetch & SysMain (SuperFetch) Trace Analyzer.
- class PrefetchEntry (L24)
- class PrefetchStatus (L36)
- class PrefetchCleanResult (L46)
- post_init(self) (L52)
- class PrefetchAnalyzer (L60)
- get_status(cls) (L64)
- scan_prefetch_files(cls) (L115)
- clean_prefetch(cls, file_paths) (L156)
src/cortex_unified/system_tools/privacy_blocker.py¶
Module: Privacy & Telemetry Blocker — 300+ settings, IFEO persistence, profiles.
- class TweakDef (L92)
- applies_to_current_os(self) (L129)
- class PrivacyBlocker (L459)
- init(self, tweaks, create_restore_point, progress_callback, cancel_event, dry_run) (L462)
- _reg_set(self, path, value, data, dtype) (L482)
- _reg_get(self, path, value) (L499)
- _reg_backup(self, path) (L512)
- _svc_set_start(self, name, start_type) (L526)
- _svc_get_start(self, name) (L542)
- _task_set_enabled(self, path, enabled) (L557)
- _fw_add_block(self, name, direction, program) (L571)
- _ifeo_set(self, target, debugger) (L585)
- _ifeo_remove(self, target) (L595)
- apply(self, tweak_ids) (L611)
- remove(self, tweak_ids) (L651)
- status(self, tweak_ids) (L694)
- apply_profile(self, profile_name) (L722)
- audit(self) (L728)
- list_profiles(self) (L755)
- export_config(self, path) (L763)
- import_config(self, path) (L775)
- enable_auto_enforcement(self, interval_minutes) (L780)
src/cortex_unified/system_tools/process_analyzer.py¶
Module: Process and service enumeration via platform CLI tools.
- class ProcessAnalyzer (L16)
- init(self, config) (L19)
- list_processes(self) (L29)
- _list_windows_processes(self) (L46)
- _list_macos_processes(self) (L74)
- _list_linux_processes(self) (L104)
- list_services(self) (L134)
- _list_windows_services(self) (L151)
- _list_macos_services(self) (L182)
- _list_linux_services(self) (L204)
- find_high_resource_processes(self, cpu_threshold, mem_threshold) (L238)
- get_stats(self) (L277)
- filter_processes_by_name(self, name_pattern) (L291)
- filter_services_by_state(self, state) (L299)
src/cortex_unified/system_tools/process_meta.py¶
Module: Human-friendly process identity: what a running program actually is.
- known_description(name) (L91)
- file_description(exe_path) (L96)
- describe(name, exe_path) (L118)
src/cortex_unified/system_tools/process_token_auditor.py¶
Module: Cortex Cleaner — Process Security Token & Integrity Forensics.
- class ProcessTokenInfo (L38)
- class ProcessTokenAuditReport (L51)
- class ProcessTokenAuditor (L63)
- init(self) (L66)
- audit(self, max_processes) (L70)
- _inspect_token(self, pid) (L132)
- _get_integrity_level(self, h_token) (L153)
- _get_elevation_type(self, h_token) (L200)
- _get_privileges(self, h_token) (L221)
src/cortex_unified/system_tools/registry_cleaner.py¶
Module: Orphaned Windows registry entry detection with export-before-delete safety.
- class RegistryCleaner (L21)
- init(self, config) (L24)
- scan(self) (L40)
- scan_orphaned_entries(self) (L44)
- _scan_uninstall_entries(self, hive) (L66)
- _check_uninstall_entry(self, hive, hive_name, full_path, subkey_name) (L99)
- _scan_startup_entries(self) (L140)
- _scan_file_associations(self) (L180)
- _scan_shared_dlls(self) (L221)
- backup_registry(self, backup_dir) (L255)
- backup_entry(self, entry, backup_dir) (L286)
- remove_orphaned_entry(self, entry, auto_backup) (L321)
- get_stats(self) (L368)
- filter_by_type(self, entry_type) (L376)
- _reg_val(winreg, key, name, default) (L385)
- _extract_exe_path(raw) (L395)
src/cortex_unified/system_tools/restart_manager_unlocker.py¶
Module: Windows Native Restart Manager File Unlocker & Process Lock Auditor.
- class RM_UNIQUE_PROCESS (L41)
- class RM_PROCESS_INFO (L49)
- class LockingProcessInfo (L63)
- to_dict(self) (L70)
- class FileLockReport (L81)
- to_dict(self) (L89)
- class UnlockResult (L101)
- to_dict(self) (L108)
- class RestartManagerUnlocker (L118)
- init(self) (L121)
- inspect_locks(self, file_path) (L131)
- _get_locking_processes_native(self, abs_path) (L155)
- _get_locking_processes_psutil(self, abs_path) (L238)
- unlock_file(self, file_path, force_terminate) (L261)
src/cortex_unified/system_tools/restore_point.py¶
Module: Windows System Restore point management - the trust/safety foundation.
- class RestoreStatus (L47)
- class RestorePointResult (L59)
- created(self) (L66)
- ok_to_proceed(self) (L71)
- to_dict(self) (L79)
- class RestorePointManager (L84)
- init(self) (L87)
- is_supported() (L94)
- is_elevated() (L99)
- create(self, description, restore_point_type) (L111)
- _parse_create_output(out) (L156)
- list_points(self, limit) (L186)
- _parse_wmi_time(value) (L220)
- _run_ps(self, script, timeout) (L230)
src/cortex_unified/system_tools/s3_fifo.py¶
Module: S3-FIFO cache eviction — "FIFO queues are all you need" (SOSP'23).
- class _Entry (L73)
- class S3FIFOStats (L83)
- to_dict(self) (L93)
- class S3FIFO (L111)
- init(self, capacity, small_ratio) (L122)
- _ghost_contains(self, key) (L150)
- _ghost_add(self, key) (L156)
- _ghost_remove(self, key) (L172)
- _evict_small_if_needed(self) (L183)
- _evict_main_if_needed(self) (L203)
- get(self, key) (L222)
- put(self, key, value) (L235)
- delete(self, key) (L265)
- contains(self, key) (L281)
- contains(self, key) (L292)
- len(self) (L298)
- clear(self) (L305)
- stats(self) (L315)
- keys(self) (L337)
- snapshot(self) (L345)
src/cortex_unified/system_tools/sandbox_cleaner.py¶
Module: Cortex Cleaner — Windows Sandbox & Virtual Environment Artifact Purger.
- class VirtualArtifact (L23)
- size_mb(self) (L33)
- size_gb(self) (L38)
- class SandboxCleanReport (L44)
- class SandboxCleaner (L53)
- init(self) (L56)
- scan(self) (L60)
- clean(self, target_paths) (L145)
src/cortex_unified/system_tools/search_index_optimizer.py¶
Module: Cortex Cleaner — Windows Search Index Database (Windows.edb) Optimizer.
- class SearchIndexStatus (L22)
- class SearchIndexOperationResult (L33)
- post_init(self) (L41)
- class SearchIndexOptimizer (L49)
- get_status(cls) (L53)
- compact_database(cls) (L100)
- rebuild_index(cls) (L157)
src/cortex_unified/system_tools/secrets_scanner.py¶
Module: Filesystem secrets scanner with live credential validation.
- class DetectionPattern (L120)
- class Finding (L132)
- to_dict(self) (L150)
- severity_rank(self) (L155)
- fingerprint(self) (L160)
- class ScanStats (L167)
- critical(self) (L185)
- high(self) (L189)
- medium(self) (L193)
- low(self) (L197)
- unique_files(self) (L201)
- live_credentials(self) (L205)
- to_dict(self) (L209)
- class VerificationResult (L221)
- status_emoji(self) (L232)
- _p(pattern, flags) (L240)
- _shannon_entropy(data) (L892)
- _check_high_entropy(line, file_path) (L907)
- compute_confidence(file_path, match_preview, entropy, category, line_raw) (L929)
- _luhn_valid(s) (L951)
- _redact(match) (L963)
- scan_file_bytes(data, file_path, patterns) (L972)
- scan_single_file(file_path, patterns) (L1005)
- walk_files(directory, ignores) (L1034)
- compute_risk_score(findings) (L1063)
- run_scan(directory, ignores, max_workers, severity_filter, quiet) (L1072)
- _scan_archive_member(data, virtual_path) (L1123)
- scan_zip(archive_path) (L1131)
- scan_tar(archive_path) (L1154)
- scan_archives(directory, quiet) (L1184)
- scan_git_history(directory, max_commits, quiet) (L1202)
- _http(url, headers, data, method, timeout) (L1250)
- _vr(finding_id, name, live, identity, blast, err) (L1267)
- verify_aws(key_id, secret) (L1273)
- verify_github(token) (L1313)
- verify_stripe(key) (L1325)
- verify_slack(token) (L1340)
- verify_npm(token) (L1351)
- verify_openai(key) (L1363)
- verify_all_findings(findings, quiet) (L1386)
- _truncate_secret(value) (L1412)
- save_baseline(findings, directory) (L1422)
- load_baseline(directory) (L1434)
- compute_delta(findings, baseline) (L1442)
- _fp_path(directory) (L1451)
- load_fp_db(directory) (L1457)
- save_fp_db(db, directory) (L1465)
- add_fp(fingerprint, directory, reason) (L1470)
- apply_fp_filter(findings, directory) (L1477)
- save_to_history(stats, live_count) (L1491)
- load_history(limit) (L1506)
- create_jira_ticket(finding, jira_url, jira_user, jira_token, project_key) (L1522)
- create_github_issue(finding, github_token, repo) (L1558)
- export_json(stats, path) (L1591)
- export_csv(stats, path) (L1596)
- export_sarif(stats, path) (L1609)
- send_slack(stats, webhook_url) (L1639)
- generate_html_report(stats, output_path) (L1669)
- print_terminal_report(stats) (L1977)
- class DashboardHandler (L2145)
- log_message(self, format, *args) (L2147)
- do_GET(self) (L2150)
- serve_dashboard(port) (L2166)
- cmd_scan(args) (L2178)
- cmd_baseline(args) (L2313)
- cmd_fp(args) (L2341)
- cmd_verify(args) (L2363)
- cmd_serve(args) (L2383)
- cmd_patterns(args) (L2389)
- build_parser() (L2408)
- main() (L2470)
src/cortex_unified/system_tools/secure_shredder.py¶
Module: Secure File Shredder — DoD 5220.22-M, Gutmann, NIST 800-88, SSD TRIM.
- class StorageType (L112)
- class ShredStandard (L121)
- passes(self) (L158)
- name(self) (L239)
- pass_count(self) (L244)
- recommended_for(self, storage) (L248)
- class ShredResult (L260)
- to_dict(self) (L271)
- _pattern_bytes(pattern, size) (L283)
- _verify_pattern(file_path, pattern, size, sample_pct) (L299)
- detect_storage_type(path) (L347)
- class SecureShredder (L392)
- init(self, progress_callback, cancel_event, verify_passes, sample_verification_pct, dry_run) (L395)
- _write_pass(self, f, offset, size, pattern) (L411)
- shred_file(self, file_path, standard, auto_detect) (L428)
- _shred_ssd_firmware(self, path, standard) (L505)
- shred_files(self, file_paths, standard, auto_detect) (L536)
- wipe_free_space(self, drive, standard) (L550)
- get_smart_default(self, path) (L582)
src/cortex_unified/system_tools/service_manager.py¶
Module: Cortex Cleaner — Windows Service Manager & Profile Optimizer.
- class ServiceInfo (L21)
- class ServiceProfileResult (L72)
- class WindowsServiceManager (L81)
- enumerate_services(cls) (L85)
- stop_service(cls, service_name) (L138)
- set_startup_type(cls, service_name, startup_type) (L155)
- apply_profile(cls, profile) (L175)
src/cortex_unified/system_tools/shader_cache_cleaner.py¶
Module: GPU & DirectX Shader Cache Forensics & Cleanup Engine.
- class ShaderLocationInfo (L35)
- to_dict(self) (L46)
- class ShaderCacheReport (L61)
- to_dict(self) (L70)
- class ShaderCleanResult (L83)
- to_dict(self) (L91)
- class ShaderCacheCleaner (L102)
- init(self) (L105)
- get_known_locations(self) (L109)
- scan(self, min_age_days) (L135)
- clean(self, min_age_days, dry_run) (L179)
src/cortex_unified/system_tools/shellbags_privacy_cleaner.py¶
Module: Cortex Cleaner — Windows Shellbags & JumpLists Activity Forensics Purger.
- class ShellbagsTarget (L26)
- class ShellbagsCleanResult (L36)
- post_init(self) (L43)
- class ShellbagsPrivacyCleaner (L51)
- _count_reg_keys(cls, subkey) (L64)
- _delete_reg_tree(cls, subkey) (L76)
- scan_shell_activity(cls) (L96)
- clean_shell_activity(cls, targets) (L154)
src/cortex_unified/system_tools/sieve_cache.py¶
Module: SIEVE Cache Eviction Algorithm.
- class SieveNode (L23)
- init(self, key, value) (L27)
- repr(self) (L35)
- class SieveCache (L42)
- init(self, capacity) (L45)
- get(self, key, default) (L61)
- contains(self, key) (L72)
- put(self, key, value) (L77)
- _insert_head(self, node) (L93)
- _remove_node(self, node) (L103)
- _evict(self) (L121)
- delete(self, key) (L136)
- clear(self) (L145)
- size(self) (L154)
- hit_ratio(self) (L160)
- stats(self) (L166)
- keys(self) (L179)
src/cortex_unified/system_tools/slack_space_analyzer.py¶
Module: Cortex Cleaner — NTFS Disk Cluster & Slack Space Forensics Analyzer.
- class DirectorySlackStat (L23)
- class VolumeSlackReport (L34)
- class SlackSpaceAnalyzer (L46)
- get_cluster_size(cls, drive_path) (L50)
- analyze_directory(cls, target_dir, max_depth, progress_cb, cancel_check) (L78)
src/cortex_unified/system_tools/smb_share_auditor.py¶
Module: Cortex Cleaner — Network Share & SMB Exposure Auditor.
- class SmbShareInfo (L24)
- class SmbSecurityReport (L36)
- class SmbShareAuditor (L47)
- init(self) (L50)
- audit(self) (L54)
- _list_shares(self) (L86)
- _check_smbv1(self) (L162)
- _check_smb_signing(self) (L177)
src/cortex_unified/system_tools/srum_bam_cleaner.py¶
Module: Windows BAM/DAM & SRUM Forensic Privacy Cleaner.
- class BamExecutionEntry (L32)
- to_dict(self) (L41)
- class SrumDatabaseInfo (L53)
- to_dict(self) (L62)
- class SrumBamReport (L74)
- to_dict(self) (L82)
- class SrumBamCleaner (L93)
- _filetime_to_datetime(cls, ft_bytes) (L99)
- query_srum(self) (L116)
- scan(self) (L153)
- clean_bam_entries(self, entries) (L204)
src/cortex_unified/system_tools/ssd_trim_optimizer.py¶
Module: Solid-State Drive (SSD) NVMe TRIM & Flash Wear-Leveling Optimizer.
- class VolumeTrimStatus (L39)
- to_dict(self) (L49)
- class TrimAuditReport (L63)
- to_dict(self) (L70)
- class TrimExecutionResult (L81)
- to_dict(self) (L89)
- class SsdTrimOptimizer (L100)
- init(self) (L103)
- query_global_trim_enabled(self) (L107)
- audit_volumes(self) (L143)
- retrim_volume(self, drive_letter) (L215)
src/cortex_unified/system_tools/startup_impact_analyzer.py¶
Module: Cortex Cleaner — Windows Startup Impact Analyzer & Delayed Launch Sequencer.
- class StartupAppItem (L27)
- class StartupImpactReport (L41)
- class StartupImpactAnalyzer (L51)
- _extract_exe_path(cls, command) (L63)
- _read_startup_approved_state(cls, hive, approved_key, item_name) (L78)
- _calculate_impact(cls, file_size, exe_name) (L93)
- analyze_startup(cls) (L112)
- toggle_item_state(cls, item_name, enable, is_user) (L170)
src/cortex_unified/system_tools/startup_manager.py¶
Module: Startup item enumeration and disabling across platforms.
- class StartupManager (L16)
- init(self, config) (L19)
- list_startup_items(self) (L27)
- _list_windows_startup_items(self) (L44)
- _read_registry_startup_items(self, hive, key_path) (L86)
- _read_startup_folder_items(self, folder_path) (L109)
- _list_macos_startup_items(self) (L125)
- _read_plist_items(self, folder_path) (L144)
- _list_linux_startup_items(self) (L163)
- _read_desktop_items(self, folder_path) (L179)
- _registry_backup_path(self) (L198)
- _load_registry_backup(self) (L202)
- _save_registry_backup(self, backup) (L214)
- enable_startup_item(self, item_name) (L226)
- disable_startup_item(self, name, item_type) (L311)
- _disable_registry_item(self, name) (L329)
- _disable_startup_folder_item(self, name) (L395)
- get_stats(self) (L431)
- filter_by_type(self, item_type) (L444)
src/cortex_unified/system_tools/startup_optimizer.py¶
Module: Startup Optimizer — stagger/delay engine with resource-aware gating.
- class AppType (L69)
- class StartupEntry (L79)
- to_dict(self) (L95)
- _enumerate_registry() (L117)
- _enumerate_startup_folders() (L157)
- _enumerate_scheduled_tasks() (L183)
- _classify_entry(entry) (L211)
- _config_path() (L237)
- class StartupOptimizer (L250)
- init(self, progress, cancel) (L252)
- enumerate(self) (L258)
- _load_delays(self) (L289)
- _save_delays(self, delays) (L301)
- set_delay(self, entry_id, delay_seconds, conditions) (L308)
- remove_delay(self, entry_id) (L316)
- launch_delayed(self, entries) (L322)
- _jitter(self) (L387)
- backup(self) (L394)
- restore(self, backup) (L402)
src/cortex_unified/system_tools/storage_growth_tracker.py¶
Module: Cortex Cleaner — Storage Growth Tracker & Timeline Differ.
- class SnapshotSummary (L25)
- formatted_time(self) (L36)
- total_gb(self) (L41)
- class DirectoryDelta (L47)
- growth_mb(self) (L56)
- growth_gb(self) (L61)
- class StorageGrowthDiffReport (L67)
- net_growth_gb(self) (L79)
- class StorageGrowthTracker (L84)
- init(self, db_path) (L87)
- _init_db(self) (L98)
- take_snapshot(self, root_path, label, max_depth) (L130)
- list_snapshots(self) (L202)
- compare_snapshots(self, base_id, target_id) (L221)
src/cortex_unified/system_tools/storage_sense.py¶
Module: Storage Sense - surface and configure Windows' built-in auto-cleanup.
- class StorageSense (L31)
- is_supported() (L35)
- get_status(self) (L41)
- _read_values(self) (L47)
- _interpret(v) (L71)
- _write(self, name, value) (L92)
- set_enabled(self, enabled) (L107)
- set_cadence(self, days) (L116)
- set_recycle_bin_days(self, days) (L124)
src/cortex_unified/system_tools/system_cache_rebuilder.py¶
Module: Cortex Cleaner — Windows Font, Icon & Thumbnail Cache Rebuilder.
- class CacheRebuildReport (L22)
- post_init(self) (L32)
- class SystemCacheRebuilder (L40)
- rebuild_font_cache(cls) (L44)
- rebuild_icon_thumbnail_cache(cls) (L91)
- notify_shell_refresh(cls) (L122)
- restart_explorer(cls) (L136)
- execute_full_cache_rebuild(cls, restart_shell) (L150)
src/cortex_unified/system_tools/system_info.py¶
Module: System information & diagnostics - lightweight, offline, read-only.
- _fmt_bytes(n) (L23)
- class SystemInfo (L37)
- platform_info(self) (L40)
- cpu_info(self) (L53)
- memory_info(self) (L69)
- disk_info(self) (L85)
- battery_info(self) (L107)
- boot_time(self) (L123)
- snapshot(self) (L132)
src/cortex_unified/system_tools/system_repair.py¶
Module: System file health & repair - orchestrating Windows' own repair tools.
- class RepairResult (L37)
- to_dict(self) (L46)
- class SystemRepair (L55)
- is_supported() (L59)
- is_elevated() (L64)
- run_sfc(self, cancel_event) (L76)
- _parse_sfc(out) (L84)
- run_dism(self, action, cancel_event) (L112)
- _parse_dism(out, action) (L125)
- run_chkdsk_scan(self, drive, cancel_event) (L157)
- _parse_chkdsk(out, letter) (L169)
- _run(self, args, timeout, cancel_event) (L191)
- _decode(raw) (L222)
src/cortex_unified/system_tools/task_manager.py¶
Module: Task manager backend - live process + resource monitor with honest totals.
- _describe(name, exe) (L29)
- class TaskManager (L38)
- instance(cls) (L48)
- init(self) (L54)
- snapshot(self, sample_interval) (L65)
- _refresh_handles(self, psutil) (L106)
- end_process(self, pid, force) (L118)
- _collect_processes(self, psutil, cores, handles) (L141)
- _collect_memory(self, psutil, processes) (L182)
- _installed_ram(self, psutil) (L216)
src/cortex_unified/system_tools/telemetry_blocker.py¶
Module: Telemetry Blocker — comprehensive Windows privacy hardening via Registry.
- _get_windows_build() (L29)
- _is_win11_24h2_plus() (L43)
- class TelemetryBlocker (L51)
- init(self) (L54)
- rules(self) (L60)
- _build_rules() (L65)
- _backup_key(self, rule) (L229)
- _save_backup(self, entries) (L248)
- backup_telemetry(self) (L259)
- restore_from_backup(self, backup_path) (L284)
- check_status(self) (L336)
- block_telemetry(self) (L360)
- restore_defaults(self) (L400)
src/cortex_unified/system_tools/temp_folder_cleaner.py¶
Module: Cortex Cleaner — Windows Temp Folder Deep Scanner & Auto-Cleaner.
- class TempLocation (L22)
- class TempScanReport (L34)
- class TempCleanResult (L45)
- class TempFolderCleaner (L53)
- _get_temp_locations(cls) (L57)
- scan(cls, stale_hours) (L94)
- clean(cls, stale_hours, locations_filter, progress_cb) (L139)
src/cortex_unified/system_tools/update_checker.py¶
Module: Release update checker - informational only.
- parse_version(tag) (L27)
- current_version() (L35)
- fetch_latest_tag(api_url, timeout) (L44)
- check_for_update(api_url, timeout, installed) (L63)
src/cortex_unified/system_tools/vhdx_manager.py¶
Module: Virtual disk (VHDX) reclaim for WSL2, Docker Desktop and Hyper-V.
- class DiskKind (L44)
- class VirtualDisk (L54)
- potential_saving_bytes(self) (L70)
- can_compact(self) (L83)
- status_note(self) (L88)
- to_dict(self) (L100)
- class CompactResult (L118)
- freed_bytes(self) (L130)
- to_dict(self) (L134)
- class VhdxManager (L147)
- init(self) (L150)
- is_supported() (L155)
- list_disks(self) (L161)
- _wsl_disks(self) (L184)
- _docker_disks(self) (L233)
- _hyperv_disks(self) (L255)
- _measure(self, disk) (L277)
- measure_guest_usage(self, disk, timeout) (L294)
- shutdown_wsl(self, timeout) (L322)
- compact(self, disk, timeout, cancel_event) (L343)
- set_sparse(self, disk, enabled, timeout) (L418)
- _explain_failure(out) (L451)
- _run_diskpart(self, script, timeout, cancel_event) (L467)
- _run_ps(self, script, timeout) (L509)
- _running_processes() (L523)
- _decode(raw) (L540)
- _reg_str(key, name) (L556)
- _reg_int(key, name) (L568)
src/cortex_unified/system_tools/vss_health_analyzer.py¶
Module: Volume Shadow Copy (VSS) Writer Health, Shadow Storage & State Recovery Engine.
- class VssWriterStatus (L39)
- to_dict(self) (L48)
- class VssStorageAllocation (L61)
- to_dict(self) (L69)
- class VssHealthReport (L81)
- to_dict(self) (L90)
- class VssResetResult (L103)
- to_dict(self) (L109)
- class VssHealthAnalyzer (L118)
- init(self) (L121)
- inspect_health(self) (L125)
- _parse_writers(self, text) (L170)
- _build_writer_status(self, d) (L202)
- _parse_shadowstorage(self, text) (L227)
- _build_storage_allocation(self, d) (L258)
- _parse_bytes(s) (L260)
- reset_vss_writers(self) (L280)
src/cortex_unified/system_tools/vss_manager.py¶
Module: Cortex Cleaner — Volume Shadow Copy (VSS) & Snapshot Manager.
- class ShadowCopyInfo (L25)
- class ShadowStorageInfo (L36)
- used_gb(self) (L45)
- allocated_gb(self) (L50)
- max_gb(self) (L55)
- class VssAuditReport (L61)
- class VssManager (L70)
- init(self) (L73)
- audit(self) (L77)
- list_shadows(self) (L95)
- list_shadow_storage(self) (L162)
- _parse_bytes(text) (L189)
- create_shadow_copy(self, volume) (L243)
- delete_oldest_shadow(self, volume) (L269)
src/cortex_unified/system_tools/vulnerability_catalog.py¶
Module: Versioned, local-only advisory catalog with exact product/version matching.
- class CatalogError (L17)
- class VersionConstraint (L23)
- to_dict(self) (L28)
- class Advisory (L34)
- to_dict(self) (L45)
- to_finding(self, device_ip, evidence) (L58)
- normalize_product(value) (L77)
- _parse_version(value) (L82)
- _compare(left, right) (L93)
- _satisfies(version, constraint) (L115)
- _constraints(raw) (L131)
- _advisory(raw) (L149)
- class VulnerabilityCatalog (L176)
- init(self, advisories, catalog_version) (L179)
- to_dict(self) (L190)
- load(cls, path) (L198)
- match(self, product, version) (L223)
- correlate(self, product, version, evidence) (L234)
src/cortex_unified/system_tools/wake_on_lan.py¶
Module: Strict, scope-bound Wake-on-LAN packet construction and transmission.
- class WakeOnLanError (L24)
- class InvalidMacAddress (L28)
- class InvalidBroadcastAddress (L32)
- class WakeOnLanSendError (L36)
- validate_mac(mac) (L40)
- _active_private_networks(active_networks) (L65)
- validate_broadcast(broadcast, active_networks) (L110)
- build_magic_packet(mac) (L140)
- send_magic_packet(mac, broadcast, active_networks, port, timeout) (L149)
src/cortex_unified/system_tools/wan_audit.py¶
Module: Read-only, local-only WAN and UPnP IGD audit.
- class InterfaceStatus (L42)
- to_dict(self) (L50)
- class PortMapping (L56)
- to_dict(self) (L69)
- class WanStatus (L75)
- public_ip_classification(self) (L83)
- to_dict(self) (L101)
- classify_external_ip(value) (L122)
- classify_public_ip(value) (L141)
- _local_name(tag) (L150)
- _safe_xml(data) (L157)
- _child_text(root, name) (L179)
- _is_trusted_url(url, networks) (L189)
- _parse_headers(payload) (L214)
- _bounded_int(value, minimum, maximum) (L227)
- class WanAuditor (L238)
- init(self, timeout, max_response_bytes, max_mappings) (L241)
- audit(self, gateway_ips, include_upnp, progress, cancel_event) (L254)
- _cancelled(cancel_event) (L332)
- _progress(progress, message) (L339)
- local_interfaces() (L347)
- discover_locations(self, networks, cancel_event) (L380)
- _load_igd(self, location, networks) (L418)
- _read_soap_status(self, status, service_type, control_url, networks, cancel_event, progress) (L453)
- _soap(self, url, service_type, action, arguments) (L509)
- _mapping_from_xml(index, root) (L557)
- _http_request(self, method, url, body, headers) (L581)
- default_gateway() (L634)
- dns_servers() (L665)
- class _NoMoreMappings (L699)
- _xml_escape(value) (L703)
- audit_wan(gateway_ips, include_upnp, progress, cancel_event) (L712)
src/cortex_unified/system_tools/winapp2_cleaner.py¶
Module: Declarative Community & Third-Party Application Cleaner (Winapp2.ini Engine).
- class Winapp2Rule (L137)
- class AppCleanTarget (L152)
- class Winapp2Report (L163)
- to_dict(self) (L174)
- class Winapp2Cleaner (L197)
- init(self, custom_ini_content) (L210)
- expand_vars(cls, path_str) (L216)
- _load_rules(self, ini_content) (L243)
- _is_app_installed(self, rule) (L285)
- is_safe_path(self, path) (L318)
- scan(self, progress_cb, cancel_event) (L335)
- clean(self, targets, dry_run, progress_cb) (L425)
src/cortex_unified/system_tools/windows_update.py¶
Module: Windows Update status - what's pending and when you last updated.
- class PendingUpdate (L36)
- to_dict(self) (L43)
- class WindowsUpdate (L49)
- is_supported() (L53)
- last_activity(self) (L59)
- _read_result_time(sub) (L69)
- check_pending(self) (L86)
- _parse_pending(out) (L100)
- _int(v) (L111)
- recent_history(self, limit) (L139)
- _parse_history(out) (L154)
- _run(self, script, timeout) (L185)
src/cortex_unified/system_tools/windows_update_repair.py¶
Module: Windows Update Repair Toolkit — comprehensive component reset and repair.
- class PhaseResult (L95)
- class DiagnosticReport (L106)
- to_json(self) (L118)
- class RepairResult (L125)
- summary(self) (L133)
- class WindowsUpdateRepair (L185)
- init(self, create_restore_point, progress_callback, cancel_event, dry_run) (L188)
- _run(self, cmd, timeout, shell) (L211)
- _run_ps(self, script, timeout) (L231)
- _sc_query(self, name) (L237)
- _service_status(self, name) (L244)
- _stop_service(self, name, retries) (L254)
- _start_service(self, name) (L267)
- preflight(self) (L276)
- _phase_stop_services(self) (L354)
- _phase_clear_caches(self) (L370)
- _phase_reset_registry_policies(self) (L410)
- _phase_reset_security_descriptors(self) (L437)
- _phase_reregister_dlls(self) (L452)
- _phase_reset_network(self) (L467)
- _phase_dism_repair(self) (L493)
- _phase_sfc(self) (L508)
- _phase_component_store(self) (L517)
- _phase_start_services(self) (L528)
- _phase_verify(self) (L544)
- repair_all(self, phases) (L564)
- repair_selective(self, phase_names) (L606)
- quick_reset(self) (L610)
src/cortex_unified/system_tools/wsl_cleaner.py¶
Module: WSL distro cleanup: size reporting, shutdown + vhdx compaction.
- class WslDistro (L33)
- to_dict(self) (L42)
- _fmt_bytes(n) (L56)
- _decode(raw) (L68)
- class WslCleaner (L84)
- is_supported() (L88)
- is_wsl_available(self) (L92)
- list_distros(self) (L111)
- shutdown(self, timeout) (L204)
- compact_vhdx(self, vhdx_path, timeout, cancel_event) (L220)
- get_total_vhdx_size(self) (L245)
- _reg_str(key, name) (L251)
- _reg_int(key, name) (L263)
src/cortex_unified/translations/init.py¶
Module: Internationalization module for Cortex Cleaner.
- get_available_locales() (L28)
- set_locale(locale) (L33)
src/cortex_unified/translations/settings_integration.py¶
Module: Qt settings surface for i18n and accessibility preferences.
- class I18nSettingsWidget (L24)
- init(self, parent) (L31)
- setup_ui(self) (L42)
- populate_languages(self) (L87)
- populate_themes(self) (L100)
- load_settings(self) (L111)
- save_settings(self) (L142)
- on_language_changed(self, language_name) (L162)
- on_theme_changed(self, theme_name) (L171)
- on_accessibility_changed(self) (L180)
- class I18nManager (L197)
- init(self) (L200)
- load_saved_settings(self) (L209)
- create_settings_widget(self, parent) (L226)
- get_current_locale(self) (L232)
- get_current_theme(self) (L236)
- is_rtl_layout(self) (L240)
- get_i18n_manager() (L247)
src/cortex_unified/translations/translator.py¶
Module: Translation and internationalization management.
- class Translator (L14)
- init(self, locale) (L22)
- load_translations(self, locale) (L37)
- translate(self, key, **kwargs) (L69)
- _get_translation(self, key, locale) (L95)
- get_available_locales(self) (L113)
- set_locale(self, locale) (L129)
- get_locale_info(self, locale) (L138)
- is_rtl_locale(self, locale) (L167)
- get_translator() (L178)
- set_global_locale(locale) (L185)
- translate(key, **kwargs) (L190)
src/cortex_unified/ui/init.py¶
Module: Cortex Workstation User Interface and Presentation Subsystems.
src/cortex_unified/ui/launcher.py¶
Module: GUI entry point for Cortex Cleaner.
src/cortex_unified/ui/main_window.py¶
Module: Main window for Cortex Cleaner GUI.
- class ScanWorker (L67)
- init(self, config, path, enable_checkpoints, enable_throttling, checkpoint_id) (L83)
- run(self) (L96)
- pause(self) (L126)
- resume(self) (L133)
- stop(self) (L140)
- class DeleteWorker (L154)
- init(self, deleter, empty_files, empty_dirs) (L159)
- run(self) (L168)
- class MultiDriveScanWorker (L179)
- init(self, config, paths, enable_checkpoints, enable_throttling) (L185)
- run(self) (L197)
- pause(self) (L237)
- resume(self) (L243)
- stop(self) (L249)
- class DeepCleanerGUI (L256)
- init(self) (L259)
- init_tray_icon(self) (L308)
- getattr(self, name) (L316)
- _safe_widget(self, name, default) (L333)
- init_ui(self) (L340)
- add_advanced_tabs(self) (L382)
- browse_path(self) (L423)
- browse_path_for_widget(self, widget) (L429)
- add_activity(self, message) (L435)
- get_current_time(self) (L443)
- quick_scan(self) (L450)
- start_scan(self) (L462)
- scan_finished(self, empty_files, empty_dirs) (L581)
- scan_error(self, error) (L615)
- update_scan_progress(self, progress) (L632)
- start_delete(self) (L642)
- pause_scan(self) (L686)
- resume_scan(self) (L714)
- delete_finished(self, result) (L742)
- delete_error(self, error) (L768)
- show_treemap_visualization(self) (L778)
- show_sunburst_visualization(self) (L802)
- show_interactive_dashboard(self) (L826)
- export_visualization_dialog(self) (L856)
- perform_visualization_export(self, dialog) (L898)
- refresh_startup_items(self) (L948)
- disable_selected_startup_items(self) (L985)
- refresh_processes(self) (L1030)
- quick_temp_clean(self) (L1089)
- start_temp_scan(self) (L1098)
- scan_registry(self) (L1115)
- clean_registry(self) (L1174)
- refresh_manifests(self) (L1217)
- restore_selected(self) (L1250)
- save_settings(self) (L1285)
- load_settings(self) (L1307)
- format_bytes(self, bytes_value) (L1324)
- closeEvent(self, event) (L1333)
- switch_to_tab(self, index) (L1366)
- create_heuristics_tab(self) (L1374)
- detect_package_managers(self) (L1432)
- start_pm_scan(self) (L1449)
- start_pm_cleanup(self) (L1483)
- browse_heuristics_path(self) (L1519)
- start_heuristics_scan(self) (L1525)
- start_heuristics_cleanup(self) (L1560)
- repair_selected_links(self) (L1593)
- on_path_mode_changed(self) (L1629)
- detect_available_drives(self) (L1640)
- add_network_drive(self) (L1664)
- test_network_connection(self, path, username, password) (L1698)
- add_network_path(self, dialog, path, username, password) (L1713)
- remove_selected_drives(self) (L1733)
- on_checkpoint_selection_changed(self) (L1746)
- list_checkpoints(self) (L1752)
- resume_from_checkpoint(self) (L1774)
- start_scan_with_checkpoint(self, checkpoint_id) (L1803)
- delete_checkpoint(self) (L1836)
- cleanup_old_checkpoints(self) (L1862)
- create_file_shredder_tab(self) (L1881)
- add_files_to_shred(self) (L1945)
- add_folder_to_shred(self) (L1954)
- remove_files_from_shred(self) (L1969)
- clear_shred_list(self) (L1976)
- start_file_shredding(self) (L1980)
- create_scheduler_tab(self) (L2047)
- create_tasks_subtab(self) (L2059)
- create_auto_clean_rules_subtab(self) (L2142)
- on_task_selection_changed(self) (L2219)
- create_scheduled_task(self) (L2228)
- refresh_scheduled_tasks(self) (L2271)
- run_selected_task(self) (L2301)
- delete_selected_task(self) (L2327)
- create_reports_tab(self) (L2356)
- generate_report(self) (L2431)
- preview_report(self) (L2458)
- schedule_report(self) (L2487)
- refresh_reports_list(self) (L2504)
- view_report(self, report_path) (L2534)
- delete_report(self, report_path) (L2547)
- save_report_template(self) (L2563)
- load_report_template(self) (L2575)
- create_resource_monitor_tab(self) (L2590)
- start_resource_monitoring(self) (L2687)
- stop_resource_monitoring(self) (L2702)
- update_resource_metrics(self) (L2712)
- check_performance_alerts(self, cpu_percent, memory_percent) (L2746)
- on_rule_selection_changed(self) (L2762)
- create_auto_clean_rule(self) (L2771)
- refresh_auto_clean_rules(self) (L2799)
- test_selected_rule(self) (L2827)
- delete_selected_rule(self) (L2851)
- main() (L2878)
src/cortex_unified/ui/navigation/init.py¶
Module: Navigation framework for Cortex Cleaner GUI.
src/cortex_unified/ui/navigation/icon_helper.py¶
Module: Icon helper for navigation system.
- class IconHelper (L8)
- create_text_icon(text, size, color) (L12)
- get_standard_icon(icon_type) (L46)
- get_navigation_icons() (L62)
- create_colored_circle_icon(color, size) (L101)
src/cortex_unified/ui/navigation/navigation_controller.py¶
Module: Navigation controller for Cortex Cleaner GUI.
- class NavigationController (L13)
- init(self, parent) (L20)
- setup_ui(self) (L34)
- create_navigation_panel(self) (L52)
- setup_styling(self) (L83)
- add_tab(self, widget, name, icon) (L130)
- remove_tab(self, name) (L167)
- set_current_tab(self, index) (L196)
- set_current_tab_by_name(self, name) (L214)
- get_current_tab_name(self) (L229)
- get_current_widget(self) (L237)
- get_tab_count(self) (L241)
- get_tab_names(self) (L245)
- on_navigation_changed(self, current_row) (L249)
- clear_tabs(self) (L261)
- update_tab_icon(self, name, icon) (L272)
- update_tab_name(self, old_name, new_name) (L290)
- setup_default_icons(self) (L311)
- add_tab_with_default_icon(self, widget, name) (L319)
src/cortex_unified/ui/premium/init.py¶
Module: Cortex Cleaner - premium GUI.
src/cortex_unified/ui/premium/advanced_uninstaller_page.py¶
Module: Advanced Uninstaller — multi-source app removal with forced uninstall and leftover scanning.
- class _UninstallWorker (L40)
- init(self, app_ids, force, scan_leftovers, max_leftovers_mb, sources) (L46)
- cancel(self) (L63)
- run(self) (L67)
- class AdvancedUninstallerPage (L111)
- init(self, win) (L114)
- _pick_root(self) (L243)
- _scan(self) (L253)
- _on_progress(self, msg) (L277)
- _on_scan_done(self, apps) (L281)
- _confirm_uninstall(self) (L308)
- _run_uninstall(self, apps) (L370)
- _on_uninstall_done(self, results) (L392)
- _on_fail(self, msg) (L443)
- _selected_apps(self) (L452)
- _fail(self, msg) (L466)
src/cortex_unified/ui/premium/analysis_pages.py¶
Module: Analysis & system pages: Disk Analyzer, Disk Health (S.M.A.R.T.), Scheduled Tasks.
- class DiskAnalyzeWorker (L44)
- init(self, root) (L49)
- run(self) (L54)
- class DiskHealthWorker (L67)
- run(self) (L72)
- class ScheduledTasksWorker (L81)
- run(self) (L86)
- class BootPerfWorker (L95)
- run(self) (L100)
- class SystemRepairWorker (L109)
- init(self, action, drive) (L114)
- run(self) (L120)
- class DeleteTaskWorker (L140)
- init(self, name) (L145)
- run(self) (L150)
- class DiskAnalyzerPage (L164)
- init(self, win) (L167)
- _pick(self) (L244)
- _run(self) (L251)
- _on_done(self, stats) (L258)
- _fail(self, msg) (L304)
- class DiskHealthPage (L314)
- init(self, win) (L317)
- _load(self) (L369)
- _dash(v) (L377)
- _on_done(self, disks) (L381)
- _fail(self, msg) (L416)
- class ScheduledTasksPage (L426)
- init(self, win) (L429)
- _load(self) (L485)
- _on_done(self, tasks) (L492)
- _delete(self) (L507)
- _on_deleted(self, ok, name) (L526)
- _fail(self, msg) (L537)
- class BootPerformancePage (L547)
- init(self, win) (L550)
- _load(self) (L613)
- _on_done(self, data) (L620)
- _fail(self, msg) (L668)
- class SystemRepairPage (L678)
- init(self, win) (L681)
- _tool_row(self, layout, title, desc, handler) (L754)
- _run(self, action, title, prompt) (L771)
- _on_done(self, r) (L789)
- _fail(self, msg) (L819)
- class StorageSenseWorker (L834)
- init(self, action, value) (L839)
- run(self) (L845)
- class StorageSensePage (L861)
- init(self, win) (L868)
- _load(self) (L923)
- _on_status(self, s) (L927)
- _toggle_enable(self, on) (L952)
- _set_cadence(self, idx) (L959)
- _set_recycle(self, idx) (L966)
- _fail(self, msg) (L973)
- class DefenderStatusWorker (L982)
- run(self) (L987)
- class DefenderScanWorker (L997)
- run(self) (L1002)
- class SecurityPage (L1012)
- init(self, win) (L1015)
- _load(self) (L1076)
- _on_status(self, s, threats) (L1082)
- _scan(self) (L1126)
- _on_scanned(self, ok, msg) (L1143)
- _fail(self, msg) (L1153)
- class HealthCheckWorker (L1164)
- run(self) (L1170)
- class HealthCheckPage (L1180)
- init(self, win) (L1194)
- _run(self) (L1272)
- _on_progress(self, msg) (L1286)
- _on_done(self, report) (L1290)
- _fail(self, msg) (L1341)
- class WUActivityWorker (L1356)
- run(self) (L1361)
- class WUPendingWorker (L1371)
- run(self) (L1376)
- class WindowsUpdatePage (L1385)
- init(self, win) (L1388)
- _load(self) (L1464)
- _on_activity(self, activity, history) (L1469)
- _check_pending(self) (L1483)
- _on_pending(self, updates) (L1490)
- _open_settings(self) (L1504)
- _fail(self, msg) (L1512)
- class ComponentStorePage (L1522)
- init(self, win) (L1532)
- _selected_leftovers(self) (L1650)
- _on_select(self) (L1655)
- _analyze(self) (L1663)
- _on_analyzed(self, analysis, leftovers) (L1672)
- _clean(self) (L1727)
- _on_cleaned(self, outcome) (L1753)
- _run_task(self) (L1777)
- _on_task(self, ok, message) (L1794)
- _delete_leftovers(self) (L1805)
- _on_deleted(self, freed, removed, blocked) (L1837)
- _fail(self, msg) (L1849)
src/cortex_unified/ui/premium/apex_tools_pages.py¶
Module: Cortex Cleaner & NexusExplorer — Apex Enterprise Power Tools Pages.
- _fmt_bytes(b) (L61)
- _PrimaryButton(text, parent) (L72)
- _SecondaryButton(text, parent) (L80)
- class DriverStoreCleanerPage (L91)
- init(self, win) (L93)
- _on_scan(self) (L135)
- _work() (L140)
- _done(drivers) (L144)
- _on_export(self) (L162)
- _on_delete_superseded(self) (L172)
- class ShellbagsCleanerPage (L198)
- init(self, win) (L200)
- _on_scan(self) (L236)
- _work() (L241)
- _done(targets) (L245)
- _on_clean(self) (L258)
- class PowerPlanOptimizerPage (L279)
- init(self, win) (L281)
- _refresh(self) (L323)
- _on_unlock_ultimate(self) (L340)
- _on_reduce_hiber(self) (L349)
- class HostsFileManagerPage (L363)
- init(self, win) (L365)
- _on_load(self) (L400)
- _on_apply_shield(self) (L410)
- class NotificationCleanerPage (L430)
- init(self, win) (L432)
- _refresh(self) (L461)
- _on_clean(self) (L471)
- class FileSignatureSnifferPage (L491)
- init(self, win) (L493)
- _on_choose_folder(self) (L533)
- _on_scan(self) (L539)
- _work() (L544)
- _done(results) (L552)
- class BinaryDifferPage (L573)
- init(self, win) (L575)
- _on_select_a(self) (L628)
- _on_select_b(self) (L635)
- _on_diff(self) (L642)
- _work() (L651)
- _done(rep) (L655)
- class UsnJournalPage (L683)
- init(self, win) (L685)
- _on_query(self) (L716)
- class Par2RecoveryPage (L737)
- init(self, win) (L739)
- _on_open_par2(self) (L772)
- class ImageOptimizerPage (L800)
- init(self, win) (L802)
- _on_add_images(self) (L858)
- _on_start(self) (L865)
- _work() (L877)
- _done(summary) (L885)
src/cortex_unified/ui/premium/app.py¶
Module: Premium GUI entry point (installed as the cortex-gui command).
- log_dir() (L20)
- setup_logging(debug) (L27)
- _install_qt_message_handler() (L60)
- handler(mode, context, message) (L76)
- _install_excepthook() (L83)
- hook(exc_type, exc_value, exc_tb) (L85)
- _install_threading_excepthook() (L110)
- hook(args) (L120)
- _schedule_update_check(win, settings) (L133)
- _done() (L145)
- _set_windows_dpi_awareness() (L166)
- _configure_high_dpi() (L224)
- main() (L263)
src/cortex_unified/ui/premium/audio_duplicates_page.py¶
Module: Audio duplicate detection page – Chromaprint-inspired acoustic fingerprinting.
- class _AudioWorker (L26)
- init(self, root, threshold) (L32)
- cancel(self) (L41)
- run(self) (L45)
- class AudioDuplicatesPage (L60)
- init(self, win) (L63)
- _pick(self) (L120)
- _run(self) (L129)
- _on_progress(self, msg) (L140)
- _on_done(self, groups) (L144)
- _fail(self, msg) (L177)
src/cortex_unified/ui/premium/backdrop.py¶
Module: Optional native window backdrop (Windows 11 Mica/Acrylic).
- _windows_build() (L46)
- apply_backdrop(win) (L59)
src/cortex_unified/ui/premium/cdc_page.py¶
Module: Content-Defined Chunking page – FastCDC / VectorCDC (FAST'25).
- class _CdcWorker (L25)
- init(self, root, threshold) (L31)
- cancel(self) (L40)
- run(self) (L44)
- class CdcPage (L59)
- init(self, win) (L62)
- _pick(self) (L119)
- _run(self) (L128)
- _on_progress(self, msg) (L139)
- _on_done(self, groups) (L143)
- _fail(self, msg) (L176)
src/cortex_unified/ui/premium/cleanup_hub_page.py¶
Module: Cleanup Hub: unified Storage Sense-style view of all cleanup categories.
- class HubScanWorker (L48)
- init(self, max_risk, include_disabled) (L58)
- cancel(self) (L66)
- run(self) (L70)
- _risk_label(risk) (L96)
- _risk_color(risk) (L101)
- class CleanupHubPage (L106)
- init(self, win) (L109)
- _scan(self) (L246)
- _on_progress(self, msg) (L258)
- _on_scanned(self, report) (L262)
- _make_card(self, cat, est_bytes, est_files) (L315)
- _on_toggled(checked, _cid) (L372)
- _select_all_cards(self, state) (L382)
- _update_clean_enabled(self) (L389)
- _fail(self, msg) (L395)
- _pick_custom_folder(self) (L405)
- _pick_custom_file(self) (L415)
- _clear_custom_roots(self) (L425)
- _update_roots_status(self) (L431)
- _clean(self) (L443)
- _on_cleaned(self, freed, items, skipped) (L477)
src/cortex_unified/ui/premium/cloud_storage_page.py¶
Module: Cloud Storage Analyzer — S3, Azure, Google Drive, OneDrive, rclone.
- class _WorkerResult (L43)
- class _CloudWorker (L50)
- init(self, target, max_objects, include_versions, include_delete_markers) (L56)
- cancel(self) (L71)
- run(self) (L75)
- class CloudStoragePage (L90)
- init(self, win) (L93)
- _build_summary_tab(self) (L182)
- _build_by_provider_tab(self) (L217)
- _build_by_class_tab(self) (L233)
- _build_duplicates_tab(self) (L249)
- _refresh_targets(self) (L272)
- _run(self) (L294)
- _on_progress(self, msg) (L323)
- _on_done(self, result) (L327)
- _fail(self, msg) (L362)
- _populate_summary(self, stats) (L369)
- _populate_by_provider(self, stats) (L399)
- _populate_by_class(self, stats) (L414)
- _populate_duplicates(self, duplicates) (L456)
src/cortex_unified/ui/premium/compact_os_page.py¶
Module: CompactOS / NTFS compression page – estimate, then compress only on demand.
- class _ScanWorker (L35)
- init(self, root, min_mb) (L41)
- cancel(self) (L50)
- run(self) (L54)
- class _CompactWorker (L67)
- init(self, path) (L72)
- run(self) (L77)
- class _QueryWorker (L88)
- run(self) (L93)
- class CompactOsPage (L106)
- init(self, win) (L109)
- _pick(self) (L190)
- _query(self) (L199)
- _on_query(self, info) (L205)
- _scan(self) (L213)
- _on_progress(self, msg) (L223)
- _on_done(self, ests) (L227)
- _compress(self) (L251)
- _compact_done(self, success, message) (L273)
- _fail(self, msg) (L283)
src/cortex_unified/ui/premium/device_window.py¶
Module: Per-device deep scan worker and the premium device detail window.
- _severity_badge_kind(severity) (L68)
- class DeviceDeepScanWorker (L73)
- init(self, device, networks, profile, custom_ports, nmap_modes, catalog_path) (L80)
- cancel(self) (L107)
- _say(self, message) (L111)
- run(self) (L115)
- _run_nmap(self, observations, notes) (L219)
- _ping(self) (L273)
- _reverse_dns(self) (L287)
- _history(self, device) (L295)
- class DevicePingWorker (L327)
- init(self, ip, networks) (L334)
- cancel(self) (L341)
- run(self) (L345)
- class DeviceDetailWindow (L379)
- init(self, win, device, networks, catalog_path, parent) (L384)
- _build_header(self) (L431)
- _header_badges(self) (L458)
- _build_actions(self) (L473)
- _toggle_more_actions(self, visible) (L561)
- _build_cards(self) (L571)
- _build_tabs(self) (L592)
- _table(self, headers, stretch) (L669)
- start_scan(self, profile) (L691)
- _confirm_all_ports(self) (L716)
- _cancel(self) (L729)
- _busy(self, busy) (L735)
- _refresh_action_states(self) (L740)
- _on_failed(self, message) (L787)
- _ping_only(self) (L797)
- _on_pinged(self, ping) (L811)
- _finish_pending_close(self) (L834)
- _render_known(self) (L841)
- _on_scanned(self, payload) (L874)
- _render(self, payload, scanned) (L892)
- _render_cards(self, payload, services, findings, scanned) (L907)
- _render_overview(self, payload, services, findings, scanned) (L930)
- _render_services(self, services) (L1001)
- _render_findings(self, findings, scanned) (L1036)
- _render_identity(self, fingerprint) (L1068)
- _render_discovery(self, payload) (L1085)
- _render_history(self, payload) (L1115)
- _load_metadata(self) (L1157)
- _save_metadata(self) (L1179)
- _wake(self) (L1203)
- _open_service(self) (L1229)
- _copy_identity(self) (L1251)
- _export(self) (L1260)
- _html_report(self, payload) (L1301)
- closeEvent(self, event) (L1353)
src/cortex_unified/ui/premium/directstorage_page.py¶
Module: Windows 11 DirectStorage & BypassIO Hardware Acceleration Page.
- class _DirectStorageWorker (L34)
- init(self, optimizer) (L38)
- run_audit(self) (L43)
- class DirectStorageOptimizerPage (L49)
- init(self, win) (L52)
- _start_audit(self) (L117)
- _on_audit_finished(self, report) (L130)
src/cortex_unified/ui/premium/disk_analyzer_page.py¶
Module: Advanced Disk Analyzer page — MFT fast scan, treemap, deep folder breakdown.
- class _ScanWorker (L42)
- init(self, root, max_depth) (L49)
- cancel(self) (L56)
- run(self) (L60)
- _discover_fixed_drives() (L100)
- _compute_depth(node, target_path) (L127)
- class DiskAnalyzerPage (L138)
- init(self, win) (L141)
- _populate_drives(self) (L261)
- _on_drive_changed(self, idx) (L270)
- _browse(self) (L277)
- _run(self) (L290)
- _on_progress(self, msg) (L309)
- _on_done(self, result) (L313)
- _fail(self, msg) (L399)
src/cortex_unified/ui/premium/driver_manager_page.py¶
Module: Driver Manager page — scan, update, backup and clean device drivers.
- class _ScanWorker (L56)
- init(self, offline_mode, index_path) (L63)
- cancel(self) (L70)
- run(self) (L74)
- class _InstallWorker (L92)
- init(self, hardware_ids, offline_mode) (L99)
- cancel(self) (L106)
- run(self) (L110)
- class _BackupWorker (L127)
- init(self) (L134)
- cancel(self) (L139)
- run(self) (L143)
- class DriverManagerPage (L175)
- init(self, win) (L178)
- _selected_hwids(self) (L268)
- _populate_table(self, drivers) (L273)
- _scan(self) (L310)
- _on_progress(self, msg) (L327)
- _on_scan_done(self, drivers) (L331)
- _on_scan_fail(self, msg) (L356)
- _install(self) (L363)
- _on_install_done(self, results) (L399)
- _on_install_fail(self, msg) (L420)
- _backup(self) (L428)
- _on_backup_done(self, path) (L440)
- _on_backup_fail(self, msg) (L448)
src/cortex_unified/ui/premium/enterprise_suite_pages.py¶
Module: Cortex Cleaner & NexusExplorer — Enterprise Next-Gen Suite GUI Pages.
- _fmt_bytes(b) (L53)
- _PrimaryButton(text, parent) (L64)
- _SecondaryButton(text, parent) (L72)
- _run_task(win, work_fn, done_fn, err_fn) (L79)
- class VssManagerPage (L96)
- init(self, win) (L98)
- _on_audit(self) (L138)
- _on_audit_done(self, rep) (L143)
- _on_create(self) (L159)
- _on_purge(self) (L164)
- _on_action_done(self, res) (L169)
- _on_err(self, exc) (L175)
- class DevDriveOptimizerPage (L184)
- init(self, win) (L186)
- _on_audit(self) (L220)
- _on_audit_done(self, rep) (L225)
- _on_err(self, exc) (L244)
- class BitLockerAuditorPage (L253)
- init(self, win) (L255)
- _on_audit(self) (L289)
- _on_audit_done(self, rep) (L294)
- _on_err(self, exc) (L312)
- class JunctionAuditorPage (L321)
- init(self, win) (L323)
- _on_scan(self) (L364)
- _on_custom(self) (L369)
- _on_scan_done(self, rep) (L376)
- _on_clean_dead(self) (L394)
- _on_err(self, exc) (L405)
- class BitRotScrubberPage (L414)
- init(self, win) (L416)
- _on_browse(self) (L454)
- _on_scrub(self) (L460)
- _on_scrub_done(self, rep) (L468)
- _on_err(self, exc) (L484)
- class MemoryCompressionPage (L493)
- init(self, win) (L495)
- _on_audit(self) (L530)
- _on_audit_done(self, rep) (L535)
- _on_toggle(self) (L561)
- _on_toggle_done(self, res) (L569)
- _on_err(self, exc) (L575)
- class SandboxCleanerPage (L584)
- init(self, win) (L586)
- _on_scan(self) (L624)
- _on_scan_done(self, rep) (L629)
- _on_clean(self) (L643)
- _on_clean_done(self, res) (L653)
- _on_err(self, exc) (L659)
- class SmbShareAuditorPage (L668)
- init(self, win) (L670)
- _on_audit(self) (L703)
- _on_audit_done(self, rep) (L708)
- _on_err(self, exc) (L726)
- class ProcessTokenPage (L735)
- init(self, win) (L737)
- _on_audit(self) (L771)
- _on_audit_done(self, rep) (L776)
- _on_err(self, exc) (L794)
- class StorageGrowthTrackerPage (L803)
- init(self, win) (L805)
- _on_browse(self) (L848)
- _on_snapshot(self) (L854)
- _on_snapshot_done(self, s) (L862)
- _on_diff(self) (L868)
- _on_diff_done(self, rep) (L880)
- _on_err(self, exc) (L898)
src/cortex_unified/ui/premium/expanded_tools_pages.py¶
Module: Cortex Cleaner & NexusExplorer — Expanded Enterprise Power Tools Pages.
- PrimaryButton(text, parent) (L48)
- SecondaryButton(text, parent) (L55)
- _fmt_bytes(b) (L74)
- class LinksManagerPage (L89)
- init(self, win) (L91)
- _on_choose_folder(self) (L142)
- _on_scan(self) (L149)
- _work() (L155)
- _done(items) (L159)
- _on_remove_link(self) (L176)
- class FastCopierPage (L202)
- init(self, win) (L204)
- _on_add_source(self) (L273)
- _on_choose_dest(self) (L280)
- _on_start_copy(self) (L287)
- _work() (L304)
- _done(summary) (L313)
- class TimestampTouchPage (L333)
- init(self, win) (L335)
- _on_choose_files(self) (L417)
- _on_apply(self) (L434)
- class ArchiveManagerPage (L460)
- init(self, win) (L462)
- _on_open_archive(self) (L511)
- _on_test_archive(self) (L525)
- _on_extract_archive(self) (L537)
- _on_create_archive(self) (L551)
- class PrefetchAnalyzerPage (L571)
- init(self, win) (L573)
- _refresh_status(self) (L613)
- _on_scan(self) (L622)
- _work() (L627)
- _done(entries) (L631)
- _on_clean(self) (L645)
- class SearchIndexOptimizerPage (L662)
- init(self, win) (L664)
- _refresh(self) (L699)
- _on_compact(self) (L710)
- _on_rebuild(self) (L735)
- class DnsBenchmarkPage (L752)
- init(self, win) (L754)
- _on_benchmark(self) (L792)
- _work() (L797)
- _done(results) (L801)
- _on_apply_dns(self) (L820)
- class DiskBenchmarkPage (L843)
- init(self, win) (L845)
- _on_select_target(self) (L895)
- _on_start_bench(self) (L902)
- _work() (L907)
- _done(report) (L911)
- class MemoryOptimizerPage (L929)
- init(self, win) (L931)
- _on_refresh(self) (L969)
- _on_trim(self) (L986)
- class DevCleanerPage (L997)
- init(self, win) (L999)
- _on_scan(self) (L1035)
- _work() (L1040)
- _done(items) (L1044)
- _on_clean(self) (L1057)
- class BrowserDeepCleanerPage (L1078)
- init(self, win) (L1080)
- _on_scan(self) (L1116)
- _work() (L1121)
- _done(targets) (L1125)
- _on_clean(self) (L1138)
src/cortex_unified/ui/premium/focus.py¶
Module: Focus-visible: show keyboard focus rings only for keyboard navigation.
- class FocusVisibleFilter (L43)
- init(self, app) (L46)
- eventFilter(self, obj, event) (L52)
- _set_visible(obj, visible) (L76)
- install_focus_visible(app) (L91)
src/cortex_unified/ui/premium/fuzzy_hash_page.py¶
Module: Fuzzy hash page – ssdeep-style CTPH for close-but-different binaries.
- class _FuzzyWorker (L26)
- init(self, root, threshold) (L32)
- cancel(self) (L41)
- run(self) (L45)
- class FuzzyHashPage (L60)
- init(self, win) (L63)
- _pick(self) (L119)
- _run(self) (L128)
- _on_progress(self, msg) (L139)
- _on_done(self, groups) (L143)
- _fail(self, msg) (L176)
src/cortex_unified/ui/premium/icons.py¶
Module: Crisp, theme-tinted SVG icons.
- _svg_source(name) (L56)
- _render(name, size, color, dpr_x100) (L67)
- _device_pixel_ratio() (L119)
- pixmap(name, size, color) (L133)
- icon(name, size, color) (L140)
- available() (L160)
- has_icon(name) (L168)
- icon_size(size) (L173)
- clear_cache() (L178)
- tinted_color(palette, muted) (L184)
src/cortex_unified/ui/premium/license_page.py¶
Module: License & Tiers page: current entitlement, offline activation, trial.
- class LicensePage (L47)
- init(self, win) (L50)
- _refresh(self) (L145)
- _fill_table(self, state) (L180)
- _activate(self) (L198)
- _start_trial(self) (L219)
- _deactivate(self) (L234)
src/cortex_unified/ui/premium/log_sweeper_page.py¶
Module: Log Sweeper: find huge .log/.txt across user-selected roots (D:\code).
- class _LogWorker (L36)
- init(self, roots, min_mb) (L42)
- cancel(self) (L51)
- run(self) (L55)
- class LogSweeperPage (L73)
- init(self, win) (L76)
- _add_root(self) (L176)
- _discover_code_roots(self) (L186)
- _select_code_root(self) (L214)
- _rm_root(self) (L225)
- _scan(self) (L231)
- _on_progress(self, msg) (L247)
- _on_done(self, results) (L251)
- _delete(self) (L279)
- _on_deleted(self, freed, ok, blocked) (L309)
- _fail(self, msg) (L320)
src/cortex_unified/ui/premium/memory_standby_page.py¶
Module: Windows RAM Standby List & Working Set Kernel Purger Page.
- class MemoryStandbyPurgerPage (L34)
- init(self, win) (L37)
- _refresh_stats(self) (L113)
- _on_purge_standby(self) (L121)
- _on_empty_working_sets(self) (L126)
- _on_purge_modified(self) (L131)
- _on_purge_all(self) (L136)
- _handle_result(self, res) (L152)
src/cortex_unified/ui/premium/mft_slack_page.py¶
Module: NTFS Master File Table ($MFT) & Directory Index Slack Scrubber Page.
- class _MftScrubWorker (L36)
- init(self, scrubber) (L41)
- run_audit(self) (L46)
- run_scrub(self) (L51)
- class MftSlackScrubberPage (L57)
- init(self, win) (L60)
- _on_volume_changed(self, vol) (L145)
- _start_audit(self) (L154)
- _on_audit_finished(self, report) (L168)
- _start_scrub(self) (L194)
- _on_scrub_finished(self, report) (L218)
src/cortex_unified/ui/premium/model_cache_page.py¶
Module: Model Cache page – hardlink-aware HF hub / Ollama / LM Studio.
- class _ScanWorker (L35)
- run(self) (L40)
- class _CleanOrphansWorker (L50)
- init(self, dry_run) (L55)
- run(self) (L60)
- class ModelCachePage (L71)
- init(self, win) (L74)
- _scan(self) (L145)
- _on_scan(self, stores) (L153)
- _clean(self, dry_run) (L200)
- _on_clean(self, ok, msg, freed) (L222)
- _fail(self, msg) (L233)
src/cortex_unified/ui/premium/more_pages.py¶
Module: Additional premium pages: Software Updater, Drive Optimizer, System Info.
- _windows_only(page, feature) (L58)
- _allow_multi_select(table) (L77)
- _selected_records(table) (L87)
- class UpdaterListWorker (L110)
- run(self) (L115)
- class UpgradeWorker (L124)
- init(self, package_ids) (L129)
- run(self) (L134)
- class DriveListWorker (L148)
- run(self) (L153)
- class DriveOptimizeWorker (L162)
- init(self, letter) (L167)
- run(self) (L172)
- class SystemInfoWorker (L182)
- run(self) (L187)
- class SoftwareUpdaterPage (L200)
- init(self, win) (L203)
- _load(self) (L265)
- _on_listed(self, apps) (L274)
- _selected_ids(self) (L300)
- _update_selected(self) (L309)
- _update_all(self) (L317)
- _run_updates(self, ids, prompt) (L322)
- _on_updated(self, ok, total) (L344)
- _fail(self, msg) (L357)
- class DriveOptimizerPage (L367)
- init(self, win) (L370)
- _load(self) (L428)
- _on_listed(self, drives) (L434)
- _optimize(self) (L456)
- _on_done(self, success, message) (L478)
- _fail(self, msg) (L493)
- class SystemInfoPage (L507)
- init(self, win) (L510)
- _load(self) (L551)
- _on_info(self, info) (L557)
- _fail(self, msg) (L590)
- class BrokenLinksWorker (L604)
- init(self, root) (L610)
- cancel(self) (L617)
- run(self) (L621)
- class DuplicateFoldersWorker (L635)
- init(self, root) (L641)
- cancel(self) (L648)
- run(self) (L652)
- class PackageCacheWorker (L664)
- run(self) (L669)
- class PackageCleanWorker (L689)
- init(self, manager) (L694)
- run(self) (L699)
- class _SimpleFolderPage (L721)
- init(self, win) (L731)
- _build_results(self) (L820)
- _pick(self) (L826)
- _toggle_run(self) (L838)
- _start(self, worker, on_done) (L848)
- _on_progress(self, text) (L861)
- _finish(self) (L865)
- _busy(self, on) (L874)
- _selected_paths(self) (L881)
- _delete_selected(self) (L887)
- _on_deleted(self, freed, ok, blocked) (L905)
- _run(self) (L913)
- _fail(self, msg) (L919)
- class BrokenLinksPage (L930)
- _build_results(self) (L936)
- _run(self) (L946)
- _on_done(self, links) (L950)
- class DuplicateFoldersPage (L966)
- _build_results(self) (L972)
- _run(self) (L982)
- _on_done(self, groups) (L986)
- class PackageCachePage (L1006)
- init(self, win) (L1012)
- _browse_pm_directory(self) (L1204)
- _browse_pm_file(self) (L1213)
- _add_custom_pm_location(self) (L1223)
- detect_package_managers(self) (L1231)
- start_pm_scan(self) (L1268)
- _display_scan_results(self, resources) (L1298)
- start_pm_cleanup(self) (L1339)
- _handle_cleanup_results(self, results, dry_run) (L1383)
- _fail(self, msg) (L1397)
- _fmt_bytes(size_bytes) (L1402)
- class SortableTreeWidgetItem (L1418)
- lt(self, other) (L1420)
- class ProjectCachesPage (L1436)
- init(self, win) (L1439)
- _toggle_settings_panel(self, checked) (L1822)
- _update_target_count_badge(self) (L1826)
- _add_typed_target_folder(self) (L1831)
- select_file_location_to_scan(self) (L1840)
- auto_detect_code_folders(self) (L1853)
- add_current_workspace(self) (L1881)
- add_folder_to_scan(self) (L1893)
- remove_selected_folder(self) (L1905)
- clear_all_folders(self) (L1916)
- select_all_categories(self) (L1930)
- clear_all_categories(self) (L1939)
- _get_enabled_categories(self) (L1948)
- start_project_scan(self) (L1965)
- _on_scan_progress(self, status_text, items_found, total_bytes) (L2008)
- _on_proj_scan_finished(self, resources) (L2014)
- start_auto_scan(self) (L2021)
- _on_scan_failed(self, err_msg) (L2050)
- _cleanup_scan_thread(self) (L2055)
- cancel_project_operation(self) (L2070)
- _display_project_scan_results(self, resources) (L2079)
- _on_tree_item_expanded(self, item) (L2151)
- on_sort_combo_changed(self, index) (L2196)
- filter_by_chip(self, cat_key) (L2213)
- _on_tree_item_double_clicked(self, item, column) (L2220)
- _on_tree_item_changed(self, item, column) (L2232)
- filter_results_table(self, query) (L2245)
- toggle_all_table_items(self, checked) (L2282)
- export_report(self) (L2293)
- _get_selected_resources(self) (L2333)
- start_project_cleanup(self) (L2344)
- _on_clean_progress(self, done_count, total_count, freed_bytes) (L2383)
- _on_proj_clean_finished(self, results, dry_run) (L2388)
- _handle_project_cleanup_results(self, results, dry_run) (L2413)
- _on_clean_failed(self, err_msg) (L2417)
- _cleanup_clean_thread(self) (L2422)
- _fail(self, msg) (L2436)
- _fmt_bytes(size_bytes) (L2441)
- class SecretsScanWorker (L2457)
- init(self, directory) (L2462)
- run(self) (L2467)
- _severity_rank(finding) (L2495)
- _line_sort_key(finding) (L2500)
- class SecretsScannerPage (L2509)
- init(self, win) (L2512)
- _pick(self) (L2558)
- _run(self) (L2567)
- _on_done(self, findings, risk) (L2575)
- _fail(self, msg) (L2594)
- class VirtualDisksPage (L2605)
- init(self, win) (L2614)
- _selected_disks(self) (L2711)
- _on_select(self) (L2716)
- _load(self) (L2725)
- _on_listed(self, disks) (L2733)
- _shutdown(self) (L2769)
- _on_shutdown(self, ok, message) (L2786)
- _compact(self) (L2796)
- _on_compacted(self, results) (L2820)
- _set_sparse(self) (L2849)
- _on_sparse(self, ok, message) (L2871)
- _fail(self, msg) (L2881)
src/cortex_unified/ui/premium/motion.py¶
Module: Motion system: a single shared set of animation durations and easing curves
- prefers_reduced_motion() (L29)
- set_reduced_motion(value) (L34)
- class Duration (L40)
- fade_in(widget, duration, on_done) (L62)
- _teardown() (L86)
- reveal(widget, duration, rise, on_done) (L101)
- _teardown() (L153)
- press_feedback(widget, sink) (L169)
- _anim_to(point) (L185)
- _down() (L195)
- _up() (L207)
- animate_property(target, prop, start, end, duration, easing) (L222)
src/cortex_unified/ui/premium/near_duplicates_page.py¶
Module: Near-duplicate finder page – MinHash LSH + Bloom (SEDD/LSHBloom/SemHash).
- class _NearDupWorker (L29)
- init(self, root, threshold) (L35)
- cancel(self) (L44)
- run(self) (L48)
- class NearDuplicatesPage (L63)
- init(self, win) (L66)
- _pick(self) (L117)
- _run(self) (L127)
- _on_progress(self, msg) (L138)
- _on_done(self, groups) (L142)
- _fail(self, msg) (L168)
src/cortex_unified/ui/premium/network_pages.py¶
Module: Network suite pages: live Traffic Monitor and Firewall control.
- _ip_sort_key(device) (L57)
- _fmt_rate(bps) (L75)
- class TrafficMonitorPage (L89)
- init(self, win) (L92)
- _start(self) (L142)
- _tick(self) (L150)
- class FirewallListWorker (L177)
- init(self, cortex_only) (L182)
- run(self) (L187)
- class FirewallActionWorker (L197)
- init(self, action, **kwargs) (L202)
- run(self) (L208)
- class FirewallPage (L235)
- init(self, win) (L238)
- _browse(self) (L337)
- _busy(self, on) (L344)
- _create(self, action) (L349)
- _on_action(self, ok, msg) (L378)
- _load(self) (L387)
- _on_listed(self, rules) (L393)
- _on_sel(self) (L414)
- _selected(self) (L420)
- _toggle(self) (L430)
- _remove(self) (L441)
- _fail(self, msg) (L458)
- class _MapCanvas (L469)
- init(self, palette, parent) (L472)
- set_edges(self, edges) (L479)
- paintEvent(self, event) (L485)
- _ys(n) (L514)
- _curve(self, painter, x1, y1, x2, y2, color) (L552)
- _node(self, painter, cx, cy, label, color, big, small) (L563)
- class NetworkMapPage (L584)
- init(self, win) (L587)
- _load(self) (L627)
- _on_loaded(self, conns, summary) (L634)
- _render(self) (L641)
- _fail(self, msg) (L659)
- class LanScanWorker (L669)
- init(self, deep, rounds, audit_profile, include_upnp_wan, requested_networks, custom_ports, nmap_modes, advisory_catalog_path) (L681)
- cancel(self) (L698)
- run(self) (L702)
- class VendorDatabaseWorker (L724)
- init(self) (L730)
- cancel(self) (L735)
- run(self) (L739)
- class NetworkScheduleWorker (L750)
- init(self, action, spec) (L755)
- run(self) (L761)
- class ExposureLookupWorker (L779)
- init(self, provider, public_ip, api_key, api_secret) (L784)
- run(self) (L793)
- class DeviceActionWorker (L807)
- init(self, action, device, networks) (L813)
- run(self) (L820)
- class LanDevicesPage (L857)
- init(self, win) (L872)
- _toggle_more_controls(self, visible) (L1281)
- _load(self, deep, rounds, audit_profile, include_upnp_wan, requested_networks, custom_ports, nmap_modes, advisory_catalog_path) (L1291)
- _run_expert_scan(self) (L1308)
- _browse_advisory_catalog(self) (L1348)
- _device_columns(self) (L1358)
- _device_name(self, dev) (L1378)
- _device_type(self, dev) (L1388)
- _device_services(dev) (L1403)
- _device_findings(self, dev) (L1415)
- _device_security(self, dev) (L1421)
- _device_security_rank(self, dev) (L1431)
- _identity_of(self, dev) (L1438)
- _open_device_window(self, *_args) (L1443)
- _forget_device_window(self, window) (L1464)
- _selected_device(self) (L1470)
- _device_action(self, action) (L1479)
- _device_action_done(self, action, payload) (L1501)
- _device_action_failed(self, message) (L1517)
- _open_selected_service(self) (L1524)
- _load_selected_metadata(self, device) (L1545)
- _save_selected_metadata(self) (L1563)
- _export_inventory_csv(self) (L1592)
- _import_inventory_csv(self) (L1610)
- _lookup_external_exposure(self) (L1645)
- _exposure_done(self, result) (L1683)
- _exposure_failed(self, message) (L1690)
- _create_schedule(self) (L1696)
- _delete_schedule(self) (L1726)
- _run_schedule_action(self, action, spec) (L1737)
- _schedule_done(self, action, payload) (L1746)
- _schedule_failed(self, message) (L1753)
- _confirm_deep_audit(self) (L1758)
- _update_vendors(self) (L1774)
- _vendors_updated(self, ok, message) (L1782)
- _vendor_update_failed(self, message) (L1794)
- _export_report(self) (L1799)
- _show_device_details(self, *_args) (L1881)
- _cancel(self) (L1945)
- _busy(self, busy) (L1955)
- _on_loaded(self, result) (L1975)
- _ip_key(dev) (L1981)
- _fail(self, msg) (L2167)
- class _ToolWorker (L2177)
- init(self, tool, target) (L2183)
- run(self) (L2189)
- class NetworkToolsPage (L2222)
- init(self, win) (L2225)
- _run(self, tool) (L2287)
- _on_result(self, tool, result) (L2301)
- _show_ping(self, r) (L2316)
- _show_traceroute(self, hops) (L2329)
- _show_dns(self, r) (L2341)
- _show_ports(self, res) (L2357)
- _show_ipinfo(self, info) (L2378)
- _fail(self, msg) (L2394)
- class AuthorizeWorker (L2407)
- init(self, host, token) (L2412)
- run(self) (L2418)
- class LoadTestWorker (L2428)
- init(self, mode, cfg, auth_dict) (L2434)
- cancel(self) (L2443)
- run(self) (L2447)
- class LoadTesterPage (L2470)
- init(self, win) (L2473)
- _mode_changed(self) (L2574)
- _check(self) (L2580)
- _on_auth(self, auth) (L2590)
- _offer_token(self, auth) (L2608)
- _auth_fail(self, msg) (L2624)
- _toggle(self) (L2630)
- _start(self) (L2639)
- _on_progress(self, snap) (L2677)
- _on_done(self, s) (L2683)
- _verdict(s) (L2707)
- _run_fail(self, msg) (L2721)
src/cortex_unified/ui/premium/nextgen_suite_pages.py¶
Module: Cortex Cleaner & NexusExplorer — Next-Generation Enterprise Suite GUI Pages.
- _fmt_bytes(b) (L50)
- _PrimaryButton(text) (L61)
- _SecondaryButton(text) (L69)
- _run_task(win, work_fn, done_fn, err_fn) (L76)
- class ShaderCachePage (L93)
- init(self, win) (L95)
- _on_scan(self) (L142)
- work() (L147)
- done(report) (L151)
- _on_clean(self) (L170)
- work() (L175)
- done(result) (L179)
- class AiTelemetryCleanerPage (L195)
- init(self, win) (L197)
- _on_scan(self) (L237)
- work() (L241)
- done(report) (L245)
- _on_clean(self) (L263)
- work() (L267)
- done(result) (L271)
- class SsdTrimOptimizerPage (L288)
- init(self, win) (L290)
- _on_audit(self) (L327)
- work() (L331)
- done(report) (L335)
- _on_trim(self) (L356)
- work() (L368)
- done(result) (L372)
- class RestartManagerUnlockerPage (L388)
- init(self, win) (L390)
- _on_browse(self) (L433)
- _on_inspect(self) (L440)
- work() (L448)
- done(report) (L452)
- _on_unlock(self) (L474)
- work() (L480)
- done(result) (L484)
- class VssHealthAnalyzerPage (L497)
- init(self, win) (L499)
- _on_scan(self) (L539)
- work() (L543)
- done(report) (L547)
- _on_reset(self) (L567)
- work() (L571)
- done(result) (L575)
- class DevPackageCachePage (L588)
- init(self, win) (L590)
- _on_scan(self) (L631)
- work() (L635)
- done(report) (L639)
- _on_clean(self) (L658)
- work() (L662)
- done(result) (L666)
- class ChecksumMatrixPage (L680)
- init(self, win) (L682)
- _on_browse_file(self) (L731)
- _on_browse_dir(self) (L738)
- _on_hash(self) (L744)
- work() (L753)
- done(res) (L757)
- _on_generate_manifest(self) (L780)
- work() (L790)
- done(count) (L794)
src/cortex_unified/ui/premium/nexus_page.py¶
Module: Nexus File Manager page.
- _load_nexus_module() (L38)
- class _ErrorCard (L58)
- init(self, message, parent) (L60)
- class NexusExplorerPage (L78)
- init(self, win) (L88)
- _build_explorer(self) (L97)
src/cortex_unified/ui/premium/perceptual_duplicates_page.py¶
Module: Perceptual duplicate photos page – pHash / dHash / aHash.
- class _PerceptualWorker (L26)
- init(self, root, max_distance) (L32)
- cancel(self) (L41)
- run(self) (L45)
- class PerceptualDuplicatesPage (L63)
- init(self, win) (L66)
- _pick(self) (L121)
- _run(self) (L130)
- _on_progress(self, msg) (L141)
- _on_done(self, groups) (L145)
- _fail(self, msg) (L178)
src/cortex_unified/ui/premium/portable_manager_page.py¶
Module: Portable App Manager page — scan, track, and update portable apps.
- class _PortableWorker (L41)
- init(self, roots, target_apps) (L47)
- cancel(self) (L54)
- run(self) (L58)
- class _UpdateWorker (L78)
- init(self, apps) (L84)
- cancel(self) (L90)
- run(self) (L94)
- class PortableManagerPage (L121)
- init(self, win) (L124)
- _add_root(self) (L206)
- _parse_roots(self) (L218)
- _get_target_apps(self) (L225)
- _run(self) (L232)
- _on_progress(self, msg) (L247)
- _on_done(self, apps) (L251)
- _auto_update(self, apps) (L290)
- _on_update_done(self, result) (L318)
- _on_update_fail(self, msg) (L327)
- _fail(self, msg) (L334)
src/cortex_unified/ui/premium/power_suite_pages.py¶
Module: Cortex Cleaner & NexusExplorer — Enterprise Power Suite GUI Pages.
- _fmt_bytes(b) (L56)
- _PrimaryButton(text, parent) (L67)
- _SecondaryButton(text, parent) (L75)
- _run_task(win, work_fn, done_fn, err_fn) (L82)
- class EnvVariableManagerPage (L99)
- init(self, win) (L101)
- _on_analyze(self) (L144)
- _on_clean(self) (L166)
- _on_export(self) (L181)
- class WindowsServiceManagerPage (L195)
- init(self, win) (L197)
- _on_scan(self) (L236)
- _work() (L241)
- _done(services) (L245)
- _on_apply_profile(self) (L264)
- class FontCacheManagerPage (L285)
- init(self, win) (L287)
- _on_scan(self) (L327)
- _on_clean(self) (L347)
- class TempFolderCleanerPage (L364)
- init(self, win) (L366)
- _on_scan(self) (L412)
- _on_clean(self) (L431)
- class ContextMenuManagerPage (L452)
- init(self, win) (L454)
- _on_scan(self) (L500)
- _on_disable_selected(self) (L522)
- _on_enable_selected(self) (L534)
- class PagefileOptimizerPage (L551)
- init(self, win) (L553)
- _refresh(self) (L604)
- _on_apply(self) (L616)
- _on_reset_auto(self) (L634)
- class DiagnosticDataManagerPage (L648)
- init(self, win) (L650)
- _on_audit(self) (L688)
- _on_harden(self) (L708)
- class StartupImpactPage (L728)
- init(self, win) (L730)
- _on_scan(self) (L772)
- _on_toggle(self) (L798)
- class SlackSpaceAnalyzerPage (L817)
- init(self, win) (L819)
- _on_choose(self) (L859)
- _on_scan(self) (L866)
- _work() (L871)
- _done(rep) (L875)
- class EventLogMonitorPage (L903)
- init(self, win) (L905)
- _on_scan(self) (L940)
- _work() (L945)
- _done(rep) (L949)
src/cortex_unified/ui/premium/power_tools_pages.py¶
Module: Premium GUI pages for Enterprise Power Tools & System Maintainers.
- class HashVerifierPage (L60)
- init(self, win) (L63)
- _pick_file(self) (L118)
- _compute_hashes(self) (L128)
- _copy_to_clip(self, text) (L151)
- _verify_manifest(self) (L157)
- class BatchRenamerPage (L183)
- init(self, win) (L186)
- _pick_files(self) (L267)
- _update_preview(self) (L275)
- _apply_rename(self) (L318)
- _undo_rename(self) (L330)
- class FolderSyncPage (L344)
- init(self, win) (L347)
- _pick_left(self) (L425)
- _pick_right(self) (L434)
- _run_compare(self) (L443)
- _run_sync(self) (L476)
- class FileSplitterPage (L512)
- init(self, win) (L515)
- _pick_split_src(self) (L588)
- _execute_split(self) (L598)
- _pick_join_src(self) (L624)
- _execute_join(self) (L634)
- class FileUnlockerPage (L655)
- init(self, win) (L658)
- _pick_file(self) (L697)
- _inspect_locks(self) (L708)
- _terminate_proc(self, pid) (L732)
- class AdsManagerPage (L747)
- init(self, win) (L750)
- _pick_file(self) (L787)
- _refresh_streams(self) (L797)
- _unblock_file(self) (L818)
- _delete_stream(self, stream_name) (L830)
- class EventLogCleanerPage (L847)
- init(self, win) (L850)
- _load_logs(self) (L897)
- _clear_all_logs(self) (L916)
- class SystemCacheRebuilderPage (L937)
- init(self, win) (L940)
- _execute_rebuild(self) (L970)
- class NetworkOptimizerPage (L985)
- init(self, win) (L988)
- _load_tcp_status(self) (L1055)
- _set_autotuning(self, level) (L1063)
- _flush_dns(self) (L1070)
- _clear_arp(self) (L1076)
- _reset_winsock(self) (L1082)
- _repair_all(self) (L1088)
- class CrashDumpCleanerPage (L1100)
- init(self, win) (L1103)
- _scan_dumps(self) (L1149)
- _clean_dumps(self) (L1166)
src/cortex_unified/ui/premium/privacy_blocker_page.py¶
Module: Privacy & Telemetry Blocker page — profile-based telemetry control.
- class _PrivacyWorker (L33)
- init(self, mode, profile, tweak_ids) (L40)
- cancel(self) (L52)
- run(self) (L56)
- class PrivacyBlockerPage (L106)
- init(self, win) (L109)
- _discover_categories() (L216)
- _selected_tweak_ids(self) (L222)
- _apply(self) (L236)
- _revert(self) (L254)
- _set_busy(self, busy) (L264)
- _on_progress(self, msg) (L273)
- _on_done(self, rows) (L277)
- _fail(self, msg) (L302)
src/cortex_unified/ui/premium/registry.py¶
Module: The single source of truth for every tool page in the premium shell.
- class NavGroup (L44)
- class PageSpec (L52)
- load(self) (L71)
- _validate() (L912)
- ordered_ids() (L944)
- ordered_specs() (L949)
- grouped() (L954)
- group_of(page_id) (L960)
src/cortex_unified/ui/premium/registry_ai_page.py¶
Module: AI Registry Cleaner page — ML-powered risk scoring for registry cleanup.
- class _RegistryWorker (L39)
- init(self, root, categories, risk_threshold, create_restore_point) (L45)
- cancel(self) (L60)
- run(self) (L64)
- class RegistryAICleanerPage (L92)
- init(self, win) (L97)
- _pick(self) (L179)
- _run(self) (L188)
- _all_categories(self) (L216)
- _on_progress(self, msg) (L222)
- _on_done(self, data) (L226)
- _fail(self, msg) (L270)
src/cortex_unified/ui/premium/report_pages.py¶
Module: Reporting & recovery pages: exportable PC Health Report, Backups/Restore.
- class HealthReportWorker (L37)
- init(self, fmt) (L43)
- _collect(self) (L48)
- run(self) (L64)
- class ManifestListWorker (L81)
- _leftover_sessions() (L94)
- run(self) (L124)
- class RestoreWorker (L137)
- init(self, manifest_file, dry_run, overwrite) (L145)
- run(self) (L152)
- class HealthReportPage (L167)
- init(self, win) (L170)
- _generate(self, fmt) (L217)
- _on_done(self, path, data) (L225)
- _open_last(self) (L250)
- _fail(self, msg) (L265)
- class BackupsPage (L276)
- init(self, win) (L279)
- _on_sel(self) (L337)
- _load(self) (L343)
- _on_listed(self, manifests) (L349)
- _selected_manifest(self) (L371)
- _preview(self) (L379)
- _on_preview(self, res) (L387)
- _restore(self) (L395)
- _on_restored(self, res) (L418)
- _busy(self, on) (L427)
- _fail(self, msg) (L434)
src/cortex_unified/ui/premium/s3_fifo_page.py¶
Module: S3-FIFO cache policy benchmark – FIFO queues are all you need (SOSP'23).
- class _BenchWorker (L28)
- init(self, capacity, trace_len) (L33)
- run(self) (L39)
- class S3FifoPage (L79)
- init(self, win) (L82)
- _run(self) (L135)
- _on_done(self, stats) (L143)
- _fail(self, msg) (L171)
src/cortex_unified/ui/premium/search_optimizer_page.py¶
Module: Windows Search Index Database (Windows.edb) Optimizer Page.
- class _SearchWorker (L33)
- run_status(self) (L38)
- run_compact(self) (L43)
- run_rebuild(self) (L48)
- class SearchIndexOptimizerPage (L54)
- init(self, win) (L57)
- _start_status_query(self) (L135)
- _on_status_ready(self, status) (L149)
- _start_compact(self) (L167)
- _start_rebuild(self) (L181)
- _run_async_op(self, call_fn, status_text) (L195)
- _on_op_finished(self, res) (L210)
src/cortex_unified/ui/premium/secure_shredder_page.py¶
Module: Secure File Shredder — multi-standard sanitization with verification.
- class _ShredWorker (L39)
- init(self, file_paths, standard, verify) (L46)
- cancel(self) (L59)
- run(self) (L63)
- class SecureShredderPage (L117)
- init(self, win) (L120)
- _add_files(self) (L262)
- _add_folder(self) (L273)
- _clear_list(self) (L292)
- _update_file_count(self) (L299)
- _confirm_shred(self) (L320)
- _run_shred(self, standard, verify) (L350)
- _on_progress(self, msg) (L366)
- _on_done(self, results) (L370)
- _fail(self, msg) (L407)
src/cortex_unified/ui/premium/settings_store.py¶
Module: Durable, atomically-written user settings for the premium GUI.
- settings_path() (L46)
- class SettingsStore (L51)
- init(self, path) (L61)
- _load(self) (L69)
- _sanitize(self) (L87)
- save(self) (L98)
- get(self, key, default) (L113)
- set(self, key, value) (L117)
- theme(self) (L126)
- theme(self, value) (L131)
- close_to_tray(self) (L136)
- close_to_tray(self, value) (L141)
- reduced_motion(self) (L146)
- reduced_motion(self, value) (L151)
- update_check(self) (L156)
- update_check(self, value) (L161)
- leftover_restore_point(self) (L166)
- leftover_restore_point(self, value) (L171)
src/cortex_unified/ui/premium/skeleton.py¶
Module: Skeleton shimmer: a reassuring "loading" placeholder for premium feel.
- class ShimmerSkeleton (L25)
- init(self, palette, rows, row_height, parent) (L33)
- _get_phase(self) (L51)
- _set_phase(self, v) (L55)
- start(self) (L63)
- stop(self) (L71)
- set_palette(self, palette) (L75)
- paintEvent(self, event) (L81)
src/cortex_unified/ui/premium/smoothscroll.py¶
Module: Smooth momentum scrolling for a premium, non-janky scroll feel.
- class SmoothScroller (L45)
- init(self, area, parent) (L48)
- eventFilter(self, obj, event) (L64)
- _on_wheel(self, event) (L74)
- install_smooth_scroll(area) (L114)
src/cortex_unified/ui/premium/srum_bam_page.py¶
Module: Windows BAM/DAM & SRUM Forensic Privacy Studio Page.
- class _SrumBamWorker (L35)
- init(self, cleaner, entries) (L40)
- run_scan(self) (L46)
- run_clean(self) (L51)
- class SrumBamCleanerPage (L57)
- init(self, win) (L60)
- _start_scan(self) (L117)
- _on_scan_finished(self, report) (L131)
- _start_clean(self) (L157)
- _on_clean_finished(self, cleaned_count) (L184)
src/cortex_unified/ui/premium/startup_optimizer_page.py¶
Module: Startup Optimizer page — stagger/delay engine with resource-aware gating.
- class _StartupScanWorker (L42)
- init(self) (L49)
- cancel(self) (L54)
- run(self) (L58)
- class _DisableWorker (L73)
- init(self, entries) (L80)
- cancel(self) (L86)
- run(self) (L90)
- class _EnableWorker (L135)
- init(self, entries) (L142)
- cancel(self) (L148)
- run(self) (L152)
- _entry_type_label(entry) (L209)
- _entry_matches_filter(entry, type_filter) (L223)
- _sort_entries(entries, sort_key) (L230)
- class StartupOptimizerPage (L251)
- init(self, win) (L254)
- _run_scan(self) (L412)
- _on_scan_progress(self, msg) (L430)
- _on_scan_done(self, entries) (L434)
- _on_scan_fail(self, msg) (L453)
- _apply_filters(self, *_args) (L462)
- _populate_table(self, entries) (L474)
- _update_summary(self) (L498)
- _selected_entries(self) (L511)
- _update_buttons(self) (L518)
- _disable_selected(self) (L526)
- _on_disable_done(self, disabled) (L545)
- _on_disable_fail(self, msg) (L555)
- _enable_selected(self) (L563)
- _on_enable_done(self, enabled) (L582)
- _on_enable_fail(self, msg) (L592)
- _on_action_progress(self, msg) (L600)
src/cortex_unified/ui/premium/states.py¶
Module: Reusable loading / empty / error state panels for data-backed pages.
- class StatePanel (L65)
- init(self, palette, parent) (L86)
- bind_content(self, *widgets) (L102)
- _sync_content(self) (L116)
- _build_ui(self) (L126)
- mode(self) (L189)
- show_loading(self, text, current, total) (L198)
- show_empty(self, text) (L223)
- show_error(self, message, on_retry) (L228)
- clear(self) (L248)
- _handle_retry(self) (L258)
- _set_mode(self, mode) (L269)
- _tint(self, color) (L317)
- class _HoverLift (L345)
- init(self, widget, dy, duration) (L355)
- eventFilter(self, obj, event) (L365)
- _animate_to(self, offset) (L378)
- class _FocusRing (L402)
- init(self, widget, accent) (L412)
- eventFilter(self, obj, event) (L420)
- _apply(self, on) (L432)
- install_hover_lift(widget, dy, duration) (L471)
- focus_ring(widget, accent) (L497)
- _default_accent() (L520)
src/cortex_unified/ui/premium/system_pages.py¶
Module: Premium GUI pages for the real system-tool backends.
- _windows_only(page, feature) (L54)
- class PrivacyScanWorker (L69)
- run(self) (L74)
- class PrivacyCleanWorker (L84)
- init(self, to_clean, clean_system) (L89)
- run(self) (L95)
- class StartupListWorker (L111)
- run(self) (L116)
- class TaskSnapshotWorker (L125)
- run(self) (L131)
- class NetworkWorker (L144)
- run(self) (L150)
- class PrivacyPage (L165)
- init(self, win) (L168)
- _scan(self) (L208)
- _on_scan(self, browsers, traces) (L216)
- _sweep(self) (L255)
- _on_swept(self, ok) (L285)
- _fail(self, msg) (L293)
- class StartupPage (L299)
- init(self, win) (L302)
- _load(self) (L346)
- _on_loaded(self, items) (L352)
- _disable(self) (L369)
- _fail(self, msg) (L398)
- class ProcessesPage (L404)
- init(self, win) (L408)
- _columns(self) (L533)
- name_icon(p) (L543)
- _start_live(self) (L566)
- _toggle_live(self, on) (L572)
- _tick(self) (L580)
- _load(self) (L585)
- _on_snapshot(self, snap) (L596)
- _render_breakdown(self, mem) (L622)
- _build_breakdown_html(self, mem) (L638)
- _toggle_why(self, on) (L663)
- _apply_filter(self) (L674)
- on_select(self, *) (L683)
- _restore_selection(self) (L692)
- _kill(self) (L698)
- _fail(self, msg) (L721)
- class NetworkPage (L732)
- init(self, win) (L735)
- _start_live(self) (L824)
- _toggle_live(self, on) (L830)
- _tick(self) (L838)
- _load(self) (L843)
- _on_loaded(self, conns, summary) (L853)
- _apply_filter(self) (L877)
- _risk(c) (L907)
- _risk_colour(self, c) (L920)
- _risk_tooltip(self, c) (L924)
- _process_icon(self, c) (L928)
- _columns(self) (L934)
- _local_text(self, c) (L959)
- _remote_text(self, c) (L965)
- _fill(self, rows) (L971)
- _socket_key(c) (L985)
- _kill(self) (L989)
- _fail(self, msg) (L1016)
- class UninstallerListWorker (L1030)
- run(self) (L1035)
- class LeftoverScanWorker (L1044)
- init(self, apps, exclusions) (L1050)
- cancel(self) (L1058)
- run(self) (L1062)
- class OrphanScanWorker (L1092)
- init(self, exclusions) (L1098)
- cancel(self) (L1105)
- run(self) (L1109)
- class LeftoverCleanWorker (L1124)
- init(self, findings, create_restore_point, exclusions) (L1130)
- cancel(self) (L1140)
- run(self) (L1144)
- class TelemetryStatusWorker (L1163)
- run(self) (L1168)
- class TelemetryApplyWorker (L1177)
- init(self, restore) (L1182)
- run(self) (L1187)
- class RegistryScanWorker (L1198)
- run(self) (L1203)
- class RegistryCleanWorker (L1212)
- init(self, entries) (L1217)
- run(self) (L1222)
- _level_label(level) (L1256)
- _level_color(level) (L1261)
- class _LeftoverSection (L1268)
- _build_leftover_section(self) (L1271)
- _persist_restore_pref(self, checked) (L1345)
- _exclusions_store() (L1352)
- _keep_selected(self) (L1357)
- _pending_apps(self) (L1378)
- _scan_leftovers(self) (L1392)
- _scan_orphans(self) (L1411)
- _on_leftovers(self, findings) (L1418)
- _leftover_fail(self, msg) (L1432)
- _selected_findings(self) (L1439)
- on_leftover_select(self, *) (L1454)
- _clean_leftovers(self) (L1460)
- _on_cleaned(self, outcomes) (L1491)
- class UninstallerPage (L1524)
- init(self, win) (L1529)
- _columns(self) (L1597)
- _load(self) (L1614)
- _on_loaded(self, apps) (L1620)
- _filter(self, text) (L1633)
- _selected_apps(self) (L1640)
- on_select(self, *) (L1661)
- _uninstall(self) (L1665)
- _fail(self, msg) (L1707)
- class LeftoverScannerPage (L1712)
- init(self, win) (L1719)
- class TelemetryPage (L1729)
- init(self, win) (L1732)
- _refresh(self) (L1772)
- _on_status(self, status) (L1777)
- _apply(self, restore) (L1787)
- _on_applied(self, ok) (L1805)
- _fail(self, msg) (L1813)
- class RegistryPage (L1820)
- init(self, win) (L1823)
- _columns(self) (L1881)
- _scan(self) (L1889)
- _on_scan(self, entries) (L1899)
- _clean(self) (L1914)
- _on_clean(self, removed, backup) (L1933)
- _fail(self, msg) (L1941)
src/cortex_unified/ui/premium/tablemodel.py¶
Module: A reusable model/view foundation for the data-dense tables.
- _read(record, name) (L57)
- class Column (L65)
- display(self, record) (L96)
- sort_value(self, record) (L101)
- class RecordTableModel (L109)
- init(self, columns, parent) (L116)
- set_records(self, records) (L124)
- clear(self) (L130)
- records(self) (L135)
- record_at(self, row) (L139)
- columns(self) (L146)
- rowCount(self, parent) (L152)
- columnCount(self, parent) (L158)
- headerData(self, section, orientation, role) (L164)
- data(self, index, role) (L177)
- flags(self, index) (L211)
- class RecordFilterProxy (L220)
- init(self, parent) (L227)
- set_filter_text(self, text) (L234)
- filter_text(self) (L254)
- filterAcceptsRow(self, source_row, source_parent) (L258)
- lessThan(self, left, right) (L279)
- class TableBinding (L299)
- set_records(self, records) (L311)
- set_filter_text(self, text) (L315)
- visible_count(self) (L320)
- selected_record(self) (L324)
- select_where(self, predicate) (L338)
- bind_table(view, columns, sort_column, sort_order, sortable) (L353)
src/cortex_unified/ui/premium/theme.py¶
Module: Premium design system: color tokens, typography, and a full QSS builder.
- _hex_to_rgb(color) (L43)
- _shade(color, factor) (L62)
- class Palette (L78)
- accent_gradient(self) (L121)
- glass(self, level) (L126)
- build_stylesheet(p) (L202)
- load_fonts() (L810)
- apply_theme(app, theme) (L849)
src/cortex_unified/ui/premium/tokens.py¶
Module: Qt-free design tokens for the premium UI/UX design system.
- class Spacing (L27)
- class Radius (L46)
- class Elevation (L80)
- class ElevationStyle (L96)
- _parse_hex(color) (L119)
- _rel_luminance(color) (L134)
- _lin(channel) (L144)
- contrast_ratio(fg_hex, bg_hex) (L153)
- elevation_style(palette, level) (L172)
src/cortex_unified/ui/premium/tools_pages.py¶
Module: Tool pages: Performance (power plans), Browser Extensions, Driver inventory.
- _windows_only(page, feature) (L33)
- class PowerPlanListWorker (L48)
- run(self) (L53)
- class PowerPlanSetWorker (L62)
- init(self, guid) (L67)
- run(self) (L72)
- class ExtensionAuditWorker (L82)
- run(self) (L87)
- _permissions_display(ext) (L96)
- _version_sort_key(driver) (L107)
- _date_sort_key(driver) (L128)
- class DriverListWorker (L138)
- run(self) (L143)
- class PerformancePage (L156)
- init(self, win) (L159)
- _load(self) (L236)
- _on_listed(self, plans) (L242)
- _apply(self) (L256)
- _on_applied(self, ok, msg) (L279)
- _fail(self, msg) (L288)
- class BrowserExtensionsPage (L298)
- init(self, win) (L301)
- _load(self) (L372)
- _on_done(self, exts) (L378)
- _fail(self, msg) (L399)
- class DriverInventoryPage (L409)
- init(self, win) (L412)
- _load(self) (L476)
- _on_done(self, drivers) (L483)
- _fail(self, msg) (L495)
src/cortex_unified/ui/premium/tray.py¶
Module: Premium system tray: a background presence with a live resource monitor.
- _render_tray_icon(palette, size) (L51)
- class PremiumTray (L106)
- init(self, window, settings) (L114)
- _tray_supported() (L153)
- available(self) (L161)
- _build_menu(self) (L167)
- _on_activated(self, reason) (L184)
- _restore_window(self) (L197)
- _run_health_check(self) (L210)
- _quit_app(self) (L224)
- _start_monitor(self) (L239)
- _sample(self) (L258)
- _start_network_alert_monitor(self) (L288)
- _poll_network_outcome(self) (L295)
- _alert(self, title, message) (L318)
- show_message(self, title, message, msecs) (L322)
- notify_network_changes(self, changes) (L333)
- refresh_theme(self, palette) (L381)
- stop(self) (L390)
src/cortex_unified/ui/premium/video_duplicates_page.py¶
Module: Video near-duplicate detection page – keyframe pHash + temporal consistence.
- class _VideoWorker (L25)
- init(self, root, threshold) (L31)
- cancel(self) (L40)
- run(self) (L44)
- class VideoDuplicatesPage (L59)
- init(self, win) (L62)
- _pick(self) (L119)
- _run(self) (L128)
- _on_progress(self, msg) (L139)
- _on_done(self, groups) (L143)
- _fail(self, msg) (L176)
src/cortex_unified/ui/premium/widgets.py¶
Module: Reusable premium widgets: elevated cards, a custom circular gauge, stat
- class Card (L39)
- init(self, palette, object_name, parent) (L65)
- class StatCard (L83)
- init(self, palette, label, value, parent) (L86)
- value(self) (L99)
- set_value(self, text, animate) (L103)
- _pulse(self) (L110)
- class Badge (L133)
- _rgb(hex_color) (L143)
- init(self, palette, kind, text, parent) (L153)
- class CircularGauge (L174)
- init(self, palette, caption, parent) (L180)
- _get_value(self) (L200)
- _set_value(self, v) (L204)
- animate_to(self, target, display) (L211)
- set_center_text(self, text) (L219)
- set_glow(self, color_hex, radius, alpha) (L224)
- paintEvent(self, event) (L239)
- class CoreBars (L320)
- init(self, palette, parent) (L327)
- set_values(self, values) (L335)
- _bar_color(self, pct) (L340)
- paintEvent(self, event) (L348)
- class TrafficGraph (L381)
- init(self, palette, capacity, parent) (L389)
- add_sample(self, down_rate, up_rate) (L399)
- clear(self) (L408)
- _fmt_rate(bps) (L415)
- paintEvent(self, event) (L424)
- _draw(series, color) (L442)
- attach_glow(widget, color_hex, radius, alpha) (L481)
- icon_for_exe(exe_path) (L521)
- placeholder_icon(palette, size) (L557)
- hline(palette) (L628)
- status_note(palette, status, text) (L645)
- title_block(title, subtitle) (L684)
- require_feature(page_or_parent, feature) (L700)
src/cortex_unified/ui/premium/win_update_repair_page.py¶
Module: Windows Update Repair page — comprehensive component reset and repair.
- class _RepairWorker (L36)
- init(self, phases) (L43)
- cancel(self) (L49)
- run(self) (L53)
- class _PreflightWorker (L91)
- run(self) (L97)
- class WinUpdateRepairPage (L143)
- init(self, win) (L146)
- _run_preflight(self) (L265)
- _pf_done(self, data) (L274)
- _pf_fail(self, msg) (L310)
- _run_repair(self) (L318)
- _on_progress(self, msg) (L352)
- _on_done(self, data) (L356)
- _on_fail(self, msg) (L388)
src/cortex_unified/ui/premium/winapp2_page.py¶
Module: Winapp2 Community Declarative Application Cleaner Page.
- class _Winapp2Worker (L31)
- init(self, cleaner, targets) (L37)
- run_scan(self) (L43)
- run_clean(self) (L48)
- class Winapp2CleanerPage (L58)
- init(self, win) (L61)
- _start_scan(self) (L122)
- _on_progress(self, current, total, name) (L138)
- _on_scan_finished(self, report) (L144)
- _start_clean(self) (L166)
- _on_clean_finished(self, cleaned_bytes, cleaned_count) (L194)
src/cortex_unified/ui/premium/window.py¶
Module: The premium main window: sidebar navigation + engine-backed pages.
- fmt_bytes(n) (L54)
- class _TitleBarChrome (L97)
- init(self, brand, min_btn, max_btn, close_btn) (L109)
- class _LazyPageRegistry (L117)
- init(self, win) (L130)
- getitem(self, page_id) (L137)
- iter(self) (L152)
- len(self) (L157)
- contains(self, page_id) (L161)
- is_built(self, page_id) (L167)
- built_ids(self) (L172)
- class PremiumMainWindow (L179)
- init(self, theme, settings) (L182)
- _build_sidebar(self) (L335)
- eventFilter(self, obj, event) (L518)
- _sidebar_hover_expand(self) (L529)
- _sidebar_hover_collapse(self) (L565)
- _stop_sidebar_anim(self) (L590)
- _toggle_max(self) (L597)
- _toggle_sidebar(self) (L609)
- _collapse_sidebar_content(self) (L675)
- _retint_nav_icons(self) (L709)
- _update_nav_header(self, group_id, expanded) (L737)
- _set_nav_section(self, group_id, expanded) (L752)
- _filter_navigation(self, text) (L770)
- set_titlebar_tab_widget(self, widget) (L789)
- _select(self, page_id) (L801)
- _fade_in(self, widget) (L841)
- run_worker(self, worker, on_done, on_fail, on_progress) (L860)
- _reap_threads(self) (L914)
- _default_fail(self, msg) (L921)
- set_theme(self, theme) (L926)
- eventFilter(self, obj, event) (L944)
- _edge_at(self, gpos) (L977)
- _update_edge_cursor(self, edges) (L1000)
- resizeEvent(self, event) (L1020)
- mousePressEvent(self, event) (L1039)
- mouseDoubleClickEvent(self, event) (L1049)
- closeEvent(self, event) (L1062)
- _shutdown_workers(self) (L1092)
- _running(t) (L1128)
- class SingleScrollFilter (L1176)
- init(self, inner, outer, parent) (L1198)
- eventFilter(self, obj, event) (L1205)
- _forward_to_outer(self, event) (L1229)
- set_tab_order(parent, widgets) (L1242)
- ensure_focusable(*widgets) (L1266)
- run_modal(dialog, trigger) (L1286)
- class _Page (L1315)
- init(self, win) (L1344)
- pin_footer(self, widget) (L1376)
- attach_single_scroll(self, inner) (L1391)
- add_scrolling_list(self, inner, stretch, minimum_height) (L1409)
- class DashboardPage (L1425)
- init(self, win) (L1428)
- _toggle_scan(self) (L1577)
- _scan(self) (L1584)
- _cancel_scan(self) (L1598)
- _on_progress(self, text) (L1605)
- _on_scanned(self, report) (L1609)
- _selected_bytes(self) (L1673)
- _update_selection(self) (L1691)
- _expand_category(self, item) (L1709)
- _apply_preview(self, nid, children) (L1759)
- _preview_fail(self, msg) (L1797)
- _on_item_changed(self, item, column) (L1802)
- _set_subtree_check(self, item, state) (L1826)
- _filtered_entries(self, scan, scan_idx) (L1836)
- _clean(self, method) (L1849)
- _on_clean_progress(self, text) (L1907)
- _on_cleaned(self, freed, items, skipped) (L1911)
- _on_fail(self, msg) (L1924)
- class _FolderScanPage (L1936)
- init(self, win) (L1947)
- _build_results(self) (L2055)
- _pick(self) (L2061)
- _run(self) (L2072)
- _start(self, worker, on_done, on_fail) (L2078)
- _toggle_run(self) (L2093)
- _on_progress(self, text) (L2103)
- _finish(self) (L2107)
- _busy(self, on) (L2116)
- _enable_actions(self, has_rows) (L2121)
- _selected_paths(self) (L2128)
- _delete_selected(self) (L2140)
- _on_deleted(self, freed, ok, blocked) (L2162)
- _del_fail(self, msg) (L2174)
- class DuplicatesPage (L2181)
- _build_results(self) (L2187)
- _run(self) (L2197)
- _done(self, groups) (L2202)
- _fail(self, msg) (L2223)
- class DuplicatePhotosPage (L2229)
- _build_results(self) (L2236)
- _run(self) (L2245)
- _done(self, groups) (L2251)
- _fail(self, msg) (L2277)
- class LargeFilesPage (L2283)
- _build_results(self) (L2289)
- _run(self) (L2301)
- _done(self, entries) (L2306)
- _fail(self, msg) (L2343)
- class EmptyPage (L2349)
- _build_results(self) (L2355)
- _run(self) (L2364)
- _done(self, files, dirs) (L2369)
- _fail(self, msg) (L2386)
- class ShredPage (L2392)
- init(self, win) (L2395)
- _populate_drives(self) (L2511)
- _wipe_free_space(self) (L2519)
- _on_wiped(self, success, message) (L2542)
- _on_wipe_fail(self, msg) (L2552)
- _pick(self) (L2558)
- _on_medium(self, kind, overwrite_effective) (L2570)
- _shred(self) (L2579)
- _on_adaptive_done(self, outcome, message, detail) (L2628)
- _on_done(self, outcome, reason) (L2639)
- _on_refused(self, kind, guidance) (L2650)
- _fail(self, msg) (L2661)
- class SettingsPage (L2668)
- init(self, win) (L2670)
- _choose_theme(self, theme) (L2748)
- _sync_theme_buttons(self) (L2753)
- _on_close_to_tray_toggled(self, checked) (L2768)
- _on_reduced_motion_toggled(self, checked) (L2772)
- _on_update_check_toggled(self, checked) (L2778)
- _build_smart_card(self) (L2782)
- _reset_smart(self) (L2808)
- _build_safety_card(self) (L2827)
- _create_restore_point(self) (L2894)
- _on_rp_created(self, status, message) (L2903)
- _on_rp_fail(self, msg) (L2920)
- _refresh_restore_points(self) (L2926)
- _on_rp_listed(self, points) (L2931)
src/cortex_unified/ui/premium/workers.py¶
Module: Background workers bridging the GUI to the engine.
- class ScanWorker (L25)
- init(self, max_risk, include_disabled) (L37)
- cancel(self) (L44)
- run(self) (L48)
- class CleanWorker (L62)
- init(self, report, method) (L69)
- cancel(self) (L76)
- run(self) (L80)
- class DuplicateWorker (L102)
- init(self, roots) (L108)
- cancel(self) (L114)
- run(self) (L118)
- _norm(p) (L131)
- aggregate_roots(entries, roots) (L136)
- children_under(entries, prefix) (L157)
- group_by_app(entries, bases) (L205)
- class DirPreviewWorker (L232)
- init(self, node_id, entries, mode, roots, prefix) (L238)
- run(self) (L248)
- class DuplicatePhotosWorker (L262)
- init(self, roots) (L274)
- cancel(self) (L280)
- run(self) (L284)
- class LargeFilesWorker (L298)
- init(self, root, min_mb) (L304)
- cancel(self) (L311)
- run(self) (L315)
- class EmptyWorker (L327)
- init(self, root) (L333)
- cancel(self) (L339)
- run(self) (L343)
- class DeleteSelectedWorker (L352)
- init(self, paths, method) (L358)
- run(self) (L364)
- class RestorePointWorker (L380)
- init(self, description) (L386)
- run(self) (L391)
- class RestorePointListWorker (L401)
- run(self) (L407)
- class StorageWorker (L416)
- init(self, path) (L422)
- run(self) (L427)
- class FreeSpaceWipeWorker (L437)
- init(self, drive_letter) (L443)
- cancel(self) (L449)
- run(self) (L457)
- class ShredWorker (L467)
- init(self, target, passes, force_flash) (L474)
- run(self) (L481)
- class AdaptiveShredWorker (L501)
- init(self, target, level, verify) (L511)
- run(self) (L518)
- class VhdxListWorker (L545)
- init(self) (L552)
- cancel(self) (L557)
- run(self) (L561)
- class WslShutdownWorker (L576)
- run(self) (L583)
- class VhdxCompactWorker (L594)
- init(self, disks) (L606)
- cancel(self) (L612)
- run(self) (L616)
- class VhdxSparseWorker (L635)
- init(self, disk, enabled) (L642)
- run(self) (L648)
- class ComponentStoreAnalyzeWorker (L663)
- init(self) (L674)
- cancel(self) (L679)
- run(self) (L683)
- class ComponentStoreCleanWorker (L705)
- init(self, reset_base) (L712)
- run(self) (L717)
- class ServicingTaskWorker (L728)
- run(self) (L735)
- class LeftoverDeleteWorker (L746)
- init(self, paths, sizes) (L757)
- cancel(self) (L764)
- run(self) (L768)
- class ProjectCacheScanWorker (L790)
- init(self, target_folders, keep_recent_days, enabled_categories) (L797)
- cancel(self) (L805)
- run(self) (L809)
- class ProjectCacheCleanWorker (L833)
- init(self, resources, dry_run) (L840)
- cancel(self) (L847)
- run(self) (L851)
- class AutoProjectCacheWorker (L878)
- init(self, enabled_categories, keep_recent_days) (L885)
- cancel(self) (L892)
- run(self) (L896)
- class CacheLogSweepWorker (L918)
- init(self, roots, min_size_mb) (L925)
- cancel(self) (L932)
- run(self) (L936)
- class DockerFsCacheWorker (L949)
- run(self) (L955)
- class WslListWorker (L964)
- run(self) (L970)
- class LargeFileAiWorker (L979)
- init(self, root, min_mb) (L986)
- cancel(self) (L993)
- run(self) (L997)
src/cortex_unified/ui/premium/wsl_page.py¶
Module: WSL Cleaner page: list distros + compact ext4.vhdx.
- class _WslListWorker (L35)
- run(self) (L39)
- class _WslShutdownWorker (L48)
- run(self) (L52)
- class WslPage (L62)
- init(self, win) (L65)
- _load(self) (L124)
- _on_list(self, distros) (L136)
- _shutdown(self) (L171)
- _on_shutdown(self, ok, msg) (L187)
- _compact(self) (L198)
- class _Compact (L231)
- init(self, paths) (L235)
- run(self) (L239)
- _on_compact(self, results) (L252)
- _fail(self, msg) (L266)
src/cortex_unified/ui/safety/init.py¶
Module: Safety infrastructure for Cortex Cleaner GUI operations.
src/cortex_unified/ui/safety/manifest_system.py¶
Module: Atomic manifest creation and operation logging system.
- class ManifestError (L15)
- class ManifestSystem (L19)
- init(self, manifest_dir, logger) (L22)
- _get_default_manifest_dir(self) (L40)
- create_operation_manifest(self, operation_type, parameters) (L47)
- _get_user_info(self) (L96)
- _get_os_info(self) (L113)
- log_file_action(self, op_id, action_type, file_path, action, **kwargs) (L123)
- _calculate_file_hash(self, file_path) (L189)
- log_error(self, op_id, error, context) (L200)
- finalize_manifest(self, op_id, success) (L233)
- get_restore_operations(self, manifest_path) (L293)
- list_manifests(self, limit) (L342)
- get_manifest_details(self, manifest_path) (L391)
- cleanup_old_manifests(self, keep_days) (L407)
src/cortex_unified/ui/safety/path_validator.py¶
Module: Path validation with OS-specific safety rules and symlink protection.
- class PathValidationError (L12)
- class PathValidator (L16)
- init(self, logger) (L19)
- _get_critical_directories(self) (L33)
- add_user_whitelist(self, path) (L72)
- add_blacklist(self, path) (L82)
- is_safe_to_delete(self, path) (L92)
- _is_critical_directory(self, path) (L142)
- _is_under_critical_directory(self, path) (L159)
- check_symlink_safety(self, path) (L177)
- validate_user_permissions(self, path) (L229)
- validate_operation_paths(self, paths) (L288)
- get_validation_summary(self, paths) (L323)
- _get_blocking_reason(self, path) (L354)
src/cortex_unified/ui/safety/process_manager.py¶
Module: Safe external command execution manager.
- class ProcessError (L16)
- class ProcessTimeoutError (L20)
- class ExecutableNotFoundError (L24)
- class ProcessResult (L29)
- class ProcessManager (L38)
- init(self, logger) (L41)
- set_security_policy(self, allowed_executables, blocked_executables, max_execution_time, max_output_size) (L63)
- validate_executable(self, executable) (L87)
- sanitize_command_args(self, args) (L137)
- execute_safe_command(self, cmd, timeout, cwd, env, capture_output) (L172)
- execute_with_progress(self, cmd, progress_callback, **kwargs) (L319)
- kill_all_processes(self) (L346)
- get_running_processes(self) (L376)
- cleanup(self) (L399)
- del(self) (L408)
src/cortex_unified/ui/safety/safety_manager.py¶
Module: Central safety manager that coordinates all safety components.
- class OperationType (L18)
- class ValidationResult (L26)
- class Operation (L33)
- class OperationResult (L47)
- class SafetyError (L59)
- class SafetyManager (L63)
- init(self, config, logger) (L66)
- _setup_system_blacklists(self) (L99)
- configure_safety_settings(self, require_confirmation, default_dry_run, enforce_dry_run_first, max_batch_size, max_file_size_mb, validation_timeout) (L135)
- add_validation_callback(self, callback) (L168)
- create_operation(self, operation_type, paths, description, **parameters) (L177)
- add_path_whitelist(self, path) (L210)
- add_path_blacklist(self, path) (L218)
- validate_operation(self, operation) (L226)
- _validate_basic_requirements(self, operation) (L295)
- _requires_dry_run_enforcement(self, operation) (L308)
- _enforce_dry_run_policy(self, operation) (L315)
- _get_dry_run_key(self, operation) (L335)
- _validate_path_safety(self, operation) (L342)
- _validate_resource_limits(self, operation) (L372)
- _run_custom_validations(self, operation) (L406)
- _validate_operation_specific(self, operation) (L419)
- _validate_delete_operation(self, operation) (L434)
- _validate_clean_operation(self, operation) (L442)
- _validate_move_operation(self, operation) (L449)
- _validate_analyze_operation(self, operation) (L466)
- _validate_restore_operation_enhanced(self, operation) (L473)
- _validate_restore_operation(self, operation) (L500)
- execute_safe_operation(self, operation) (L520)
- _should_enforce_dry_run(self, operation) (L604)
- _execute_mandatory_dry_run(self, operation) (L619)
- _execute_operation_with_monitoring(self, operation, manifest_id) (L646)
- _finalize_operation_execution(self, operation, manifest_id, execution_result, execution_start) (L680)
- _store_dry_run_result(self, operation, result) (L725)
- get_dry_run_result(self, operation) (L734)
- clear_dry_run_cache(self, max_age_hours) (L746)
- _execute_delete_operation(self, operation, manifest_id) (L773)
- _execute_clean_operation(self, operation, manifest_id) (L825)
- _execute_move_operation(self, operation, manifest_id) (L838)
- _execute_analyze_operation(self, operation, manifest_id) (L892)
- _execute_restore_operation(self, operation, manifest_id) (L924)
- get_operation_history(self, limit) (L982)
- get_restore_candidates(self) (L993)
- get_pending_operations(self) (L1011)
- get_operation_by_id(self, operation_id) (L1019)
- cancel_operation(self, operation_id) (L1030)
- get_safety_status(self) (L1045)
- validate_system_safety(self) (L1072)
- cleanup_resources(self) (L1121)
- del(self) (L1158)
src/cortex_unified/ui/tabs/init.py¶
Module: GUI tabs module for Cortex Cleaner.
src/cortex_unified/ui/tabs/base_tab.py¶
Module: Base tab class for Cortex Cleaner GUI tabs with safety manager integration.
- class BaseTab (L16)
- init(self, config, logger, safety_manager) (L25)
- getattr(self, name) (L48)
- set_status(self, text) (L71)
- _initialize_tab(self) (L85)
- setup_ui(self) (L100)
- setup_connections(self) (L104)
- setup_tooltips(self) (L109)
- update_translations(self) (L113)
- tr(self, key, **kwargs) (L117)
- request_operation(self, operation_type, paths, description, **parameters) (L129)
- _handle_operation_request(self, operation) (L163)
- _execute_operation(self, operation) (L197)
- confirm_and_execute_operation(self, operation) (L223)
- get_current_operation(self) (L250)
- cleanup(self) (L258)
- add_worker_thread(self, thread) (L296)
- remove_worker_thread(self, thread) (L306)
- format_bytes(self, bytes_value) (L317)
- get_tab_info(self) (L335)
- validate_paths(self, paths) (L349)
- is_path_safe(self, path) (L364)
- get_operation_history(self, limit) (L379)
- del(self) (L394)
src/cortex_unified/ui/tabs/broken_links_tab.py¶
Module: Tab for broken links tab in Cortex Cleaner GUI.
- class BrokenLinksWorker (L25)
- init(self, scan_path, scan_symlinks, scan_shortcuts, scan_registry) (L30)
- run(self) (L40)
- class LinkRepairWorker (L60)
- init(self, items, use_trash, dry_run, create_backups) (L65)
- run(self) (L75)
- class BrokenLinksTab (L94)
- init(self, config, logger, safety_manager) (L97)
- setup_ui(self) (L103)
- select_all(self) (L203)
- deselect_all(self) (L209)
- browse_broken_links_path(self) (L215)
- on_broken_links_selection_changed(self) (L221)
- start_broken_links_scan(self) (L226)
- _on_worker_finished(self, worker) (L255)
- on_broken_links_scan_finished(self, results) (L262)
- on_broken_links_scan_error(self, error_message) (L305)
- repair_selected_links(self) (L313)
- on_repair_finished(self, outcomes) (L378)
- on_repair_error(self, error_message) (L395)
- export_broken_links_results(self) (L403)
src/cortex_unified/ui/tabs/dashboard_tab.py¶
Module: Dashboard tab — the command center for Cortex Cleaner.
- class OptimizerWorker (L27)
- init(self) (L34)
- run(self) (L40)
- stop(self) (L118)
- class DashboardTab (L127)
- init(self, config, logger, safety_manager, parent) (L130)
- setup_ui(self) (L142)
- setup_tooltips(self) (L254)
- run_smart_scan(self) (L260)
- _on_progress(self, msg, pct) (L288)
- _on_scan_finished(self, report) (L293)
- _on_scan_error(self, msg) (L332)
- run_optimization(self) (L341)
- _on_optimize_done(self, result) (L386)
- _on_optimize_error(self, msg) (L403)
- navigate_to(self, tab_name) (L412)
src/cortex_unified/ui/tabs/deep_cleaner_tab.py¶
Module: Tab for deep disk cleaning in Cortex Cleaner GUI.
- class DeepCleanerWorker (L22)
- init(self, config) (L29)
- run(self) (L37)
- class DeepCleanerTab (L72)
- init(self, config, logger, safety_manager) (L75)
- setup_ui(self) (L81)
- start_scan(self) (L153)
- format_bytes(self, bytes_count) (L173)
- scan_finished(self, result) (L183)
- _on_item_changed(self, item, column) (L234)
- update_selection_summary(self) (L266)
- scan_error(self, error) (L283)
- start_clean(self) (L290)
- select_all(self) (L347)
- deselect_all(self) (L353)
- _toggle_checkboxes(self, state) (L359)
- operation_finished(self, worker) (L373)
src/cortex_unified/ui/tabs/disk_analyzer_tab.py¶
Module: Tab for disk analyzer tab in Cortex Cleaner GUI.
- class DiskAnalyzerWorker (L31)
- init(self, config, path) (L36)
- run(self) (L45)
- class DiskAnalyzerTab (L67)
- init(self, config, logger, safety_manager) (L70)
- setup_ui(self) (L76)
- start_disk_analysis(self) (L166)
- _on_worker_finished(self, worker) (L198)
- disk_analysis_complete(self, result) (L205)
- disk_analysis_error(self, error) (L246)
- quick_disk_analysis(self) (L257)
- show_treemap_visualization(self) (L267)
- show_sunburst_visualization(self) (L281)
- show_interactive_dashboard(self) (L295)
- export_visualization_dialog(self) (L310)
src/cortex_unified/ui/tabs/docker_tab.py¶
Module: Tab for docker tab in Cortex Cleaner GUI.
- class DockerScanWorker (L33)
- init(self, scan_images, scan_containers, scan_volumes, scan_networks) (L38)
- run(self) (L47)
- class DockerCleanupWorker (L73)
- init(self, resources, dry_run) (L78)
- run(self) (L85)
- class DockerTab (L98)
- init(self, config, logger, safety_manager) (L101)
- setup_ui(self) (L106)
- check_docker_availability(self) (L168)
- start_docker_scan(self) (L185)
- _on_worker_finished(self, worker) (L209)
- docker_scan_finished(self, result) (L215)
- docker_scan_error(self, error) (L255)
- start_docker_cleanup(self) (L265)
- docker_cleanup_finished(self, result) (L301)
- docker_cleanup_error(self, error) (L328)
src/cortex_unified/ui/tabs/duplicates_tab.py¶
Module: Tab for duplicates tab in Cortex Cleaner GUI.
- class DuplicateFinderWorker (L27)
- init(self, config, path, hash_algorithm) (L34)
- run(self) (L44)
- class DuplicatesTab (L83)
- init(self, config, logger, safety_manager) (L85)
- setup_ui(self) (L92)
- start_find_duplicates(self) (L181)
- duplicates_found(self, result) (L207)
- select_all_duplicates(self) (L261)
- deselect_all_duplicates(self) (L267)
- _set_tree_states(self, state) (L273)
- duplicates_error(self, error) (L285)
- delete_selected_duplicates(self) (L293)
- progress_bar_start_delete(self) (L341)
- operation_finished(self, worker) (L349)
src/cortex_unified/ui/tabs/empty_files_tab.py¶
Module: Empty files cleaner tab for Cortex Cleaner GUI.
- class EmptyFilesWorker (L24)
- init(self, config, path, operation, files_to_delete, dirs_to_delete) (L33)
- run(self) (L44)
- class EmptyFilesTab (L94)
- init(self, config, logger, safety_manager) (L97)
- setup_ui(self) (L105)
- setup_tooltips(self) (L214)
- browse_path(self) (L229)
- start_scan(self) (L236)
- start_delete(self) (L266)
- scan_completed(self, empty_files, empty_dirs, stats) (L316)
- select_all_items(self) (L355)
- deselect_all_items(self) (L364)
- delete_completed(self, result) (L373)
- handle_error(self, error_message) (L388)
- operation_finished(self, worker) (L396)
src/cortex_unified/ui/tabs/file_shredder_tab.py¶
Module: Tab for file shredder tab in Cortex Cleaner GUI.
- class FileShredderWorker (L26)
- init(self, config, target_paths, passes, method, wipe_drive) (L32)
- run(self) (L44)
- class FileShredderTab (L95)
- init(self, config, logger, safety_manager) (L98)
- setup_ui(self) (L105)
- _sync_list(self) (L201)
- add_files_to_shred(self) (L210)
- add_folder_to_shred(self) (L220)
- remove_files_from_shred(self) (L229)
- clear_shred_list(self) (L238)
- _resolve_passes(self) (L245)
- _derive_drive_letter(paths) (L255)
- start_file_shredding(self) (L263)
- _on_shred_progress(self, msg, pct) (L321)
- _on_worker_finished(self, worker) (L328)
- _on_shred_complete(self, results) (L335)
- _on_shred_error(self, error) (L364)
src/cortex_unified/ui/tabs/heuristics_tab.py¶
Module: Tab for heuristics tab in Cortex Cleaner GUI.
- class HeuristicsTab (L25)
- init(self, config, logger, safety_manager) (L28)
src/cortex_unified/ui/tabs/large_files_tab.py¶
Module: Tab for large files tab in Cortex Cleaner GUI.
- class LargeFileFinderWorker (L26)
- init(self, config, path, min_size_mb) (L31)
- run(self) (L40)
- class LargeFilesTab (L52)
- init(self, config, logger, safety_manager) (L55)
- setup_ui(self) (L61)
- _on_selection_changed(self) (L137)
- select_all(self) (L144)
- deselect_all(self) (L150)
- start_find_large_files(self) (L156)
- _on_worker_finished(self, worker) (L193)
- large_files_found(self, result) (L200)
- large_files_error(self, error) (L228)
- delete_selected_large_files(self) (L237)
src/cortex_unified/ui/tabs/package_manager_tab.py¶
Module: Tab for package manager tab in Cortex Cleaner GUI.
- class PMSearchWorker (L41)
- init(self, config) (L46)
- run(self) (L52)
- class PMScanWorker (L63)
- init(self, config, managers, target_folders, keep_recent, orphaned, include_python) (L68)
- run(self) (L80)
- class PMCleanWorker (L106)
- init(self, config, resources, dry_run) (L111)
- run(self) (L119)
- class PackageManagerTab (L130)
- init(self, config, logger, safety_manager) (L133)
- setup_ui(self) (L138)
- detect_package_managers(self) (L327)
- _on_detect_finished(self, managers) (L343)
- _on_detect_error(self, err) (L363)
- add_folder_to_scan(self) (L370)
- remove_selected_folder(self) (L381)
- clear_all_folders(self) (L388)
- start_pm_scan(self) (L400)
- _on_scan_finished(self, data) (L441)
- _on_scan_error(self, err) (L478)
- start_pm_cleanup(self) (L485)
- _on_clean_finished(self, data) (L519)
- _on_clean_error(self, err) (L545)
- _on_worker_finished(self, worker) (L553)
src/cortex_unified/ui/tabs/privacy_tab.py¶
Module: Privacy Shield tab — comprehensive browser and system privacy management.
- class BrowserScanWorker (L27)
- run(self) (L31)
- class PrivacyTab (L47)
- init(self, config, logger, safety_manager, parent) (L50)
- setup_ui(self) (L59)
- setup_tooltips(self) (L140)
- _refresh_telemetry(self) (L147)
- _apply_block(self) (L181)
- _restore_telemetry(self) (L206)
- _scan_browsers(self) (L227)
- _on_scan_done(self, browser_results, system_traces) (L250)
- _clean_browsers(self) (L317)
src/cortex_unified/ui/tabs/process_analyzer_tab.py¶
Module: Tab for process analyzer tab in Cortex Cleaner GUI.
- class ProcessAnalyzerWorker (L14)
- init(self, config) (L23)
- run(self) (L28)
- class ProcessAnalyzerTab (L38)
- init(self, config, logger, safety_manager) (L41)
- setup_ui(self) (L46)
- refresh_processes(self) (L98)
- _on_scan_finished(self, processes, services) (L117)
- _on_scan_error(self, err_msg) (L142)
src/cortex_unified/ui/tabs/registry_cleaner_tab.py¶
Module: Tab for registry cleaner tab in Cortex Cleaner GUI.
- class RegistryScanWorker (L15)
- init(self, config) (L24)
- run(self) (L29)
- class RegistryCleanWorker (L37)
- init(self, config, paths_to_remove) (L46)
- run(self) (L52)
- class RegistryCleanerTab (L70)
- init(self, config, logger, safety_manager) (L73)
- setup_ui(self) (L79)
- scan_registry(self) (L130)
- _on_scan_finished(self, items) (L150)
- _on_error(self, err_msg) (L168)
- clean_registry(self) (L180)
- _on_clean_finished(self, count) (L207)
src/cortex_unified/ui/tabs/reports_tab.py¶
Module: Tab for reports tab in Cortex Cleaner GUI.
- class ReportsTab (L29)
- init(self, config, logger, safety_manager) (L32)
- setup_ui(self) (L37)
- _zoom_in(self) (L203)
- _zoom_out(self) (L208)
- _zoom_reset(self) (L213)
- format_bytes(self, size) (L218)
- _on_table_selection(self) (L226)
- get_live_analytics_data(self) (L231)
- generate_report(self) (L294)
- preview_report(self) (L330)
- schedule_report(self) (L366)
- refresh_reports_list(self) (L419)
- save_report_template(self) (L447)
- load_report_template(self) (L478)
src/cortex_unified/ui/tabs/resource_monitor_tab.py¶
Module: Tab for resource monitor tab in Cortex Cleaner GUI.
- class ResourceMonitorTab (L22)
- init(self, config, logger, safety_manager) (L25)
- setup_ui(self) (L30)
- start_resource_monitoring(self) (L142)
- stop_resource_monitoring(self) (L158)
- update_resource_metrics(self) (L170)
- check_performance_alerts(self, cpu_percent, memory_percent) (L228)
- _show_process_context_menu(self, position) (L242)
- _kill_process(self, pid, name) (L271)
src/cortex_unified/ui/tabs/restore_tab.py¶
Module: Tab for restore tab in Cortex Cleaner GUI.
- class RestoreWorker (L25)
- init(self, manager, target_path) (L35)
- run(self) (L41)
- class RestoreTab (L50)
- init(self, config, logger, safety_manager) (L53)
- setup_ui(self) (L58)
- _on_table_selection(self) (L122)
- refresh_manifests(self) (L128)
- start_restore(self) (L171)
- _on_restore_completed(self, results) (L208)
- _on_restore_error(self, err_string) (L221)
- _on_worker_finished(self, worker) (L226)
- delete_snapshot(self) (L233)
src/cortex_unified/ui/tabs/scheduler_tab.py¶
Module: Tab for scheduler tab in Cortex Cleaner GUI.
- class AddTaskDialog (L26)
- init(self, parent) (L28)
- class SchedulerTab (L57)
- init(self, config, logger, safety_manager) (L60)
- setup_ui(self) (L66)
- create_tasks_subtab(self) (L87)
- _refresh_tasks(self) (L126)
- _add_task(self) (L147)
- _remove_task(self) (L183)
- create_auto_clean_rules_subtab(self) (L204)
- _apply_rules(self) (L246)
src/cortex_unified/ui/tabs/security_scanner_tab.py¶
Module: Tab for Sentinel Pro security scanner in Cortex Cleaner GUI.
- class SentinelScanWorker (L20)
- init(self, directory, scan_archives, scan_git, max_workers) (L26)
- run(self) (L35)
- class SecurityScannerTab (L78)
- init(self, config, logger, safety_manager) (L81)
- setup_ui(self) (L86)
- _browse_path(self) (L190)
- start_scan(self) (L196)
- _cleanup_worker(self, worker) (L230)
- _scan_complete(self, stats) (L235)
- _scan_error(self, error_msg) (L289)
- _on_finding_selected(self, row, col, prev_row, prev_col) (L296)
- export_report(self) (L322)
src/cortex_unified/ui/tabs/settings_tab.py¶
Module: Tab for settings tab in Cortex Cleaner GUI.
- class SettingsTab (L32)
- init(self, config, logger, safety_manager) (L35)
- setup_ui(self) (L39)
- save_settings(self) (L105)
src/cortex_unified/ui/tabs/startup_manager_tab.py¶
Module: Tab for startup manager tab in Cortex Cleaner GUI.
- class StartupScanWorker (L14)
- init(self, config) (L23)
- run(self) (L28)
- class StartupManagerTab (L36)
- init(self, config, logger, safety_manager) (L39)
- setup_ui(self) (L45)
- _on_selection(self) (L84)
- refresh_startup_items(self) (L88)
- _on_scan_finished(self, items) (L107)
- _on_scan_error(self, err_msg) (L123)
- disable_selected_startup_items(self) (L130)
src/cortex_unified/ui/tabs/system_tools_tab.py¶
Module: Tab for system tools tab in Cortex Cleaner GUI.
- class SystemToolsTab (L18)
- init(self, config, logger, safety_manager) (L21)
- setup_ui(self) (L25)
src/cortex_unified/ui/tabs/uninstaller_tab.py¶
Module: Deep Uninstaller tab — safe app removal + residual cleanup.
- class AppListWorker (L33)
- run(self) (L39)
- class ResidualScanWorker (L44)
- init(self, app_name, publisher, install_location) (L50)
- run(self) (L57)
- class ResidualCleanWorker (L74)
- init(self, findings, create_restore_point) (L80)
- run(self) (L86)
- class UninstallerTab (L112)
- init(self, config, logger, safety_manager, parent) (L115)
- setup_ui(self) (L125)
- setup_tooltips(self) (L250)
- _load_apps(self) (L257)
- _on_apps_loaded(self, apps) (L281)
- _populate_table(self, apps) (L289)
- _filter_apps(self, text) (L319)
- _on_app_selected(self) (L331)
- _run_uninstall(self) (L357)
- _scan_residuals(self) (L391)
- _on_residuals_failed(self, message) (L422)
- _confidence_label(level) (L429)
- _on_residuals_done(self, leftovers) (L435)
- _clean_residuals(self) (L471)
- _on_clean_failed(self, message) (L517)
- _on_clean_done(self, outcomes) (L523)
src/cortex_unified/ui/tooltips.py¶
Module: Comprehensive tooltip and help system for Cortex Cleaner GUI.
- class TooltipManager (L8)
- apply_tooltip(cls, widget, tooltip_key, include_help) (L373)
- apply_tooltips_to_window(cls, window) (L397)
- get_keyboard_shortcuts_text(cls) (L410)
- show_help_dialog(cls, parent) (L423)
- setup_tooltips_and_help(main_window) (L498)
- add_contextual_help(widget, help_text) (L520)
- create_help_button(parent, help_text) (L532)
- show_help() (L548)
src/cortex_unified/ui/tray_icon.py¶
Module: System Tray Manager — manages the tray icon, background agent, and notifications.
- class SystemTrayManager (L11)
- init(self, main_window, app) (L14)
- _setup_menu(self) (L50)
- _on_tray_activated(self, reason) (L77)
- _show_main_window(self) (L84)
- _run_instant_scan(self) (L92)
- _quit_app(self) (L104)
- _on_high_ram(self, value) (L116)
- _on_high_cpu(self, value) (L127)
- _on_low_disk(self, free_gb) (L138)
src/cortex_unified/visualization/init.py¶
Module: Visualization module for Cortex Cleaner.
src/cortex_unified/visualization/interactive_dashboard.py¶
Module: Interactive dashboard for comprehensive data visualization.
- class InteractiveDashboard (L70)
- init(self, analyzer) (L78)
- _initialize_generators(self) (L90)
- create_dashboard(self, layout_type) (L96)
- _create_empty_dashboard(self) (L120)
- _create_treemap_dashboard(self) (L138)
- _create_sunburst_dashboard(self) (L150)
- _create_side_by_side_dashboard(self) (L162)
- _create_combined_dashboard(self) (L192)
- _add_disk_usage_pie(self, fig, row, col) (L229)
- _add_file_type_bar(self, fig, row, col) (L252)
- handle_drill_down(self, path) (L279)
- handle_drill_up(self) (L308)
- handle_context_menu(self, path) (L321)
- export_visualization(self, format, filepath, visualization_type) (L348)
- export_batch(self, base_path, formats) (L405)
- refresh_data(self) (L420)
- get_dashboard_stats(self) (L433)
src/cortex_unified/visualization/sunburst_generator.py¶
Module: Plotly sunburst renderer for hierarchical disk usage trees.
- class SunburstSegment (L58)
- class SunburstGenerator (L71)
- init(self, data) (L74)
- _setup_color_scheme(self) (L80)
- _get_file_type_from_path(self, path) (L111)
- _get_color_for_level_and_type(self, level, file_type, size_ratio) (L118)
- _convert_directory_tree_to_sunburst_data(self, tree_data, max_depth) (L135)
- add_node(node_data, parent_id, level) (L160)
- generate_sunburst(self, max_depth) (L218)
- export_as_image(self, format, width, height) (L288)
- export_as_html(self, interactive, include_plotlyjs) (L316)
- _format_bytes(self, bytes_count) (L349)
src/cortex_unified/visualization/treemap_generator.py¶
Module: TreeMap visualization generator for disk usage analysis.
- class TreeMapNode (L55)
- class TreeMapGenerator (L66)
- init(self, data) (L69)
- _setup_color_scheme(self) (L79)
- _get_file_type_from_path(self, path) (L99)
- _get_color_for_item(self, node) (L106)
- _convert_directory_tree_to_nodes(self, tree_data, max_depth, current_depth) (L129)
- _flatten_nodes_for_plotly(self, nodes) (L176)
- add_node(node, parent_id) (L189)
- collect_sizes(nodes_list) (L209)
- generate_treemap(self, max_depth) (L232)
- export_as_image(self, format, width, height) (L296)
- export_as_html(self, interactive, include_plotlyjs) (L324)
- _format_bytes(self, bytes_count) (L357)
src/NexusExplorer/init.py¶
Module: NexusExplorer package root.
src/NexusExplorer/native/init.py¶
Module: NexusExplorer native Qt package.
src/NexusExplorer/native/binary_differ.py¶
Module: Nexus Explorer — Binary & Hex File Differ Engine.
- class HexDiffChunk (L18)
- class BinaryDiffReport (L32)
- class BinaryDiffer (L47)
- _to_ascii(b_data) (L53)
- compare_binary_files(cls, file_a_path, file_b_path, max_diff_chunks) (L58)
src/NexusExplorer/native/file_signature_sniffer.py¶
Module: Nexus Explorer — Binary Magic Bytes & MIME Header Forensic Sniffer.
- class FileSignature (L18)
- class SniffResult (L81)
- class FileSignatureSniffer (L95)
- sniff_file(cls, file_path) (L99)
- scan_directory(cls, root_dir, recursive, only_spoofed, progress_cb, cancel_check) (L167)
src/NexusExplorer/native/image_optimizer.py¶
Module: Nexus Explorer — High-Throughput Batch Image Optimizer & WebP Transcoder.
- class ImageOptimizeResult (L21)
- class BatchOptimizeSummary (L35)
- class ImageOptimizer (L46)
- optimize_image(cls, source_path, output_path, target_format, quality, strip_metadata) (L52)
- optimize_batch(cls, image_paths, output_directory, target_format, quality, progress_cb, cancel_check) (L113)
src/NexusExplorer/native/nexus_ads_manager.py¶
Module: Nexus Explorer — NTFS Alternate Data Streams (ADS) & Zone.Identifier Manager.
- class AlternateDataStream (L30)
- class AlternateDataStreamsManager (L42)
- list_streams(cls, file_path) (L46)
- read_stream_text(cls, file_path, stream_name) (L116)
- delete_stream(cls, file_path, stream_name) (L129)
- unblock_file(cls, file_path) (L150)
- strip_all_streams(cls, file_path) (L155)
src/NexusExplorer/native/nexus_archive.py¶
Module: Archive support via native 7-Zip CLI — multithreaded extraction.
- _get_7z_search_paths() (L32)
- _find_7z() (L76)
- is_7z_available() (L124)
- _7z() (L130)
- class ArchiveSecurityError (L145)
- validate_extract_path(dest_dir, entry_path) (L153)
- _enforce_total_size(total, label) (L167)
- class ArchiveType (L181)
- class ArchiveEntry (L216)
- class ArchiveInfo (L232)
- detect_archive_type(path) (L245)
- is_archive(path) (L275)
- _parse_7z_list(output) (L283)
- _parse_7z_list_xml(output) (L360)
- _run_7z(args, timeout, password, capture, encoding) (L416)
- _7z_version() (L455)
- _has_mmt_flag() (L469)
- class SevenZipCLIReader (L476)
- init(self, path, password) (L479)
- list_entries(self) (L504)
- extract_entry(self, entry_path, dest_path) (L532)
- extract_all(self, dest_dir) (L547)
- read_entry(self, entry_path) (L564)
- get_info(self) (L589)
- clear_cache(self) (L607)
- open_archive(path, password) (L615)
- class _ExtractWorker (L630)
- init(self, archive_path, dest, password, entries) (L636)
- run(self) (L655)
- cancel(self) (L719)
- class ArchiveManager (L731)
- init(self, parent) (L737)
- available(self) (L744)
- browse(self, path, password) (L751)
- extract_all(self, archive_path, dest, password) (L760)
- extract_selected(self, archive_path, entries, dest, password) (L776)
- cancel_extraction(self) (L794)
- _on_done(self, success) (L802)
- create_archive(self, archive_path, files, format, compression, password) (L818)
- is_extracting(self) (L869)
- _stop_worker(self) (L874)
- _compression_level(level) (L891)
src/NexusExplorer/native/nexus_archive_manager.py¶
Module: Nexus Explorer — Multi-Format Archive Studio & Compression Engine.
- class ArchiveFormat (L21)
- class CompressionLevel (L31)
- class ArchiveEntryInfo (L41)
- class ArchiveOperationResult (L53)
- class ArchiveManager (L65)
- detect_format(archive_path) (L69)
- list_entries(cls, archive_path) (L85)
- test_archive(cls, archive_path) (L125)
- extract_archive(cls, archive_path, destination_dir, password, progress_cb, cancel_check) (L153)
- create_archive(cls, sources, output_file, fmt, compression_level, progress_cb, cancel_check) (L207)
src/NexusExplorer/native/nexus_batch_renamer.py¶
Module: Nexus Explorer — Enterprise Batch Multi-Rename Engine.
- class CaseTransformation (L21)
- class RenamePlanItem (L34)
- class RenameTransaction (L47)
- class BatchRenamer (L54)
- init(self) (L57)
- _apply_case(text, transformation) (L63)
- _extract_exif_metadata(file_path) (L88)
- _extract_id3_metadata(file_path) (L114)
- preview_rename(self, file_paths, search_pattern, replace_pattern, use_regex, prefix, suffix, case_transform, start_counter, step_counter) (L138)
- execute_rename(self, plan, progress_cb) (L288)
- undo_last(self) (L325)
src/NexusExplorer/native/nexus_cloud.py¶
Module: Cloud storage integration module.
- _parse_iso_datetime(iso_str) (L71)
- _secure_store(key, value) (L83)
- _secure_load(key) (L104)
- _secure_delete(key) (L120)
- retry_on_rate_limit(max_retries) (L134)
- decorator(func) (L138)
- wrapper(args, *kwargs) (L141)
- class CloudProviderType (L185)
- class SyncStatus (L193)
- class CloudFile (L205)
- class CloudAccount (L221)
- class CloudProvider (L235)
- provider_type(self) (L240)
- authenticate(self) (L246)
- is_authenticated(self) (L251)
- disconnect(self) (L257)
- get_account_info(self) (L262)
- list_files(self, path, max_results) (L268)
- search(self, query, max_results) (L273)
- download(self, cloud_id, local_path) (L278)
- upload(self, local_path, cloud_path) (L283)
- delete(self, cloud_id) (L288)
- get_quota(self) (L293)
- class OneDriveProvider (L306)
- init(self, client_id) (L309)
- provider_type(self) (L328)
- _persist_cache(self) (L333)
- _ensure_token(self) (L341)
- authenticate(self) (L356)
- is_authenticated(self) (L402)
- disconnect(self) (L409)
- _graph_get(self, url) (L416)
- get_account_info(self) (L430)
- list_files(self, path, max_results) (L450)
- search(self, query, max_results) (L479)
- download(self, cloud_id, local_path) (L506)
- upload(self, local_path, cloud_path) (L533)
- delete(self, cloud_id) (L581)
- get_quota(self) (L602)
- class GoogleDriveProvider (L626)
- init(self, credentials_file, token_dir) (L631)
- provider_type(self) (L644)
- _token_path(self) (L649)
- authenticate(self) (L656)
- is_authenticated(self) (L718)
- disconnect(self) (L736)
- get_account_info(self) (L746)
- list_files(self, path, max_results) (L768)
- search(self, query, max_results) (L813)
- download(self, cloud_id, local_path) (L850)
- upload(self, local_path, cloud_path) (L876)
- delete(self, cloud_id) (L900)
- get_quota(self) (L913)
- class DropboxProvider (L932)
- init(self, access_token) (L935)
- provider_type(self) (L945)
- authenticate(self) (L951)
- is_authenticated(self) (L978)
- disconnect(self) (L992)
- get_account_info(self) (L1001)
- _parse_dropbox_entry(self, entry) (L1027)
- list_files(self, path, max_results) (L1041)
- search(self, query, max_results) (L1064)
- download(self, cloud_id, local_path) (L1100)
- upload(self, local_path, cloud_path, mode) (L1121)
- delete(self, cloud_id) (L1166)
- get_quota(self) (L1179)
- class S3Provider (L1197)
- init(self, bucket_name, region) (L1200)
- provider_type(self) (L1211)
- authenticate(self) (L1216)
- is_authenticated(self) (L1233)
- disconnect(self) (L1238)
- get_account_info(self) (L1244)
- list_files(self, path, max_results) (L1263)
- search(self, query, max_results) (L1292)
- download(self, cloud_id, local_path) (L1301)
- upload(self, local_path, cloud_path) (L1314)
- delete(self, cloud_id) (L1327)
- get_quota(self) (L1339)
- class CloudManager (L1349)
- init(self, parent) (L1357)
- get_provider(self, provider_type) (L1372)
- get_connected_providers(self) (L1377)
- connect_provider(self, provider_type) (L1382)
- disconnect_provider(self, provider_type) (L1395)
- list_all_cloud_files(self, max_per_provider) (L1403)
- _fetch(provider) (L1414)
- search_all(self, query, max_results) (L1431)
src/NexusExplorer/native/nexus_content_search.py¶
Module: Content search engine for searching inside file contents.
- class ContentMatch (L62)
- class ContentSearchResult (L72)
- is_searchable(path) (L79)
- search_file_content(path, pattern, query, case_sensitive, use_regex, max_matches_per_file) (L91)
- class _ContentSearchWorker (L155)
- init(self, root, query, case_sensitive, use_regex, max_results, file_filter, cancel_event) (L163)
- run(self) (L184)
- _process_batch(self, executor, batch, compiled_re, total_matches, files_searched, total_files) (L260)
- class ContentSearchEngine (L291)
- init(self, parent) (L300)
- search(self, root, query, case_sensitive, use_regex, max_results, file_filter) (L307)
- stop(self) (L336)
- is_searching(self) (L344)
src/NexusExplorer/native/nexus_core.py¶
Module: Nexus native core: engine bridge, native icons/thumbnails, table model.
- find_cli() (L70)
- human(n) (L81)
- fmt_ms(ms) (L97)
- _parse_json(proc) (L107)
- _parse_search_chunk(proc) (L123)
- _guarded(fn) (L149)
- run(*a) (L151)
- class _CallMarshal (L164)
- _get_marshal() (L176)
- _mark_shutdown() (L203)
- marshal_call(fn) (L209)
- class _FfiJob (L230)
- init(self, fn, done) (L233)
- run(self) (L240)
- class Engine (L269)
- shutdown(self, wait_ms) (L274)
- init(self) (L285)
- list_dir(self, path, done) (L316)
- search(self, root, pattern, done) (L328)
- _python_list_dir(path) (L347)
- list_flat_branch(self, path, done, max_results) (L376)
- _python_flat_branch(path, max_results) (L381)
- _python_search(root, pattern, max_results) (L415)
- _run_ffi(self, job, done) (L468)
- transfer(self, kind, sources, dest, parent, on_done) (L476)
- _transfer_ffi(self, kind, sources, dest, parent, on_done) (L483)
- on_progress(done_b, total_b, speed, eta) (L506)
- apply() (L510)
- hooks_conflict(info) (L528)
- start(h) (L540)
- cancel_clicked() (L549)
- job() (L564)
- _transfer_cli(self, kind, sources, dest, parent, on_done) (L592)
- on_ready() (L612)
- on_finished(code, _s) (L629)
- _transfer_python(self, kind, sources, dest, dlg, on_done) (L649)
- class _TransJob (L653)
- run(self) (L655)
- delete(self, paths, permanent, parent, on_done) (L692)
- _delete_python(self, paths, permanent, on_done) (L700)
- class _DelJob (L704)
- run(self) (L706)
- _delete_ffi(self, paths, permanent, parent, on_done) (L741)
- cancel_clicked() (L754)
- job() (L769)
- _delete_cli(self, paths, permanent, parent, on_done) (L790)
- fin(code, _s) (L801)
- simple(self, args, on_done) (L820)
- _simple_python(args, on_done) (L835)
- class _SHFILEINFO (L937)
- class _ICONINFO (L948)
- class _BMIH (L962)
- _hicon_to_qicon(hicon, size) (L982)
- class IconThumbs (L1018)
- init(self) (L1025)
- set_fluent_ext_icon(self, fn) (L1037)
- dir_icon(self, name) (L1041)
- _file_icon(self) (L1058)
- ext_icon(self, ext) (L1065)
- icon_for(self, row) (L1107)
- _thumb_source_ok(path) (L1153)
- class FileTableModel (L1167)
- init(self, icons) (L1179)
- set_tags_manager(self, tags) (L1189)
- _precompute(rows) (L1194)
- set_rows(self, rows) (L1203)
- update_rows(self, rows) (L1215)
- _emit_changed(self, row_a, row_b) (L1251)
- rowCount(self, parent) (L1258)
- columnCount(self, parent) (L1265)
- headerData(self, section, orient, role) (L1270)
- index(self, r, c, parent) (L1277)
- parent(self, _child) (L1284)
- data(self, idx, role) (L1289)
- flags(self, index) (L1327)
- mimeTypes(self) (L1340)
- mimeData(self, indexes) (L1345)
- supportedDragActions(self) (L1367)
- class SortProxy (L1373)
- init(self) (L1375)
- flags(self, index) (L1382)
- supportedDragActions(self) (L1395)
- lessThan(self, left, right) (L1400)
- _draw_transfer(painter, rect, active) (L1430)
- create_nested_folder(base_path, rel_path) (L1584)
- create_nested_file(base_path, rel_path, content, encoding) (L1605)
- scaffold_hierarchy(base_path, spec_text, default_content) (L1632)
src/NexusExplorer/native/nexus_dir_diff.py¶
Module: Nexus Explorer — Directory Comparison & Folder Synchronization Engine.
- class DiffStatus (L20)
- class SyncMode (L31)
- class DiffEntry (L41)
- class SyncStats (L56)
- post_init(self) (L65)
- class DirectoryDiffEngine (L73)
- _quick_hash(path_str) (L77)
- compare_directories(cls, left_dir, right_dir, compare_content_hash, progress_cb, cancel_check) (L93)
- execute_sync(cls, diff_list, left_dir, right_dir, mode, progress_cb, cancel_check) (L225)
src/NexusExplorer/native/nexus_explorer.py¶
Module: NexusExplorerWidget — premium native Qt6 file explorer.
- _safe_ts(ms) (L151)
- _scaled(px) (L164)
- _init_dpi() (L170)
- class DebugOverlay (L795)
- init(self, parent) (L798)
- log_event(self, text) (L813)
- tick_fps(self) (L825)
- paintEvent(self, ev) (L837)
- class CrumbBar (L869)
- init(self, parent) (L875)
- setPath(self, path) (L891)
- _segments(self) (L898)
- mouseMoveEvent(self, ev) (L915)
- leaveEvent(self, ev) (L920)
- paintEvent(self, ev) (L925)
- mouseReleaseEvent(self, ev) (L973)
- mouseDoubleClickEvent(self, ev) (L987)
- class QuickLookPopup (L996)
- init(self, icons, parent) (L999)
- show_file(self, row, pos) (L1030)
- _show_at(self, pos) (L1091)
- class BulkRenameDialog (L1115)
- init(self, paths, parent) (L1126)
- _on_mode_changed(self, idx) (L1273)
- _rename_for_mode(self, name, index) (L1280)
- _update_preview(self) (L1362)
- _apply(self) (L1373)
- class SearchDialog (L1413)
- init(self, engine, start_path, parent) (L1416)
- _start_search(self) (L1493)
- _cancel_search(self) (L1527)
- _on_search_done(self, code, rows) (L1535)
- _open_result(self, idx) (L1559)
- _open_selected(self) (L1575)
- class GoToPathDialog (L1581)
- init(self, current_path, parent) (L1598)
- _go(self) (L1637)
- _resolve(self, text) (L1658)
- result_path(self) (L1683)
- class _RenamePreviewModel (L1688)
- init(self) (L1692)
- set_data(self, data) (L1697)
- rowCount(self, parent) (L1703)
- columnCount(self, parent) (L1707)
- data(self, idx, role) (L1711)
- headerData(self, sec, orient, role) (L1722)
- class _FolderSizeWorker (L1732)
- init(self, path) (L1736)
- run(self) (L1741)
- class _TextPreviewReader (L1773)
- init(self, path, max_lines) (L1777)
- run(self) (L1783)
- class _ExtractArchiveWorker (L1812)
- init(self, tasks) (L1817)
- run(self) (L1822)
- class _ExtractEntryWorker (L1885)
- init(self, archive_path, entries, dest_dir, password) (L1890)
- run(self) (L1898)
- class _CompressWorker (L1953)
- init(self, cmd, name) (L1958)
- run(self) (L1964)
- class FolderSizeCalculator (L2008)
- init(self) (L2011)
- get_size(self, path) (L2018)
- calculate(self, path, callback) (L2022)
- _process_next(self) (L2036)
- _on_done(self, path, size, callback) (L2055)
- _on_thread_done(self) (L2060)
- clear_queue(self) (L2068)
- stop(self) (L2073)
- class ColorTagManager (L2085)
- init(self) (L2094)
- get_tag(self, path) (L2102)
- set_tag(self, path, color) (L2106)
- get_all_tags(self) (L2114)
- _save(self) (L2118)
- class SmartFolderManager (L2126)
- init(self) (L2129)
- add(self, name, root, pattern, ext_filter) (L2137)
- remove(self, index) (L2145)
- list_all(self) (L2151)
- _save(self) (L2155)
- class _DupScanWorker (L2163)
- init(self, root) (L2169)
- stop(self) (L2175)
- run(self) (L2179)
- _scan(self) (L2196)
- class _DuplicateModel (L2261)
- init(self) (L2266)
- set_groups(self, groups) (L2271)
- rowCount(self, parent) (L2294)
- columnCount(self, parent) (L2298)
- data(self, idx, role) (L2302)
- headerData(self, sec, orient, role) (L2340)
- flags(self, idx) (L2347)
- toggle_selected(self, idx) (L2354)
- auto_select_duplicates(self) (L2363)
- get_selected_rows(self) (L2385)
- total_recoverable(self) (L2389)
- class DuplicateFinderDialog (L2394)
- init(self, initial_path, parent) (L2397)
- set_directory(self, path) (L2488)
- _browse(self) (L2492)
- _start_scan(self) (L2499)
- _on_progress(self, pct, name) (L2528)
- _on_done(self, groups) (L2534)
- _auto_select(self) (L2560)
- _update_space(self) (L2565)
- _on_click(self, idx) (L2571)
- _delete_selected(self) (L2577)
- closeEvent(self, ev) (L2606)
- class NexusClipboard (L2617)
- init(self, parent) (L2625)
- _get_clipboard(self) (L2642)
- cut(self, paths) (L2660)
- copy(self, paths) (L2667)
- paste(self) (L2674)
- clear(self) (L2680)
- has_data(self) (L2687)
- _sync_to_system_clipboard(self) (L2691)
- _on_data_changed(self) (L2713)
- _do_external_change(self) (L2719)
- class StagedItemRow (L2761)
- init(self, path, icons, parent) (L2766)
- mousePressEvent(self, ev) (L2828)
- mouseMoveEvent(self, ev) (L2835)
- class StagingListWidget (L2859)
- init(self, shelf, parent) (L2862)
- mousePressEvent(self, ev) (L2871)
- mouseMoveEvent(self, ev) (L2878)
- class StagingShelfWidget (L2905)
- init(self, icons, parent) (L2921)
- _update_style(self) (L3059)
- _update_ui_state(self) (L3071)
- _norm(self, p) (L3108)
- set_current_folder(self, path) (L3113)
- set_staged(self, mode, paths) (L3118)
- add_paths(self, paths, mode) (L3135)
- remove_path(self, path) (L3155)
- clear_staged(self) (L3170)
- _toggle_mode(self) (L3178)
- _rebuild_list(self) (L3190)
- _on_paste_clicked(self) (L3201)
- dragEnterEvent(self, ev) (L3208)
- dragMoveEvent(self, ev) (L3218)
- dragLeaveEvent(self, ev) (L3226)
- dropEvent(self, ev) (L3232)
- class TransferStatusDock (L3252)
- init(self, icons, parent) (L3257)
- bind_queue(self, tq) (L3357)
- _on_job_added(self, job_id) (L3369)
- _on_job_started(self, job_id) (L3386)
- _on_job_progress(self, job_id, percent, text) (L3393)
- _on_job_completed(self, job_id, success, msg) (L3431)
- _on_job_cancelled(self, job_id) (L3463)
- _auto_hide(self) (L3481)
- _toggle_pause(self) (L3491)
- _on_cancel(self) (L3507)
- class PreviewPane (L3522)
- init(self, icons, parent) (L3533)
- set_transfer_queue(self, tq) (L3624)
- set_current_folder(self, path) (L3628)
- sync_clipboard(self, mode, paths) (L3632)
- show_entry(self, row) (L3636)
- _on_open(self) (L3718)
- _on_open_with(self) (L3724)
- _on_copy_path(self) (L3730)
- _on_checksums(self) (L3736)
- _load_text_preview(self, path) (L3742)
- _on_text_ready(self, text) (L3757)
- _big_icon(self, row) (L3762)
- class CommandPalette (L3772)
- init(self, parent) (L3775)
- register(self, name, shortcut, callback) (L3807)
- toggle(self) (L3812)
- open_palette(self) (L3820)
- _filter(self, text) (L3835)
- _fuzzy_match(self, pattern, text) (L3849)
- _execute_selected(self) (L3858)
- keyPressEvent(self, ev) (L3869)
- class JobQueueWidget (L3889)
- init(self, parent) (L3892)
- add_job(self, name, total) (L3922)
- update_job(self, job_id, current, filename) (L3960)
- complete_job(self, job_id) (L3971)
- _toggle_collapse(self) (L3983)
- _update_toggle_text(self) (L3990)
- _reposition(self) (L3995)
- class TerminalWidget (L4008)
- init(self, parent) (L4011)
- setVisible(self, visible) (L4077)
- _ensure_process(self) (L4086)
- _on_output(self) (L4104)
- shutdown(self) (L4122)
- closeEvent(self, event) (L4134)
- del(self) (L4140)
- _execute(self) (L4146)
- _track_cd(self, cmd) (L4164)
- _resolve_cd(self, target) (L4174)
- set_cwd(self, path) (L4190)
- _clear_output(self) (L4197)
- _copy_output(self) (L4202)
- class PropertiesDialog (L4211)
- init(self, row, parent) (L4214)
- class _ChecksumWorkerThread (L4274)
- init(self, path, parent) (L4279)
- run(self) (L4285)
- class FileChecksumDialog (L4328)
- init(self, file_path, parent) (L4331)
- _on_done(self, hashes) (L4455)
- _check_match(self) (L4468)
- closeEvent(self, event) (L4485)
- class ExtractionProgressWidget (L4497)
- init(self, parent) (L4500)
- start(self, archive_name, total_files) (L4568)
- update_progress(self, percent, current_file, file_count, file_size) (L4586)
- finish(self, success, message) (L4619)
- _fmt_duration(seconds) (L4635)
- _fmt_size(bps) (L4648)
- class _ZipEntry (L4664)
- init(self, archive_path, name, is_dir, size, modified_ms) (L4667)
- class ArchiveBrowser (L4678)
- init(self) (L4686)
- open(self, zip_path) (L4692)
- close(self) (L4703)
- list_entries(self, prefix) (L4714)
- extract_entry(self, entry_path, dest_dir) (L4770)
- class UndoManager (L4785)
- init(self) (L4793)
- _load(self) (L4801)
- _save(self) (L4818)
- record_move(self, src, dst) (L4825)
- record_copy(self, src, dst) (L4831)
- record_delete(self, path) (L4837)
- record_rename(self, old, new) (L4843)
- record_new_folder(self, path, created_parents) (L4849)
- record_new_file(self, path, content, created_parents) (L4855)
- record_batch_create(self, created_files, created_dirs, label) (L4862)
- _push(self, op) (L4869)
- undo(self) (L4878)
- redo(self) (L4896)
- _execute_undo(self, op) (L4914)
- _execute_redo(self, op) (L4972)
- can_undo(self) (L5010)
- can_redo(self) (L5015)
- undo_description(self) (L5020)
- redo_description(self) (L5028)
- class ShortcutsDialog (L5040)
- init(self, parent) (L5091)
- class NestedFolderDialog (L5152)
- init(self, current_dir, parent) (L5155)
- _update_preview(self) (L5230)
- get_target_path(self) (L5242)
- class NestedFileDialog (L5248)
- init(self, current_dir, parent) (L5251)
- _on_path_changed(self, text) (L5336)
- _on_template_selected(self, index) (L5350)
- _update_preview(self) (L5362)
- get_result(self) (L5374)
- class BatchScaffoldDialog (L5380)
- init(self, current_dir, parent) (L5383)
- _on_preset_selected(self, index) (L5460)
- get_spec_text(self) (L5467)
- class ExplorerWidget (L5476)
- init(self, start_path, parent, root) (L5479)
- nav_btn(icon_name, tip, slot) (L5600)
- action_btn(icon_name, tip, slot, accent) (L5610)
- sep() (L5621)
- mount_tabs_to_window(self, win) (L6106)
- _on_about_to_quit(self) (L6112)
- save_session(self, force) (L6117)
- restore_session(self) (L6135)
- _bind_shortcuts(self) (L6196)
- _text_input_focused() (L6198)
- _wrap(fn, allow_in_text) (L6205)
- _handler() (L6207)
- _register_palette_actions(self) (L6271)
- _toggle_debug(self) (L6311)
- _show_shortcuts(self) (L6324)
- _go_to_path(self) (L6334)
- _sort_cycle_column(self) (L6343)
- _sort_toggle_order(self) (L6357)
- _toggle_terminal(self) (L6369)
- resizeEvent(self, ev) (L6379)
- closeEvent(self, ev) (L6388)
- _log(self, event) (L6395)
- add_tab(self, path) (L6402)
- _on_close_btn() (L6415)
- _close_tab(self, idx) (L6430)
- _on_tab_moved(self, from_pos, to_pos) (L6441)
- _close_current_tab(self) (L6454)
- _switch_tab(self, idx) (L6460)
- _tab(self) (L6470)
- navigate(self, path, push) (L6478)
- _load(self, path) (L6499)
- _deliver(code, rows, _seq) (L6518)
- _on_rows(self, code, rows) (L6527)
- _reload_current(self) (L6551)
- _load_bookmarks(self) (L6557)
- _save_bookmarks(self) (L6566)
- _go_bookmark(self, index) (L6571)
- _add_bookmark(self) (L6582)
- _calc_folder_sizes(self, rows) (L6595)
- _on_folder_size_done(self, path, size) (L6606)
- _on_fs_change(self, _path) (L6620)
- go_back(self) (L6625)
- go_forward(self) (L6633)
- _right_go_back(self) (L6642)
- _right_go_forward(self) (L6650)
- _install_mouse_side_buttons(self) (L6658)
- eventFilter(self, obj, ev) (L6699)
- _handle_viewport_drop(self, obj, ev) (L6739)
- _update_drop_hint(self, obj, ev) (L6845)
- go_up(self) (L6883)
- _start_edit_path(self) (L6893)
- _commit_edit_path(self) (L6902)
- _on_addr_editing_finished(self) (L6913)
- _toggle_sidebar(self) (L6920)
- _toggle_dual_pane(self) (L6932)
- _open_archive(self, archive_path) (L6948)
- _load_archive_entries(self, prefix) (L6972)
- _archive_activate(self, path) (L7020)
- _extract_and_open(self, entry_path) (L7029)
- _archive_go_up(self) (L7048)
- _extract_archives_here(self, archive_paths) (L7059)
- _extract_archives_to(self, archive_paths) (L7066)
- _extract_archives_to_dir(self, archive_paths, dirs) (L7074)
- _on_extract_done(self, success, message) (L7097)
- _extract_entries_here(self, entry_paths) (L7104)
- _extract_entries_to(self, entry_paths) (L7111)
- _extract_archive_entries(self, entry_paths, dest_dir) (L7120)
- _exit_archive_mode(self) (L7139)
- _toggle_preview(self) (L7149)
- _newfolder(self) (L7160)
- _right_add_tab(self, path) (L7165)
- _right_tab(self) (L7173)
- _right_navigate(self, path, push) (L7180)
- _right_load(self, path) (L7194)
- _right_on_rows(self, code, rows) (L7199)
- _fill_right_icon_view(self, rows) (L7206)
- _activate_right(self, idx) (L7218)
- _quick_look(self) (L7228)
- _bulk_rename(self) (L7246)
- _open_duplicate_finder(self) (L7255)
- _set_color_tag(self, color) (L7267)
- _get_color_tag(self, path) (L7273)
- _refresh_smart_folders(self) (L7279)
- _open_smart_folder(self, index) (L7287)
- _add_current_as_smart_folder(self) (L7297)
- _smart_folder_context_menu(self, pos) (L7305)
- _remove_smart_folder(self, index) (L7323)
- _set_view_mode(self, mode) (L7329)
- _toggle_view(self) (L7342)
- toggle_flat_branch_view(self) (L7350)
- _fill_icon_view(self, rows) (L7362)
- _selected_rows(self, sender) (L7374)
- _selected_paths(self, sender) (L7396)
- _activate(self, idx) (L7401)
- _activate_path(self, row_or_path) (L7407)
- update_status(self, sender, *) (L7426)
- _cycle_status_mode(self) (L7454)
- _on_transfer_started(self, job_id) (L7475)
- _on_transfer_added(self, job_id) (L7481)
- open_transfer_monitor(self) (L7489)
- _on_transfer_progress(self, job_id, percent, text) (L7499)
- _on_transfer_cancelled(self, job_id) (L7505)
- _on_transfer_completed(self, job_id, success, message) (L7512)
- _on_transfer_queue_empty(self) (L7517)
- _unique_name(self, base) (L7522)
- _new_folder(self) (L7532)
- _new_nested_folder(self) (L7541)
- _new_file(self, template_ext) (L7557)
- _new_nested_file(self) (L7569)
- _batch_scaffold(self) (L7585)
- _new_folder_with_selection(self) (L7618)
- _compress_to(self, fmt) (L7630)
- _move_to_folder(self) (L7695)
- _rename(self) (L7705)
- _clip(self, mode) (L7733)
- _paste(self, target_dest) (L7745)
- _on_staging_paste(self, mode, paths, target_dir) (L7786)
- _on_stage_selected(self) (L7812)
- _delete(self, permanent) (L7820)
- _undo(self) (L7843)
- _redo(self) (L7855)
- _select_all(self) (L7867)
- _on_table_clicked(self, idx) (L7875)
- _on_current_changed(self, current, _prev) (L7882)
- dragEnterEvent(self, ev) (L7891)
- dragMoveEvent(self, ev) (L7896)
- dragLeaveEvent(self, ev) (L7922)
- dropEvent(self, ev) (L7930)
- startDrag(self, actions) (L7936)
- _search(self) (L7956)
- _context_menu(self, pos) (L7963)
- _open_in_new_tab(self) (L8183)
- _open_in_terminal(self) (L8191)
- _invert_selection(self) (L8203)
- _show_properties(self, path_or_row) (L8224)
- _calculate_file_hashes(self, path_or_row) (L8241)
- _open_with(self, path) (L8251)
- closeEvent(self, ev) (L8264)
- _load_drives(self) (L8302)
- _finish(count) (L8308)
- done() (L8351)
src/NexusExplorer/native/nexus_fast_copier.py¶
Module: Nexus Explorer — High-Performance Fast File Copier & Transfer Engine.
- class CopyMode (L23)
- class CopyItemProgress (L32)
- class CopySummary (L46)
- post_init(self) (L56)
- class FastCopier (L64)
- _copy_single_file(cls, src, dst, chunk_size, speed_limit_kb_s, verify_hash, progress_cb, cancel_check) (L70)
- copy_batch(cls, sources, destination_dir, mode, chunk_size, speed_limit_kb_s, max_retries, progress_cb, cancel_check) (L129)
src/NexusExplorer/native/nexus_ffi.py¶
Module: ctypes bridge to the NexusExplorer Rust engine (nexus_engine.dll).
- _dll_candidates() (L40)
- find_dll() (L54)
- class _FileEntry (L68)
- class _DriveInfo (L90)
- class _SearchOptions (L106)
- _decode(ptr) (L131)
- _row_from_entry(e) (L144)
- class NexusFfi (L164)
- init(self) (L167)
- _bind(self) (L184)
- dll_path(self) (L271)
- version(self) (L276)
- close(self) (L285)
- set_timeout(self, timeout) (L295)
- read_dir_sync(self, path) (L308)
- get_drives(self) (L336)
- home_dir(self) (L363)
- search(self, root, query, max_results, recursive, include_hidden) (L377)
- on_batch(_ud, entries_ptr, count, done, err_ptr) (L397)
- cancel_search(self, search_id) (L436)
- last_search_id(self) (L444)
- rename(self, path, new_name) (L458)
- create_folder(self, parent, name) (L465)
- read_text_file(self, path, max_bytes) (L474)
- _cstr_array(items) (L504)
- _run_job(self, starter, keep_alive, hooks, control) (L512)
- on_progress(_ud, _jid, done_b, total_b, speed, eta, cur) (L527)
- on_complete(_ud, _jid, success, err_ptr) (L543)
- on_conflict(_ud, _jid, cid, src, dst, ss, ds, sm, dm, is_dir) (L553)
- copy(self, sources, dest_dir, track, hooks, control) (L597)
- move(self, sources, dest_dir, track, hooks, control) (L619)
- delete_paths(self, paths, to_trash, track, hooks, control) (L641)
- orphans(self) (L663)
- pause_job(self, handle) (L675)
- resume_job(self, handle) (L680)
- cancel_job(self, handle) (L685)
- _atexit_cleanup() (L694)
src/NexusExplorer/native/nexus_file_splitter.py¶
Module: Nexus Explorer — High-Performance File Splitter & Joiner Engine.
- class SplitPreset (L20)
- class SplitManifest (L43)
- class SplitResult (L56)
- class JoinResult (L67)
- class FileSplitterJoiner (L78)
- split_file(cls, source_file, chunk_size_bytes, output_directory, progress_cb, cancel_check) (L84)
- join_files(cls, first_part_or_manifest, output_path, progress_cb, cancel_check) (L168)
src/NexusExplorer/native/nexus_folder_tree.py¶
Module: Folder tree widget for hierarchical filesystem navigation.
- class FolderTreeModel (L23)
- init(self, parent) (L28)
- populate_drives(self) (L36)
- _get_drives(self) (L68)
- _setup_children(self, parent_item, path, depth) (L87)
- hasChildren(self, parent) (L97)
- canFetchMore(self, parent) (L111)
- fetchMore(self, parent) (L124)
- class FolderTreeWidget (L190)
- init(self, parent) (L195)
- _on_clicked(self, idx) (L224)
- select_path(self, path) (L233)
- refresh(self) (L267)
- cleanup(self) (L276)
src/NexusExplorer/native/nexus_hash_tool.py¶
Module: Nexus Explorer — High-Performance File Checksum & Integrity Utility.
- class HashAlgorithm (L20)
- class HashResult (L33)
- class VerifyItem (L46)
- class HashTool (L57)
- compute_hash(cls, file_path, algorithm, progress_cb, cancel_check) (L63)
- compute_all_hashes(cls, file_path, progress_cb, cancel_check) (L171)
- create_manifest(cls, files, output_file, algorithm, progress_cb, cancel_check) (L226)
- verify_manifest(cls, manifest_file, progress_cb, cancel_check) (L274)
src/NexusExplorer/native/nexus_icons.py¶
Module: Fluent Design icon library for NexusExplorer.
- class _LRUCache (L560)
- init(self, maxsize) (L563)
- get(self, key) (L569)
- set(self, key, value) (L577)
- _render_svg(path_d, size, color, fill) (L595)
- _render_svg_file(svg_content, size, default_color) (L628)
- icon(name, size, color, fill) (L649)
- _material_icon(material_name, size, default_color) (L673)
- icon_for_ext(ext, size, color) (L1268)
- action_icon(name, accent, size) (L1285)
- folder_icon(name, size, color) (L1366)
- sidebar_icon(name, size) (L1398)
src/NexusExplorer/native/nexus_indexer.py¶
Module: Production-grade file indexer for instant filename search.
- _fast_scandir(path) (L85)
- _fallback_scandir(path) (L128)
- class IndexedEntry (L152)
- class IndexStats (L164)
- class _PrefixIndex (L177)
- init(self) (L180)
- add(self, name, path) (L189)
- remove(self, name, path) (L195)
- _ensure_sorted(self) (L212)
- prefix_search(self, prefix, max_results) (L219)
- rebuild(self, entries) (L233)
- len(self) (L242)
- class FileIndex (L252)
- init(self) (L255)
- stats(self) (L269)
- add(self, entry) (L275)
- remove(self, path) (L294)
- search_prefix(self, query, max_results) (L328)
- search_name(self, query, max_results) (L334)
- search_extension(self, ext, max_results) (L360)
- list_directory(self, path) (L367)
- clear(self) (L372)
- entry_count(self) (L385)
- rebuild_prefix_index(self) (L391)
- snapshot(self) (L397)
- _open_db(db_path) (L457)
- _save_index_to_db(conn, index) (L468)
- _load_index_from_db(conn, index) (L487)
- _fts5_search(conn, query, max_results) (L501)
- class _IndexWorker (L525)
- init(self, roots, index, db_conn) (L535)
- run(self) (L547)
- _walk(self, root) (L570)
- _flush_batch(self, batch) (L616)
- class _IncrementalWorker (L627)
- init(self, root, index) (L633)
- run(self) (L640)
- class FileIndexer (L689)
- init(self, db_path, parent) (L697)
- _open_persistent_db(self) (L719)
- start_indexing(self, roots) (L732)
- stop_indexing(self) (L744)
- is_indexing(self) (L757)
- _on_worker_finished(self, total) (L765)
- _on_incr_finished(self, count) (L774)
- search_prefix(self, query, max_results) (L785)
- search(self, query, max_results) (L789)
- search_fts(self, query, max_results) (L793)
- search_extension(self, ext, max_results) (L800)
- list_directory(self, path) (L805)
- get_stats(self) (L810)
- load_from_db(self) (L817)
- save_to_db(self) (L831)
- _on_timer_tick(self) (L839)
- shutdown(self) (L853)
- del(self) (L864)
src/NexusExplorer/native/nexus_links_manager.py¶
Module: Nexus Explorer — NTFS Links, Junctions & Reparse Points Manager.
- class LinkType (L21)
- class LinkItem (L32)
- class LinkOperationResult (L47)
- class LinksManager (L56)
- is_junction(path) (L60)
- get_link_info(cls, file_or_dir) (L78)
- scan_links_in_directory(cls, root_dir, recursive, progress_cb, cancel_check) (L143)
- create_junction(cls, link_path, target_dir) (L198)
- create_symlink(cls, link_path, target_path, target_is_directory) (L229)
- create_hardlink(cls, link_path, target_file) (L256)
- remove_link_safely(cls, link_path) (L274)
src/NexusExplorer/native/nexus_native_app.py¶
Module: Standalone launcher for the native Nexus explorer (Qt6).
- main() (L24)
- on_quit() (L54)
src/NexusExplorer/native/nexus_network.py¶
Module: Network file system support module.
- class NetworkProtocol (L62)
- class NetworkFile (L72)
- class NetworkConnection (L85)
- store_credential(service, username, password) (L96)
- get_credential(service, username) (L107)
- _path_join(base, name) (L119)
- class NetworkFS (L131)
- protocol(self) (L136)
- connect(self, host, port, username, password) (L141)
- disconnect(self) (L146)
- is_connected(self) (L151)
- list_files(self, path) (L156)
- download(self, remote_path, local_path) (L161)
- upload(self, local_path, remote_path) (L166)
- delete(self, remote_path) (L171)
- mkdir(self, remote_path) (L176)
- exists(self, remote_path) (L181)
- class SMBProvider (L186)
- init(self) (L194)
- protocol(self) (L205)
- connect(self, host, port, username, password) (L209)
- disconnect(self) (L230)
- is_connected(self) (L240)
- list_files(self, path) (L244)
- download(self, remote_path, local_path) (L268)
- upload(self, local_path, remote_path) (L286)
- delete(self, remote_path) (L302)
- mkdir(self, remote_path) (L315)
- exists(self, remote_path) (L328)
- class FTPProvider (L341)
- init(self) (L344)
- protocol(self) (L359)
- connect(self, host, port, username, password) (L363)
- _reconnect(self) (L371)
- _close_conn(self) (L393)
- disconnect(self) (L408)
- is_connected(self) (L414)
- _safe_operation(self, operation) (L418)
- list_files(self, path) (L436)
- download(self, remote_path, local_path) (L466)
- upload(self, local_path, remote_path) (L486)
- delete(self, remote_path) (L502)
- mkdir(self, remote_path) (L512)
- exists(self, remote_path) (L522)
- class SFTPProvider (L533)
- init(self) (L536)
- protocol(self) (L549)
- connect(self, host, port, username, password) (L553)
- _reconnect(self) (L569)
- _close_both(self) (L600)
- disconnect(self) (L616)
- is_connected(self) (L622)
- _safe_operation(self, operation) (L626)
- list_files(self, path) (L644)
- download(self, remote_path, local_path) (L671)
- upload(self, local_path, remote_path) (L682)
- delete(self, remote_path) (L693)
- mkdir(self, remote_path) (L703)
- exists(self, remote_path) (L713)
- class WebDAVProvider (L724)
- init(self) (L727)
- protocol(self) (L738)
- connect(self, host, port, username, password, use_tls) (L742)
- disconnect(self) (L770)
- is_connected(self) (L776)
- list_files(self, path) (L780)
- download(self, remote_path, local_path) (L806)
- upload(self, local_path, remote_path) (L818)
- delete(self, remote_path) (L830)
- mkdir(self, remote_path) (L841)
- exists(self, remote_path) (L852)
- class ConnectionPool (L863)
- init(self, ttl_seconds) (L866)
- _key(self, protocol, host) (L875)
- get(self, protocol, host) (L880)
- put(self, protocol, host, conn) (L897)
- remove(self, protocol, host) (L909)
- clear(self) (L920)
- evict_expired(self) (L930)
- class NetworkManager (L946)
- init(self, parent) (L951)
- _default_port(self, protocol) (L968)
- get_provider(self, protocol) (L981)
- connect(self, protocol, host, port, username, password) (L985)
- disconnect(self, protocol) (L1019)
- disconnect_all(self) (L1025)
- list_recent_connections(self) (L1031)
- store_credentials(self, protocol, host, username, password) (L1043)
- get_credentials(self, protocol, host, username) (L1048)
src/NexusExplorer/native/nexus_plugins.py¶
Module: Production-grade plugin system for NexusExplorer.
- class PluginManifest (L45)
- from_dict(cls, data, plugin_dir) (L59)
- class PluginState (L103)
- class PluginLifecycle (L123)
- init(self, plugin_id) (L128)
- transition_to(self, new_state, error) (L139)
- is_active(self) (L156)
- repr(self) (L161)
- class ScopedConfig (L171)
- init(self, plugin_id, config_dir) (L174)
- get(self, key, default) (L187)
- set(self, key, value) (L192)
- all(self) (L204)
- class EventBridge (L210)
- init(self, event_bus, plugin_id) (L213)
- emit(self, event, data) (L221)
- subscribe(self, event, callback) (L226)
- unsubscribe(self, event, callback) (L231)
- class EventBus (L237)
- init(self) (L240)
- emit(self, event, data) (L246)
- subscribe(self, pattern, callback) (L262)
- unsubscribe(self, pattern, callback) (L268)
- class PluginContext (L279)
- init(self, plugin_id, host) (L286)
- logger(self) (L296)
- config(self) (L302)
- events(self) (L308)
- get_current_path(self) (L315)
- get_selected_files(self) (L320)
- navigate_to(self, path) (L325)
- refresh(self) (L330)
- show_message(self, text, timeout_ms) (L335)
- add_status_widget(self, widget) (L340)
- class NexusPlugin (L353)
- manifest(self) (L358)
- on_load(self, context) (L362)
- on_unload(self) (L365)
- get_context_menu_actions(self, paths) (L368)
- get_toolbar_actions(self) (L374)
- on_file_open(self, path) (L378)
- on_file_preview(self, path) (L382)
- on_search_filter(self, query, results) (L386)
- class APIAdapter (L395)
- init(self, plugin, manifest) (L402)
- _validate(self) (L411)
- plugin(self) (L424)
- class HotReloadWatcher (L434)
- init(self, parent) (L440)
- watch_plugin(self, plugin_id, plugin_dir) (L449)
- unwatch_plugin(self, plugin_id) (L459)
- _on_dir_change(self, path) (L466)
- class _SafeLoader (L484)
- _check_blocked_imports(module_code) (L488)
- load_module(module_name, file_path) (L497)
- instantiate_plugin(module) (L522)
- class PluginHost (L542)
- init(self, plugins_dir, config_dir, parent) (L556)
- set_host_callbacks(self, get_current_path, get_selected_files, navigate_to, refresh_view, show_status_message, add_status_widget) (L600)
- get_current_path(self) (L626)
- get_selected_files(self) (L631)
- navigate_to(self, path) (L636)
- refresh_view(self) (L641)
- show_status_message(self, text, timeout_ms) (L646)
- add_status_widget(self, widget) (L651)
- plugins_dir(self) (L659)
- config_dir(self) (L665)
- loaded_plugins(self) (L671)
- lifecycles(self) (L677)
- discover_from_directory(self) (L684)
- discover_from_entry_points(self, group) (L707)
- discover(self) (L729)
- load_plugin(self, plugin_id) (L744)
- load_all(self) (L836)
- unload_plugin(self, plugin_id) (L848)
- unload_all(self) (L891)
- disable_plugin(self, plugin_id) (L899)
- enable_plugin(self, plugin_id) (L912)
- _on_file_changed(self, plugin_id) (L922)
- _dispatch(self, hook, args, *kwargs) (L931)
- get_plugin(self, plugin_id) (L960)
- get_context(self, plugin_id) (L965)
- get_all_plugins(self) (L970)
- get_all_context_menu_actions(self, paths) (L975)
- get_all_toolbar_actions(self) (L994)
- notify_file_open(self, path) (L1010)
- get_preview_widget(self, path) (L1026)
- filter_search_results(self, query, results) (L1043)
- status_report(self) (L1060)
src/NexusExplorer/native/nexus_timestamp_touch.py¶
Module: Nexus Explorer — Forensic File Timestamp & Attribute Modifier (MACB Touch).
- class FileAttributeFlags (L24)
- class TimestampInfo (L37)
- class TimestampUpdateResult (L53)
- class TimestampTouchEngine (L61)
- get_file_metadata(cls, file_path) (L65)
- set_timestamps(cls, file_path, created_time, modified_time, accessed_time) (L94)
- _to_timestamp(val) (L106)
- _set_windows_timestamps(cls, path, created_ts, modified_ts, accessed_ts) (L134)
- set_attributes(cls, file_path, readonly, hidden, system, archive) (L193)
- touch_batch(cls, file_paths, created_time, modified_time, accessed_time) (L226)
src/NexusExplorer/native/nexus_transfer_monitor.py¶
Module: Transfer Monitor — non-modal window showing the live transfer queue.
- class _JobRow (L34)
- init(self, job_id, queue, parent) (L37)
- _describe(job) (L101)
- _refresh(self, job) (L114)
- _toggle_pause(self) (L160)
- _cancel(self) (L172)
- class TransferMonitorDialog (L179)
- init(self, queue, parent) (L182)
- _on_job_added(self, job_id) (L235)
- _on_progress(self, job_id, *_a) (L247)
- _tick(self) (L255)
- _update_summary(self) (L264)
- _clear_finished(self) (L281)
- open_for(self) (L293)
- cleanup(self) (L300)
- closeEvent(self, event) (L308)
src/NexusExplorer/native/nexus_transfer_queue.py¶
Module: Transfer queue for serialized file operations.
- class JobState (L36)
- class TransferJob (L48)
- human_bytes(n) (L72)
- fmt_eta(secs) (L91)
- class TransferQueue (L106)
- init(self, engine, parent, max_concurrent) (L116)
- max_concurrent(self) (L140)
- max_concurrent(self, value) (L146)
- is_busy(self) (L155)
- stop(self) (L160)
- enqueue(self, kind, sources, dest, permanent, priority, parent_widget) (L164)
- cancel(self, job_id) (L198)
- pause(self, job_id) (L232)
- resume(self, job_id) (L249)
- get_job(self, job_id) (L274)
- get_all_jobs(self) (L279)
- clear_finished(self) (L284)
- _try_start_next(self) (L316)
- _start_job(self, job) (L335)
- _start_job_ffi(self, job) (L347)
- on_progress(done_b, total_b, speed, eta, cur) (L355)
- on_started(handle) (L378)
- _conflict_hook(info) (L383)
- job_fn() (L390)
- class _Job (L407)
- run(self_inner) (L410)
- _start_job_python(self, job) (L430)
- _get_copy_target(target_path) (L432)
- run_transfer() (L449)
- class _PyJob (L738)
- run(self_inner) (L741)
- _finish(self, job, success, error) (L759)
- _finish_emit(self, job, success) (L778)
- _maybe_queue_empty(self) (L787)
- _refresh_running(self) (L795)
- _start_job_cli(self, job) (L807)
- on_ready() (L814)
- on_finished(code, _s) (L837)
src/NexusExplorer/native/nexus_undo.py¶
Module: Undo/redo stack for file operations.
- _safe_rmtree(path) (L34)
- class OpKind (L43)
- class UndoEntry (L55)
- init(self, kind, original, resulting, is_dir) (L58)
- undo(self) (L70)
- redo(self) (L76)
- repr(self) (L81)
- class RenameEntry (L88)
- init(self, original, resulting, is_dir) (L91)
- undo(self) (L96)
- redo(self) (L104)
- class MoveEntry (L113)
- init(self, original, resulting, is_dir) (L116)
- undo(self) (L121)
- redo(self) (L128)
- class CopyEntry (L138)
- init(self, original, resulting, is_dir) (L141)
- undo(self) (L146)
- redo(self) (L155)
- class DeleteEntry (L167)
- init(self, original, resulting, is_dir) (L170)
- undo(self) (L175)
- redo(self) (L187)
- class MkdirEntry (L198)
- init(self, original, created_parents) (L201)
- undo(self) (L207)
- redo(self) (L224)
- class CreateFileEntry (L232)
- init(self, original, content, created_parents) (L235)
- undo(self) (L242)
- redo(self) (L258)
- class BatchCreateEntry (L268)
- init(self, entries, label) (L271)
- undo(self) (L277)
- redo(self) (L288)
- class UndoStack (L300)
- init(self) (L305)
- len(self) (L315)
- bool(self) (L321)
- set_on_change(self, fn) (L327)
- _notify(self) (L332)
- record_rename(self, old, new) (L342)
- record_move(self, src, dst) (L352)
- record_copy(self, src, dst) (L362)
- record_delete(self, path, backup) (L372)
- record_mkdir(self, path, created_parents) (L382)
- record_create_file(self, path, content, created_parents) (L390)
- record_batch_create(self, entries, label) (L398)
- undo(self) (L410)
- redo(self) (L428)
- can_undo(self) (L446)
- can_redo(self) (L452)
- undo_description(self) (L458)
- redo_description(self) (L470)
- _push(self, entry) (L486)
src/NexusExplorer/native/nexus_unlocker.py¶
Module: Nexus Explorer — Process Unlocker & File Handle Inspector.
- class LockingProcessInfo (L53)
- class FileUnlocker (L65)
- get_locking_processes(cls, file_path) (L69)
- _query_restart_manager(cls, file_paths) (L84)
- _query_psutil_handles(cls, target_path) (L189)
- unlock_and_terminate(cls, pid, force) (L219)
src/NexusExplorer/native/par2_recovery.py¶
Module: Nexus Explorer — PAR2 (Parchive) Parity Checksum & Packet Integrity Engine.
- class Par2FileInfo (L20)
- class Par2PacketInfo (L31)
- class Par2ValidationReport (L41)
- class Par2RecoveryEngine (L56)
- inspect_par2_file(cls, par2_path) (L62)
src/NexusExplorer/native/usn_journal_scanner.py¶
Module: Nexus Explorer — NTFS USN (Update Sequence Number) Change Journal Scanner.
- class UsnJournalStatus (L21)
- class USN_JOURNAL_DATA_V0 (L38)
- class UsnJournalScanner (L52)
- query_volume_journal(cls, drive_letter) (L64)
src/NexusExplorer/test_explorer.py¶
Module: NexusExplorer comprehensive offscreen smoke test.
- run_smoke_test() (L12)
- test(name, fn) (L36)
src/NexusExplorer/tests/benchmarks.py¶
Module: Performance benchmarks for NexusExplorer core operations.
- _create_test_tree(root, depth, files_per_dir, file_size) (L19)
- _cleanup_tree(root) (L30)
- class BenchmarkTimer (L36)
- init(self, name) (L39)
- enter(self) (L45)
- exit(self, *args) (L50)
- repr(self) (L54)
- class TestDirectoryListing (L63)
- setup(self, tmp_path) (L67)
- test_list_small_dir(self) (L75)
- test_list_medium_dir(self) (L83)
- test_scandir_small(self) (L95)
- class TestFileOperations (L109)
- setup(self, tmp_path) (L113)
- test_copy_files(self) (L125)
- test_move_files(self) (L135)
- test_delete_files(self) (L150)
- class TestSearch (L166)
- setup(self, tmp_path) (L170)
- test_glob_search(self) (L178)
- test_name_contains_search(self) (L185)
- class TestHashing (L197)
- setup(self, tmp_path) (L201)
- test_xxh3_hash(self) (L208)
- test_sha256_hash(self) (L223)
src/NexusExplorer/tests/native/test_ffi_bridge.py¶
Module: Stage-1 tests: ctypes FFI bridge (nexus_ffi.NexusFfi) contract.
- ffi() (L27)
- tree(tmp_path) (L35)
- test_dll_discovery_paths() (L45)
- test_version_nonempty(ffi) (L50)
- test_read_dir_sync_rows(tree, ffi) (L56)
- test_read_dir_sync_missing_dir_raises(ffi) (L68)
- test_get_drives(ffi) (L74)
- test_home_dir(ffi) (L83)
- test_search_finds_seeded(ffi) (L89)
- test_cancel_search_after_completion_is_safe(ffi, tmp_path) (L108)
- test_rename_roundtrip(ffi, tmp_path) (L115)
- test_create_folder(ffi, tmp_path) (L123)
- test_read_text_file_content_and_truncation(ffi, tmp_path) (L129)
- test_close_idempotent() (L139)
src/NexusExplorer/tests/native/test_journal.py¶
Module: Stage-2b tests: job journal + orphan .nexuspart discovery.
- data_dir(tmp_path, monkeypatch) (L25)
- ffi() (L34)
- _journal_lines(data_dir) (L41)
- test_journal_records_lifecycle(data_dir, ffi, tmp_path) (L48)
- test_orphans_detects_interrupted_and_ignores_completed(data_dir, ffi, tmp_path) (L68)
- test_orphan_scan_tolerates_missing_journal(ffi) (L107)
src/NexusExplorer/tests/native/test_mouse_interactions.py¶
Module: Regression tests for the mouse-interaction incident (2026-08-25):
- qapp() (L26)
- class _FakeMenu (L32)
- init(self, parent) (L37)
- last_root_for(cls, widget) (L44)
- addAction(self, text_or_action, slot) (L49)
- addSeparator(self) (L57)
- addMenu(self, title) (L61)
- exec(self, _a, *_k) (L67)
- widget(qapp, tmp_path_factory) (L73)
- _select_first_data_row(w) (L99)
- test_selected_paths_are_strings(widget) (L107)
- test_context_menu_handles_dict_selection(qapp, widget, monkeypatch) (L116)
- test_context_menu_empty_selection(qapp, widget, monkeypatch) (L130)
- class _FakeMousePress (L142)
- init(self, button) (L144)
- type(self) (L151)
- button(self) (L155)
- test_mouse_side_buttons_route_history(widget, qapp, tmp_path_factory) (L160)
- test_show_properties_accepts_dict_and_str(widget, monkeypatch) (L197)
- class _FakeDlg (L202)
- init(self, row, parent) (L204)
- exec(self) (L208)
src/NexusExplorer/tests/native/test_nested_creation.py¶
Module: Tests for NexusExplorer nested folder, nested file, batch scaffolding, and undo/redo.
- test_create_nested_folder() (L27)
- test_create_nested_file() (L41)
- test_scaffold_hierarchy_indented() (L54)
- test_scaffold_hierarchy_path_list() (L79)
- test_scaffold_presets() (L95)
- test_undo_redo_create_file() (L107)
- test_undo_redo_batch_create() (L128)
- test_dialogs_construction() (L152)
src/NexusExplorer/tests/native/test_stage0.py¶
Module: Stage-0 unit tests for the NexusExplorer native Python layer.
- class TestFormatters (L27)
- test_human_bytes_scale(self) (L29)
- test_fmt_ms_empty(self) (L38)
- test_find_cli_locates_built_binary() (L44)
- class TestOpenWithQuotingRegression (L50)
- test_open_with_uses_argument_list(self, monkeypatch) (L53)
- fake_popen(args, **kwargs) (L61)
- class TestCliJsonContract (L87)
- hostile_dir(self) (L91)
- test_list_json_round_trip(self, hostile_dir) (L99)
- test_list_json_consumer_keys(self, hostile_dir) (L115)
src/NexusExplorer/tests/native/test_transfer_monitor.py¶
Module: Stage-2b UI: Transfer Monitor window + FFI-backed queue integration.
- qapp() (L28)
- env(qapp, tmp_path, monkeypatch) (L35)
- _pump(qapp, secs) (L81)
- test_monitor_opens_and_completes_copy(env, qapp) (L89)
- test_pause_resume_cancel_through_monitor(env, qapp) (L119)
- test_cancel_mid_copy(env, qapp) (L158)
src/NexusExplorer/tests/native/test_transfers_ffi.py¶
Module: Stage-2 tests: end-to-end FFI transfers (copy/move/delete/pause/conflicts).
- ffi() (L27)
- dirs(tmp_path) (L35)
- _payload(n, byte) (L44)
- class TestBasicTransfers (L49)
- test_copy_multi_unicode(self, ffi, dirs) (L51)
- test_move_removes_source(self, ffi, dirs) (L62)
- test_delete_permanent(self, ffi, dirs) (L72)
- test_delete_to_trash(self, ffi, dirs) (L81)
- _run_with_policy(ffi, src_file, dst_dir, policy) (L91)
- on_conflict(_ud, _j, cid, s, d, ss, ds, sm, dm, is_dir) (L99)
- class TestConflictPolicies (L124)
- test_overwrite_replaces_content(self, ffi, dirs) (L126)
- test_skip_preserves_destination(self, ffi, dirs) (L136)
- test_keep_both_creates_sibling(self, ffi, dirs) (L145)
- class TestPauseResumeCancel (L157)
- big_src(self, tmp_path_factory) (L160)
- _copy_big_with_control(self, ffi, big_src, dst_dir, action) (L170)
- on_progress(_ud, _j, db, tb, sp, eta, cur) (L181)
- on_complete(_ud, _j, s, e) (L190)
- test_pause_resume_completes(self, ffi, big_src, tmp_path) (L207)
- act(holder, _db) (L213)
- test_cancel_reports_not_ok(self, ffi, big_src, tmp_path) (L227)
- act(holder, _db) (L233)
src/NexusExplorer/tests/native/test_transport_parity.py¶
Module: Stage-1 transport parity: nexus-cli.exe subprocess vs ctypes NexusFfi bridge.
- _norm(path) (L48)
- _cli_run(cli, args) (L53)
- _cli_list(cli, path) (L66)
- _cli_search(cli, root, query, limit) (L71)
- _cli_drives(cli) (L82)
- _make_tree(root) (L87)
- ffi() (L106)
- parity_tree() (L124)
- cli() (L133)
- class TestTransportParity (L141)
- test_parity_list_names_and_meta(self, cli, ffi, parity_tree) (L143)
- test_parity_search(self, cli, ffi, parity_tree) (L181)
- test_parity_drives(self, cli, ffi) (L201)
- letters(rows) (L215)
src/NexusExplorer/tests/native/test_ui_state.py¶
Module: Stage-1 tests: incremental model diffing + session persistence round-trip.
- qapp() (L25)
- _row(name, size, is_dir, mtime) (L31)
- class TestUpdateRowsIncremental (L43)
- test_diff_removes_adds_modifies(self, qapp) (L45)
- test_empty_then_populate(self, qapp) (L66)
- class TestSessionRoundTrip (L77)
- test_tabs_and_view_mode_persist(self, qapp, tmp_path) (L79)
tests — 103 files¶
tests/init.py¶
Module: Tests for Cortex Cleaner.
tests/conftest.py¶
Module: Global pytest fixtures and test environment configuration.
- temp_dir(tmp_path) (L10)
- test_env(temp_dir) (L15)
- clean_config() (L38)
tests/test_advanced_disk_analyzer.py¶
Module: Tests for cortex_unified.analyzers.advanced_disk_analyzer.
- class TestFileEntry (L32)
- test_default_values(self) (L34)
- test_cloud_provider_field(self) (L55)
- test_is_dir_flag(self) (L71)
- class TestFolderNode (L90)
- test_empty_node(self) (L92)
- test_add_single_file(self) (L101)
- test_add_file_in_subdirectory(self) (L110)
- test_add_multiple_files_accumulates_sizes(self) (L122)
- test_add_file_with_empty_relpath(self) (L133)
- test_add_file_root_only_parts(self) (L140)
- test_top_extensions_sorted_desc(self) (L147)
- test_top_extensions_limit(self) (L158)
- class TestFolderNodeTreemap (L173)
- test_single_file_produces_root_entry(self) (L175)
- test_children_listed_in_parent(self) (L185)
- test_max_depth_truncation(self) (L195)
- test_file_count_and_folder_count(self) (L203)
- class TestFolderNodeSunburst (L220)
- test_root_has_empty_parent(self) (L222)
- test_child_references_parent_path(self) (L231)
- test_max_depth_truncation(self) (L240)
- test_value_matches_size(self) (L248)
- class TestFolderNodeBarChart (L262)
- test_excludes_root_from_bar(self) (L264)
- test_top_n_limit(self) (L271)
- test_sorted_largest_first(self) (L280)
- test_bar_chart_with_no_children(self) (L290)
- class TestCloudScanner (L303)
- test_default_providers(self) (L305)
- test_custom_providers(self) (L312)
- test_scan_local_path_no_colon_skips(self) (L317)
- test_rclone_not_available_yields_nothing(self, monkeypatch) (L324)
- class TestAdvancedDiskAnalyzerInit (L340)
- test_default_init(self) (L342)
- test_custom_cancel_event(self) (L349)
- test_progress_callback_stored(self) (L355)
- test_include_cloud_false_uses_local_scanner(self) (L361)
- test_include_cloud_true_without_deps_uses_local(self) (L366)
- class TestBuildTree (L382)
- test_build_tree_from_entries(self) (L384)
- test_build_tree_skips_directories(self) (L398)
- test_build_tree_handles_missing_extension(self) (L409)
- test_build_tree_nested_paths(self) (L418)
- test_size_accuracy_sum_matches(self) (L432)
- class TestGetVisualizations (L450)
- test_returns_empty_dict_before_build(self) (L452)
- test_returns_all_keys_after_build(self) (L458)
- test_total_size_matches_tree(self) (L474)
- test_extension_breakdown_is_dict(self) (L485)
- class TestGetStats (L504)
- test_initial_stats_are_zero(self) (L506)
- test_stats_after_manual_scan_increment(self) (L513)
- class TestScanRealDirectory (L528)
- test_scan_finds_files(self, tmp_path) (L530)
- test_scan_builds_correct_tree(self, tmp_path) (L545)
- test_scan_respects_cancellation(self, tmp_path) (L560)
- _cancel_on_progress(files, bytez, path) (L567)
- test_scan_cancelled_before_start(self, tmp_path) (L578)
- test_scan_progress_callback(self, tmp_path) (L587)
- capture(files, bytez, path) (L594)
- test_scan_progress_callback_fires_at_interval(self, tmp_path) (L606)
- class TestScanSync (L622)
- _scan_and_build(self, root, **kwargs) (L624)
- test_returns_entries_and_tree(self, tmp_path) (L632)
- test_real_scan_sync(self, tmp_path) (L640)
- test_collects_all_files(self, tmp_path) (L648)
- test_with_progress_cb(self, tmp_path) (L660)
- class TestScannerBaseHelpers (L675)
- test_check_cancel_default_not_set(self) (L677)
- test_check_cancel_when_set(self) (L682)
- test_report_increments_counter(self) (L689)
- test_report_calls_callback_at_interval(self) (L695)
- test_report_does_not_call_below_interval(self) (L706)
tests/test_apex_power_tools.py¶
Module: Unit tests for the 10 Apex Enterprise Power Tools and Forensic Modules.
- test_file_signature_sniffer(tmp_path) (L19)
- test_binary_differ(tmp_path) (L36)
- test_usn_journal_scanner() (L52)
- test_par2_recovery(tmp_path) (L61)
- test_image_optimizer(tmp_path) (L77)
- test_driver_store_cleaner() (L93)
- test_power_plan_optimizer() (L103)
- test_shellbags_privacy_cleaner() (L110)
- test_hosts_file_manager(tmp_path) (L120)
- test_notification_cleaner() (L145)
tests/test_app_updater.py¶
Module: Tests for the Software Updater (winget wrapper).
- class TestParser (L24)
- test_parses_all_rows(self) (L26)
- test_fields_extracted(self) (L32)
- test_handles_unknown_version(self) (L41)
- test_skips_spinner_and_footer(self) (L47)
- test_empty_or_garbage_returns_empty(self) (L53)
- test_to_dict(self) (L58)
- class TestCapability (L65)
- test_is_available_returns_bool(self) (L67)
- test_upgrade_requires_id(self) (L71)
tests/test_audio_duplicate_finder.py¶
Module: Tests for Chromaprint-inspired audio duplicate detection.
- _make_wav(path, freq, duration, sr) (L19)
- _make_noise_wav(path, duration, sr) (L33)
- test_fingerprint_is_list_of_ints(tmp_path) (L48)
- test_identical_wavs_compare_high(tmp_path) (L58)
- test_different_tones_compare_low(tmp_path) (L69)
- test_audio_compare_empty() (L85)
- test_finder_groups_identical_audio(tmp_path) (L93)
- test_finder_excludes_non_audio(tmp_path) (L111)
- test_finder_respects_exclude_dirs(tmp_path) (L120)
- test_finder_stats(tmp_path) (L138)
- test_fallback_raw_fingerprint_for_mp3(tmp_path) (L149)
tests/test_boot_performance.py¶
Module: Tests for boot-performance analysis (parsing Windows' own diagnostics).
- class TestParse (L16)
- test_empty(self) (L18)
- test_parses_boots_and_issues(self) (L24)
- test_single_object_not_list(self) (L44)
- test_nameless_issue_skipped(self) (L53)
- test_bad_numbers_coerce_zero(self) (L59)
- class TestDataclasses (L66)
- test_boot_seconds(self) (L68)
- test_issue_to_dict(self) (L72)
- class TestSupport (L79)
- test_is_supported_matches_platform(self) (L81)
- test_analyze_shape(self) (L85)
tests/test_browser_cleaner.py¶
Module: Tests for :mod:cortex_unified.system_tools.browser_cleaner.
- _make_sqlite(path, table, rows, populate) (L30)
- _make_cache_dir(base, category, count, file_size) (L59)
- _make_chromium_profile(root, browser) (L70)
- _make_firefox_profile(base) (L107)
- fake_chromium_home(tmp_path, monkeypatch) (L144)
- fake_firefox_home(tmp_path, monkeypatch) (L155)
- fake_multi_browser(tmp_path, monkeypatch) (L167)
- class TestDeepBrowserCleanerInit (L187)
- test_default_init(self) (L189)
- test_keep_cookies_compiled(self) (L198)
- test_progress_callback_stored(self) (L204)
- test_custom_cancel_event(self) (L211)
- test_expert_mode_default_off(self) (L218)
- class TestProfileDiscovery (L228)
- test_chromium_discovers_default_profile(self, fake_chromium_home) (L230)
- test_chromium_skips_nonexistent_root(self, fake_chromium_home, monkeypatch) (L236)
- test_firefox_discovers_profile(self, fake_firefox_home) (L241)
- test_firefox_profiles_ini_parsing(self, fake_firefox_home, monkeypatch) (L247)
- test_firefox_absolute_profile_in_ini(self, fake_firefox_home, tmp_path) (L264)
- class TestCookieCleaning (L281)
- test_delete_non_matching_cookies(self, fake_chromium_home) (L283)
- test_keep_all_matching_cookies(self, fake_chromium_home) (L299)
- test_missing_db_returns_zero(self, fake_chromium_home) (L312)
- test_keep_list_regex_case_insensitive(self, fake_chromium_home) (L319)
- test_empty_keep_list_deletes_all(self, fake_chromium_home) (L331)
- class TestClean (L350)
- test_clean_removes_file(self, tmp_path) (L352)
- test_clean_removes_directory(self, tmp_path) (L361)
- test_clean_multiple_paths(self, tmp_path) (L371)
- test_clean_missing_path_handled_gracefully(self, tmp_path) (L381)
- test_clean_shred_overwrites(self, tmp_path) (L390)
- test_clean_respects_cancel(self, tmp_path) (L399)
- test_clean_progress_callback(self, tmp_path) (L410)
- test_clean_permission_error(self, tmp_path) (L419)
- class TestVacuum (L440)
- test_vacuum_runs_without_error(self, tmp_path) (L442)
- test_vacuum_missing_db_no_crash(self, tmp_path) (L454)
- test_vacuum_progress_callback(self, tmp_path) (L461)
- test_vacuum_multiple_dbs(self, tmp_path) (L469)
- class TestBrowserDetection (L485)
- test_scan_chromium_profile(self, fake_chromium_home) (L487)
- test_scan_firefox_profile(self, fake_firefox_home) (L499)
- test_all_browsers_detected(self, fake_multi_browser) (L511)
- test_firefox_browser_label(self, fake_firefox_home) (L520)
- test_vivaldi_not_in_scope(self, fake_multi_browser) (L527)
- class TestProgressCallback (L540)
- test_progress_called_during_clean(self, tmp_path) (L542)
- test_progress_called_during_vacuum(self, tmp_path) (L551)
- class TestCancellation (L565)
- test_cancel_stops_scan(self, fake_chromium_home) (L567)
- test_cancel_stops_clean(self, tmp_path) (L575)
- test_default_cancel_not_set(self) (L586)
- test_cancel_event_prevents_scan_iteration(self, fake_chromium_home) (L591)
- interrupting_scan() (L598)
- class TestExpertMode (L613)
- test_passwords_excluded_by_default(self, fake_chromium_home) (L615)
- test_passwords_included_with_expert_mode(self, fake_chromium_home) (L625)
- test_forms_always_included(self, fake_chromium_home) (L637)
- test_passwords_risk_is_high(self, fake_chromium_home) (L647)
- class TestSizeCalculation (L665)
- test_file_size_reported(self, tmp_path) (L667)
- test_directory_size_summed(self, tmp_path) (L674)
- test_scan_returns_sizes(self, fake_chromium_home) (L683)
- test_nonexistent_profile_returns_empty(self, tmp_path) (L690)
- test_cleanable_dataclass_fields(self, tmp_path) (L696)
- test_zero_size_item(self) (L708)
- class TestScanIntegration (L719)
- test_scan_returns_list(self, fake_chromium_home) (L721)
- test_all_items_are_cleanable(self, fake_chromium_home) (L728)
- test_no_duplicate_paths_in_scan(self, fake_chromium_home) (L735)
- test_cookie_risk_medium(self, fake_chromium_home) (L742)
- test_cache_risk_low(self, fake_chromium_home) (L749)
- test_vacuumable_items_flagged(self, fake_chromium_home) (L760)
tests/test_browser_extensions.py¶
Module: Tests for the read-only browser-extension auditor.
- class TestPermissionRisk (L23)
- test_broad_permissions_flagged(self) (L25)
- test_narrow_permissions_not_flagged(self) (L30)
- test_to_dict_includes_flag(self) (L35)
- _make_chrome_ext(base, browser_parts, ext_id, manifest) (L43)
- fake_home(tmp_path, monkeypatch) (L51)
- class TestChromiumScan (L64)
- test_finds_extension_with_permissions(self, fake_home) (L66)
- test_host_permissions_merged(self, fake_home) (L81)
- test_no_browsers_returns_empty(self, tmp_path, monkeypatch) (L92)
- test_bad_manifest_skipped(self, fake_home) (L99)
- class TestAuditNeverRaises (L111)
- test_audit_returns_list(self) (L113)
tests/test_cli.py¶
Module: Tests for the Cortex Workstation CLI commands.
- test_cli_help() (L6)
- test_cli_version() (L13)
- test_cli_clean_empty_help() (L20)
tests/test_cli_leftovers.py¶
Module: Tests for the cortex leftovers command group (engine CLI).
- fake_scan(monkeypatch) (L19)
- _make(findings) (L23)
- class FakeScanner (L25)
- init(self, a, *k) (L27)
- scan_app(self, app) (L31)
- scan_orphans(self) (L36)
- class TestLeftoversScan (L46)
- test_scan_json_emits_dicts(self, fake_scan) (L48)
- test_scan_human_output_shows_confidence(self, fake_scan) (L62)
- test_scan_clean_system_reports_nothing(self, fake_scan) (L73)
- class TestLeftoversClean (L81)
- test_dry_run_is_default_and_deletes_nothing(self, fake_scan, tmp_path) (L83)
- test_min_level_filters_questionable_by_default(self, fake_scan, tmp_path) (L95)
- test_apply_recycles_and_reports_freed_bytes(self, fake_scan, tmp_path, monkeypatch) (L116)
- class FakeCleaner (L127)
- clean(self, models, create_restore_point) (L129)
- test_apply_failure_exits_nonzero(self, fake_scan, tmp_path, monkeypatch) (L142)
- class FailingCleaner (L151)
- clean(self, models, create_restore_point) (L153)
- class TestLeftoversOrphans (L166)
- test_orphans_lists_findings(self, fake_scan) (L168)
tests/test_cloud_aware_scan.py¶
Module: Cloud-placeholder / reparse-point awareness in the scan engine.
- _mark_as_online(path) (L28)
- cloud_attrs(monkeypatch) (L34)
- test_dehydrated_detects_all_recall_flags() (L44)
- test_cloud_tag_covers_the_provider_range() (L55)
- test_junction_is_distinct_from_symlink() (L63)
- test_attribute_readers_tolerate_a_posix_stat(tmp_path) (L69)
- test_describe_explains_special_entries() (L79)
- test_placeholder_entry_reclaims_nothing() (L88)
- test_measured_on_disk_size_wins_over_logical() (L96)
- test_to_dict_reports_cloud_state() (L105)
- test_walker_skips_placeholders_and_reports_the_omission(tmp_path, cloud_attrs) (L114)
- test_placeholders_can_be_included_on_request(tmp_path, cloud_attrs) (L132)
- test_find_empty_never_offers_a_placeholder_for_deletion(tmp_path, cloud_attrs) (L146)
- test_walker_still_reports_plain_trees_unchanged(tmp_path) (L161)
- test_on_disk_size_for_a_plain_file(tmp_path) (L176)
- test_on_disk_size_falls_back_when_the_path_is_gone() (L183)
- test_shredder_refuses_to_overwrite_a_placeholder(tmp_path, monkeypatch) (L190)
tests/test_compact_os.py¶
Module: Tests for NTFS CompactOS / compaction estimation logic.
- _write_text(folder, name, size_kb) (L22)
- _write_fill(folder, name, size_kb) (L29)
- test_is_supported_reflects_platform() (L38)
- test_system_folder_names_are_blocked() (L44)
- test_estimate_text_heavy_folder(tmp_path) (L55)
- test_estimate_incompressible_folder(tmp_path) (L67)
- test_find_compressible_folders_respects_min_size(tmp_path) (L77)
- test_find_skips_blocked_and_system_subfolders(tmp_path) (L94)
- test_compact_folder_refuses_system_tree(tmp_path) (L106)
- test_compact_folder_refuses_drive_root(tmp_path) (L115)
tests/test_component_store.py¶
Module: Component store (WinSxS) analysis, cleanup and leftover inventory.
- test_parses_windows_own_figures() (L89)
- test_reclaimable_estimate_excludes_shared_bytes() (L103)
- test_explains_the_explorer_size_gap() (L111)
- test_no_cleanup_needed_is_stated_plainly() (L121)
- test_dism_error_is_surfaced_with_its_code() (L130)
- test_unreadable_report_yields_zero_not_a_guess() (L137)
- test_analysis_to_dict_is_json_ready() (L145)
- test_unsupported_platform_is_reported(monkeypatch) (L154)
- test_windows_managed_items_are_never_removable_here(tmp_path) (L168)
- test_safe_and_rollback_items_are_removable(tmp_path) (L180)
- test_rollback_window_is_computed_from_age(tmp_path) (L187)
- test_real_leftover_scan_is_readonly_and_sorted() (L201)
- test_winsxs_size_comes_from_dism_not_a_folder_walk() (L215)
- test_installer_cache_is_flagged_managed_when_present() (L233)
- test_leftover_scan_is_cancellable(tmp_path, monkeypatch) (L241)
- test_cleanup_refuses_without_administrator(monkeypatch) (L255)
- _boom(_a, *_k) (L260)
- test_cleanup_reports_measured_delta(monkeypatch) (L272)
- _fake_dism(args, timeout, cancel_event) (L278)
- test_reset_base_is_passed_only_when_requested(monkeypatch) (L299)
- _fake_dism(args, timeout, cancel_event) (L305)
- test_cleanup_is_honest_when_nothing_shrank(monkeypatch) (L321)
- test_cleanup_failure_explains_pending_servicing(monkeypatch) (L336)
- test_decode_handles_dism_utf16_output() (L351)
- test_dir_size_never_raises_on_unreadable_paths(tmp_path) (L358)
tests/test_config.py¶
Module: Tests for the Cortex Workstation configuration loader.
- test_config_initialization_defaults() (L8)
- test_config_loading_from_file(temp_dir) (L14)
tests/test_config_defaults_unified.py¶
Module: The two config implementations must agree on safety-critical defaults.
- test_scan_defaults_match_the_legacy_baseline() (L29)
- test_editor_state_directories_are_protected() (L39)
- test_v2_defaults_do_not_alias_the_shared_constant() (L48)
- test_legacy_config_does_not_alias_the_shared_constant() (L59)
- test_both_configs_expose_the_same_flat_accessors() (L67)
tests/test_config_legacy_loading.py¶
Module: Failure-reporting contracts for the legacy YAML config loader.
- test_missing_file_is_silent_and_yields_defaults(tmp_path, caplog) (L20)
- test_valid_yaml_is_loaded_over_the_defaults(tmp_path) (L29)
- test_malformed_yaml_warns_and_falls_back(tmp_path, caplog) (L40)
- test_non_mapping_top_level_warns_and_falls_back(tmp_path, caplog) (L50)
- test_empty_file_is_treated_as_no_settings(tmp_path, caplog) (L60)
- test_non_utf8_bytes_warn_and_fall_back(tmp_path, caplog) (L70)
- test_unicode_paths_load_correctly(tmp_path) (L81)
- test_protected_directories_are_excluded_by_default(tmp_path, name) (L100)
- test_defaults_are_the_baseline_when_no_file_exists(tmp_path) (L109)
- test_defaults_still_apply_when_the_file_is_broken(tmp_path, caplog) (L117)
- test_user_settings_override_defaults_key_by_key(tmp_path) (L127)
- test_config_data_is_mutable_without_corrupting_other_instances(tmp_path) (L140)
tests/test_config_v2.py¶
Module: Tests for the new Pydantic-based configuration system.
- class TestScanConfig (L24)
- test_default_values(self) (L27)
- test_min_age_validation(self) (L37)
- test_max_depth_validation(self) (L51)
- class TestPerformanceConfig (L66)
- test_thread_clamping(self) (L69)
- test_chunk_size_validation(self) (L80)
- class TestSecurityConfig (L95)
- test_default_action_validation(self) (L98)
- test_shred_passes_validation(self) (L110)
- class TestLoggingConfig (L125)
- test_log_level_validation(self) (L128)
- class TestConfig (L139)
- test_default_initialization(self) (L142)
- test_nested_configuration(self) (L152)
- test_environment_variable_override(self) (L164)
- test_yaml_loading(self, tmp_path) (L180)
- test_save_to_yaml(self, tmp_path) (L207)
- test_backward_compatibility_properties(self) (L224)
- test_matches_exclude_patterns(self) (L242)
- test_validation_error_messages(self) (L268)
- class TestCreateDefaultConfig (L278)
- test_creates_config_file(self, tmp_path) (L281)
- class TestConfigPropertyBased (L302)
- test_min_age_days_always_valid_in_range(self, days) (L306)
- test_thread_count_always_clamped(self, threads) (L312)
- test_exclude_patterns_accept_any_string(self, pattern) (L318)
- class TestConfigIntegration (L328)
- test_full_workflow(self, tmp_path) (L331)
- test_environment_overrides_yaml(self, tmp_path) (L356)
tests/test_content_defined_chunker.py¶
Module: Tests for FastCDC / VectorCDC content-defined chunking.
- test_gear_chunk_deterministic() (L20)
- test_gear_chunk_shift_resistant() (L30)
- test_gear_chunk_empty() (L44)
- test_gear_chunk_invalid_params() (L49)
- test_jaccard_basic() (L55)
- test_chunk_similarity_identical_is_one() (L63)
- test_chunk_similarity_different_is_low() (L69)
- test_file_chunks_reads_file(tmp_path) (L76)
- test_file_chunks_missing_raises(tmp_path) (L85)
- test_finder_groups_shifted_duplicates(tmp_path) (L93)
- test_finder_excludes_non_eligible_or_empty(tmp_path) (L115)
- test_finder_respects_exclude_dirs(tmp_path) (L123)
- test_finder_stats(tmp_path) (L142)
- test_vector_cdc_chunk_produces_valid_chunks() (L154)
- test_idea_inverted_index() (L164)
tests/test_core_proc.py¶
Module: Cancellable, tree-safe subprocess execution (core.proc).
- test_normal_completion_returns_output() (L25)
- test_nonzero_exit_is_reported_not_raised() (L33)
- test_real_timeout_raises_and_is_prompt() (L40)
- test_cancel_event_raises_and_is_prompt() (L53)
- _cancel_soon() (L59)
- test_cancel_takes_priority_even_with_a_long_timeout() (L72)
- test_timeout_kills_the_whole_process_tree(tmp_path) (L84)
- test_process_cancelled_is_a_subprocess_error() (L112)
- test_run_never_leaves_output_unread_on_success() (L118)
- test_text_mode_decodes_output() (L126)
- test_missing_executable_raises_oserror() (L134)
tests/test_czkawka_tools.py¶
Module: Tests for czkawka multi-tool suite — empty, broken, bad-ext, bad-names, exif, temp, video-optimizer.
- _touch_empty(path) (L41)
- _touch_file(path, content) (L48)
- _make_minimal_png(path) (L55)
- _chunk(ctype, data) (L62)
- _make_minimal_jpg(path) (L76)
- _make_minimal_pdf(path) (L83)
- _make_minimal_zip(path) (L90)
- class TestEmptyFinder (L103)
- test_finds_empty_files(self, tmp_path) (L105)
- test_finds_empty_dirs(self, tmp_path) (L114)
- test_returns_empty_when_nothing_empty(self, tmp_path) (L126)
- test_scanned_count(self, tmp_path) (L134)
- test_duration_is_non_negative(self, tmp_path) (L142)
- test_cancel_stops_early(self, tmp_path) (L148)
- test_progress_callback_invoked(self, tmp_path) (L156)
- test_exclude_dirs(self, tmp_path) (L164)
- test_nested_empty_files(self, tmp_path) (L177)
- class TestInvalidSymlinkFinder (L192)
- test_finds_broken_symlink(self, tmp_path) (L194)
- test_ignores_valid_symlink(self, tmp_path) (L202)
- test_empty_when_no_symlinks(self, tmp_path) (L211)
- test_scanned_count(self, tmp_path) (L218)
- test_relative_symlink_broken(self, tmp_path) (L229)
- test_relative_symlink_valid(self, tmp_path) (L236)
- test_cancel_stops_early(self, tmp_path) (L245)
- test_exclude_dirs(self, tmp_path) (L253)
- class TestBrokenFileFinder (L270)
- test_finds_corrupted_zip(self, tmp_path) (L272)
- test_ignores_valid_zip(self, tmp_path) (L279)
- test_finds_bad_pdf(self, tmp_path) (L286)
- test_ignores_valid_pdf(self, tmp_path) (L293)
- test_finds_corrupted_png(self, tmp_path) (L300)
- test_ignores_valid_png(self, tmp_path) (L310)
- test_ignores_non_supported_extension(self, tmp_path) (L317)
- test_empty_returns_nothing(self, tmp_path) (L324)
- test_cancel_stops_early(self, tmp_path) (L329)
- test_exclude_dirs(self, tmp_path) (L337)
- class TestBadExtensionFinder (L354)
- test_finds_png_with_wrong_ext(self, tmp_path) (L356)
- test_finds_jpg_with_wrong_ext(self, tmp_path) (L366)
- test_ignores_correct_extension(self, tmp_path) (L374)
- test_ignores_extensionless_files(self, tmp_path) (L381)
- test_allows_jpg_jpeg_alias(self, tmp_path) (L388)
- test_empty_dir(self, tmp_path) (L395)
- test_cancel_stops_early(self, tmp_path) (L400)
- test_exclude_dirs(self, tmp_path) (L409)
- class TestBadNamesFinder (L427)
- test_finds_control_chars(self, tmp_path) (L432)
- test_finds_windows_reserved_chars(self, tmp_path) (L442)
- test_finds_leading_space(self, tmp_path) (L451)
- test_finds_trailing_space(self, tmp_path) (L459)
- test_finds_trailing_dot(self, tmp_path) (L467)
- test_finds_reserved_windows_names(self, tmp_path) (L474)
- test_ignores_good_names(self, tmp_path) (L488)
- test_finds_bad_dir_names(self, tmp_path) (L498)
- test_cancel_stops_early(self, tmp_path) (L505)
- test_exclude_dirs(self, tmp_path) (L517)
- class TestExifCleaner (L535)
- test_scan_finds_exif_if_pil_available(self, tmp_path) (L537)
- test_scan_skips_non_image_files(self, tmp_path) (L551)
- test_scan_empty_dir(self, tmp_path) (L558)
- test_strip_returns_dict_for_empty_list(self, tmp_path) (L564)
- test_cancel_stops_scan_early(self, tmp_path) (L570)
- test_exclude_dirs(self, tmp_path) (L578)
- class TestTempFileFinder (L596)
- test_finds_tmp_extension(self, tmp_path) (L598)
- test_finds_temp_extension(self, tmp_path) (L607)
- test_finds_log_files(self, tmp_path) (L613)
- test_finds_bak_files(self, tmp_path) (L619)
- test_finds_old_files(self, tmp_path) (L625)
- test_finds_swap_files(self, tmp_path) (L631)
- test_finds_tilde_backup_files(self, tmp_path) (L640)
- test_finds_thumbs_db(self, tmp_path) (L646)
- test_finds_ds_store(self, tmp_path) (L652)
- test_finds_desktop_ini(self, tmp_path) (L658)
- test_finds_dmp_files(self, tmp_path) (L664)
- test_ignores_normal_files(self, tmp_path) (L670)
- test_empty_dir(self, tmp_path) (L676)
- test_cancel_stops_early(self, tmp_path) (L681)
- test_exclude_dirs(self, tmp_path) (L689)
- test_lock_files(self, tmp_path) (L700)
- test_finds_nested_temp_files(self, tmp_path) (L706)
- class TestVideoOptimizer (L718)
- test_find_static_borders_returns_none_on_missing_ffprobe(self, tmp_path) (L720)
- test_find_static_borders_returns_none_on_nonzero_exit(self, tmp_path) (L729)
- test_find_static_borders_parses_json(self, tmp_path) (L739)
- test_optimize_returns_false_on_ffmpeg_error(self, tmp_path) (L770)
- test_optimize_returns_false_on_exception(self, tmp_path) (L780)
- test_video_info_dataclass(self) (L789)
- class TestSniffExtension (L811)
- test_sniff_png(self, tmp_path) (L813)
- test_sniff_jpg(self, tmp_path) (L818)
- test_sniff_pdf(self, tmp_path) (L823)
- test_sniff_zip(self, tmp_path) (L828)
- test_sniff_unknown_returns_none(self, tmp_path) (L833)
- class TestExports (L845)
- test_all_exports_present(self) (L847)
- test_magic_headers_completeness(self) (L868)
tests/test_defender.py¶
Module: Tests for the Windows Defender status reader (parsing + gating).
- class TestStatusParse (L12)
- test_empty(self) (L14)
- test_healthy(self) (L19)
- test_unhealthy_old_signatures(self) (L32)
- test_unhealthy_rtp_off(self) (L39)
- test_list_payload(self) (L44)
- test_wmi_date(self) (L49)
- class TestThreatsParse (L56)
- test_empty(self) (L58)
- test_single_and_list(self) (L62)
- test_threat_fields(self) (L69)
- class TestDataclassAndSupport (L77)
- test_to_dict(self) (L79)
- test_is_supported(self) (L87)
- test_status_never_raises(self) (L91)
tests/test_deleter.py¶
Module: Tests for the safe Deleter component and dry-run safety modes.
- test_deleter_dry_run(test_env) (L8)
- test_deleter_real_deletion(test_env) (L24)
- test_deleter_handles_missing_files(test_env) (L40)
tests/test_directstorage_optimizer.py¶
Module: Unit tests for DirectStorage & BypassIO hardware optimizer.
- test_parse_bypassio_supported() (L12)
- test_parse_bypassio_blocked() (L27)
- test_audit_structure() (L42)
tests/test_disk_health.py¶
Module: Tests for the read-only S.M.A.R.T. / disk-health monitor.
- class TestParse (L17)
- test_empty_returns_empty_list(self) (L19)
- test_invalid_json_returns_empty(self) (L24)
- test_single_object_becomes_one_disk(self) (L28)
- test_array_of_disks(self) (L49)
- test_missing_reliability_counters_stay_none(self) (L61)
- test_garbage_numeric_fields_coerce_to_none(self) (L73)
- test_defaults_for_absent_keys(self) (L83)
- class TestToDict (L92)
- test_to_dict_roundtrip_keys(self) (L94)
- class TestSupport (L112)
- test_is_supported_matches_platform(self) (L114)
- test_get_health_returns_list(self) (L118)
tests/test_drive_optimizer.py¶
Module: Tests for the media-aware Drive Optimizer.
- class TestRecommendation (L22)
- test_hdd_recommends_defrag(self) (L24)
- test_ssd_recommends_trim(self) (L29)
- test_nvme_recommends_trim(self) (L35)
- test_unknown_recommends_none(self) (L39)
- class TestSafety (L44)
- test_is_supported_matches_platform(self) (L46)
- test_list_drives_returns_list(self) (L50)
- test_refuses_defrag_on_ssd(self, monkeypatch) (L54)
- test_non_windows_returns_unsupported(self) (L72)
tests/test_driver_inventory.py¶
Module: Tests for the read-only driver inventory (parsing + platform gating).
- class TestParse (L12)
- test_empty(self) (L14)
- test_single_object(self) (L20)
- test_dedupes_identical_name_version(self) (L37)
- test_skips_nameless(self) (L47)
- test_yyyymmdd_date(self) (L52)
- class TestSupport (L59)
- test_is_supported_matches_platform(self) (L61)
- test_list_drivers_returns_list(self) (L65)
- test_to_dict(self) (L72)
tests/test_engine.py¶
Module: Tests for the cortex_unified.engine package.
- tree(tmp_path) (L37)
- class TestFastWalker (L61)
- test_scan_counts_and_bytes(self, tree) (L63)
- test_min_size_filter(self, tree) (L72)
- test_excludes_glob(self, tree) (L79)
- test_find_empty(self, tree) (L85)
- test_symlinks_not_followed_by_default(self, tmp_path) (L95)
- test_cancel_stops_iteration(self, tree) (L111)
- class TestPathGuard (L126)
- test_sibling_name_not_falsely_protected(self, tmp_path) (L128)
- test_blocks_home_root(self) (L137)
- test_blocks_windows_system_dirs(self) (L145)
- test_blocks_posix_system_dirs(self) (L152)
- test_sandbox_confinement(self, tmp_path) (L158)
- class TestDuplicates (L175)
- test_hash_file_stable_and_none_on_missing(self, tmp_path) (L177)
- test_finds_content_duplicates(self, tree) (L186)
- test_unique_sizes_not_flagged(self, tmp_path) (L196)
- class TestStorage (L211)
- test_detect_returns_storageinfo(self, tmp_path) (L213)
- test_overwrite_effective_only_for_hdd(self) (L219)
- test_probe_caches(self, tmp_path) (L226)
- class _FakeProbe (L238)
- init(self, kind) (L240)
- probe(self, path) (L245)
- class TestSecureDeleter (L250)
- test_dry_run_touches_nothing(self, tmp_path) (L252)
- test_plain_delete_file(self, tmp_path) (L261)
- test_plain_delete_directory_is_guarded(self, tmp_path) (L269)
- test_guard_blocks_unsafe(self) (L278)
- test_overwrite_on_hdd_wipes(self, tmp_path) (L284)
- test_overwrite_on_ssd_refuses_honestly(self, tmp_path) (L293)
- test_overwrite_on_ssd_forced_best_effort(self, tmp_path) (L303)
- test_summary_aggregates(self, tmp_path) (L313)
tests/test_engine_cloud_safety.py¶
Module: Cloud-placeholder and reparse-point safety in the scan engine.
- test_recall_attributes_mean_dehydrated() (L35)
- test_cloud_tag_family_is_matched() (L45)
- test_junction_detected_by_tag_only() (L55)
- test_describe_explains_each_special_case() (L62)
- test_pure_helpers_never_raise_on_missing_attributes() (L72)
- class Bare (L74)
- _mark_offline(path) (L86)
- cloud_tree(tmp_path) (L97)
- test_placeholder_excluded_and_reported(cloud_tree) (L116)
- test_junction_not_descended(cloud_tree) (L131)
- test_placeholder_skip_is_opt_out(cloud_tree) (L141)
- test_placeholder_is_not_reported_as_empty(cloud_tree) (L155)
- test_shredder_refuses_cloud_placeholder(cloud_tree) (L163)
- test_on_disk_size_matches_a_plain_file(tmp_path) (L183)
- test_on_disk_size_returns_none_for_missing_path(tmp_path) (L193)
- test_entry_falls_back_to_logical_size_when_unmeasured(tmp_path) (L198)
tests/test_engine_service.py¶
Module: Tests for the engine's category registry and CleanerService orchestration.
- class TestCategories (L22)
- test_default_registry_nonempty_and_typed(self) (L24)
- test_ids_unique(self) (L31)
- test_risk_ranking(self) (L36)
- class TestDeepDiscovery (L41)
- test_discovers_nested_cache_dirs(self, tmp_path, monkeypatch) (L43)
- test_does_not_recurse_into_matched_cache(self, tmp_path) (L58)
- test_discovery_is_cached(self, tmp_path) (L67)
- class TestBreakdown (L77)
- test_groups_files_into_top_folders(self, tmp_path) (L79)
- test_limit_respected(self, tmp_path) (L100)
- test_empty(self) (L110)
- class TestCleanerServiceCategories (L117)
- _make_category(self, tmp_path) (L119)
- test_scan_and_clean_dry_run_then_real(self, tmp_path, monkeypatch) (L134)
- test_scan_categories_respects_max_risk(self) (L159)
- test_report_to_dict(self, tmp_path) (L167)
- class TestScanProgressAndCancel (L178)
- test_progress_callback_fires(self, tmp_path) (L180)
- test_cancel_event_stops_scan(self) (L199)
- test_find_duplicates_accepts_progress_and_cancel(self, tmp_path) (L207)
- class TestCleanerServiceAnalysis (L216)
- tree(self, tmp_path) (L219)
- test_find_duplicates(self, tree) (L228)
- test_find_large_files(self, tree) (L234)
- test_find_empty(self, tree) (L241)
tests/test_enterprise_suite_tools.py¶
Module: Tests for Enterprise Next-Gen Storage, Security & Forensics Suite tools.
- test_vss_manager() (L22)
- test_dev_drive_optimizer() (L33)
- test_bitlocker_auditor() (L45)
- test_junction_auditor() (L55)
- test_bitrot_scrubber(tmp_path) (L70)
- test_memory_compression_tuner() (L104)
- test_sandbox_cleaner() (L115)
- test_smb_share_auditor() (L124)
- test_process_token_auditor() (L133)
- test_storage_growth_tracker(tmp_path) (L144)
tests/test_expanded_power_tools.py¶
Module: Tests for Expanded Enterprise Power Tools & System Modules.
- test_links_manager(tmp_path) (L41)
- test_fast_copier(tmp_path) (L73)
- test_timestamp_touch(tmp_path) (L103)
- test_archive_manager(tmp_path) (L127)
- test_prefetch_analyzer() (L174)
- test_search_index_optimizer() (L185)
- test_dns_benchmark() (L193)
- test_disk_benchmark(tmp_path) (L209)
- test_memory_optimizer() (L220)
- test_dev_cleaner() (L234)
- test_browser_deep_cleaner() (L244)
tests/test_external_exposure.py¶
Module: No-network tests for explicit public-IP exposure lookups.
- test_lookup_requires_consent_and_global_public_ip() (L13)
- test_shodan_sends_only_selected_ip_and_normalizes_services() (L24)
- transport(url, headers, timeout) (L28)
- test_censys_credentials_use_header_not_url() (L51)
- transport(url, headers, _timeout) (L55)
tests/test_feature_matrix_audit.py¶
Module: Comprehensive Feature Matrix & Production-Grade Verification Suite.
- test_fm_core_and_power_features(qapp) (L34)
- test_disk_and_storage_analyzers() (L77)
- test_system_maintenance_and_repair() (L120)
- test_security_and_sanitization_standards() (L166)
- test_privacy_and_telemetry() (L233)
- test_process_and_performance_optimization() (L256)
- test_network_tools_and_defense() (L295)
- test_apps_and_extension_management() (L349)
- test_registry_and_startup_tools() (L384)
- test_specialized_dedup_and_cache_analyzers() (L409)
- test_ui_page_registry_all_pages_loadable(qapp) (L522)
tests/test_firewall_manager.py¶
Module: Tests for the Windows Firewall manager (validation, parsing, safety).
- class TestGating (L17)
- test_is_supported_matches_platform(self) (L19)
- test_list_returns_list(self) (L23)
- class TestAddressValidation (L28)
- test_valid_ipv4(self) (L30)
- test_valid_cidr(self) (L34)
- test_valid_range(self) (L38)
- test_valid_ipv6(self) (L42)
- test_invalid_rejected(self) (L46)
- test_block_bad_address_refused(self) (L51)
- class TestQuoting (L58)
- test_escapes_single_quotes(self) (L60)
- test_simple_value(self) (L67)
- class TestParsing (L72)
- test_empty(self) (L74)
- test_single_rule(self) (L80)
- test_non_cortex_rule_flagged_false(self) (L95)
- test_array(self) (L101)
- class TestDirectionGuard (L112)
- test_bad_direction_rejected(self) (L114)
tests/test_free_space_wipe.py¶
Module: Tests for the free-space wiper (validation + platform gating).
- class TestGating (L17)
- test_is_supported_matches_platform(self) (L19)
- test_non_windows_refuses(self) (L23)
- class TestValidation (L33)
- test_rejects_bad_letter(self) (L35)
- test_rejects_empty(self) (L44)
- class TestMediumHonesty (L52)
- test_medium_for_reports_effectiveness(self, monkeypatch) (L54)
tests/test_fuzzy_finder.py¶
Module: Tests for CTPH fuzzy (similarity) hashing.
- _text(n) (L17)
- _noise(n, seed) (L23)
- test_fuzzy_hash_is_deterministic() (L33)
- test_identical_content_matches_at_100() (L39)
- test_similar_content_scores_high_pairs() (L45)
- test_unrelated_content_scores_low() (L56)
- test_empty_signature() (L64)
- test_finder_groups_near_identical_binaries(tmp_path) (L71)
- test_finder_skips_incompressible_and_small(tmp_path) (L87)
- test_finder_stats(tmp_path) (L95)
- test_fuzzy_hash_file_reads(tmp_path) (L107)
tests/test_game_mode_memory.py¶
Module: Tests for Gaming Mode and the memory optimizer.
- class TestGameModeLogic (L29)
- test_protected_never_in_candidates(self) (L31)
- test_boost_report_serializes(self) (L37)
- test_unsupported_reports_cleanly(self, monkeypatch) (L46)
- test_stop_without_start_is_safe(self) (L58)
- class TestGameModeWindows (L69)
- test_preview_is_read_only(self) (L71)
- test_dry_run_changes_nothing(self) (L77)
- test_pick_prefers_high_performance(self, tmp_path_factory) (L88)
- test_candidates_exclude_protected_and_self(self) (L102)
- class TestMemoryOptimizer (L112)
- test_stats_shape(self) (L114)
- test_optimize_returns_result(self) (L123)
- test_optimize_off_platform_no_crash(self) (L132)
tests/test_gui_device_window.py¶
Module: Offscreen tests for the per-device deep scan window (no live network).
- app() (L30)
- window(app) (L36)
- _observation(port, name, **kwargs) (L48)
- _device(**kwargs) (L59)
- test_window_renders_discovery_evidence_before_any_scan(window) (L75)
- test_window_renders_completed_scan_payload_with_severity_badge(window) (L92)
- test_worker_refuses_target_outside_authorized_scope(monkeypatch) (L159)
- fail_scan(_args, *_kwargs) (L161)
- test_worker_collects_services_findings_and_history(monkeypatch) (L177)
- test_worker_reports_missing_nmap_without_failing(monkeypatch) (L218)
- test_worker_does_not_claim_port_source_without_observation(monkeypatch) (L252)
- test_ping_worker_is_scope_checked_and_does_not_scan_ports(monkeypatch) (L295)
- fail_scan(_args, *_kwargs) (L302)
- test_failed_scan_restores_capability_based_actions(window, monkeypatch) (L332)
- test_lan_page_opens_retains_and_safely_closes_device_window(app, window, monkeypatch) (L354)
- class FakeWorker (L362)
- init(self) (L364)
- cancel(self) (L368)
- fake_start_scan(detail_window, profile) (L374)
tests/test_gui_pages_e2e.py¶
Module: End-to-end, page-by-page GUI tests for the premium interface.
- app() (L31)
- window(app) (L37)
- pro_license(monkeypatch, tmp_path) (L49)
- pump_until(app, predicate, timeout_ms, interval) (L68)
- data_tree(tmp_path) (L84)
- test_page_dashboard_scan(app, window) (L100)
- _drive_folder_page(app, window, page_id, data_tree) (L115)
- test_page_duplicates(app, window, data_tree) (L126)
- test_page_large_files(app, window, data_tree) (L133)
- test_page_empty_items(app, window, data_tree) (L140)
- test_page_privacy_scan(app, window) (L152)
- test_page_startup_list(app, window) (L170)
- test_page_traffic_monitor(app, window) (L183)
- test_page_windows_update(app, window) (L196)
- test_page_health_check(app, window) (L207)
- test_page_security_status(app, window) (L219)
- test_page_storage_sense(app, window) (L229)
- test_page_boot_performance(app, window) (L240)
- test_page_system_repair_constructs(app, window) (L251)
- test_page_load_tester_authorization(app, window) (L260)
- test_load_tester_refuses_public_in_ui(app, window) (L273)
- test_page_network_tools(app, window) (L288)
- test_page_network_map(app, window) (L303)
- test_page_lan_devices(app, window, monkeypatch) (L313)
- test_page_firewall_list(app, window) (L339)
- test_page_network_monitor(app, window) (L350)
- test_page_processes_list(app, window) (L364)
- test_page_uninstaller_list(app, window) (L422)
- test_page_telemetry_status(app, window) (L433)
- test_page_registry_scan(app, window, pro_license) (L442)
- test_page_software_updater_list(app, window) (L458)
- test_page_drive_optimizer_list(app, window) (L472)
- _drive_action_text(drive) (L484)
- test_page_virtual_disks(app, window) (L491)
- test_page_component_store_construct(app, window) (L513)
- test_page_system_info_load(app, window) (L536)
- test_page_package_caches_load(app, window) (L545)
- test_dashboard_smart_learning_loop(app, window, tmp_path) (L555)
- test_page_broken_links_and_dupfolders_construct(app, window) (L588)
- test_page_shred_storage_detection(app, window, tmp_path) (L602)
- test_page_settings_theme_toggle(app, window) (L623)
- test_page_settings_restore_point_list(app, window) (L634)
- test_restore_point_worker_reports_honest_status(app) (L644)
- test_page_lan_devices_renders_synthetic_advanced_audit(window) (L663)
- cell(row, col) (L697)
- test_page_winapp2_e2e(app, window) (L720)
- test_page_srum_bam_e2e(app, window) (L729)
- test_page_directstorage_e2e(app, window) (L738)
- test_page_standby_purger_e2e(app, window) (L747)
- test_page_mft_slack_e2e(app, window) (L756)
- test_page_search_optimizer_e2e(app, window) (L765)
- test_page_disk_analyzer_e2e(app, window, tmp_path) (L774)
tests/test_health_check.py¶
Module: Tests for the one-click health check (scoring logic + resilient run).
- _c(sev) (L16)
- class TestScoring (L21)
- test_all_good_is_a(self) (L23)
- test_info_does_not_deduct(self) (L28)
- test_one_warning(self) (L33)
- test_one_critical(self) (L38)
- test_multiple_criticals_floor_at_zero(self) (L43)
- test_grade_boundaries(self) (L48)
- class TestRun (L57)
- test_run_returns_report(self) (L59)
- test_progress_called(self) (L70)
- test_checks_have_valid_severity(self) (L76)
- test_to_dict(self) (L82)
- class TestDiskSpaceCheck (L90)
- test_disk_space_check_runs(self) (L92)
tests/test_icons.py¶
Module: Contracts for the SVG icon system.
- app() (L29)
- test_every_page_has_its_own_icon_asset() (L36)
- test_no_two_pages_share_an_icon() (L42)
- test_registry_icons_are_asset_names_not_glyphs() (L49)
- test_window_chrome_and_status_icons_are_shipped() (L57)
- test_every_shipped_icon_renders(app) (L66)
- test_rasterises_at_device_resolution(app, dpr_x100, expected) (L75)
- test_icons_are_tinted_to_the_requested_colour(app) (L89)
- test_icon_exposes_a_larger_variant_so_qt_never_upscales(app) (L102)
- test_missing_icon_degrades_to_empty_without_raising(app) (L111)
- test_clear_cache_allows_retinting(app) (L117)
- test_navigation_uses_real_icons_and_clean_labels(app) (L128)
- test_theme_switch_retints_navigation_icons(app) (L147)
- test_title_bar_controls_have_icons_and_accessible_names(app) (L165)
- test_no_symbol_glyphs_remain_in_the_premium_ui() (L185)
- test_status_note_pairs_an_icon_with_accessible_text(app) (L227)
tests/test_lan_scanner.py¶
Module: Tests for the ARP-based LAN device scanner (parsing + vendor lookup).
- class TestParse (L25)
- test_empty(self) (L27)
- test_windows_parse_and_filter(self) (L32)
- test_vendor_comes_from_the_ieee_registry(self) (L41)
- test_sorted_by_ip(self) (L63)
- test_dedupes(self) (L69)
- test_type_captured(self) (L75)
- class TestVendorHelper (L81)
- test_normalizes_dashes(self) (L83)
- test_unassigned_prefix_is_empty_not_a_guess(self) (L88)
- test_garbage_input(self) (L93)
- class TestScan (L99)
- test_scan_returns_list(self) (L101)
- test_to_dict(self) (L107)
tests/test_lazy_pages.py¶
Module: Contracts for on-demand page construction in the premium shell.
- app() (L27)
- window(app) (L33)
- test_only_the_initial_page_is_built_at_startup(window) (L43)
- test_registry_reports_every_page_without_building_them(window) (L50)
- test_getitem_builds_on_demand_and_caches(window) (L66)
- test_selecting_a_page_builds_it_and_shows_it(window) (L76)
- test_navigation_works_for_every_page(window) (L84)
- test_unknown_page_id_raises_key_error(window) (L93)
- test_selecting_unknown_page_is_ignored(window) (L99)
- test_page_factory_registry_matches_navigation() (L106)
- test_lazily_built_page_is_added_to_the_stack(window) (L114)
tests/test_leftover_cleaner.py¶
Module: Tests for the production leftover cleaner (post-uninstall residuals).
- class TestEditDistance (L39)
- test_identical_strings_cost_zero(self) (L41)
- test_empty_inputs(self) (L45)
- test_known_distances(self, a, b, expected) (L58)
- test_early_exit_exceeds_bound(self) (L62)
- class TestMatchStringToProduct (L67)
- test_perfect_match(self) (L69)
- test_near_match_off_by_one(self) (L73)
- test_substring_containment(self) (L77)
- test_short_names_never_match(self) (L81)
- test_unrelated_names_rejected(self) (L87)
- test_distance_beyond_one_third_cutoff(self) (L91)
- class TestBuildTokens (L96)
- test_noise_suffixes_removed(self) (L98)
- test_generic_publishers_excluded(self) (L104)
- test_specific_publisher_included(self) (L110)
- test_short_tokens_dropped(self) (L115)
- class TestConfidenceLevels (L124)
- test_mapping(self) (L126)
- test_detect_installer_type() (L137)
- class TestSafetyPolicy (L150)
- test_known_folder_roots_are_prohibited_but_children_allowed(self, monkeypatch, tmp_path) (L152)
- test_own_paths_protected(self, tmp_path) (L162)
- fake_env(monkeypatch, tmp_path) (L175)
- _scanner(apps) (L194)
- class TestFilesystemSweep (L199)
- test_empty_leftover_folder_scores_very_good(self, fake_env) (L201)
- test_blacklisted_directory_never_flagged(self, fake_env) (L216)
- test_executables_present_penalized(self, fake_env) (L225)
- test_product_still_installed_penalized(self, fake_env) (L239)
- test_live_sibling_app_claiming_name_penalized(self, fake_env) (L254)
- test_nested_cache_inside_matched_vendor_found(self, fake_env) (L267)
- test_reparse_point_not_descended(self, fake_env) (L277)
- test_orphan_scan_reports_empty_unclaimed_folder(self, fake_env) (L301)
- class FakeRegKey (L318)
- init(self, subkeys, values) (L321)
- children(self) (L326)
- fake_registry(monkeypatch) (L332)
- class FakeWinreg (L350)
- OpenKey(key, path, reserved, access) (L358)
- QueryInfoKey(key) (L371)
- EnumKey(key, index) (L376)
- CloseKey(key) (L384)
- EnumValue(key, index) (L389)
- class TestRegistrySweep (L403)
- test_matching_software_key_found_with_explicit_pointer(self, fake_env, fake_registry) (L405)
- test_walk_skips_blacklisted_branches(self, fake_env, fake_registry) (L417)
- class TestCleaner (L429)
- test_recycle_via_send2trash_and_journal(self, fake_env, tmp_path, monkeypatch) (L431)
- fake_send2trash(path) (L438)
- test_recycle_failure_surfaced_not_hidden(self, fake_env, tmp_path, monkeypatch) (L455)
- boom(_path) (L461)
- test_registry_clean_exports_backup_then_deletes(self, tmp_path, monkeypatch) (L472)
- fake_run(cmd, **_kwargs) (L477)
- class R (L483)
- test_protected_paths_are_skipped(self, tmp_path) (L501)
- test_empty_clean_writes_no_journal(self, tmp_path) (L509)
- class TestComSweep (L520)
- test_clsid_pointing_into_dead_install_is_flagged(self, fake_env, monkeypatch) (L522)
- clsid_key(server_path) (L533)
- class ComWinreg (L552)
- OpenKey(key, path, reserved, access) (L560)
- QueryInfoKey(key) (L576)
- EnumKey(key, index) (L581)
- CloseKey(key) (L589)
- QueryValueEx(key, name) (L594)
- class TestInnoLog (L618)
- test_paths_from_unins000_dat_that_still_exist_are_flagged(self, fake_env) (L620)
- class TestServiceAndTaskClean (L649)
- test_service_clean_backs_up_then_sc_deletes(self, tmp_path, monkeypatch) (L651)
- fake_run(cmd, **_kw) (L656)
- class R (L661)
- test_task_clean_backs_up_xml_then_schtasks_deletes(self, fake_env, tmp_path, monkeypatch) (L681)
- fake_run(cmd, **_kw) (L694)
- class R (L697)
- test_task_sweep_finds_command_in_dead_install(self, fake_env, monkeypatch) (L715)
- class TestTokenStopwords (L734)
- test_generic_words_never_become_tokens(self) (L736)
- test_product_identity_survives(self) (L742)
- class TestInventory (L751)
- test_read_installed_apps_runs_without_error(self) (L753)
- test_find_residual_keys_api_exists(self) (L765)
tests/test_license_gui.py¶
Module: Headless tests for the license GUI: LicensePage + require_feature gating.
- app() (L22)
- isolated_license(monkeypatch, tmp_path) (L29)
- window(app, isolated_license) (L41)
- _click_trial_buttons(monkeypatch) (L58)
- test_license_page_shows_free_when_unlicensed(window) (L76)
- test_activate_with_empty_key_warns_and_stays_free(window, monkeypatch) (L95)
- test_page_shows_pro_after_activation_and_refresh(window, isolated_license) (L108)
- test_require_feature_allows_licensed_feature(window, isolated_license) (L137)
- test_require_feature_denied_offers_trial_then_refuses_second_time(window, isolated_license, monkeypatch) (L146)
- test_require_feature_reports_refused_trial(window, isolated_license, monkeypatch) (L166)
- refused() (L177)
- test_registry_declares_the_license_page() (L191)
- test_window_nav_reaches_the_license_page(window) (L204)
tests/test_licensing.py¶
Module: Tests for the offline licensing / entitlement system.
- manager(tmp_path) (L38)
- class TestFingerprint (L46)
- test_stable_across_calls(self) (L48)
- test_memoised_matches_direct(self) (L52)
- test_shape(self) (L56)
- test_identifiers_never_empty(self) (L62)
- class TestTiers (L72)
- test_rank_ordering(self) (L74)
- test_includes_is_cumulative(self) (L80)
- test_parse_defaults_to_free_on_garbage(self) (L86)
- test_feature_matrix_cumulative(self) (L92)
- class TestLicenseLifecycle (L107)
- test_fresh_machine_is_free(self, manager) (L109)
- test_activate_and_validate(self, manager) (L116)
- test_key_masked_in_status(self, manager) (L124)
- test_signature_tamper_rejected(self, manager) (L130)
- test_payload_tamper_rejected(self, manager) (L140)
- test_corrupt_file_degrades_to_free(self, manager) (L148)
- test_wrong_machine_rejected(self, manager) (L156)
- test_expiry_freezes_after_grace(self, tmp_path) (L170)
- test_grace_period_keeps_access(self, tmp_path) (L196)
- test_trial_once_only(self, manager) (L218)
- test_trial_refused_when_licensed(self, manager) (L225)
- test_deactivate_returns_to_free(self, manager) (L231)
- test_activate_rejects_bad_input(self, manager) (L239)
- test_singleton_resettable(self) (L246)
- class TestGating (L262)
- _licensed_pro(self, monkeypatch, tmp_path) (L265)
- test_current_tier_and_features(self) (L275)
- test_allowed_and_require(self) (L282)
- test_entitlement_error_details(self) (L292)
- test_gate_decorator_blocks_and_passes(self) (L302)
- pro_tool() (L305)
- enterprise_tool() (L310)
tests/test_load_tester.py¶
Module: Tests for the authorized load/resilience tester.
- class TestAuthorization (L30)
- test_loopback_authorized(self) (L32)
- test_localhost_authorized(self) (L38)
- test_private_lan_authorized(self) (L43)
- test_public_denied_without_token(self) (L49)
- test_public_denied_with_unverifiable_token(self) (L56)
- test_unresolvable_denied(self) (L64)
- test_classify_loopback(self) (L69)
- test_token_generation_unique(self) (L74)
- class TestRefusesUnauthorized (L80)
- test_run_http_refuses_unauthorized(self) (L82)
- test_run_tcp_refuses_unauthorized(self) (L88)
- class TestMetrics (L99)
- test_percentiles(self) (L101)
- test_rps_and_error_rate(self) (L109)
- test_empty_latencies_safe(self) (L116)
- test_summary_keys(self) (L123)
- class TestLocalRun (L137)
- test_http_against_local_server(self) (L139)
- class Quiet (L144)
- log_message(self, *a) (L146)
- do_GET(self) (L150)
- test_cancel_stops_run(self) (L176)
tests/test_memory_standby_purger.py¶
Module: Unit tests for Windows MemoryStandbyPurger NTDLL engine.
- test_memory_snapshot() (L13)
- test_privilege_enable() (L26)
- test_purge_actions_safe() (L35)
tests/test_mft_slack_scrubber.py¶
Module: Unit tests for NTFS MFT & Directory Index slack scrubber.
- test_parse_ntfsinfo() (L12)
- test_audit_structure() (L36)
- test_scrub_structure() (L46)
tests/test_network_audit.py¶
Module: Focused synthetic tests for the private-LAN audit foundation.
- class SyntheticDevice (L32)
- observation(port, name, **kwargs) (L43)
- test_scope_rejects_public_special_and_out_of_scope_without_sockets(monkeypatch) (L57)
- test_private_scope_spec_supports_host_cidr_and_range() (L80)
- test_custom_port_spec_is_bounded_and_deterministic() (L93)
- test_custom_ports_are_validated_before_any_socket(monkeypatch) (L102)
- test_observation_serialization_is_json_safe_and_deterministic() (L118)
- test_ports_and_banners_never_create_cve_claims() (L135)
- test_catalog_exact_product_version_and_no_version_false_positive(tmp_path) (L150)
- test_fingerprint_combines_device_and_protocol_evidence() (L187)
- test_wan_classification(address, expected) (L219)
- test_wan_url_scope_and_route_only_default(monkeypatch) (L224)
- test_inventory_reports_new_address_service_and_gateway_changes(tmp_path) (L247)
tests/test_network_automation.py¶
Module: Offline tests for fixed-command recurring network scans.
- test_schedule_builds_only_fixed_private_scan_command(monkeypatch) (L12)
- test_schedule_rejects_public_scope_and_arbitrary_frequency() (L35)
- test_scheduler_uses_process_runner_without_shell(monkeypatch) (L45)
- fake_run(arguments, **kwargs) (L50)
tests/test_network_discovery.py¶
Module: Deep LAN discovery: parsing, filtering and honest identification.
- class TestUsableHost (L35)
- test_zero_mac_is_absence_not_presence(self) (L37)
- test_broadcast_mac_rejected(self) (L41)
- test_multicast_mac_rejected(self) (L45)
- test_broadcast_ip_rejected(self) (L49)
- test_multicast_ip_rejected(self) (L53)
- test_real_device_accepted(self) (L57)
- test_missing_mac_rejected(self) (L61)
- test_garbage_ip_rejected(self) (L65)
- test_windows_neighbor_query_excludes_incomplete_states() (L70)
- class TestMacIdentity (L91)
- test_real_assignments_resolve_from_the_registry(self) (L102)
- test_lookup_never_invents_a_vendor(self) (L109)
- test_longer_assignments_win_over_the_containing_block(self) (L115)
- test_ieee_placeholder_org_is_not_recorded_as_a_vendor(self, tmp_path) (L127)
- test_shorten_is_cosmetic_only(self) (L139)
- test_randomized_mac_detected(self) (L147)
- test_real_vendor_mac_is_not_randomized(self) (L153)
- test_multicast_is_not_treated_as_randomized(self) (L158)
- test_private_address_explained_not_called_unknown(self) (L163)
- test_missing_registry_is_distinguished_from_unknown_vendor(self) (L169)
- test_normalize_handles_formats(self) (L178)
- class TestDeviceLabelling (L190)
- test_friendly_name_beats_uuid_hostname(self) (L192)
- test_model_used_when_no_friendly_name(self) (L201)
- test_real_hostname_is_used(self) (L207)
- test_uuid_detection(self) (L212)
- test_gateway_without_a_name_reads_as_router(self) (L218)
- test_private_address_is_not_used_as_a_name(self) (L223)
- test_label_never_empty(self) (L230)
- class TestDeviceKind (L235)
- test_chromecast_classified_from_service_and_port(self) (L237)
- test_esp_board_classified_from_the_registry_vendor_name(self) (L242)
- test_classified_from_self_reported_model(self) (L251)
- test_unknown_vendor_is_not_guessed_into_a_category(self) (L256)
- test_printer_classified(self) (L261)
- test_randomized_mac_reads_as_phone_or_laptop(self) (L266)
- test_gateway_and_self_win(self) (L271)
- test_unknown_stays_unknown(self) (L276)
- class TestEvidence (L281)
- test_evidence_lists_every_source(self) (L283)
- test_evidence_never_empty(self) (L289)
- class TestMerge (L294)
- test_observations_combine_without_losing_data(self) (L296)
- test_merge_does_not_overwrite_existing_values(self) (L309)
- class TestDnsParsing (L320)
- test_query_is_well_formed(self) (L322)
- test_parses_an_a_record(self) (L331)
- test_handles_name_compression(self) (L343)
- test_malformed_packet_does_not_raise(self) (L357)
- test_compression_loop_is_bounded(self) (L367)
- test_txt_record_decoded(self) (L374)
- class TestServiceSplitting (L387)
- test_splits_instance_and_type(self) (L389)
- test_bare_service_type(self) (L396)
- test_non_service_name(self) (L402)
- test_ssdp_headers_parsed_case_insensitively() (L408)
- class TestScanScope (L422)
- test_interface_network_computed(self) (L424)
- test_bad_netmask_is_survivable(self) (L429)
- test_real_interfaces_are_private_only(self) (L433)
- test_oversized_subnet_is_skipped_with_an_explanation(self, monkeypatch) (L441)
- _no_sweep(_a, *_k) (L455)
- test_manual_scope_can_only_narrow_active_interface(self, monkeypatch) (L465)
- test_no_interfaces_reports_clearly(self, monkeypatch) (L491)
- class TestCancellation (L501)
- test_already_cancelled_scan_does_almost_nothing(self, monkeypatch) (L503)
- _boom(_a, *_k) (L514)
- class TestNotes (L529)
- test_randomized_macs_are_explained(self) (L531)
- test_client_isolation_suggested_when_only_router_answers(self) (L537)
- test_no_spurious_notes_for_a_healthy_scan(self) (L545)
- test_result_serializes_to_json() (L559)
- test_ip_sort_key_orders_numerically() (L576)
- test_ip_validation_rejects_garbage(bad) (L584)
tests/test_network_expert_tools.py¶
Module: Offline tests for the optional Nmap adapter and strict Wake-on-LAN API.
- _available(monkeypatch) (L23)
- test_nmap_status_does_not_execute(monkeypatch) (L31)
- test_nmap_missing_executable_has_clear_error(monkeypatch) (L43)
- test_nmap_builds_safe_deterministic_argument_list(monkeypatch) (L58)
- test_nmap_rejects_every_unauthorized_target(monkeypatch, target) (L77)
- test_nmap_expert_modes_require_windows_admin(monkeypatch) (L86)
- test_nmap_scan_uses_proc_and_parses_observation(monkeypatch) (L101)
- fake_run(arguments, **kwargs) (L108)
- test_nmap_cancellation_before_launch_skips_proc(monkeypatch) (L131)
- test_nmap_xml_rejects_dtd_and_entities(declaration) (L149)
- test_nmap_xml_enforces_depth_limit() (L156)
- test_nmap_xml_rejects_public_result() (L163)
- test_wol_rejects_invalid_or_non_unicast_mac(mac) (L174)
- test_wol_builds_standard_magic_packet() (L180)
- test_wol_rejects_broadcast_outside_active_private_lan(broadcast, networks) (L195)
- class _Socket (L203)
- init(self) (L205)
- settimeout(self, value) (L212)
- setsockopt(self, *value) (L216)
- sendto(self, payload, destination) (L220)
- close(self) (L225)
- test_wol_sends_one_bounded_udp_broadcast(monkeypatch) (L230)
- test_wol_rejects_nonpositive_or_nonfinite_timeout() (L249)
- test_wol_wraps_socket_error_and_closes(monkeypatch) (L259)
- fail_send(_payload, _destination) (L265)
tests/test_network_inventory.py¶
Module: Synthetic tests for transactional network snapshot inventory.
- device(ip, mac, services, findings, **kwargs) (L19)
- kinds(snapshot) (L36)
- test_first_snapshot_reports_new_device_and_is_json_safe(tmp_path) (L41)
- test_emits_new_service_and_severity_change(tmp_path) (L54)
- test_mac_and_gateway_mac_changes_are_distinct(tmp_path) (L79)
- test_disappearance_is_relative_to_previous_snapshot(tmp_path) (L96)
- test_randomized_mac_uses_low_confidence_ip_identity(tmp_path) (L108)
- test_first_last_seen_and_catalogs_are_persisted(tmp_path) (L118)
- test_retention_removes_old_snapshots_and_orphan_catalogs(tmp_path) (L140)
- test_duplicate_identity_rejected_without_partial_snapshot(tmp_path) (L152)
- test_normalizes_discovery_style_mapping_and_validates_ip() (L164)
- test_schema_version_and_future_version_guard(tmp_path) (L180)
- test_memory_database_supported() (L194)
- test_schema_v1_migrates_metadata_table_atomically(tmp_path) (L201)
- test_metadata_trends_and_csv_round_trip_are_safe(tmp_path) (L214)
- test_invalid_csv_rolls_back_all_metadata(tmp_path) (L255)
tests/test_network_monitor.py¶
Module: Tests for the read-only network connection monitor.
- class TestClassification (L16)
- test_loopback_is_private(self) (L18)
- test_lan_is_private(self) (L23)
- test_public_is_not_private(self) (L29)
- test_unparseable_defaults_private(self) (L34)
- class TestConnectionFlags (L40)
- test_public_listener_flagged(self) (L42)
- test_localhost_listener_not_public(self) (L48)
- test_external_established_flagged(self) (L53)
- test_internal_established_not_external(self) (L59)
- test_to_dict_shape(self) (L65)
- class TestMonitor (L77)
- test_connections_returns_list(self) (L79)
- test_summarize_counts(self) (L85)
tests/test_network_security_audit.py¶
Module: Safety-guard tests for defensive private-LAN scanning (no live network).
- test_guard_accepts_rfc1918_lan_addresses(target) (L37)
- test_guard_rejects_every_out_of_scope_address(target) (L56)
- test_guard_rejects_malformed_and_non_ipv4_input(target) (L73)
- test_guard_rejects_leading_zero_octets() (L79)
- test_guard_returns_address_usable_for_socket_operations() (L91)
tests/test_network_tools.py¶
Module: Tests for the network diagnostic utilities (parsers + offline logic).
- class TestPingParse (L47)
- test_windows_success(self) (L49)
- test_nix_success(self) (L58)
- test_loss(self) (L65)
- test_unreachable(self) (L71)
- class TestTracerouteParse (L77)
- test_parses_hops(self) (L79)
- test_timeout_hop(self) (L86)
- test_hop_to_dict_avg(self) (L92)
- class TestDNS (L99)
- test_localhost_resolves(self) (L101)
- test_bad_host_empty(self) (L106)
- test_reverse_loopback(self) (L110)
- class TestPorts (L116)
- test_closed_high_port_false(self) (L118)
- test_invalid_port(self) (L123)
- test_scan_returns_all_common_ports(self) (L127)
- class TestIpInfo (L135)
- test_public(self) (L137)
- test_private(self) (L143)
- test_loopback(self) (L148)
- test_ipv6(self) (L152)
- test_invalid(self) (L157)
tests/test_network_traffic.py¶
Module: Tests for the live throughput monitor (rate math + shape).
- class TestSample (L16)
- test_first_sample_zero_rate(self) (L18)
- test_since_start_starts_zero(self) (L27)
- test_second_sample_has_nonnegative_rates(self) (L33)
- test_per_nic_present_and_sorted(self) (L44)
- test_to_dict_shape(self) (L54)
- test_singleton() (L62)
tests/test_nextgen_tools.py¶
Module: Comprehensive test suite for Next-Generation Enterprise System Tools & Forensics.
- test_shader_cache_cleaner_scan_and_clean() (L31)
- test_ai_telemetry_cleaner_wal_checkpoint() (L62)
- test_ssd_trim_optimizer() (L96)
- test_restart_manager_unlocker() (L113)
- test_vss_health_analyzer() (L134)
- test_dev_package_cache_cleaner() (L161)
- test_checksum_matrix_manifest_flow() (L185)
tests/test_nexus_exhaustive_audit.py¶
Module: Exhaustive End-to-End Audit & Edge-Case Verification Suite for NexusExplorer.
- qapp() (L29)
- test_audit_in_place_copy_protection(qapp) (L37)
- test_audit_circular_directory_protection(qapp) (L71)
- test_audit_empty_directory_preservation_on_copy(qapp) (L103)
- test_audit_tab_management_and_closing(qapp) (L136)
- test_audit_engine_python_simple_and_delete(qapp) (L168)
- test_audit_bulk_rename_modes(qapp) (L202)
tests/test_page_registry.py¶
Module: Contracts for the declarative page registry.
- test_registry_is_internally_consistent() (L26)
- test_every_declared_factory_actually_resolves() (L37)
- test_malformed_factory_is_rejected_with_a_clear_message() (L45)
- test_ordering_is_group_order_then_declaration_order() (L52)
- test_grouped_covers_every_page_exactly_once() (L62)
- test_by_id_and_group_of_agree_with_pages() (L71)
- test_default_page_exists_and_is_reachable() (L78)
- test_window_aliases_are_derived_from_the_registry() (L85)
- test_adding_one_spec_wires_nav_group_search_and_stack(monkeypatch) (L97)
tests/test_perceptual_duplicate_finder.py¶
Module: Tests for perceptual image duplicate detection (pHash/dHash/aHash).
- _make_image(path, size) (L23)
- _make_plain(path, size, color) (L33)
- test_hashes_are_int(tmp_path) (L40)
- test_hashes_deterministic_on_identical_image(tmp_path) (L48)
- test_hamming_distance_basic() (L58)
- test_perceptual_hashes_agree_across_rescales(tmp_path) (L65)
- test_different_images_are_far_apart_in_phash(tmp_path) (L77)
- test_unknown_kind_raises(tmp_path) (L89)
- test_finder_groups_rescaled_identical_images(tmp_path) (L97)
- test_finder_excludes_non_images(tmp_path) (L112)
- test_finder_respects_exclude_dirs(tmp_path) (L120)
- test_finder_stats(tmp_path) (L140)
- test_finder_error_handling_skips_corrupt(tmp_path) (L153)
tests/test_performance_tuner.py¶
Module: Tests for the power-plan tuner (parsing + safety gating).
- class TestParse (L20)
- test_parses_all_plans(self) (L22)
- test_marks_active_plan(self) (L30)
- test_empty_input(self) (L38)
- class TestSafety (L44)
- test_is_supported_matches_platform(self) (L46)
- test_set_active_rejects_bad_guid(self) (L50)
- test_list_plans_returns_list(self) (L55)
- test_to_dict(self) (L59)
tests/test_portable_manager.py¶
Module: Tests for portable_manager — PortableApps.com / LiberKey catalog, USB toolkit.
- class TestPortableApp (L27)
- test_basic_construction(self, tmp_path) (L29)
- test_to_dict_slots_incompatibility(self, tmp_path) (L47)
- class TestParseAppinfo (L68)
- _write_appinfo(self, root, content) (L70)
- test_valid_appinfo(self, tmp_path) (L76)
- test_missing_ini_returns_none(self, tmp_path) (L95)
- test_garbage_ini_returns_none(self, tmp_path) (L99)
- test_launch_exe_fallback_to_first_exe(self, tmp_path) (L105)
- test_no_exe(self, tmp_path) (L115)
- test_fallback_to_first_section(self, tmp_path) (L123)
- class TestPortableManagerInit (L139)
- test_default_init(self) (L141)
- test_custom_progress(self) (L148)
- test_custom_cancel_event(self) (L155)
- class TestScanPortableRoots (L168)
- _build_paf_app(self, root, name, version) (L170)
- test_scan_paf_apps(self, tmp_path) (L182)
- test_scan_empty_root(self, tmp_path) (L193)
- test_scan_nonexistent_root(self, tmp_path) (L198)
- test_scan_liberkey_heuristic(self, tmp_path) (L203)
- test_scan_skips_files(self, tmp_path) (L216)
- test_scan_cancellation(self, tmp_path) (L222)
- class TestCheckUpdates (L237)
- _make_app_with_ini(self, root, name, version, update_url) (L239)
- test_no_update_url_skipped(self, tmp_path) (L267)
- test_update_available(self, tmp_path) (L275)
- test_no_update_when_current(self, tmp_path) (L297)
- test_network_failure_continues(self, tmp_path) (L318)
- test_non_ini_response_skipped(self, tmp_path) (L334)
- test_empty_version_no_update(self, tmp_path) (L353)
- class TestUpdateApp (L394)
- test_update_no_installer_returns_false(self, tmp_path) (L396)
- test_update_with_installer(self, tmp_path) (L414)
- test_update_installer_failure(self, tmp_path) (L445)
- test_update_subprocess_exception(self, tmp_path) (L470)
- class TestSysinternalsDownload (L501)
- test_download_success(self, tmp_path) (L503)
- test_download_not_pe_rejected(self, tmp_path) (L524)
- test_download_network_error(self, tmp_path) (L564)
- class TestExportToolkit (L586)
- _build_paf_app(self, root, name) (L588)
- test_export_copies_paf_apps(self, mock_roots, tmp_path) (L597)
- test_export_skips_existing(self, mock_roots, tmp_path) (L612)
- test_export_sysinternals(self, mock_dl, mock_roots, tmp_path) (L630)
- test_export_sysinternals_custom_tools(self, mock_dl, mock_roots, tmp_path) (L645)
- test_export_skips_existing_sysinternals(self, mock_dl, mock_roots, tmp_path) (L665)
- class TestProgressCallback (L687)
- test_progress_called_on_update_failure(self, tmp_path) (L689)
- test_progress_called_on_export(self, mock_find_roots) (L719)
- class TestCancellation (L732)
- _build_paf_app(self, root, name) (L734)
- test_scan_respects_cancel(self, tmp_path) (L742)
- counting_iterdir(self_inner) (L750)
- class TestPAFSilentFlag (L779)
- test_silent_flag_value(self) (L781)
- test_sysinternals_live_url(self) (L785)
- class TestExportToolkitIntegration (L795)
- test_export_creates_directory(self, mock_roots, tmp_path) (L798)
- test_export_returns_true(self, mock_roots, tmp_path) (L808)
- test_export_failure_returns_false(self, mock_roots, tmp_path) (L818)
tests/test_power_suite_tools.py¶
Module: Unit tests for the 10 Enterprise Power Suite system tools and utilities.
- test_env_variable_manager() (L18)
- test_service_manager() (L26)
- test_font_cache_manager() (L36)
- test_temp_folder_cleaner() (L44)
- test_context_menu_manager() (L52)
- test_pagefile_optimizer() (L59)
- test_diagnostic_data_manager() (L68)
- test_startup_impact_analyzer() (L76)
- test_slack_space_analyzer(tmp_path) (L84)
- test_event_log_monitor() (L100)
tests/test_power_tools_production.py¶
Module: Comprehensive Production Unit Tests for Enterprise Power Tools & Pages.
- test_hash_computation(tmp_path) (L88)
- test_checksum_manifest_creation_and_verify(tmp_path) (L105)
- test_batch_renamer_tokens_and_case(tmp_path) (L142)
- test_directory_diff_and_sync(tmp_path) (L183)
- test_file_splitter_and_joiner(tmp_path) (L231)
- test_file_unlocker_inspect(tmp_path) (L267)
- test_alternate_data_streams_list(tmp_path) (L280)
- test_event_log_cleaner_scan() (L297)
- test_system_cache_rebuilder_scan() (L310)
- test_network_stack_optimizer_status() (L320)
- test_crash_dump_cleaner_scan() (L332)
- test_delivery_optimization_cleaner_scan() (L342)
tests/test_premium_gui.py¶
Module: Headless smoke tests for the premium GUI.
- app() (L21)
- window(app) (L28)
- test_stylesheet_builds_for_both_themes(app) (L46)
- test_all_pages_present(window) (L55)
- test_navigate_every_page(window) (L61)
- test_theme_toggle_does_not_crash(window) (L68)
- test_navigation_switches_pages(window) (L76)
- test_dashboard_populates_from_report(window) (L84)
- test_dashboard_preview_expands(window) (L104)
- test_preview_helpers(app) (L147)
- test_group_by_app(app) (L175)
- test_dashboard_selection_excludes(window) (L195)
- test_circular_gauge_animates(window) (L238)
- test_render_to_pixmap(window) (L246)
- test_responsive_resize(window) (L253)
- test_core_bars_widget_renders(app) (L277)
- test_stat_card_animate_value(app) (L291)
- test_shred_page_present_and_wired(window) (L302)
- test_recycle_worker_actually_removes(app, tmp_path) (L310)
- test_dashboard_live_scan_completes(app, window) (L324)
- test_shred_worker_overwrites_and_removes(app, tmp_path) (L350)
- class _CoopWorker (L370)
- new(cls) (L373)
- class W (L378)
- init(self) (L383)
- cancel(self) (L388)
- run(self) (L392)
- test_close_with_cooperative_worker_is_fast_and_clean(app, window) (L403)
- test_close_with_unkillable_worker_detaches_instead_of_crashing(app, window) (L418)
- class StuckWorker (L425)
- run(self) (L430)
- test_run_worker_refused_after_close(app, window) (L455)
- class Probe (L462)
- run(self) (L464)
- temp_window(app, tmp_path) (L480)
- _fake_qobject_window(app) (L496)
- class FakeWin (L501)
- init(self) (L503)
- isMinimized(self) (L511)
- show(self) (L515)
- showNormal(self) (L519)
- raise_(self) (L523)
- activateWindow(self) (L527)
- _select(self, pid) (L531)
- close(self) (L535)
- test_settings_store_defaults_and_roundtrip(tmp_path) (L542)
- test_settings_store_tolerates_corrupt_file(tmp_path) (L556)
- test_settings_store_sanitizes_bad_values(tmp_path) (L566)
- test_theme_choice_persists_across_restart(temp_window) (L579)
- test_settings_page_marks_active_theme(temp_window) (L589)
- test_tray_icon_renders_for_both_themes(app) (L602)
- test_tray_is_inert_when_unavailable(app, tmp_path) (L610)
- test_tray_menu_actions_drive_window(app, tmp_path) (L624)
- test_close_to_tray_hides_instead_of_quitting(temp_window) (L639)
- class FakeTray (L644)
- init(self) (L646)
- show_message(self, title, message, msecs) (L652)
- stop(self) (L656)
- refresh_theme(self, palette) (L660)
- test_close_to_tray_only_hints_once(temp_window) (L681)
- class FakeTray (L685)
- init(self) (L687)
- show_message(self, title, message, msecs) (L692)
- stop(self) (L696)
- test_focus_ring_is_clean_border_not_boxy_outline(app) (L713)
- test_focus_visible_ring_only_for_keyboard(app) (L725)
- test_install_focus_visible_is_idempotent(app) (L754)
- _scroll_area(app, rng) (L768)
- _wheel(down, pixel) (L779)
- test_smooth_scroll_glides_on_mouse_wheel(app) (L790)
- test_smooth_scroll_ignores_touchpad(app) (L802)
- test_smooth_scroll_hands_off_at_boundary(app) (L811)
- test_smooth_scroll_respects_reduced_motion(app) (L822)
- test_install_smooth_scroll_is_idempotent(app) (L836)
- test_pages_have_smooth_scroll_installed(window) (L845)
- test_reveal_respects_reduced_motion(app) (L855)
- test_settings_store_reduced_motion_roundtrip(tmp_path) (L874)
- test_shimmer_skeleton_start_stop(app) (L884)
- test_settings_page_reduced_motion_toggle(temp_window) (L902)
- test_health_page_has_shimmer_skeleton(window) (L916)
- test_press_feedback_sinks_and_restores(app) (L927)
- test_press_feedback_respects_reduced_motion(app) (L942)
- test_bento_tile_hover_in_stylesheet(app) (L956)
- test_dashboard_uses_bento_tiles(window) (L965)
- test_badge_uses_rgba_not_ambiguous_hex(app) (L981)
- test_processes_memory_details_collapsed_by_default(window) (L993)
- test_health_check_columns_size_to_content(window) (L1005)
- test_uninstaller_page_has_leftover_section(window) (L1020)
- test_leftover_findings_populate_table_and_status(window) (L1030)
- test_leftover_clean_button_needs_selection(window) (L1046)
- test_leftover_scan_without_pending_shows_hint(window, monkeypatch) (L1058)
- test_leftover_clean_worker_recycles_and_reports(tmp_path, monkeypatch) (L1070)
- class FakeCleaner (L1075)
- init(self) (L1077)
- clean(self, models, create_restore_point, exclusions, cancel_event) (L1081)
- test_leftover_clean_worker_requests_restore_point_when_asked(tmp_path, monkeypatch) (L1104)
- class FakeCleaner (L1110)
- init(self) (L1112)
- clean(self, models, create_restore_point, exclusions, cancel_event) (L1116)
- test_leftover_scan_worker_emits_sorted_findings(monkeypatch) (L1137)
- class FakeScanner (L1142)
- init(self, installed_apps, exclusions, cancel_event, policy) (L1144)
- scan_app(self, app) (L1150)
- test_leftover_workers_support_cooperative_cancel() (L1172)
- test_uninstall_hands_off_metadata_to_leftover_page(window, monkeypatch) (L1189)
- fake_worker_init(self, apps, exclusions) (L1221)
- fake_worker_run(self) (L1230)
tests/test_premium_hidpi.py¶
Module: High-DPI crispness regression tests for the premium GUI.
- app() (L32)
- window(app) (L39)
- test_card_has_no_persistent_graphics_effect(app) (L50)
- test_hero_buttons_and_gauge_have_no_persistent_effect(window) (L66)
- test_attach_glow_does_not_attach_blurring_effect(app) (L74)
- test_gauge_paints_with_glow_enabled(app) (L92)
- test_statcard_pulse_effect_is_torn_down(app) (L109)
- test_page_fade_leaves_no_permanent_effect(window) (L125)
tests/test_premium_tokens.py¶
Module: Tests for the Qt-free premium design tokens (tokens.py).
- test_elevation_has_four_ordered_levels() (L29)
- test_elevation_named_levels_present() (L35)
- test_elevation_style_returns_valid_style(palette, level) (L48)
- test_elevation_style_accepts_int_level(palette) (L60)
- test_glass_translucency_only_at_higher_levels(palette) (L66)
- _assert_monotonic_depth(palette) (L79)
- test_depth_monotonic_for_builtin_themes(palette) (L92)
- test_depth_monotonic_for_arbitrary_palettes(bg, surface, surface_alt, border) (L109)
- test_elevation_style_tolerates_minimal_palette() (L130)
- class Bare (L133)
- test_contrast_ratio_black_on_white_is_maximum() (L153)
- test_contrast_ratio_identical_colors_is_minimum() (L158)
- test_contrast_ratio_is_symmetric() (L163)
- test_contrast_ratio_handles_shorthand_hex() (L170)
- test_contrast_ratio_unparseable_treated_as_darkest() (L175)
- test_contrast_ratio_bounds_and_symmetry(fg, bg) (L181)
tests/test_process_meta.py¶
Module: Tests for human-friendly process descriptions (honest, cached).
- class TestKnown (L12)
- test_common_system_processes(self) (L14)
- test_idle_labeled_as_not_real(self) (L20)
- test_unknown_returns_empty(self) (L25)
- class TestDescribe (L30)
- test_describe_prefers_known(self) (L32)
- test_describe_unknown_no_path_is_empty(self) (L38)
- test_describe_never_fabricates(self) (L42)
- class TestFileDescriptionCache (L48)
- test_cache_used(self) (L50)
- test_empty_path(self) (L58)
- class TestRealSystemExeIfWindows (L63)
- test_reads_a_real_description(self) (L65)
tests/test_production_hardening.py¶
Module: Tests for the production-hardening round:
- fake_env(monkeypatch, tmp_path) (L20)
- class TestExclusionsStore (L43)
- test_add_is_persisted_and_prefix_matched(self, tmp_path) (L45)
- test_discard_removes_and_persists(self, tmp_path) (L59)
- test_corrupt_file_degrades_to_empty(self, tmp_path) (L68)
- class TestScannerExclusions (L78)
- test_scan_app_skips_excluded_folders(self, fake_env) (L80)
- test_clean_refuses_excluded_paths_even_when_asked(self, tmp_path, monkeypatch) (L97)
- fake_send2trash(path) (L108)
- class TestCleanCancel (L128)
- test_cancel_event_stops_between_items(self, tmp_path, monkeypatch) (L130)
- fake_send2trash(path) (L140)
- class TestDisambiguation (L168)
- test_weaker_name_match_penalised(self, fake_env) (L170)
- class TestSettingsConsent (L202)
- test_update_check_defaults_off(self, tmp_path) (L204)
- test_leftover_restore_point_defaults_on(self, tmp_path) (L210)
- test_fields_roundtrip(self, tmp_path) (L216)
- test_corrupt_file_uses_safe_defaults(self, tmp_path) (L226)
- class TestUpdateCheckGate (L236)
- test_scheduler_noops_without_consent(self, monkeypatch) (L238)
- class FakeWin (L247)
- statusBar(self) (L249)
- class SB (L251)
- showMessage(self, a, *k) (L253)
- class TestBackupsLeftoverJournals (L267)
- test_worker_lists_journal_sessions(self, tmp_path, monkeypatch) (L269)
- class FakeRestoreManager (L281)
- list_manifests(self) (L283)
tests/test_registry_cleaner_ai.py¶
Module: Tests for the AI registry cleaner's detectors and path resolution.
- test_resolve_target_keeps_unquoted_path_with_spaces() (L47)
- test_resolve_target_strips_quotes_and_keeps_args_out() (L53)
- test_resolve_target_expands_system_root_prefix() (L59)
- test_target_candidates_includes_full_path_first_then_prefixes() (L68)
- test_target_candidates_anchors_relative_paths_at_system_roots() (L78)
- test_verifiable_true_for_missing_but_listable_parent(tmp_path) (L92)
- test_verifiable_true_for_existing_file(tmp_path) (L97)
- test_verifiable_false_when_ancestor_listing_denied(tmp_path, monkeypatch) (L104)
- fake_stat(p, a, *k) (L110)
- test_target_exists_treats_unprovable_as_present(tmp_path, monkeypatch) (L122)
- fake_stat(p, a, *k) (L128)
- test_target_exists_false_only_when_provably_missing(tmp_path) (L138)
- test_font_candidates_anchor_relative_names_at_fonts_dir() (L143)
- test_font_candidates_keep_absolute_paths() (L150)
- test_split_returns_64bit_view_for_hklm() (L160)
- test_split32_returns_32bit_view_for_hklm() (L166)
- test_split32_is_none_for_hkcu() (L173)
- test_split_rejects_unknown_hive() (L178)
- test_detect_missing_path_true_when_target_gone(tmp_path) (L188)
- test_detect_missing_path_false_when_target_exists(tmp_path) (L194)
- test_detect_missing_path_false_when_default_value_empty() (L202)
- test_detect_orphaned_service_skips_boot_and_system_start() (L208)
- test_detect_orphaned_service_true_when_verifiably_missing(tmp_path) (L219)
- test_detect_orphaned_service_false_when_image_missing_but_dll_alive(tmp_path) (L227)
- test_detect_orphaned_service_true_when_dll_verifiably_missing(tmp_path) (L236)
- test_detect_orphaned_service_never_guesses_with_no_targets() (L244)
- test_detect_shared_dll_uses_value_names_as_paths(tmp_path) (L249)
- test_scan_targets_offending_value() (L265)
- test_scan_service_category_never_flags_boot_drivers() (L280)
- throwaway_key() (L298)
- _cleaner(tmp_path) (L309)
- test_clean_deletes_value_level_orphan(throwaway_key, tmp_path) (L318)
- test_clean_deletes_key_level_orphan(throwaway_key, tmp_path) (L337)
- test_clean_backs_up_before_deleting(throwaway_key, tmp_path) (L352)
- test_clean_refuses_delete_when_subkeys_present(throwaway_key, tmp_path) (L372)
- test_clean_keep_recommendation_is_not_deleted(throwaway_key, tmp_path) (L389)
tests/test_release_infra.py¶
Module: Tests for the release infrastructure helpers.
- class TestParseVersion (L16)
- test_plain_and_v_prefixed(self) (L18)
- test_unparseable_tags_return_none(self, bad) (L27)
- class TestCheckForUpdate (L33)
- _patch_fetch(self, monkeypatch, tag) (L35)
- test_update_available_when_latest_is_newer(self, monkeypatch) (L41)
- test_up_to_date_when_equal_or_older(self, monkeypatch) (L50)
- test_offline_reports_unknown_never_raises(self, monkeypatch) (L58)
- test_unparseable_remote_tag_is_unknown(self, monkeypatch) (L65)
- class TestCrashReport (L72)
- test_excepthook_writes_crash_file(self, tmp_path, monkeypatch) (L74)
tests/test_restore_point.py¶
Module: Tests for the Windows restore-point safety module.
- class TestResultSemantics (L21)
- test_created_flags(self) (L23)
- test_throttled_is_ok_to_proceed(self) (L29)
- test_disabled_and_not_elevated_block_proceed(self) (L36)
- test_to_dict(self) (L42)
- class TestOutputParsing (L48)
- test_parse_created(self) (L50)
- test_parse_throttled(self) (L55)
- test_parse_protection_disabled(self) (L60)
- test_parse_failed_with_message(self) (L65)
- test_parse_empty_is_failed(self) (L71)
- test_parse_garbage_is_failed(self) (L76)
- class TestWmiTimeParsing (L81)
- test_wmi_datetime(self) (L83)
- test_empty(self) (L87)
- test_passthrough_non_wmi(self) (L92)
- class TestCapabilities (L97)
- test_is_supported_matches_platform(self) (L99)
- test_is_elevated_returns_bool(self) (L103)
- test_list_points_returns_list(self) (L107)
- test_create_non_windows_is_not_supported(self) (L112)
- test_create_without_admin_reports_not_elevated(self) (L120)
tests/test_s3_fifo.py¶
Module: Tests for S3-FIFO cache (SOSP'23).
- test_basic_put_get() (L10)
- test_update_existing_increments_freq() (L18)
- test_ghost_promotion() (L27)
- test_freq_bumps_and_main_reinsertion() (L44)
- test_capacity_respected() (L63)
- test_delete_and_clear() (L72)
- test_stats_hit_ratio() (L87)
- test_invalid_capacity() (L99)
- test_quick_demotion_one_hit_wonders_evicted_early() (L107)
- test_two_hits_promoted_to_main() (L122)
tests/test_scanner.py¶
Module: Tests for the filesystem Scanner component.
- test_scanner_finds_empty_files(test_env, clean_config) (L7)
- test_scanner_finds_empty_dirs(test_env, clean_config) (L18)
- test_scanner_exclude_patterns(test_env, clean_config) (L29)
- test_scanner_stats(test_env, clean_config) (L40)
tests/test_search_index_optimizer.py¶
Module: Unit tests for Windows SearchIndexOptimizer.
- test_search_index_get_status() (L12)
- test_operation_result_structure() (L19)
tests/test_secrets_page.py¶
Module: Verify the secrets scanner detects a planted credential and stays offline.
- test_run_scan_detects_planted_aws_key(tmp_path) (L6)
- test_worker_emits_offline(tmp_path) (L27)
- test_secrets_scan_makes_no_network_calls(tmp_path, monkeypatch) (L45)
- _blocked(args, *kwargs) (L51)
tests/test_secure_delete_batch.py¶
Module: Tests for the batched recycle path (production performance + correctness).
- _make_files(base, n) (L17)
- test_batch_recycle_removes_all_and_reports_progress(tmp_path) (L28)
- test_batch_recycle_cancel_stops_early(tmp_path) (L43)
- test_batch_recycle_reports_freed_bytes(tmp_path) (L56)
- test_fast_delete_batch_uses_known_sizes_and_removes_files(tmp_path) (L64)
- test_fast_delete_batch_cancel_stops_early(tmp_path) (L82)
- test_fast_delete_batch_dry_run_deletes_nothing(tmp_path) (L93)
tests/test_secure_shredder.py¶
Module: Tests for the secure file shredder (DoD, Gutmann, NIST, etc.).
- _make_file(base, name, content) (L34)
- _read_all(path) (L41)
- _patch_storage(monkeypatch) (L49)
- class TestShredStandard (L62)
- test_all_expected_standards_exist(self) (L64)
- test_member_count_at_least_17(self) (L88)
- test_pass_count_varies(self) (L92)
- test_gutmann_has_exactly_35_passes(self) (L111)
- test_name_property_returns_human_readable(self) (L118)
- test_recommended_for_ssd(self) (L124)
- test_recommended_for_hdd(self) (L130)
- test_recommended_for_unknown_always_true(self) (L136)
- test_all_passes_have_pattern_and_verify_keys(self) (L141)
- test_last_pass_always_verifies(self) (L148)
- class TestStorageType (L161)
- test_all_values(self) (L163)
- test_member_count(self) (L168)
- class TestShredResult (L178)
- test_success_result_fields(self) (L180)
- test_failure_result_with_error(self) (L195)
- test_to_dict_serializes_standard(self) (L209)
- test_to_dict_all_expected_keys(self) (L225)
- test_frozen_dataclass(self) (L248)
- class TestSecureShredderInit (L268)
- test_default_init(self) (L270)
- test_custom_init(self) (L278)
- class TestShredFileBasic (L299)
- test_shred_nonexistent_file_returns_failure(self) (L301)
- test_shred_zero_byte_file(self, tmp_path) (L308)
- test_shred_reports_correct_byte_count(self, tmp_path) (L318)
- test_shred_duration_non_negative(self, tmp_path) (L325)
- test_shred_random_1pass_removes_file(self, tmp_path) (L331)
- test_shred_nist_clear_removes_file(self, tmp_path) (L338)
- test_shred_random_3pass_removes_file(self, tmp_path) (L345)
- class TestShredRandomOnlyStandards (L358)
- test_nist_clear_1_pass(self, tmp_path) (L361)
- test_random_1pass(self, tmp_path) (L368)
- test_random_3pass(self, tmp_path) (L377)
- class TestBytePatternStandards (L407)
- test_shred_fails_with_type_error(self, tmp_path, standard) (L410)
- class TestGutmannPartialProgress (L423)
- test_gutmann_fails_after_4_random_passes(self, tmp_path) (L425)
- class TestVerifyOption (L439)
- test_verify_disabled_random_1pass_succeeds(self, tmp_path) (L441)
- test_verify_enabled_random_1pass_fails_verification(self, tmp_path) (L449)
- test_verify_disabled_prevents_crash_on_byte_patterns(self, tmp_path) (L456)
- class TestProgressCallback (L468)
- test_progress_called_for_random_1pass(self, tmp_path) (L470)
- test_progress_called_for_random_3pass(self, tmp_path) (L482)
- test_progress_totals_match_standard(self, tmp_path) (L496)
- test_progress_called_once_for_byte_standard_before_crash(self, tmp_path) (L507)
- class TestCancellation (L523)
- test_cancel_before_start_prevents_shred(self, tmp_path) (L525)
- test_cancel_during_shred_stops_early(self, tmp_path) (L536)
- progress_fn(msg, cur, total) (L542)
- test_cancel_in_shred_files_stops_batch(self, tmp_path) (L558)
- class TestShredFilesBatch (L574)
- test_batch_shreds_all_random_1pass(self, tmp_path) (L576)
- test_batch_empty_list(self) (L586)
- test_batch_cancelled_event_returns_empty(self, tmp_path) (L591)
- class TestDryRun (L608)
- test_dry_run_does_not_remove_random_standard(self, tmp_path) (L610)
- test_dry_run_zero_byte_file_not_removed(self, tmp_path) (L620)
- test_dry_run_nonzero_byte_file_size_unchanged(self, tmp_path) (L627)
- class TestAutoDetect (L642)
- test_auto_detect_uses_hdd_standard(self, tmp_path) (L644)
- test_auto_detect_disabled_defaults_to_nist_clear(self, tmp_path) (L651)
- class TestPatternBytes (L666)
- test_random_returns_correct_length(self) (L668)
- test_random_returns_different_bytes(self) (L673)
- test_int_pattern(self) (L679)
- test_int_pattern_0xff(self) (L684)
- test_crypto_erase_returns_empty(self) (L689)
- test_block_erase_returns_empty(self) (L693)
- test_random_prefix_pattern(self) (L697)
- test_bytes_pattern_raises_type_error(self) (L702)
- test_bytes_multibyte_pattern_raises_type_error(self) (L707)
- test_bytes_pattern_single_byte_also_raises(self) (L712)
- class TestVerifyPattern (L723)
- test_crypto_erase_always_true(self, tmp_path) (L725)
- test_block_erase_always_true(self, tmp_path) (L729)
- test_random_on_small_file_returns_false(self, tmp_path) (L733)
- test_nonexistent_file_returns_false(self) (L739)
- test_byte_pattern_verify_returns_false(self, tmp_path) (L743)
- class TestFileSizeEdgeCases (L754)
- test_single_byte_file_random(self, tmp_path) (L756)
- test_64k_file_random_3pass(self, tmp_path) (L765)
- test_1mb_file_nist_clear(self, tmp_path) (L775)
- class TestGutmannStructure (L788)
- test_first_four_passes_are_random(self) (L790)
- test_passes_5_to_31_are_deterministic_bytes(self) (L795)
- test_last_four_passes_are_random(self) (L801)
- test_only_final_pass_verifies(self) (L806)
tests/test_security_fixes.py¶
Module: Regression tests for the shell-injection and no-op-stub fixes.
- class TestCustomCommandHardening (L12)
- test_disabled_by_default(self) (L14)
- test_runs_without_shell_when_allowed(self) (L21)
- test_metacharacters_not_interpreted(self, tmp_path) (L33)
- class TestAppUninstallerImportSafe (L47)
- test_import_and_construct(self) (L49)
- test_uninstall_missing_string_returns_false(self) (L58)
tests/test_shutdown_safety.py¶
Module: Worker-shutdown safety: never call QThread.terminate().
- app() (L35)
- window(app) (L41)
- class _CooperativeWorker (L55)
- init(self, poll_s) (L61)
- cancel(self) (L67)
- run(self) (L71)
- class _StubbornWorker (L80)
- init(self, sleep_s) (L90)
- cancel(self) (L96)
- run(self) (L100)
- test_cooperative_worker_lets_close_return_promptly(app, window) (L106)
- _wait_for_natural_completion(thread, timeout_s) (L120)
- test_uncooperative_worker_is_detached_not_terminated(app, window) (L136)
- test_shutdown_workers_never_calls_terminate(app, window, monkeypatch) (L163)
- _tracking_terminate(self) (L170)
- test_multiple_workers_shut_down_within_one_shared_deadline(app, window) (L188)
tests/test_sidebar_chevrons_and_icons.py¶
Module: Regression tests for sidebar navigation expand/collapse chevrons and icon color consistency.
- app() (L17)
- test_sidebar_group_headers_have_valid_chevrons_and_escaped_titles(app) (L22)
- test_sidebar_expand_collapse_preserves_chevrons(app) (L49)
- test_all_132_pages_have_unique_icons_with_uniform_palette_tint(app) (L74)
tests/test_sieve_cache.py¶
Module: Unit tests for the NSDI 2024 SIEVE Cache Algorithm.
- test_sieve_basic_put_get() (L8)
- test_sieve_eviction_order() (L22)
- test_sieve_stats_and_hit_ratio() (L46)
- test_sieve_delete_and_clear() (L66)
- test_sieve_concurrency_safety() (L80)
- worker(offset) (L84)
tests/test_smart_suggest.py¶
Module: Tests for the offline Smart Suggestions learning engine.
- _ctx(category, ext, size, age, path) (L13)
- class TestFeaturize (L18)
- test_includes_bias_and_known_features(self) (L20)
- test_handles_sparse_context(self) (L30)
- class TestLearning (L36)
- test_score_in_unit_interval(self, tmp_path) (L38)
- test_learns_to_favor_accepted_pattern(self, tmp_path) (L43)
- test_learns_to_avoid_skipped_pattern(self, tmp_path) (L55)
- test_recommend_defaults_true_until_trained(self, tmp_path) (L63)
- test_rank_orders_by_score(self, tmp_path) (L69)
- class TestBoundsAndPersistence (L81)
- test_model_size_is_capped(self, tmp_path) (L83)
- test_save_and_reload_roundtrip(self, tmp_path) (L92)
- test_corrupt_model_does_not_crash(self, tmp_path) (L106)
- test_reset(self, tmp_path) (L113)
tests/test_srum_bam_cleaner.py¶
Module: Unit and integration tests for Windows BAM/DAM and SRUM forensic cleaner.
- test_filetime_conversion() (L15)
- test_srum_query() (L34)
- test_srum_bam_scan() (L42)
- test_clean_bam_empty() (L52)
tests/test_staging_shelf.py¶
Module: Tests for the Interactive Staging Shelf & Clipboard Dock in NexusExplorer.
- qapp() (L15)
- test_nexus_clipboard_cut_copy_clear(qapp) (L23)
- test_staging_shelf_widget_basic(qapp) (L50)
- test_staging_shelf_paste_requested_signal(qapp) (L101)
- test_preview_pane_with_staging_shelf(qapp) (L125)
- test_file_table_model_drag_mime_data(qapp) (L146)
- test_staged_item_row_attributes_and_drag(qapp) (L167)
- test_python_transfer_fallback_copy_and_move(qapp) (L185)
- test_context_menu_paste_option(qapp) (L220)
- test_python_transfer_locked_file_handling(qapp) (L247)
- test_preview_pane_transfer_dock_integration(qapp) (L294)
- class _DummyEngine (L301)
- test_read_only_delete_retry(qapp) (L332)
- test_transfer_queue_is_busy_property(qapp) (L366)
- class _DummyEngine (L369)
- test_staging_shelf_drag_and_drop_onto_empty_state(qapp) (L380)
- test_file_checksum_dialog(qapp) (L416)
tests/test_startup_imports.py¶
Module: Startup-cost and public-API contracts for the package import root.
- _run(code) (L32)
- test_package_import_does_not_load_heavy_dependencies() (L50)
- test_engine_import_does_not_load_recycle_bin_stack() (L62)
- test_engine_public_api_still_imports() (L74)
- test_legacy_convenience_exports_still_resolve() (L83)
- test_version_is_importable_without_side_effects() (L92)
- test_unknown_attribute_still_raises_attribute_error() (L102)
- test_has_trash_flag_contract_preserved() (L114)
- test_legacy_cli_import_does_not_load_optional_heavy_sdks() (L133)
- test_legacy_cli_still_exposes_every_command() (L145)
- test_legacy_cli_registry_flag_contract_preserved() (L161)
- test_legacy_cli_unknown_attribute_raises_attribute_error() (L170)
tests/test_startup_optimizer.py¶
Module: Tests for the startup optimizer — enumeration, delays, persistence, cancel.
- class TestAppType (L30)
- test_all_members(self) (L32)
- test_member_count(self) (L37)
- class TestStartupEntry (L45)
- test_required_fields_exist(self) (L65)
- test_optional_fields_exist(self) (L70)
- test_defaults(self) (L75)
- test_to_dict_round_trip(self) (L93)
- test_slots_prevents_arbitrary_attr(self) (L112)
- class TestInit (L130)
- test_default_progress_and_cancel(self) (L132)
- test_custom_progress_and_cancel(self) (L139)
- class TestConfigPath (L153)
- test_config_path_is_json(self, tmp_path, monkeypatch) (L155)
- test_config_path_creates_dirs(self, tmp_path, monkeypatch) (L162)
- class TestPersistence (L172)
- test_load_delays_missing_file(self, tmp_path, monkeypatch) (L174)
- test_save_and_load_round_trip(self, tmp_path, monkeypatch) (L180)
- test_load_corrupt_json_returns_empty(self, tmp_path, monkeypatch) (L189)
- class TestDelayOperations (L201)
- test_set_delay_persists(self, tmp_path, monkeypatch) (L203)
- test_set_delay_clamps_to_0_120(self, tmp_path, monkeypatch) (L211)
- test_set_delay_with_conditions(self, tmp_path, monkeypatch) (L220)
- test_remove_delay(self, tmp_path, monkeypatch) (L229)
- test_remove_delay_nonexistent_is_noop(self, tmp_path, monkeypatch) (L237)
- class TestRegistryEnumeration (L248)
- test_empty_on_no_keys(self, monkeypatch) (L250)
- fake_open(hive, sub, reserved, access) (L254)
- test_returns_entries(self, monkeypatch) (L262)
- class FakeKey (L268)
- enter(self) (L270)
- exit(self, *a) (L274)
- fake_open(hive, sub, reserved, access) (L278)
- fake_enum(key, i) (L282)
- patched_reg() (L308)
- class TestStartupFolderEnumeration (L333)
- test_no_env_vars_returns_empty(self, monkeypatch) (L335)
- test_finds_lnk_files(self, tmp_path, monkeypatch) (L342)
- patched() (L352)
- class TestClassifyEntry (L379)
- test_nonexistent_exe_no_change(self, tmp_path) (L381)
- test_pe_with_gui_symbols(self, tmp_path) (L397)
- test_pe_with_network_symbols(self, tmp_path) (L414)
- test_pe_with_service_symbols(self, tmp_path) (L430)
- class TestImpactRating (L457)
- _make_opt_with_mock_enumerate(self, tmp_path, monkeypatch) (L459)
- test_impact_low_for_small_exe(self, tmp_path, monkeypatch) (L476)
- fake_reg() (L481)
- test_impact_high_for_large_exe(self, tmp_path, monkeypatch) (L512)
- fake_reg() (L518)
- class TestBackupRestore (L553)
- test_backup_creates_file(self, tmp_path, monkeypatch) (L555)
- test_restore_overwrites_current(self, tmp_path, monkeypatch) (L566)
- class TestProgressCallback (L581)
- test_progress_called_on_enumerate_error(self, tmp_path, monkeypatch) (L583)
- boom() (L588)
- class TestCancellation (L612)
- test_cancel_stops_launch(self, tmp_path, monkeypatch) (L614)
- test_cancel_mid_loop(self, tmp_path, monkeypatch) (L638)
- cancel_soon() (L643)
- class TestStartupLocations (L678)
- test_locations_list_not_empty(self) (L680)
- test_all_entries_have_valid_prefix(self) (L684)
- test_categories_are_known(self) (L689)
- class TestExports (L699)
- test_all_contains_expected(self) (L701)
tests/test_storage_sense.py¶
Module: Tests for the Storage Sense config reader (interpretation + gating).
- class TestInterpret (L12)
- test_unconfigured(self) (L14)
- test_enabled_weekly(self) (L20)
- test_recycle_bin_config(self) (L27)
- test_downloads_config(self) (L34)
- test_low_space_cadence(self) (L40)
- test_unknown_cadence_is_custom(self) (L45)
- class TestValidation (L51)
- test_set_cadence_rejects_bad(self) (L53)
- test_set_recycle_days_rejects_bad(self) (L58)
- class TestSupport (L64)
- test_is_supported(self) (L66)
- test_get_status_shape(self) (L70)
tests/test_system_info.py¶
Module: Tests for the read-only System Information collector.
- test_platform_info_has_core_fields() (L8)
- test_snapshot_structure() (L16)
- test_memory_info_sane() (L24)
- test_disk_info_entries_sane() (L33)
- test_cpu_info_sane() (L41)
tests/test_system_repair.py¶
Module: Tests for the SFC/DISM/CHKDSK repair orchestrator (parsers + gating).
- class TestSfcParse (L17)
- test_clean(self) (L19)
- test_repaired(self) (L25)
- test_partial(self) (L32)
- test_error_when_none(self) (L40)
- class TestDismParse (L46)
- test_clean(self) (L48)
- test_repairable(self) (L53)
- test_repaired(self) (L59)
- test_error_code(self) (L65)
- class TestChkdskParse (L72)
- test_clean(self) (L74)
- test_errors(self) (L80)
- test_invalid_drive(self) (L86)
- class TestGating (L92)
- test_is_supported(self) (L94)
- test_is_elevated_bool(self) (L98)
- test_dism_invalid_action_defaults(self) (L102)
- class TestDecode (L111)
- test_utf16_with_nuls(self) (L113)
- test_plain_utf8(self) (L119)
- test_empty(self) (L123)
tests/test_tablemodel.py¶
Module: Contracts for the model/view table foundation.
- app() (L37)
- _records(count) (L42)
- _columns() (L50)
- binding(app) (L65)
- test_model_reports_shape_from_records_and_columns(binding) (L78)
- test_display_supports_field_names_and_callables(binding) (L89)
- test_missing_field_renders_empty_not_none(app) (L98)
- test_cells_are_read_only(binding) (L105)
- test_sorting_uses_the_typed_key_not_the_display_string(binding) (L115)
- test_sort_role_exposes_the_raw_value(binding) (L125)
- test_filter_matches_searchable_columns_only(binding) (L135)
- test_filter_is_case_insensitive_and_clearable(binding) (L148)
- test_filtering_does_not_discard_the_records(binding) (L156)
- test_selected_record_is_correct_under_sorting(binding) (L166)
- test_selected_record_is_none_without_selection(binding) (L177)
- test_select_where_reselects_by_identity(binding) (L183)
- test_select_where_returns_false_when_absent(binding) (L193)
- test_record_role_returns_the_object_itself(binding) (L198)
- test_set_records_replaces_everything(binding) (L208)
- test_clear_empties_the_model(binding) (L215)
- test_record_at_is_bounds_safe(binding) (L222)
- test_works_with_attribute_records_not_just_dicts(app) (L229)
- class Device (L231)
- init(self, ip) (L233)
- test_large_result_set_costs_no_per_cell_objects(binding) (L245)
tests/test_tabs_gating.py¶
Module: Headless gating + repair tests for legacy GUI tabs.
- app() (L42)
- make_tab(app) (L48)
- _make(tab_cls) (L54)
- _link_item(path) (L61)
- _registry_item(tmp_path) (L74)
- test_free_space_checkbox_disabled_on_free_tier(app, make_tab, monkeypatch) (L93)
- test_free_space_checkbox_enabled_when_entitled(app, make_tab, monkeypatch) (L103)
- test_multipass_spinbox_capped_without_entitlement(app, make_tab, monkeypatch) (L113)
- test_multipass_allowed_keeps_full_range(app, make_tab, monkeypatch) (L128)
- _make_broken_symlink(tmp_path) (L142)
- test_repair_dry_run_changes_nothing(app, tmp_path) (L153)
- test_repair_removes_only_the_link(app, tmp_path, monkeypatch) (L174)
- test_repair_dry_run_plans_without_touching_fs(app, tmp_path, monkeypatch) (L189)
- test_repair_removes_dangling_junction_link_only(app, tmp_path) (L208)
- test_repair_excludes_registry_refs(app, tmp_path) (L233)
- test_repair_recycles_shortcut_via_send2trash(app, tmp_path, monkeypatch) (L244)
- fake_trash(p) (L260)
- test_repair_refuses_real_directory(app, tmp_path) (L279)
- _silence_message_boxes(monkeypatch, module) (L297)
- class FakeBoxes (L300)
- information(self, a, *k) (L302)
- warning(self, a, *k) (L306)
- critical(self, a, *k) (L310)
- test_schedule_button_disabled_on_free_tier(app, make_tab, monkeypatch) (L317)
- test_schedule_button_enabled_and_creates_task(app, make_tab, monkeypatch) (L327)
- class FakeScheduler (L331)
- init(self, config) (L333)
- create_scheduled_task(self, name, command, schedule_type, schedule_params) (L337)
- test_schedule_dialog_cancel_creates_nothing(app, make_tab, monkeypatch) (L368)
- class FakeScheduler (L372)
- init(self, config) (L374)
- create_scheduled_task(self, args, *kwargs) (L378)
tests/test_task_manager.py¶
Module: Tests for the task-manager backend (live snapshot + honest reconciliation).
- tm() (L13)
- class TestSnapshot (L19)
- test_snapshot_shape(self, tm) (L21)
- test_cpu_block(self, tm) (L27)
- test_processes_have_fields(self, tm) (L35)
- test_processes_sorted_by_memory_desc(self, tm) (L45)
- test_idle_process_excluded(self, tm) (L51)
- test_total_cpu_in_range(self, tm) (L58)
- test_per_process_cpu_normalized(self, tm) (L63)
- class TestMemoryReconciliation (L72)
- test_core_fields_present(self, tm) (L74)
- test_used_is_total_minus_available(self, tm) (L81)
- test_no_false_equation(self, tm) (L86)
- test_hardware_reserved_consistent_if_present(self, tm) (L96)
- class TestEndProcess (L104)
- test_end_nonexistent_pid(self, tm) (L106)
- test_end_returns_tuple(self, tm) (L113)
- test_singleton_instance() (L119)
tests/test_temp_cleaner.py¶
Module: Tests for :mod:cortex_unified.core.temp_cleaner and the clean-temp CLI.
- _backdate(path, ts) (L24)
- _make_old(path, size, ts) (L29)
- temp_roots(tmp_path, monkeypatch) (L38)
- _cleaner(**kwargs) (L51)
- class TestScan (L57)
- test_finds_old_files_with_sizes_and_locations(self, temp_roots) (L59)
- test_skips_fresh_files(self, temp_roots) (L76)
- test_min_age_zero_includes_fresh_files(self, temp_roots) (L88)
- test_exclude_patterns_honored(self, temp_roots) (L98)
- test_unreadable_and_missing_roots_are_ignored(self, tmp_path, monkeypatch) (L111)
- test_symlinked_directory_is_never_traversed(self, temp_roots) (L129)
- test_junctioned_directory_is_never_traversed(self, temp_roots) (L151)
- class TestTotals (L176)
- test_total_reclaimable_before_scan_is_zero(self) (L178)
- test_total_reclaimable_sums_scan_results(self, temp_roots) (L182)
- class TestClean (L193)
- test_dry_run_touches_nothing(self, temp_roots) (L195)
- test_use_trash_removes_files_from_scan_results(self, temp_roots, monkeypatch) (L210)
- fake_send2trash(path) (L216)
- test_without_trash_files_are_unlinked(self, temp_roots) (L236)
- test_refuses_paths_outside_discovered_roots(self, temp_roots) (L247)
- test_never_deletes_files_modified_within_min_age(self, temp_roots) (L265)
- class TestCleanTempCLI (L284)
- test_help_lists_command(self) (L286)
- test_dry_run_lists_findings_and_deletes_nothing(self, temp_roots) (L292)
- test_delete_flag_cleans_after_confirmation_skip(self, temp_roots) (L307)
- test_trash_flag_routes_through_send2trash(self, temp_roots, monkeypatch) (L319)
- fake_send2trash(path) (L324)
tests/test_utils.py¶
Module: Tests for core filesystem utility helpers.
- test_normalize_path() (L7)
tests/test_vhdx_manager.py¶
Module: Virtual-disk (VHDX) discovery and compaction safety.
- fake_vhdx(tmp_path) (L33)
- test_saving_is_unknown_without_a_guest_measurement(fake_vhdx) (L44)
- test_saving_is_host_size_minus_guest_usage(fake_vhdx) (L53)
- test_saving_never_goes_negative(fake_vhdx) (L61)
- test_running_disk_names_the_blocking_process(fake_vhdx) (L68)
- test_missing_file_is_reported_not_offered(tmp_path) (L77)
- test_disk_to_dict_is_json_ready(fake_vhdx) (L84)
- test_list_disks_dedupes_sorts_and_flags_blockers(monkeypatch, tmp_path) (L99)
- test_real_discovery_never_raises() (L133)
- test_unsupported_platform_returns_empty(monkeypatch) (L141)
- test_compact_refuses_while_runtime_holds_the_disk(monkeypatch, fake_vhdx) (L154)
- _boom(_a, *_k) (L160)
- test_compact_reports_measured_delta(monkeypatch, fake_vhdx) (L174)
- _shrink(script, timeout, cancel_event) (L179)
- test_compact_is_honest_when_nothing_was_reclaimed(monkeypatch, fake_vhdx) (L197)
- test_compact_surfaces_permission_failure(monkeypatch, fake_vhdx) (L211)
- test_compact_missing_file_fails_clearly(tmp_path) (L224)
- test_failure_messages_are_actionable() (L232)
- test_compact_result_freed_bytes_never_negative(tmp_path) (L240)
- test_decode_handles_utf16_console_output() (L247)
- test_sparse_mode_is_wsl_only(fake_vhdx) (L254)
tests/test_video_duplicate_finder.py¶
Module: Tests for video near-duplicate detection (keyframe pHash + temporal).
- _make_fake_video(path, payload, size_kb) (L16)
- test_fingerprint_is_list(tmp_path) (L26)
- test_identical_videos_compare_high(tmp_path) (L35)
- test_different_videos_compare_low(tmp_path) (L46)
- test_video_compare_empty() (L61)
- test_video_compare_identity() (L67)
- test_finder_groups_identical_videos(tmp_path) (L75)
- test_finder_excludes_non_video(tmp_path) (L90)
- test_finder_respects_exclude_dirs(tmp_path) (L98)
- test_finder_stats(tmp_path) (L116)
tests/test_wan_audit.py¶
Module: Synthetic tests for the local-only, read-only WAN auditor.
- test_public_ip_classification(address, expected) (L36)
- test_ssrf_guard_requires_literal_private_host_on_local_network() (L41)
- test_xml_rejects_entities_and_excessive_depth() (L59)
- test_igd_control_url_is_resolved_and_kept_local(monkeypatch) (L68)
- test_igd_rejects_control_url_to_other_network(monkeypatch) (L86)
- _soap_response(action, content) (L102)
- test_soap_allowlist_and_mapping_parser(monkeypatch) (L111)
- class SyntheticAuditor (L134)
- local_interfaces() (L137)
- default_gateway() (L142)
- dns_servers() (L147)
- discover_locations(self, networks, cancel_event) (L151)
- _load_igd(self, location, networks) (L155)
- _soap(self, url, service_type, action, arguments) (L159)
- test_audit_is_json_safe_and_contains_local_context() (L168)
- test_pre_cancelled_audit_does_not_discover(monkeypatch) (L179)
tests/test_winapp2_cleaner.py¶
Module: Unit and integration tests for Winapp2Cleaner engine.
- test_winapp2_cleaner_initialization() (L16)
- test_winapp2_expand_vars(monkeypatch) (L25)
- test_winapp2_path_safety() (L37)
- test_winapp2_scan_and_clean(tmp_path, monkeypatch) (L49)
tests/test_windows_update.py¶
Module: Tests for Windows Update surfacing (parsers + gating).
- class TestPendingParse (L12)
- test_empty(self) (L14)
- test_single(self) (L19)
- test_array(self) (L31)
- test_titleless_skipped(self) (L37)
- test_no_kb(self) (L41)
- class TestHistoryParse (L47)
- test_success_and_fail(self) (L49)
- test_date_formatted(self) (L58)
- test_empty(self) (L63)
- class TestGating (L69)
- test_is_supported(self) (L71)
- test_last_activity_shape(self) (L75)
- test_check_pending_returns_list(self) (L80)
- test_to_dict(self) (L86)
scripts — 22 files¶
scripts/audit_all_page_functions.py¶
Module: Deep Functional & UI Inspection across all 59 Pages.
- audit_all_pages() (L28)
scripts/audit_imports.py¶
Module: Static import health audit for the cortex_unified package.
- module_symbols(path) (L27)
- get_syms(modname) (L76)
scripts/audit_pages.py¶
Module: Audit script to verify that all registered pages load their factory classes.
scripts/audit_system_tools.py¶
Module: Audit script to inspect classes and functions across all system tools.
scripts/build_exe.py¶
Module: Compile run_gui.py into a distributable Windows executable via PyInstaller.
- build_app() (L11)
scripts/check_all_structure_files.py¶
Module: Deep, exhaustive, file-by-file verification of every program file in structure.txt.
- find_all_python_files() (L21)
- verify_file(p) (L30)
- main() (L102)
scripts/check_hardcoded_paths.py¶
Module: Diagnostic script to check for hardcoded Windows paths.
- analyze_paths() (L7)
scripts/check_lint_issues.py¶
Module: Diagnostic script to check for undefined names and lint anomalies.
- check_undefined_names_in_file(filepath) (L8)
scripts/deep_codebase_inspection.py¶
Module: Deep exhaustive codebase inspector.
- scan_file(filepath) (L28)
- main() (L95)
scripts/deep_inspect_placeholders.py¶
Module: Deep inspector for placeholders, TODOs, stubs, and mocks across all src/ files.
scripts/gen_inventory.py¶
Module: Generate docs/FUNCTION_INVENTORY.md: every class/function in every .py file.
- sig(fn) (L13)
- walk(body, depth, out, counter) (L26)
- main() (L39)
scripts/generate_complete_features.py¶
Module: Generate the master exhaustive COMPLETE_FEATURES_CHECKLIST.md covering every feature and module.
- get_module_info(p) (L9)
scripts/generate_feature_directory.py¶
Module: Generate docs/FEATURE_DIRECTORY.md listing all 118 UI pages across all groups.
scripts/generate_program_checklist.py¶
Module: Generate an exhaustive, program-file-by-program-file verification checklist.
- parse_file(p) (L8)
scripts/run_all_tests.py¶
Module: Runner script to execute all unit tests and collect failure reports.
- class FailureCollector (L9)
- init(self) (L11)
- pytest_runtest_logreport(self, report) (L17)
scripts/scan_codebase.py¶
Module: Scanner script to detect placeholders, TODOs, and mock patterns.
scripts/stress_test_gui_all_actions.py¶
Module: Deep interactive action stress-test for Cortex Cleaner GUI.
- pump_events(app, duration_ms) (L40)
- main() (L48)
scripts/test_all_pages.py¶
Module: Diagnostic script to verify offscreen instantiation of all UI pages.
scripts/test_navigation.py¶
Module: Diagnostic script to test UI navigation and theme application.
scripts/update_structure_txt.py¶
Module: Generate an up-to-date, clean structure.txt of the entire repository.
- build_tree(dir_path, prefix) (L28)
- main() (L58)
scripts/verify_modules.py¶
Module: Quick functional verification of core system modules.
scripts/verify_production_readiness.py¶
Module: Comprehensive Production Readiness & Diagnostics Verification Suite.
run_gui.py — 1 files¶
run_gui.py¶
Module: Launch the Cortex Workstation GUI from a source checkout.
- main() (L26)
Totals: 485 files, 8682 defs/classes (incl. nested)