dev

package
v0.0.171 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRunProjectCmd

func CreateRunProjectCmd(ctx context.Context, log logger.Logger, theproject project.ProjectContext, server *Server, dir string, orgId string, port int, stdout io.Writer, stderr io.Writer) (*exec.Cmd, error)

func FindAvailablePort added in v0.0.74

func FindAvailablePort(p project.ProjectContext, tryPort int) (int, error)

func KillProjectServer added in v0.0.72

func KillProjectServer(logger logger.Logger, projectServerCmd *exec.Cmd, pid int)

Types

type AgentWelcome added in v0.0.124

type AgentWelcome struct {
	project.AgentConfig
	Welcome
}

type AgentsControlResponse added in v0.0.122

type AgentsControlResponse struct {
	ProjectID   string         `json:"projectId"`
	ProjectName string         `json:"projectName"`
	Agents      []AgentWelcome `json:"agents"`
}

type ConnectionResponse added in v0.0.122

type ConnectionResponse struct {
	Success bool   `json:"success"`
	Error   string `json:"message"`
	Data    struct {
		Certificate     string `json:"certificate"`
		PrivateKey      string `json:"private_key"`
		Domain          string `json:"domain"`
		ExpiresAt       string `json:"expires_at"`
		OtelUrl         string `json:"otlp_url"`
		OtelBearerToken string `json:"otlp_token"`
		Hostname        string `json:"hostname,omitempty"`
	} `json:"data"`
}

type FileWatcher

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

func NewWatcher

func NewWatcher(logger logger.Logger, dir string, rules *ignore.Rules, callback func(string)) (*FileWatcher, error)

func (*FileWatcher) Close

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

type Server added in v0.0.122

type Server struct {
	ID string

	Project project.ProjectContext
	// contains filtered or unexported fields
}

func New added in v0.0.122

func New(args ServerArgs) (*Server, error)

func (*Server) AgentURL added in v0.0.122

func (s *Server) AgentURL(agentId string) string

func (*Server) Close added in v0.0.122

func (s *Server) Close() error

Close closes the bridge client and cleans up the connection

func (*Server) Connect added in v0.0.122

func (s *Server) Connect() error

func (*Server) GenerateInfoBox added in v0.0.138

func (s *Server) GenerateInfoBox(publicUrl string, appUrl string, devModeUrl string) string

func (*Server) HealthCheck added in v0.0.122

func (s *Server) HealthCheck(devModeUrl string) error

func (*Server) PublicURL added in v0.0.122

func (s *Server) PublicURL(appUrl string) string

func (*Server) WebURL added in v0.0.122

func (s *Server) WebURL(appUrl string) string

type ServerArgs added in v0.0.122

type ServerArgs struct {
	Ctx          context.Context
	Logger       logger.Logger
	LogLevel     logger.LogLevel
	APIURL       string
	TransportURL string
	APIKey       string
	Project      project.ProjectContext
	OrgId        string
	UserId       string
	Version      string
	Port         int
}

type Welcome added in v0.0.86

type Welcome struct {
	Message string `json:"welcome"`
	Prompts []struct {
		Data        string `json:"data"`
		ContentType string `json:"contentType"`
	} `json:"prompts,omitempty"`
}

Jump to

Keyboard shortcuts

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