scanner

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 6 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 CIWorkflowSummary added in v1.16.0

type CIWorkflowSummary struct {
	File     string   // Filename (e.g., "ci.yml")
	Triggers []string // Trigger events (e.g., "push", "pull_request")
	Jobs     []string // Job names (e.g., "lint", "test", "build")
}

CIWorkflowSummary holds a lightweight summary of a CI/CD workflow file.

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.)
	BuildTargets    map[string][]string // Build targets by source ("Makefile", "Taskfile")
	TestingSignals  []string            // Detected testing patterns and frameworks
	CIWorkflows     []CIWorkflowSummary // Summarized CI/CD pipeline definitions
}

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