Skip to content
Open
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
354 changes: 176 additions & 178 deletions Cargo.lock

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,14 @@ facet-typescript = { version = "0.44" }
time = { version = "0.3", features = ["formatting"] }
tempfile = "3.24.0"

# roam RPC framework
roam = "7.0.0"
roam-core = "7.0.0"
roam-stream = "7.0.0"
roam-local = "7.0.0"
# vox RPC framework
vox = { git = "https://github.com/bearcove/vox.git", rev = "b204d069b717e299039b9c32d2860532deb2aa37" }
vox-core = { git = "https://github.com/bearcove/vox.git", rev = "b204d069b717e299039b9c32d2860532deb2aa37" }
vox-stream = { git = "https://github.com/bearcove/vox.git", rev = "b204d069b717e299039b9c32d2860532deb2aa37" }
vox-local = { git = "https://github.com/bearcove/vox.git", rev = "b204d069b717e299039b9c32d2860532deb2aa37" }

[profile.release]
debug = "line-tables-only"

# The profile that 'dist' will build with
[profile.dist]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ tracey web

## Architecture

Tracey runs as a persistent daemon per workspace. All interfaces (web dashboard, LSP, MCP, CLI queries) connect to the daemon over a Unix socket using [roam](https://github.com/bearcove/roam) RPC.
Tracey runs as a persistent daemon per workspace. All interfaces (web dashboard, LSP, MCP, CLI queries) connect to the daemon over a Unix socket using [vox](https://github.com/bearcove/vox) RPC.

```
.tracey/daemon.sock
Expand Down
2 changes: 1 addition & 1 deletion README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ tracey web

## Architecture

Tracey runs as a persistent daemon per workspace. All interfaces (web dashboard, LSP, MCP, CLI queries) connect to the daemon over a Unix socket using [roam](https://github.com/bearcove/roam) RPC.
Tracey runs as a persistent daemon per workspace. All interfaces (web dashboard, LSP, MCP, CLI queries) connect to the daemon over a Unix socket using [vox](https://github.com/bearcove/vox) RPC.

```
.tracey/daemon.sock
Expand Down
4 changes: 2 additions & 2 deletions crates/tracey-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ authors.workspace = true
rustdoc-args = ["--html-in-header", "arborium-header.html"]

[dependencies]
# roam RPC framework
roam = { workspace = true }
# vox RPC framework
vox = { workspace = true }

# API types (re-exported for convenience)
tracey-api = { workspace = true }
Expand Down
8 changes: 5 additions & 3 deletions crates/tracey-proto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! Protocol definitions for the tracey daemon RPC service.
//!
//! This crate defines the `TraceyDaemon` service trait using roam's `#[service]`
//! This crate defines the `TraceyDaemon` service trait using vox's `#[service]`
//! macro. The daemon exposes this service over a Unix socket, and bridges
//! (HTTP, MCP, LSP) connect as clients.

use facet::Facet;
use roam::Tx;
use tracey_core::RuleId;
use vox::Tx;

// Re-export API types for convenience
pub use tracey_api::*;
Expand Down Expand Up @@ -180,6 +180,8 @@ pub struct UnmappedUnit {
#[derive(Debug, Clone, Facet)]
#[facet(rename_all = "camelCase")]
pub struct StatusResponse {
#[facet(default)]
pub api_schema_version: u32,
pub impls: Vec<ImplStatus>,
}

Expand Down Expand Up @@ -640,7 +642,7 @@ pub struct LspDocumentRequest {
///
/// This service is exposed by the daemon over a Unix socket. Bridges (HTTP, MCP, LSP)
/// connect as clients and translate their protocols to/from these RPC calls.
#[roam::service]
#[vox::service]
pub trait TraceyDaemon {
// === Core Queries ===

Expand Down
10 changes: 5 additions & 5 deletions crates/tracey/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ tower-lsp = { workspace = true }
# Open URLs in browser
open = { workspace = true }

# roam RPC framework (for daemon architecture)
roam = { workspace = true }
roam-stream = { workspace = true }
roam-local = { workspace = true }
# vox RPC framework (for daemon architecture)
vox = { workspace = true }
vox-stream = { workspace = true }
vox-local = { workspace = true }
dirs = { workspace = true }

[features]
Expand All @@ -113,4 +113,4 @@ time = { workspace = true, features = ["formatting"] }

[dev-dependencies]
tempfile = { workspace = true }
roam-core = { workspace = true }
vox-core = { workspace = true }
2 changes: 1 addition & 1 deletion crates/tracey/src/bridge/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub async fn run(
None => crate::find_project_root().wrap_err("finding project root")?,
};

let client = crate::daemon::new_client(project_root);
let client = crate::daemon::new_client(project_root).await?;
let config = client
.config()
.await
Expand Down
6 changes: 3 additions & 3 deletions crates/tracey/src/bridge/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub async fn run(
};

// Create client (connects lazily, auto-reconnects)
let client = new_client(project_root.clone());
let client = new_client(project_root.clone()).await?;

// In dev mode, start Vite dev server
let vite_server = if dev {
Expand Down Expand Up @@ -354,9 +354,9 @@ impl ApiError {
}
}

/// Convert roam RPC result to Result<T, Response>
/// Convert vox RPC result to Result<T, Response>
#[allow(clippy::result_large_err)]
fn rpc<T, E: std::fmt::Debug>(res: Result<T, roam::RoamError<E>>) -> Result<T, Response> {
fn rpc<T, E: std::fmt::Debug>(res: Result<T, vox::VoxError<E>>) -> Result<T, Response> {
res.map_err(|e| ApiError::rpc_error(format!("{:?}", e)))
}

Expand Down
Loading
Loading