Skip to content

Fix TypeScript validation and stale requirement references - #32

Merged
littletuna4 merged 2 commits into
mainfrom
cursor/fix-linking-validation-61ff
Oct 10, 2026
Merged

littletuna4 merged 2 commits into
mainfrom
cursor/fix-linking-validation-61ff

Conversation

@littletuna4

Copy link
Copy Markdown
Owner

Summary

GitHub CI on main stopped in pnpm run build:tsc. packages/language/test/linking.test.ts did not typecheck: an attribute link is an Attribute at runtime, but the grammar typed the second name only as an idea declaration. Captured document bindings in two tests were also possibly undefined.

reqlan check --skip-gitignored-targets then reported eight missing idea names.

  • The grammar type QualifiedIdeaTarget is an idea declaration or an attribute. CodeLens keeps idea declarations only.
  • Stale links now name declared ideas: export_JSON, export_csv, index_ideas, index_technology, extension_startup_reliability, and context_footprint.

Tests

  • pnpm --filter ./packages/language run test — 42 files, 479 tests passed.
  • pnpm run build:tsc — passed.
  • node packages/cli/bin/cli.js check --skip-gitignored-targets — No issues.

The default check without --skip-gitignored-targets still reports gitignored onboarding media and .cursor paths. CI passes that flag.

Open in Web Open in Cursor 

Attribute links resolve to attribute nodes. The grammar type now includes that target so the project typecheck accepts the link tests.
Check reported missing export, index, startup, and context-centre names. Each link now names an idea that the target file declares.
@littletuna4
littletuna4 merged commit d556dcc into main Oct 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants