feat(framework): add Vue SFC processing for search/trace with source remapping#157
feat(framework): add Vue SFC processing for search/trace with source remapping#157mika76 wants to merge 14 commits intoyoanbernabeu:mainfrom
Conversation
50f104a to
18245bf
Compare
|
Rebased onto latest
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #157 +/- ##
===========================================
+ Coverage 27.16% 47.49% +20.33%
===========================================
Files 32 80 +48
Lines 3711 15173 +11462
===========================================
+ Hits 1008 7207 +6199
- Misses 2620 7216 +4596
- Partials 83 750 +667 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
18245bf to
d8c742f
Compare
|
Follow-up update (latest head: Added in latest pushes
Computed handling (explicit)
Validation run
|
|
Merged the latest origin/main into this branch, resolved the trace/config conflicts, and added MCP refs handler tests for missing symbol, invalid format, and happy-path readers/graph responses. |
|
Added shell completion support for the new refs commands. This wires dynamic --workspace and --project completion for refs readers/writers/graph and adds CLI completion tests using Cobra __complete coverage. |
|
Added a follow-up commit on this branch with two cleanups from local validation:
Also added regression coverage for the Vue compiler resolution path and the plain watch progress behavior. |
Closes #153. Related to #146.
This PR adds Vue
.vuesupport for indexing/search/trace through an extensible framework processor platform, and introduces a complementary property/state usage graph (refs) for Vue/JS/TS workflows.What this PR delivers
1) Framework processor platform + Vue implementation
FrameworkProcessorcontractProcessorRegistryVueProcessorend-to-end using@vue/compiler-sfcvia Node.svelteastrosolid(registered, documented extension points, intentionally non-functional in this pass)
2) Indexing/search/trace integration
.vuefile paths.v-bind(...)support added (synthetic style-binding refs).3) Trace correctness improvements
4) New
refssubsystem (property/state usage)To complement call-graph
trace, this PR adds property/state usage tracing:grepai refs readers <symbol>grepai refs writers <symbol>grepai refs graph <symbol>grepai_refs_readersgrepai_refs_writersgrepai_refs_graphtracevsrefs.Coverage includes Vue/JS/TS usage patterns:
store.uid)store["uid"])toRefs/storeToRefs, alias +.valueread/write)5) Noise reduction for refs
Added filtering to reduce JS/Vue property noise:
Math,Object,console,window,document, etc.)$refs,$slots,$attrs, ...)uid,role, etc.)Config
framework_processingblock:enabledmode(auto|require|off)node_pathvue,svelte,astro,solid)Defaults remain:
autoTests / validation
Added/expanded coverage for:
auto/require/off)Integration scripts:
scripts/test-vue-framework-processing.shscripts/test-vue-framework-matrix.shValidation performed:
go test ./trace ./cli ./mcppassingNotes
traceremains call-graph oriented.refsis additive for property/state read/write relationships.I used Codex (GPT-5) to help with implementation, test expansion, and cleanup.