tools

package
v0.0.0-...-ff807ca Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

README

.

Descrição

[Adicione aqui uma descrição do projeto]

Instalação

[Adicione aqui instruções de instalação]

Uso

[Adicione aqui exemplos de uso]

Contribuição

[Adicione aqui instruções para contribuir]

Licença

[Adicione aqui informações de licença]


Documentação gerada automaticamente por Ollama Code

Documentation

Index

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) Execute

func (c *CodeFormatter) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa operação de formatação

func (*CodeFormatter) Name

func (c *CodeFormatter) Name() string

Name retorna nome 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) Execute

func (c *CodeSearcher) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa a busca

func (*CodeSearcher) Name

func (c *CodeSearcher) Name() string

Name retorna nome da ferramenta

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) Execute

func (f *FileReader) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa a leitura

func (*FileReader) Name

func (f *FileReader) Name() string

Name retorna nome da ferramenta

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) Execute

func (f *FileWriter) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa a escrita

func (*FileWriter) Name

func (f *FileWriter) Name() string

Name retorna nome da ferramenta

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 NewGitHelper

func NewGitHelper(workDir string) *GitHelper

NewGitHelper cria novo Git Helper

func (*GitHelper) Description

func (g *GitHelper) Description() string

Description retorna descrição da tool

func (*GitHelper) Execute

func (g *GitHelper) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa operação de Git

func (*GitHelper) Name

func (g *GitHelper) Name() string

Name retorna nome da tool

func (*GitHelper) RequiresConfirmation

func (g *GitHelper) RequiresConfirmation() bool

RequiresConfirmation indica se requer confirmação

func (*GitHelper) Schema

func (g *GitHelper) Schema() map[string]interface{}

Schema retorna schema JSON da tool

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) Execute

func (g *GitOperations) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa a operação git

func (*GitOperations) IsGitRepository

func (g *GitOperations) IsGitRepository() bool

IsGitRepository verifica se é repositório git

func (*GitOperations) Name

func (g *GitOperations) Name() string

Name retorna nome da ferramenta

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 NewRegistry

func NewRegistry() *Registry

NewRegistry cria novo registro

func (*Registry) Execute

func (r *Registry) Execute(ctx context.Context, toolName string, params map[string]interface{}) (Result, error)

Execute executa uma ferramenta

func (*Registry) Get

func (r *Registry) Get(name string) (Tool, error)

Get obtém ferramenta por nome

func (*Registry) List

func (r *Registry) List() []Tool

List lista todas as ferramentas

func (*Registry) Register

func (r *Registry) Register(tool Tool) error

Register registra 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 NewErrorResult

func NewErrorResult(err error) Result

NewErrorResult cria resultado de erro

func NewSuccessResult

func NewSuccessResult(message string, data map[string]interface{}) Result

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) Name

func (s *SecurityScanner) Name() string

Name retorna nome da tool

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) Execute

func (t *TestRunner) Execute(ctx context.Context, params map[string]interface{}) (Result, error)

Execute executa testes

func (*TestRunner) Name

func (t *TestRunner) Name() string

Name retorna nome 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

Jump to

Keyboard shortcuts

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