Spaces:
Running
Running
deploy(hf): sync szl-holdings/a11oy@main derived COPY set
Browse filesReusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 1050 Pruned: 0
Derived from Dockerfile COPY sources (NO hand-maintained allowlist).
Signed-off-by: SZL Holdings <noreply@szlholdings.ai>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- static/3d/brain.html +15 -9
static/3d/brain.html
CHANGED
|
@@ -136,7 +136,7 @@ import * as label from "/static/3d/szl3d/szl3d_label.js";
|
|
| 136 |
import * as THREE from "three";
|
| 137 |
|
| 138 |
// ---------------------------------------------------------------------------
|
| 139 |
-
// Doctrine v11 (binding): WIRE TO LIVE DATA.
|
| 140 |
// Every value is MEASURED from a live read (a real 0 stays 0), or UNKNOWN where
|
| 141 |
// the source exposes none. A failed feed shows NO-LIVE-DATA, never a guess.
|
| 142 |
// Molding is a local display-only sculpt — it cannot alter any measured value.
|
|
@@ -244,7 +244,7 @@ const LOBES = [
|
|
| 244 |
fetchStat: async () => {
|
| 245 |
const j = await getJSON(HF_API + "/collections?owner=" + HF_ORG + "&limit=" + PAGE_CAP);
|
| 246 |
return { text: capText(j.length), honesty: capHonesty(j.length),
|
| 247 |
-
caption: "Occipital lobe · " + capText(j.length) + " curated collections on the live Hub ·
|
| 248 |
"click to open " + HF_ORG };
|
| 249 |
},
|
| 250 |
},
|
|
@@ -549,7 +549,7 @@ function wireMolding() {
|
|
| 549 |
}
|
| 550 |
|
| 551 |
// ---------------------------------------------------------------------------
|
| 552 |
-
// HUD —
|
| 553 |
// ---------------------------------------------------------------------------
|
| 554 |
const hudEl = document.getElementById("hud");
|
| 555 |
const hud = {};
|
|
@@ -663,15 +663,21 @@ function wirePicking() {
|
|
| 663 |
}
|
| 664 |
|
| 665 |
// ---------------------------------------------------------------------------
|
| 666 |
-
// orchestrate: boot -> brain -> HUD ->
|
|
|
|
|
|
|
|
|
|
| 667 |
// ---------------------------------------------------------------------------
|
| 668 |
async function main() {
|
| 669 |
buildHud();
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
|
|
|
|
|
|
|
|
|
| 675 |
|
| 676 |
let ok = 0, structuralOnly = false;
|
| 677 |
|
|
|
|
| 136 |
import * as THREE from "three";
|
| 137 |
|
| 138 |
// ---------------------------------------------------------------------------
|
| 139 |
+
// Doctrine v11 (binding): WIRE TO LIVE DATA. Eight lobes = eight live public reads.
|
| 140 |
// Every value is MEASURED from a live read (a real 0 stays 0), or UNKNOWN where
|
| 141 |
// the source exposes none. A failed feed shows NO-LIVE-DATA, never a guess.
|
| 142 |
// Molding is a local display-only sculpt — it cannot alter any measured value.
|
|
|
|
| 244 |
fetchStat: async () => {
|
| 245 |
const j = await getJSON(HF_API + "/collections?owner=" + HF_ORG + "&limit=" + PAGE_CAP);
|
| 246 |
return { text: capText(j.length), honesty: capHonesty(j.length),
|
| 247 |
+
caption: "Occipital lobe · " + capText(j.length) + " curated collections on the live Hub · " + capHonesty(j.length) + " · " +
|
| 248 |
"click to open " + HF_ORG };
|
| 249 |
},
|
| 250 |
},
|
|
|
|
| 549 |
}
|
| 550 |
|
| 551 |
// ---------------------------------------------------------------------------
|
| 552 |
+
// HUD — eight live lobe reads + doctrine honesty chips.
|
| 553 |
// ---------------------------------------------------------------------------
|
| 554 |
const hudEl = document.getElementById("hud");
|
| 555 |
const hud = {};
|
|
|
|
| 663 |
}
|
| 664 |
|
| 665 |
// ---------------------------------------------------------------------------
|
| 666 |
+
// orchestrate: boot -> brain -> HUD -> eight live reads (each honest on its own).
|
| 667 |
+
// The live reads NEVER depend on the renderer: on a WebGL-less device the HUD
|
| 668 |
+
// still fills with real measured values (the LIVE badge reflects the feeds,
|
| 669 |
+
// not the canvas) — an honest fallback, never a frozen "…".
|
| 670 |
// ---------------------------------------------------------------------------
|
| 671 |
async function main() {
|
| 672 |
buildHud();
|
| 673 |
+
let stageOk = true;
|
| 674 |
+
try { await ensureStage(); } catch (_) { stageOk = false; }
|
| 675 |
+
if (stageOk) {
|
| 676 |
+
buildBrain();
|
| 677 |
+
wirePicking();
|
| 678 |
+
wireMolding();
|
| 679 |
+
setMold(false);
|
| 680 |
+
}
|
| 681 |
|
| 682 |
let ok = 0, structuralOnly = false;
|
| 683 |
|