flowchart TD
    subgraph htmlcov_coverage_html_cb_dd2e7eb5
        htmlcov__coverage_html_cb_dd2e7eb5__debounce["debounce"]
        htmlcov__coverage_html_cb_dd2e7eb5__timeoutId["timeoutId"]
        htmlcov__coverage_html_cb_dd2e7eb5__checkVisible["checkVisible"]
        htmlcov__coverage_html_cb_dd2e7eb5__rect["rect"]
        htmlcov__coverage_html_cb_dd2e7eb5__viewBottom["viewBottom"]
        htmlcov__coverage_html_cb_dd2e7eb5__viewTop["viewTop"]
        htmlcov__coverage_html_cb_dd2e7eb5__on_click["on_click"]
        htmlcov__coverage_html_cb_dd2e7eb5__elt["elt"]
        htmlcov__coverage_html_cb_dd2e7eb5__getCellValue["getCellValue"]
        htmlcov__coverage_html_cb_dd2e7eb5__cell["cell"]
        htmlcov__coverage_html_cb_dd2e7eb5__child["child"]
        htmlcov__coverage_html_cb_dd2e7eb5__rowComparator["rowComparator"]
        htmlcov__coverage_html_cb_dd2e7eb5__valueA["valueA"]
        htmlcov__coverage_html_cb_dd2e7eb5__valueB["valueB"]
        htmlcov__coverage_html_cb_dd2e7eb5__sortColumn("sortColumn CC=11")
        htmlcov__currentSortOrder["currentSortOrder"]
        htmlcov__current_direction["current_direction"]
        htmlcov__coverage_html_cb_dd2e7eb5__stored_list["stored_list"]
        htmlcov__saved_filter_value["saved_filter_value"]
        htmlcov__saved_hide100_value["saved_hide100_value"]
        htmlcov__coverage_html_cb_dd2e7eb5__table{{table CC=21}}
        htmlcov__table_body_rows{{table_body_rows CC=21}}
        htmlcov__coverage_html_cb_dd2e7eb5__no_rows{{no_rows CC=21}}
        htmlcov__coverage_html_cb_dd2e7eb5__footer{{footer CC=21}}
        htmlcov__coverage_html_cb_dd2e7eb5__ratio_columns{{ratio_columns CC=21}}
        htmlcov__coverage_html_cb_dd2e7eb5__filter_handler{{filter_handler CC=21}}
        htmlcov__coverage_html_cb_dd2e7eb5__totals["totals"]
        htmlcov__coverage_html_cb_dd2e7eb5__text("text CC=12")
        htmlcov__coverage_html_cb_dd2e7eb5__casefold("casefold CC=12")
        htmlcov__coverage_html_cb_dd2e7eb5__hide100("hide100 CC=12")
        htmlcov__coverage_html_cb_dd2e7eb5__show["show"]
        htmlcov__coverage_html_cb_dd2e7eb5__celltext["celltext"]
        htmlcov__coverage_html_cb_dd2e7eb5__places["places"]
        htmlcov__coverage_html_cb_dd2e7eb5__by_region["by_region"]
        htmlcov__sorted_by_region["sorted_by_region"]
        htmlcov__coverage_html_cb_dd2e7eb5__frag["frag"]
        htmlcov__coverage_html_cb_dd2e7eb5__btn["btn"]
        htmlcov__coverage_html_cb_dd2e7eb5__category["category"]
        htmlcov__coverage_html_cb_dd2e7eb5__helpCheck["helpCheck"]
        htmlcov__coverage_html_cb_dd2e7eb5__classes["classes"]
        htmlcov__coverage_html_cb_dd2e7eb5__match["match"]
        htmlcov__coverage_html_cb_dd2e7eb5__c["c"]
        htmlcov__coverage_html_cb_dd2e7eb5__probe["probe"]
        htmlcov__coverage_html_cb_dd2e7eb5__begin["begin"]
        htmlcov__coverage_html_cb_dd2e7eb5__next_indicator["next_indicator"]
        htmlcov__coverage_html_cb_dd2e7eb5__probe_line["probe_line"]
        htmlcov__chunk_indicator["chunk_indicator"]
        htmlcov__coverage_html_cb_dd2e7eb5__end["end"]
        htmlcov__coverage_html_cb_dd2e7eb5__prev_indicator["prev_indicator"]
        htmlcov__coverage_html_cb_dd2e7eb5__line["line"]
        htmlcov__coverage_html_cb_dd2e7eb5__the_indicator("the_indicator CC=8")
        htmlcov__coverage_html_cb_dd2e7eb5__indicator["indicator"]
        htmlcov__coverage_html_cb_dd2e7eb5__element["element"]
        htmlcov__temp_scroll_marker["temp_scroll_marker"]
        htmlcov__coverage_html_cb_dd2e7eb5__marker_scale["marker_scale"]
        htmlcov__coverage_html_cb_dd2e7eb5__line_height["line_height"]
        htmlcov__coverage_html_cb_dd2e7eb5__scroll_marker["scroll_marker"]
        htmlcov__coverage_html_cb_dd2e7eb5__line_top["line_top"]
        htmlcov__coverage_html_cb_dd2e7eb5__line_number["line_number"]
        htmlcov__coverage_html_cb_dd2e7eb5__header["header"]
    end
    subgraph src_proxym
        src__proxym__ctl___dispatch["_dispatch"]
        src__proxym__ctl___build_serve_parser["_build_serve_parser"]
        src__proxym__ctl___build_accounts_parser["_build_accounts_parser"]
        src__proxym__ctl___build_vm_parser["_build_vm_parser"]
        src__proxym__ctl___build_browser_parser["_build_browser_parser"]
        src__proxym__ctl__main["main"]
        src__proxym__cache__FileSnapshot__from_path["from_path"]
        src__proxym__cache__DeltaBuffer____init__["__init__"]
        src__proxym__cache__DeltaBuffer__scan("scan CC=9")
        src__proxym__cache__DeltaBuffer__compute_delta["compute_delta"]
        src___make_full_payload["_make_full_payload"]
        src__proxym__cache__DeltaBuffer___classify_changes("_classify_changes CC=9")
        src__proxym__cache__DeltaBuffer___build_diff_text("_build_diff_text CC=8")
        src___build_full_context["_build_full_context"]
        src__proxym__cache__DeltaBuffer___estimate_tokens["_estimate_tokens"]
        src__proxym__cache__DeltaBuffer__get_stats["get_stats"]
        src__proxym__middleware__AuthMiddleware____init__["__init__"]
        src__proxym__middleware__AuthMiddleware__dispatch["dispatch"]
        src__dispatch["dispatch"]
        src__to_dict["to_dict"]
        src__detect_firefox_profiles("detect_firefox_profiles CC=9")
        src__detect_chrome_profiles["detect_chrome_profiles"]
        src__detect_chromium_profiles["detect_chromium_profiles"]
        src__detect_all_profiles["detect_all_profiles"]
        src__generate_app_data_sync("generate_app_data_sync CC=8")
        src___detect_chromium_family("_detect_chromium_family CC=9")
        src___scan_firefox_cookies["_scan_firefox_cookies"]
        src___scan_chrome_cookies["_scan_chrome_cookies"]
        src__proxym__virt__browser_profiles___dir_size_mb["_dir_size_mb"]
        src___chrome_config_dir["_chrome_config_dir"]
        src__proxym__virt___check___check_clonebox["_check_clonebox"]
        src____init__["__init__"]
        src__is_available["is_available"]
        src__version["version"]
        src__create_vm["create_vm"]
        src__start_vm["start_vm"]
        src__stop_vm["stop_vm"]
        src__snapshot["snapshot"]
        src__restore_snapshot["restore_snapshot"]
        src__health["health"]
        src__delete_vm["delete_vm"]
        src__list_vms["list_vms"]
        src__detect["detect"]
        src__export_encrypted["export_encrypted"]
        src__get_profile_path["get_profile_path"]
        src__generate_profile_name["generate_profile_name"]
        src___find_bin["_find_bin"]
        src___run["_run"]
        src__filter_projects("filter_projects CC=9")
        src___run["_run"]
        src__check_libvirt_available["check_libvirt_available"]
        src___generate_domain_xml["_generate_domain_xml"]
        src__create_vm["create_vm"]
        src___create_vm_clonebox["_create_vm_clonebox"]
        src___create_vm_virsh["_create_vm_virsh"]
        src__start_vm["start_vm"]
        src___start_vm_clonebox["_start_vm_clonebox"]
        src__stop_vm["stop_vm"]
        src___stop_vm_clonebox["_stop_vm_clonebox"]
        src__pause_vm["pause_vm"]
    end
    src__proxym__ctl___dispatch --> src__proxym__cli__vms__cmd_vm_action
    src__proxym__ctl__main --> src__proxym__config__get_settings
    src__proxym__ctl__main --> src__proxym__ctl___build_serve_parser
    src__proxym__ctl__main --> src__proxym__ctl___build_accounts_parser
    src__proxym__ctl__main --> src__proxym__ctl___build_vm_parser
    src__proxym__ctl__main --> src__proxym__ctl___build_browser_parser
    src__proxym__ctl__main --> src__proxym__ctl___dispatch
    src__proxym__cache__DeltaBuffer__scan --> src__proxym__cache__FileSnapshot__from_path
    src__detect_chrome_profiles --> src___detect_chromium_family
    src__detect_chromium_profiles --> src___detect_chromium_family
    src__detect_all_profiles --> src__detect_firefox_profiles
    src__detect_all_profiles --> src__detect_chrome_profiles
    src__detect_all_profiles --> src__detect_chromium_profiles
    src__generate_app_data_sync --> src___chrome_config_dir
    src___detect_chromium_family --> src___scan_chrome_cookies
    src___get_clonebox --> src__proxym__virt___check___check_clonebox
    src__proxym__cli__system__cmd_status --> src__proxym__cli___client__make_client
    src__proxym__cli__system__cmd_models --> src__proxym__cli___client__make_client
    src__proxym__cli__system__cmd_models --> src__proxym__cli___client__print_table
    src__proxym__cli__browser__cmd_browser_list --> src__detect_all_profiles
    src__proxym__cli__browser__cmd_browser_list --> src__proxym__cli___client__print_table
    src__proxym__cli__browser__cmd_browser_assign --> src__proxym__cli___client__make_client
    src__proxym__cli__browser__cmd_browser_sync --> src__proxym__cli___client__make_client
    src__proxym__cli__browser__cmd_browser_snapshot --> src__proxym__cli___client__make_client
    src__proxym__cli__vms__cmd_vm_list --> src__proxym__cli___client__make_client
    src__proxym__cli__vms__cmd_vm_list --> src__proxym__cli___client__print_table
    src__proxym__cli__vms__cmd_vm_create --> src__proxym__cli___client__make_client
    src__proxym__cli__vms__cmd_vm_action --> src__proxym__cli___client__make_client
    src__proxym__cli__vms__cmd_vm_switch --> src__proxym__cli___client__make_client
    src__proxym__cli__vms___find_vm --> src__proxym__cli___client__make_client
    src__proxym__cli__vms__cmd_vm_ssh --> src__proxym__cli__vms___find_vm
    src__proxym__cli__vms__cmd_vm_logs --> src__proxym__cli__vms___find_vm
    src__proxym__cli___client__make_client --> src__proxym__config__get_settings
    src__proxym__cli__accounts__cmd_accounts_list --> src__proxym__cli___client__make_client
    src__proxym__cli__accounts__cmd_accounts_list --> src__proxym__cli___client__print_table
    src__proxym__cli__accounts__cmd_accounts_add --> src__proxym__cli___client__make_client
    src__proxym__cli__accounts__cmd_accounts_costs --> src__proxym__cli___client__make_client
    src__proxym__cli__accounts__cmd_accounts_costs --> src__proxym__cli___client__print_table
    src__proxym__providers__cheapest_model --> src__proxym__providers__models_for_tier
    src__select_servers --> src__proxym__context__tool_selector__select_tools
    src__proxym__context__detector__detect_project --> src__proxym__context__detector___extract_paths
    src__proxym__context__detector__detect_project --> src___extract_system_text
    src__proxym__context__detector__detect_project --> src__proxym__context__detector___from_directory
    src__proxym__context__detector__detect_project --> src__proxym__context__detector___find_common_root
    src__proxym__context__detector__detect_project --> src___from_system_prompt
    src__proxym__context__detector___from_directory --> src__proxym__context__detector___get_git_remote
    src__proxym__context__detector___from_directory --> src__make_project_id
    src__proxym__context__detector___from_directory --> src__proxym__context__detector___detect_stack
    src__proxym__context__detector___detect_stack --> src__proxym__context__detector___detect_frameworks
    src___from_system_prompt --> src__make_project_id
    src__proxym__context__tool_selector__select_tools --> src___detect_intent
    src__proxym__router__analyze_request --> src__proxym__router___extract_user_text
    src__proxym__router__analyze_request --> src__proxym__router___extract_system_text
    src__proxym__router__analyze_request --> src__proxym__router___match_patterns
    src__proxym__router__analyze_request --> src__proxym__router___detect_image_blocks
    src__proxym__router__analyze_request --> src__proxym__router___apply_heuristics
    src__proxym__router__analyze_request --> src__proxym__router___select_tier
    src__proxym__router__analyze_request --> src__proxym__router___handle_explicit_tier
    src__proxym__router__analyze_request --> src__proxym__router___handle_explicit_model
    src__proxym__router__analyze_request --> src__proxym__router___estimate_output_tokens
    src__proxym__router___apply_heuristics --> src__proxym__router___length_signals
    src__proxym__router___apply_heuristics --> src__proxym__router___file_signals
    src__proxym__router___apply_heuristics --> src__proxym__router___context_signals
    src__proxym__router___apply_heuristics --> src__proxym__router___keyword_signals
    src__proxym__router__strategy__Router__route --> src__proxym__router__strategy___find_candidates
    src___try_explicit --> src__proxym__router__strategy___resolve_explicit
    src___filter_by_budget --> src__proxym__router__strategy___estimate_cost
    src__proxym__router__strategy___find_candidates --> src__proxym__providers__models_for_tier
    src__proxym__router__strategy___resolve_explicit --> src__proxym__providers__get_model
    src__proxym__api__system__list_models --> src__proxym__config__get_settings
    src__proxym__api__system__budget_status --> src__proxym__api___state__get_router
    src__proxym__api__system__context_stats --> src__proxym__api___state__get_delta_buffer
    src__proxym__api___pipeline___set_provider_keys --> src__proxym__config__get_settings
    src___build_context --> src__proxym__context__detector__detect_project
    src___build_context --> src__proxym__api___pipeline___inject_context
    src___route --> src__proxym__router__analyze_request
    src___route --> src__proxym__api___state__get_router
    src___route --> src__proxym__api___pipeline___resolve_model_alias
    src___inject_tools --> src__proxym__api___state__get_mcp_router
    src___touch_session --> src__proxym__api___state__get_session_store
    src___build_kwargs --> src__proxym__api___pipeline___set_provider_keys
    src___execute_with_fallbacks --> src__proxym__api___pipeline___set_provider_keys
    src___make_non_stream_response --> src__proxym__api___pipeline___calculate_cost
    src___stream_wrapper --> src__proxym__api___pipeline___calculate_cost
    src__proxym__api___pipeline___inject_context --> src__proxym__api___state__get_context_payload
    src__proxym__api__frontend__dashboard_ui --> src__proxym__api__frontend___serve_file
    src__proxym__api__frontend__dashboard_hook_js --> src__proxym__api__frontend___serve_file
    src__proxym__api__frontend__dashboard_api_js --> src__proxym__api__frontend___serve_file
    src__proxym__api__frontend__dashboard_jsx --> src__proxym__api__frontend___serve_file
    src__proxym__api__frontend__get_frontend_config --> src__proxym__config__get_settings
    src__proxym__api__context_api__receive_delta --> src__proxym__api___state__set_context_payload
    src__proxym__api__context_api__detect_context --> src__proxym__context__detector__detect_project
    src__proxym__api__context_api__list_sessions --> src__proxym__api___state__get_session_store
    src__proxym__api__context_api__list_mcp_servers --> src__proxym__api___state__get_mcp_router
    src__proxym__api___state__get_router --> src__proxym__config__get_settings
    src__proxym__api___state__get_delta_buffer --> src__proxym__config__get_settings
    src__proxym__watch__DeltaWatchClient____init__ --> src__proxym__config__get_settings
    src__proxym__watch__cli --> src__proxym__config__get_settings
    htmlcov__coverage_html_cb_dd2e7eb5__rowComparator --> htmlcov__coverage_html_cb_dd2e7eb5__getCellValue
    htmlcov__coverage_html_cb_dd2e7eb5__sortColumn --> htmlcov__coverage_html_cb_dd2e7eb5__rowComparator
    htmlcov__coverage_html_cb_dd2e7eb5__probe --> htmlcov__chunk_indicator
    htmlcov__coverage_html_cb_dd2e7eb5__begin --> htmlcov__chunk_indicator
    htmlcov__coverage_html_cb_dd2e7eb5__next_indicator --> htmlcov__chunk_indicator
    htmlcov__coverage_html_cb_dd2e7eb5__prev_indicator --> htmlcov__chunk_indicator
    htmlcov__coverage_html_cb_dd2e7eb5__the_indicator --> htmlcov__chunk_indicator
    htmlcov__coverage_html_cb_dd2e7eb5__indicator --> htmlcov__chunk_indicator
    src__proxym__dashboard__api___headers --> src__proxym__dashboard__api___key
    src__proxym__dashboard__api__get --> src__proxym__dashboard__api___api
    src__proxym__dashboard__api__get --> src__proxym__dashboard__api___headers
    src__proxym__dashboard__api__post --> src__proxym__dashboard__api___api
    src__proxym__dashboard__api__post --> src__proxym__dashboard__api___headers
    src__useDashboardData --> src__useHealth
    src__useDashboardData --> src__useBudget
    src__useDashboardData --> src__useModels
    src__useDashboardData --> src__useProviders
    src__useDashboardData --> src__useResources
    src__useDashboardData --> src__refresh
    src__healthHook --> src__refresh
    src__budgetHook --> src__refresh
    src__modelsHook --> src__refresh
    src__providersHook --> src__refresh
    src__resourcesHook --> src__refresh
    src__isUp --> src__refresh
    src__proxym__dashboard__panel__NewAccountForm --> src__proxym__dashboard__panel__useState
    src__proxym__dashboard__panel__AccountsPanel --> src__proxym__dashboard__panel__useState
    src__proxym__dashboard__list_accounts --> src__proxym__dashboard___accounts
    src__proxym__dashboard__create_account --> src__proxym__dashboard___accounts
    src__proxym__dashboard__get_account --> src__proxym__dashboard___accounts
    src__proxym__dashboard__delete_account --> src__proxym__dashboard___accounts
    src__proxym__dashboard__bind_tool --> src__proxym__dashboard___accounts
    src__proxym__dashboard__cost_summary --> src__proxym__dashboard___accounts
    src__proxym__dashboard__cost_detailed --> src__proxym__dashboard___accounts
    src__proxym__dashboard__list_vms --> src__proxym__dashboard___vms
    src__proxym__dashboard__create_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__start_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__stop_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__pause_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__resume_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__snapshot_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__switch_project --> src__proxym__dashboard___vms
    src__proxym__dashboard__delete_vm --> src__proxym__dashboard___vms
    src__proxym__dashboard__dashboard_root --> src__proxym__dashboard__system_status
    src__proxym__dashboard__system_status --> src__proxym__config__get_settings
    src__proxym__dashboard__system_status --> src__proxym__dashboard___accounts
    src__proxym__dashboard__system_status --> src__proxym__dashboard___vms
    src__proxym__dashboard__list_providers --> src__proxym__config__get_settings
    src__proxym__main__lifespan --> src__proxym__config__get_settings
    src__proxym__main__cli --> src__proxym__config__get_settings

    classDef highCC fill:#ff6b6b,stroke:#c92a2a,color:#fff
    classDef medCC fill:#ffd43b,stroke:#f08c00,color:#000
    class htmlcov__coverage_html_cb_dd2e7eb5__table,htmlcov__table_body_rows,htmlcov__coverage_html_cb_dd2e7eb5__no_rows,htmlcov__coverage_html_cb_dd2e7eb5__footer,htmlcov__coverage_html_cb_dd2e7eb5__ratio_columns,htmlcov__coverage_html_cb_dd2e7eb5__filter_handler highCC
    class src__proxym__cache__DeltaBuffer__scan,src__proxym__cache__DeltaBuffer___classify_changes,src__proxym__cache__DeltaBuffer___build_diff_text,src__detect_firefox_profiles,src__generate_app_data_sync,src___detect_chromium_family,src__filter_projects,src__proxym__cli___client__print_table,src__proxym__providers__models_for_tier,src__get_cost_summary,src__proxym__context__detector__detect_project,src__proxym__context__detector___find_common_root,src__proxym__router___extract_user_text,src___filter_by_budget,src__proxym__router__strategy___find_candidates,htmlcov__coverage_html_cb_dd2e7eb5__sortColumn,htmlcov__coverage_html_cb_dd2e7eb5__text,htmlcov__coverage_html_cb_dd2e7eb5__casefold,htmlcov__coverage_html_cb_dd2e7eb5__hide100,htmlcov__coverage_html_cb_dd2e7eb5__the_indicator,src__proxym__dashboard__panel__AccountRow medCC
