Versions in this module Expand all Collapse all v1 v1.7.0 Jan 5, 2026 Changes in this version + func GetIssueDefaultStructure(lang string) string v1.6.0 Dec 29, 2025 Changes in this version + type CommitSummarizer interface + GenerateSuggestions func(ctx context.Context, info models.CommitInfo, count int) ([]models.CommitSuggestion, error) + type CostAwareAIProvider interface + CountTokens func(ctx context.Context, prompt string) (int, error) + GetModelName func() string + GetProviderName func() string + type IssueContentGenerator interface + GenerateIssueContent func(ctx context.Context, request models.IssueGenerationRequest) (*models.IssueGenerationResult, error) + type PRSummarizer interface + GeneratePRSummary func(ctx context.Context, prompt string) (models.PRSummary, error) + type ReleaseNotesGenerator interface + GenerateNotes func(ctx context.Context, release *models.Release) (*models.ReleaseNotes, error) + type TokenCounter interface + CountTokens func(ctx context.Context, content string) (int, error) v1.5.0 Dec 26, 2025 Changes in this version + func FormatIssuesForPrompt(issues []models.Issue, locale string) string + func FormatTemplateForPrompt(template *models.IssueTemplate, lang string, templateType string) string + func GetCommitPromptTemplate(lang string, hasTicket bool) string + func GetIssuePromptTemplate(lang string) string + func GetIssueReferenceInstructions(lang string) string + func GetNoIssueReferenceInstruction(locale string) string + func GetPRIssueContextInstructions(locale string) string + func GetPRPromptTemplate(lang string) string + func GetPRTemplateInstructions(lang string) string + func GetReleaseNotesSectionHeaders(locale string) map[string]string + func GetReleasePromptTemplate(lang string) string + func GetTechnicalAnalysisInstruction(locale string) string + func GetTemplateInstructions(lang string) string + func RenderPrompt(name, tmplStr string, data interface{}) (string, error) + type ConfirmationCallback func(result ConfirmationResult) (choice string, proceed bool) + type ConfirmationResult struct + CurrentModel string + EstimatedCost float64 + InputTokens int + OutputTokens int + RationaleKey string + SuggestedModel string + type CostAwareWrapper struct + func NewCostAwareWrapper(cfg WrapperConfig) (*CostAwareWrapper, error) + func (w *CostAwareWrapper) SetSkipConfirmation(skip bool) + func (w *CostAwareWrapper) WrapGenerate(ctx context.Context, command string, prompt string, generateFn GenerateFunc) (interface{}, *models.TokenUsage, error) + type GenerateFunc func(ctx context.Context, model string, prompt string) (interface{}, *models.TokenUsage, error) + type PromptData struct + Changelog string + Count int + CurrentVersion string + Diff string + Files string + History string + Instructions string + IssueInfo string + IssueNumber int + LatestVersion string + PRContent string + PreviousVersion string + RelatedIssues string + ReleaseDate string + RepoName string + RepoOwner string + TechnicalInfo string + Ticket string + type WrapperConfig struct + BudgetDaily float64 + EstimatedOutputTokens int + OnConfirmation ConfirmationCallback + Provider ports.CostAwareAIProvider + SkipConfirmation bool