Skip to content

fix(ai-defect): resolve imported JS barrel exports - #799

Merged
duriantaco merged 1 commit into
mainfrom
fix/js-barrel-local-exports
Sep 6, 2026
Merged

fix(ai-defect): resolve imported JS barrel exports#799
duriantaco merged 1 commit into
mainfrom
fix/js-barrel-local-exports

Conversation

@duriantaco

Copy link
Copy Markdown
Owner

Fix #798.

Summary

  • Fix false SKY-L012 reports when TS/JS barrels import symbols
  • Sort out aliases, type only imports, namespaces and CommonJS defaults.

Tests

pytest test/test_js_api_surface.py test/test_js_api_hallucination.py test/test_js_barrel_exports.py

Resolve imported bindings used by local export clauses, preserving aliases and type/value kinds. Reuse CommonJS default-export handling for imported sources and keep uncertain surfaces incomplete.

Add 38 regression cases for barrel exports, CommonJS defaults, missing symbols, cycles, and large consumer sets. Refs #798.
@duriantaco
duriantaco merged commit 2983f8f into main Sep 6, 2026
13 checks passed
@duriantaco
duriantaco deleted the fix/js-barrel-local-exports branch September 6, 2026 02:04
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.

TS/JS export surface is empty for import {} + export {} barrels → mass SKY-L012 false positives

1 participant