Commit Graph
60 Commits
Author SHA1 Message Date
IcarusZezen d09990709e fix(vm,ui): retry deleted VM directory cleanup and validate non-empty target dirs 2026-12-03 14:18:26 +08:00
Dnyo666 ff99d8d702 feat(host,ui): add opt-in Hyper-V boot switch and hypervisor launch detection (#122)
- 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
2026-12-03 13:39:08 +08:00
bvzrays 33fde6b5cb fix: harden computer-use lifecycle and control channel 2026-12-02 16:58:49 +00:00
root d2c877772e Merge upstream main 9b7d5b8: retain Npcap lifecycle with computer-use 2026-12-02 23:54:14 +08:00
root 0d6695d84c Merge upstream main dae9f06: CoW protection and runtime rollback 2026-12-02 23:53:20 +08:00
Nwflower 9b7d5b86bd Merge pull request #92 from bvzrays/feat/computer-use-mcp-plugins 2026-12-02 06:41:11 -07:00
Admilkk 6aacd1bfc5 fix: complete CoW backing protection and clone deletion 2026-12-02 19:48:27 +08:00
bvzrays 352aa2f4a0 feat: add host computer-use and MCP bridge 2026-12-02 18:56:11 +08:00
root ac6bad82dc Merge origin/main f8cabb4 and preserve Npcap bridge lifecycle 2026-12-02 13:49:01 +08:00
root 9ab72730d5 fix(network): preserve reviewed Npcap bridge implementation baseline 2026-12-02 13:23:08 +08:00
YXC0915 e6c1ebce1f Update nested virtualization against main and expose its CLI setting 2026-12-02 04:42:12 +08:00
Nwflower 08b3089569 chore: clean up stale and redundant comments across backend and frontend 2026-12-01 09:24:19 -07:00
root f73520d70f Merge upstream v0.2.11 and preserve Npcap launch integration 2026-12-01 22:08:17 +08:00
Nwflower d573104072 fix(vm): honor plugin state and report inventory failures 2026-12-01 05:53:47 -07:00
root c62048dcd1 Fix Npcap peer validation, managed CLI launch and installer startup guard 2026-12-01 20:32:42 +08:00
root bb4c876e25 Merge upstream main and adapt Npcap networking to VMRef lifecycle 2026-12-01 19:44:19 +08:00
Nwflower 3c75181fbc Merge pull request #46 from ChenRuoT/fix/vulkan-probe-diagnostics
fix(host): 自动发现 Windows 驱动包中的 Vulkan ICD 并报告探测错误
2026-12-01 04:12:50 -07:00
Nwflower aacaec535d Merge origin/main into feat/vmref-driver-start
Adapt Intel VM suspend/resume to driver.SuspendDriver and lifecycle.Service, move native VM close confirmation into internal/host, migrate vm-suspend legacy capability detection, drop moved runtime build tooling, and regenerate i18n and Wails bindings.
2026-12-01 03:47:20 -07:00
Nwflower 8887771bec feat(plugin): allow disabling macOS guest plugin and guard native flows 2026-12-01 03:29:03 -07:00
NwflowerandClaude Opus 5.5 aabe0cf29f feat(plugin): hide the core system plugin from plugin lists
builtin.core only contributes the default theme and cannot be turned off,
so listing it as a plugin was noise. The plugins page, plugin list and
the plugin doctor fallback now use Registry.ListVisible; Info and
market comparisons still see every plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 03:05:54 -07:00
YXC0915 30db99fc71 fix(ui): anchor close confirmation to the VM window 2026-12-01 17:45:29 +08:00
ChenRuoT e62742f65d fix(host): surface Vulkan probe failures in setup and doctor 2026-12-01 13:01:37 +08:00
YXC0915 e7a6dd7a5b ui: confirm native VM closes in the desktop client 2026-12-01 12:05:05 +08:00
YXC0915 a32fe323ab fix: preserve force stop and recover incomplete VM suspend attempts 2026-12-01 08:54:22 +08:00
YXC0915 4cc4b6c02c fix: make Intel VM suspend and resume transactional 2026-12-01 08:37:30 +08:00
YXC0915 2596728789 feat: integrate Intel VM suspend and instant resume across backend, CLI, and UI 2026-12-01 08:05:05 +08:00
Nwflower c1b33c9c4f refactor(app): isolate native macOS adapters
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.
2026-11-30 11:18:09 -07:00
Nwflower 05ddd2b6f3 refactor(app): remove legacy storage client paths
Share redaction and GPU log diagnosis outside the macOS client, move snapshot validation to the driver contract, and delete superseded App storage implementations.
2026-11-30 10:45:58 -07:00
Nwflower 2235195587 refactor(lifecycle): route VM storage operations by driver
Add typed snapshot, CoW clone, resize and compaction contracts. Move macOS disk mechanics behind the driver, preserve progress and pending UI behavior, and pass driver identity through App, CLI and frontend entry points.
2026-11-30 10:16:48 -07:00
Nwflower 84f42a7604 fix(migrate): collapse guest and VMRef upgrades
Support the released unstamped and v1 layouts without migrating unreleased plugin IDs. Combine guest and VMRef transformations into one v3 state save, preserve the original backup, and abort on backup failures. Rescan owner markers during v3 and record ownership on every macOS create path.
2026-11-30 09:54:45 -07:00
Nwflower e83cce28e6 feat(lifecycle): route media actions and VM logs
Add ActionDriver/LogDriver dispatch for insert, eject, NVMe upgrades and serial/QEMU logs across lifecycle, App and CLI.

Pass driver IDs through frontend media and log calls and extend second-driver action/log coverage.
2026-11-30 09:40:52 -07:00
Nwflower b6fde8fd4b feat(lifecycle): route VM details and settings by driver
Resolve details through driver.Show with a generic GetVMInfo binding, and validate/apply changes through lifecycle.Set in App and CLI.

Move guest language and OpenCore replay into ReimsMacOSDriver.Set, preserving legacy fallbacks and adding second-driver detail/settings acceptance.
2026-11-30 09:04:14 -07:00
Nwflower 8b6ca5c719 feat(lifecycle): route restart and delete by driver
Add lifecycle Delete and driver-qualified App Restart/Delete methods, CLI vm delete --driver/--keep-files, and frontend driver-aware actions.

Extend the second-driver App acceptance to restart and delete while preserving legacy macOS restart fallback and cleanup.
2026-11-30 08:56:36 -07:00
Nwflower 71fb8bb458 refactor(vmstart): split macOS preparation from host helpers
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.
2026-11-30 08:50:55 -07:00
Nwflower 7ba5e3fa9c feat(lifecycle): route VM starts through owning drivers
Change Driver.Start to StartRequest/StartResult with a compile-time macOS adapter assertion and registry-to-router coverage. Keep legacy Sidecar name alongside VMRef and grant argument privileges by driver ownership.

Move macOS preparation into ReimsMacOSDriver after hook veto, fail preparation errors before launch, and verify veto leaves OpenCore, recovery markers and ledgers unchanged.

Unify GUI, CLI and window list/start/stop through internal/lifecycle, select frontend VMs by VMRef, lazily initialize reims only in legacy CLI branches, and cover a second driver through App user entry points.
2026-11-30 08:34:20 -07:00
Nwflower 59aaf36eb5 refactor(app): key VM runtime state by VMRef
Qualify transitions, pending changes, reboot watchers, disk/process caches, typing queues, thumbnail locks, and VM log sources so same-named VMs do not share mutable state.

Read driver-qualified transition keys in the frontend and add --start-driver to CLI/window handoff. Legacy window start rejects other drivers explicitly until lifecycle routing lands.
2026-11-30 07:51:10 -07:00
Nwflower 9204b58987 feat(driver): disambiguate VMs with VMRef
Keep same-named VMs from different drivers, reject ambiguous bare-name resolution, and add exact ResolveRef routing with driver-qualified keys.

Declare DataRoot-relative VM roots in guest driver manifests, validate traversal and absolute paths, and scan declarations for unavailable drivers.

Add data layout v3 for driver-qualified per-VM plugin settings, preserve explicit values during migration, and pass VMRef keys from the settings UI.
2026-11-30 07:38:46 -07:00
Nwflower 5cbd7bceac feat(plugins): move macOS support into builtin.guest.macos
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.
2026-11-30 07:20:15 -07:00
Nwflower 6dcf33f71b feat(dataroot): guard data folder writes and migrations 2026-11-30 06:58:32 -07:00
Nwflower 5e39b11566 refactor(macos): isolate guest-specific code and guard host imports 2026-11-30 05:47:14 -07:00
NwflowerandClaude Opus 5.5 809ce68cf3 feat(datamigrate): version the data folder and migrate it on startup
The data folder had no record of which layout wrote it, so a new release
could not tell old data from current data. <DataRoot>\.reims-go-data.json
now records data_version and the app version that last raised it. It is
kept out of reims-go.json, which is rewritten whole on every save and
would drop the field under an older build.

Each build carries every step from older layouts to its own; the GUI and
CLI run them in order before reading the folder, so users can jump
straight from any old version. A failed step leaves the version at the
last success and resumes next launch; a folder from a newer build is left
untouched.

Step v1 writes the driver ownership marker into every reims-ctl VM.
driver.RenamedDriverIDs maps old driver IDs to new ones for when a driver
moves to another plugin; markers are not rewritten, so downgrades still
resolve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 05:16:38 -07:00
Nwflower de523c5323 feat(plugin,cli): add plugin pack, default keyring, and reims-go/plugins market URLs 2026-11-30 01:33:27 -07:00
Nwflower 5a5977f93e feat(plugin,cli): add static security scanner and lazy plugin market
- Add unified static security scanner and install/load gate (internal/plugin/scanner.go) blocking undeclared binaries, SVG active content, theme script escapes, and undeclared network calls while reporting L3 Sidecar privileges and SHA-256
- Add lazy plugin market client (internal/plugin/market.go) with remote index fetching (REIMS_GO_PLUGIN_MARKET_URL), memory/disk caching, embedded offline fallback, withdrawn-plugin blocking, compatibility preflight, and SHA-256 verification
- Extend CLI with plugin search/update/install <id> and enhanced .zip/--json security doctor output; update backend locale catalog and plugin architecture docs
2026-11-30 01:04:20 -07:00
Nwflower ceeb483cfb fix(i18n,plugin,ui): harden PR #10 redaction, trust boundaries, ICU limits, and UI contrast
Follow-up hardening from PR #10 review:
- Redact quoted/space-containing SMC OSKs, hyphenated MACs, and extended token keys without corrupting benign 'serial ...' messages; make RawDetail truncation UTF-8-safe and register reims.RedactText in CLI
- Enforce trust boundaries so unprivileged community language packs cannot hijack built-in zh-CN/en-US catalogs or overwrite target-owned plugin metadata/messages
- Avoid triggering inUseChecker/Sidecar wake-ups inside Registry.OnChange (ResolvedLocalePacks) and Broker.AllowRate; bound Sidecar NotifyIfRunning with a 500ms timeout; add l10nCache generation counter and syncLocales broadcast
- Cap ICU nesting depth (16) and template size (16 KiB) in Go & TS; reserve built-in anchors in 8-hop FallbackChain; fix C.UTF-8 detection, zero-var fault isolation, and PseudoLocalize brace escaping
- Fix pluginsdk Server.T apostrophe/contraction handling, defensive cloning, and sequential plugin/localeChanged dispatch
- Fix WCAG 2.1 AA contrast for --accent-soft-text, prevent PluginPanelFrame RPC hang on locale switch, guard setPluginLocales re-renders, and fix <=768px drawer & RTL toast swipe-out CSS
2026-11-30 00:26:14 -07:00
Nwflower 14f72889dd Merge pull request #10 from Dnyo666/feat/i18n-l10n-v2
Resolve merge conflicts with main in frontend/src/i18n.ts and internal/i18n/i18n.go, migrate the 12 i18n keys added on main since branching (CoW backing chain diagnostics and About open-source license viewer) into locales/{zh-CN,en-US}/*.json, and regenerate catalogs via cmd/i18ngen.
2026-11-30 00:18:19 -07:00
Nwflower 18df9e5c49 feat(host,cli,ui): detect and surface deep or broken CoW backing chains 2026-11-30 00:02:47 -07:00
Dnyo666 ceeec602be feat(i18n,plugin): implement end-to-end i18n & L10n v2 architecture and language pack protocol
- Build single-source-of-truth 7-domain locale catalog (`locales/{zh-CN,en-US}/*.json`, 1,100+ keys) and `cmd/i18ngen` generator emitting Go catalogs and eager/lazy-split TypeScript domain modules (`core`/`vm` eager; `wizard`/`settings`/`plugins` lazy)
- Add zero-dependency ICU MessageFormat subset (`{var}`, `{n, number}`, CLDR `plural`, `select`), 8-hop cycle-free regional fallback (`zh-HK/zh-MO -> zh-Hant -> zh-TW -> zh-CN`), `auto` OS display-language preference, and `en-XA` pseudo-localization across Go and TypeScript
- Introduce `CodedError` supportability with `[E_CODE]` badges, collapsible `[detail]` diagnostics, and automatic SMC OSK / SMBIOS serial / MAC / token redaction
- Add Host × Guest macOS dual-terminology annotation (`FormatGuestTerm`) across 6 official Apple guest UI locales and localize Win32 system tray, file pickers, and DPI-adaptive `installguide` overlays with CJK font fallback probing
- Upgrade L1–L4 plugin localization to dual-track v2: Track A full language packs (`files`, WOFF2 `fonts`, cross-plugin `pluginOverrides`), Track B plugin-scoped `l10n` bundles (`HasUIMessages` isolation), live `plugin/localeChanged` notifications, `< 2ms` static CLI pack loading, and `reims-go plugin locale init|check` translator toolchain with `zh-TW` and `ja-JP` reference packs
- Harden security, WCAG 2.1 AA token contrast, `< 768px` responsive drawer & form layouts, and RTL logical properties; add backend security/locale regression tests and frontend `node --test` static/runtime guard suite in CI

# Conflicts:
#	frontend/src/i18n.ts
#	internal/cli/cli.go
#	internal/i18n/i18n.go
2026-11-30 14:56:19 +08:00
Nwflower 21eef18f7b refactor(runtime,ci): remove GitCode mirror sync and download source 2026-11-29 23:10:27 -07:00
Nwflower 1eb7ac949a feat(runtime,cli,ui): support removing inactive runtimes 2026-11-29 20:22:26 -07:00
Nwflower 78d76f7353 feat(host,ui): probe Vulkan 1.3 GPU capabilities and grade compatibility 2026-11-29 18:16:20 -07:00