-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.rs
More file actions
40 lines (36 loc) · 881 Bytes
/
main.rs
File metadata and controls
40 lines (36 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
mod app;
mod chat_session_manager;
mod codex_bridge_server;
mod commands;
mod config;
mod event_utils;
mod group_file_download_worker;
mod issue_repair_manager;
mod logger;
mod message_attachment_reader;
mod message_input;
mod napcat_client;
mod openai_chat_client;
mod openai_translator;
mod reply_markdown_renderer;
mod runtime_config_store;
mod state_store;
mod status_dashboard;
mod utils;
mod webui_sync_store;
mod workflow_agent_manager;
use anyhow::Result;
use crate::app::{AppRuntime, resolve_config_path};
#[tokio::main]
async fn main() {
if let Err(error) = run().await {
eprintln!("{error:#}");
std::process::exit(1);
}
}
async fn run() -> Result<()> {
let project_root = std::env::current_dir()?;
let runtime =
AppRuntime::bootstrap(project_root.clone(), resolve_config_path(&project_root)).await?;
runtime.run().await
}