aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src/data/vault
Commit message (Collapse)AuthorAgeFilesLines
* Add RejectAll mode for share merging and fix share ID trimming魏曹先生2026-01-051-19/+29
| | | | | | | - 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
* Change default config format from JSON to Bincode魏曹先生2026-01-031-2/+4
| | | | | | | Update file extensions for sheet, share, member, and virtual file metadata to use new custom extensions (.st, .sre, .json, .vf) instead of .bcfg. Also update client-side file extensions for latest info and local sheets.
* Replace hardcoded file extension with constant魏曹先生2026-01-031-2/+6
| | | | | Use SERVER_SUFFIX_MEMBER_INFO_NO_DOT constant instead of literal "toml" string for member info file extension check
* Rename vault admin to host and add serde renames魏曹先生2026-01-023-11/+21
| | | | | | | | - Rename `vault_admin_list` to `vault_host_list` in config and actions - Add `#[serde(rename)]` attributes to all data structures for shorter JSON keys - Update field renames in LocalConfig, LatestFileData, LatestInfo, LocalSheetData, Member, SheetData, Share, and VirtualFileMeta
* Fix share name generation by removing file suffix魏曹先生2025-12-261-9/+3
| | | | | The share ID generation no longer includes the sheet file suffix. This simplifies share names to just "sharer@random" format.
* Add sheet sharing functionality魏曹先生2025-12-251-0/+414
| | | | | | | - Add `rand` dependency for generating share IDs - Update share path to include sheet name subdirectory - Add mutable accessor for sheet ID mapping - Add sheet_share module to vault data structures
* Remove legacy import/export mechanism魏曹先生2025-12-241-1/+0
| | | | | | | | | | - Delete InputPackage struct and related types - Remove inputs field from SheetData - Remove input management methods (add_input, deny_input, accept_import) - Remove export functionality (output_mappings, find_longest_common_prefix) - Update tests to remove input-related assertions - Clean up unused imports and dependencies
* Refactor vault and local workspace file storage structure魏曹先生2025-12-241-6/+7
|
* Add fallback defaults for optional config fields魏曹先生2025-12-021-14/+31
| | | | | | Make server config fields optional and provide default values when missing. This ensures backward compatibility and graceful handling of partial configuration.
* Update vault.rs魏曹先生2025-12-011-0/+5
|
* Change default vault auth mode from password to key魏曹先生2025-12-011-1/+1
|
* Refactor vault config to use template-based generation魏曹先生2025-12-011-29/+79
| | | | | | | | | - Replace direct serialization with template-based config file generation - Add new dependencies: whoami, redox_syscall, wasite, web-sys - Update VaultConfig structure with new enum types and serialization attributes - Modify setup_vault to accept vault_name parameter and use template - Update all test calls to include vault_name parameter
* Add logger configuration to VaultServerConfig魏曹先生2025-12-011-0/+14
|
* fix: Update constants and path references魏曹先生2025-11-201-3/+8
| | | | Rename CLIENT_FILE_MEMBER_HELD to CLIENT_FILE_LATEST_DATA, update all related path references and method names.
* feat: Add file update verification system魏曹先生2025-11-201-3/+3
| | | | Add comprehensive file update verification with detailed failure reasons including version mismatch, file not held, and missing descriptions.
* feat: Add file status tracking and SHA1 hash system魏曹先生2025-11-172-3/+30
| | | | | | | - 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: Enhanced data structures and constants魏曹先生2025-11-062-1/+2
| | | | | | | - Add new constants for local workspace management - Extend SheetData with write_count functionality - Simplify vault data structures - Update sheet and virtual file data handling
* update: Local actions and data structures魏曹先生2025-11-031-1/+1
| | | | | | - Update local actions implementation - Improve latest info handling - Enhance vault sheets management
* Improve vault lock error message and formatting魏曹先生2025-10-291-8/+6
| | | | | | - Use clearer error message when vault is already locked - Fix code formatting for consistency - Remove unnecessary line breaks in error formatting
* Fix error handling in process_connection魏曹先生2025-10-271-3/+2
|
* feat: Add Server Lock魏曹先生2025-10-271-0/+43
|
* feat: Update data configuration structures魏曹先生2025-10-121-4/+74
| | | | | - Add new configuration fields for local and vault data - Remove outdated todo.txt file
* Move vcs crate to vcs_data for better separation of concerns魏曹先生2025-10-064-0/+958
- Rename vcs crate to vcs_data to clearly define data layer - Maintain all existing data structures and functionality - Update dependencies to include action_system integration - Preserve test structure in vcs_data_test directory