Documentation
¶
Index ¶
- Variables
- func Execute() error
- func ExecuteAdbExpose(cmd *cobra.Command, opts *AdbExposeOptions, args []string) error
- func ExecuteAdbExposeInteractive(cmd *cobra.Command, opts *AdbExposeOptions) error
- func ExecuteAdbExposeList(cmd *cobra.Command, opts *AdbExposeListOptions) error
- func ExecuteAdbExposeStop(cmd *cobra.Command, opts *AdbExposeStopOptions, args []string) error
- func ExecuteBoxCreateFromDevice(cmd *cobra.Command, opts *BoxCreateFromDeviceOptions) error
- func ExecuteDeviceConnect(cmd *cobra.Command, opts *DeviceConnectOptions, args []string) error
- func ExecuteDeviceConnectLinuxConnect(cmd *cobra.Command, opts *DeviceConnectLinuxConnectOptions, args []string) error
- func ExecuteDeviceConnectList(cmd *cobra.Command, opts *DeviceConnectListOptions) error
- func ExecuteDeviceConnectRegister(cmd *cobra.Command, opts *DeviceConnectRegisterOptions, args []string) error
- func ExecuteDeviceConnectUnregister(cmd *cobra.Command, opts *DeviceConnectUnregisterOptions, args []string) error
- func IsVerbose() bool
- func NewAdbExposeCommand() *cobra.Command
- func NewAdbExposeListCommand() *cobra.Command
- func NewAdbExposeStartCommand() *cobra.Command
- func NewAdbExposeStopCommand() *cobra.Command
- func NewBoxCommand() *cobra.Command
- func NewBoxCpCommand() *cobra.Command
- func NewBoxCreateAndroidCommand() *cobra.Command
- func NewBoxCreateCommand() *cobra.Command
- func NewBoxCreateFromDeviceCommand() *cobra.Command
- func NewBoxCreateLinuxCommand() *cobra.Command
- func NewBoxExecCommand() *cobra.Command
- func NewBoxInspectCommand() *cobra.Command
- func NewBoxListCommand() *cobra.Command
- func NewBoxTerminateCommand() *cobra.Command
- func NewDeviceConnectCommand() *cobra.Command
- func NewDeviceConnectListCommand() *cobra.Command
- func NewDeviceConnectRegisterCommand() *cobra.Command
- func NewDeviceConnectUnregisterCommand() *cobra.Command
- func NewMcpCommand() *cobra.Command
- func NewMcpExportCommand() *cobra.Command
- func NewPruneCommand() *cobra.Command
- func NewServerCmd() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func ResolveBoxIDPrefix(prefix string) (fullID string, matchedIDs []string, err error)
- type AdbExposeListOptions
- type AdbExposeOptions
- type AdbExposeStopOptions
- type AndroidBoxCreateOptions
- type BoxCpOptions
- type BoxCreateFromDeviceOptions
- type BoxExecOptions
- type BoxInspectOptions
- type BoxListOptions
- type BoxPath
- type BoxResponse
- type BoxTerminateOptions
- type DeviceConnectLinuxConnectOptions
- type DeviceConnectListOptions
- type DeviceConnectOptions
- type DeviceConnectRegisterOptions
- type DeviceConnectUnregisterOptions
- type DeviceDTO
- type GenericMcpConfig
- type LinuxBoxCreateOptions
- type McpConfig
- type McpServerEntry
- type PruneOptions
- type TokenResponse
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
var ServerMismatchedError = &serverMismatchedError{}
Functions ¶
func ExecuteAdbExpose ¶
func ExecuteAdbExpose(cmd *cobra.Command, opts *AdbExposeOptions, args []string) error
ExecuteAdbExpose runs the adb-expose logic using the new client-server architecture
func ExecuteAdbExposeInteractive ¶
func ExecuteAdbExposeInteractive(cmd *cobra.Command, opts *AdbExposeOptions) error
ExecuteAdbExposeInteractive runs the interactive mode for adb-expose
func ExecuteAdbExposeList ¶
func ExecuteAdbExposeList(cmd *cobra.Command, opts *AdbExposeListOptions) error
ExecuteAdbExposeList lists all exposed ADB ports using the new client-server architecture
func ExecuteAdbExposeStop ¶
func ExecuteAdbExposeStop(cmd *cobra.Command, opts *AdbExposeStopOptions, args []string) error
ExecuteAdbExposeStop stops adb-expose processes for a specific box using the new client-server architecture
func ExecuteBoxCreateFromDevice ¶
func ExecuteBoxCreateFromDevice(cmd *cobra.Command, opts *BoxCreateFromDeviceOptions) error
func ExecuteDeviceConnect ¶
func ExecuteDeviceConnect(cmd *cobra.Command, opts *DeviceConnectOptions, args []string) error
func ExecuteDeviceConnectLinuxConnect ¶
func ExecuteDeviceConnectLinuxConnect(cmd *cobra.Command, opts *DeviceConnectLinuxConnectOptions, args []string) error
ExecuteDeviceConnectLinuxConnect is deprecated: use registerDevice with type="linux" instead This function is kept for backward compatibility but now calls registerDevice
func ExecuteDeviceConnectList ¶
func ExecuteDeviceConnectList(cmd *cobra.Command, opts *DeviceConnectListOptions) error
func ExecuteDeviceConnectRegister ¶
func ExecuteDeviceConnectRegister(cmd *cobra.Command, opts *DeviceConnectRegisterOptions, args []string) error
func ExecuteDeviceConnectUnregister ¶
func ExecuteDeviceConnectUnregister(cmd *cobra.Command, opts *DeviceConnectUnregisterOptions, args []string) error
func NewAdbExposeCommand ¶
NewAdbExposeCommand creates the adb-expose command
func NewAdbExposeListCommand ¶
func NewAdbExposeStopCommand ¶
func NewBoxCommand ¶
NewBoxCommand creates and returns the box command
func NewBoxCpCommand ¶
func NewBoxCreateCommand ¶
NewBoxCreateCommand creates the parent command for box creation
func NewBoxExecCommand ¶
NewBoxExecCommand creates a new box exec command
func NewBoxInspectCommand ¶
func NewBoxListCommand ¶
func NewBoxTerminateCommand ¶
func NewDeviceConnectCommand ¶
func NewMcpCommand ¶
func NewMcpExportCommand ¶
func NewPruneCommand ¶
NewPruneCommand creates a new prune command
func NewServerCmd ¶
NewServerCmd creates the server command with subcommands
func NewVersionCommand ¶
NewVersionCommand creates a new version command
func ResolveBoxIDPrefix ¶
ResolveBoxIDPrefix takes a prefix string and returns the unique full Box ID if found, or an error if not found or if multiple matches exist. It also returns the list of matched IDs in case of multiple matches.
Types ¶
type AdbExposeListOptions ¶
type AdbExposeListOptions struct {
OutputFormat string
}
type AdbExposeOptions ¶
type AdbExposeOptions struct {
BoxID string
LocalPort int // Optional local port to bind to
Foreground bool
}
AdbExposeOptions holds options for the adb-expose command
type AdbExposeStopOptions ¶
type AdbExposeStopOptions struct {
BoxID string
}
type AndroidBoxCreateOptions ¶
type BoxCpOptions ¶
BoxCpOptions holds command options and parameters
type BoxExecOptions ¶
type BoxExecOptions struct {
Interactive bool
Tty bool
BoxID string
Command []string
WorkingDir string
}
BoxExecOptions holds command options
type BoxInspectOptions ¶
type BoxInspectOptions struct {
OutputFormat string
}
type BoxListOptions ¶
type BoxResponse ¶
type BoxTerminateOptions ¶
type DeviceConnectLinuxConnectOptions ¶
type DeviceConnectLinuxConnectOptions struct {
DeviceID string
}
type DeviceConnectListOptions ¶
type DeviceConnectListOptions struct {
OutputFormat string
}
type DeviceConnectOptions ¶
type DeviceConnectRegisterOptions ¶
type DeviceConnectRegisterOptions struct {
DeviceID string
}
type DeviceConnectUnregisterOptions ¶
type DeviceConnectUnregisterOptions struct {
All bool
}
type DeviceDTO ¶
type DeviceDTO struct {
ID string `json:"id"`
TransportID string `json:"transportId"`
Serialno string `json:"serialno"`
AndroidID string `json:"androidId"`
Platform string `json:"platform"` // mobile, desktop
OS string `json:"os"` // android, linux, windows, macos
DeviceType string `json:"deviceType"` // physical, emulator, vm
IsRegistered bool `json:"isRegistered"`
IsConnected bool `json:"isConnected"` // true if device is currently connected to AP
IsReconnecting bool `json:"isReconnecting"` // true if device is attempting to reconnect
ReconnectAttempt int `json:"reconnectAttempt"` // Current reconnection attempt count
ReconnectMaxRetry int `json:"reconnectMaxRetry"` // Maximum reconnection attempts
RegId string `json:"regId"`
IsLocal bool `json:"isLocal"` // true if this is the local desktop device
Metadata map[string]interface{} `json:"metadata"` // Device-specific metadata
}
DeviceDTO is the API response structure for devices
type GenericMcpConfig ¶
type GenericMcpConfig struct {
McpServers map[string]json.RawMessage `json:"mcpServers"`
}
Define a generic structure to read potentially mixed-format existing config
type LinuxBoxCreateOptions ¶
type McpConfig ¶
type McpConfig struct {
McpServers map[string]McpServerEntry `json:"mcpServers"`
}
Keep McpConfig using the specific new entry type for generation
type McpServerEntry ¶
type McpServerEntry struct {
Command string `json:"command"`
Args []string `json:"args"`
Env map[string]string `json:"env,omitempty"`
}
Define the structure for the new MCP server entry using URL
type PruneOptions ¶
PruneOptions holds command options
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type VersionOptions ¶
VersionOptions holds command options
Source Files
¶
- adb_expose.go
- adb_expose_list.go
- adb_expose_start.go
- adb_expose_stop.go
- box.go
- box_cp.go
- box_create.go
- box_create_ad.go
- box_create_from_device.go
- box_create_ln.go
- box_exec.go
- box_inspect.go
- box_list.go
- box_terminate.go
- completion_helpers.go
- device_connect.go
- device_connect_list.go
- device_connect_register.go
- device_connect_unregister.go
- device_connect_utils.go
- help.go
- login.go
- mcp.go
- mcp_export.go
- profile.go
- prune.go
- root.go
- server.go
- setup.go
- version.go