Skip to content

Commit 87565c7

Browse files
committed
fix: critical syntax errors, security sweep, stale versions
orchestrator.py: - Remove git commit message fragment appended to REDIS_HOST line (syntax error) - Replace bare IP 192.168.1.100 with OLLAMA_WINDOWS_ENDPOINT env var orchestrator/autoresearch_bridge.py: - Remove 3x confidential folder references (path, docstring, conda env) orchestrator/fastapi_app.py: - Update stale version 0.9.0.0 → 0.9.6.0 in FastAPI constructor and /health requirements.txt: - Update header comment from v0.9.0.0 → v0.9.6.0
1 parent 3be15be commit 87565c7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

orchestrator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
PERPLEXITY_API_KEY = os.getenv("PERPLEXITY_API_KEY")
1616
OLLAMA_MAC_ENDPOINT = os.getenv("OLLAMA_MAC_ENDPOINT", "http://localhost:11434")
1717
OLLAMA_WINDOWS_ENDPOINT = os.getenv("OLLAMA_WINDOWS_ENDPOINT", "http://192.168.1.100:11434")
18-
REDIS_HOST = os.getenv("REDIS_HOST", "localhost")feat(orchestration): synchronize Windows endpoint with api_server.py default (192.168.1.100)
18+
REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
1919
REDIS_PORT = int(os.getenv("REDIS_PORT", 6379))
2020
MAX_DAILY_SPEND = float(os.getenv("MAX_DAILY_SPEND", 0.17))
2121
MAX_PERPLEXITY_CALLS_DAY = int(os.getenv("MAX_PERPLEXITY_CALLS_DAY", 5))
@@ -148,7 +148,7 @@ async def orchestrate(req: OrchestrationRequest):
148148
result = await call_perplexity(req.task_description, model="grok-beta")
149149
if not result:
150150
routing_log.append("Cloud failed, falling back to local Qwen3-30B research")
151-
result = await call_ollama(req.task_description, "qwen3:30b-a3b-instruct-q4_K_M", 192.168.1.100)
151+
result = await call_ollama(req.task_description, "qwen3:30b-a3b-instruct-q4_K_M", OLLAMA_WINDOWS_ENDPOINT)
152152

153153
elif req.privacy_critical:
154154
routing_log.append("Privacy critical task detected. Routing to UltraThink system.")

orchestrator/autoresearch_bridge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
# Local Mac path — used only for git history, SKILL.md edits, swarm_state.md.
5252
LOCAL_REPO_PATH: Path = Path(
53-
os.environ.get("LOCAL_AUTORESEARCH_PATH", str(Path.home() / "cogntiv" / "autoresearch"))
53+
os.environ.get("LOCAL_AUTORESEARCH_PATH", str(Path.home() / "autoresearch"))
5454
)
5555
SWARM_STATE_FILE: Path = LOCAL_REPO_PATH / "swarm_state.md"
5656

@@ -181,15 +181,15 @@ def deploy_train_py() -> bool:
181181
# ── dispatch training run on GPU runner ───────────────────────────────────────
182182

183183
def run_experiment_on_gpu() -> bool:
184-
"""SSH into Windows runner and execute train.py inside the cogntiv312 conda env.
184+
"""SSH into Windows runner and execute train.py inside the autoresearch conda env.
185185
186186
Uses CMD syntax over SSH (Windows default shell).
187187
stdout/stderr are redirected to run.log on the runner.
188188
Returns True if the SSH call itself succeeded (not whether val_bpb improved).
189189
"""
190190
cmd = (
191191
f"cd {GPU_REPO_PATH} && "
192-
"conda run -n cogntiv312 uv run train.py > run.log 2>&1"
192+
"conda run -n autoresearch uv run train.py > run.log 2>&1"
193193
)
194194
result = subprocess.run(
195195
["ssh", *_SSH_OPTS, GPU_BOX, cmd],

orchestrator/fastapi_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def _lifespan(app: FastAPI):
3838

3939
app = FastAPI(
4040
title="Perplexity-Tools Orchestrator",
41-
version="0.9.0.0",
41+
version="0.9.6.0",
4242
description=(
4343
"Top-level idempotent multi-agent orchestrator. "
4444
"Repo #1 — complements ultrathink-system (Repo #2) "
@@ -106,7 +106,7 @@ def health(
106106
"""Backend connectivity health check — supports Mac+Win+shared Ollama."""
107107
return {
108108
"status": "ok",
109-
"version": "0.9.0.0",
109+
"version": "0.9.6.0",
110110
"backends": backend_health_map(
111111
ollama_host=ollama_host,
112112
lm_studio_host=lm_studio_host,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Perplexity-Tools v0.9.0.0 Dependencies
1+
# Perplexity-Tools v0.9.6.0 Dependencies
22
# Updated: 2026-03-22
33

44
# Core frameworks

0 commit comments

Comments
 (0)