Coverage accuracy + external docs corpus (posthog-js dogfood fixes):
- Coverage no longer counts external re-exports as undocumented. Exports whose
declaration lives outside the analyzed program (
source.file === '<external>'or a package-only source) are excluded from the denominator inbuildDriftSpec,scan,coverage, andhealth, and surfaced separately:summary.externalExports/health.completeness.externalin the SDK,coverage.externalin CLI JSON, and a "+N external (not resolvable here)" note in human output. New SDK exports:isExternalExport,EXTERNAL_SOURCE_FILE;ApiSourcegainspackage/version. - New
--docs <patterns...>flag onscanandlint: point prose drift at an arbitrary markdown corpus (glob patterns or directories, e.g. a hosted docs site pulled down locally) instead of the repo-local defaults. Runs for any language when given explicitly; warns when patterns match no files.