aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_actions/src/actions/local_actions.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add RejectAll mode for share merging and fix share ID trimming魏曹先生2026-01-051-3/+7
| | | | | | | - Add ShareMergeMode::RejectAll variant to reject all incoming shares - Trim server suffix from share IDs when updating local sheet info - Sign vault as modified after successful share mapping merge - Fix get_current_sheet_name call to use correct parameter value
* Include file histories in latest info updates魏曹先生2026-01-031-7/+32
|
* Refactor config loading to read files after format detection魏曹先生2026-01-031-6/+2
|
* Add ref sheet VFS mapping to LatestInfo魏曹先生2026-01-021-2/+7
| | | | | | This adds a reverse mapping from virtual file IDs to their actual paths in reference sheets, which is needed for proper file resolution during operations that reference files by ID.
* Add host mode authentication and reference sheet handling魏曹先生2026-01-021-35/+55
| | | | | | | | | - Return host mode status from auth_member to determine admin privileges - Add reference sheet detection to get_current_sheet_name with allow_ref parameter - Prevent modifications to reference sheets unless in host mode - Use VAULT_HOST_NAME as sheet holder for host mode operations - Add share/merge share action registrations
* Replace tokio::Instant with std::time::SystemTime for update timestampsWeicao-CatilGrass2025-12-161-3/+2
|
* Optimize update info transmission to ignore file member presence魏曹先生2025-11-241-8/+7
| | | | | The version information is now sent regardless of whether files have member holders, simplifying the update protocol.
* Fix workspace not marked as modified after successful update魏曹先生2025-11-241-0/+3
| | | | | When updating to latest info with no sync needed, ensure the workspace is properly marked as unmodified when running local procedures.
* Add vault modification tracking魏曹先生2025-11-231-0/+4
| | | | | | | - Record vault state changes in sheet operations - Track modifications when creating, dropping, or updating sheets - Mark vault as unmodified after syncing with upstream - Add vault_modified module with check and sign functions
* Apply clippy suggestions魏曹先生2025-11-231-28/+24
|
* update: Improve file update task processing魏曹先生2025-11-201-31/+41
| | | | Implement complete update task processing for both local and remote operations, add version validation and conflict detection.
* Use member-specific paths for latest info files魏曹先生2025-11-171-9/+22
|
* feat: Add file status tracking and SHA1 hash system魏曹先生2025-11-171-29/+219
| | | | | | | - Implement SHA1 hash calculation module with async support - Add file status analysis for tracking moves, creates, and modifications - Enhance local file management with relative path handling - Update virtual file actions with improved tracking capabilities
* feat: Overhaul local-remote synchronization魏曹先生2025-11-061-44/+119
| | | | | | | - 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
* feat: Enhance upstream vault action魏曹先生2025-11-031-2/+28
| | | | | | - Add redirect functionality for already stained workspaces - Implement SameUpstream and Redirected result types - Improve vault address update logic
* update: Local actions and data structures魏曹先生2025-11-031-3/+12
| | | | | | - Update local actions implementation - Improve latest info handling - Enhance vault sheets management
* Add update_to_latest_info action魏曹先生2025-10-301-4/+79
| | | | | | This action synchronizes the latest vault information including sheets, reference sheet content, and member data between local and remote instances.
* Apply clippy suggestions魏曹先生2025-10-291-1/+1
| | | | | - Use dereferenced UUID instead of cloning - Simplify error message formatting
* feat: Completed `set_upstream_vault_action`魏曹先生2025-10-291-16/+62
|
* update: Remove `hello_world_action`魏曹先生2025-10-271-21/+0
|
* update: ActionContext 1. Rename `local` to `proc_on_local` 2. Add魏曹先生2025-10-271-4/+4
| | | | `is_remote_action`
* Add some debug logs魏曹先生2025-10-271-6/+5
|
* Fix some spelling issues.魏曹先生2025-10-241-1/+18
|
* Re-export subcrate `action_system` to `just_enough_vcs`魏曹先生2025-10-241-1/+11
|
* feat: implement asynchronous action call system魏曹先生2025-10-131-10/+18
| | | | | | | | | | - 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-1/+1
| | | | | | | | | - 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: Implement SetUpstreamVaultAction魏曹先生2025-10-121-0/+17
| | | | | | - Add local action for setting upstream vault - Use action_gen macro for automatic registration - Validate action is executed locally
* Create vcs_actions crate for client-server interaction logic魏曹先生2025-10-061-0/+0
- 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