@setoelkahfi / sigit / commits / 19a72c3

Switch dependencies to crates.io and update metadata

- Use crates.io versions for onde, tqdm, and mistralrs crates - Update README and main.rs to use "siGit Code" as agent name - Update copyright - Fix chat banner rendering and message line handling

Seto Elkahfi committed Apr 23, 2026 at 23:06 UTC 19a72c3fd78f7974f88787deec9d39d754ba2a3f
5 files changed +71 -23
Cargo.lock
+63 -15
index 6a377d2..0a0adf2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1045,6 +1045,22 @@ version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" +[[package]] +name = "crossterm" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67" +dependencies = [ + "bitflags 1.3.2", + "crossterm_winapi", + "libc", + "mio 0.8.11", + "parking_lot", + "signal-hook", + "signal-hook-mio", + "winapi", +] + [[package]] name = "crossterm" version = "0.28.1" @@ -1053,7 +1069,7 @@ checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" dependencies = [ "bitflags 2.11.1", "crossterm_winapi", - "mio", + "mio 1.2.0", "parking_lot", "rustix 0.38.44", "signal-hook", @@ -1072,7 +1088,7 @@ dependencies = [ "derive_more", "document-features", "futures-core", - "mio", + "mio 1.2.0", "parking_lot", "rustix 1.1.4", "signal-hook", @@ -3230,6 +3246,18 @@ dependencies = [ "simd-adler32", ] +[[package]] +name = "mio" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.48.0", +] + [[package]] name = "mio" version = "1.2.0" @@ -3245,7 +3273,8 @@ dependencies = [ [[package]] name = "mistralrs" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb0a83340b4492ebba9760ba6845364de369c7e10c1f91af8733d574c7405fa" dependencies = [ "anyhow", "candle-core", @@ -3272,7 +3301,8 @@ dependencies = [ [[package]] name = "mistralrs-audio" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ac5d36f634c7c20c45845bc995be3b6387ab01048410386a5b180cfeaf89c72" dependencies = [ "anyhow", "apodize", @@ -3283,7 +3313,8 @@ dependencies = [ [[package]] name = "mistralrs-core" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b8b9e5c94491d9ceeded3a30291cb6af6ae74810a5776dd55e3bbb8b3429d4" dependencies = [ "ahash", "akin", @@ -3380,7 +3411,8 @@ dependencies = [ [[package]] name = "mistralrs-macros" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aa9b4794322d3f89fe61d21f33f67be494c16d5bd869604b111218f32544d32" dependencies = [ "darling 0.23.0", "proc-macro2", @@ -3391,7 +3423,8 @@ dependencies = [ [[package]] name = "mistralrs-mcp" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fa97d4e3189ed80ebbc730b7da5b2356df0ae004ab489066249340c33c089ab" dependencies = [ "anyhow", "async-trait", @@ -3411,7 +3444,8 @@ dependencies = [ [[package]] name = "mistralrs-paged-attn" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e53ddf1537426997b46abdadbe6ca8a7ce7668004ed2b7cf00115016558bae8" dependencies = [ "anyhow", "candle-core", @@ -3427,7 +3461,8 @@ dependencies = [ [[package]] name = "mistralrs-quant" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "980715493d252e9aaf0779c4c101576d67ef4dd9812bfd77a54987f6f17526f4" dependencies = [ "byteorder", "candle-core", @@ -3456,7 +3491,8 @@ dependencies = [ [[package]] name = "mistralrs-vision" version = "0.8.1" -source = "git+https://github.com/setoelkahfi/mistral.rs?branch=fix%2Fall-platform-fixes#020dcbf8e2c4147c16bb015e89435811501baa28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10046a3da2de5b702d3e829b5ddef7aa829ad454819dcc4876dea481a6cb5456" dependencies = [ "candle-core", "image", @@ -3780,7 +3816,8 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "onde" version = "0.1.4" -source = "git+https://github.com/ondeinference/onde?branch=development#0cf8325b4b9ebcc7278bfc29c5a3d229ab05d632" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "939495589fec914220491600a00bddedcba437e5fd5e3926ca1af2e8da681bb0" dependencies = [ "anyhow", "cc", @@ -5270,7 +5307,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc" dependencies = [ "libc", - "mio", + "mio 0.8.11", + "mio 1.2.0", "signal-hook", ] @@ -6051,7 +6089,7 @@ checksum = "a91135f59b1cbf38c91e73cf3386fca9bb77915c45ce2771460c9d92f0f3d776" dependencies = [ "bytes", "libc", - "mio", + "mio 1.2.0", "parking_lot", "pin-project-lite", "signal-hook-registry", @@ -6231,10 +6269,11 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tqdm" version = "0.8.0" -source = "git+https://github.com/setoelkahfi/tqdm?branch=deps%2Fbump-crossterm#41e4182829136e6dadbdd1c36af824d19219147a" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b316d5c2ac649ca856dacd487d0ebb94f3b746bada51355d93dd2c007ab62a2e" dependencies = [ "anyhow", - "crossterm 0.29.0", + "crossterm 0.25.0", "once_cell", ] @@ -7211,6 +7250,15 @@ dependencies = [ "windows-targets 0.42.2", ] +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + [[package]] name = "windows-sys" version = "0.52.0"
Cargo.toml
+2 -2
index db386e9..eaff4f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,8 @@ agent-client-protocol = "0.10.4" # Onde Inference engine (local LLM) # Can't use crates.io (core2 0.4.0 yanked). Git dep so CI builds without ../onde. -onde = { git = "https://github.com/ondeinference/onde", branch = "development" } - +# onde = { git = "https://github.com/ondeinference/onde", branch = "development" } +onde = { version = "0.1" } # Async runtime async-trait = "0.1" tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "io-std", "io-util", "sync", "time"] }
README.md
+3 -3
index 7eb585e..68810d7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# siGit +# siGit Code [![Crates.io Version](https://img.shields.io/crates/v/sigit)](https://crates.io/crates/sigit) @@ -25,7 +25,7 @@ Add to `~/.config/zed/settings.json`: ```json { "agent_servers": { - "siGit": { + "siGit Code": { "type": "custom", "command": "/absolute/path/to/sigit" } @@ -41,4 +41,4 @@ Running `sigit` directly in a terminal opens an interactive chat UI. Same model, ## Copyright -2026 Seto Elkahfi. \ No newline at end of file +2026 smbCloud (Splitfire AB).
src/chat.rs
+2 -2
index d493694..72d442c 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -169,7 +169,7 @@ impl App { fn finish_loading(&mut self) { self.is_loading = false; for line in BANNER_ART.lines() { - self.messages.push(ChatMessage::system(line)); + self.messages.push(ChatMessage::banner(line)); } self.messages.push(ChatMessage::system("")); self.messages.push(ChatMessage::system(format!( @@ -460,7 +460,7 @@ fn render_messages(frame: &mut Frame, app: &mut App, area: ratatui::layout::Rect let buf_lines: Vec<&str> = app.stream_buf.split('\n').collect(); for (i, segment) in buf_lines.iter().enumerate() { if i > 0 { - lines.push(Line::from(spans.drain(..).collect::<Vec<_>>())); + lines.push(Line::from(std::mem::take(&mut spans))); // Continuation lines get no prefix. } spans.push(Span::raw(segment.to_string()));
src/main.rs
+1 -1
index 4bb2230..dfaceb7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,7 @@ //! ```json //! { //! "agent_servers": { -//! "siGit": { +//! "siGit Code": { //! "type": "custom", //! "command": "/absolute/path/to/target/release/sigit" //! }