feat(plugin,ui): consolidate builtin.core, enforce Guest Tools toggle, and add QQ group entry

- Merge essential builtins (driver, default theme, start prep, host workarounds) into always-on system plugin builtin.core, with state.json and arg-ledger migration plus app-scoped workaround settings honored by both GUI and CLI.
- Ensure disabling builtin.bridge.guest-tools stops the localhost bridge without being restarted by feature callers, fix guesttools.Server Start/Close race, and reflect the disabled state in VMPage and SettingsModal.
- Add QQ community group entry in About settings with Windows tencent:// protocol detection, cached invite redirect resolution, and copy-ID fallback.
- Update docs/plugin-architecture.md, Wails bindings, and i18n strings.
This commit is contained in:
Nwflower committed 2026-11-29 09:54:51 -07:00
1 parent 007f2ac93c
commit 181c616909
35 files changed
+1432 -578

No files matched your search

+3 -3
View File
@@ -44,9 +44,6 @@ func openCLIPluginManager(cfg *config.Config, safeMode bool) (*plugin.Manager, *
return filepath.Join(cfg.XDGDataDir(), "reims-ctl", "vms")
})
mgr.Registry().SetInUseChecker(func(pluginID string) (bool, string, error) {
if pluginID == builtin.IDDriverReimsMacOS {
return router.CheckDriverInUse(context.Background(), builtin.IDDriverReimsMacOS)
}
seen := map[string]bool{}
candidates := append([]string{pluginID}, mgr.Registry().DeclaredDriverIDs(pluginID)...)
for _, did := range candidates {
@@ -64,6 +61,9 @@ func openCLIPluginManager(cfg *config.Config, safeMode bool) (*plugin.Manager, *
mgr.Close()
return nil, nil, err
}
if err := builtin.MigrateRetired(mgr); err != nil {
fmt.Fprintf(os.Stderr, "[plugin] could not migrate merged core plugin state: %v\n", err)
}
_ = mgr.LoadExternal()
mgr.Registry().Reconcile(context.Background())
+5
View File
@@ -13,6 +13,8 @@ import (
"github.com/Nwflower/reims-go/internal/config"
"github.com/Nwflower/reims-go/internal/host"
"github.com/Nwflower/reims-go/internal/i18n"
"github.com/Nwflower/reims-go/internal/plugin"
"github.com/Nwflower/reims-go/internal/plugin/builtin"
"github.com/Nwflower/reims-go/internal/vmstart"
)
@@ -45,6 +47,9 @@ func startVM(ctx context.Context, cfg *config.Config, prep *vmstart.Prep, name s
return startInWindow(ctx, cfg, name)
}
// Honour the core plugin's WHPX setting, as the window does.
st := plugin.ReadState(cfg.DataRoot)
prep.SkipWHPXFallback = !builtin.CoreSettingOnInState(st, builtin.SettingWHPXFallback)
prep.Prepare(ctx, name, rep, &d)
if err := prep.Client.StartWithCompat(ctx, name, os.Stdout, os.Stderr, func(msg string) {
fmt.Fprintln(os.Stderr, msg)