Spaces:
Running
Running
Update index.html
Browse files- index.html +37 -0
index.html
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
|
|
|
| 1 |
+
<!--
|
| 2 |
+
IC MAP (Hugging Face Renderer) — CANON v1
|
| 3 |
+
|
| 4 |
+
Purpose:
|
| 5 |
+
- Render a per-user 3D “IC Map” network (15 nodes) using data fetched from the app API.
|
| 6 |
+
- This is a renderer only. No interpretation logic lives here.
|
| 7 |
+
|
| 8 |
+
Hard invariants:
|
| 9 |
+
- Exactly 15 nodes. IDs are fixed. No extras. No missing.
|
| 10 |
+
- NEVER display or mention DISC (letters, acronym, or score breakdown). DISC is input-only and must be translated server-side into IC node weights.
|
| 11 |
+
- Topology is fixed client-side: ringLinks per cluster + fixed bridge links.
|
| 12 |
+
|
| 13 |
+
Handshake (query params):
|
| 14 |
+
- assessment_id (required)
|
| 15 |
+
- viz_token (required) short-lived signed token
|
| 16 |
+
- api_base (optional; defaults to REQUIRED_INPUT_PROD_API_BASE)
|
| 17 |
+
|
| 18 |
+
Fetch:
|
| 19 |
+
GET `${api_base}/api/assessments/${assessment_id}/visualization?viz_token=${viz_token}`
|
| 20 |
+
|
| 21 |
+
Expected response:
|
| 22 |
+
{
|
| 23 |
+
version: "ic_map_v1",
|
| 24 |
+
topology_id: "ic_map_topology_v1",
|
| 25 |
+
assessment_id: string,
|
| 26 |
+
generated_at: ISO string,
|
| 27 |
+
nodes: [{ id, group, label, weight_baseline, weight_pressure }]
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
Node IDs (fixed):
|
| 31 |
+
Move: pace, directness, influence, stability_pref, precision_pref
|
| 32 |
+
Protect: priority_1..priority_5 (labels dynamic from top values)
|
| 33 |
+
Pressure: pursuit, withdrawal, control, appeasement, escalation
|
| 34 |
+
|
| 35 |
+
Failure behavior:
|
| 36 |
+
- If fetch fails or payload invalid, fall back to demo data and show “Data: Demo” in HUD.
|
| 37 |
+
-->
|
| 38 |
<!doctype html>
|
| 39 |
<html lang="en">
|
| 40 |
<head>
|