Skip to content

refactor: move repo's to domain - #1801

Merged
tusharmath merged 20 commits into
mainfrom
refactor/infra-to-domain
Oct 31, 2025
Merged

tusharmath merged 20 commits into
mainfrom
refactor/infra-to-domain

Conversation

@amitksingh1490

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Oct 29, 2025
@amitksingh1490
amitksingh1490 force-pushed the refactor/infra-to-domain branch from a8ad980 to deefe81 Compare October 29, 2025 13:41
- Added `schema.rs` to define the database schema for conversations.
- Created `forge_repo.rs` to implement the repository layer, aggregating various repository implementations.
- Introduced `fs_snap.rs` for file snapshot management.
- Updated `lib.rs` to include new modules for app configuration, caching, conversations, and file snapshots.
- Modified `auth.rs` to accept a repository parameter for app configuration management.
- Enhanced `forge_services.rs` to support repository integration in services.
- Refactored `mcp` manager and service to utilize repository for cache management.
- Updated provider registry to integrate repository for app configuration handling.
- Implemented snapshot coordination in file services (create, patch, remove, undo).
@amitksingh1490
amitksingh1490 marked this pull request as ready for review October 30, 2025 11:18
autofix-ci Bot and others added 3 commits October 30, 2025 11:19
- Updated Cargo.lock to include new dependencies: bytes, reqwest, reqwest-eventsource, strum, and url.
- Refactored ForgeAPI to simplify the initialization of ForgeServices and ForgeRepo.
- Modified Cargo.toml files to reflect the new dependencies in the respective crates.
- Adjusted the structure of ForgeRepo to accept a generic infrastructure type, improving flexibility.
- Streamlined the ForgeAuthService to remove unnecessary repository dependency.
- Enhanced ForgeMcpManager and ForgeMcpService to eliminate repository dependencies, relying solely on infrastructure.
- Updated various service implementations (FsCreate, FsPatch, FsRemove, FsUndo) to remove repository dependencies and utilize infrastructure directly.
- Improved the ForgeProviderRegistry to work without a repository, simplifying its interface.
- Ensured all changes maintain functionality while improving code clarity and reducing complexity.
…rations

- Added `provider_repository.rs` to handle loading and merging provider configurations from embedded and custom sources.
- Introduced `ForgeProviderRepository` struct with methods to initialize providers and manage configurations.
- Implemented custom merging logic for provider configurations.
- Added tests for loading and merging provider configurations.

refactor: Update auth and forge_services modules

- Moved `AppConfigRepository` import to `forge_domain` in `auth.rs`.
- Cleaned up imports in `forge_services.rs` and removed unused `provider_registry`.
- Added `provider_preferences.rs` for managing user preferences related to providers and models.

feat: Add provider preferences service

- Created `ForgeProviderPreferencesService` to manage default provider and model preferences.
- Implemented methods to get and set default providers and models.
- Added tests to ensure correct behavior of provider preferences service.

refactor: Update provider service to include provider repository

- Modified `ForgeProviderService` to require `ProviderRepository` for fetching providers.
- Added methods to get a specific provider and all providers in `provider/service.rs`.
@amitksingh1490
amitksingh1490 force-pushed the refactor/infra-to-domain branch from 7d99e31 to c3d91a0 Compare October 31, 2025 07:15
@amitksingh1490 amitksingh1490 changed the title feat: add infrastructure traits for environment and file operations refactor: move repo's to domain Oct 31, 2025
@amitksingh1490 amitksingh1490 added type: chore Routine tasks like conversions, reorganization, and maintenance work. and removed type: feature Brand new functionality, features, pages, workflows, endpoints, etc. labels Oct 31, 2025
@tusharmath
tusharmath merged commit ddfea05 into main Oct 31, 2025
9 checks passed
@tusharmath
tusharmath deleted the refactor/infra-to-domain branch October 31, 2025 10:07
manthanabc pushed a commit to manthanabc/forge that referenced this pull request Nov 3, 2025
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tushar Mathur <tusharmath@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore Routine tasks like conversions, reorganization, and maintenance work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants