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

support existing projects #976

Merged
merged 2 commits into from
Jun 4, 2024
Merged

support existing projects #976

merged 2 commits into from
Jun 4, 2024

Conversation

senko
Copy link
Contributor

@senko senko commented May 29, 2024

Adds EXPERIMENTAL support for importing existing projects.

Demo

2024-05-29-08-36.mp4

@senko senko marked this pull request as ready for review June 4, 2024 06:31
Copy link
Member

@LeonOstrez LeonOstrez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general I think it is good that with new agent we also create system message for that agent but if this works ok, we can skip it now

f"Please copy your project files to {project_root} and press Continue",
allow_empty=False,
buttons={
"continue": "Continue",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have Back button also

imported_lines = sum(len(f.content.content.splitlines()) for f in imported_files)
if imported_lines > MAX_PROJECT_LINES:
await self.send_message(
"WARNING: Your project ({imported_lines} LOC) is larger than supported and may cause issues in Pythagora."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If i understand this correctly we don't really block users from loading bigger projects, we just show the warning. I think warning is not enough and we should check LOC before importing files and then fail importing if it is bigger project


spec = self.current_state.specification.clone()
spec.description = llm_response
self.next_state.specification = spec
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe also get architecture, sys dependencies and package dependencies?

@senko senko merged commit 6119049 into main Jun 4, 2024
6 checks passed
@senko senko deleted the import-project branch June 4, 2024 16:18
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