rework llm

This commit is contained in:
Kujtim Hoxha
2025-03-27 22:35:48 +01:00
parent 904061c243
commit afd9ad0560
61 changed files with 5882 additions and 2074 deletions

View File

@@ -8,5 +8,9 @@ const (
ToolIcon string = ""
UserIcon string = ""
CheckIcon string = "✓"
ErrorIcon string = "✗"
SpinnerIcon string = "..."
SleepIcon string = "󰒲"
)

View File

@@ -5,7 +5,7 @@ import (
"github.com/charmbracelet/lipgloss"
)
const defaultMargin = 2
const defaultMargin = 1
// Helper functions for style pointers
func boolPtr(b bool) *bool { return &b }
@@ -25,7 +25,7 @@ var catppuccinDark = ansi.StyleConfig{
Document: ansi.StyleBlock{
StylePrimitive: ansi.StylePrimitive{
BlockPrefix: "\n",
BlockSuffix: "\n",
BlockSuffix: "",
Color: stringPtr(dark.Text().Hex),
},
Margin: uintPtr(defaultMargin),
@@ -153,7 +153,7 @@ var catppuccinDark = ansi.StyleConfig{
CodeBlock: ansi.StyleCodeBlock{
StyleBlock: ansi.StyleBlock{
StylePrimitive: ansi.StylePrimitive{
Prefix: " ",
Prefix: " ",
Color: stringPtr(dark.Text().Hex),
},

View File

@@ -20,8 +20,7 @@ var (
DoubleBorder = Regular.Border(lipgloss.DoubleBorder())
// Colors
White = lipgloss.Color("#ffffff")
White = lipgloss.Color("#ffffff")
Surface0 = lipgloss.AdaptiveColor{
Dark: dark.Surface0().Hex,
Light: light.Surface0().Hex,