projectcontext

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxItems = 8
	MaxItems        = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	ProjectID       string   `json:"project_id,omitempty"`
	Query           string   `json:"query,omitempty"`
	PathPrefix      string   `json:"path_prefix,omitempty"`
	ChangedPaths    []string `json:"changed_paths,omitempty"`
	DiffScope       string   `json:"diff_scope,omitempty"`
	MaxDiffBytes    int      `json:"max_diff_bytes,omitempty"`
	MaxItems        int      `json:"max_items,omitempty"`
	MaxSnippetBytes int      `json:"max_snippet_bytes,omitempty"`
	IncludeImpact   bool     `json:"include_impact"`
}

type ContextPack

type ContextPack struct {
	ProjectID    string                              `json:"project_id"`
	Query        string                              `json:"query,omitempty"`
	PathPrefix   string                              `json:"path_prefix,omitempty"`
	ChangedPaths []string                            `json:"changed_paths,omitempty"`
	Limits       Limits                              `json:"limits"`
	TextHits     []projectingestion.TextSearchResult `json:"text_hits,omitempty"`
	Files        []projectingestion.FileMetadata     `json:"files,omitempty"`
	Symbols      []projectingestion.SymbolMetadata   `json:"symbols,omitempty"`
	Impact       *projectreliability.ImpactAnalysis  `json:"impact,omitempty"`
	Partial      bool                                `json:"partial,omitempty"`
	Warnings     []string                            `json:"warnings,omitempty"`
	Limitations  []string                            `json:"limitations,omitempty"`
}

type Limits

type Limits struct {
	MaxItems        int `json:"max_items"`
	MaxSnippetBytes int `json:"max_snippet_bytes"`
}

type Service

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

func NewService

func NewService(ingestion Ingestion, impact ImpactAnalyzer) *Service

func (*Service) Build

func (service *Service) Build(ctx context.Context, request BuildRequest) (ContextPack, error)

Jump to

Keyboard shortcuts

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