refactor: drop the legacy memory engine from core, the server and the build (P1.5)

- @waggle/core no longer re-exports @waggle/hive-mind-core and no longer
  depends on it.
- The server no longer opens personal.mind or a cache of workspace minds;
  the legacy files are only read by the one-time copies of legacy data.
  releaseWorkspace closes the workspace's sessions and detaches it from the
  shared orchestrator.
- WorkspaceManager stops creating an empty workspace.mind.
- memory-center-legacy.ts had no callers left and is removed.
- build:packages no longer builds hive-mind-core and wiki-compiler; the
  sidecar aliases the memory packages to source instead.
- mem0ai stays external in the sidecar and launcher bundles: it imports a
  client for every provider it supports on demand, and bundling it failed on
  the optional peers Waggle does not install. The launcher declares mem0ai
  and no longer needs sqlite-vec.
This commit is contained in:
shumeiko.it
2026-10-24 13:34:09 +02:00
parent bde961abcf
commit e435e7da94
12 changed files with 252 additions and 190 deletions

View File

@@ -49,8 +49,8 @@
"fastify-plugin": "^5.0.0",
"glob": "^13.0.6",
"mammoth": "^1.11.0",
"mem0ai": "3.3.1",
"pdf-parse": "^2.4.5",
"sqlite-vec": "^0.1.7-alpha.2",
"undici": "^6.27.0",
"whatsapp-web.js": "1.34.7",
"ws": "^8.21.0",

View File

@@ -19,5 +19,8 @@ export default defineConfig({
'adm-zip',
'playwright-core',
'chromium-bidi',
// mem0 loads a client for each provider it supports on demand; those are
// optional peers Waggle does not install (see scripts/build-sidecar.mjs).
'mem0ai',
],
});