Commit graph

20 commits

Author SHA1 Message Date
ac776522f9 Merge WI-2 Architecture Cleanup (PSP1, issue #2) into main 2026-10-05 10:01:20 +02:00
Jan-Peter von Hunnius
c613142bd4 rework: A5 no-hit-seed rationale comment + spell-level range via use import (WI-2 2B findings, issue #2) 2026-10-03 17:46:05 +02:00
Jan-Peter von Hunnius
f0659421e7 sb-api: label helpers wiring + gym/stat_value + policy constants (WI-2, issue #2) 2026-10-03 12:08:21 +02:00
Jan-Peter von Hunnius
5d5a594a7a sb-api: responses module + handler rewiring (WI-2, issue #2) 2026-10-03 12:06:05 +02:00
Jan-Peter von Hunnius
6d9f02b77f sb-core: adventure service (WI-2, issue #2) 2026-10-03 12:03:18 +02:00
Jan-Peter von Hunnius
423997f2d7 sb-core: DomainError + signature conversions (WI-2, issue #2) 2026-10-03 12:00:11 +02:00
Jan-Peter von Hunnius
093012af20 sb-core: constants module (WI-2, issue #2) 2026-10-03 11:58:02 +02:00
Jan-Peter von Hunnius
337e9bcf2c fmt: repo-wide baseline (WI-2, issue #2) 2026-10-03 11:53:59 +02:00
Jan-Peter von Hunnius
899fde8fc3 Merge WI-1 Injectable RNG (PSP1, issue #1) into main 2026-10-03 10:14:24 +02:00
Jan-Peter von Hunnius
61fef27917 WI-1: injectable RNG - request_rng() single construction point (StdRng::from_os_rng), thread rng through create_character and run_adventure, seeded determinism test (PSP1, issue #1) 2026-10-03 09:56:41 +02:00
64e081aeb7 ci-fix: common unter Originalname clonen (include_str!-Pfade), sb-common-Absolutpfad in allen Cargo.toml umschreiben
Some checks failed
ci-moria CI gruen auf moria/workhorse (hunnius = Mirror)
server-ci / build-test (push) Has been cancelled
2026-09-07 14:42:17 +02:00
19e8727a7c ci: trigger test 3
Some checks are pending
server-ci / build-test (push) Waiting to run
2026-09-07 14:40:55 +02:00
41a6e09aa8 ci: trigger test 2
Some checks are pending
server-ci / build-test (push) Waiting to run
2026-09-07 14:35:45 +02:00
a66d39207b ci: trigger test
Some checks are pending
server-ci / build-test (push) Waiting to run
2026-09-07 14:34:49 +02:00
1efc75e9b3 CI: Forgejo-Actions-Workflow (Multi-Repo: server+common als Siblings, sb-common-Patch-Pfad fuer CI umgeschrieben)
Some checks are pending
server-ci / build-test (push) Waiting to run
2026-09-07 13:38:41 +02:00
Jan-Peter von Hunnius
65a765e7af CI: symlink sb-common as sibling of workspace (include_str! paths resolve relative to sb-core sources)
All checks were successful
build / build-test (push) Successful in 48s
2026-09-01 11:28:58 +02:00
Jan-Peter von Hunnius
6d5491e176 CI: mkdir -p before cloning sb-common (git clone creates no parent dirs)
Some checks failed
build / build-test (push) Failing after 1m42s
2026-09-01 11:00:31 +02:00
Jan-Peter von Hunnius
b4502999da CI: add workspace build/test workflow; clones skara-brae-common to the absolute path expected by the sb-common path dependency
Some checks failed
build / build-test (push) Failing after 57s
2026-09-01 06:25:00 +02:00
Jan-Peter von Hunnius
6410e0a86d Implement auth, persistence, typed responses, and injectable RNG
Auth: JWT tokens (sb-auth) with argon2 password hashing, login/register
endpoints, Bearer token middleware protecting all routes except auth.
Authorization checks ensure users can only access their own characters.

Persistence: SQLite via rusqlite (sb-db) with write-through on all
mutations. Optional via SB_DB_PATH env var; falls back to in-memory.

Typed responses: ~20 response DTOs in sb-shared replacing ad-hoc JSON.

Combat: Injectable RNG via &mut impl Rng for deterministic tests.

Clean Architecture: Combat types and response DTOs in sb-shared; domain
services in sb-core; auth in sb-auth; persistence in sb-db.
2026-08-09 16:51:52 +02:00
Jan-Peter von Hunnius
7a75a523f0 Initial scaffold: Rust server workspace (sb-api, sb-core, sb-db, sb-auth, sb-shared) + sb-common dependency + systemd 2026-08-02 12:48:08 +02:00