Frontmatter
| id | 7897 |
| title | Index `test/playwright/` in Knowledge Base as raw source |
| state | Closed |
| labels | enhancementaitesting |
| assignees | tobiu |
| createdAt | Nov 24, 2025, 1:37 PM |
| updatedAt | Nov 24, 2025, 2:07 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7897 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 24, 2025, 2:02 PM |
Index test/playwright/ in Knowledge Base as raw source
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
test/playwright/in Knowledge Base as raw sourceThe
test/playwright/directory contains the automated testing suite. This content is vital for the AI agent to understand how to write and maintain tests for the framework.Unlike the
ai/directory, this content:test.Goal
Enhance
DatabaseService.mjsto explicitly scan and index thetest/playwrightdirectory.Tasks
ai/mcp/server/knowledge-base/openapi.yamlto includetestas a validtypeenum for thequery_documentstool.ai/mcp/server/knowledge-base/services/DatabaseService.mjsto:indexRawDirectorymethod (or similar) to scan a directory recursively.test/playwrightduring thecreateKnowledgeBaseprocess.type: 'test'to these chunks.node_modulesinsidetest/playwright, so no exclusion is needed for that.