toolspec

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = []ToolSpec{
	{
		Name:        "analyzeRepo",
		Description: "Run complete security analysis pipeline (SBOM → Vulnerability → Secrets) on a repository",
		Schema:      jsonschema.Reflect(&AnalyzeRepoArgs{}),
	},
	{
		Name:        "scanRepoSBOM",
		Description: "Generate Software Bill of Materials for a repository",
		Schema:      jsonschema.Reflect(&ScanRepoSBOMArgs{}),
	},
	{
		Name:        "vulnCheck",
		Description: "Check for vulnerabilities in repository dependencies using OSV.dev",
		Schema:      jsonschema.Reflect(&VulnCheckArgs{}),
	},
	{
		Name:        "secretScan",
		Description: "Scan repository for secrets and sensitive information",
		Schema:      jsonschema.Reflect(&SecretScanArgs{}),
	},
}

Single source of truth for tools

Functions

func ToJSONMap

func ToJSONMap(s *jsonschema.Schema) map[string]any

Convert jsonschema.Schema → map[string]any (for JSON-RPC & manifest)

Types

type AnalyzeRepoArgs

type AnalyzeRepoArgs struct {
	Path string `json:"path" description:"Path to the repository to analyze"`
}

type ScanRepoSBOMArgs

type ScanRepoSBOMArgs struct {
	Path string `json:"path" description:"Path to the repository to scan"`
}

type SecretScanArgs

type SecretScanArgs struct {
	Path   string `json:"path" description:"Path to the repository to scan"`
	Engine string `json:"engine" description:"auto|gitleaks|builtin" default:"auto"`
}

type ToolSpec

type ToolSpec struct {
	Name        string
	Description string
	Schema      *jsonschema.Schema
}

type VulnCheckArgs

type VulnCheckArgs struct {
	Path string `json:"path" description:"Path to the repository to check"`
}

Jump to

Keyboard shortcuts

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