filelength

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryInfo

type DirectoryInfo struct {
	Path       string     `json:"path"`
	Files      []FileInfo `json:"files"`
	TotalLines int        `json:"total_lines"`
	FileCount  int        `json:"file_count"`
}

DirectoryInfo represents aggregated information about a directory

type FileInfo

type FileInfo struct {
	Path      string `json:"path"`
	LineCount int    `json:"line_count"`
	Directory string `json:"directory"`
	SizeBytes int64  `json:"size_bytes"`
}

FileInfo represents information about a file that exceeds the line threshold

type FindLongFilesRequest

type FindLongFilesRequest struct {
	Path                  string   `json:"path"`
	LineThreshold         int      `json:"line_threshold"`
	AdditionalExcludes    []string `json:"additional_excludes"`
	SortByDirectoryTotals bool     `json:"sort_by_directory_totals"`
}

FindLongFilesRequest represents the request to find long files

type FindLongFilesResponse

type FindLongFilesResponse struct {
	Checklist         string    `json:"checklist"`
	LastChecked       time.Time `json:"last_checked"`
	CalculationTime   string    `json:"calculation_time"`
	TotalFilesScanned int       `json:"total_files_scanned"`
	TotalFilesFound   int       `json:"total_files_found"`
	SkippedLargeFiles []string  `json:"skipped_large_files"`
	Message           string    `json:"message"`
}

FindLongFilesResponse represents the response with long files found

type FindLongFilesTool

type FindLongFilesTool struct{}

FindLongFilesTool implements finding files with excessive line counts

func (*FindLongFilesTool) Definition

func (t *FindLongFilesTool) Definition() mcp.Tool

Definition returns the tool's definition for MCP registration

func (*FindLongFilesTool) Execute

func (t *FindLongFilesTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcp.CallToolResult, error)

Execute executes the find-long-files tool

func (*FindLongFilesTool) ProvideExtendedInfo added in v0.22.0

func (t *FindLongFilesTool) ProvideExtendedInfo() *tools.ExtendedHelp

ProvideExtendedInfo provides detailed usage information for the find_long_files tool

Jump to

Keyboard shortcuts

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