Declare the reims guest driver statically, merge the install guide into the optional macOS plugin, and keep compatibility settings under the new owner. Add data layout v2 with atomic state migration, ledger backups, targeted argument ownership moves, and idempotent v1 upgrade coverage. Reduce builtin.core to the default theme. Add a reverse import ratchet for internal/macos and document the transition. The macOS plugin remains enabled by default during migration; that default and the future privilege/trust rules remain subject to review.
31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
package builtin
|
|
|
|
import "github.com/Nwflower/reims-go/internal/plugin"
|
|
|
|
// IDCore is the always-on host plugin. Guest-specific drivers, start
|
|
// preparation and workarounds live in internal/macos/guest, not here.
|
|
const IDCore = "builtin.core"
|
|
|
|
func defCore(ver string) plugin.PluginDef {
|
|
return plugin.PluginDef{
|
|
Manifest: plugin.Manifest{
|
|
Schema: 1,
|
|
ID: IDCore,
|
|
Version: ver,
|
|
Name: plugin.LocalizedText{ZhCN: "Reims-Go 核心", EnUS: "Reims-Go Core"},
|
|
Description: plugin.LocalizedText{ZhCN: "宿主默认外观与基础能力,始终启用", EnUS: "Default host appearance and foundation; always on"},
|
|
Publisher: "Reims-Go",
|
|
License: "Apache-2.0",
|
|
DefaultEnabled: true,
|
|
Contributes: plugin.Contributes{Themes: []plugin.ThemeContribution{{
|
|
ID: IDThemeDefault,
|
|
Name: plugin.LocalizedText{ZhCN: "默认主题", EnUS: "Default"},
|
|
Appearance: "both",
|
|
}}},
|
|
},
|
|
Source: plugin.SourceBuiltin,
|
|
Trust: plugin.TrustOfficial,
|
|
System: true,
|
|
}
|
|
}
|