Introduce the narrative layer as a directed story-flow graph: an authored campaign a player walks node by node, replacing the interim slot/chapter model. Schema (migrations 015-021): - mysteries, global NPC templates + named poses, per-user playthroughs - story_nodes, terminals, utterances (the flow graph and dialogue trees) - clean cutover: retire slot cutscenes/chapters/seen_dialogue Runtime: - New Game creates a playthrough bound to the JWT identity (dev test-user fallback) - advance() walks the graph cutscene -> dialogue -> level -> ..., auto-skipping gates - branching dialogue: player choices route out through node terminals Admin authoring: - NPC editor: upload named poses to the gupi MinIO bucket - mystery graph editor: vertical node canvas, wiring, entrypoint, delete-by-click - dialogue crafter: utterance tree, Tab to add child, 1/2 speaker, undo Content authored via the manifest importer / admin panel and seeded for Glass Harbour. MinIO added to the dev stack; dev container runs in development mode. Also includes a folder-widget simplification (removes open/close) and a resolveUserId auth helper. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
453 B
Bash
15 lines
453 B
Bash
DATABASE_URL=postgres://osint:osint_secret@localhost:5433/osint_dev
|
|
PORT=8787
|
|
CORS_ORIGIN=http://localhost:5173
|
|
LEVEL_EDITING_ENABLED=true
|
|
JWT_SECRET=osint-local-dev-secret
|
|
MAX_DOCUMENT_BYTES=26214400
|
|
|
|
# Game asset storage (MinIO). Start it with: docker compose -f docker-compose.dev.yml up -d minio createbuckets
|
|
S3_ENDPOINT=http://localhost:9000
|
|
S3_REGION=us-east-1
|
|
S3_ACCESS_KEY=gupi
|
|
S3_SECRET_KEY=gupi_secret
|
|
S3_BUCKET=gupi
|
|
S3_FORCE_PATH_STYLE=true
|