Commit Graph
16 Commits
Author SHA1 Message Date
IcarusZezen dced8db0e4 Merge upstream main (2a9e5f0) into feat/host-guest-prereqs-a1-a2 2026-12-03 09:52:50 +08:00
YXC0915 e67fcfb26e feat(guesttools): integrate bidirectional file clipboard on main 2026-12-03 05:46:32 +08:00
icaruszezen 844e4472af chore(plugin): bump pluginApi to 1.2.0 2026-12-03 00:28:13 +08:00
icaruszezen c083bded68 feat(driver,plugin,ui): add hosted VM, endpoint, and process-tree prerequisites (Stage A1+A2) 2026-12-03 00:28:13 +08:00
bvzrays 352aa2f4a0 feat: add host computer-use and MCP bridge 2026-12-02 18:56:11 +08:00
Nwflower a312ff4567 feat(images): add pluggable Images page with macOS builtin plugin, wordmark loader, and SLA notice 2026-12-01 06:44:40 -07:00
Nwflower 3281bfed12 Merge pull request #52 from yfl520/feat/downloader-plugin 2026-12-01 05:04:02 -07:00
NwflowerandClaude Opus 5.5 5a8014864e feat(plugin): lock the UI and bridge contracts before the ecosystem grows
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>
2026-12-01 04:40:10 -07:00
事事休 1fdbefd9c9 feat(plugin,installer): add downloaders extension point and builtin parallel downloader 2026-12-01 16:22:12 +08: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
NwflowerandClaude Opus 5.5 e259833b5f feat(plugins): rework the plugin market and first-run language packs
Market page
- Card grid that fills the width; cards show only icon, name,
  publisher (trust mark by color and icon), version and the action.
- Paints from cache via the new PeekPluginMarket binding, then revalidates;
  cards reveal 24 at a time as the feed scrolls.
- Category chips come from the index (MarketBrowseResult.kinds) instead of
  a fixed list; the alpha toggle and source badge are gone.
- Installed/Market is a segmented control; refresh now shows feedback.
- WordmarkLoader writes the Reims-Go wordmark stroke by stroke while the
  market loads (static pulse under reduced motion).

Install and enable
- reims:plugin-install events drive a progress bar on the card.
- After install, a dialog offers to enable the plugin and lists what it can
  do in plain words (PluginInfo.risks / MarketCatalogItem.risks, derived
  from tier, permissions and contributions in risks.go).
- Enabling a plugin that provides UI languages switches to the first one
  unless the current language is among them (PluginInfo.locales).

Trust
- A package installed from the project's own index, fetched over HTTPS in
  this session, inherits the index's trust level when its SHA-256 matches.
  Third-party indexes (REIMS_GO_PLUGIN_MARKET_URL) cannot vouch and show
  every entry as community.
- Trust no longer waives review: official packages get the same scan,
  high-risk approval and L3 hash check as any other; only builtin and
  bundled plugins are pre-approved.

First launch
- When the OS language is not covered by zh-CN/en-US, the folder screen
  looks up a matching pack once (SuggestLanguagePack) and offers to install
  it; Continue installs and enables it so the UI follows the OS language.
  Before setup the market keeps its index in memory only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 05:17:45 -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
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 f0b69c252c feat(update,plugin,ui): add in-app self-update, plugin locale packs, and About page
- Add shared resumable + SHA256SUMS-verified downloader (internal/fetch) and Windows executable swap/relaunch flow (internal/selfupdate, internal/app/appupdate_flow.go, --wait-pid in main.go/cli).
- Add dedicated About page and sidebar update capsule with background release checks, download progress, and restart confirmation when VMs are running.
- Implement plugin-contributed UI and backend/CLI locale packs (contributes.locales, LocalizedText extra tags, validation, runtime overlay, and PopupSelect language picker).
- Move kernel-irqchip and Windows processor scheduling controls into VM Compute > Performance settings, hide Plugins settings gear for VM-only schemas, and align locked system plugin switches.
2026-11-29 10:32:11 -07:00
Nwflower 181c616909 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.
2026-11-29 09:54:51 -07:00
Nwflower f30d901b7f feat(plugin): implement plugin architecture, driver router, theme engine, and CLI/GUI management 2026-11-29 08:48:00 -07:00