Help us shape the future of Go! Take the 2026 Go Developer Survey

dev

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

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 Agent

type Agent struct {
	Name        string `json:"name"`
	ID          string `json:"id"`
	Description string `json:"description"`
}

type AgentsPayload

type AgentsPayload struct {
	Agents []Agent `json:"agents"`
}

type FileWatcher

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

func NewWatcher

func NewWatcher(logger logger.Logger, dir string, patterns []string, callback func(string)) (*FileWatcher, error)

func (*FileWatcher) Close

func (fw *FileWatcher) Close(logger logger.Logger) error

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

func NewOutputMessage

func NewOutputMessage(id string, payload struct {
	ContentType string `json:"contentType"`
	Payload     string `json:"payload"`
	Trigger     string `json:"trigger"`
}) Message

messages send by CLI to the server

type OutputPayload

type OutputPayload struct {
	ContentType string `json:"contentType"`
	Payload     string `json:"payload"`
	Trigger     string `json:"trigger"`
}

Jump to

Keyboard shortcuts

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