// HolyGrail v2 · Front-end data
// Phase 2 (2026-05-14): 拔掉 4 個 demo Pilder + 5 個 demo Body
// 只留守夜人 PLD-Ω (聖杯治理基座 · 非 demo)
// 教練從此自己用 Soul Forge → Vault 啟元真實人格

// Pilders — 守夜人 PLD-Ω 是聖杯協議憲法強制角色
const PILDERS = [
  {
    id: "warden",
    code: "PLD-Ω",
    name: "守夜人",
    tag: "VIGIL-WARDEN",
    state: "sealed",
    hue: -88,
    fingerprint: "Ω:00:00:01·κ",
    seal: 100.0,
    resonance: 0,
    crystal: 100,
    persona: { humor: 8, rigor: 100, empathy: 22, candor: 96, caution: 100, wit: 30 },
    nodes: 88, edges: 240,
    crystalShards: 9999,
    crystalState: "SEALED",
    threats: [{ t: "11:00:00", lvl: "crit", msg: "1% seal verified · key offline" }],
    is_warden: true,
  },
];

// BODIES 清空 · Sprint 6 Soul Delivery 階段補 body 創建 endpoint
const BODIES = [];

// 沒 demo body · DEFAULT_DOCKS 自然空
const DEFAULT_DOCKS = {};

// ── 系統定義 (非 demo · 保留) ──
const PERSONA_LABELS = {
  humor:   { en: "HUMOR",   zh: "幽默" },
  rigor:   { en: "RIGOR",   zh: "嚴謹" },
  empathy: { en: "EMPATHY", zh: "感性" },
  candor:  { en: "CANDOR",  zh: "坦率" },
  caution: { en: "CAUTION", zh: "審慎" },
  wit:     { en: "WIT",     zh: "機鋒" },
};

const SYNES_CHANNELS = [
  { id: "voice",  name: "VOICE",  rate: "12.4 kb/s" },
  { id: "vision", name: "VISION", rate: "1.8 mb/s" },
  { id: "text",   name: "TEXT",   rate: "284 t/s" },
  { id: "haptic", name: "HAPTIC", rate: "—" },
];

// 7 inscriptions positioned around the docking ring
// angles measured from top, clockwise
const INSCRIPTIONS = [
  { id: "genesis",     num: "01", en: "Genesis",     zh: "啟元",  angle: -90 },
  { id: "resonance",   num: "02", en: "Resonance",   zh: "共鳴",  angle: -38 },
  { id: "shaping",     num: "03", en: "Shaping",     zh: "顯影",  angle: 14 },
  { id: "topology",    num: "04", en: "Topology",    zh: "織網",  angle: 66 },
  { id: "crystal",     num: "05", en: "Crystal",     zh: "印記",  angle: 118 },
  { id: "synesthesia", num: "06", en: "Synesthesia", zh: "通感",  angle: 170 },
  { id: "vigil",       num: "07", en: "Vigil",       zh: "守望",  angle: -142, locked: true },
];

window.HG2 = { PILDERS, BODIES, DEFAULT_DOCKS, PERSONA_LABELS, SYNES_CHANNELS, INSCRIPTIONS };
