release: seed the demo's NPC profiles, factions and chat styles (v0.6.1) #66

Merged
whitlocktech merged 2 commits from edge into main 2026-10-27 20:32:15 -05:00
Member

Cuts edge over to main so the demo can install the DM26 seed hook (website DEMO_MODE.md §7.1, §7.3).

What lands on main

  • #65 fix(demo): onDemoSeed also takes npcs (factions and profiles, through the NPC model) and chat (a BetterChat style per server and group, creating the group if the rig's import hasn't brought it in yet). Without it, every restored demo wipe loses the default set's NPC profiles: the rig is marked managed, so the fresh site adopts nothing and its first push empties them. The chat titles are lost too.

Release. A fix, so CI releases v0.6.1: the same coreApi ^1.19.0, and the same protocol: 14 in the install manifest. The demo's wipe chooses the newest release with an equal protocol (DM12), so it picks this up at its next run. Outside the demo nothing changes: core calls the hook only from seed:demo, with DEMO_MODE=true.

  • AI-assisted: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY

Cuts `edge` over to `main` so the demo can install the DM26 seed hook (website `DEMO_MODE.md` §7.1, §7.3). **What lands on main** - #65 `fix(demo)`: `onDemoSeed` also takes `npcs` (factions and profiles, through the NPC model) and `chat` (a BetterChat style per server and group, creating the group if the rig's import hasn't brought it in yet). Without it, every restored demo wipe loses the default set's NPC profiles: the rig is marked managed, so the fresh site adopts nothing and its first push empties them. The chat titles are lost too. **Release.** A `fix`, so CI releases **v0.6.1**: the same `coreApi ^1.19.0`, and the same `protocol: 14` in the install manifest. The demo's wipe chooses the newest release with an equal protocol (DM12), so it picks this up at its next run. Outside the demo nothing changes: core calls the hook only from `seed:demo`, with `DEMO_MODE=true`. - [x] AI-assisted: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
wtclaude added 2 commits 2026-10-27 20:23:29 -05:00
fix(demo): seed NPC profiles, factions and chat styles (DM26)
All checks were successful
PR Checks / server-tests (pull_request) Successful in 55s
PR Checks / client-build (pull_request) Successful in 1m7s
PR Checks / frozen-manifest (pull_request) Successful in 1m36s
1f4ad25edb
The demo's first restored wipes brought the default set's groups and
permissions back, but not its NPCs or chat titles. The restored rig's
RunicNPC says it is already managed (by the site before this one), so the
fresh site adopts nothing (D244) and its first push empties the profiles;
the placements then wait on missing profiles. The import never adopts a
group's chat style either.

onDemoSeed now also takes:
- npcs.factions: the faction table, through the NPC model's setFactions;
- npcs.profiles: each profile through the model's create/update, so it is
  checked exactly as the admin page checks it (an existing one is updated);
- chat: a BetterChat style per server and group, the defaults filled in. A
  group the rig's import has not brought in yet is created for that server,
  and the import then adopts the rig's title, rank and permissions into it.

The section's new parts are checked before anything is written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
Merge pull request 'fix(demo): seed NPC profiles, factions and chat styles (DM26)' (#65) from feat/demo-seed-npcs-chat into edge
All checks were successful
PR Checks / server-tests (pull_request) Successful in 38s
PR Checks / client-build (pull_request) Successful in 55s
PR Checks / frozen-manifest (pull_request) Successful in 59s
5c9cefdbc2
Reviewed-on: #65
whitlocktech merged commit 161457dbf3 into main 2026-10-27 20:32:15 -05:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RunicGateway/Module-Rust#66
No description provided.