Revert "Revert "feat: add recent commits""

This reverts commit f6efd68bdd.
This commit is contained in:
2025-05-19 11:58:34 -03:00
parent f6efd68bdd
commit 0e46898575
2 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class RepoClassificationPhase(WorkflowPhase):
super().__init__(
workflow=workflow,
prompt_name="classify_repository",
available_tools=["read_file", "search_code", "classify_repository"],
available_tools=["read_file", "search_code", "list_directory_contents", "classify_repository"],
conversation_id=conversation_id,
name="Repository Classification",
)
@ -33,6 +33,7 @@ class ReadmeSectionGenerationPhase(WorkflowPhase):
available_tools=[
"read_file",
"search_code",
"list_directory_contents",
"create_readme_section",
],
conversation_id=conversation_id,
@ -56,7 +57,7 @@ class ReadmeReviewPhase(WorkflowPhase):
super().__init__(
workflow=workflow,
prompt_name="review_readme_file",
available_tools=["read_file", "search_code", "review_readme_file"],
available_tools=["read_file", "search_code", "list_directory_contents", "review_readme_file"],
conversation_id=conversation_id,
name="Readme Review",
)
@ -67,7 +68,7 @@ class CreatePullRequestPhase(WorkflowPhase):
super().__init__(
workflow=workflow,
prompt_name="create_pr",
available_tools=["read_file", "search_code", "create_pull_request_legacy"],
available_tools=["read_file", "search_code", "list_directory_contents", "create_pull_request_legacy"],
conversation_id=conversation_id,
name="Create Pull Request",
)

View File

@ -67,7 +67,7 @@ PROMPTS = {
"The content will be added automatically, your job is just to create a good title."
),
"create_pr": (
"You are creating a pull request for the file README_Prometheus.md you have generated. "
"You are creating a pull request."
"The repository has been cloned to the current directory.\n"
"Use the `create_pull_request_legacy` tool to create the pull request.\n"
"IMPORTANT: Always use relative paths (e.g., 'src/file.py' not '/src/file.py')\n\n"