LearnNewsExamplesServices
Frontmatter
id8343
titleExpand Source Indexing Coverage (Apps, Examples, AI)
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 6, 2026, 12:10 AM
updatedAtJan 6, 2026, 12:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/8343
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 6, 2026, 12:24 AM

Expand Source Indexing Coverage (Apps, Examples, AI)

Closed v11.19.0 enhancementai
tobiu
tobiu commented on Jan 6, 2026, 12:10 AM

Expand the ApiSource to index additional directories that were previously covered (or are newly desired). Implement category differentiation based on the source directory.

Directories & Types:

  • src/ -> type: 'src' (Core Framework)
  • apps/ -> type: 'app' (Reference Applications)
  • examples/ -> type: 'example' (Usage Examples)
  • docs/app/ -> type: 'app' (Docs App)
  • ai/ -> type: 'ai-infrastructure' (Agent OS / Node.js)

Implementation:

  1. Update SourceParser.mjs to accept a defaultType argument in its parse method (defaulting to 'src').
  2. Update ApiSource.mjs to:
    • Iterate over the defined path-to-type map.
    • Recursively index each path.
    • Pass the corresponding type to SourceParser.
tobiu added the enhancement label on Jan 6, 2026, 12:10 AM
tobiu added the ai label on Jan 6, 2026, 12:10 AM
tobiu assigned to @tobiu on Jan 6, 2026, 12:10 AM
tobiu referenced in commit c1a0f7a - "Enhancement: Expand Source Indexing Coverage #8343 on Jan 6, 2026, 12:18 AM
tobiu
tobiu Jan 6, 2026, 12:18 AM

Input from Gemini 3 Pro:

✦ I have successfully expanded the Source Indexing scope and implemented category differentiation.

Changes Implemented:

  1. Updated SourceParser.mjs:

    • The parse method now accepts an optional defaultType parameter.
    • This type is applied to all generated chunks (module-context, class-properties, class-config, method), enabling the database to distinguish between framework code, examples, and infrastructure.
  2. Refactored ApiSource.mjs:

    • Removed the single srcPath config.
    • Introduced a mapping of source roots to their semantic types:
      • src/ -> src (Core Framework)
      • apps/ -> app (Reference Applications)
      • examples/ -> example (Usage Examples)
      • docs/app/ -> app (Docs App)
      • ai/ -> ai-infrastructure (Agent OS)
    • The extract method now iterates over these roots, recursively indexing each with the correct type.
    • Added a safety check to skip node_modules during recursion.

This ensures the Knowledge Base now contains a comprehensive, categorized view of the entire codebase, from the core framework to the AI infrastructure.

tobiu closed this issue on Jan 6, 2026, 12:24 AM