Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 178 additions & 18 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ default-members = [
name = "coderune"

[workspace.package]
version = "0.3.2"
version = "0.3.4"
edition = "2021"
license = "AGPL-3.0"
publish = false
Expand Down
4 changes: 4 additions & 0 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Shared vocabulary for Coderune's developer and project context, agent skills, ve

**Agent connection**: A developer-configured connection to a coding agent and the models available through it. _Avoid_: Subscription, model provider

**Project chat** is a local conversation associated with one project. It opens in a workspace tab and can run a selected coding agent in the project folder.

**Context readiness** is the completion of a project's folder, goals, collection scope, and first capture.

**Bot avatar**: The animated character that represents a subagent in the desktop app, showing whether it is idle, working, or asleep. _Avoid_: Coding agent logo, profile picture

**Subagent** (defined subagent): A reusable Coderune specialist with a defined purpose and a configured default model assignment. The workspace destination for these specialists is labeled Subagents. _Avoid_: Coding agent, individual task, agent skill
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ coderune-avatars.workspace = true
coderune-domain.workspace = true
coderune-ui.workspace = true
directories.workspace = true
fontdb = "0.24.0"
hex = "0.4"
portable-pty = "0.9"
rune.workspace = true
rune-kit.workspace = true
semver = "1"
Expand All @@ -25,6 +27,7 @@ serde_json.workspace = true
sha2.workspace = true
tempfile = "3"
ureq = { version = "3.5", default-features = false, features = ["rustls"] }
vt100 = "0.16"

[target.'cfg(target_os = "macos")'.dependencies]
libc = "0.2"
11 changes: 7 additions & 4 deletions apps/desktop/src/agent_detection.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
//! Background discovery for the coding agents shown in Settings.

use std::ffi::OsString;
use std::sync::mpsc::{self, Receiver, TryRecvError};
use std::time::Duration;

use coderune_agents::{detect_cli_agents, CliAgentStatus};
use coderune_agents::{detect_cli_agents_with_path, CliAgentStatus};
use rune::Tx;

#[derive(Default)]
pub(crate) struct AgentDetection {
pub(crate) results: Vec<CliAgentStatus>,
pub(crate) path: Option<OsString>,
pub(crate) check: Check,
}

#[derive(Default)]
pub(crate) enum Check {
#[default]
NotChecked,
Checking(Receiver<Vec<CliAgentStatus>>),
Checking(Receiver<(Vec<CliAgentStatus>, Option<OsString>)>),
Finished,
Failed,
}
Expand All @@ -30,7 +32,7 @@ impl AgentDetection {
let worker = std::thread::Builder::new()
.name("coderune-agent-detection".into())
.spawn(move || {
let _ = sender.send(detect_cli_agents());
let _ = sender.send(detect_cli_agents_with_path());
});
self.check = match worker {
Ok(_) => Check::Checking(receiver),
Expand All @@ -43,8 +45,9 @@ impl AgentDetection {
return false;
};
match receiver.try_recv() {
Ok(results) => {
Ok((results, path)) => {
self.results = results;
self.path = path;
self.check = Check::Finished;
true
}
Expand Down
Loading
Loading