Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optimize CLI script #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hari7261
Copy link

@hari7261 hari7261 commented Jan 2, 2025

Add a new optimize CLI script and implement project structure optimization logic.

  • docs/docs/cli.md

    • Add a new section for the optimize CLI script with usage examples and options.
  • src/cli/cli.ts

    • Import optimizeProjectStructure function.
    • Implement the optimize CLI script to call the optimizeProjectStructure function.
  • src/swe/codeEditingAgent.ts

    • Add a new method optimizeProjectStructure to handle the optimization logic.
    • Implement the optimization logic in the optimizeProjectStructure method.
    • Add helper methods getDefaultOptimizationRules and applyOptimizationRule.
  • src/cli/cli.test.ts

    • Add tests for the new optimize CLI script.
    • Add tests for the optimizeProjectStructure function.

Add a new `optimize` CLI script and implement project structure optimization logic.

* **docs/docs/cli.md**
  - Add a new section for the `optimize` CLI script with usage examples and options.

* **src/cli/cli.ts**
  - Import `optimizeProjectStructure` function.
  - Implement the `optimize` CLI script to call the `optimizeProjectStructure` function.

* **src/swe/codeEditingAgent.ts**
  - Add a new method `optimizeProjectStructure` to handle the optimization logic.
  - Implement the optimization logic in the `optimizeProjectStructure` method.
  - Add helper methods `getDefaultOptimizationRules` and `applyOptimizationRule`.

* **src/cli/cli.test.ts**
  - Add tests for the new `optimize` CLI script.
  - Add tests for the `optimizeProjectStructure` function.
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.

1 participant