Frontmatter
| id | 7896 |
| title | Index `ai/` directory in Knowledge Base via JSDoc |
| state | Closed |
| labels | documentationenhancementai |
| assignees | tobiu |
| createdAt | Nov 24, 2025, 1:37 PM |
| updatedAt | Nov 24, 2025, 2:07 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7896 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 24, 2025, 2:02 PM |
Index ai/ directory in Knowledge Base via JSDoc
tobiu cross-referenced by #7887 on Nov 24, 2025, 1:38 PM
tobiu assigned to @tobiu on Nov 24, 2025, 2:00 PM
tobiu closed this issue on Nov 24, 2025, 2:02 PM

tobiu
Nov 24, 2025, 2:07 PM
Input from Gemini:
✦ The implementation is complete and verified.
Changes:
Documentation (
aidirectory):
- Modified
buildScripts/docs/jsdocx.mjsto includeai/**/*.mjs.- Added logic to correctly map the
aidirectory to theNeo.ainamespace in the JSDoc output.- Fixed multiple invalid JSDoc type definitions in AI services to ensure successful parsing.
- Verified that
docs/output/all.jsonnow containsNeo.aientries.Tests (
test/playwrightdirectory):
- Updated
ai/mcp/server/knowledge-base/openapi.yamlto addtestas a valid query type.- Enhanced
DatabaseService.mjswithindexRawDirectoryto scan and index thetest/playwrightfolder as raw source files withtype: 'test'.Verification:
- A Knowledge Base sync was performed using the Code Execution pattern (
sync_knowledge_base.mjs).- Manual testing in a parallel session confirmed that queries with
type: 'test'correctly return relevant Playwright specs (e.g.,test/playwright/unit/button/Base.spec.mjsfor query "button").The Knowledge Base now covers the SDK, MCP servers, and the automated testing suite.
Index
ai/directory in Knowledge Base via JSDocThe
ai/directory contains the SDK, MCP servers, and examples, which are critical parts of the platform. This content should be:The current
DatabaseService.mjsconsumesdocs/output/all.json, which is generated bybuildScripts/docs/jsdocx.mjs. Currently,jsdocx.mjsonly scanssrc/andapps/.Goal
Extend
buildScripts/docs/jsdocx.mjsto parse theai/directory.Tasks
buildScripts/docs/jsdocx.mjsto includeai/**/*.mjsin the input files.neoStructureandprocessPathlogic injsdocx.mjsto correctly categorize and nameainamespace items (e.g.,Neo.ai.services).docs/output/all.jsoncontains the AI classes.DatabaseServicepicks up these new items (it should happen automatically ifall.jsonis populated correctly).