summaryrefslogtreecommitdiff
path: root/crates
AgeCommit message (Collapse)Author
2025-11-20update: Improve file update task processing魏曹先生
Implement complete update task processing for both local and remote operations, add version validation and conflict detection.
2025-11-20feat: Enhance version tracking in LatestFileData魏曹先生
Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
2025-11-20feat: Add file update verification system魏曹先生
Add comprehensive file update verification with detailed failure reasons including version mismatch, file not held, and missing descriptions.
2025-11-20Rename MemberHeld to LatestFileData and add version tracking魏曹先生
The struct now tracks both file holding status and latest file versions for permission validation and update checks.
2025-11-19Change function signatures to use references魏曹先生
2025-11-19Derive Clone for LocalConfig and fix mapping_mut signature魏曹先生
The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly.
2025-11-19Add mutable mapping accessor methods to Sheet and SheetData魏曹先生
2025-11-19Add setter methods for LocalMappingMetadata fields魏曹先生
2025-11-17Use std::path::PathBuf in latest_info module魏曹先生
2025-11-17Use config directory for jvcs data魏曹先生
The data directory is changed from the system's document directory to the local config directory, and the folder name is shortened from ".just_enough_vcs" to "jvcs".
2025-11-17Change sheet file format from JSON to TOML魏曹先生
Update file extension constants for local sheets, cached sheets, and member held files from .json to .toml. Also consolidate wrong file constants to use consistent .json extension.
2025-11-17Ensure task processing order by using Vec instead of HashSet魏曹先生
The change from HashSet to Vec for task collections maintains the order of file operations, which is important for consistent processing behavior. This affects created_task, update_task, and sync_task variables throughout the code.
2025-11-17Use member-specific paths for latest info files魏曹先生
2025-11-17feat: Add file status tracking and SHA1 hash system魏曹先生
- 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
2025-11-09fix: Windows support魏曹先生
2025-11-09fixed: windows path support魏曹先生
2025-11-07Add path formatting utility and local sheet management魏曹先生
- Implement format_path_str function to clean and normalize file paths - Add LocalSheet struct for tracking local file metadata - Support CRUD operations on local sheet mappings - Integrate path formatting into local sheet operations
2025-11-07Add documentation for local cached data structures魏曹先生
2025-11-07Add strip-ansi-escapes dependency to string_proc魏曹先生
2025-11-06feat: Add local data management modules (WIP)魏曹先生
- cached_sheet.rs: Cached sheet data management - local_sheet.rs: Local sheet mapping structure - member_held.rs: Member file holding status tracking - NOTE: These modules are still under development
2025-11-06feat: Add documentation management module (WIP)魏曹先生
- Create vcs_docs crate for documentation handling - Add build script and Cargo.toml - NOTE: Core implementation pending
2025-11-06feat: Add data structures utility module (WIP)魏曹先生
- Create data structures utility crate - Add Cargo.toml configuration - NOTE: Implementation in progress
2025-11-06feat: Add virtual file actions foundation (WIP)魏曹先生
- Create virtual file actions module - Add basic structure for virtual file operations - NOTE: Still under development
2025-11-06fix: Update test for local workspace changes魏曹先生
- Adjust test to match new local workspace structure - Update test imports and dependencies
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-06feat: Refactor local workspace management魏曹先生
- Replace README with TODO list template - Add Windows-specific .jv directory hiding - Reorganize local workspace setup logic - Update imports for new local data modules
2025-11-06feat: Enhanced data structures and constants魏曹先生
- Add new constants for local workspace management - Extend SheetData with write_count functionality - Simplify vault data structures - Update sheet and virtual file data handling
2025-11-06update: Dependencies and project configuration魏曹先生
- Update Cargo.lock with latest dependencies - Add new dependencies to Cargo.toml - Update vcs_data crate dependencies
2025-11-05Update draft folder structure to include account name魏曹先生
The draft folder path now includes the account name to prevent conflicts when multiple accounts work on the same sheet. This requires updating the draft_folder method signature and all call sites. Additionally, account switching is now restricted when a sheet is in use to maintain data integrity.
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-03feat: Add rollback support for file movement魏曹先生
- Implement MovedItem struct to track file operations - Add rollback logic for draft-to-local and local-to-draft moves - Improve error handling with automatic rollback on failures
2025-11-03update: Sheet creation test improvements魏曹先生
- Update test for sheet creation and persistence - Improve test coverage for new sheet features
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: Implement sheet usage management魏曹先生
- Add sheet_in_use field to LocalConfig - Implement use_sheet and exit_sheet methods - Add draft folder management for sheet switching
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 LatestInfo struct for client data persistence魏曹先生
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-30Return key ID along with challenge verification result魏曹先生
- Update challenge method to return (bool, String) tuple - Include key ID in both success and failure cases - Update tests to verify key ID matches expected value - Maintain same verification logic but provide additional context
2025-10-29Apply clippy suggestions魏曹先生
- Use dereferenced UUID instead of cloning - Simplify error message formatting
2025-10-29Improve vault lock error message and formatting魏曹先生
- Use clearer error message when vault is already locked - Fix code formatting for consistency - Remove unnecessary line breaks in error formatting
2025-10-29Make config fields thread-safe with Arc<Mutex>魏曹先生
- Change LocalWorkspace config to Arc<Mutex<LocalConfig>> - Change Vault config to Arc<VaultConfig> - Add config accessor methods for both structs - Update initialization methods to wrap config in Arc/Mutex
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-29Add new error types and sort variants alphabetically魏曹先生
- Add Authentication, Locked, NoResult, and NotFound error variants - Remove Crypto error variant - Reorder all variants in A-Z order for better maintainability