-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevolve.py
More file actions
27 lines (22 loc) · 758 Bytes
/
evolve.py
File metadata and controls
27 lines (22 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
"""
Evolver: Self-Evolving DevSecOps System
Entry point for running the evolutionary loop.
"""
import argparse
import os
import sys
from workflows.master_loop import run_evolution
def main():
parser = argparse.ArgumentParser(description="Run the Evolver DevSecOps system.")
parser.add_argument("--repo", required=True, help="Repository URL to evolve.")
parser.add_argument("--branch", default="main", help="Branch to clone.")
args = parser.parse_args()
# Ensure we're in sandbox
if not os.path.exists("/app/sandbox"):
print("Error: Not running in sandboxed environment.")
sys.exit(1)
# Run the master loop
run_evolution(args.repo, args.branch)
if __name__ == "__main__":
main()