Commit Graph
14 Commits
Author SHA1 Message Date
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
NwflowerandClaude Opus 5.5 2f1e0bb0e4 feat(cli): fold the command line into reims-go.exe
Only reims-go.exe ships now; reims-go-cli.exe is gone. Without
arguments it opens the window, with a command it runs command-line mode
(cmd/reims-go moved to internal/cli). Missing standard handles are
attached to the parent console; handles the caller passes in (pipes,
files) are kept, so scripts and agents get output and exit codes.

`vm start` hands the VM to the window process so it gets Guest Tools
and the Win10 cold-reboot watcher, which a command that exits could not
run:
- a running window gets the request through Wails' single-instance
  protocol and stays hidden;
- otherwise the command launches the window tray-only (--background),
  detached from the caller's console and handles;
- the window writes the outcome, with the VM's last log lines on
  failure, to <DataRoot>\tmp\cli-start-*.json (it accepts no other
  path) and the command reports it.
With --data-root the VM still starts in the command itself.

The window now takes a single-instance lock: a second double-click
brings the running window forward. `wails dev` builds use their own
lock name.

Tested on Win10 19045 with macos-tahoe: start from the command line
with no window running (4 s, exit 0) and with one running (3 s, exit 0,
same process); the cold-reboot monitor was held by the window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:52:07 -07:00
NwflowerandClaude Opus 5.5 331d0748a4 refactor(vmstart): share VM start preparation between GUI and CLI
New internal/vmstart holds the steps both front ends need: commit-memory
precheck, offline helper disk, recovery boot picker, guest-language replay,
WHPX nested-virt compatibility, and P-core pinning after start. app.go's
StartVM and the CLI's "vm start" / "vm create --start" (cmd/reims-go/start.go)
call it, replacing memcheck.go and the copies in install/opencore flows.
"vm start" now refuses a VM that is already running instead of rewriting its
OpenCore image. Guest Tools bridging and the Win10 cold-reboot watcher still
need a long-lived process and stay GUI-only (architecture.md 3.5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:51:23 -07:00
NwflowerandClaude Opus 5.5 ce2a0ed813 feat(runtime): rename candidate channel to alpha and build it daily from upstream
- Runtime channel "candidate" is now "alpha"; configs, the --candidate flag
  and SetRuntimeChannel("candidate") still map to alpha.
- ListRemote follows GitHub's Link pagination so stable runtimes are not
  pushed off the first page by daily alphas.
- patches/series.txt is the single patch queue for CI and pack-runtime.ps1;
  pack-runtime takes -Patches and derives allowed changed files from the
  patches (fixes a false "undeclared change" with the coroutine patch).
- build-runtime.yml runs daily: resolves upstream HEAD, skips commits already
  released, applies the queue via apply-patch-series.ps1 (skips patches
  already upstream, stops on conflicts), gates with check-runtime-alpha.ps1,
  publishes an alpha prerelease, keeps the 7 newest alphas, and files issues
  on failure or merged patches. Stable promotion stays manual.
- AGENTS.md and runtime docs updated for the alpha channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 10:42:53 -07:00
Nwflower b2f7f036d8 feat(m5): add macOS prev-lang preset, disk resize/compact, audio diagnostics, and VM thumbnails
- M5.5: add pure-Go internal/opencore reader/in-place patcher for OpenCore NVRAM prev-lang:kbd with sidecar persistence, automatic replay after update-opencore/graphics changes/CoW clones, wizard/settings/CLI (--guest-lang) support
- M5.6: add stopped VM disk resize (qemu-img resize + dynamic macOS APFS expand command) and standalone qcow2 compaction (backing-file guard, free-space check, qemu-img check, atomic swap) in GUI Settings and CLI (vm resize/compact)
- M5.9: add Win32 winmm audio output/input device probing, fix reims-ctl show audio_backend parsing, expose audio backend selector (auto/dsound/none) and latency/mic diagnostics in Settings & CLI
- UI & thumbnails: add QMP screendump VM thumbnails (internal/thumb, thumbnail_flow.go), VMPage/CreateWizard layout polish, and docs/ui-audit.md
- Update docs/roadmap.md for M5.5, M5.6, and M5.9
2026-11-28 10:17:54 -07:00
Nwflower 7b0fbd5978 release: v0.2.1 with app update checker, CI/release workflows, and upstream PR prep
Release Reims-Go / release (push) Canceled after 0s
2026-11-28 09:01:10 -07:00
Nwflower fc284e99ab feat: complete M3.4-M3.7, M4 CI/smoke pipeline, and fix Guest Tools UTF-8 clipboard
- Fix macOS Guest Tools LaunchAgent UTF-8 encoding (__CF_USER_TEXT_ENCODING=0x08000100 + LANG/LC_ALL=en_US.UTF-8) so pbpaste/pbcopy never outputs GBK mojibake on Chinese macOS, plus server-side UTF-8 validation
- M3.4: Auto-upgrade legacy AHCI to NVMe on Exit recovery mode + one-click Upgrade to NVMe banner + Windows USB/external drive (IOCTL_STORAGE_QUERY_PROPERTY BusTypeUsb) and high-RAM diagnostics
- M3.5: One-click redacted diagnostics .zip export (host report, runtime manifest, VM detail, serial/QEMU/app logs with MAC, serial, SMC OSK, and Bearer token redaction)
- M3.6: Automatic qemu-img convert for .vmdk/.raw disk imports in CreateWizard
- M3.7: Instant CoW VM derivation (CloneVMCoW + CloneDialog) preserving golden backing image untouched
- M4.2/M4.3: Add GitHub Actions CI & candidate runtime build workflows + scripts/smoke-runtime.ps1
2026-11-28 08:50:16 -07:00
Nwflower 17497aee73 feat: add offline helper disk, recovery mode switch, and QMP typing
- Pure-Go HFS+ offline helper disk (REIMSHELP) bypassing Recovery's missing pkgutil & read-only installer target, with automatic blank-disk APFS formatting and non-blank safety confirmation
- Recovery mode UX: rename Finish install to Exit recovery mode, add Enter recovery mode via OpenCore boot picker (--boot-selection), show Attach offline image on VM page with ~1 GB Apple online recovery fallback download
- Pre-apply WHPX kernel-irqchip=off when nested-virt probe fails and filter benign TSC deadline timer warnings
- QMP keyboard typing (type clipboard / one-click Recovery command) and offline-install network toggle
2026-11-28 07:53:40 -07:00
Nwflower a962c52bcb feat: harden VM creation and expose host optimizations 2026-11-28 06:31:54 -07:00
NwflowerandClaude Opus 5.5 6d16105201 fix: restore LF line endings and the location.json path in roadmap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:29:16 -07:00
NwflowerandClaude Opus 5.5 36c937d718 fix: runtime install deadlock, manifest raw_bytes, CLI flag order
- extractTarZst uses Windows' System32 tar.exe (reads .tar.zst and D:\
  paths); a bare "tar" could resolve to GNU tar, whose failure left the
  zstd | tar pipe deadlocked. The fallback now decompresses to a temp file.
- pack-runtime.ps1 casts raw_bytes to an integer (PowerShell 7 summed to a
  double, "962466926.0", which the Go reader rejected); the reader now also
  accepts whole-number floats.
- `runtime fetch latest --candidate` honours flags after the positional arg.
- Docs: release layout, source package contents and the open MSYS2 source
  question (portable-runtime-spec.md §4, §7); roadmap M1.2 and M2.1 progress.

Verified: a fresh `reims-go runtime fetch latest --candidate` downloads the
published runtime-3731afd from GitHub, checks SHA256SUMS.txt, unpacks and
activates it (75 s for 169 MB); reims-ctl and QEMU run from the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:28:30 -07:00
NwflowerandClaude Opus 5.5 f6f6bfce34 feat: online runtime install, first-launch data folder picker, source packages
- Runtime: list and fetch runtimes from this repo's GitHub Releases
  (stable by default, candidate on request), with SHA256 check and resume.
  CLI gains `runtime available` and `runtime fetch`; the host page gets an
  online install row and a "receive candidates" switch.
- First launch: pick a data folder (non-system drives first, USB never
  recommended); the choice is recorded in %APPDATA%\reims-go\location.json.
  Existing installs in the default folder are adopted without asking.
- pack-runtime.ps1: also builds the matching source package, records every
  patch with its SHA256 and the channel, and refuses undeclared changes in
  the build trees.
- patches: declare reims-vgpu-cargo-lock.patch (Cargo.lock source lines).
- UI: sidebar and VM page restyle, new design tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:11:37 -07:00
NwflowerandClaude Opus 5.5 2f43182f0c feat: offline installer downloads, task progress events, Win10 cold reboot
Offline installers (roadmap M1.3):
- internal/installer drives `reims-util --json offline-installer` and parses
  its JSON event stream (upstream reims-vgpu 3731afd, reims_util.rs:423-509)
- downloads hold installers/.lock like reims-ctl, so the two never write the
  same file; checked against the real reims-ctl (TestLockExcludesReimsCtl)
- pause = stop the process, rerun resumes; deletes go through
  `reims-ctl downloads delete`, which refuses files in use or downloading
- CLI: reims-go installer list | download | cached | delete
- Wails bindings: ListOfflineReleases, DownloadInstaller, ListInstallers,
  DeleteInstaller

Task events (ui-redesign B1):
- tasks.go tracks long-running work and emits "reims:task" (throttled to
  200 ms per task); VM creation turns reims-ctl's progress lines into task
  progress and logs each step once
- the status bar shows the current task with a progress bar, details in a
  tooltip and a pause button; the frontend regex merging is removed

Win10 cold reboot workaround:
- host probes whether WinHvPlatform.dll lacks WHvResetPartition (Win10 19045)
- internal/qmp watches a dedicated QMP channel for guest resets; with
  -no-reboot the app restarts the VM in a fresh partition
- architecture.md documents download routing and the workaround

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:35:03 -07:00
Nwflower 46f274be09 feat: initialize reims-go portable runtime spec, packager, and M1 bilingual Go CLI 2026-11-28 02:04:27 -07:00