filelength

package
v0.59.134 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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() mcpapi.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) (*mcpapi.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