LearnNewsExamplesServices
Frontmatter
id9774
titleRefactor AI SDK and Build Scripts for Memory Core Module Decoupling
stateClosed
labels
enhancementaibuild
assigneestobiu
createdAtApr 8, 2026, 12:40 AM
updatedAtApr 8, 2026, 12:42 AM
githubUrlhttps://github.com/neomjs/neo/issues/9774
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 8, 2026, 12:42 AM

Refactor AI SDK and Build Scripts for Memory Core Module Decoupling

Closedenhancementaibuild
tobiu
tobiu commented on Apr 8, 2026, 12:40 AM

Problem

The legacy DatabaseLifecycleService inside the Memory Core was recently decoupled into ChromaLifecycleService and InferenceLifecycleService. Several downstream consumers across buildScripts/ai/ and ai/examples/ were left statically referencing the deleted service, breaking core SDK functions.

Solution

  1. Introduce a facade SystemLifecycleService inside memory-core/services/lifecycle that orchestrates both internal services.
  2. Export this orchestrator via ai/services.mjs as Memory_LifecycleService to preserve compatibility.
  3. Update hardcoded static imports across all build scripts and examples.
tobiu added the enhancement label on Apr 8, 2026, 12:40 AM
tobiu added the ai label on Apr 8, 2026, 12:40 AM
tobiu added the build label on Apr 8, 2026, 12:40 AM
tobiu assigned to @tobiu on Apr 8, 2026, 12:40 AM
tobiu referenced in commit 22c5db8 - "refactor: Orchestrate Memory Core startup via SystemLifecycleService facade (#9774)" on Apr 8, 2026, 12:42 AM
tobiu
tobiu Apr 8, 2026, 12:42 AM

Refactored the Memory Core AI SDK downstream references by establishing a SystemLifecycleService facade, protecting downstream consumers. Modified integration code locally and verified startup dependencies across build scripts and examples.

tobiu closed this issue on Apr 8, 2026, 12:42 AM
tobiu referenced in commit 0e32592 - "test(mcp): resolve concurrent _initPromise yield bypass race during parallel worker Playwright execution (#9774)" on Apr 8, 2026, 1:27 AM
tobiu referenced in commit 15e3c95 - "chore(mcp): align ChromaLifecycleService JSDocs and extract registerCleanup (#9774)" on Apr 8, 2026, 1:27 AM