Skip to content

release: RegisterPersistence and managed directories (0.26.0)#72

Merged
tgiachi merged 5 commits into
mainfrom
develop
Jul 7, 2026
Merged

release: RegisterPersistence and managed directories (0.26.0)#72
tgiachi merged 5 commits into
mainfrom
develop

Conversation

@tgiachi

@tgiachi tgiachi commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes develop to main:

  • Managed directories: SquidStdOptions.Directories (created at bootstrap creation) and DirectoriesConfig.RegisterDirectory (PR feat(persistence): one-call RegisterPersistence and managed directories #71).
  • RegisterPersistence one-call persistence stack (entity registrations applied automatically, lifecycle service, save directory defaulting to the managed save dir) and RegisterMessagePackSerializer.
  • Plugin docs ordering corrections.

Test plan

tgiachi added 5 commits July 7, 2026 12:44
SquidStdOptions.Directories declares directories created at bootstrap
creation; DirectoriesConfig.RegisterDirectory (string and enum overloads)
adds and creates a managed directory imperatively, idempotently, and
returns its path.
…lizer registration

RegisterPersistence wires registry (with recorded entity registrations
applied on first resolution), journal, snapshot service and the
persistence lifecycle service, config-first style: explicit instance or
eager persistence YAML section, save directory defaulting to the managed
save directory. RegisterMessagePackSerializer registers the MessagePack
serializer for both serialization interfaces.
… ordering fix

Documents RegisterPersistence and the managed save directory, the
Directories options and RegisterDirectory API, and corrects the stale
UsePlugins-before-ConfigureLogging constraint left over from the
pre-config-first flow.
feat(persistence): one-call RegisterPersistence and managed directories
var effective = resolver.Resolve<PersistenceConfig>();

return new BinaryJournalService(
Path.Combine(ResolveSaveDirectory(resolver, effective), effective.JournalFileName),

var path = config.RegisterDirectory("scripts");

Assert.Equal(Path.Combine(root.Path, "scripts"), path);

var path = config.RegisterDirectory("SavedGames");

Assert.Equal(Path.Combine(root.Path, "saved_games"), path);
@tgiachi
tgiachi merged commit 844f248 into main Jul 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants