Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
style: 统一代码格式和注释风格 docs: 更新多个功能文档的完整度和状态 feat(runtime): 添加路径验证工具支持 fix(pipeline): 改进条件判断和变量解析逻辑 test(types): 为ID类型添加全面测试用例 chore: 更新依赖项和Cargo.lock文件 perf(mcp): 优化MCP协议传输和错误处理
22 lines
537 B
Rust
22 lines
537 B
Rust
//! Hand execution action
|
|
|
|
use std::collections::HashMap;
|
|
use serde_json::Value;
|
|
|
|
use super::ActionError;
|
|
|
|
/// Execute a hand action
|
|
pub async fn execute_hand(
|
|
hand_id: &str,
|
|
action: &str,
|
|
_params: HashMap<String, Value>,
|
|
) -> Result<Value, ActionError> {
|
|
// This will be implemented by injecting the hand registry
|
|
// For now, return an error indicating it needs configuration
|
|
|
|
Err(ActionError::Hand(format!(
|
|
"Hand '{}' action '{}' requires hand registry configuration",
|
|
hand_id, action
|
|
)))
|
|
}
|