Documentation
¶
Index ¶
- type AdvancedRefactoring
- func (a *AdvancedRefactoring) Description() string
- func (a *AdvancedRefactoring) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (a *AdvancedRefactoring) Name() string
- func (a *AdvancedRefactoring) RequiresConfirmation() bool
- func (a *AdvancedRefactoring) Schema() map[string]interface{}
- type BackgroundTask
- type BackgroundTaskManager
- func (b *BackgroundTaskManager) Description() string
- func (b *BackgroundTaskManager) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (b *BackgroundTaskManager) Name() string
- func (b *BackgroundTaskManager) RequiresConfirmation() bool
- func (b *BackgroundTaskManager) Schema() map[string]interface{}
- type CodeFormatter
- type CodeSearcher
- type CommandExecutor
- func (c *CommandExecutor) Description() string
- func (c *CommandExecutor) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (c *CommandExecutor) IsDangerous(command string) bool
- func (c *CommandExecutor) Name() string
- func (c *CommandExecutor) RequiresConfirmation() bool
- type DependencyManager
- func (d *DependencyManager) Description() string
- func (d *DependencyManager) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (d *DependencyManager) Name() string
- func (d *DependencyManager) RequiresConfirmation() bool
- func (d *DependencyManager) Schema() map[string]interface{}
- type DocumentationGenerator
- func (d *DocumentationGenerator) Description() string
- func (d *DocumentationGenerator) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (d *DocumentationGenerator) Name() string
- func (d *DocumentationGenerator) RequiresConfirmation() bool
- func (d *DocumentationGenerator) Schema() map[string]interface{}
- type FileReader
- type FileWriter
- type GitHelper
- type GitOperations
- type PerformanceProfiler
- func (p *PerformanceProfiler) Description() string
- func (p *PerformanceProfiler) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (p *PerformanceProfiler) Name() string
- func (p *PerformanceProfiler) RequiresConfirmation() bool
- func (p *PerformanceProfiler) Schema() map[string]interface{}
- type ProjectAnalyzer
- type Registry
- type Result
- type SecurityScanner
- func (s *SecurityScanner) Description() string
- func (s *SecurityScanner) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
- func (s *SecurityScanner) Name() string
- func (s *SecurityScanner) RequiresConfirmation() bool
- func (s *SecurityScanner) Schema() map[string]interface{}
- type TaskStatus
- type TestRunner
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedRefactoring ¶
type AdvancedRefactoring struct {
// contains filtered or unexported fields
}
AdvancedRefactoring realiza refatorações avançadas no código
func NewAdvancedRefactoring ¶
func NewAdvancedRefactoring(workDir string) *AdvancedRefactoring
NewAdvancedRefactoring cria novo refactoring tool
func (*AdvancedRefactoring) Description ¶
func (a *AdvancedRefactoring) Description() string
Description retorna descrição da tool
func (*AdvancedRefactoring) Execute ¶
func (a *AdvancedRefactoring) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa refatoração
func (*AdvancedRefactoring) Name ¶
func (a *AdvancedRefactoring) Name() string
Name retorna nome da tool
func (*AdvancedRefactoring) RequiresConfirmation ¶
func (a *AdvancedRefactoring) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*AdvancedRefactoring) Schema ¶
func (a *AdvancedRefactoring) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type BackgroundTask ¶
type BackgroundTask struct {
ID string
Name string
Status TaskStatus
Progress float64
Result string
Error string
StartTime time.Time
EndTime time.Time
}
BackgroundTask representa uma tarefa em background
type BackgroundTaskManager ¶
type BackgroundTaskManager struct {
// contains filtered or unexported fields
}
BackgroundTaskManager gerencia tarefas em background
func NewBackgroundTaskManager ¶
func NewBackgroundTaskManager(workDir string) *BackgroundTaskManager
NewBackgroundTaskManager cria novo gerenciador de tarefas
func (*BackgroundTaskManager) Description ¶
func (b *BackgroundTaskManager) Description() string
Description retorna descrição da tool
func (*BackgroundTaskManager) Execute ¶
func (b *BackgroundTaskManager) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa operação de background task
func (*BackgroundTaskManager) Name ¶
func (b *BackgroundTaskManager) Name() string
Name retorna nome da tool
func (*BackgroundTaskManager) RequiresConfirmation ¶
func (b *BackgroundTaskManager) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*BackgroundTaskManager) Schema ¶
func (b *BackgroundTaskManager) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type CodeFormatter ¶
type CodeFormatter struct {
// contains filtered or unexported fields
}
CodeFormatter formata código automaticamente
func NewCodeFormatter ¶
func NewCodeFormatter(workDir string) *CodeFormatter
NewCodeFormatter cria novo formatador de código
func (*CodeFormatter) Description ¶
func (c *CodeFormatter) Description() string
Description retorna descrição da tool
func (*CodeFormatter) RequiresConfirmation ¶
func (c *CodeFormatter) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*CodeFormatter) Schema ¶
func (c *CodeFormatter) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type CodeSearcher ¶
type CodeSearcher struct {
// contains filtered or unexported fields
}
CodeSearcher ferramenta para buscar código
func NewCodeSearcher ¶
func NewCodeSearcher(workDir string) *CodeSearcher
NewCodeSearcher cria novo buscador de código
func (*CodeSearcher) Description ¶
func (c *CodeSearcher) Description() string
Description retorna descrição
func (*CodeSearcher) RequiresConfirmation ¶
func (c *CodeSearcher) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*CodeSearcher) SearchFiles ¶
func (c *CodeSearcher) SearchFiles(pattern string) ([]string, error)
SearchFiles busca arquivos por nome
type CommandExecutor ¶
type CommandExecutor struct {
// contains filtered or unexported fields
}
CommandExecutor ferramenta para executar comandos shell
func NewCommandExecutor ¶
func NewCommandExecutor(workDir string, timeout time.Duration) *CommandExecutor
NewCommandExecutor cria novo executor de comandos
func (*CommandExecutor) Description ¶
func (c *CommandExecutor) Description() string
Description retorna descrição
func (*CommandExecutor) Execute ¶
func (c *CommandExecutor) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa o comando
func (*CommandExecutor) IsDangerous ¶
func (c *CommandExecutor) IsDangerous(command string) bool
IsDangerous verifica se comando é potencialmente perigoso
func (*CommandExecutor) Name ¶
func (c *CommandExecutor) Name() string
Name retorna nome da ferramenta
func (*CommandExecutor) RequiresConfirmation ¶
func (c *CommandExecutor) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
type DependencyManager ¶
type DependencyManager struct {
// contains filtered or unexported fields
}
DependencyManager gerencia dependências de projetos
func NewDependencyManager ¶
func NewDependencyManager(workDir string) *DependencyManager
NewDependencyManager cria novo gerenciador de dependências
func (*DependencyManager) Description ¶
func (d *DependencyManager) Description() string
Description retorna descrição da tool
func (*DependencyManager) Execute ¶
func (d *DependencyManager) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa operação de gerenciamento de dependências
func (*DependencyManager) Name ¶
func (d *DependencyManager) Name() string
Name retorna nome da tool
func (*DependencyManager) RequiresConfirmation ¶
func (d *DependencyManager) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*DependencyManager) Schema ¶
func (d *DependencyManager) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type DocumentationGenerator ¶
type DocumentationGenerator struct {
// contains filtered or unexported fields
}
DocumentationGenerator gera documentação automaticamente
func NewDocumentationGenerator ¶
func NewDocumentationGenerator(workDir string) *DocumentationGenerator
NewDocumentationGenerator cria novo gerador de documentação
func (*DocumentationGenerator) Description ¶
func (d *DocumentationGenerator) Description() string
Description retorna descrição da tool
func (*DocumentationGenerator) Execute ¶
func (d *DocumentationGenerator) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa geração de documentação
func (*DocumentationGenerator) Name ¶
func (d *DocumentationGenerator) Name() string
Name retorna nome da tool
func (*DocumentationGenerator) RequiresConfirmation ¶
func (d *DocumentationGenerator) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*DocumentationGenerator) Schema ¶
func (d *DocumentationGenerator) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
FileReader ferramenta para ler arquivos
func NewFileReader ¶
func NewFileReader(workDir string) *FileReader
NewFileReader cria novo leitor de arquivos
func (*FileReader) Description ¶
func (f *FileReader) Description() string
Description retorna descrição
func (*FileReader) RequiresConfirmation ¶
func (f *FileReader) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter ferramenta para escrever arquivos
func NewFileWriter ¶
func NewFileWriter(workDir string) *FileWriter
NewFileWriter cria novo escritor de arquivos
func (*FileWriter) Description ¶
func (f *FileWriter) Description() string
Description retorna descrição
func (*FileWriter) RequiresConfirmation ¶
func (f *FileWriter) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
type GitHelper ¶
type GitHelper struct {
// contains filtered or unexported fields
}
GitHelper fornece operações avançadas de Git
func (*GitHelper) Description ¶
Description retorna descrição da tool
func (*GitHelper) RequiresConfirmation ¶
RequiresConfirmation indica se requer confirmação
type GitOperations ¶
type GitOperations struct {
// contains filtered or unexported fields
}
GitOperations ferramenta para operações git
func NewGitOperations ¶
func NewGitOperations(workDir string) *GitOperations
NewGitOperations cria novo executor de operações git
func (*GitOperations) Description ¶
func (g *GitOperations) Description() string
Description retorna descrição
func (*GitOperations) IsGitRepository ¶
func (g *GitOperations) IsGitRepository() bool
IsGitRepository verifica se é repositório git
func (*GitOperations) RequiresConfirmation ¶
func (g *GitOperations) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
type PerformanceProfiler ¶
type PerformanceProfiler struct {
// contains filtered or unexported fields
}
PerformanceProfiler analisa performance do código
func NewPerformanceProfiler ¶
func NewPerformanceProfiler(workDir string) *PerformanceProfiler
NewPerformanceProfiler cria novo profiler
func (*PerformanceProfiler) Description ¶
func (p *PerformanceProfiler) Description() string
Description retorna descrição da tool
func (*PerformanceProfiler) Execute ¶
func (p *PerformanceProfiler) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa profiling
func (*PerformanceProfiler) Name ¶
func (p *PerformanceProfiler) Name() string
Name retorna nome da tool
func (*PerformanceProfiler) RequiresConfirmation ¶
func (p *PerformanceProfiler) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*PerformanceProfiler) Schema ¶
func (p *PerformanceProfiler) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type ProjectAnalyzer ¶
type ProjectAnalyzer struct {
// contains filtered or unexported fields
}
ProjectAnalyzer ferramenta para analisar estrutura do projeto
func NewProjectAnalyzer ¶
func NewProjectAnalyzer(workDir string) *ProjectAnalyzer
NewProjectAnalyzer cria novo analisador de projeto
func (*ProjectAnalyzer) Description ¶
func (p *ProjectAnalyzer) Description() string
Description retorna descrição
func (*ProjectAnalyzer) Execute ¶
func (p *ProjectAnalyzer) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa a análise
func (*ProjectAnalyzer) Name ¶
func (p *ProjectAnalyzer) Name() string
Name retorna nome da ferramenta
func (*ProjectAnalyzer) RequiresConfirmation ¶
func (p *ProjectAnalyzer) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry registro de ferramentas
func (*Registry) Execute ¶
func (r *Registry) Execute(ctx context.Context, toolName string, params map[string]interface{}) (Result, error)
Execute executa uma ferramenta
type Result ¶
type Result struct {
Success bool `json:"success"`
Data map[string]interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
Message string `json:"message,omitempty"`
}
Result resultado da execução de ferramenta
func NewSuccessResult ¶
NewSuccessResult cria resultado de sucesso
type SecurityScanner ¶
type SecurityScanner struct {
// contains filtered or unexported fields
}
SecurityScanner escaneia código em busca de vulnerabilidades
func NewSecurityScanner ¶
func NewSecurityScanner(workDir string) *SecurityScanner
NewSecurityScanner cria novo scanner de segurança
func (*SecurityScanner) Description ¶
func (s *SecurityScanner) Description() string
Description retorna descrição da tool
func (*SecurityScanner) Execute ¶
func (s *SecurityScanner) Execute(ctx context.Context, params map[string]interface{}) (Result, error)
Execute executa scan de segurança
func (*SecurityScanner) RequiresConfirmation ¶
func (s *SecurityScanner) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*SecurityScanner) Schema ¶
func (s *SecurityScanner) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type TaskStatus ¶
type TaskStatus string
TaskStatus representa status de uma tarefa
const ( TaskStatusPending TaskStatus = "pending" TaskStatusRunning TaskStatus = "running" TaskStatusCompleted TaskStatus = "completed" TaskStatusFailed TaskStatus = "failed" )
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
TestRunner executa testes automaticamente
func NewTestRunner ¶
func NewTestRunner(workDir string) *TestRunner
NewTestRunner cria novo test runner
func (*TestRunner) Description ¶
func (t *TestRunner) Description() string
Description retorna descrição da tool
func (*TestRunner) RequiresConfirmation ¶
func (t *TestRunner) RequiresConfirmation() bool
RequiresConfirmation indica se requer confirmação
func (*TestRunner) Schema ¶
func (t *TestRunner) Schema() map[string]interface{}
Schema retorna schema JSON da tool
type Tool ¶
type Tool interface {
// Name retorna o nome da ferramenta
Name() string
// Description retorna descrição da ferramenta
Description() string
// Execute executa a ferramenta
Execute(ctx context.Context, params map[string]interface{}) (Result, error)
// RequiresConfirmation indica se requer confirmação
RequiresConfirmation() bool
}
Tool interface para todas as ferramentas