feat(graph): integrate hyperstitionstud_io.* & urn:io:hyperstitionstud:* namespaces, dual file:// + http:// portability (--bundle-encyclopedia), and v1.2.0 common library

This commit is contained in:
Hermes Agent committed 2026-11-29 21:06:48 +00:00
1 parent cd1abd3c6c
commit b4ca2ceb1e
11 files changed
+302 -275

No files matched your search

+5 -4
View File
@@ -324,11 +324,12 @@
<script src="graph-data.js"></script>
<script>
(function() {
const DATA = window.ENCYCLOPEDIA_GRAPH_DATA;
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA;
if (!DATA) {
document.getElementById("hudStats").textContent = "Error: graph-data.js not found.";
return;
}
const ENC_BASE = DATA.encyclopedia_base_path || "../technocapital-singularity-zoology/encyclopedia";
const canvas = document.getElementById("graphCanvas");
const ctx = canvas.getContext("2d");
@@ -632,7 +633,7 @@
n.sample_equations.map(eq => `<li>${eq}</li>`).join("") + `</ul></div>`);
}
if (n.volume_pdf_rel) {
htmlParts.push(`<a class="pdf-link" href="../technocapital-singularity-zoology/encyclopedia/${n.volume_pdf_rel}" target="_blank">Open Encyclopedia Volume PDF (${n.volume_pdf_rel.split('/').pop()})</a>`);
htmlParts.push(`<a class="pdf-link" href="${ENC_BASE}/${n.volume_pdf_rel}" target="_blank">Open Encyclopedia Volume PDF (${n.volume_pdf_rel.split('/').pop()})</a>`);
}
} else if (n.node_type === "ConceptualOperatorOrIdiom") {
htmlParts.push(`<div class="kv-box">
@@ -641,7 +642,7 @@
${n.definition}
</div>`);
if (n.volume_pdf_rel) {
htmlParts.push(`<a class="pdf-link" href="../technocapital-singularity-zoology/encyclopedia/${n.volume_pdf_rel}" target="_blank">Open Encyclopedia Volume PDF</a>`);
htmlParts.push(`<a class="pdf-link" href="${ENC_BASE}/${n.volume_pdf_rel}" target="_blank">Open Encyclopedia Volume PDF</a>`);
}
} else if (n.node_type === "TaxonAssemblageBuild") {
htmlParts.push(`<div class="kv-box">
@@ -664,7 +665,7 @@
<strong>Division:</strong> <code>${n.div_id}</code><br/>
<strong>Articles:</strong> ${n.article_count} (${n.page_count} pages)
</div>`);
htmlParts.push(`<a class="pdf-link" href="../technocapital-singularity-zoology/encyclopedia/${n.div_id}/${n.slug}.pdf" target="_blank">Open Volume PDF (${n.slug}.pdf)</a>`);
htmlParts.push(`<a class="pdf-link" href="${ENC_BASE}/${n.div_id}/${n.slug}.pdf" target="_blank">Open Volume PDF (${n.slug}.pdf)</a>`);
} else {
htmlParts.push(`<div class="kv-box"><strong>Scope:</strong> ${n.description || ""}</div>`);
}