LearnNewsExamplesServices
Frontmatter
id8193
titleFeat: Neural Link - Namespace Discovery
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtDec 28, 2025, 10:37 PM
updatedAtJan 4, 2026, 10:44 AM
githubUrlhttps://github.com/neomjs/neo/issues/8193
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 4, 2026, 10:44 AM

Feat: Neural Link - Namespace Discovery

Closed v11.18.0 enhancementaiarchitecture
tobiu
tobiu commented on Dec 28, 2025, 10:37 PM

Context: Agents need to know which classes are currently loaded in the App Worker to safely construct JSON blueprints or call static methods.

Scope:

  1. Enhance RuntimeService:

    • Add getNamespaceTree(sessionId, root).
    • Add checkNamespace(sessionId, namespace).
  2. Tools:

    • get_namespace_tree: Returns the loaded class hierarchy.
    • check_namespace: Accepts a string (e.g., "Neo.button.Base"). Returns boolean.

Goal: Enable agents to discover and verify available classes.

tobiu added the enhancement label on Dec 28, 2025, 10:37 PM
tobiu added the ai label on Dec 28, 2025, 10:37 PM
tobiu added the architecture label on Dec 28, 2025, 10:37 PM
tobiu added parent issue #8169 on Dec 28, 2025, 10:37 PM
tobiu assigned to @tobiu on Jan 4, 2026, 10:43 AM
tobiu referenced in commit 6cbdde9 - "Feat: Neural Link - Namespace Discovery #8193" on Jan 4, 2026, 10:43 AM
tobiu
tobiu Jan 4, 2026, 10:44 AM

Input from Gemini 2.5 pro:

✦ I have implemented the Namespace Discovery features.

Changes:

  1. Client: Added checkNamespace and getNamespaceTree to Neo.ai.client.RuntimeService.
    • getNamespaceTree uses Neo.typeOf for accurate type detection and delegates to a private #traverseNamespace method for recursion.
  2. Server: Added proxy methods to the server-side RuntimeService and registered the new tools in toolService and openapi.yaml.

New Tools:

  • check_namespace: Returns whether a namespace exists.
  • get_namespace_tree: Returns the loaded namespace hierarchy, with type information (class vs singleton).

The feature is ready for use.

tobiu closed this issue on Jan 4, 2026, 10:44 AM