Documentation
¶
Index ¶
- Constants
- func ReadTool() (tool mcp.Tool, handler server.ToolHandlerFunc)
- func StatusTool(ctx context.Context, ...) (tool mcp.Tool, handler server.ToolHandlerFunc)
- func TimelineTool(ctx context.Context, timelineClient timelinepbconnect.TimelineServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
- func ToolFromCLI(serverCtx context.Context, k *kong.Kong, projectConfig projectconfig.Config, ...) (mcp.Tool, server.ToolHandlerFunc)
- func WriteTool(ctx context.Context, projectConfig projectconfig.Config, ...) (tool mcp.Tool, handler server.ToolHandlerFunc)
- type CLIConfig
- type CLIExecutor
- type CLIOptionConfig
- type CLIToolOption
- func AddHelp(help string) CLIToolOption
- func Args(args ...string) CLIToolOption
- func AutoReadFilePaths() CLIToolOption
- func Ignore(model any, name string) CLIToolOption
- func IncludeOptional(name string) CLIToolOption
- func IncludeStatus() CLIToolOption
- func Pattern(name string, pattern optional.Option[string]) CLIToolOption
- type CommandExecutor
- type Server
- type StatusOutput
Constants ¶
View Source
const ( ModuleRegex = "[a-z][a-z0-9_]*" RefRegex = "[a-z][a-z0-9_]*\\.[a-zA-Z_][a-zA-Z0-9_]*" )
Variables ¶
This section is empty.
Functions ¶
func StatusTool ¶
func StatusTool(ctx context.Context, buildEngineClient buildenginepbconnect.BuildEngineServiceClient, adminClient adminpbconnect.AdminServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
func TimelineTool ¶
func TimelineTool(ctx context.Context, timelineClient timelinepbconnect.TimelineServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
func ToolFromCLI ¶
func ToolFromCLI(serverCtx context.Context, k *kong.Kong, projectConfig projectconfig.Config, buildEngineClient buildenginepbconnect.BuildEngineServiceClient, adminClient adminpbconnect.AdminServiceClient, executor CLIExecutor, title string, cmdPath []string, toolOptions ...CLIToolOption) (mcp.Tool, server.ToolHandlerFunc)
func WriteTool ¶ added in v0.468.0
func WriteTool(ctx context.Context, projectConfig projectconfig.Config, buildEngineClient buildenginepbconnect.BuildEngineServiceClient, adminClient adminpbconnect.AdminServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
Types ¶
type CLIConfig ¶
type CLIConfig struct {
InputOptions map[string]*CLIOptionConfig
ExtraHelp []string
ExtraArgs []string
IncludeStatus bool
AutoReadFilePaths bool
}
func (CLIConfig) Option ¶
func (c CLIConfig) Option(name string) *CLIOptionConfig
type CLIOptionConfig ¶
type CLIToolOption ¶
type CLIToolOption func(inputOptions *CLIConfig)
func AddHelp ¶
func AddHelp(help string) CLIToolOption
func Args ¶
func Args(args ...string) CLIToolOption
func AutoReadFilePaths ¶ added in v0.468.0
func AutoReadFilePaths() CLIToolOption
AutoReadFilePaths enables filepath detection on the result of the CLI command. If a filepath within the project directory is detected, it will be read in and included in the result for the assistant. This speeds up the process of performing actions and then waiting for the assistant to read the file.
func Ignore ¶
func Ignore(model any, name string) CLIToolOption
func IncludeOptional ¶
func IncludeOptional(name string) CLIToolOption
func IncludeStatus ¶ added in v0.468.0
func IncludeStatus() CLIToolOption
type CommandExecutor ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
type StatusOutput ¶ added in v0.468.0
type StatusOutput struct {
Modules []devstate.ModuleState
Schema string
}
func GetStatusOutput ¶ added in v0.468.0
func GetStatusOutput(ctx context.Context, buildEngineClient buildenginepbconnect.BuildEngineServiceClient, adminClient adminpbconnect.AdminServiceClient, waitForBuildsToStart bool) (StatusOutput, error)
Click to show internal directories.
Click to hide internal directories.