aboutsummaryrefslogtreecommitdiff
path: root/crates/system_action/src/action_pool.rs
Commit message (Collapse)AuthorAgeFilesLines
* Improve documentation for system action and config file crates魏曹先生2025-11-251-1/+19
|
* fix: Make the ActionContext passed to on_proc_begin mutable魏曹先生2025-10-271-6/+6
|
* Fix Clippy warnings and optimize code魏曹先生2025-10-131-18/+30
| | | | | | | | | - Fix let_underscore_future warning by properly awaiting async functions - Make accept_import function async to match add_mapping usage - Propagate errors properly with ? operator instead of ignoring them - Replace manual Default implementation with derive attribute - Replace vec! with array literal to avoid useless_vec warning - All tests pass and code is now Clippy clean
* feat: implement asynchronous action call system魏曹先生2025-10-131-7/+12
| | | | | | | | | | - Add async callback support with proper argument passing - Implement remote action invocation via TCP connection - Add hello_world_action example demonstrating async communication - Improve ActionPool with type-safe async processing - Update client registry for remote action handling - Enhance ActionContext with better instance management - Support both local and remote action execution modes
* feat: Implement JSON-based type-erased action invocation魏曹先生2025-10-131-6/+61
| | | | | | | | | - Add process_json method to ActionPool for type-agnostic calls using JSON serialization - Extend ActionContext with action_name and action_args fields and setter methods - Update action_gen macro to use process_json instead of typed process method - Implement remote action invocation framework in client_registry and action_service - Add protocol definitions for remote action communication - Enable flexible action execution without explicit type specifications
* feat: Add JSON-based action invocation to ActionPool魏曹先生2025-10-131-1/+3
| | | | | | | | - Extend action_gen macro to generate JSON serialization logic - Implement generic action processing using JSON text for type-agnostic calls - Add callback mechanism with action name and arguments in ActionPool - Update client and server registries to use new callback system - Improve action system flexibility at the cost of serialization overhead
* feat: Add callback mechanism to ActionPool魏曹先生2025-10-121-6/+53
| | | | | | | - Add ProcBeginCallback and ProcEndCallback types - Implement set_on_proc_begin and set_on_proc_end methods - Add callback execution in process method - Update trait bounds for better type safety
* Rename vcs_service to action_system for better naming clarity魏曹先生2025-10-061-0/+108
- Create new action_system crate with action framework - Create action_system_macros crate for procedural macros - Update vcs crate dependencies to use action_system - Maintain same functionality with improved naming