Skip to content

EnhancedComponentMetadataEntry

type EnhancedComponentMetadataEntry =
| AnalyzedComponentEntry
| SkippedComponentEntry
| FailedComponentEntry;

Defined in: packages/analyzer/src/types.ts:565

The canonical component entry — discriminated on kind.

  • 'analyzed' — full pipeline ran, AST + enhancements + graph all present.
  • 'skipped' — intentionally not analyzed (anonymous class, filtered selector, etc.). Carries only name + reason.
  • 'failed' — the component-analysis catch site fired; we know the name but no payload could be produced.

Consumers must narrow on kind before reading analysis-related fields.

Note on referential integrity: importsFrom is serialized; importedBy is computed at load time in the MCP server from the reverse index.