Repository navigation
v0.1.26 — --def-in PATH + grep regex fallback fix
Two agent-critique fixes bundled together.
--def-in PATH for scry ref / scry callers
When many unrelated classes define a method with the same name (think close, onCreate, init), you can now narrow xrefs to a specific callee location:
scry callers close --def-in PerfettoTrace.javaKeeps only refs whose Layer 2 resolution (resolved_to) points at a def whose file path contains PerfettoTrace.java. Refs the build-resolutions sidecar couldn't narrow (resolved_to = None) pass through unfiltered — we'd rather over-include than silently drop the ones cross-file resolution didn't reach.
Wired through CLI, JSON-RPC ({"cmd":"callers","args":{"name":"close","def_in":"PerfettoTrace.java"}}), and MCP.
grep regex fallback when no literals extractable
grep_candidates_for_regex returning Some(empty) made the trigram pre-filter mask the regex out of every candidate file, silently returning 0 hits (e.g. on Trace\.traceBegin.*[Bb]roadcast). Now collapses Some(empty) → None so the search falls back to a full content scan when literal extraction is lossy. Regression test added.
Full changelog
https://github.com/fiveapplesonthetable/scry/blob/master/CHANGELOG.md