aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * update: Add error type - Locked魏曹先生2025-10-271-0/+3
| |
| * fixed: Incorrect condition setting for determining whether to send魏曹先生2025-10-272-1/+2
| | | | | | | | parameters during `on_proc_begin`
| * update: ActionContext 1. Rename `local` to `proc_on_local` 2. Add魏曹先生2025-10-272-11/+24
| | | | | | | | `is_remote_action`
| * "fix: Fix indentation issues魏曹先生2025-10-271-5/+6
| |
| * fix: Make the ActionContext passed to on_proc_begin mutable魏曹先生2025-10-273-8/+8
| |
| * feat: Add Server Lock魏曹先生2025-10-271-0/+43
| |
| * Add some debug logs魏曹先生2025-10-272-16/+61
| |
| * Ignore directory魏曹先生2025-10-271-0/+3
| |
| * Fix some spelling issues.魏曹先生2025-10-243-4/+21
| |
| * Re-export subcrate `action_system` to `just_enough_vcs`魏曹先生2025-10-247-8/+29
|/
* Merge pull request #25 from JustEnoughVCS/docs魏曹先生2025-10-192-2/+2
|\ | | | | Update README.md
| * Update README.md魏曹先生2025-10-192-2/+2
| |
* | Merge pull request #24 from JustEnoughVCS/docs魏曹先生2025-10-194-63/+107
|\| | | | | Docs
| * Update README.md魏曹先生2025-10-192-5/+11
| |
| * Update CONTRIBUTING.md魏曹先生2025-10-192-58/+96
| |
* | Merge pull request #23 from JustEnoughVCS/docs魏曹先生2025-10-194-2/+130
|\| | | | | Docs
| * Add CONTRIBUTING.md魏曹先生2025-10-192-0/+128
| |
| * Fine-tuning content魏曹先生2025-10-192-2/+2
| |
* | Merge pull request #22 from JustEnoughVCS/jvcs_dev魏曹先生2025-10-181-1/+4
|\| | | | | Update `config.rs`
| * Update `config.rs`魏曹先生2025-10-181-1/+4
| | | | | | | | - If config file not exist, now return Error
* | Merge pull request #21 from JustEnoughVCS/jvcs_dev魏曹先生2025-10-1325-103/+732
|\| | | | | Jvcs dev
| * Fix Clippy warnings and optimize code魏曹先生2025-10-138-47/+51
| | | | | | | | | | | | | | | | | | - 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-137-38/+109
| | | | | | | | | | | | | | | | | | | | - 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-138-23/+166
| | | | | | | | | | | | | | | | | | - 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 JSON-based action invocation to ActionPool魏曹先生2025-10-139-22/+42
| | | | | | | | | | | | | | | | - 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
| * feat: Add connection infrastructure and documentation魏曹先生2025-10-124-0/+176
| | | | | | | | | | | | - Implement action service for connection handling - Add error types for connection operations - Create todo.md for project tracking
| * chore: Update Cargo.lock with new dependencies魏曹先生2025-10-121-0/+6
| |
| * feat: Update data configuration structures魏曹先生2025-10-123-40/+99
| | | | | | | | | | - Add new configuration fields for local and vault data - Remove outdated todo.txt file
| * refactor: Update action macros and error types魏曹先生2025-10-122-4/+7
| | | | | | | | | | - Enhance action_gen macro functionality - Add new error variants for TCP connection
| * chore: Update dependencies and module exports魏曹先生2025-10-123-0/+17
| | | | | | | | | | - Add required dependencies for action system - Export registry modules in vcs_actions library
| * 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
| * feat: Add server action registry魏曹先生2025-10-121-0/+9
| | | | | | | | | | - Create server_action_pool function - Register SetUpstreamVaultAction for server use
| * feat: Add callback mechanism to ActionPool魏曹先生2025-10-121-6/+53
| | | | | | | | | | | | | | - Add ProcBeginCallback and ProcEndCallback types - Implement set_on_proc_begin and set_on_proc_end methods - Add callback execution in process method - Update trait bounds for better type safety
| * fix: Resolve callback type mismatch in client_registry魏曹先生2025-10-121-0/+39
| | | | | | | | | | | | - 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
| * feat: Add Clone implementation for ActionContext魏曹先生2025-10-121-2/+20
| | | | | | | | | | This enables ActionContext to be cloned when setting up process begin callbacks, resolving lifetime issues in callback registration.
* | Merge pull request #19 from JustEnoughVCS/jvcs_dev魏曹先生2025-10-0610-7/+115
|\| | | | | Jvcs dev
| * chore: update workspace configuration and dependencies魏曹先生2025-10-064-2/+19
| | | | | | | | | | | | - Add examples to workspace members - Update vcs_data dependencies structure - Fix library re-export paths in main lib.rs
| * feat: add examples demonstrating action system usage魏曹先生2025-10-063-0/+40
| | | | | | | | | | | | - Create examples workspace member - Add example_action_system binary showcasing macro usage - Demonstrate action registration and processing workflow
| * feat: add new error variants to TcpTargetError魏曹先生2025-10-061-0/+6
| | | | | | | | | | - Add NotLocal error for actions requiring local execution - Add NotRemote error for actions requiring remote execution
| * feat: add default implementation and convenience methods to ActionContext魏曹先生2025-10-061-2/+19
| | | | | | | | | | | | - Implement Default trait for ActionContext - Add local() and remote() constructor methods - Make instance field optional for better flexibility
| * refactor: optimize procedural macros in action_system魏曹先生2025-10-061-3/+31
| | | | | | | | | | | | - Add register_to_pool and process_at_pool helper methods to generated structs - Improve documentation with usage examples - Enhance macro-generated code structure
* | Merge pull request #18 from JustEnoughVCS/jvcs_dev魏曹先生2025-10-062-9/+31
|\| | | | | Jvcs dev
| * Enhance rust-analyzer configuration for better proc-macro support魏曹先生2025-10-061-0/+4
| | | | | | | | | | | | | | - Enable procMacro.attributes for attribute macro support - Increase macroExpansion.maxDepth to 32 for complex macro chains - Enable both hir and tt macro expansion engines - Add experimental.procMacro.server for improved macro server support
| * Fix macro to properly extract and use parameter names from function signature魏曹先生2025-10-061-8/+26
| | | | | | | | | | | | | | - Extract actual parameter names (ctx, upstream) from function signature - Use extracted parameter names in generated process method - Remove workaround that manually assigned context to ctx variable - Ensure generated code matches the original function parameter names exactly
| * Fix macro expansion type errors in action_system macros魏曹先生2025-10-061-2/+2
| | | | | | | | | | | | | | - Update macro-generated code to use correct action_system crate name - Replace vcs_service references with action_system in generated implementations - Ensure Action trait implementations reference the correct module path - Fix ActionContext type references in generated process methods
* | Merge pull request #17 from JustEnoughVCS/jvcs_dev魏曹先生2025-10-0642-81/+102
|\| | | | | Jvcs dev
| * Update main lib.rs for new crate architecture魏曹先生2025-10-061-0/+3
| | | | | | | | | | | | - Remove old vcs module exports - Prepare for new vcs_data and vcs_actions integration - Update library structure to reflect architectural changes
| * Update workspace configuration for new crate structure魏曹先生2025-10-062-7/+22
| | | | | | | | | | | | - Replace vcs with vcs_data and vcs_actions in workspace members - Update Cargo.lock dependencies to reflect new crate names - Maintain workspace structure with reorganized crates
| * Remove old vcs directory after migration to vcs_data魏曹先生2025-10-0624-2900/+0
| | | | | | | | | | | | - Delete entire crates/vcs directory and its contents - Remove test files and configuration from old structure - Complete transition to new vcs_data and vcs_actions architecture
| * Create vcs_actions crate for client-server interaction logic魏曹先生2025-10-0611-0/+24
| | | | | | | | | | | | - 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