feat: implement household workflows binary files and write receipts

This commit is contained in:
LucaPisl
2026-10-01 01:15:23 +03:00
parent 2131974765
commit f604ef84a4
7 changed files with 690 additions and 28 deletions

View File

@@ -1,2 +1,17 @@
mod actions;
pub mod exports;
pub mod files;
pub mod records;
pub mod validation;
use crate::{catalog::ValidatedCall, client::ApiClient, error::Result, model::ToolOutput};
pub async fn execute(client: &ApiClient, call: ValidatedCall) -> Result<ToolOutput> {
if call.op.name.starts_with("records_") || call.op.name.starts_with("userfields_") {
records::run(client, &call).await
} else if call.op.name.starts_with("file_") {
files::run(client, &call).await
} else if ["calendar_export", "shopping_export", "assignment_users"].contains(&call.op.name) {
exports::run(client, &call).await
} else {
actions::run(client, &call).await
}
}