Fix Claude hook config and add JSX component CALLS edges#154
Fix Claude hook config and add JSX component CALLS edges#154GrimoireScribe wants to merge 1 commit intotirth8205:mainfrom
Conversation
tirth8205
left a comment
There was a problem hiding this comment.
This bundles two distinct features: (a) hook schema fixes and (b) JSX/TSX component CALLS edges.
The hook fixes overlap with PR #141 and #152 (both already merged/in progress). The JSX parsing piece is unique and valuable — good test coverage and +285 lines to parser.py.
Could you rebase on latest main and consider splitting the JSX CALLS feature into its own PR? The hook fixes are being handled separately. The JSX work stands on its own merit and we'd be happy to merge it.
495c97a to
4220626
Compare
|
Thanks — I rebased the branch on latest I removed the overlapping hook/config changes and kept only the JSX component |
|
Thanks — I rebased the branch on latest I removed the overlapping hook/config changes and kept only the JSX component I also verified it locally against a real React component ( |
Summary
This PR does two things:
PreCommithook generationPostToolUsetocode-review-graph update --skip-flowsCALLSedges for JSX component invocations<MarkdownMsg /><UI.MarkdownMsg /><UI.Messages.MarkdownMsg />query_graph callers_of, and impact-radius testsWhy
React codebases often invoke components through JSX instead of normal function-call syntax. Before this PR, those usages produced no
CALLSedges, which meant:callers_ofcould miss component call sites entirelySeparately, Claude Code hook generation was out of sync with valid hook events, and Windows installs could fail on Unicode content due to default-encoding file writes.
Behavioral notes
Current JSX support is intentionally scoped:
<div>are ignoredThis improves React caller tracing a lot without trying to solve full React semantic analysis in one PR.
Verification
Ran: