Files
Reims-Go/frontend/wailsjs/go/app/App.js
T
NwflowerandClaude Opus 5.5 c0f08be124 feat: per-VM CPU affinity, disk snapshots, SSH helpers and VM window actions
Backend
- Per-VM CPU affinity (vmstart/affinity.go, affinity_flow.go): modes auto /
  all / P-cores / non-LP-E / custom, saved in the VM folder, applied to the
  QEMU process on start (GUI and CLI) and live via SetVMAffinity; copied on
  clone. Start summary logs the resolved mapping. Host report gains CPU
  topology helpers (mask <-> CPU list).
- Offline qcow2 restore points via qemu-img (driver/reims/snapshot.go,
  snapshot_flow.go): list / create / restore / delete.
- SSH helpers (ssh_flow.go): remembered user, open a terminal, write an
  ~/.ssh/config entry, open VS Code Remote-SSH.
- FocusVMWindow brings the QEMU window forward (restoring it if minimized);
  CopyVMScreenshot copies a full-resolution frame to the clipboard.
- DeliverPathsToGuest copies dropped host files into the shared folder;
  main.go enables Wails file drop on elements marked --wails-drop-target.
- VM note (.reims-go-note) and a storage breakdown (extras_flow.go).

Frontend
- VM page: running state's "Show Window" and the screen preview use
  FocusVMWindow; camera button and More-menu item copy a screenshot;
  editable note under the name; SSH row shows the saved user with
  Terminal / config / VS Code actions; restore-point list; install guide
  steps can be ticked off; drop files onto the page to send them.
- Sidebar right-click menu per VM (start, show window, screenshot, stop,
  restart, settings, folders, clone, delete); double-click and Ctrl+Enter
  still run the main action.
- AffinityDialog opened from the VM menu and VM settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 04:00:48 -07:00

328 lines
8.4 KiB
JavaScript

// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function ApplyVMSettings(arg1) {
return window['go']['app']['App']['ApplyVMSettings'](arg1);
}
export function AttachGuestTools(arg1) {
return window['go']['app']['App']['AttachGuestTools'](arg1);
}
export function AttachInstaller(arg1, arg2) {
return window['go']['app']['App']['AttachInstaller'](arg1, arg2);
}
export function CancelTask(arg1) {
return window['go']['app']['App']['CancelTask'](arg1);
}
export function CheckAppUpdate(arg1) {
return window['go']['app']['App']['CheckAppUpdate'](arg1);
}
export function CheckDataRoot(arg1) {
return window['go']['app']['App']['CheckDataRoot'](arg1);
}
export function CloneVMCoW(arg1, arg2) {
return window['go']['app']['App']['CloneVMCoW'](arg1, arg2);
}
export function CompactVMDisk(arg1) {
return window['go']['app']['App']['CompactVMDisk'](arg1);
}
export function CompleteSetup(arg1) {
return window['go']['app']['App']['CompleteSetup'](arg1);
}
export function CopyVMScreenshot(arg1) {
return window['go']['app']['App']['CopyVMScreenshot'](arg1);
}
export function CreateSnapshot(arg1, arg2) {
return window['go']['app']['App']['CreateSnapshot'](arg1, arg2);
}
export function CreateVM(arg1) {
return window['go']['app']['App']['CreateVM'](arg1);
}
export function DeleteInstaller(arg1) {
return window['go']['app']['App']['DeleteInstaller'](arg1);
}
export function DeleteSnapshot(arg1, arg2) {
return window['go']['app']['App']['DeleteSnapshot'](arg1, arg2);
}
export function DeleteVM(arg1, arg2) {
return window['go']['app']['App']['DeleteVM'](arg1, arg2);
}
export function DeliverFileToGuest(arg1) {
return window['go']['app']['App']['DeliverFileToGuest'](arg1);
}
export function DeliverPathsToGuest(arg1, arg2) {
return window['go']['app']['App']['DeliverPathsToGuest'](arg1, arg2);
}
export function DetachGuestTools(arg1) {
return window['go']['app']['App']['DetachGuestTools'](arg1);
}
export function DismissTask(arg1) {
return window['go']['app']['App']['DismissTask'](arg1);
}
export function DownloadAndAttachOnlineRecovery(arg1, arg2) {
return window['go']['app']['App']['DownloadAndAttachOnlineRecovery'](arg1, arg2);
}
export function DownloadInstaller(arg1) {
return window['go']['app']['App']['DownloadInstaller'](arg1);
}
export function EjectInstaller(arg1) {
return window['go']['app']['App']['EjectInstaller'](arg1);
}
export function EnableWHPX() {
return window['go']['app']['App']['EnableWHPX']();
}
export function EnterRecovery(arg1) {
return window['go']['app']['App']['EnterRecovery'](arg1);
}
export function ExportDiagnostics(arg1) {
return window['go']['app']['App']['ExportDiagnostics'](arg1);
}
export function FinishInstall(arg1) {
return window['go']['app']['App']['FinishInstall'](arg1);
}
export function FocusVMWindow(arg1) {
return window['go']['app']['App']['FocusVMWindow'](arg1);
}
export function GetState() {
return window['go']['app']['App']['GetState']();
}
export function GetStorageBreakdown() {
return window['go']['app']['App']['GetStorageBreakdown']();
}
export function GetTasks() {
return window['go']['app']['App']['GetTasks']();
}
export function GetVMAffinity(arg1) {
return window['go']['app']['App']['GetVMAffinity'](arg1);
}
export function GetVMDetail(arg1) {
return window['go']['app']['App']['GetVMDetail'](arg1);
}
export function GetVMDriveShareSettings(arg1) {
return window['go']['app']['App']['GetVMDriveShareSettings'](arg1);
}
export function GetVMNote(arg1) {
return window['go']['app']['App']['GetVMNote'](arg1);
}
export function GetVMSSHUser(arg1) {
return window['go']['app']['App']['GetVMSSHUser'](arg1);
}
export function GetVMStats(arg1) {
return window['go']['app']['App']['GetVMStats'](arg1);
}
export function GetVMThumbnail(arg1) {
return window['go']['app']['App']['GetVMThumbnail'](arg1);
}
export function InstallRuntimeArchive(arg1) {
return window['go']['app']['App']['InstallRuntimeArchive'](arg1);
}
export function InstallRuntimeOnline(arg1) {
return window['go']['app']['App']['InstallRuntimeOnline'](arg1);
}
export function ListInstallers() {
return window['go']['app']['App']['ListInstallers']();
}
export function ListOfflineReleases() {
return window['go']['app']['App']['ListOfflineReleases']();
}
export function ListRemoteRuntimes() {
return window['go']['app']['App']['ListRemoteRuntimes']();
}
export function ListSnapshots(arg1) {
return window['go']['app']['App']['ListSnapshots'](arg1);
}
export function OpenProcessorScheduling() {
return window['go']['app']['App']['OpenProcessorScheduling']();
}
export function OpenSSHTerminal(arg1, arg2) {
return window['go']['app']['App']['OpenSSHTerminal'](arg1, arg2);
}
export function OpenSharedFolder(arg1) {
return window['go']['app']['App']['OpenSharedFolder'](arg1);
}
export function OpenURL(arg1) {
return window['go']['app']['App']['OpenURL'](arg1);
}
export function OpenVMFolder(arg1) {
return window['go']['app']['App']['OpenVMFolder'](arg1);
}
export function OpenVSCodeSSH(arg1, arg2) {
return window['go']['app']['App']['OpenVSCodeSSH'](arg1, arg2);
}
export function PickDirectory(arg1) {
return window['go']['app']['App']['PickDirectory'](arg1);
}
export function PickFile(arg1, arg2) {
return window['go']['app']['App']['PickFile'](arg1, arg2);
}
export function PreviewCreate(arg1) {
return window['go']['app']['App']['PreviewCreate'](arg1);
}
export function QuitApp() {
return window['go']['app']['App']['QuitApp']();
}
export function ReadVMLogs(arg1, arg2) {
return window['go']['app']['App']['ReadVMLogs'](arg1, arg2);
}
export function RequestClose() {
return window['go']['app']['App']['RequestClose']();
}
export function ResizeVMDisk(arg1, arg2) {
return window['go']['app']['App']['ResizeVMDisk'](arg1, arg2);
}
export function RestartVM(arg1) {
return window['go']['app']['App']['RestartVM'](arg1);
}
export function RestoreSnapshot(arg1, arg2) {
return window['go']['app']['App']['RestoreSnapshot'](arg1, arg2);
}
export function SetAutoPinPCores(arg1) {
return window['go']['app']['App']['SetAutoPinPCores'](arg1);
}
export function SetDataRoot(arg1) {
return window['go']['app']['App']['SetDataRoot'](arg1);
}
export function SetGuestPreventSleep(arg1, arg2) {
return window['go']['app']['App']['SetGuestPreventSleep'](arg1, arg2);
}
export function SetLocale(arg1) {
return window['go']['app']['App']['SetLocale'](arg1);
}
export function SetMinimizeToTray(arg1) {
return window['go']['app']['App']['SetMinimizeToTray'](arg1);
}
export function SetRuntimeChannel(arg1) {
return window['go']['app']['App']['SetRuntimeChannel'](arg1);
}
export function SetRuntimeSource(arg1) {
return window['go']['app']['App']['SetRuntimeSource'](arg1);
}
export function SetVMAffinity(arg1, arg2) {
return window['go']['app']['App']['SetVMAffinity'](arg1, arg2);
}
export function SetVMDriveShareSettings(arg1, arg2, arg3) {
return window['go']['app']['App']['SetVMDriveShareSettings'](arg1, arg2, arg3);
}
export function SetVMNote(arg1, arg2) {
return window['go']['app']['App']['SetVMNote'](arg1, arg2);
}
export function SetVMSSHUser(arg1, arg2) {
return window['go']['app']['App']['SetVMSSHUser'](arg1, arg2);
}
export function ShowMainWindow() {
return window['go']['app']['App']['ShowMainWindow']();
}
export function StartVM(arg1) {
return window['go']['app']['App']['StartVM'](arg1);
}
export function StopVM(arg1, arg2) {
return window['go']['app']['App']['StopVM'](arg1, arg2);
}
export function SuggestDataRoots() {
return window['go']['app']['App']['SuggestDataRoots']();
}
export function ToggleBorderless(arg1, arg2) {
return window['go']['app']['App']['ToggleBorderless'](arg1, arg2);
}
export function TypeClipboard(arg1) {
return window['go']['app']['App']['TypeClipboard'](arg1);
}
export function TypeText(arg1, arg2) {
return window['go']['app']['App']['TypeText'](arg1, arg2);
}
export function UpgradeDiskToNVMe(arg1) {
return window['go']['app']['App']['UpgradeDiskToNVMe'](arg1);
}
export function UseRuntime(arg1) {
return window['go']['app']['App']['UseRuntime'](arg1);
}
export function ValidateCreate(arg1) {
return window['go']['app']['App']['ValidateCreate'](arg1);
}
export function ValidateSet(arg1) {
return window['go']['app']['App']['ValidateSet'](arg1);
}
export function WriteSSHConfig(arg1, arg2) {
return window['go']['app']['App']['WriteSSHConfig'](arg1, arg2);
}