Documentation
¶
Overview ¶
Package app assembles the shared JetKVM domain core used by CLI and MCP.
Index ¶
- type AutomationService
- func (s *AutomationService) CanWake(deviceID domain.DeviceID, scope policy.Scope) bool
- func (s *AutomationService) CloseControl(ctx context.Context, request automation.ControlRequest) (control.Handle, error)
- func (s *AutomationService) Drain(ctx context.Context) error
- func (s *AutomationService) GetControl(ctx context.Context, request automation.ControlRequest) (control.Snapshot, error)
- func (s *AutomationService) GetPowerCapabilities(ctx context.Context, request automation.ControlRequest) (automation.PowerCapabilities, error)
- func (s *AutomationService) GetPowerState(ctx context.Context, request automation.ControlRequest) (automation.PowerState, error)
- func (s *AutomationService) Observe(ctx context.Context, request automation.ObserveRequest) (automation.ScreenObservation, error)
- func (s *AutomationService) OpenControl(ctx context.Context, request automation.OpenControlRequest) (control.Handle, error)
- func (s *AutomationService) PowerAction(ctx context.Context, request automation.PowerActionRequest) (operation.Receipt, error)
- func (s *AutomationService) PrepareOpenControl(request automation.OpenControlRequest) (automation.ConfirmationPlan, error)
- func (s *AutomationService) PreparePowerAction(request automation.PowerActionRequest) (automation.ConfirmationPlan, error)
- func (s *AutomationService) PrepareRunActions(request automation.RunActionsRequest) (automation.ConfirmationPlan, error)
- func (s *AutomationService) ReleaseInput(ctx context.Context, request automation.ReleaseInputRequest) (operation.Receipt, error)
- func (s *AutomationService) RunActions(ctx context.Context, request automation.RunActionsRequest) (automation.RunActionsResult, error)
- type MCPHost
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutomationService ¶
type AutomationService struct {
// contains filtered or unexported fields
}
AutomationService is the single CLI/MCP control authority. It preserves one underlying automation.Service and applies each device's configured session limits before any handle reaches the shared registry.
func (*AutomationService) CloseControl ¶
func (s *AutomationService) CloseControl(ctx context.Context, request automation.ControlRequest) (control.Handle, error)
func (*AutomationService) GetControl ¶
func (s *AutomationService) GetControl(ctx context.Context, request automation.ControlRequest) (control.Snapshot, error)
func (*AutomationService) GetPowerCapabilities ¶ added in v1.0.9
func (s *AutomationService) GetPowerCapabilities(ctx context.Context, request automation.ControlRequest) (automation.PowerCapabilities, error)
func (*AutomationService) GetPowerState ¶
func (s *AutomationService) GetPowerState(ctx context.Context, request automation.ControlRequest) (automation.PowerState, error)
func (*AutomationService) Observe ¶ added in v1.0.2
func (s *AutomationService) Observe(ctx context.Context, request automation.ObserveRequest) (automation.ScreenObservation, error)
func (*AutomationService) OpenControl ¶
func (s *AutomationService) OpenControl(ctx context.Context, request automation.OpenControlRequest) (control.Handle, error)
func (*AutomationService) PowerAction ¶
func (s *AutomationService) PowerAction(ctx context.Context, request automation.PowerActionRequest) (operation.Receipt, error)
func (*AutomationService) PrepareOpenControl ¶
func (s *AutomationService) PrepareOpenControl(request automation.OpenControlRequest) (automation.ConfirmationPlan, error)
func (*AutomationService) PreparePowerAction ¶
func (s *AutomationService) PreparePowerAction(request automation.PowerActionRequest) (automation.ConfirmationPlan, error)
func (*AutomationService) PrepareRunActions ¶
func (s *AutomationService) PrepareRunActions(request automation.RunActionsRequest) (automation.ConfirmationPlan, error)
func (*AutomationService) ReleaseInput ¶
func (s *AutomationService) ReleaseInput(ctx context.Context, request automation.ReleaseInputRequest) (operation.Receipt, error)
func (*AutomationService) RunActions ¶
func (s *AutomationService) RunActions(ctx context.Context, request automation.RunActionsRequest) (automation.RunActionsResult, error)
type MCPHost ¶ added in v1.0.6
type MCPHost struct {
// contains filtered or unexported fields
}
MCPHost owns the bootstrap-to-ready transition and runtime lifetime. Its gate joins in-flight calls before replacing protocol handlers or closing a runtime.
func NewMCPHost ¶ added in v1.0.6
func (*MCPHost) NewStatelessHTTPServer ¶ added in v1.0.6
type Runtime ¶
type Runtime struct {
Config config.Config
ConfigRevision string
Devices domain.DeviceService
MCP *mcpserver.Server
Policy *policy.Compiled
Store *store.Store
Automation *AutomationService
Confirmation *confirmation.Authority
// contains filtered or unexported fields
}
Runtime is the one composition root shared by CLI commands and MCP tools.
Click to show internal directories.
Click to hide internal directories.