Files
authoring-service/src/authoring_service/constants.py
2026-07-09 16:34:28 +01:00

204 lines
8.1 KiB
Python
Executable File

"""Hidden narrative constants used by the authoring UI."""
from __future__ import annotations
HIDDEN_CONTENT_TYPES = [
"tooltip",
"quote",
"whisper",
"poem",
"observation",
"dialogue",
"secret search",
"symbolic fragment",
"ambient memory",
"hidden interaction",
]
HIDDEN_CONTENT_CLASSES = [
"fragment",
"memory",
"story material",
"interaction",
"lore",
"system layer",
]
HIDDEN_SURFACES = [
"tooltip",
"quote",
"poem",
"story",
"observatory",
"constellation route",
"hidden route",
"hidden interaction",
"search",
"keyboard",
"play",
"dream",
"temporal",
"future z",
"seasonal",
"loading",
"guestbook",
"terminal",
"layer guide",
]
TYPE_ARCHITECTURE = {
"tooltip": {"contentClass": "fragment", "surfaces": ["tooltip"], "observatory": "ambient"},
"quote": {"contentClass": "fragment", "surfaces": ["quote", "observatory"], "observatory": "ambient"},
"whisper": {"contentClass": "fragment", "surfaces": ["tooltip", "quote", "observatory"], "observatory": "ambient"},
"poem": {"contentClass": "fragment", "surfaces": ["poem", "observatory"], "observatory": "ambient"},
"observation": {"contentClass": "memory", "surfaces": ["story", "observatory"], "observatory": "node"},
"dialogue": {"contentClass": "memory", "surfaces": ["story", "observatory"], "observatory": "node"},
"secret search": {"contentClass": "interaction", "surfaces": ["search", "hidden route"], "observatory": "event"},
"symbolic fragment": {"contentClass": "fragment", "surfaces": ["story", "observatory"], "observatory": "ambient"},
"ambient memory": {"contentClass": "memory", "surfaces": ["story", "observatory"], "observatory": "node"},
"hidden interaction": {"contentClass": "interaction", "surfaces": ["hidden route", "keyboard", "play"], "observatory": "event"},
}
LEGACY_CONTENT_TYPE_MAP = {
"hidden tooltip": "tooltip",
"hover message": "tooltip",
"loading screen message": "whisper",
"hidden dialogue": "dialogue",
"hidden conversation": "dialogue",
"journal entry": "observation",
"future z message": "ambient memory",
"young z memory fragment": "ambient memory",
"sensei chi wisdom entry": "quote",
"aphy system message": "whisper",
"lima note/message": "whisper",
"dream sequence": "symbolic fragment",
"guestbook entry": "observation",
"terminal log": "hidden interaction",
"fake error message": "hidden interaction",
"recurring joke": "whisper",
"rare event": "hidden interaction",
"secret interaction": "hidden interaction",
"seasonal event": "hidden interaction",
"weather-based event": "hidden interaction",
"hidden achievement": "hidden interaction",
"search toast": "secret search",
"search route": "secret search",
"keyboard secret": "hidden interaction",
"family layer": "observation",
}
CHARACTER_REGISTRY = {
"young z": {
"id": "young z",
"displayLabel": "young z",
"aliases": ["Young Z", "young z", "young-z", "young_z", "young"],
"territoryColor": "#d8a95a",
"glow": "#f0b85c",
"sizes": {"tiny": 18, "medium": 42, "close": 56, "focus": 82},
"observatory": {"territory": "nostalgic/playful memories", "shimmer": "soft"},
"presenceTones": ["nostalgic", "funny", "hopeful"],
"presenceKeywords": ["childhood", "play", "desk", "crayon", "young", "small", "blanket", "memory"],
"symbol": "Y",
"motifs": ["crayon sun", "blanket cape", "childhood desk"],
"themes": ["childhood", "play", "memory", "safety"],
"affinities": ["z", "future z", "aphy", "lima"],
},
"z": {
"id": "z",
"displayLabel": "z",
"aliases": ["Z", "z", "zaine"],
"territoryColor": "#d6c38a",
"glow": "#ead68e",
"sizes": {"tiny": 18, "medium": 42, "close": 56, "focus": 82},
"observatory": {"territory": "system/symbolic areas", "shimmer": "diagnostic"},
"presenceTones": ["funny", "strange", "hopeful"],
"presenceKeywords": ["system", "console", "diagnostic", "keyboard", "search", "terminal", "backup", "symbolic", "query"],
"symbol": "A",
"motifs": ["console", "diagnostic", "backup"],
"themes": ["humor", "systems", "care through tools"],
"affinities": ["z", "lima", "sensei chi"],
},
"lima": {
"id": "lima",
"displayLabel": "lima",
"aliases": ["Lima", "lima"],
"territoryColor": "#d06b78",
"glow": "#f2c58b",
"sizes": {"tiny": 18, "medium": 42, "close": 56, "focus": 82},
"observatory": {"territory": "warm/protective arcs", "shimmer": "warm"},
"presenceTones": ["warm", "protective", "soft"],
"presenceKeywords": ["lima", "love", "warm", "kitchen", "light", "ring", "home", "protect", "eat"],
"symbol": "L",
"motifs": ["warmth", "kitchen light", "ring"],
"themes": ["love", "home", "grounding"],
"affinities": ["z", "aphy", "future z", "young z"],
},
"sensei chi": {
"id": "sensei chi",
"displayLabel": "sensei chi",
"aliases": ["Sensei Chi", "sensei chi", "sensei-chi", "sensei_chi", "sensei"],
"territoryColor": "#75a9bd",
"glow": "#9ccddd",
"sizes": {"tiny": 18, "medium": 42, "close": 56, "focus": 82},
"observatory": {"territory": "reflective areas", "shimmer": "quiet"},
"presenceTones": ["wise", "melancholy", "soft"],
"presenceKeywords": ["reflection", "patience", "wisdom", "lesson", "tea", "garden", "quiet", "sensei"],
"symbol": "S",
"motifs": ["tea", "garden", "quiet lesson"],
"themes": ["reflection", "patience", "wisdom"],
"affinities": ["aphy", "future z"],
},
"future z": {
"id": "future z",
"displayLabel": "future z",
"aliases": ["Future Z", "future z", "future-z", "future_z", "future"],
"territoryColor": "#a58ac9",
"glow": "#c2a4ee",
"sizes": {"tiny": 18, "medium": 42, "close": 56, "focus": 82},
"observatory": {"territory": "temporal regions", "shimmer": "temporal"},
"presenceTones": ["hopeful", "melancholy", "wise"],
"presenceKeywords": ["future", "time", "clock", "older", "tomorrow", "age", "reassurance", "continuity"],
"symbol": "F",
"motifs": ["clock", "age 40", "future log"],
"themes": ["time", "reassurance", "continuity"],
"affinities": ["z", "young z", "lima", "sensei chi"],
},
}
HIDDEN_CHARACTERS = list(CHARACTER_REGISTRY)
HIDDEN_TONES = ["warm", "funny", "nostalgic", "wise", "strange", "soft", "hopeful", "protective", "melancholy"]
HIDDEN_RARITIES = ["common", "uncommon", "rare", "very rare", "seasonal", "timed"]
HIDDEN_STORY_MARKERS = ["public", "hidden", "rare", "emotional", "dream-like", "temporal"]
HIDDEN_DISCOVERY_STYLES = ["gradual", "direct", "hidden route", "character-led", "dream-like", "temporal"]
HIDDEN_LAYER_DEPTHS = [
{
"id": "0",
"name": "Surface Reality",
"meaning": "Visible content, ordinary interactions, and the world that every visitor sees.",
},
{
"id": "1",
"name": "Hidden Echoes",
"meaning": "Small discoveries, recurring symbols, tooltips, jokes, and fragments beneath the surface.",
},
{
"id": "2",
"name": "Memory Archive",
"meaning": "Personal recollections, nostalgia, young z memories, and emotional fragments.",
},
{
"id": "3",
"name": "Reflection Garden",
"meaning": "Wisdom, philosophy, questions, and moments of introspection.",
},
{
"id": "4",
"name": "Temporal Currents",
"meaning": "Future echoes, revisits, time anomalies, and conversations spanning different moments.",
},
{
"id": "5",
"name": "Heartspace",
"meaning": "Rare emotional truths, enduring relationships, and the quiet centre connecting everything.",
},
]