MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / VmHandle

Interface VmHandle

e2e/src/vm/types.ts:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22export interface VmHandle {
23 readonly os: VmOs;
24 readonly arch: VmArch;
25 /** Current reachable address of the guest (re-resolved across reboots). */
26 readonly host: string;
27 /**
28 * Path to the SSH private key for key-based providers (EC2). Undefined for
29 * password-based providers (tart/sshpass). Published by globalsetup so the
30 * stateless worker-side `restart()` can reboot the guest.
31 */
32 readonly sshKeyPath?: string;
33 /** Run a command in the guest over SSH (shell on Unix, PowerShell on Windows). */
34 ssh(command: string): Promise<SshResult>;
35 /** Copy a local file or directory into the guest (recursive for directories). */
36 push(localPath: string, remotePath: string): Promise<void>;
37 /** Reboot the guest OS; resolves only once SSH is reachable again. */
38 reboot(): Promise<void>;
39 /** Forward `localhost:<localPort>` → `guest:<guestPort>` over SSH. */
40 tunnel(guestPort: number): Promise<Tunnel>;
41 /** Discard the VM (delete the tart clone / terminate the EC2 instance). */
42 discard(): Promise<void>;
43}
44
45export interface VmProvider {
46 readonly os: VmOs;

Callers 21

provisionMacFunction · 0.80
setupCliTargetFunction · 0.80
waitGuestHttpFunction · 0.80
waitGuestPageTargetFunction · 0.80
provisionLinuxFunction · 0.80
mainFunction · 0.80
CommandPaletteFunction · 0.80
splitTokenFunction · 0.80
getTypeLabelFunction · 0.80
commitFunction · 0.80
AddAccountModalViewFunction · 0.80
buildMcpInstallCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected