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
114 changes: 21 additions & 93 deletions src-tauri/Cargo.lock

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

6 changes: 4 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ toml_edit = "0.20.2"
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-updater = "2.10.0"
tauri-plugin-window-state = "2"
portable-pty = "0.8"

[target."cfg(all(not(any(target_os = \"android\", target_os = \"ios\", target_os = \"windows\"))))".dependencies]
cpal = "0.15"
whisper-rs = "0.12"
whisper-rs = "0.16"
sha2 = "0.10"
portable-pty = "0.8"

[target."cfg(target_os = \"macos\")".dependencies]
objc2 = "0.6"
Expand Down
49 changes: 49 additions & 0 deletions src-tauri/src/codex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,55 @@ pub(crate) async fn account_read(
codex_core::account_read_core(&state.sessions, &state.workspaces, workspace_id).await
}

#[tauri::command]
pub(crate) async fn saved_auth_profiles_list(
workspace_id: String,
state: State<'_, AppState>,
_app: AppHandle,
) -> Result<Value, String> {
if remote_backend::is_remote_mode(&*state).await {
return Err("Saved auth profiles are not supported in remote mode".to_string());
}

codex_core::saved_auth_profiles_list_core(&state.workspaces, workspace_id).await
}

#[tauri::command]
pub(crate) async fn saved_auth_profile_sync_current(
workspace_id: String,
account: Option<Value>,
rate_limits: Option<Value>,
state: State<'_, AppState>,
_app: AppHandle,
) -> Result<Value, String> {
if remote_backend::is_remote_mode(&*state).await {
return Err("Saved auth profiles are not supported in remote mode".to_string());
}

codex_core::saved_auth_profile_sync_current_core(
&state.workspaces,
workspace_id,
account,
rate_limits,
)
.await
}

#[tauri::command]
pub(crate) async fn saved_auth_profile_activate(
workspace_id: String,
profile_id: String,
state: State<'_, AppState>,
_app: AppHandle,
) -> Result<Value, String> {
if remote_backend::is_remote_mode(&*state).await {
return Err("Saved auth profiles are not supported in remote mode".to_string());
}

codex_core::saved_auth_profile_activate_core(&state.workspaces, workspace_id, profile_id)
.await
}

#[tauri::command]
pub(crate) async fn codex_login(
workspace_id: String,
Expand Down
10 changes: 8 additions & 2 deletions src-tauri/src/dictation/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#[cfg_attr(any(target_os = "ios", target_os = "android"), path = "stub.rs")]
#[cfg_attr(not(any(target_os = "ios", target_os = "android")), path = "real.rs")]
#[cfg_attr(
any(target_os = "ios", target_os = "android", target_os = "windows"),
path = "stub.rs"
)]
#[cfg_attr(
not(any(target_os = "ios", target_os = "android", target_os = "windows")),
path = "real.rs"
)]
mod imp;

pub(crate) use imp::*;
3 changes: 3 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ pub fn run() {
codex::write_agent_config_toml,
codex::account_rate_limits,
codex::account_read,
codex::saved_auth_profiles_list,
codex::saved_auth_profile_sync_current,
codex::saved_auth_profile_activate,
codex::codex_login,
codex::codex_login_cancel,
codex::skills_list,
Expand Down
Loading