scanner

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectScanner

type ProjectScanner struct {
	// contains filtered or unexported fields
}

ProjectScanner extracts signals from an existing project directory.

func NewProjectScanner

func NewProjectScanner() *ProjectScanner

NewProjectScanner creates a new ProjectScanner with sensible defaults.

func (*ProjectScanner) Scan

func (s *ProjectScanner) Scan(projectPath string) (*ScanResult, error)

Scan analyzes the project at the given path and returns extracted signals.

type ScanResult

type ScanResult struct {
	Language        string            // Detected primary language
	Framework       string            // Detected framework (if any)
	Dependencies    []string          // Key dependencies from manifest
	DirectoryTree   string            // Directory structure (limited depth)
	README          string            // README content (truncated)
	ExistingContext map[string]string // Existing context files (AGENTS.md, CLAUDE.md, etc.)
	ConfigSignals   []string          // Detected config signals (CI, Docker, etc.)
}

ScanResult holds the extracted signals from a project directory.

func (*ScanResult) FormatAsDescription

func (r *ScanResult) FormatAsDescription() string

FormatAsDescription formats the scan result as structured text suitable for LLM input.

Jump to

Keyboard shortcuts

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