* refactor: 收拢核心管线、强化错误处理、优化热路径与更新体积
* fix: preserve download recovery and bound PBZX decoding
Keep VM diagnostics available during plugin initialization failures and verify settings through the unified driver lifecycle.
assets/logo.svg was duplicated byte for byte in frontend/public, and WordmarkLoader hand-copied the ten wordmark strokes from the Python generator, so the icon and the lettering could drift silently.
scripts/brand/wordmark.py now writes frontend/public/logo.svg and frontend/src/components/wordmark.gen.ts, and the loader imports that geometry. The unreferenced assets/wordmark-*.svg outputs are gone, and frontend/scripts/test-brand.mjs fails when either copy is edited by hand.
The theme engine and the interactive UI SDK imported each other's types; the
SDK now owns the types of its own interface.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
App.tsx imported a one-line helper from SchemaForm, which pulled both text
domains into the startup bundle. The i18n test now follows the real import
graph instead of a hand-kept file list, so it catches this. npm test runs
every test file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every VM action had two bindings: one by name and one by driver and name.
The window used only the second, so the first is gone and the WithDriver
suffix with it. Unused bindings and frontend exports are removed too.
Tests now reject bindings the window never calls, stale generated
bindings and unused frontend exports. TypeScript rejects unused locals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Plugins can add pages to the sidebar, VM tabs, Settings and dialogs. Their
pages can now use host forms and navigation, VM and settings access,
authorized file I/O, task progress, controlled HTTP requests, events and
private storage.
Plugin pages cannot change allow_ai_access, which stays the user's per-VM
consent. Closing a page cancels its unfinished tasks, and running plugin
tasks no longer block changing the data folder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Distinguish hypervisor launch disabled (hypervisor_off) from BIOS/UEFI
virtualization disabled (no_hypervisor) via unprivileged Win32 & DeviceGuard
probes without spawning background PowerShell/BCD processes
- Add default-off `enable_hypervisor_switch` preference in Settings -> General
with confirmation modal, active VM/task guards, HVCI notice, same-boot undo,
and single-UAC System32 execution without auto-restarting Windows
- Update Engine page, first-run Setup, `reims-go doctor`, and VM startprep
diagnostics for `hypervisor_off` and pending boot states
- Add per-VM `capture_host_shortcuts` option persisted in `.reims-go-keymap.json`
(independent from modifier preset and backward-compatible with legacy configs
and Wails callers omitting the field). When enabled, unmapped Win and Alt keys
route through the existing Guest Tools v8 hidutil carrier (`lcmd`/`rcmd`/`lopt`/
`ropt`) while the VM is focused, preventing host Win/Alt shortcuts (e.g. PixPin
Alt+A, Alt+Tab, Alt+F4, Ctrl+Alt+A, Win+...) without modifying explicit custom
bindings or bumping Guest Tools version.
- Monitor `EVENT_SYSTEM_FOREGROUND` and `EVENT_OBJECT_NAMECHANGE` on the Windows
keymap hook thread to immediately release held modifiers on focus loss and
promote `WH_KEYBOARD_LL` back to the top of the hook chain on VM focus entry
and SDL3 in-window re-capture, with per-key timestamp filtering for delayed
focus-loss events, swap-window event deduplication, Win64 32-bit parameter
narrowing, and fallback timer recovery.
- Serialize `SetVMKeymap` read-merge-save under `keymapMu`, expose the toggle in
Settings with zh-CN/en-US i18n, and add Go + frontend unit tests.
Plugins that need their own UI and richer themes should not force breaking
contract changes later, so the full shape is published now (uiApi 2.0,
bridgeApi 1.0) and every entry is marked stable or experimental:
- docs/plugin-architecture.md: plugin-owned views (sidebar, vm.tab,
settings, dialog) and the bridge methods (§5.6), the finer theme
contract with slot catalogue, layers, layout and icons (§5.1), and the
contract evolution rules (§6.3).
- ui-contract.ts and the new bridgeContract.ts list stable and
experimental entries; the build fails if a stable entry is not emitted
or an emitted entry is still experimental, and writes
bridge-contract.json next to ui-contract.json.
- internal/plugin/contract.go mirrors them as catalogs (contribution
points, slots with accepted content, view locations, layers, layout,
icons, bridge methods and events) and derives HostFeatures; tests keep
Go and TypeScript identical and require every contributes field to be
catalogued.
- Manifests gain views, theme layout and engines.bridgeApi. Unknown
slots, locations, layout values and icon names are rejected;
experimental use, unknown fields and missing engines ranges are doctor
warnings. Declared-but-unrendered entries (vmCards, statusItems,
settingsPages, vmTemplates, runtimeSources, runtimes, uiScripts,
diagnostics, theme icons and brandMark, panels outside
settings.plugin) are now marked experimental.
- The panel bridge resolves methods through the catalog, adds hello and
refuses experimental methods; panels get theme.changed and
locale.changed events; the Sidecar handshake and the Go SDK carry
uiApi, bridgeApi and features.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove backdrop-filter from software-composited overlays/dialogs under WebviewGpuIsDisabled: true, preload license text before mounting the modal, fix short-viewport double scrollbars and narrow-screen row wrapping, restore keyboard focus on modal close, wire RTL direction to Radix menus, add ArrowUp/ArrowDown support and signature-based layout measurement in Segmented, and harden CRITICAL-3/CRITICAL-4 static guards.
Scope `.menu` and `.tooltip` enter animations to their open data-state
selectors and explicitly set `animation: none` on `[data-state="closed"]`
so Radix Presence unmounts closing menus immediately instead of replaying
`menu-in` for 160ms when `data-menubar-switch` is removed during a sibling
switch. Also keep `data-menubar-switch` active across the switch frame,
narrow `onPointerDownOutside` to sibling menu buttons so clicks in the gap
still dismiss, fix `prefers-reduced-motion` close animations (adding
`fade-out` for closing toasts), and add a static guard in `test-i18n.mjs`.