-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaeon_config.py
More file actions
64 lines (56 loc) · 3.21 KB
/
aeon_config.py
File metadata and controls
64 lines (56 loc) · 3.21 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""
Aeon Browser - Central Configuration
All modules import from here. Change once, affects everything.
"""
import os
from pathlib import Path
# ── Engine (ungoogled-chromium 146, pre-built) ────────────────────────────────
CHROME_EXE = r"C:\Users\Manuel A Delgado\AppData\Local\Chromium\Application\chrome.exe"
# Fallback search if path moves (e.g. after update)
if not Path(CHROME_EXE).exists():
_candidates = [
Path(os.environ.get("LOCALAPPDATA","")) / "Chromium" / "Application" / "chrome.exe",
Path("C:/Program Files/ungoogled-chromium/chrome.exe"),
Path("C:/Program Files (x86)/ungoogled-chromium/chrome.exe"),
]
for _c in _candidates:
if _c.exists():
CHROME_EXE = str(_c)
break
# ── CDP ───────────────────────────────────────────────────────────────────────
CDP_PORT = 9222
CDP_HOST = "127.0.0.1"
CDP_URL = f"http://{CDP_HOST}:{CDP_PORT}"
# ── Paths ─────────────────────────────────────────────────────────────────────
AEON_ROOT = Path(__file__).parent
AEON_PROFILE_DIR = AEON_ROOT / "profile" # browser user data
AEON_LOGS_DIR = AEON_ROOT / "logs"
AEON_MODELS_DIR = AEON_ROOT / "models"
AEON_MEMORY_DIR = AEON_ROOT / "memory"
# ── LLM ───────────────────────────────────────────────────────────────────────
DEFAULT_MODEL = "phi4" # Ollama model
OLLAMA_BASE_URL = "http://localhost:11434"
# ── AeonHive ──────────────────────────────────────────────────────────────────
HIVE_PORT = 7879
HIVE_BROADCAST_PORT= 7880
# ── Agent API server ──────────────────────────────────────────────────────────
AGENT_PORT = 7878
# ── Chrome launch flags (privacy + CDP + performance) ─────────────────────────
CHROME_FLAGS = [
f"--remote-debugging-port={CDP_PORT}",
f"--user-data-dir={AEON_PROFILE_DIR}",
"--no-first-run",
"--no-default-browser-check",
"--disable-sync",
"--disable-background-networking",
"--disable-client-side-phishing-detection",
"--disable-default-apps",
"--disable-extensions-except=", # allow only explicit extensions
"--disable-hang-monitor",
"--metrics-recording-only", # metrics go nowhere (ungoogled default)
"--safebrowsing-disable-auto-update",
"--disable-breakpad",
"--disable-domain-reliability",
"--no-pings",
"--disable-features=TranslateUI,OptimizationGuideModelDownloading",
]