Documentation
¶
Index ¶
- type Bridge
- func (b *Bridge) Describe(ctx context.Context, diff string) (*sightLib.Description, error)
- func (b *Bridge) Improve(ctx context.Context, diff string) (*sightLib.ImproveResult, error)
- func (b *Bridge) Ready() bool
- func (b *Bridge) Review(ctx context.Context, diff string) (*sightLib.Result, error)
- func (b *Bridge) ReviewContracts(ctx context.Context, diff string) (*reviewcontracts.Result, error)
- type EyrieAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
Bridge connects hawk to the sight code-review library. If initialization fails, all operations degrade gracefully and return empty results rather than errors.
func NewBridge ¶
NewBridge creates a bridge to the sight library using the given Hawk transport client and provider name. Additional sight options (model, concerns, etc.) are applied to all operations.
func (*Bridge) Describe ¶
Describe generates a PR description from a unified diff string. Falls back silently if the bridge is not initialized.
func (*Bridge) Improve ¶
Improve analyzes a diff and suggests code improvements. Falls back silently if the bridge is not initialized.
func (*Bridge) Review ¶
Review performs an AI-powered code review on a unified diff string. Falls back silently if the bridge is not initialized.
func (*Bridge) ReviewContracts ¶
ReviewContracts performs a review and returns the neutral review contract.
type EyrieAdapter ¶
type EyrieAdapter struct {
// contains filtered or unexported fields
}
EyrieAdapter implements sight's Provider interface using hawk's eyrie client. It translates between sight.Message/sight.ChatOpts and Hawk runtime DTOs.
func NewEyrieAdapter ¶
func NewEyrieAdapter(c *types.EyrieClient, provider string) *EyrieAdapter
NewEyrieAdapter creates an adapter that satisfies sight.Provider using the given eyrie client and provider name (e.g. "anthropic", "openai").