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
104 changes: 102 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![CI](https://github.com/anasx07/routecode/actions/workflows/ci.yml/badge.svg)](https://github.com/anasx07/routecode/actions/workflows/ci.yml)
[![Release](https://github.com/anasx07/routecode/actions/workflows/release.yml/badge.svg)](https://github.com/anasx07/routecode/actions/workflows/release.yml)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE)
[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865F2?logo=discord&logoColor=white)](https://discord.gg/RFVNKQUXY2)

---

Expand Down Expand Up @@ -130,6 +131,19 @@ libs/sdk/ # Core logic and AI orchestrator

---

## Community

Join the RouteCode Discord — where bugs get caught, features get shaped, and contributors find each other.

[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865F2?logo=discord&logoColor=white)](https://discord.gg/RFVNKQUXY2)

- 💬 General chat and questions
- 🐛 Bug reports and help
- 💡 Feature requests and roadmap discussion
- 🎉 Show and tell — share what you built

---

## Contributing

PRs are welcome. Please open an issue first for significant changes.
Expand Down
1 change: 1 addition & 0 deletions apps/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ futures = "0.3"
log = "0.4"
chrono = { version = "0.4", features = ["serde"] }
async-trait = "0.1"
simplelog = "0.12"
44 changes: 44 additions & 0 deletions apps/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,58 @@ use routecode_sdk::tools::file_ops::{FileEditTool, FileReadTool, FileWriteTool};
use routecode_sdk::tools::navigation::{GrepTool, LsTool};
use routecode_sdk::tools::ToolRegistry;
use std::io;
use std::process::Command;
use std::sync::Arc;
use tokio::sync::Mutex;
use ui::{run_app, App};
use simplelog::*;
use std::fs::File;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let cli = Cli::parse();

// Initialize logging
let base_dir = routecode_sdk::utils::storage::get_base_dir();
if !base_dir.exists() {
std::fs::create_dir_all(&base_dir)?;
}
let log_path = base_dir.join("routecode.log");

let log_level = if cli.debug { LevelFilter::Debug } else { LevelFilter::Info };

CombinedLogger::init(vec![
WriteLogger::new(
log_level,
ConfigBuilder::new().set_time_format_rfc3339().build(),
File::create(&log_path)?,
),
])?;

if cli.debug {
log::debug!("Debug mode active. Spawning log window...");
// Spawn a new terminal window to tail the log file
#[cfg(target_os = "windows")]
{
let _ = Command::new("cmd")
.args(["/C", "start", "powershell", "-NoExit", "-Command", &format!("Get-Content -Path '{}' -Wait", log_path.display())])
.spawn();
}
#[cfg(target_os = "macos")]
{
let _ = Command::new("osascript")
.args(["-e", &format!("tell application \"Terminal\" to do script \"tail -f '{}'\"", log_path.display())])
.spawn();
}
#[cfg(target_os = "linux")]
{
// Try common terminal emulators
let _ = Command::new("x-terminal-emulator")
.args(["-e", "tail", "-f", &log_path.display().to_string()])
.spawn();
}
}

if let Some(Commands::Version) = cli.command {
println!("routecode {}", env!("CARGO_PKG_VERSION"));
println!("Rust based");
Expand Down
Loading
Loading