feat: initial contracts

This commit is contained in:
Harivansh Rathi 2026-04-08 01:52:39 +00:00
parent 58f95324f4
commit 6f0f0643fe
7 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,16 @@
package httpapi
import (
"context"
contracthost "github.com/getcompanion-ai/computer-host/contract"
)
type Service interface {
CreateMachine(context.Context, contracthost.CreateMachineRequest) (*contracthost.CreateMachineResponse, error)
GetMachine(context.Context, contracthost.MachineID) (*contracthost.GetMachineResponse, error)
ListMachines(context.Context) (*contracthost.ListMachinesResponse, error)
StopMachine(context.Context, contracthost.MachineID) error
DeleteMachine(context.Context, contracthost.MachineID) error
Health(context.Context) (*contracthost.HealthResponse, error)
}