summary

package
v1.48.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Message window sizes for different notification types
	// These determine how many recent assistant messages to analyze
	QuestionMessagesWindow = 8 // Based on bash version, good balance for question detection
	ReviewMessagesWindow   = 5 // Smaller window for focused review summaries
	TaskMessagesWindow     = 5 // Smaller window for task completion summaries
)

Variables

This section is empty.

Functions

func CleanMarkdown

func CleanMarkdown(text string) string

CleanMarkdown cleans markdown formatting from text Removes all markdown syntax while preserving the actual text content

func GenerateFromMessages

func GenerateFromMessages(messages []jsonl.Message, status analyzer.Status, cfg *config.Config) string

GenerateFromMessages generates a status-specific summary from already-parsed messages. This avoids re-reading the transcript file when messages are already available.

Returns the joined "<body> <actions>" string for backward compatibility. New callers that want body and actions separately should use GenerateFromMessagesStructured.

func GenerateFromMessagesStructured

func GenerateFromMessagesStructured(messages []jsonl.Message, status analyzer.Status, cfg *config.Config) (body, actions string)

GenerateFromMessagesStructured returns the summary body and the action summary (e.g. "📝 1 new ▶ 2 cmds ⏱ 41s") as separate strings. Either may be empty.

Webhook formatters that render structured layouts (Discord embed fields) use this to avoid re-parsing the joined output.

func GenerateFromTranscript

func GenerateFromTranscript(transcriptPath string, status analyzer.Status, cfg *config.Config) string

GenerateFromTranscript generates a status-specific summary from transcript

func GenerateSimple

func GenerateSimple(status analyzer.Status, cfg *config.Config) string

GenerateSimple generates a simple message based on status

func GetDefaultMessage

func GetDefaultMessage(status analyzer.Status, cfg *config.Config) string

GetDefaultMessage returns a default message for a status

Types

This section is empty.

Jump to

Keyboard shortcuts

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