shared

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAiModel string = "gpt-4.1"
View Source
const DefaultTimeout int64 = 120

Variables

This section is empty.

Functions

This section is empty.

Types

type CopilotEvent

type CopilotEvent struct {
	Timestamp time.Time      `json:"timestamp"`
	ID        string         `json:"id"`
	Data      map[string]any `json:"data"`
	Type      string         `json:"type"`
}

type CopilotInput

type CopilotInput struct {
	LogFile          string                                   `json:"log_file"`
	Cwd              string                                   `json:"cwd"`
	LogLevel         string                                   `json:"log_level"`
	Env              []string                                 `json:"env"`
	Prompt           string                                   `json:"prompt"`
	GitHubToken      string                                   `json:"token"`
	AiModel          string                                   `json:"ai_model"`
	SystemPrompt     string                                   `json:"system_prompt"`
	ExcludeTools     []string                                 `json:"exclude_tools"`
	Skills           []string                                 `json:"skills"`
	LocalMcpServers  map[string]copilot.MCPLocalServerConfig  `json:"local_mcp_servers"`
	RemoteMcpServers map[string]copilot.MCPRemoteServerConfig `json:"remote_mcp_servers"`
	Timeout          int64                                    `json:"timeout_sec"`
}

func (CopilotInput) GetLogFile

func (c CopilotInput) GetLogFile() (string, error)

func (CopilotInput) GetMcpServers

func (c CopilotInput) GetMcpServers() map[string]any

func (CopilotInput) GetToken

func (c CopilotInput) GetToken() (string, error)

type CopilotTasks

type CopilotTasks struct {
	Tasks []CopilotInput `json:"tasks"`
}

func (*CopilotTasks) Validate

func (t *CopilotTasks) Validate() error

Jump to

Keyboard shortcuts

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