API reference
Every export of guardlink@2.0.0, generated from the
.d.ts files in the published package.
The declarations are the contract: they are what a consumer’s compiler reads, and they can differ from the TypeScript source in both directions. Nothing on these pages is derived from source.
Entry points
Section titled “Entry points”The package declares 7 subpath exports. Anything you reach by a deeper path is internal and outside the semver contract.
| Import | Declarations | Documented at |
|---|---|---|
guardlink |
dist/index.d.ts |
guardlink |
guardlink/parser |
dist/parser/index.d.ts |
guardlink |
guardlink/init |
dist/init/index.d.ts |
init |
guardlink/report |
dist/report/index.d.ts |
report |
guardlink/diff |
dist/diff/index.d.ts |
diff |
guardlink/analyzer |
dist/analyzer/index.d.ts |
guardlink |
guardlink/mcp |
dist/mcp/index.d.ts |
mcp |
Re-export barrels
Section titled “Re-export barrels”2 of these specifiers declare nothing of their own. Every name below is documented on the guardlink page, and importing it from either path gives you the same value. They have no page of their own because a page per name saying “re-exported from the root” is a click that answers nothing.
guardlink/parser re-exports 46:
ANCHOR_HASH_VERSION, ANNOTATIONS_DIR, ANNOTATION_HASH_VERSION, CROSS_REPO_TAG_PATTERN, GAL_CONVENTION, applyAnnotations, applyReanchor, canEntitlementDemote, canonicalAnchorRecords, canonicalAnnotationRecords, citationMatchesFile, clearAnnotations, commentStyleForExt, computeAnchorHash, computeAnnotationHash, countAnchors, crossRepoTag, entitlementDemotionBlockers, extractCitation, filterByFeature, findAcceptedExposures, findAcceptedWithoutAudit, findAnchorDrift, findDanglingRefs, findImpreciseEntitlements, findInertEntitlements, findOffConventionGalFiles, findUndeclaredActors, findUnmitigatedExposures, galPathFor, getFeatureSummaries, isConventionalGalPath, listFeatures, lostAnchors, migrateAnnotationMode, normalizeName, parseFile, parseLine, parseProject, parseString, readGalBlocks, resolveGalPath, resolveSeverity, sourceFileForGal, stripCommentPrefix, unescapeDescription
guardlink/analyzer re-exports 1:
generateSarif
Installing
Section titled “Installing”npm install guardlink@2.0.0Pinned at npm guardlink@2.0.0. The command-line surface of the same package is at CLI reference, and the tools its MCP server registers are at MCP tool reference.

