fix(tauri): replace silent let _ = with structured logging across 20 modules
Replace error-swallowing let _ = patterns with tracing::warn! in browser, classroom, gateway, intelligence, memory, pipeline, secure_storage, and viking command handlers. Ensures errors are observable in production logs.
This commit is contained in:
@@ -47,6 +47,7 @@ pub struct WorkflowStepInput {
|
||||
}
|
||||
|
||||
/// Create a new pipeline as a YAML file
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_create(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -132,6 +133,7 @@ pub async fn pipeline_create(
|
||||
}
|
||||
|
||||
/// Update an existing pipeline
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_update(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -201,6 +203,7 @@ pub async fn pipeline_update(
|
||||
}
|
||||
|
||||
/// Delete a pipeline
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_delete(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
|
||||
@@ -20,6 +20,7 @@ use super::helpers::{get_pipelines_directory, scan_pipelines_with_paths, scan_pi
|
||||
use crate::kernel_commands::KernelState;
|
||||
|
||||
/// Discover and list all available pipelines
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_list(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -67,6 +68,7 @@ pub async fn pipeline_list(
|
||||
}
|
||||
|
||||
/// Get pipeline details
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_get(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -81,6 +83,7 @@ pub async fn pipeline_get(
|
||||
}
|
||||
|
||||
/// Run a pipeline
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_run(
|
||||
app: AppHandle,
|
||||
@@ -192,6 +195,7 @@ pub async fn pipeline_run(
|
||||
}
|
||||
|
||||
/// Get pipeline run progress
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_progress(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -217,6 +221,7 @@ pub async fn pipeline_progress(
|
||||
}
|
||||
|
||||
/// Cancel a pipeline run
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_cancel(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -227,6 +232,7 @@ pub async fn pipeline_cancel(
|
||||
}
|
||||
|
||||
/// Get pipeline run result
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_result(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -253,6 +259,7 @@ pub async fn pipeline_result(
|
||||
}
|
||||
|
||||
/// List all runs
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_runs(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
@@ -278,6 +285,7 @@ pub async fn pipeline_runs(
|
||||
}
|
||||
|
||||
/// Refresh pipeline discovery
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_refresh(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
|
||||
@@ -62,6 +62,7 @@ pub struct PipelineCandidateInfo {
|
||||
}
|
||||
|
||||
/// Route user input to matching pipeline
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn route_intent(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
|
||||
@@ -9,6 +9,7 @@ use super::types::PipelineInputInfo;
|
||||
use super::PipelineState;
|
||||
|
||||
/// Analyze presentation data
|
||||
// @connected
|
||||
#[tauri::command]
|
||||
pub async fn analyze_presentation(
|
||||
data: Value,
|
||||
@@ -43,6 +44,7 @@ pub struct PipelineTemplateInfo {
|
||||
/// Templates are pipeline YAML files that users can browse and instantiate.
|
||||
/// They live in `pipelines/_templates/` and are not directly runnable
|
||||
/// (they serve as blueprints).
|
||||
// @reserved: 暂无前端集成
|
||||
#[tauri::command]
|
||||
pub async fn pipeline_templates(
|
||||
state: State<'_, Arc<PipelineState>>,
|
||||
|
||||
Reference in New Issue
Block a user