From e70cfca63d32336a7b5c6b0778809441c96b0016 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 17 Mar 2026 02:11:11 +0000 Subject: [PATCH] =?UTF-8?q?refactor(kon):=20remove=20LLM=20command=20stubs?= =?UTF-8?q?=20=E2=80=94=20will=20be=20rewritten=20with=20llama-cpp-rs=20in?= =?UTF-8?q?=20Phase=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 8 LLM command registrations from invoke_handler macro - Delete commands/llm.rs stub file - Remove pub mod llm from commands/mod.rs - Build passes cleanly with cargo clippy Co-Authored-By: Claude Opus 4.6 (1M context) --- src-tauri/src/commands/llm.rs | 53 ----------------------------------- src-tauri/src/commands/mod.rs | 1 - src-tauri/src/lib.rs | 9 ------ 3 files changed, 63 deletions(-) delete mode 100644 src-tauri/src/commands/llm.rs diff --git a/src-tauri/src/commands/llm.rs b/src-tauri/src/commands/llm.rs deleted file mode 100644 index b5b1411..0000000 --- a/src-tauri/src/commands/llm.rs +++ /dev/null @@ -1,53 +0,0 @@ -// LLM stubs — ONNX-based local LLM coming post-revenue. - -#[tauri::command] -pub fn check_llm_engine() -> Result { - Ok(false) -} - -#[tauri::command] -pub fn check_llm_model(_size: String) -> Result { - Ok(false) -} - -#[tauri::command] -pub fn list_llm_models() -> Result, String> { - Ok(vec![]) -} - -#[tauri::command] -pub async fn download_llm_model( - _app: tauri::AppHandle, - _size: String, -) -> Result { - Err("LLM not available yet — coming soon".into()) -} - -#[tauri::command] -pub async fn load_llm_model( - _size: String, -) -> Result { - Err("LLM not available yet — coming soon".into()) -} - -#[tauri::command] -pub async fn llm_generate( - _prompt: String, - _max_tokens: Option, -) -> Result { - Err("LLM not available yet — coming soon".into()) -} - -#[tauri::command] -pub async fn llm_extract_tasks( - _transcript: String, -) -> Result, String> { - Err("LLM not available yet — coming soon".into()) -} - -#[tauri::command] -pub async fn llm_format_transcript( - _transcript: String, -) -> Result { - Err("LLM not available yet — coming soon".into()) -} diff --git a/src-tauri/src/commands/mod.rs b/src-tauri/src/commands/mod.rs index 91b362a..d8b9d73 100644 --- a/src-tauri/src/commands/mod.rs +++ b/src-tauri/src/commands/mod.rs @@ -1,7 +1,6 @@ pub mod audio; pub mod clipboard; pub mod hardware; -pub mod llm; pub mod models; pub mod transcription; pub mod windows; diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 0d4d78c..c1c486c 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -75,15 +75,6 @@ pub fn run() { // Hardware commands::hardware::probe_system, commands::hardware::rank_models, - // LLM stubs - commands::llm::download_llm_model, - commands::llm::check_llm_model, - commands::llm::list_llm_models, - commands::llm::load_llm_model, - commands::llm::check_llm_engine, - commands::llm::llm_generate, - commands::llm::llm_extract_tasks, - commands::llm::llm_format_transcript, ]) .run(tauri::generate_context!()) .expect("error while running Kon");