Files
emcp-tools-mapping/graphify-out/graph.html
T
Claude Code 58acdd71e3 docs: doc 12 blueprint Widget Builder (spec->widget Elementor PHP)
Fundamentado na API publica real do Elementor (Widget_Base, Controls_Manager,
Widgets_Manager, Elements_Manager, widget core Heading como exemplo) mais os
padroes de seguranca ja confirmados em codigo real Free (EMCP_Tools_Widget_Store/
Widget_Loader do doc06 - manifest-only, tamper guard sha256, path containment,
runtime_validate). O compilador spec->PHP em si (EMCP_Tools_Widget_Generator) e
a camada de abilities MCP continuam ausentes do build Free - marcado [REAL] vs
[DESENHO PROPRIO] em cada afirmacao do documento.

Recomenda 'zero tool de activacao via MCP' para set-widget-status, seguindo a
mesma filosofia ja confirmada no Themer PHP e nos PHP Snippets (aprovacao
humana obrigatoria antes de codigo gerado por IA correr em producao).

Actualiza INDEX.md com a 13a entrada e totais revistos.
2026-08-19 07:42:21 +01:00

307 lines
58 KiB
HTML

<!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">55 nodes &middot; 54 edges &middot; 10 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "docs_11_woocommerce_blueprint", "label": "11-WOOCOMMERCE-BLUEPRINT.md", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 15.0, "font": {"size": 12, "color": "#ffffff"}, "title": "11-WOOCOMMERCE-BLUEPRINT.md", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 2}, {"id": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "label": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 12}, {"id": "docs_11_woocommerce_blueprint_0_porque_este_documento_\u00e9_diferente_dos_outros_10", "label": "0. Porque este documento \u00e9 diferente dos outros 10", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "0. Porque este documento \u00e9 diferente dos outros 10", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_1_panorama", "label": "1. Panorama", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "1. Panorama", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_2_produtos", "label": "2. Produtos", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "2. Produtos", "community": 6, "community_name": "2. Produtos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 4}, {"id": "docs_11_woocommerce_blueprint_2_1_schema_real_campos_confirmados_por_leitura_de_get_item_schema", "label": "2.1 Schema real (campos confirmados por leitura de `get_item_schema()`)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "2.1 Schema real (campos confirmados por leitura de `get_item_schema()`)", "community": 6, "community_name": "2. Produtos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_2_2_endpoints_extra_confirmados_al\u00e9m_do_crud_standard", "label": "2.2 Endpoints extra confirmados (al\u00e9m do CRUD standard)", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "2.2 Endpoints extra confirmados (al\u00e9m do CRUD standard)", "community": 6, "community_name": "2. Produtos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_2_3_tabela_de_ability_proposta_produtos", "label": "2.3 Tabela de ability proposta \u2014 Produtos", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "2.3 Tabela de ability proposta \u2014 Produtos", "community": 6, "community_name": "2. Produtos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_3_encomendas", "label": "3. Encomendas", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 25.0, "font": {"size": 12, "color": "#ffffff"}, "title": "3. Encomendas", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 6}, {"id": "docs_11_woocommerce_blueprint_3_1_estados_reais_n\u00e3o_inventados_via_wc_get_order_statuses", "label": "3.1 Estados reais (n\u00e3o inventados \u2014 via `wc_get_order_statuses()`)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3.1 Estados reais (n\u00e3o inventados \u2014 via `wc_get_order_statuses()`)", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_3_2_itens_da_encomenda_e_ciclo_de_escrita", "label": "3.2 Itens da encomenda e ciclo de escrita", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3.2 Itens da encomenda e ciclo de escrita", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_3_3_devolu\u00e7\u00f5es_refunds", "label": "3.3 Devolu\u00e7\u00f5es (refunds)", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3.3 Devolu\u00e7\u00f5es (refunds)", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_3_4_notas_da_encomenda", "label": "3.4 Notas da encomenda", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3.4 Notas da encomenda", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_3_5_tabela_de_ability_proposta_encomendas", "label": "3.5 Tabela de ability proposta \u2014 Encomendas", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3.5 Tabela de ability proposta \u2014 Encomendas", "community": 3, "community_name": "3. Encomendas", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_4_clientes", "label": "4. Clientes", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "4. Clientes", "community": 7, "community_name": "4. Clientes", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 4}, {"id": "docs_11_woocommerce_blueprint_4_1_capabilities_reais_n\u00e3o_manage_woocommerce_gen\u00e9rico", "label": "4.1 Capabilities reais (n\u00e3o `manage_woocommerce` gen\u00e9rico)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "4.1 Capabilities reais (n\u00e3o `manage_woocommerce` gen\u00e9rico)", "community": 7, "community_name": "4. Clientes", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_4_2_schema_real_confirmado_por_get_item_schema", "label": "4.2 Schema real (confirmado por `get_item_schema()`)", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "4.2 Schema real (confirmado por `get_item_schema()`)", "community": 7, "community_name": "4. Clientes", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_4_3_tabela_de_ability_proposta_clientes", "label": "4.3 Tabela de ability proposta \u2014 Clientes", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "4.3 Tabela de ability proposta \u2014 Clientes", "community": 7, "community_name": "4. Clientes", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_5_cup\u00f5es_descontos", "label": "5. Cup\u00f5es / Descontos", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "5. Cup\u00f5es / Descontos", "community": 8, "community_name": "5. Cup\u00f5es / Descontos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 4}, {"id": "docs_11_woocommerce_blueprint_5_1_tipos_de_desconto_reais_via_wc_get_coupon_types", "label": "5.1 Tipos de desconto reais (via `wc_get_coupon_types()`)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "5.1 Tipos de desconto reais (via `wc_get_coupon_types()`)", "community": 8, "community_name": "5. Cup\u00f5es / Descontos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_5_2_campos_de_restri\u00e7\u00e3o_confirmados_schema_data_props_do_coupon", "label": "5.2 Campos de restri\u00e7\u00e3o confirmados (schema/data props do coupon)", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "5.2 Campos de restri\u00e7\u00e3o confirmados (schema/data props do coupon)", "community": 8, "community_name": "5. Cup\u00f5es / Descontos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_5_3_tabela_de_ability_proposta_cup\u00f5es", "label": "5.3 Tabela de ability proposta \u2014 Cup\u00f5es", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "5.3 Tabela de ability proposta \u2014 Cup\u00f5es", "community": 8, "community_name": "5. Cup\u00f5es / Descontos", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "label": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 22.5, "font": {"size": 12, "color": "#ffffff"}, "title": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "community": 4, "community_name": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 5}, {"id": "docs_11_woocommerce_blueprint_6_1_dois_grupos_de_controllers", "label": "6.1 Dois grupos de controllers", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "6.1 Dois grupos de controllers", "community": 4, "community_name": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_6_2_capability_real_para_relat\u00f3rios_n\u00e3o_manage_woocommerce", "label": "6.2 Capability real para relat\u00f3rios (n\u00e3o `manage_woocommerce`)", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "6.2 Capability real para relat\u00f3rios (n\u00e3o `manage_woocommerce`)", "community": 4, "community_name": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_6_3_data_stores_de_agrega\u00e7\u00e3o_confirmados", "label": "6.3 Data stores de agrega\u00e7\u00e3o confirmados", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "6.3 Data stores de agrega\u00e7\u00e3o confirmados", "community": 4, "community_name": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_6_4_tabela_de_ability_proposta_analytics", "label": "6.4 Tabela de ability proposta \u2014 Analytics", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "6.4 Tabela de ability proposta \u2014 Analytics", "community": 4, "community_name": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_7_webhooks", "label": "7. Webhooks", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 22.5, "font": {"size": 12, "color": "#ffffff"}, "title": "7. Webhooks", "community": 5, "community_name": "7. Webhooks", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 5}, {"id": "docs_11_woocommerce_blueprint_7_1_modelo_de_dados_real_confirmado_por_data_default_em_wc_webhook", "label": "7.1 Modelo de dados real (confirmado por `$data` default em `WC_Webhook`)", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "7.1 Modelo de dados real (confirmado por `$data` default em `WC_Webhook`)", "community": 5, "community_name": "7. Webhooks", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_7_2_valida\u00e7\u00e3o_de_topic_n\u00e3o_\u00e9_livre_texto", "label": "7.2 Valida\u00e7\u00e3o de topic \u2014 n\u00e3o \u00e9 livre texto", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "7.2 Valida\u00e7\u00e3o de topic \u2014 n\u00e3o \u00e9 livre texto", "community": 5, "community_name": "7. Webhooks", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_7_3_entrega_ass\u00edncrona_por_omiss\u00e3o", "label": "7.3 Entrega ass\u00edncrona por omiss\u00e3o", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "7.3 Entrega ass\u00edncrona por omiss\u00e3o", "community": 5, "community_name": "7. Webhooks", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_7_4_tabela_de_ability_proposta_webhooks", "label": "7.4 Tabela de ability proposta \u2014 Webhooks", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "7.4 Tabela de ability proposta \u2014 Webhooks", "community": 5, "community_name": "7. Webhooks", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_8_seguran\u00e7a_gating_recomendado", "label": "8. Seguran\u00e7a / gating recomendado", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "8. Seguran\u00e7a / gating recomendado", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_9_blueprint_para_r\u00e9plica", "label": "9. Blueprint para r\u00e9plica", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "9. Blueprint para r\u00e9plica", "community": 9, "community_name": "9. Blueprint para r\u00e9plica", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 4}, {"id": "docs_11_woocommerce_blueprint_9_1_prioridade_de_constru\u00e7\u00e3o_por_valor_esfor\u00e7o_assumindo_fase_0_do_doc00_j\u00e1_feita", "label": "9.1 Prioridade de constru\u00e7\u00e3o (por valor/esfor\u00e7o, assumindo Fase 0 do doc00 j\u00e1 feita)", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "9.1 Prioridade de constru\u00e7\u00e3o (por valor/esfor\u00e7o, assumindo Fase 0 do doc00 j\u00e1 feita)", "community": 9, "community_name": "9. Blueprint para r\u00e9plica", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_9_2_reaproveitamento_expl\u00edcito_dos_padr\u00f5es_j\u00e1_documentados", "label": "9.2 Reaproveitamento expl\u00edcito dos padr\u00f5es j\u00e1 documentados", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "9.2 Reaproveitamento expl\u00edcito dos padr\u00f5es j\u00e1 documentados", "community": 9, "community_name": "9. Blueprint para r\u00e9plica", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_9_3_o_que_n\u00e3o_replicar_sem_decis\u00e3o_expl\u00edcita", "label": "9.3 O que N\u00c3O replicar sem decis\u00e3o expl\u00edcita", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "9.3 O que N\u00c3O replicar sem decis\u00e3o expl\u00edcita", "community": 9, "community_name": "9. Blueprint para r\u00e9plica", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_11_woocommerce_blueprint_10_fonte", "label": "10. Fonte", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "10. Fonte", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/11-WOOCOMMERCE-BLUEPRINT.md", "file_type": "document", "degree": 1}, {"id": "docs_index", "label": "INDEX.md", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 15.0, "font": {"size": 12, "color": "#ffffff"}, "title": "INDEX.md", "community": 2, "community_name": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 2}, {"id": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "label": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 32.5, "font": {"size": 12, "color": "#ffffff"}, "title": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 9}, {"id": "docs_index_1_mapa_dos_documentos", "label": "1. Mapa dos documentos", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "1. Mapa dos documentos", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_2_o_achado_mais_importante_de_toda_a_s\u00e9rie", "label": "2. O achado mais importante de toda a s\u00e9rie", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "2. O achado mais importante de toda a s\u00e9rie", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_3_os_5_subsistemas_de_maior_valor_para_copiar_quase_verbatim", "label": "3. Os 5 subsistemas de maior valor para copiar quase verbatim", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "3. Os 5 subsistemas de maior valor para copiar quase verbatim", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_4_padr\u00f5es_arquitecturais_que_atravessam_todo_o_plugin", "label": "4. Padr\u00f5es arquitecturais que atravessam todo o plugin", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "4. Padr\u00f5es arquitecturais que atravessam todo o plugin", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "label": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 30.0, "font": {"size": 12, "color": "#ffffff"}, "title": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 8}, {"id": "docs_index_fase_0_funda\u00e7\u00e3o_sem_isto_nada_mais_tem_rollback_nem_\u00e9_seguro", "label": "Fase 0 \u2014 Funda\u00e7\u00e3o (sem isto, nada mais tem rollback nem \u00e9 seguro)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 0 \u2014 Funda\u00e7\u00e3o (sem isto, nada mais tem rollback nem \u00e9 seguro)", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_fase_1_conte\u00fado_wordpress_puro_sem_depend\u00eancia_de_elementor", "label": "Fase 1 \u2014 Conte\u00fado WordPress puro (sem depend\u00eancia de Elementor)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 1 \u2014 Conte\u00fado WordPress puro (sem depend\u00eancia de Elementor)", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_fase_2_elementor_o_n\u00facleo_de_construir_p\u00e1ginas", "label": "Fase 2 \u2014 Elementor (o n\u00facleo de \"construir p\u00e1ginas\")", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 2 \u2014 Elementor (o n\u00facleo de &quot;construir p\u00e1ginas&quot;)", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_fase_3_camadas_de_produto_sobre_o_conte\u00fado", "label": "Fase 3 \u2014 Camadas de produto sobre o conte\u00fado", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 3 \u2014 Camadas de produto sobre o conte\u00fado", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_fase_4_superf\u00edcie_de_risco_elevado_opt_in", "label": "Fase 4 \u2014 Superf\u00edcie de risco elevado, opt-in", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 4 \u2014 Superf\u00edcie de risco elevado, opt-in", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_fase_5_integra\u00e7\u00f5es_e_periferia_valor_incremental_n\u00e3o_bloqueante", "label": "Fase 5 \u2014 Integra\u00e7\u00f5es e periferia (valor incremental, n\u00e3o bloqueante)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Fase 5 \u2014 Integra\u00e7\u00f5es e periferia (valor incremental, n\u00e3o bloqueante)", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_explicitamente_fora_de_\u00e2mbito_doc_10_2", "label": "Explicitamente fora de \u00e2mbito (doc 10 \u00a72)", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Explicitamente fora de \u00e2mbito (doc 10 \u00a72)", "community": 1, "community_name": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_6_tabela_de_risco_consolidada", "label": "6. Tabela de risco consolidada", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "6. Tabela de risco consolidada", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_7_como_usar_esta_documenta\u00e7\u00e3o", "label": "7. Como usar esta documenta\u00e7\u00e3o", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "7. Como usar esta documenta\u00e7\u00e3o", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}, {"id": "docs_index_metodologia", "label": "Metodologia", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.5, "font": {"size": 0, "color": "#ffffff"}, "title": "Metodologia", "community": 0, "community_name": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "source_file": "docs/INDEX.md", "file_type": "document", "degree": 1}];
const RAW_EDGES = [{"from": "docs_11_woocommerce_blueprint", "to": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index", "to": "docs_11_woocommerce_blueprint", "label": "references", "title": "references [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_0_porque_este_documento_\u00e9_diferente_dos_outros_10", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_10_fonte", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_1_panorama", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_2_produtos", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_3_encomendas", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_4_clientes", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_5_cup\u00f5es_descontos", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_7_webhooks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_8_seguran\u00e7a_gating_recomendado", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_11_woocommerce_blueprint_de_abilities_mcp_n\u00e3o_\u00e9_auditoria_emcp", "to": "docs_11_woocommerce_blueprint_9_blueprint_para_r\u00e9plica", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_2_produtos", "to": "docs_11_woocommerce_blueprint_2_1_schema_real_campos_confirmados_por_leitura_de_get_item_schema", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_2_produtos", "to": "docs_11_woocommerce_blueprint_2_2_endpoints_extra_confirmados_al\u00e9m_do_crud_standard", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_2_produtos", "to": "docs_11_woocommerce_blueprint_2_3_tabela_de_ability_proposta_produtos", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_3_encomendas", "to": "docs_11_woocommerce_blueprint_3_1_estados_reais_n\u00e3o_inventados_via_wc_get_order_statuses", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_3_encomendas", "to": "docs_11_woocommerce_blueprint_3_2_itens_da_encomenda_e_ciclo_de_escrita", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_3_encomendas", "to": "docs_11_woocommerce_blueprint_3_3_devolu\u00e7\u00f5es_refunds", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_3_encomendas", "to": "docs_11_woocommerce_blueprint_3_4_notas_da_encomenda", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_3_encomendas", "to": "docs_11_woocommerce_blueprint_3_5_tabela_de_ability_proposta_encomendas", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_4_clientes", "to": "docs_11_woocommerce_blueprint_4_1_capabilities_reais_n\u00e3o_manage_woocommerce_gen\u00e9rico", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_4_clientes", "to": "docs_11_woocommerce_blueprint_4_2_schema_real_confirmado_por_get_item_schema", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_4_clientes", "to": "docs_11_woocommerce_blueprint_4_3_tabela_de_ability_proposta_clientes", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_5_cup\u00f5es_descontos", "to": "docs_11_woocommerce_blueprint_5_1_tipos_de_desconto_reais_via_wc_get_coupon_types", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_5_cup\u00f5es_descontos", "to": "docs_11_woocommerce_blueprint_5_2_campos_de_restri\u00e7\u00e3o_confirmados_schema_data_props_do_coupon", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_5_cup\u00f5es_descontos", "to": "docs_11_woocommerce_blueprint_5_3_tabela_de_ability_proposta_cup\u00f5es", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "to": "docs_11_woocommerce_blueprint_6_1_dois_grupos_de_controllers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "to": "docs_11_woocommerce_blueprint_6_2_capability_real_para_relat\u00f3rios_n\u00e3o_manage_woocommerce", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "to": "docs_11_woocommerce_blueprint_6_3_data_stores_de_agrega\u00e7\u00e3o_confirmados", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_6_relat\u00f3rios_analytics_wc_analytics", "to": "docs_11_woocommerce_blueprint_6_4_tabela_de_ability_proposta_analytics", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_7_webhooks", "to": "docs_11_woocommerce_blueprint_7_1_modelo_de_dados_real_confirmado_por_data_default_em_wc_webhook", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_7_webhooks", "to": "docs_11_woocommerce_blueprint_7_2_valida\u00e7\u00e3o_de_topic_n\u00e3o_\u00e9_livre_texto", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_7_webhooks", "to": "docs_11_woocommerce_blueprint_7_3_entrega_ass\u00edncrona_por_omiss\u00e3o", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_7_webhooks", "to": "docs_11_woocommerce_blueprint_7_4_tabela_de_ability_proposta_webhooks", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_9_blueprint_para_r\u00e9plica", "to": "docs_11_woocommerce_blueprint_9_1_prioridade_de_constru\u00e7\u00e3o_por_valor_esfor\u00e7o_assumindo_fase_0_do_doc00_j\u00e1_feita", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_9_blueprint_para_r\u00e9plica", "to": "docs_11_woocommerce_blueprint_9_2_reaproveitamento_expl\u00edcito_dos_padr\u00f5es_j\u00e1_documentados", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_11_woocommerce_blueprint_9_blueprint_para_r\u00e9plica", "to": "docs_11_woocommerce_blueprint_9_3_o_que_n\u00e3o_replicar_sem_decis\u00e3o_expl\u00edcita", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index", "to": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_1_mapa_dos_documentos", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_2_o_achado_mais_importante_de_toda_a_s\u00e9rie", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_3_os_5_subsistemas_de_maior_valor_para_copiar_quase_verbatim", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_4_padr\u00f5es_arquitecturais_que_atravessam_todo_o_plugin", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_6_tabela_de_risco_consolidada", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_7_como_usar_esta_documenta\u00e7\u00e3o", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_emcp_tools_mapeamento_completo_e_blueprint_de_r\u00e9plica", "to": "docs_index_metodologia", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_explicitamente_fora_de_\u00e2mbito_doc_10_2", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_0_funda\u00e7\u00e3o_sem_isto_nada_mais_tem_rollback_nem_\u00e9_seguro", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_1_conte\u00fado_wordpress_puro_sem_depend\u00eancia_de_elementor", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_2_elementor_o_n\u00facleo_de_construir_p\u00e1ginas", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_3_camadas_de_produto_sobre_o_conte\u00fado", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_4_superf\u00edcie_de_risco_elevado_opt_in", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "docs_index_5_sequ\u00eancia_de_constru\u00e7\u00e3o_recomendada_para_uma_r\u00e9plica", "to": "docs_index_fase_5_integra\u00e7\u00f5es_e_periferia_valor_incremental_n\u00e3o_bloqueante", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "EMCP Tools \u2014 Mapeamento completo e blueprint de r\u00e9plica", "count": 8}, {"cid": 1, "color": "#F28E2B", "label": "5. Sequ\u00eancia de constru\u00e7\u00e3o recomendada para uma r\u00e9plica", "count": 8}, {"cid": 2, "color": "#E15759", "label": "11 \u2014 WooCommerce: blueprint de abilities MCP (n\u00e3o \u00e9 auditoria EMCP)", "count": 7}, {"cid": 3, "color": "#76B7B2", "label": "3. Encomendas", "count": 6}, {"cid": 4, "color": "#59A14F", "label": "6. Relat\u00f3rios / Analytics (`wc-analytics/*`)", "count": 5}, {"cid": 5, "color": "#EDC948", "label": "7. Webhooks", "count": 5}, {"cid": 6, "color": "#B07AA1", "label": "2. Produtos", "count": 4}, {"cid": 7, "color": "#FF9DA7", "label": "4. Clientes", "count": 4}, {"cid": 8, "color": "#9C755F", "label": "5. Cup\u00f5es / Descontos", "count": 4}, {"cid": 9, "color": "#BAB0AC", "label": "9. Blueprint para r\u00e9plica", "count": 4}];
// 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 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>