server

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentEventServer

type AgentEventServer struct {
	// contains filtered or unexported fields
}

func NewAgentEventServer

func NewAgentEventServer() *AgentEventServer

func (*AgentEventServer) Publish

func (s *AgentEventServer) Publish(sessionID string, evt agent.AgentEvent)

func (*AgentEventServer) Sender

func (s *AgentEventServer) Sender(sessionID string) api.AgentEventSender

func (*AgentEventServer) StreamAgentEvents

type AgentRPCServer

type AgentRPCServer struct {
	// contains filtered or unexported fields
}

AgentRPCServer adapts agentapi.AgentService for the RPC transport layer.

func NewAgentRPCServer

func NewAgentRPCServer(service agentapi.AgentService) *AgentRPCServer

func (*AgentRPCServer) Abort

func (*AgentRPCServer) Close

func (s *AgentRPCServer) Close() error

func (*AgentRPCServer) Continue

func (*AgentRPCServer) FollowUp

func (*AgentRPCServer) ResumeSession

func (*AgentRPCServer) SendMessage

func (*AgentRPCServer) Steer

func (*AgentRPCServer) SubscribeEvents

type SandboxServer

type SandboxServer struct {
	// contains filtered or unexported fields
}

func NewSandboxServer

func NewSandboxServer(host *sandbox.SandboxHostService) *SandboxServer

func (*SandboxServer) Close

func (s *SandboxServer) Close() error

func (*SandboxServer) CreateSession

func (*SandboxServer) CreateSnapshot

func (*SandboxServer) DestroySession

func (*SandboxServer) ExecuteTool

func (*SandboxServer) ExecuteToolStream

func (*SandboxServer) GetProcessStatus

func (*SandboxServer) GetSession

func (*SandboxServer) HealthCheck

func (*SandboxServer) KillProcess

func (*SandboxServer) LaunchProcess

func (*SandboxServer) ListSnapshots

func (*SandboxServer) PauseSession

func (*SandboxServer) ResumeSession

func (*SandboxServer) RollbackSession

func (*SandboxServer) String

func (s *SandboxServer) String() string

func (*SandboxServer) TurnComplete

type TerminalServer

type TerminalServer struct {
	// contains filtered or unexported fields
}

TerminalServer implements api.TerminalService by bridging terminal subscriptions from termmux.SessionManager to the RPC layer. Each StreamTerminal call creates a subscription on the session, spawns bidirectional pump goroutines, and returns a stream handle.

func NewTerminalServer

func NewTerminalServer(sessionMgr *termmux.SessionManager) *TerminalServer

NewTerminalServer creates a TerminalServer backed by the given session manager.

func (*TerminalServer) StreamTerminal

StreamTerminal opens a bidirectional terminal stream for the given session. The returned handle's first Recv yields the Attached message (with scrollback and dimensions), followed by live Output messages. The handle accepts Input and Resize messages via Send. When the session ends, a Detached message is delivered and the handle returns io.EOF.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL