Skip to content

Commit 42690a0

Browse files
authored
Merge pull request #4 from Web-Dev-Codi/refactor
Refactor
2 parents 898f6b4 + 49be17d commit 42690a0

49 files changed

Lines changed: 4256 additions & 2396 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,8 @@ __marimo__/
209209
DEVELOPMENT_WORKFLOW.md
210210
docs/
211211
toolcalling.txt
212+
at-commands-prompt.md
213+
themeswitching.md
214+
REFACTORING_COMPLETE.md
215+
AGENT_HANDOFF.txt
216+

.windsurf/rules/simple-rules.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
trigger: always on
3+
description: A list of small rules to follow
4+
---
5+
6+
# Coding Guidelines
7+
8+
- My project's programming language is python
9+
- never create summary markdown files unless asked
10+
- Use early returns when possible
11+
- Always add documentation when creating new functions and classes

PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgname=ollamaterm
2-
pkgver=0.3.0
2+
pkgver=0.5.0
33
pkgrel=1
44
pkgdesc='Chat TUI for Ollama local LLMs'
55
arch=('any')

config.example.toml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@ border_color = "#565f89"
2222
show_timestamps = true
2323
stream_chunk_size = 8
2424

25+
[theme]
26+
# Theme selection: "textual-dark", "textual-light", "nord", "gruvbox", "tokyo-night",
27+
# "monokai", "dracula", "solarized-light", "solarized-dark", "atom-one-dark", "atom-one-light"
28+
# or "custom" to use the ui colors above
29+
name = "textual-dark"
30+
# Persist theme choice across sessions
31+
persist = true
32+
# Custom theme definitions (optional)
33+
[theme.custom]
34+
# Define custom themes here - example for a "catppuccin" theme:
35+
# [theme.custom.catppuccin]
36+
# primary = "#89B4FA"
37+
# secondary = "#74C7EC"
38+
# accent = "#F5C2E7"
39+
# foreground = "#CDD6F4"
40+
# background = "#1E1E2E"
41+
# surface = "#313244"
42+
# panel = "#45475A"
43+
# success = "#A6E3A1"
44+
# warning = "#F9E2AF"
45+
# error = "#F38BA8"
46+
# dark = true
47+
2548
[keybinds]
2649
send_message = "ctrl+enter"
2750
new_conversation = "ctrl+n"
@@ -30,6 +53,7 @@ scroll_up = "ctrl+k"
3053
scroll_down = "ctrl+j"
3154
command_palette = "ctrl+p"
3255
toggle_model_picker = "ctrl+m"
56+
toggle_theme_picker = "ctrl+t"
3357
save_conversation = "ctrl+s"
3458
load_conversation = "ctrl+l"
3559
export_conversation = "ctrl+e"
@@ -47,7 +71,7 @@ log_to_file = false
4771
log_file_path = "~/.local/state/ollamaterm/app.log"
4872

4973
[persistence]
50-
enabled = false
74+
enabled = true
5175
directory = "~/.local/state/ollamaterm/conversations"
5276
metadata_path = "~/.local/state/ollamaterm/conversations/index.json"
5377

pyproject.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,32 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ollamaterm"
7-
version = "0.3.0"
7+
version = "0.5.0"
88
description = "Terminal chat interface for local Ollama models"
99
authors = [{ name = "Web-Dev-Codi", email = "webdevcodi@gmail.com" }]
1010
license = { text = "MIT" }
1111
readme = "README.md"
1212
requires-python = ">=3.11"
1313
dependencies = [
1414
"textual>=8.0.0",
15-
"ollama>=0.1.0",
16-
"pydantic>=2.0.0",
15+
"ollama>=0.6.1",
16+
"pydantic>=2.12.5",
1717
"rich>=14.3.2",
1818
"structlog>=25.5.0",
19+
"platformdirs>=4.9.2",
20+
"tomli-w>=1.2.0",
1921
]
2022

2123
[project.optional-dependencies]
2224
dev = [
2325
"pytest>=9.0.2",
24-
"pytest-asyncio>=1.2.0",
25-
"pytest-mock>=3.10.0",
26+
"pytest-asyncio>=1.3.0",
27+
"pytest-mock>=3.15.1",
2628
"pytest-cov>=7.0.0",
27-
"ruff>=0.1.0",
28-
"mypy>=1.0.0",
29+
"ruff>=0.15.4",
30+
"mypy>=1.19.1",
2931
"black>=26.1.0",
30-
"build>=1.2.2",
32+
"build>=1.4.0",
3133
"pre-commit>=4.5.1",
3234
]
3335

0 commit comments

Comments
 (0)