* 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.
Complete the merge with main so the suspend probe and the cold-start
probe resolve the same socket, and keep the architecture tests honest
after the atomicfile refactor moved the suspend commit's os.Rename into
the platform file-operation helpers.
- startprep: query the VM status through qmp.SocketPathForVM instead of
the VM-directory socket, so long-path VMs stop failing the probe.
- qmp: drop the uncalled QueryStatusVM wrapper; QueryStatusAt is the one
product entry, and its test now exercises it directly.
- archtest: list the two suspend_fileops files as the rename owners that
suspend_transaction.go handed its os.Rename calls to.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
VMPage was one 1587-line component. Restore points, SSH access, host DNS,
endpoints, the install card, notices, the summary and the technical details
now have their own files, and both ellipsis menus share one ActionMenu.
Remove the borderless toggle and the runtime-kind listing, which no part of
the window used. The binding test no longer counts a binding's type
declaration in wails.ts as a caller.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app and the command line each had their own copy of the language pack
merge order. The locale code now has its own file. The package scan is split
by what it checks, and a new test limits how long one function may get.
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>
Events to the frontend go through App.emit, and a test keeps their names
in step with wails.ts. QEMU argument splitting, hidden console processes,
the macOS release record, the running check and a few smaller helpers
now exist once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fifteen call sites each had their own temp-file-and-rename code. Some
used a fixed temporary name, so two writers could mix their content, and
most did not flush before the rename. They now share atomicfile.Write.
An architecture test keeps new os.Rename calls out of other packages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Delete functions that no product code calls, and fold "simple plus
WithOptions" pairs into the one signature callers actually use. Rename
the live macOS lifecycle functions that were labelled Legacy.
The architecture tests now share one source loader and reject functions
without a product caller and catalog messages nobody reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Route generic App and CLI code through lifecycle and driver models. Move native macOS detail, create, settings and legacy flows into explicit files, share progress and redaction through host, and enforce the boundary with a file-scoped architecture ratchet.
Move Prep, recovery markers, offline helper and OpenCore language handling into internal/macos/startprep while retaining memory, affinity and line-writer helpers in vmstart.
Remove the host-to-macOS vmstart architecture exception and preserve preparation and commit-memory tests on both sides.
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.