-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
23 lines (18 loc) · 820 Bytes
/
Copy pathmain.py
File metadata and controls
23 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import argparse
from agent.graph import agent
def main():
parser = argparse.ArgumentParser(description="Shard - AI Software Engineer")
parser.add_argument("prompt", type=str, help="Describe the app you want to build")
parser.add_argument("--type", "-t", type=str, default="html_css_js",
choices=["html_css_js", "python", "react", "api", "static"],
help="Project type (default: html_css_js)")
args = parser.parse_args()
print(f"\n🚀 Building: {args.prompt}")
print(f"📦 Project type: {args.type}\n")
result = agent.invoke(
{"user_prompt": args.prompt, "project_type": args.type},
config={"recursion_limit": 100}
)
print("\n✅ Done! Check the 'generated_project' folder.\n")
if __name__ == "__main__":
main()