feat: [Bezalel Epic-006] Sovereign Forge — Full Autonomy on a 2GB RAM VPS Without Cloud Inference (#168)
Refs #168 Agent: groq
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -58,3 +58,4 @@ mini-swe-agent/
|
||||
# Nix
|
||||
.direnv/
|
||||
result
|
||||
.aider*
|
||||
|
||||
@@ -14,6 +14,23 @@ for p in Path(".").rglob("*.py"):
|
||||
errors.append(f"{p}: {e}")
|
||||
print(f"SYNTAX ERROR: {p}: {e}", file=sys.stderr)
|
||||
|
||||
# Check for cloud API calls
|
||||
CLOUD_API_KEYWORDS = {
|
||||
"openai", "anthropic", "openrouter", "nous", "kimi",
|
||||
"api.openai.com", "api.anthropic.com", "openrouter.ai",
|
||||
"api.nousresearch.com", "api.kimi.ai"
|
||||
}
|
||||
try:
|
||||
with open(p, "r", encoding="utf-8") as f:
|
||||
content = f.read().lower()
|
||||
for keyword in CLOUD_API_KEYWORDS:
|
||||
if keyword in content:
|
||||
errors.append(f"{p}: Cloud API call detected: {keyword}")
|
||||
print(f"CLOUD API CALL: {p}: {keyword}", file=sys.stderr)
|
||||
break
|
||||
except Exception as e:
|
||||
print(f"ERROR reading {p}: {e}", file=sys.stderr)
|
||||
|
||||
if errors:
|
||||
print(f"\n{len(errors)} file(s) with syntax errors", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user