aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src/connection/action_service.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add local output channel for CLI feedback in track actions魏曹先生2025-12-241-3/+3
| | | | | | | | | Add `try_get_local_output` helper to retrieve output channel from context and `local_println!` macro for sending formatted strings. Use these in track actions to send progress messages to CLI instead of stdout. Also reduce log level for connection events from info to debug.
* update: Connection and registry enhancements魏曹先生2025-11-061-1/+7
| | | | | | - Refine action service connection handling - Extend client registry functionality - Enhance server registry capabilities
* feat: Add port override capability to server entry魏曹先生2025-10-291-8/+18
| | | | | | | The server_entry function now accepts an optional port_override parameter that allows specifying a custom port instead of using the configured port from vault configuration. When port_override is greater than 0, it takes precedence over the configured port.
* update: Action.rs 1. Rename `insert` to `with_data` and `insert_arc` to魏曹先生2025-10-291-1/+1
| | | | | `with_arc_data` 2. Add new `insert_data` and `insert_arc_data` methods that take &mut self
* Fix error handling in process_connection魏曹先生2025-10-271-2/+1
|
* update: Add connection logs to show active count魏曹先生2025-10-271-2/+2
| | | | | Include current connection count in connection open/close log messages for better monitoring of server load
* update: Add server lock behavior to vault lifecycle魏曹先生2025-10-271-0/+9
| | | | Lock the vault before starting the server and unlock it during shutdown.
* Add some debug logs魏曹先生2025-10-271-10/+56
|
* Fix Clippy warnings and optimize code魏曹先生2025-10-131-2/+2
| | | | | | | | | - 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-1/+4
| | | | | | | | | | - 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-5/+24
| | | | | | | | | - 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 connection infrastructure and documentation魏曹先生2025-10-121-0/+129
- Implement action service for connection handling - Add error types for connection operations - Create todo.md for project tracking