Skip to content

Commit 888fe26

Browse files
committed
merge: resolve conflicts with origin/master
2 parents 33b6e30 + 6e7b9c8 commit 888fe26

File tree

304 files changed

+12555
-4088
lines changed

Some content is hidden

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

304 files changed

+12555
-4088
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ members = [
8080
# CLI - LM Studio Integration
8181
"src/cortex-lmstudio",
8282

83-
# CLI - Ollama Integration
84-
"src/cortex-ollama",
85-
8683
# CLI - TUI
8784
"src/cortex-core",
8885
"src/cortex-tui",
@@ -224,7 +221,6 @@ cortex-experimental = { path = "src/cortex-experimental" }
224221
cortex-linux-sandbox = { path = "src/cortex-linux-sandbox" }
225222
cortex-windows-sandbox = { path = "src/cortex-windows-sandbox" }
226223
cortex-lmstudio = { path = "src/cortex-lmstudio" }
227-
cortex-ollama = { path = "src/cortex-ollama" }
228224
cortex-skills = { path = "src/cortex-skills" }
229225
cortex-prompt-harness = { path = "src/cortex-prompt-harness" }
230226

@@ -383,6 +379,7 @@ sysinfo = "0.32"
383379
hex = "0.4"
384380
urlencoding = "2.1"
385381
pin-project-lite = "0.2"
382+
rodio = { version = "0.19", default-features = false, features = ["wav"] }
386383

387384
[workspace.lints.rust]
388385
unsafe_code = "allow"

cortex-tui-framework/crates/cortex-tui-terminal/src/application.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
use crate::backend::TerminalBackend;
44
use crate::renderer::{FramePacer, Renderer};
55
use crate::CrosstermBackend;
6-
use crossterm::event::{poll, read};
76
use cortex_tui_buffer::Buffer;
87
use cortex_tui_core::Result;
98
use cortex_tui_input::Event;
9+
use crossterm::event::{poll, read};
1010
use std::time::{Duration, Instant};
1111

1212
/// Application state for the event loop.

cortex-tui-framework/crates/cortex-tui-terminal/src/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Terminal backend abstraction and crossterm implementation.
22
33
use crate::Capabilities;
4+
use cortex_tui_core::{Color, Error, Result, TextAttributes};
45
use crossterm::{
56
cursor::{Hide, MoveTo, Show},
67
event::{
@@ -17,7 +18,6 @@ use crossterm::{
1718
LeaveAlternateScreen,
1819
},
1920
};
20-
use cortex_tui_core::{Color, Error, Result, TextAttributes};
2121
use std::io::{self, Stdout, Write};
2222

2323
/// Trait for terminal backend implementations.

cortex-tui-framework/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ pub use cortex_tui_widgets as widgets;
4848
pub mod prelude {
4949
pub use cortex_tui_core::{Color, Point, Rect, Size, Style, TextAttributes};
5050
pub use cortex_tui_input::{Event, KeyCode, KeyModifiers, MouseButton, MouseEvent};
51-
pub use cortex_tui_layout::{AlignContent, AlignItems, FlexDirection, FlexWrap, JustifyContent};
51+
pub use cortex_tui_layout::{
52+
AlignContent, AlignItems, FlexDirection, FlexWrap, JustifyContent,
53+
};
5254
pub use cortex_tui_terminal::Application;
5355
pub use cortex_tui_widgets::{BoxWidget, Input, ScrollBox, TextWidget, Widget};
5456
}

src/cortex-app-server/src/api/agents.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
33
use std::sync::Arc;
44

5-
use axum::{Json, extract::{Path, State}};
5+
use axum::{
6+
Json,
7+
extract::{Path, State},
8+
};
69

710
use crate::error::{AppError, AppResult};
811
use crate::state::AppState;
@@ -344,9 +347,7 @@ fn parse_agent_content(content: &str, _format: &str) -> AppResult<(String, Agent
344347
}
345348

346349
/// Import an agent from file content.
347-
pub async fn import_agent(
348-
Json(req): Json<ImportAgentRequest>,
349-
) -> AppResult<Json<AgentDefinition>> {
350+
pub async fn import_agent(Json(req): Json<ImportAgentRequest>) -> AppResult<Json<AgentDefinition>> {
350351
// Parse the content to extract name and other metadata
351352
let (name, agent) = parse_agent_content(&req.content, &req.format)?;
352353

src/cortex-app-server/src/api/discovery.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
use std::sync::Arc;
44
use std::time::{Duration, Instant};
55

6-
use axum::{Json, extract::{Query, State}};
6+
use axum::{
7+
Json,
8+
extract::{Query, State},
9+
};
710

811
use crate::error::AppResult;
912
use crate::mdns::MdnsDiscovery;

src/cortex-app-server/src/api/files.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
33
use std::sync::Arc;
44

5-
use axum::{Json, extract::{Query, State}};
5+
use axum::{
6+
Json,
7+
extract::{Query, State},
8+
};
69

710
use crate::error::{AppError, AppResult};
811
use crate::state::AppState;

src/cortex-app-server/src/api/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ pub fn routes() -> Router<Arc<AppState>> {
7676
.route("/agents", post(agents::create_agent))
7777
.route("/agents/builtin", get(agents::list_builtin_agents))
7878
.route("/agents/import", post(agents::import_agent))
79-
.route("/agents/generate-prompt", post(agents::generate_agent_prompt))
79+
.route(
80+
"/agents/generate-prompt",
81+
post(agents::generate_agent_prompt),
82+
)
8083
.route("/agents/:name", get(agents::get_agent))
8184
.route("/agents/:name", axum::routing::put(agents::update_agent))
8285
.route("/agents/:name", delete(agents::delete_agent))

src/cortex-app-server/src/api/models.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
33
use std::sync::Arc;
44

5-
use axum::{Json, extract::{Path, State}};
5+
use axum::{
6+
Json,
7+
extract::{Path, State},
8+
};
69

710
use crate::error::{AppError, AppResult};
811
use crate::state::AppState;

0 commit comments

Comments
 (0)