Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrodzilla committed Jun 29, 2024
2 parents ce5f2b5 + 44fd922 commit bf1f7d9
Show file tree
Hide file tree
Showing 50 changed files with 52 additions and 237 deletions.
51 changes: 46 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,48 @@
[workspace]
members = [
"ntangler",
"entanglement_server/server", "entanglement_server/lib"]
resolver = "2"
[package]
name = "ntangler"
version = "3.5.2"
edition = "2021"

[[bin]]
name = "ntangler"
path = "src/main.rs"

[features]
demo = []

[dependencies]
git2 = "0.19.0"
reqwest = { version = "0.12.4", features = ["json"] }
serde = { version = "1.0.203", features = ["derive"] }
tokio = { version = "1.38.0", features = ["full"] }
toml = "0.8.13"
tokio-macros = "2.3.0"
anyhow = "1.0.86"
akton = { git = "https://[email protected]/GovCraft/akton-framework.git", akton = "quasar", branch = "main" }
dashmap = "5.5.3"
tracing-subscriber = "0.3.18"
tracing = "0.1.40"
async-openai = "0.23.2"
futures = "0.3.30"
rand = "0.8.5"
serde_json = "1.0.117"
time = "0.3.36"
chrono = "0.4.38"
unicode-width = "0.1.13"
console = { version = "0.15.8", features = ["windows-console-colors"] }
regex = "1.10.5"
lazy_static = "1.4.0"
owo-colors = "4.0.0"
derive_more = "0.99.18"
derive-new = "0.6.0"
uuid = { version = "1.9.1", features = ["v3"] }
tracing-appender = "0.2.3"
failsafe = "1.2.0"

[dev-dependencies]
pretty_assertions = "1.4.0"
lazy_static = "1.4.0"
rand = "0.8.5"
tracing-test = "0.2.5"


14 changes: 0 additions & 14 deletions entanglement_server/lib/Cargo.toml

This file was deleted.

156 changes: 0 additions & 156 deletions entanglement_server/lib/src/lib.rs

This file was deleted.

9 changes: 0 additions & 9 deletions entanglement_server/server/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions entanglement_server/server/src/main.rs

This file was deleted.

48 changes: 0 additions & 48 deletions ntangler/Cargo.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl GitRepository {
diff_options.pathspec(target_file.as_os_str());
diff_options.include_untracked(true);
diff_options.recurse_untracked_dirs(true);
diff_options.include_typechange(true);
diff_options.disable_pathspec_match(true);

// Generate the diff
Expand All @@ -113,7 +114,10 @@ impl GitRepository {
})
.expect("Failed to print diff");
let changes = String::from_utf8_lossy(&diff_text).to_string();

if changes.is_empty() {
error!("No diff for file: {}",&event.message.path.display().to_string());
return Context::noop();
}
let repository_event = BrokerRequest::new(DiffQueued::new(
changes,
target_file.clone(),
Expand Down Expand Up @@ -239,7 +243,7 @@ impl GitRepository {
let path = file.clone();
let trace_id = id.clone();
let repository_event = FileChangeDetected::new(file.into());
tokio::spawn(async move{
tokio::spawn(async move {
outbound_envelope.reply_async(repository_event, None).await;
});
trace!(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bf1f7d9

Please sign in to comment.