layers

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentReviewLayer

func NewAgentReviewLayer(runner LoopRunner) scan.Layer

NewAgentReviewLayer constructs a Layer that performs an LLM-driven architectural review of the Go source files in projectDir. Inject DefaultLoopRunner{} for production use, or a stub in tests.

func NewSecurityScanLayer

func NewSecurityScanLayer(runner scan.ExecRunner) scan.Layer

NewSecurityScanLayer constructs a Layer that runs gosec -fmt json ./... against projectDir. If gosec is not found in PATH, the layer passes with a skip message.

func NewStaticAnalysisLayer

func NewStaticAnalysisLayer(runner scan.ExecRunner) scan.Layer

NewStaticAnalysisLayer constructs a Layer that runs go build, go vet, and staticcheck (skipped gracefully if not installed) against projectDir.

func NewTestExecutionLayer

func NewTestExecutionLayer(runner scan.ExecRunner) scan.Layer

NewTestExecutionLayer constructs a Layer that runs `go test -race ./...` in projectDir. Test failures are surfaced via RawOutput; no individual findings are parsed.

Types

type DefaultLoopRunner

type DefaultLoopRunner struct{}

DefaultLoopRunner delegates to the axon-loop Run function.

func (DefaultLoopRunner) Run

type LoopRunner

type LoopRunner interface {
	Run(ctx context.Context, cfg loop.RunConfig) (*loop.Result, error)
}

LoopRunner abstracts loop.Run for testability. The real implementation delegates to loop.Run; tests supply a stub.

Jump to

Keyboard shortcuts

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