Skip to content

v0.1.2 — references, richer find, Prisma lens

Latest

Choose a tag to compare

@segentic-lab segentic-lab released this 06 Jul 18:46

Three feature requests from the dogfooding agent (against a real TS / NestJS / Prisma monorepo) — all shipped. 13 tools now.

Added

  • references — the inverse of find: who uses a symbol (call sites, imports, type references), with the definition labelled. tree-sitter-backed, so a same-named string or comment is never a false positive — the reference workflow that used to force a fallback to grep.
  • Prisma schema lensoverview/find/map now cover schema.prisma: models, enums, composite types, fields, and relations (each field classified scalar / relation / enum). map gains a schemas section.

Changed

  • find locates non-callable symbolsconst/let/var, type aliases, interfaces, enums, not just functions/classes. A codebase's source-of-truth often lives in export const …; now findable, with kind to distinguish.
  • JSON files get an honest "not structurally mapped — read it or grep for a key" note.

Fixed

  • Reference classification compared node object identity (===), which silently fails under web-tree-sitter (nodes are recreated per access) — now compares node.id. Caught while live-testing; every reference was mislabelled otherwise.

143 tests. Full changelog: v0.1.1...v0.1.2