Documentation
¶
Overview ¶
Package bridge exposes the currently qualified Corvint read surfaces without coupling them to an MCP transport implementation.
Index ¶
Constants ¶
View Source
const ( ToolQuery = "corvint.query" ToolImpact = "corvint.impact" ToolStatus = "corvint.status" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Abstention ¶
type Error ¶
type Error struct{ Code string }
Error is a closed, sanitized failure. It never contains repository paths, tool output, or underlying process errors.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry binds every call to one canonical local repository root.
func (*Registry) Tools ¶
func (registry *Registry) Tools() []ToolDescriptor
Tools is the exact delivered surface. Standalone evidence and dashboard snapshot tools are omitted; query and impact receipts carry their evidence.
type RepositoryBinding ¶
type RepositoryBinding struct {
CommitRevision string `json:"commitRevision"`
DirtyPathCount int `json:"dirtyPathCount"`
DirtyPathsSHA256 string `json:"dirtyPathsSha256"`
ObjectFormat string `json:"objectFormat"`
ProfileID string `json:"profileId"`
TreeRevision string `json:"treeRevision"`
WorktreeState string `json:"worktreeState"`
}
type Result ¶
type Result struct {
Schema string `json:"schema"`
Tool string `json:"tool"`
Mutates bool `json:"mutates"`
State string `json:"state"`
EpistemicClass string `json:"epistemicClass"`
AuthorityClass string `json:"authorityClass"`
Repository *RepositoryBinding `json:"repository"`
Receipt map[string]any `json:"receipt"`
Abstention Abstention `json:"abstention"`
}
func (Result) CanonicalJSON ¶
CanonicalJSON returns deterministic compact bytes for the MCP text content.
type ToolAnnotations ¶
type ToolDescriptor ¶
type ToolDescriptor struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema map[string]any `json:"inputSchema"`
Annotations ToolAnnotations `json:"annotations"`
}
Click to show internal directories.
Click to hide internal directories.