Files
gsinghpal 41d0908ade changes
2026-04-24 21:04:38 -04:00

257 lines
62 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>graphify - /Users/gurpreet/Github/Odoo-Modules/fusion_api/graphify-out/graph.html</title>
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0f0f1a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; height: 100vh; overflow: hidden; }
#graph { flex: 1; }
#sidebar { width: 280px; background: #1a1a2e; border-left: 1px solid #2a2a4e; display: flex; flex-direction: column; overflow: hidden; }
#search-wrap { padding: 12px; border-bottom: 1px solid #2a2a4e; }
#search { width: 100%; background: #0f0f1a; border: 1px solid #3a3a5e; color: #e0e0e0; padding: 7px 10px; border-radius: 6px; font-size: 13px; outline: none; }
#search:focus { border-color: #4E79A7; }
#search-results { max-height: 140px; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid #2a2a4e; display: none; }
.search-item { padding: 4px 6px; cursor: pointer; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item:hover { background: #2a2a4e; }
#info-panel { padding: 14px; border-bottom: 1px solid #2a2a4e; min-height: 140px; }
#info-panel h3 { font-size: 13px; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
#info-content { font-size: 13px; color: #ccc; line-height: 1.6; }
#info-content .field { margin-bottom: 5px; }
#info-content .field b { color: #e0e0e0; }
#info-content .empty { color: #555; font-style: italic; }
.neighbor-link { display: block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #333; }
.neighbor-link:hover { background: #2a2a4e; }
#neighbors-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
#legend-wrap { flex: 1; overflow-y: auto; padding: 12px; }
#legend-wrap h3 { font-size: 13px; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; border-radius: 4px; font-size: 12px; }
.legend-item:hover { background: #2a2a4e; padding-left: 4px; }
.legend-item.dimmed { opacity: 0.35; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-count { color: #666; font-size: 11px; }
#stats { padding: 10px 14px; border-top: 1px solid #2a2a4e; font-size: 11px; color: #555; }
</style>
</head>
<body>
<div id="graph"></div>
<div id="sidebar">
<div id="search-wrap">
<input id="search" type="text" placeholder="Search nodes..." autocomplete="off">
<div id="search-results"></div>
</div>
<div id="info-panel">
<h3>Node Info</h3>
<div id="info-content"><span class="empty">Click a node to inspect it</span></div>
</div>
<div id="legend-wrap">
<h3>Communities</h3>
<div id="legend"></div>
</div>
<div id="stats">69 nodes &middot; 87 edges &middot; 12 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "users_gurpreet_github_odoo_modules_fusion_api_init_py", "label": "__init__.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_manifest_py", "label": "__manifest__.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__manifest__.py", "community": 11, "community_name": "Community 11", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/__manifest__.py", "file_type": "code", "degree": 0}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_service_py", "label": "api_service.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "api_service.py", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 1}, {"id": "api_service_fusionapiservice", "label": "FusionApiService", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionApiService", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 15}, {"id": "api_service_fusionapiservice_get_provider", "label": "._get_provider()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._get_provider()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 5}, {"id": "api_service_fusionapiservice_get_default_key", "label": "._get_default_key()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._get_default_key()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 5}, {"id": "api_service_fusionapiservice_auto_register_consumer", "label": "._auto_register_consumer()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._auto_register_consumer()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 5}, {"id": "api_service_fusionapiservice_check_access", "label": "._check_access()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 26.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._check_access()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 8}, {"id": "api_service_fusionapiservice_check_budget", "label": "._check_budget()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._check_budget()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 2}, {"id": "api_service_fusionapiservice_check_rate_limit", "label": "._check_rate_limit()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._check_rate_limit()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 2}, {"id": "api_service_fusionapiservice_check_user_limit", "label": "._check_user_limit()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._check_user_limit()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 2}, {"id": "api_service_fusionapiservice_log_usage", "label": "._log_usage()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._log_usage()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 5}, {"id": "api_service_fusionapiservice_estimate_cost", "label": "._estimate_cost()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._estimate_cost()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 3}, {"id": "api_service_fusionapiservice_call_openai", "label": ".call_openai()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 24.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".call_openai()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 7}, {"id": "api_service_fusionapiservice_call_anthropic", "label": ".call_anthropic()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 24.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".call_anthropic()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 7}, {"id": "api_service_fusionapiservice_get_api_key", "label": ".get_api_key()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 22.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".get_api_key()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 6}, {"id": "api_service_fusionapiservice_get_oauth_credentials", "label": ".get_oauth_credentials()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 22.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".get_oauth_credentials()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 6}, {"id": "api_service_fusionapiservice_validate_key", "label": "._validate_key()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._validate_key()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_service.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_daily_py", "label": "api_usage_daily.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "api_usage_daily.py", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 4}, {"id": "api_usage_daily_fusionapiusagedaily", "label": "FusionApiUsageDaily", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionApiUsageDaily", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 2}, {"id": "api_usage_daily_compute_total_tokens", "label": "_compute_total_tokens()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_total_tokens()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 1}, {"id": "api_usage_daily_fusionapiusagedaily_compute_display_name", "label": "._compute_display_name()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_display_name()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 1}, {"id": "api_usage_daily_cron_aggregate_daily", "label": "_cron_aggregate_daily()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_cron_aggregate_daily()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 2}, {"id": "api_usage_daily_cron_cleanup_old_logs", "label": "_cron_cleanup_old_logs()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_cron_cleanup_old_logs()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage_daily.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_init_py", "label": "__init__.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 10, "community_name": "Community 10", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_consumer_py", "label": "api_consumer.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "api_consumer.py", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_consumer.py", "file_type": "code", "degree": 1}, {"id": "api_consumer_fusionapiconsumer", "label": "FusionApiConsumer", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionApiConsumer", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_consumer.py", "file_type": "code", "degree": 3}, {"id": "api_consumer_fusionapiconsumer_compute_usage_stats", "label": "._compute_usage_stats()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_usage_stats()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_consumer.py", "file_type": "code", "degree": 1}, {"id": "api_consumer_fusionapiconsumer_action_toggle_access", "label": ".action_toggle_access()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_toggle_access()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_consumer.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_key_py", "label": "api_key.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "api_key.py", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 3}, {"id": "api_key_fusionapikey", "label": "FusionApiKey", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionApiKey", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 3}, {"id": "api_key_compute_masked_key", "label": "_compute_masked_key()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_masked_key()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 1}, {"id": "api_key_check_single_default", "label": "_check_single_default()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_check_single_default()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 1}, {"id": "api_key_fusionapikey_action_validate", "label": ".action_validate()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_validate()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 3}, {"id": "api_key_fusionapikey_write", "label": ".write()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".write()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_key.py", "file_type": "code", "degree": 3}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_user_limit_py", "label": "api_user_limit.py", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "api_user_limit.py", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_user_limit.py", "file_type": "code", "degree": 2}, {"id": "api_user_limit_fusionapiuserlimit", "label": "FusionApiUserLimit", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionApiUserLimit", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_user_limit.py", "file_type": "code", "degree": 2}, {"id": "api_user_limit_compute_display_name", "label": "_compute_display_name()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_display_name()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_user_limit.py", "file_type": "code", "degree": 1}, {"id": "api_user_limit_fusionapiuserlimit_compute_current_usage", "label": "._compute_current_usage()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_current_usage()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_user_limit.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_py", "label": "api_usage.py", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "api_usage.py", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage.py", "file_type": "code", "degree": 2}, {"id": "api_usage_fusionapiusage", "label": "FusionApiUsage", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionApiUsage", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage.py", "file_type": "code", "degree": 2}, {"id": "api_usage_compute_total_tokens", "label": "_compute_total_tokens()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_total_tokens()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage.py", "file_type": "code", "degree": 1}, {"id": "api_usage_fusionapiusage_compute_display_name", "label": "._compute_display_name()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_display_name()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_usage.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_res_config_settings_py", "label": "res_config_settings.py", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "res_config_settings.py", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/res_config_settings.py", "file_type": "code", "degree": 1}, {"id": "res_config_settings_resconfigsettings", "label": "ResConfigSettings", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ResConfigSettings", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/res_config_settings.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_provider_py", "label": "api_provider.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "api_provider.py", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 3}, {"id": "api_provider_fusionapiprovider", "label": "FusionApiProvider", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionApiProvider", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 4}, {"id": "api_provider_compute_key_stats", "label": "_compute_key_stats()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_key_stats()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 1}, {"id": "api_provider_fusionapiprovider_compute_usage_stats", "label": "._compute_usage_stats()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_usage_stats()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 1}, {"id": "api_provider_fusionapiprovider_action_activate", "label": ".action_activate()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_activate()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 1}, {"id": "api_provider_fusionapiprovider_action_deactivate", "label": ".action_deactivate()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_deactivate()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 1}, {"id": "api_provider_get_dashboard_data", "label": "get_dashboard_data()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "get_dashboard_data()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_provider.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_models_api_access_py", "label": "api_access.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "api_access.py", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_access.py", "file_type": "code", "degree": 2}, {"id": "api_access_fusionapiaccess", "label": "FusionApiAccess", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionApiAccess", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_access.py", "file_type": "code", "degree": 2}, {"id": "api_access_compute_display_name", "label": "_compute_display_name()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_display_name()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_access.py", "file_type": "code", "degree": 1}, {"id": "api_access_fusionapiaccess_compute_current_usage", "label": "._compute_current_usage()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_current_usage()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/models/api_access.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_api_static_src_js_dashboard_js", "label": "dashboard.js", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "dashboard.js", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard", "label": "FusionApiDashboard", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 34.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionApiDashboard", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 12}, {"id": "dashboard_fusionapidashboard_setup", "label": ".setup()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".setup()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_loaddata", "label": ".loadData()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".loadData()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 2}, {"id": "dashboard_fusionapidashboard_refresh", "label": ".refresh()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".refresh()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 2}, {"id": "dashboard_fusionapidashboard_openproviders", "label": ".openProviders()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".openProviders()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_openconsumers", "label": ".openConsumers()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".openConsumers()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_openusagelog", "label": ".openUsageLog()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".openUsageLog()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_openaccessrules", "label": ".openAccessRules()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".openAccessRules()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_formatcost", "label": ".formatCost()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".formatCost()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_formatcostdetailed", "label": ".formatCostDetailed()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".formatCostDetailed()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_getstatusclass", "label": ".getStatusClass()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".getStatusClass()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}, {"id": "dashboard_fusionapidashboard_formattime", "label": ".formatTime()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": ".formatTime()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_api/static/src/js/dashboard.js", "file_type": "code", "degree": 1}];
const RAW_EDGES = [{"from": "users_gurpreet_github_odoo_modules_fusion_api_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_api_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_service_py", "to": "api_service_fusionapiservice", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_get_provider", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_get_default_key", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_auto_register_consumer", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_check_access", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_check_budget", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_check_rate_limit", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_check_user_limit", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_log_usage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_estimate_cost", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_call_openai", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_call_anthropic", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_get_api_key", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice", "to": "api_service_fusionapiservice_validate_key", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_provider", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_provider", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_provider", "to": "api_service_fusionapiservice_get_api_key", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_provider", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_default_key", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_default_key", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_default_key", "to": "api_service_fusionapiservice_get_api_key", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_get_default_key", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_auto_register_consumer", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_auto_register_consumer", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_auto_register_consumer", "to": "api_service_fusionapiservice_get_api_key", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_auto_register_consumer", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_check_budget", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_check_rate_limit", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_check_user_limit", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_get_api_key", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_check_access", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_log_usage", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_log_usage", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_log_usage", "to": "api_service_fusionapiservice_get_api_key", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_log_usage", "to": "api_service_fusionapiservice_get_oauth_credentials", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_estimate_cost", "to": "api_service_fusionapiservice_call_openai", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_estimate_cost", "to": "api_service_fusionapiservice_call_anthropic", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_service_fusionapiservice_validate_key", "to": "api_key_fusionapikey_action_validate", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_daily_py", "to": "api_usage_daily_fusionapiusagedaily", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_daily_py", "to": "api_usage_daily_compute_total_tokens", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_daily_py", "to": "api_usage_daily_cron_aggregate_daily", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_daily_py", "to": "api_usage_daily_cron_cleanup_old_logs", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_usage_daily_fusionapiusagedaily", "to": "api_usage_daily_fusionapiusagedaily_compute_display_name", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_usage_daily_cron_aggregate_daily", "to": "api_key_fusionapikey_write", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_api_models_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_consumer_py", "to": "api_consumer_fusionapiconsumer", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_consumer_fusionapiconsumer", "to": "api_consumer_fusionapiconsumer_compute_usage_stats", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_consumer_fusionapiconsumer", "to": "api_consumer_fusionapiconsumer_action_toggle_access", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_key_py", "to": "api_key_fusionapikey", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_key_py", "to": "api_key_compute_masked_key", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_key_py", "to": "api_key_check_single_default", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_key_fusionapikey", "to": "api_key_fusionapikey_action_validate", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_key_fusionapikey", "to": "api_key_fusionapikey_write", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_key_fusionapikey_action_validate", "to": "api_key_fusionapikey_write", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_user_limit_py", "to": "api_user_limit_fusionapiuserlimit", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_user_limit_py", "to": "api_user_limit_compute_display_name", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_user_limit_fusionapiuserlimit", "to": "api_user_limit_fusionapiuserlimit_compute_current_usage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_py", "to": "api_usage_fusionapiusage", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_usage_py", "to": "api_usage_compute_total_tokens", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_usage_fusionapiusage", "to": "api_usage_fusionapiusage_compute_display_name", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_res_config_settings_py", "to": "res_config_settings_resconfigsettings", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_provider_py", "to": "api_provider_fusionapiprovider", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_provider_py", "to": "api_provider_compute_key_stats", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_provider_py", "to": "api_provider_get_dashboard_data", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_provider_fusionapiprovider", "to": "api_provider_fusionapiprovider_compute_usage_stats", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_provider_fusionapiprovider", "to": "api_provider_fusionapiprovider_action_activate", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_provider_fusionapiprovider", "to": "api_provider_fusionapiprovider_action_deactivate", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_access_py", "to": "api_access_fusionapiaccess", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_models_api_access_py", "to": "api_access_compute_display_name", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "api_access_fusionapiaccess", "to": "api_access_fusionapiaccess_compute_current_usage", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_api_static_src_js_dashboard_js", "to": "dashboard_fusionapidashboard", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_setup", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_loaddata", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_refresh", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_openproviders", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_openconsumers", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_openusagelog", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_openaccessrules", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_formatcost", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_formatcostdetailed", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_getstatusclass", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard", "to": "dashboard_fusionapidashboard_formattime", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "dashboard_fusionapidashboard_loaddata", "to": "dashboard_fusionapidashboard_refresh", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 15}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 13}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 13}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 7}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 4}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 4}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 4}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 4}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 2}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 1}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 1}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 1}];
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');
}
// Build vis datasets
const nodesDS = new vis.DataSet(RAW_NODES.map(n => ({
id: n.id, label: n.label, color: n.color, size: n.size,
font: n.font, title: n.title,
_community: n.community, _community_name: n.community_name,
_source_file: n.source_file, _file_type: n.file_type, _degree: n.degree,
})));
const edgesDS = new vis.DataSet(RAW_EDGES.map((e, i) => ({
id: i, from: e.from, to: e.to,
label: '',
title: e.title,
dashes: e.dashes,
width: e.width,
color: e.color,
arrows: { to: { enabled: true, scaleFactor: 0.5 } },
})));
const container = document.getElementById('graph');
const network = new vis.Network(container, { nodes: nodesDS, edges: edgesDS }, {
physics: {
enabled: true,
solver: 'forceAtlas2Based',
forceAtlas2Based: {
gravitationalConstant: -60,
centralGravity: 0.005,
springLength: 120,
springConstant: 0.08,
damping: 0.4,
avoidOverlap: 0.8,
},
stabilization: { iterations: 200, fit: true },
},
interaction: {
hover: true,
tooltipDelay: 100,
hideEdgesOnDrag: true,
navigationButtons: false,
keyboard: false,
},
nodes: { shape: 'dot', borderWidth: 1.5 },
edges: { smooth: { type: 'continuous', roundness: 0.2 }, selectionWidth: 3 },
});
network.once('stabilizationIterationsDone', () => {
network.setOptions({ physics: { enabled: false } });
});
function showInfo(nodeId) {
const n = nodesDS.get(nodeId);
if (!n) return;
const neighborIds = network.getConnectedNodes(nodeId);
const neighborItems = neighborIds.map(nid => {
const nb = nodesDS.get(nid);
const color = nb ? nb.color.background : '#555';
return `<span class="neighbor-link" style="border-left-color:${esc(color)}" onclick="focusNode(${JSON.stringify(nid)})">${esc(nb ? nb.label : nid)}</span>`;
}).join('');
document.getElementById('info-content').innerHTML = `
<div class="field"><b>${esc(n.label)}</b></div>
<div class="field">Type: ${esc(n._file_type || 'unknown')}</div>
<div class="field">Community: ${esc(n._community_name)}</div>
<div class="field">Source: ${esc(n._source_file || '-')}</div>
<div class="field">Degree: ${n._degree}</div>
${neighborIds.length ? `<div class="field" style="margin-top:8px;color:#aaa;font-size:11px">Neighbors (${neighborIds.length})</div><div id="neighbors-list">${neighborItems}</div>` : ''}
`;
}
function focusNode(nodeId) {
network.focus(nodeId, { scale: 1.4, animation: true });
network.selectNodes([nodeId]);
showInfo(nodeId);
}
// Track hovered node — hover detection is more reliable than click params
let hoveredNodeId = null;
network.on('hoverNode', params => {
hoveredNodeId = params.node;
container.style.cursor = 'pointer';
});
network.on('blurNode', () => {
hoveredNodeId = null;
container.style.cursor = 'default';
});
container.addEventListener('click', () => {
if (hoveredNodeId !== null) {
showInfo(hoveredNodeId);
network.selectNodes([hoveredNodeId]);
}
});
network.on('click', params => {
if (params.nodes.length > 0) {
showInfo(params.nodes[0]);
} else if (hoveredNodeId === null) {
document.getElementById('info-content').innerHTML = '<span class="empty">Click a node to inspect it</span>';
}
});
const searchInput = document.getElementById('search');
const searchResults = document.getElementById('search-results');
searchInput.addEventListener('input', () => {
const q = searchInput.value.toLowerCase().trim();
searchResults.innerHTML = '';
if (!q) { searchResults.style.display = 'none'; return; }
const matches = RAW_NODES.filter(n => n.label.toLowerCase().includes(q)).slice(0, 20);
if (!matches.length) { searchResults.style.display = 'none'; return; }
searchResults.style.display = 'block';
matches.forEach(n => {
const el = document.createElement('div');
el.className = 'search-item';
el.textContent = n.label;
el.style.borderLeft = `3px solid ${n.color.background}`;
el.style.paddingLeft = '8px';
el.onclick = () => {
network.focus(n.id, { scale: 1.5, animation: true });
network.selectNodes([n.id]);
showInfo(n.id);
searchResults.style.display = 'none';
searchInput.value = '';
};
searchResults.appendChild(el);
});
});
document.addEventListener('click', e => {
if (!searchResults.contains(e.target) && e.target !== searchInput)
searchResults.style.display = 'none';
});
const hiddenCommunities = new Set();
const legendEl = document.getElementById('legend');
LEGEND.forEach(c => {
const item = document.createElement('div');
item.className = 'legend-item';
item.innerHTML = `<div class="legend-dot" style="background:${c.color}"></div>
<span class="legend-label">${c.label}</span>
<span class="legend-count">${c.count}</span>`;
item.onclick = () => {
if (hiddenCommunities.has(c.cid)) {
hiddenCommunities.delete(c.cid);
item.classList.remove('dimmed');
} else {
hiddenCommunities.add(c.cid);
item.classList.add('dimmed');
}
const updates = RAW_NODES
.filter(n => n.community === c.cid)
.map(n => ({ id: n.id, hidden: hiddenCommunities.has(c.cid) }));
nodesDS.update(updates);
};
legendEl.appendChild(item);
});
</script>
<script>
// Render hyperedges as shaded regions
const hyperedges = [];
// afterDrawing passes ctx already transformed to network coordinate space.
// Draw node positions raw — no manual pan/zoom/DPR math needed.
network.on('afterDrawing', function(ctx) {
hyperedges.forEach(h => {
const positions = h.nodes
.map(nid => network.getPositions([nid])[nid])
.filter(p => p !== undefined);
if (positions.length < 2) return;
ctx.save();
ctx.globalAlpha = 0.12;
ctx.fillStyle = '#6366f1';
ctx.strokeStyle = '#6366f1';
ctx.lineWidth = 2;
ctx.beginPath();
// Centroid and expanded hull in network coordinates
const cx = positions.reduce((s, p) => s + p.x, 0) / positions.length;
const cy = positions.reduce((s, p) => s + p.y, 0) / positions.length;
const expanded = positions.map(p => ({
x: cx + (p.x - cx) * 1.15,
y: cy + (p.y - cy) * 1.15
}));
ctx.moveTo(expanded[0].x, expanded[0].y);
expanded.slice(1).forEach(p => ctx.lineTo(p.x, p.y));
ctx.closePath();
ctx.fill();
ctx.globalAlpha = 0.4;
ctx.stroke();
// Label
ctx.globalAlpha = 0.8;
ctx.fillStyle = '#4f46e5';
ctx.font = 'bold 11px sans-serif';
ctx.textAlign = 'center';
ctx.fillText(h.label, cx, cy - 5);
ctx.restore();
});
});
</script>
</body>
</html>