Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRunProjectCmd ¶
func CreateRunProjectCmd(log logger.Logger, theproject project.ProjectContext, liveDevConnection *LiveDevConnection, dir string, orgId string) (*exec.Cmd, error)
Types ¶
type AgentsPayload ¶
type AgentsPayload struct {
Agents []Agent `json:"agents"`
}
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
type InputMessage ¶
type InputMessage struct {
ID string `json:"id"`
Type string `json:"type"`
From string `json:"from"`
Payload struct {
SessionID string `json:"sessionId"`
Trigger string `json:"trigger"`
AgentID string `json:"agentId"`
ContentType string `json:"contentType"`
Payload string `json:"payload"`
} `json:"payload"`
}
messages send by server to CLI
type LiveDevConnection ¶
type LiveDevConnection struct {
WebSocketId string
OtelToken string
OtelUrl string
Project project.ProjectContext
Done chan struct{}
// contains filtered or unexported fields
}
func NewLiveDevConnection ¶
func NewLiveDevConnection(logger logger.Logger, websocketId string, websocketUrl string, apiKey string, theproject project.ProjectContext) (*LiveDevConnection, error)
func (*LiveDevConnection) Close ¶
func (c *LiveDevConnection) Close() error
func (*LiveDevConnection) SendMessage ¶
func (c *LiveDevConnection) SendMessage(logger logger.Logger, msg Message) error
Update SendMessage to accept the MessageType interface
func (*LiveDevConnection) StartReadingMessages ¶
func (c *LiveDevConnection) StartReadingMessages(logger logger.Logger)
func (*LiveDevConnection) WebURL ¶
func (c *LiveDevConnection) WebURL(appUrl string) string
type Message ¶
type Message struct {
ID string `json:"id"`
Type string `json:"type"`
Payload map[string]any `json:"payload"`
}
func NewAgentsMessage ¶
func NewAgentsMessage(id string, payload AgentsPayload) Message
type OutputPayload ¶
Click to show internal directories.
Click to hide internal directories.