Skip to content

Commit 093ace3

Browse files
committed
chore: update version to 0.1.1 in Cargo.lock, README, and agentic-core Cargo.toml; enhance theme colors for Terminal.app compatibility
1 parent a54244c commit 093ace3

File tree

4 files changed

+49
-21
lines changed

4 files changed

+49
-21
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ Agentic transforms the typical command-response dynamic into true collaboration.
3636

3737
**macOS (Intel/Apple Silicon)**
3838
```bash
39-
curl -L https://github.com/gitcoder89431/agentic/releases/download/v0.1.0/agentic-macos.tar.gz | tar xz
39+
curl -L https://github.com/gitcoder89431/agentic/releases/download/v0.1.1/agentic-macos.tar.gz | tar xz
4040
sudo mv agentic /usr/local/bin/
4141
```
4242

4343
**Linux (x86_64)**
4444
```bash
45-
curl -L https://github.com/gitcoder89431/agentic/releases/download/v0.1.0/agentic-linux.tar.gz | tar xz
45+
curl -L https://github.com/gitcoder89431/agentic/releases/download/v0.1.1/agentic-linux.tar.gz | tar xz
4646
sudo mv agentic /usr/local/bin/
4747
```
4848

4949
**Windows**
5050
```powershell
5151
# Download from releases page and add to PATH
52-
# https://github.com/gitcoder89431/agentic/releases/download/v0.1.0/agentic-windows.zip
52+
# https://github.com/gitcoder89431/agentic/releases/download/v0.1.1/agentic-windows.zip
5353
```
5454

5555
### Build from Source

crates/agentic-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "agentic-core"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
description = "Core AI orchestration library for Ruixen - the collaborative AI agent framework"
66
license = "MIT"

crates/agentic-core/src/theme.rs

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,56 @@ impl Default for Theme {
7979
impl Theme {
8080
/// Create a new theme with the specified variant
8181
pub fn new(variant: ThemeVariant) -> Self {
82-
let colors = match variant {
83-
ThemeVariant::EverforestDark => ColorPalette {
82+
// Check if we're in Terminal.app (which has poor RGB support)
83+
let use_basic_colors = std::env::var("TERM_PROGRAM")
84+
.map(|term| term == "Apple_Terminal")
85+
.unwrap_or(false);
86+
87+
let colors = match (variant, use_basic_colors) {
88+
(ThemeVariant::EverforestDark, false) => ColorPalette {
8489
background: Color::Rgb(45, 53, 59), // #2d353b
8590
foreground: Color::Rgb(211, 198, 170), // #d3c6aa
8691
accent: Color::Rgb(167, 192, 128), // #a7c080 (green)
8792
secondary: Color::Rgb(230, 126, 128), // #e67e80 (red)
8893
info: Color::Rgb(127, 187, 179), // #7fbbb3 (aqua)
89-
border: Color::Rgb(130, 140, 150), // #828c96 (lighter gray for better contrast)
90-
selection: Color::Rgb(64, 72, 78), // #40484e (darker bg)
91-
cursor: Color::Rgb(211, 198, 170), // #d3c6aa (same as fg)
92-
warning: Color::Rgb(219, 188, 127), // #dbbc7f (yellow/orange)
94+
border: Color::Rgb(130, 140, 150), // #828c96
95+
selection: Color::Rgb(64, 72, 78), // #40484e
96+
cursor: Color::Rgb(211, 198, 170), // #d3c6aa
97+
warning: Color::Rgb(219, 188, 127), // #dbbc7f
9398
},
94-
ThemeVariant::EverforestLight => ColorPalette {
99+
(ThemeVariant::EverforestLight, false) => ColorPalette {
95100
background: Color::Rgb(253, 246, 227), // #fdf6e3
96-
foreground: Color::Rgb(76, 86, 94), // #4c565e (darker for better readability)
97-
accent: Color::Rgb(141, 161, 1), // #8da101 (green)
98-
secondary: Color::Rgb(248, 85, 82), // #f85552 (red)
99-
info: Color::Rgb(53, 167, 124), // #35a77c (aqua)
100-
border: Color::Rgb(150, 160, 170), // #96a0aa (gray)
101-
selection: Color::Rgb(243, 236, 217), // #f3ecd9 (darker bg)
102-
cursor: Color::Rgb(76, 86, 94), // #4c565e (same as fg)
103-
warning: Color::Rgb(207, 131, 44), // #cf832c (yellow/orange)
101+
foreground: Color::Rgb(76, 86, 94), // #4c565e
102+
accent: Color::Rgb(141, 161, 1), // #8da101
103+
secondary: Color::Rgb(248, 85, 82), // #f85552
104+
info: Color::Rgb(53, 167, 124), // #35a77c
105+
border: Color::Rgb(150, 160, 170), // #96a0aa
106+
selection: Color::Rgb(243, 236, 217), // #f3ecd9
107+
cursor: Color::Rgb(76, 86, 94), // #4c565e
108+
warning: Color::Rgb(207, 131, 44), // #cf832c
109+
},
110+
// Terminal.app fallback colors
111+
(ThemeVariant::EverforestDark, true) => ColorPalette {
112+
background: Color::Reset, // Use terminal's default background
113+
foreground: Color::White,
114+
accent: Color::Green,
115+
secondary: Color::Red,
116+
info: Color::Cyan,
117+
border: Color::Gray, // Gray instead of DarkGray for visibility
118+
selection: Color::Blue, // Blue selection for better visibility
119+
cursor: Color::White,
120+
warning: Color::Yellow,
121+
},
122+
(ThemeVariant::EverforestLight, true) => ColorPalette {
123+
background: Color::Reset, // Use terminal's default background
124+
foreground: Color::Black,
125+
accent: Color::Green,
126+
secondary: Color::Red,
127+
info: Color::Blue, // Blue instead of Cyan for better contrast
128+
border: Color::DarkGray, // DarkGray for better contrast
129+
selection: Color::Yellow, // Yellow instead of LightYellow
130+
cursor: Color::Black,
131+
warning: Color::Magenta, // Magenta for warnings to stand out
104132
},
105133
};
106134

0 commit comments

Comments
 (0)