<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>graphify - graphify-out/graph.html</title>
<script src="https://unpkg.com/vis-network@9.1.6/standalone/umd/vis-network.min.js"
integrity="sha384-Ux6phic9PEHJ38YtrijhkzyJ8yQlH8i/+buBR8s3mAZOJrP1gwyvAcIYl3GWtpX1"
crossorigin="anonymous"></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; }
#legend-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 4px 0; }
#legend-controls label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: #aaa; user-select: none; }
#legend-controls label:hover { color: #e0e0e0; }
.legend-cb, #select-all-cb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1.5px solid #3a3a5e; border-radius: 3px; background: #0f0f1a; cursor: pointer; position: relative; flex-shrink: 0; }
.legend-cb:checked, #select-all-cb:checked { background: #4E79A7; border-color: #4E79A7; }
.legend-cb:checked::after, #select-all-cb:checked::after { content: ''; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#select-all-cb:indeterminate { background: #4E79A7; border-color: #4E79A7; }
#select-all-cb:indeterminate::after { content: ''; position: absolute; left: 2px; top: 5px; width: 8px; height: 2px; background: #fff; border: none; transform: none; }
</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-controls">
<label><input type="checkbox" id="select-all-cb" checked onchange="toggleAllCommunities(!this.checked)">Select All</label>
</div>
<div id="legend"></div>
</div>
<div id="stats">67 nodes · 99 edges · 13 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "vibe_hooks_auto_approve_graphify_main", "label": "main()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 9, "community_name": "Graphify Hook", "source_file": ".vibe/hooks/auto-approve-graphify.py", "file_type": "code", "degree": 1}, {"id": "e", "label": "E", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 32.0, "font": {"size": 12, "color": "#ffffff"}, "title": "E", "community": 0, "community_name": "Result Types", "source_file": "", "file_type": "code", "degree": 11}, {"id": "option", "label": "Option", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Option", "community": 0, "community_name": "Result Types", "source_file": "", "file_type": "code", "degree": 1}, {"id": "src_lib_result_t_e", "label": "Result<T, E>", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 38.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Result<T, E>", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 14}, {"id": "src_lib_result_t_e_and_debug", "label": ".and_debug()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".and_debug()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_and_error", "label": ".and_error()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".and_error()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_and_trace", "label": ".and_trace()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".and_trace()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_and_warn", "label": ".and_warn()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".and_warn()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_from_residual", "label": ".from_residual()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".from_residual()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_or_debug", "label": ".or_debug()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".or_debug()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_or_error", "label": ".or_error()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".or_error()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_or_trace", "label": ".or_trace()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".or_trace()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_result_t_e_or_warn", "label": ".or_warn()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".or_warn()", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_tracingresult", "label": "TracingResult", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "TracingResult", "community": 0, "community_name": "Result Types", "source_file": "src/lib.rs", "file_type": "code", "degree": 15}, {"id": "t", "label": "T", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 32.0, "font": {"size": 12, "color": "#ffffff"}, "title": "T", "community": 0, "community_name": "Result Types", "source_file": "", "file_type": "code", "degree": 11}, {"id": "pkg_tracing_result", "label": "tracing_result", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "tracing_result", "community": 10, "community_name": "Package", "source_file": "Cargo.toml", "file_type": "code", "degree": 0}, {"id": "s", "label": "S", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "S", "community": 11, "community_name": "String Type", "source_file": "", "file_type": "code", "degree": 0}, {"id": "string", "label": "String", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "String", "community": 12, "community_name": "String Literal", "source_file": "", "file_type": "code", "degree": 0}, {"id": "controlflow", "label": "ControlFlow", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ControlFlow", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 1}, {"id": "fromresidual", "label": "FromResidual", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "FromResidual", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 2}, {"id": "output", "label": "Output", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Output", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 2}, {"id": "residual", "label": "Residual", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Residual", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 3}, {"id": "self", "label": "Self", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Self", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 3}, {"id": "src_lib_tracingresult_e", "label": "TracingResult<!, E>", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "TracingResult<!, E>", "community": 2, "community_name": "Control Flow", "source_file": "src/lib.rs", "file_type": "code", "degree": 2}, {"id": "src_lib_tracingresult_t_e", "label": "TracingResult<T, E>", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "TracingResult<T, E>", "community": 2, "community_name": "Control Flow", "source_file": "src/lib.rs", "file_type": "code", "degree": 5}, {"id": "src_lib_tracingresult_t_e_branch", "label": ".branch()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".branch()", "community": 2, "community_name": "Control Flow", "source_file": "src/lib.rs", "file_type": "code", "degree": 4}, {"id": "src_lib_tracingresult_t_e_from_output", "label": ".from_output()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".from_output()", "community": 2, "community_name": "Control Flow", "source_file": "src/lib.rs", "file_type": "code", "degree": 3}, {"id": "src_lib_tracingresult_t_e_from_residual", "label": ".from_residual()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": ".from_residual()", "community": 2, "community_name": "Control Flow", "source_file": "src/lib.rs", "file_type": "code", "degree": 3}, {"id": "try", "label": "Try", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Try", "community": 2, "community_name": "Control Flow", "source_file": "", "file_type": "code", "degree": 1}, {"id": "level", "label": "Level", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Level", "community": 3, "community_name": "Tracing Config", "source_file": "", "file_type": "code", "degree": 2}, {"id": "src_lib", "label": "lib.rs", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 22.0, "font": {"size": 12, "color": "#ffffff"}, "title": "lib.rs", "community": 3, "community_name": "Tracing Config", "source_file": "src/lib.rs", "file_type": "code", "degree": 6}, {"id": "src_lib_and_warn_err", "label": "and_warn_err()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "and_warn_err()", "community": 3, "community_name": "Tracing Config", "source_file": "src/lib.rs", "file_type": "code", "degree": 1}, {"id": "src_lib_and_warn_ok", "label": "and_warn_ok()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "and_warn_ok()", "community": 3, "community_name": "Tracing Config", "source_file": "src/lib.rs", "file_type": "code", "degree": 1}, {"id": "src_lib_trace", "label": "Trace", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Trace", "community": 3, "community_name": "Tracing Config", "source_file": "src/lib.rs", "file_type": "code", "degree": 2}, {"id": "src_lib_tracingconfig", "label": "TracingConfig", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "TracingConfig", "community": 3, "community_name": "Tracing Config", "source_file": "src/lib.rs", "file_type": "code", "degree": 3}, {"id": "build", "label": "build.rs", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "build.rs", "community": 5, "community_name": "Build System", "source_file": "build.rs", "file_type": "code", "degree": 1}, {"id": "build_main", "label": "main()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 5, "community_name": "Build System", "source_file": "build.rs", "file_type": "code", "degree": 2}, {"id": "examples_pretty", "label": "pretty.rs", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "pretty.rs", "community": 5, "community_name": "Build System", "source_file": "examples/pretty.rs", "file_type": "code", "degree": 1}, {"id": "examples_pretty_main", "label": "main()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "main()", "community": 5, "community_name": "Build System", "source_file": "examples/pretty.rs", "file_type": "code", "degree": 2}, {"id": "result", "label": "Result", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Result", "community": 5, "community_name": "Build System", "source_file": "", "file_type": "code", "degree": 2}, {"id": "docs_update_indexes", "label": "update-indexes.sh", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "update-indexes.sh", "community": 6, "community_name": "Index Updates", "source_file": "docs/update-indexes.sh", "file_type": "code", "degree": 2}, {"id": "docs_update_indexes_get_crate_name", "label": "get_crate_name()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "get_crate_name()", "community": 6, "community_name": "Index Updates", "source_file": "docs/update-indexes.sh", "file_type": "code", "degree": 1}, {"id": "docs_update_indexes_sh__entry", "label": "update-indexes.sh script", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "update-indexes.sh script", "community": 6, "community_name": "Index Updates", "source_file": "docs/update-indexes.sh", "file_type": "code", "degree": 1}, {"id": "docs_update_docs", "label": "update-docs.sh", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "update-docs.sh", "community": 8, "community_name": "Doc Updates", "source_file": "docs/update-docs.sh", "file_type": "code", "degree": 1}, {"id": "docs_update_docs_sh__entry", "label": "update-docs.sh script", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "update-docs.sh script", "community": 8, "community_name": "Doc Updates", "source_file": "docs/update-docs.sh", "file_type": "code", "degree": 1}, {"id": "vibe_hooks_auto_approve_graphify", "label": "auto-approve-graphify.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "auto-approve-graphify.py", "community": 9, "community_name": "Graphify Hook", "source_file": ".vibe/hooks/auto-approve-graphify.py", "file_type": "code", "degree": 1}, {"id": "agents_try_v2", "label": "try_v2", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "try_v2", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "concept", "degree": 1}, {"id": "agents_unstable_feature", "label": "unstable feature", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "unstable feature", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "concept", "degree": 1}, {"id": "agents_redbook", "label": "redbook", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 38.0, "font": {"size": 12, "color": "#ffffff"}, "title": "redbook", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "document", "degree": 14}, {"id": "agents_build_safely_skill", "label": "build-safely skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "build-safely skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_cargo_stage_skill", "label": "cargo-stage skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "cargo-stage skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_compilation_skill", "label": "compilation skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "compilation skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_devcontainer_environment_skill", "label": "devcontainer-environment skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "devcontainer-environment skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_documentation_skill", "label": "documentation skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "documentation skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_graphify_skill", "label": "graphify skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "graphify skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_jaq_skill", "label": "jaq skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "jaq skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_read_the_docs_skill", "label": "read-the-docs skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "read-the-docs skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_rust_api_design_skill", "label": "rust-api-design skill", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "rust-api-design skill", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "agents_rust_project", "label": "rust project", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.0, "font": {"size": 0, "color": "#ffffff"}, "title": "rust project", "community": 1, "community_name": "Development Skills", "source_file": "AGENTS.md", "file_type": "rationale", "degree": 1}, {"id": "readme_and_warn", "label": "and_warn", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "and_warn", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "code", "degree": 2}, {"id": "readme_ok_or_debug", "label": "ok_or_debug", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 14.0, "font": {"size": 0, "color": "#ffffff"}, "title": "ok_or_debug", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "code", "degree": 2}, {"id": "readme_errors", "label": "errors", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "errors", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "concept", "degree": 3}, {"id": "readme_tracing_messages", "label": "tracing messages", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "tracing messages", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "concept", "degree": 4}, {"id": "readme_tracing_result", "label": "Tracing Result", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 18.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Tracing Result", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "document", "degree": 4}, {"id": "readme_ergonomic_wrapper", "label": "ergonomic wrapper", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "ergonomic wrapper", "community": 4, "community_name": "Project Documentation", "source_file": "README.md", "file_type": "rationale", "degree": 3}, {"id": "agents_ergonomic_tracing", "label": "ergonomic tracing", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "ergonomic tracing", "community": 7, "community_name": "Core Concepts", "source_file": "AGENTS.md", "file_type": "concept", "degree": 3}, {"id": "agents_result_like_type", "label": "Result-like type", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 16.0, "font": {"size": 12, "color": "#ffffff"}, "title": "Result-like type", "community": 7, "community_name": "Core Concepts", "source_file": "AGENTS.md", "file_type": "concept", "degree": 3}];
const RAW_EDGES = [{"from": "vibe_hooks_auto_approve_graphify_main", "to": "vibe_hooks_auto_approve_graphify", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_and_debug", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_and_error", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_and_trace", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_and_warn", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_from_residual", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_or_debug", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_or_error", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_or_trace", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "e", "to": "src_lib_result_t_e_or_warn", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "option", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "fromresidual", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_trace", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_from_residual", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_or_warn", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_and_warn", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_or_error", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_and_error", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_or_debug", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_and_debug", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_or_trace", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e", "to": "src_lib_result_t_e_and_trace", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_debug", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_debug", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_error", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_error", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_trace", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_trace", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_warn", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_and_warn", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_from_residual", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_from_residual", "to": "self", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_debug", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_debug", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_error", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_error", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_trace", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_trace", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_warn", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_result_t_e_or_warn", "to": "src_lib_tracingresult", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult", "to": "t", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult", "to": "src_lib_tracingconfig", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult", "to": "src_lib", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "t", "to": "src_lib_tracingresult_e", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "controlflow", "to": "src_lib_tracingresult_t_e_branch", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fromresidual", "to": "src_lib_tracingresult_t_e", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "output", "to": "src_lib_tracingresult_t_e_branch", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "output", "to": "src_lib_tracingresult_t_e_from_output", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "residual", "to": "src_lib_tracingresult_t_e_branch", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "residual", "to": "src_lib_tracingresult_t_e_from_residual", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "residual", "to": "src_lib_tracingresult_e", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "self", "to": "src_lib_tracingresult_t_e_from_output", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "self", "to": "src_lib_tracingresult_t_e_from_residual", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult_t_e", "to": "try", "label": "implements", "title": "implements [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult_t_e", "to": "src_lib_tracingresult_t_e_from_output", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult_t_e", "to": "src_lib_tracingresult_t_e_branch", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib_tracingresult_t_e", "to": "src_lib_tracingresult_t_e_from_residual", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "level", "to": "src_lib_tracingconfig", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "level", "to": "src_lib", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib", "to": "src_lib_trace", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib", "to": "src_lib_and_warn_ok", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib", "to": "src_lib_and_warn_err", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_lib", "to": "src_lib_tracingconfig", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "build", "to": "build_main", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "build_main", "to": "result", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "examples_pretty", "to": "examples_pretty_main", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "examples_pretty_main", "to": "result", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_update_indexes", "to": "docs_update_indexes_sh__entry", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_update_indexes", "to": "docs_update_indexes_get_crate_name", "label": "defines", "title": "defines [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_update_docs", "to": "docs_update_docs_sh__entry", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_try_v2", "to": "agents_redbook", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_unstable_feature", "to": "agents_redbook", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_build_safely_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_cargo_stage_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_compilation_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_devcontainer_environment_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_documentation_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_ergonomic_tracing", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_graphify_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_jaq_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_read_the_docs_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_result_like_type", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_rust_api_design_skill", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "agents_redbook", "to": "agents_rust_project", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_and_warn", "to": "readme_errors", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_and_warn", "to": "readme_tracing_messages", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_ok_or_debug", "to": "readme_errors", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_ok_or_debug", "to": "readme_tracing_messages", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_errors", "to": "readme_tracing_result", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_tracing_messages", "to": "readme_ergonomic_wrapper", "label": "conceptually_related_to", "title": "conceptually_related_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_tracing_messages", "to": "readme_tracing_result", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_tracing_result", "to": "readme_ergonomic_wrapper", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "readme_tracing_result", "to": "agents_result_like_type", "label": "semantically_similar_to", "title": "semantically_similar_to [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "readme_ergonomic_wrapper", "to": "agents_ergonomic_tracing", "label": "semantically_similar_to", "title": "semantically_similar_to [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "agents_ergonomic_tracing", "to": "agents_result_like_type", "label": "conceptually_related_to", "title": "conceptually_related_to [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Result Types", "count": 14}, {"cid": 1, "color": "#F28E2B", "label": "Development Skills", "count": 13}, {"cid": 2, "color": "#E15759", "label": "Control Flow", "count": 11}, {"cid": 3, "color": "#76B7B2", "label": "Tracing Config", "count": 6}, {"cid": 4, "color": "#59A14F", "label": "Project Documentation", "count": 6}, {"cid": 5, "color": "#EDC948", "label": "Build System", "count": 5}, {"cid": 6, "color": "#B07AA1", "label": "Index Updates", "count": 3}, {"cid": 7, "color": "#FF9DA7", "label": "Core Concepts", "count": 2}, {"cid": 8, "color": "#9C755F", "label": "Doc Updates", "count": 2}, {"cid": 9, "color": "#BAB0AC", "label": "Graphify Hook", "count": 2}, {"cid": 10, "color": "#4E79A7", "label": "Package", "count": 1}, {"cid": 11, "color": "#F28E2B", "label": "String Type", "count": 1}, {"cid": 12, "color": "#E15759", "label": "String Literal", "count": 1}];
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
}
// 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)}" data-nid="${esc(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);
}
// Neighbor links use a data attribute + one delegated listener rather than an
// inline onclick. A node id/label sourced from a document or a scraped URL
// (graphify add) can contain a double-quote; dropping the stringified id
// unescaped into a quoted onclick both broke every link and allowed a hostile
// source to inject an event handler into the local report (stored XSS, #1838).
// esc() on data-nid keeps the value inside the attribute; the listener reads it
// back verbatim. Bound to document so it survives the innerHTML rebuild that
// recreates #neighbors-list on each showInfo().
document.addEventListener('click', e => {
const el = e.target.closest('.neighbor-link');
if (el && el.dataset.nid !== undefined) focusNode(el.dataset.nid);
});
// 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 selectAllCb = document.getElementById('select-all-cb');
function updateSelectAllState() {
const total = LEGEND.length;
const hidden = hiddenCommunities.size;
selectAllCb.checked = hidden === 0;
selectAllCb.indeterminate = hidden > 0 && hidden < total;
}
function toggleAllCommunities(hide) {
document.querySelectorAll('.legend-item').forEach(item => {
hide ? item.classList.add('dimmed') : item.classList.remove('dimmed');
});
document.querySelectorAll('.legend-cb').forEach(cb => {
cb.checked = !hide;
});
LEGEND.forEach(c => {
if (hide) hiddenCommunities.add(c.cid); else hiddenCommunities.delete(c.cid);
});
const updates = RAW_NODES.map(n => ({ id: n.id, hidden: hide }));
nodesDS.update(updates);
updateSelectAllState();
}
const legendEl = document.getElementById('legend');
LEGEND.forEach(c => {
const item = document.createElement('div');
item.className = 'legend-item';
const cb = document.createElement('input');
cb.type = 'checkbox';
cb.className = 'legend-cb';
cb.checked = true;
cb.addEventListener('change', (e) => {
e.stopPropagation();
if (cb.checked) {
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: !cb.checked }));
nodesDS.update(updates);
updateSelectAllState();
});
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.prepend(cb);
item.onclick = (e) => {
if (e.target === cb) return;
cb.checked = !cb.checked;
cb.dispatchEvent(new Event('change'));
};
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>