From 9d4633865f5e1934442f07d2012825b3396fbbf6 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 30 Sep 2025 02:45:11 +0200 Subject: [PATCH] Add MIT license and refactor Cargo workspace configuration --- Cargo.toml | 10 ++++++++++ LICENSE | 21 +++++++++++++++++++++ crates/owlen-cli/Cargo.toml | 8 ++++++-- crates/owlen-cli/src/code_main.rs | 4 ++-- crates/owlen-cli/src/main.rs | 2 +- crates/owlen-core/Cargo.toml | 8 ++++++-- crates/owlen-ollama/Cargo.toml | 8 ++++++-- crates/owlen-tui/Cargo.toml | 8 ++++++-- 8 files changed, 58 insertions(+), 11 deletions(-) create mode 100644 LICENSE diff --git a/Cargo.toml b/Cargo.toml index 5035d2c..16b3c50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,16 @@ members = [ ] exclude = [] +[workspace.package] +version = "0.1.0" +edition = "2021" +authors = ["Owlibou"] +license = "MIT" +repository = "https://somegit.dev/Owlibou/owlen" +homepage = "https://somegit.dev/Owlibou/owlen" +keywords = ["llm", "tui", "cli", "ollama", "chat"] +categories = ["command-line-utilities"] + [workspace.dependencies] # Async runtime and utilities tokio = { version = "1.0", features = ["full"] } diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bc1b835 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Owlibou + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/crates/owlen-cli/Cargo.toml b/crates/owlen-cli/Cargo.toml index 8b5df09..fa8a565 100644 --- a/crates/owlen-cli/Cargo.toml +++ b/crates/owlen-cli/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "owlen-cli" -version = "0.1.0" -edition = "2021" +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true description = "Command-line interface for OWLEN LLM client" [features] diff --git a/crates/owlen-cli/src/code_main.rs b/crates/owlen-cli/src/code_main.rs index 7f0f8ed..9ac589c 100644 --- a/crates/owlen-cli/src/code_main.rs +++ b/crates/owlen-cli/src/code_main.rs @@ -21,7 +21,7 @@ use ratatui::{backend::CrosstermBackend, Terminal}; async fn main() -> Result<()> { let matches = Command::new("owlen-code") .about("OWLEN Code Mode - TUI optimized for programming assistance") - .version("0.2.0") + .version(env!("CARGO_PKG_VERSION")) .arg( Arg::new("model") .short('m') @@ -87,7 +87,7 @@ async fn run_app( session_rx: &mut mpsc::UnboundedReceiver, ) -> Result<()> { loop { - terminal.draw(|f| ui::render_chat(f, app.inner()))?; + terminal.draw(|f| ui::render_chat(f, app.inner_mut()))?; tokio::select! { Some(event) = event_rx.recv() => { diff --git a/crates/owlen-cli/src/main.rs b/crates/owlen-cli/src/main.rs index 6000185..4d0e1a3 100644 --- a/crates/owlen-cli/src/main.rs +++ b/crates/owlen-cli/src/main.rs @@ -21,7 +21,7 @@ use ratatui::{backend::CrosstermBackend, Terminal}; async fn main() -> Result<()> { let matches = Command::new("owlen") .about("OWLEN - A chat-focused TUI client for Ollama") - .version("0.2.0") + .version(env!("CARGO_PKG_VERSION")) .arg( Arg::new("model") .short('m') diff --git a/crates/owlen-core/Cargo.toml b/crates/owlen-core/Cargo.toml index 03c90fc..56cbf4a 100644 --- a/crates/owlen-core/Cargo.toml +++ b/crates/owlen-core/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "owlen-core" -version = "0.1.0" -edition = "2021" +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true description = "Core traits and types for OWLEN LLM client" [dependencies] diff --git a/crates/owlen-ollama/Cargo.toml b/crates/owlen-ollama/Cargo.toml index 5446f7a..3faf672 100644 --- a/crates/owlen-ollama/Cargo.toml +++ b/crates/owlen-ollama/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "owlen-ollama" -version = "0.1.0" -edition = "2021" +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true description = "Ollama provider for OWLEN LLM client" [dependencies] diff --git a/crates/owlen-tui/Cargo.toml b/crates/owlen-tui/Cargo.toml index a8ac8ae..5c5b300 100644 --- a/crates/owlen-tui/Cargo.toml +++ b/crates/owlen-tui/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "owlen-tui" -version = "0.1.0" -edition = "2021" +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true description = "Terminal User Interface for OWLEN LLM client" [dependencies]