fix(#967): make verify key-links docs author-strict (from:/to: are file paths; symbols go in via:) (#990)

* fix(#967): make verify key-links docs author-strict (from:/to: are file paths; symbols go in via:)

Closes #967

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore(#967): backfill changeset pr number (990)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-06-10 11:10:40 -04:00
committed by GitHub
parent 921a7cd618
commit 972a41a528
10 changed files with 193 additions and 22 deletions

View File

@@ -453,7 +453,7 @@ function cmdVerifyKeyLinks(cwd: string, planFilePath: string, raw: boolean): voi
const sourceContent = safeReadFile(path.join(cwd, (link['from'] as string) || ''));
if (!sourceContent) {
check['detail'] = 'Source file not found';
check['detail'] = 'Source file not found (from: must be a relative file path; describe components/endpoints in via:)';
} else if (link['pattern']) {
try {
const regex = new RegExp(link['pattern'] as string);