package model // ShellStatusResponse is the API response for shell status. type ShellStatusResponse struct { WorkspaceID string `json:"workspaceId"` ShellID string `json:"shellId,omitempty"` Running bool `json:"running"` PID int `json:"pid,omitempty"` } // ShellStartResponse is the API response for POST /shell/start. type ShellStartResponse struct { WorkspaceID string `json:"workspaceId"` ShellID string `json:"shellId"` Running bool `json:"running"` PID int `json:"pid,omitempty"` } // ShellInfo is a single shell entry in a list response. type ShellInfo struct { WorkspaceID string `json:"workspaceId"` ShellID string `json:"shellId"` Running bool `json:"running"` PID int `json:"pid,omitempty"` CreatedAt string `json:"createdAt,omitempty"` } // ShellListResponse is the API response for GET /shell. type ShellListResponse struct { WorkspaceID string `json:"workspaceId"` Shells []ShellInfo `json:"shells"` } // ShellStopRequest is the body for POST /shell/stop. type ShellStopRequest struct { ShellID string `json:"shellId"` } // ShellResizeRequest is the body for POST /shell/resize. type ShellResizeRequest struct { ShellID string `json:"shellId"` Cols int `json:"cols"` Rows int `json:"rows"` } // ShellRestartRequest is the body for POST /shell/restart. type ShellRestartRequest struct { ShellID string `json:"shellId"` }