Documentation
¶
Index ¶
- type CallSite
- type CertificationFinding
- type CertificationPolicy
- type CertificationReport
- type ConflictResult
- type DiffInput
- type Edge
- type EdgeType
- type EvidenceRef
- type EvidenceSource
- type FindingSeverity
- type IndexResult
- type IsolatedChangeRegion
- type LineRange
- type LockRecord
- type Status
- type SymbolKind
- type SymbolRecord
- type Verdict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallSite ¶
type CallSite struct {
Callee string `json:"callee"` // bare name; receiver-qualified uses "Receiver.callee"
Line int `json:"line"`
}
CallSite records one call expression observed inside a symbol's body. AST-extracted call sites enable high-confidence calls edges that do not rely on regex/string-stripping heuristics.
type CertificationFinding ¶ added in v0.4.5
type CertificationFinding struct {
Severity FindingSeverity `json:"severity"`
Code string `json:"code"`
Message string `json:"message"`
Evidence []EvidenceRef `json:"evidence,omitempty"`
}
type CertificationPolicy ¶ added in v0.4.5
type CertificationPolicy struct {
RequireTestsForCode bool `json:"requireTestsForCode"`
}
type CertificationReport ¶ added in v0.4.5
type CertificationReport struct {
Version int `json:"version"`
BaseRef string `json:"baseRef,omitempty"`
HeadRef string `json:"headRef,omitempty"`
ChangedFiles []string `json:"changedFiles"`
ChangedSymbols []SymbolRecord `json:"changedSymbols"`
ImpactedSymbols []SymbolRecord `json:"impactedSymbols"`
Tests []SymbolRecord `json:"tests"`
Unknowns []CertificationFinding `json:"unknowns,omitempty"`
Findings []CertificationFinding `json:"findings,omitempty"`
Verdict Verdict `json:"verdict"`
}
type ConflictResult ¶
type DiffInput ¶ added in v0.4.5
type DiffInput struct {
UnifiedDiff string `json:"unifiedDiff"`
BaseRef string `json:"baseRef,omitempty"`
HeadRef string `json:"headRef,omitempty"`
Policy CertificationPolicy `json:"policy,omitempty"`
}
type Edge ¶
type Edge struct {
From string `json:"from"`
To string `json:"to"`
Type EdgeType `json:"type"`
Confidence float64 `json:"confidence"`
Source EvidenceSource `json:"source,omitempty"`
}
type EvidenceRef ¶ added in v0.4.5
type EvidenceRef struct {
FilePath string `json:"filePath,omitempty"`
BlobSHA string `json:"blobSha,omitempty"`
Span LineRange `json:"span,omitempty"`
SymbolID string `json:"symbolId,omitempty"`
EdgeID string `json:"edgeId,omitempty"`
Source EvidenceSource `json:"source"`
Confidence float64 `json:"confidence"`
Reason string `json:"reason,omitempty"`
}
type EvidenceSource ¶ added in v0.4.5
type EvidenceSource string
const ( EvidenceSourceASTKit EvidenceSource = "astkit" EvidenceSourceTreeSitter EvidenceSource = "tree_sitter" EvidenceSourceNative EvidenceSource = "native" EvidenceSourceHeuristic EvidenceSource = "heuristic" EvidenceSourceRegex EvidenceSource = "regex" EvidenceSourceUnknown EvidenceSource = "unknown" )
type FindingSeverity ¶ added in v0.4.5
type FindingSeverity string
const ( FindingInfo FindingSeverity = "info" FindingWarning FindingSeverity = "warning" FindingError FindingSeverity = "error" )
type IndexResult ¶
type IndexResult struct {
Root string `json:"root"`
FilesSeen int `json:"filesSeen"`
FilesUpdated int `json:"filesUpdated"`
FilesSkipped int `json:"filesSkipped"`
FilesPruned int `json:"filesPruned"`
SymbolCount int `json:"symbolCount"`
EdgeCount int `json:"edgeCount"`
Errors []string `json:"errors,omitempty"`
Native []string `json:"native,omitempty"`
}
type IsolatedChangeRegion ¶
type IsolatedChangeRegion struct {
IntentID string `json:"intentId"`
Exclusive []string `json:"exclusive"`
Boundary []string `json:"boundary"`
ExclusiveFiles []string `json:"exclusiveFiles"`
ReadableFiles []string `json:"readableFiles"`
Confidence float64 `json:"confidence"`
LockKeys []string `json:"lockKeys"`
}
type LockRecord ¶
type SymbolKind ¶
type SymbolKind string
const ( KindFunction SymbolKind = "function" KindMethod SymbolKind = "method" KindConstructor SymbolKind = "constructor" KindClass SymbolKind = "class" KindInterface SymbolKind = "interface" KindType SymbolKind = "type" KindConst SymbolKind = "const" KindEnum SymbolKind = "enum" KindModule SymbolKind = "module" KindNamespace SymbolKind = "namespace" KindVariable SymbolKind = "variable" KindField SymbolKind = "field" KindStruct SymbolKind = "struct" KindTrait SymbolKind = "trait" KindDecorator SymbolKind = "decorator" KindAnnotation SymbolKind = "annotation" KindFile SymbolKind = "file" KindDocument SymbolKind = "document" )
type SymbolRecord ¶
type SymbolRecord struct {
ID string `json:"id"`
FilePath string `json:"filePath"`
BlobSHA string `json:"blobSha"`
Language string `json:"language"`
Kind SymbolKind `json:"kind"`
Name string `json:"name"`
QualifiedName string `json:"qualifiedName"`
Signature string `json:"signature"`
Docstring string `json:"docstring,omitempty"`
Span LineRange `json:"span"`
Imports []string `json:"imports,omitempty"`
Exports bool `json:"exports"`
RawText string `json:"rawText,omitempty"`
ParentSymbol string `json:"parentSymbol,omitempty"`
TokenEstimate int `json:"tokenEstimate"`
Modifiers []string `json:"modifiers,omitempty"` // public/private/static/async/abstract/pub/...
TypeParameters []string `json:"typeParameters,omitempty"` // generics
Annotations []string `json:"annotations,omitempty"` // @Override, #[derive(...)], decorators
CallSites []CallSite `json:"callSites,omitempty"` // AST-extracted call invocations
}
Click to show internal directories.
Click to hide internal directories.