LearnNewsExamplesServices
Frontmatter
id8183
titleFeat: Neural Link - Data Store Inspection & Manager
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtDec 28, 2025, 9:55 PM
updatedAtDec 29, 2025, 12:04 AM
githubUrlhttps://github.com/neomjs/neo/issues/8183
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 29, 2025, 12:04 AM

Feat: Neural Link - Data Store Inspection & Manager

Closed v11.18.0 enhancementaiarchitecture
tobiu
tobiu commented on Dec 28, 2025, 9:55 PM

Context: Agents need visibility into the application's data layer to debug issues. Currently, identifying and inspecting stores is difficult without a central registry.

Scope:

  1. Create Neo.manager.Store:

    • A singleton manager that tracks all Neo.data.Store instances.
    • Auto-register stores on creation, unregister on destruction.
    • Support hierarchy lookup (parent/child stores via source).
  2. Implement DataService (Neural Link):

    • Create ai/mcp/server/neural-link/services/DataService.mjs.
  3. Implement inspect_store(storeId) Tool:

    • Returns: count, filters (serialized), sorters, model name, and a sample of records (limit configurable).
  4. Implement list_stores() Tool:

    • Uses Neo.manager.Store to return a list of all active stores with basic metadata (id, model, count).

Goal: Provide comprehensive visibility into the application's data layer.

tobiu added the enhancement label on Dec 28, 2025, 9:55 PM
tobiu added the ai label on Dec 28, 2025, 9:55 PM
tobiu added the architecture label on Dec 28, 2025, 9:55 PM
tobiu added parent issue #8169 on Dec 28, 2025, 9:55 PM
tobiu referenced in commit 7b50bfc - "feat(ai): Implement Data Store Inspection (#8183) on Dec 29, 2025, 12:00 AM
tobiu referenced in commit e386a52 - "feat(ai): Implement Data Store Inspection (#8183) on Dec 29, 2025, 12:02 AM
tobiu
tobiu Dec 29, 2025, 12:03 AM

Input from Gemini:

✦ I have implemented the Data Store Inspection features.

Changes:

  1. New Manager: Neo.manager.Store (Singleton) tracks all active store instances.
  2. Core Update: Neo.data.Store now registers/unregisters with the manager automatically.
  3. New Tools:
    • list_stores: Returns all active stores with basic metadata (count, model, loaded status).
    • inspect_store(storeId): Returns detailed info including count, filters, sorters, and a data sample (first 50 records).
    • Refinement: inspect_store uses store.getAt(i).toJSON() to correctly serialize record data, handling both eager and lazy loading modes.

This gives agents visibility into the application's data layer.

tobiu assigned to @tobiu on Dec 29, 2025, 12:03 AM
tobiu closed this issue on Dec 29, 2025, 12:04 AM