feat(app): start Strata from the data folder and point the brain at it
M5 step 4, second part. The services start the LLM first: the installed Strata with the M0 kit's model and normal placement (models in models/llm, parallel 1, or 2 when a chat channel answers every message, pictures off, --restart), wait until /v1/models lists the model, and stop it last. The first start downloads the model; the dashboard shows Strata's last line and percentage, and stop also cancels a start (the server is cleared). llm.url uses a server the app does not start. On every start the app writes config/brain.json (Strata's /v1, the listed model id, memory/jarvis.db) and hands it to the worker as JARVIS_CONFIG_PATH. Loading a config with its own db_path no longer creates ~/.local/share/jarvis. service_start/service_restart run in the background. Settings gain llm.context and llm.port (model screen) and llm.url (file only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,9 +60,10 @@ def _default_dictation_hotkey() -> str:
|
||||
return "ctrl+alt"
|
||||
|
||||
|
||||
def _default_db_path() -> str:
|
||||
def _default_db_path(create: bool = True) -> str:
|
||||
base = Path.home() / ".local" / "share" / "jarvis"
|
||||
base.mkdir(parents=True, exist_ok=True)
|
||||
if create:
|
||||
base.mkdir(parents=True, exist_ok=True)
|
||||
return str(base / "jarvis.db")
|
||||
|
||||
|
||||
@@ -386,7 +387,9 @@ def get_default_config() -> Dict[str, Any]:
|
||||
"""Returns the default configuration values."""
|
||||
return {
|
||||
# Database & Storage
|
||||
"db_path": _default_db_path(),
|
||||
# Not created here: a config naming its own database (the v2 app's) writes nothing to the
|
||||
# home folder; the database creates its folder when it opens (memory/db.py).
|
||||
"db_path": _default_db_path(create=False),
|
||||
"sqlite_vss_path": None,
|
||||
|
||||
# LLM & AI Models
|
||||
|
||||
Reference in New Issue
Block a user