LearnNewsExamplesServices
Frontmatter
id8271
title[Neural Link] Refactor ComponentService to use toJSON protocol
stateClosed
labels
airefactoring
assigneestobiu
createdAtJan 1, 2026, 6:26 PM
updatedAtJan 1, 2026, 6:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/8271
authortobiu
commentsCount0
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 1, 2026, 6:52 PM

[Neural Link] Refactor ComponentService to use toJSON protocol

tobiu
tobiu commented on Jan 1, 2026, 6:26 PM

Update src/ai/client/ComponentService.mjs to rely on the newly implemented toJSON methods for property extraction.

  • serializeComponent should use component.toJSON() for base properties but maintain its own recursion logic to respect maxDepth.
  • getComponentProperty should use toJSON if available.
  • queryComponent should use toJSON for result mapping.