feat: Enhance OAuth module and OpenRouter client functionality

- Updated OAuth module to include unused imports for better clarity.
- Refactored OpenRouterClient to improve chat functionality and added support for tools in chat requests.
- Modified internet tools (Download, Fetch, Search) to use a more flexible internet mode check.
- Introduced new Bash tools for managing background jobs (BashOutput, BashKill).
- Enhanced workflow tool to parse and execute workflow scripts with arguments.
- Updated status and workflow views to reflect new agent and findings counts.
- Added IPC protocol definitions for client requests and state payloads.
This commit is contained in:
asepharyana
2026-07-11 20:21:59 +07:00
parent c1ad206a00
commit 802d9677ae
42 changed files with 1423 additions and 925 deletions
+6 -3
View File
@@ -11,7 +11,7 @@ pub fn apply_command(command: Command) -> Vec<Action> {
vec![Action::QuitConfirm]
}
Command::Resume => {
vec![Action::CloseOverlay]
vec![Action::SaveSession, Action::ResumeSession, Action::CloseOverlay]
}
Command::LessonCreate(text) => {
vec![Action::SystemNote {
@@ -38,9 +38,12 @@ pub fn apply_command(command: Command) -> Vec<Action> {
}]
}
Command::Save => {
vec![Action::SaveSession]
}
Command::Login { provider } => {
vec![Action::SystemNote {
kind: "save".to_string(),
message: "session saved".to_string(),
kind: "oauth".to_string(),
message: format!("OAuth login flow started for {}", provider),
}]
}
Command::Unknown(cmd) => {