Skip to content

Conversation

@hghalebi
Copy link
Owner

@hghalebi hghalebi commented Dec 30, 2025

Refactor tools and types into separate files

This PR refactors the codebase to improve organization by:

  • Moving all tools (Deconstructor, PromptReviewer, WebSearcher) into separate files under a new tools module
  • Splitting types into logical modules (artifact, common, config, pipeline)
  • Creating a new agents module with the optimizer functionality
  • Removing the redundant pipline.rs file
  • Fixing several bugs:
    • Changed require_env to return the actual value instead of just ()
    • Updated Client::new usage with proper error handling
    • Added proper error handling for JSON parsing
    • Added missing ClientError variant to ScribeError
    • Updated imports to match the new structure
    • Fixed scope ID in main.rs

The refactoring maintains all existing functionality while making the code more maintainable and better organized.

Copy link
Owner Author

hghalebi commented Dec 30, 2025

Copy link
Owner Author

hghalebi commented Dec 30, 2025

Merge activity

  • Dec 30, 2:45 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 30, 2:45 PM UTC: @hghalebi merged this pull request with Graphite.

@hghalebi hghalebi merged commit a65932d into main Dec 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants