summaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src
AgeCommit message (Collapse)Author
2025-11-06update: Connection and registry enhancements魏曹先生
- Refine action service connection handling - Extend client registry functionality - Enhance server registry capabilities
2025-11-06feat: Overhaul local-remote synchronization魏曹先生
- Add cached sheet data synchronization - Implement bidirectional sheet version checking - Enhance update_to_latest_info_action with sheet sync - Add support for SheetData and CachedSheet integration
2025-11-05Add sheet restoration and drop functionality魏曹先生
- Add write_and_return macro for common result handling pattern - Extend make_sheet_action to restore sheets with no holder - Implement drop_sheet_action for releasing sheet ownership - Register new drop_sheet_action in client and server registries
2025-11-03feat: Enhance upstream vault action魏曹先生
- Add redirect functionality for already stained workspaces - Implement SameUpstream and Redirected result types - Improve vault address update logic
2025-11-03update: Local actions and data structures魏曹先生
- Update local actions implementation - Improve latest info handling - Enhance vault sheets management
2025-11-03update: Registry and connection improvements魏曹先生
- Update client and server registry logic - Improve TCP connection instance handling
2025-11-03feat: Add sheet creation action魏曹先生
- Implement make_sheet_action for creating sheets - Add sheet-related constants - Update sheet data structures
2025-10-30Add update_to_latest_info action魏曹先生
This action synchronizes the latest vault information including sheets, reference sheet content, and member data between local and remote instances.
2025-10-30Change auth_member to return MemberId on success魏曹先生
The authentication function now returns the authenticated member's ID instead of just () when successful. This provides callers with access to the authenticated member's identity for subsequent operations.
2025-10-29Apply clippy suggestions魏曹先生
- Use dereferenced UUID instead of cloning - Simplify error message formatting
2025-10-29Add LocalWorkspace and UserDirectory to client ActionContext魏曹先生
Initialize and insert Arc-wrapped LocalWorkspace and UserDirectory instances into the ActionContext for client environment actions. This provides workspace and user directory data to actions running in client mode. The LocalWorkspace is initialized from the current directory's local config, while UserDirectory uses the current document directory. Both are wrapped in Arc for efficient sharing across the action execution.
2025-10-29feat: Add port override capability to server entry魏曹先生
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.
2025-10-29Update actions.rs魏曹先生
2025-10-29feat: Completed `set_upstream_vault_action`魏曹先生
2025-10-29update: Action.rs 1. Rename `insert` to `with_data` and `insert_arc` to魏曹先生
`with_arc_data` 2. Add new `insert_data` and `insert_arc_data` methods that take &mut self
2025-10-27Fix error handling in process_connection魏曹先生
2025-10-27update: Add connection logs to show active count魏曹先生
Include current connection count in connection open/close log messages for better monitoring of server load
2025-10-27update: Add server lock behavior to vault lifecycle魏曹先生
Lock the vault before starting the server and unlock it during shutdown.
2025-10-27update: Remove `hello_world_action`魏曹先生
2025-10-27fixed: Incorrect condition setting for determining whether to send魏曹先生
parameters during `on_proc_begin`
2025-10-27update: ActionContext 1. Rename `local` to `proc_on_local` 2. Add魏曹先生
`is_remote_action`
2025-10-27fix: Make the ActionContext passed to on_proc_begin mutable魏曹先生
2025-10-27Add some debug logs魏曹先生
2025-10-24Fix some spelling issues.魏曹先生
2025-10-24Re-export subcrate `action_system` to `just_enough_vcs`魏曹先生
2025-10-13Fix Clippy warnings and optimize code魏曹先生
- 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
2025-10-13feat: implement asynchronous action call system魏曹先生
- 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
2025-10-13feat: Implement JSON-based type-erased action invocation魏曹先生
- 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
2025-10-13feat: Add JSON-based action invocation to ActionPool魏曹先生
- 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
2025-10-12feat: Add connection infrastructure and documentation魏曹先生
- Implement action service for connection handling - Add error types for connection operations - Create todo.md for project tracking
2025-10-12chore: Update dependencies and module exports魏曹先生
- Add required dependencies for action system - Export registry modules in vcs_actions library
2025-10-12feat: Implement SetUpstreamVaultAction魏曹先生
- Add local action for setting upstream vault - Use action_gen macro for automatic registration - Validate action is executed locally
2025-10-12feat: Add server action registry魏曹先生
- Create server_action_pool function - Register SetUpstreamVaultAction for server use
2025-10-12fix: Resolve callback type mismatch in client_registry魏曹先生
- Fix lifetime issue in on_proc_begin callback registration - Use cloned context in async closure to avoid lifetime conflicts - Rename unused variable to suppress warning
2025-10-06Create vcs_actions crate for client-server interaction logic魏曹先生
- Add new crate to combine action_system and vcs_data functionality - Define dependencies on both action_system and vcs_data crates - Prepare structure for implementing client-server communication logic