app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Git() GitService
	TUI() TUIService
	LLM() LLMService
	Format() TextFormatService
}

func NewDefaultApp

func NewDefaultApp() App

type DefaultApp

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

func (*DefaultApp) Format

func (a *DefaultApp) Format() TextFormatService

func (*DefaultApp) Git

func (a *DefaultApp) Git() GitService

func (*DefaultApp) LLM

func (a *DefaultApp) LLM() LLMService

func (*DefaultApp) TUI

func (a *DefaultApp) TUI() TUIService

type DefaultGitService

type DefaultGitService struct{}

func (*DefaultGitService) DiffCommit

func (g *DefaultGitService) DiffCommit(ref string, diffOptions git.DiffOptions) (git.DiffResult, error)

func (*DefaultGitService) DiffRefs

func (g *DefaultGitService) DiffRefs(refFrom string, refTo string, diffOptions git.DiffOptions) (git.DiffResult, error)

func (*DefaultGitService) DiffStaged

func (g *DefaultGitService) DiffStaged(diffOptions git.DiffOptions) (git.DiffResult, error)

type DefaultLLMService

type DefaultLLMService struct{}

func (*DefaultLLMService) NewClient

func (l *DefaultLLMService) NewClient(provider llm.LLMProvider, opts llm.LLMClientOptions) (llm.LLMClient, error)

type DefaultTUIService

type DefaultTUIService struct{}

func (*DefaultTUIService) InitialModel

func (c *DefaultTUIService) InitialModel(opts ui.InitialModelOptions) ui.ChatTUIModel

func (*DefaultTUIService) Run

func (c *DefaultTUIService) Run(model ui.ChatTUIModel) (returnModel tea.Model, returnErr error)

type DefaultTextFormatService

type DefaultTextFormatService struct{}

func (*DefaultTextFormatService) FormatMarkdown

func (l *DefaultTextFormatService) FormatMarkdown(text string) (string, error)

type GitService

type GitService interface {
	DiffStaged(diffOptions git.DiffOptions) (git.DiffResult, error)
	DiffRefs(refFrom string, refTo string, diffOptions git.DiffOptions) (git.DiffResult, error)
	DiffCommit(ref string, diffOptions git.DiffOptions) (git.DiffResult, error)
}

type LLMService

type LLMService interface {
	NewClient(provider llm.LLMProvider, opts llm.LLMClientOptions) (llm.LLMClient, error)
}

type TUIService

type TUIService interface {
	InitialModel(opts ui.InitialModelOptions) ui.ChatTUIModel
	Run(model ui.ChatTUIModel) (returnModel tea.Model, returnErr error)
}

type TextFormatService

type TextFormatService interface {
	FormatMarkdown(text string) (string, error)
}

Jump to

Keyboard shortcuts

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