@total-recall/scan
v0.1.1
Published
TypeScript/JavaScript scanner for Total.Recall MCP — extracts type registry, coverage gaps, and test inventory as canonical JSONL.
Readme
@total-recall/scan
TypeScript/JavaScript source scanner for Total.Recall MCP.
Emits canonical JSONL files (type-registry.jsonl, coverage-gaps.jsonl, test-inventory.jsonl) consumed by the Total.Recall MCP server. Identical schema to the .NET and Python scanners — see docs/SCANNER_SCHEMA.md.
Install
npm install -g @total-recall/scan
# or
npx @total-recall/scan scan --source-root ./src --namespace my-appUsage
total-recall-ts scan \
--source-root ./src \
--tests ./tests \
--coverage ./coverage/cobertura-coverage.xml \
--namespace my-app \
--output ./.total-recall/dataSchema discriminator
Records carry lang.kind: "typescript" with the following extension fields:
isExported—exportkeyword presentisAmbient—declarekeyword presentisReadonlyClass— every member isreadonlygenerics— type parameter names
Output files
Per namespace under <output>/<namespace>/:
type-registry.jsonl— one record per top-level class / interface / function / enum / type aliascoverage-gaps.jsonl— Cobertura coverage gaps when--coverageprovidedtest-inventory.jsonl— vitest / jest / mocha test discovery when--testsprovidedconfig.json— scanner identity + input paths + timestamp
