Frontmatter
| id | 8271 |
| title | [Neural Link] Refactor ComponentService to use toJSON protocol |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Jan 1, 2026, 6:26 PM |
| updatedAt | Jan 1, 2026, 6:53 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8271 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 1, 2026, 6:52 PM |
Update
src/ai/client/ComponentService.mjsto rely on the newly implementedtoJSONmethods for property extraction.serializeComponentshould usecomponent.toJSON()for base properties but maintain its own recursion logic to respectmaxDepth.getComponentPropertyshould usetoJSONif available.queryComponentshould usetoJSONfor result mapping.