feat(cordis): 接入上下文组合与模组事务热替换

This commit is contained in:
2026-08-16 23:20:40 +08:00
commit ad256f109b
676 changed files with 52168 additions and 0 deletions
@@ -0,0 +1,25 @@
# Changelog
本文件记录 `ShrinkApp.Core` 的包内变更。
## [0.1.1] - 2026-08-16
### Added
- `ShrinkAppSettings.hostingMode``ShrinkAppHostingMode`):`ClassicHost` 保持原有自动启动;`ContextLoader` 让位给 ShrinkContext 加载器宿主(见 `ShrinkContext.AppAdapter`),支持运行中按模块 disable/enable。
- `ShrinkApp.InitializeForExternalHost(services, settings)`:外部宿主把服务容器接回 `ShrinkApp.Services` 静态入口。
- `ShrinkAppInstallers.GetDiscoveredInstallerTypes()`:编译期安装器发现的公共入口,供外部宿主枚举。
- `ShrinkAppContext.CreateStandalone(services, settings)`:非 MonoBehaviour 宿主构建上下文。
### Changed
- `Bootstrap``ContextLoader` 模式下直接返回,经典路径零行为变化。
## [0.1.0] - 2026-05-18
### Added
- 新增统一宿主层 `ShrinkApp.Core`
- 新增 `ShrinkApp``ShrinkAppHost``ShrinkAppSettings``ShrinkAppServices``ShrinkAppContext`
- 新增模块安装器契约:`IShrinkAppModuleInstaller``[ShrinkAppModuleInstaller]`
- 新增运行时生命周期事件:`ShrinkAppStartedEvent``ShrinkAppStartFailedEvent`