feat(tasks): wire decompose_and_store, list_subtasks_cmd, complete_subtask_cmd; add llm_engine to AppState
This commit is contained in:
@@ -8,6 +8,7 @@ use sqlx::SqlitePool;
|
||||
use tauri::Manager;
|
||||
|
||||
use kon_core::types::EngineName;
|
||||
use kon_llm::LlmEngine;
|
||||
use kon_storage::{database_path, get_setting, init as init_db, set_setting};
|
||||
use kon_transcription::LocalEngine;
|
||||
|
||||
@@ -16,6 +17,7 @@ pub struct AppState {
|
||||
pub whisper_engine: Arc<LocalEngine>,
|
||||
pub parakeet_engine: Arc<LocalEngine>,
|
||||
pub db: SqlitePool,
|
||||
pub llm_engine: Arc<LlmEngine>,
|
||||
}
|
||||
|
||||
/// Holds the preferences init script for injection into secondary windows.
|
||||
@@ -214,6 +216,7 @@ pub fn run() {
|
||||
EngineName::new("parakeet"),
|
||||
)),
|
||||
db,
|
||||
llm_engine: Arc::new(LlmEngine::new()),
|
||||
});
|
||||
|
||||
{
|
||||
@@ -258,6 +261,9 @@ pub fn run() {
|
||||
commands::tasks::complete_task_cmd,
|
||||
commands::tasks::delete_task_cmd,
|
||||
commands::tasks::uncomplete_task_cmd,
|
||||
commands::tasks::decompose_and_store,
|
||||
commands::tasks::list_subtasks_cmd,
|
||||
commands::tasks::complete_subtask_cmd,
|
||||
// Transcripts (canonical SQLite-backed history) — Day 4
|
||||
commands::transcripts::add_transcript,
|
||||
commands::transcripts::list_transcripts,
|
||||
|
||||
Reference in New Issue
Block a user