discovery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package discovery ranks bounded Go symbols against natural-language intent. It is deterministic, read-only, and grants no execution authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	Path    string `json:"path"`
	Symbol  string `json:"symbol"`
	Kind    string `json:"kind"`
	Line    int    `json:"line"`
	EndLine int    `json:"end_line"`
	Score   int    `json:"score"`
	Reason  string `json:"reason"`
}

Candidate is a repository-root-validated symbol match.

func Discover

func Discover(root, intent string, tracked []string, limit int) ([]Candidate, error)

Discover parses bounded Go files and deterministically ranks their functions and methods against intent.

Jump to

Keyboard shortcuts

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