intelExtractExports deduped export names with `if (!arr.includes(x)) arr.push(x)` across ~8 extraction loops (one doubly-nested over an export block) — O(n^2). Accumulate into Sets (add/has/size) and materialize to an array once at return. Set dedups by value and preserves insertion order, so the returned export list and its first-seen order are identical. Adds behavior-lock tests for dedup + order. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 KiB
24 KiB