This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
php-agentic/Models
Snider 331796c1da
Some checks failed
CI / PHP 8.3 (push) Failing after 2s
CI / PHP 8.4 (push) Failing after 2s
feat: add dedicated brain database connection for remote MariaDB
Brain memories can now be stored in a separate database, co-located
with Qdrant vectors on the homelab. Defaults to the app's main DB
when no BRAIN_DB_* env vars are set (zero-config for existing installs).

- Add brain.database config with BRAIN_DB_* env var support
- Register 'brain' database connection in Boot.php
- Set BrainMemory model to use 'brain' connection
- Update BrainService transactions to use brain connection
- Update migration to use brain connection, drop workspace FK
  (cross-database FKs not supported)
- Add migration to drop FK on existing installs
- Update default URLs from *.lthn.lan to *.lthn.sh

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 15:14:01 +00:00
..
AgentApiKey.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
AgentPhase.php perf: replace N+1 find() with whereIn batch lookup in checkDependencies() 2026-02-23 10:40:00 +00:00
AgentPlan.php refactor: consolidate duplicate state models into WorkspaceState (#18) 2026-02-24 13:26:23 +00:00
AgentSession.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
BrainMemory.php feat: add dedicated brain database connection for remote MariaDB 2026-03-03 15:14:01 +00:00
PlanTemplateVersion.php feat: add template version management (#35) 2026-02-24 13:25:17 +00:00
Prompt.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
PromptVersion.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
Task.php refactor: add Builder return types to all Eloquent query scopes 2026-02-23 05:32:38 +00:00
WorkspaceState.php refactor: consolidate duplicate state models into WorkspaceState (#18) 2026-02-24 13:26:23 +00:00