Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: export localPersistentMindRecommendation from lib barrel
atomanticagentbaae50410e95
diff --git a/server/lib/README.md b/server/lib/README.mdindex a7b68a95f6..108dace08b 100644--- a/server/lib/README.md+++ b/server/lib/README.md@@ -436,6 +436,7 @@ pm` default, `NPM_CONFIG_PREFIX`, nvm/Volta) installed `codex` successfully and| `huggingfaceLora.js` | HuggingFace LoRA import helpers: parse HF ref → `{repo,revision,file}`, fetch `/api/models` metadata, select an exact or family-matching `.safetensors`, detect the image or video LoRA family (`flux2` / `ltx-video` / …), build the sidecar + `resolve` download URL. The HF analogue of `civitai.js`. Pure. || `huggingfaceModel.js` | HuggingFace base-model (image/video) classifier for the self-service "add a model" flow (#2124): inspect repo siblings + card → decide the loadable runtime/runner, STRICTLY refuse GGUF-only / wan / hunyuan / unclassifiable repos (so a bad add can't wedge the picker), build the `media-models.json` entry (`source:'user'`), + a `searchHuggingfaceModels` Hub-search helper. Pure. || `localLlmCatalog.js` | Curated cross-backend (Ollama↔LM Studio) local-LLM catalog + install-id mapping for the migrate flow. Pure. |+| `localPersistentMindRecommendation.js` | CPU-only / low-RAM Persistent Mind defaults (Grok-box path): recommended Ollama + Qwen2.5 7B instruct profile, model aliases, and host gates so GPU coding-agent presets are not steered here. Pure. || `modelAbuseGuard.js` | Pinned model-abuse boundary contract: Prompt Guard metadata, deterministic abuse signals, complete classifier-window coverage validation, chunk/timeout limits, fixed dependency versions (`MODEL_ABUSE_GUARD_PYTHON_PACKAGES`), and `MODEL_ABUSE_GUARD_STAGES` / `modelAbuseGuardStageReadiness` for the operator-facing install checklist. Pure. || `localLlmDisk.js` | Pure on-disk reasoning for the migrate "copy GGUF locally instead of re-downloading" fast-path (Ollama manifest/blob parsing, LM Studio path layout, MLX/projector/shard detection) plus the Hugging Face registry addressing used to finish an abandoned Ollama pull. || `specDecodePresets.js` | Curated llama-server speculative-decoding presets (target + drafter GGUF paths, `--spec-type`, and the Hugging Face repo/quant each file comes from) plus `findSpecDecodePreset` / `specDecodeSource` / `hfSearchUrl`. Also owns the `--spec-type` vocabulary: `SPEC_TYPE_SUGGESTIONS` (published to the launcher card), `parseSpecTypes` (the flag is a comma-separated list) and `isDraftSpecType` (the `draft-` prefix is what needs a drafter GGUF — every `ngram-*` type runs without one). Server-owned so the launcher card can offer a Download button per file. Pure. |diff --git a/server/lib/index.js b/server/lib/index.jsindex a4a8878910..00d372db4f 100644--- a/server/lib/index.js+++ b/server/lib/index.js@@ -402,6 +402,7 @@ export * from './civitai.js';export * from './huggingfaceLora.js';export * from './huggingfaceModel.js';export * from './localLlmCatalog.js';+export * from './localPersistentMindRecommendation.js';export * from './modelAbuseGuard.js';export * from './localLlmDisk.js';export * from './specDecodePresets.js';diff --git a/server/routes/localLlm.test.js b/server/routes/localLlm.test.jsindex 6e179ca4e0..e0597418a5 100644--- a/server/routes/localLlm.test.js+++ b/server/routes/localLlm.test.js@@ -129,6 +129,8 @@ vi.mock('../services/specDecodeModels.js', () => ({// so mock it (defaults to no backends disabled; the disabled-case test flips it).vi.mock('../services/settings.js', () => ({getSettings: vi.fn(async () => ({})),+ // localPersistentMindSetup → cos → cosTaskStore → codeReview listens on boot.+ settingsEvents: { on: vi.fn(), emit: vi.fn(), setMaxListeners: vi.fn() },}));function makeApp() {