Repository navigation
v0.3.0
(first npm release since 0.2.0: also carries 0.2.2, which was tagged but never published)
Added
-z/--null-data: the unit of judgement becomes a NUL-terminated record instead of a line, so a
record may span several lines. Matching records are printed NUL-terminated too, as ingrep -z; file
names and counts stay on newlines.-nnumbers records,-A/-B/-Ccount records,--chunkcounts
records. Pairs directly withgit log -z,find -print0andxargs -0, removing the twotrcalls
previously needed to flatten a record onto one line (#6).- Other endpoints:
SEMGREP_URLandSEMGREP_MODELpoint semgrep at any TypeSafe-compatible/v1/systemone
(OpenRouter, Vercel AI Gateway, a local server). Based on #4 by @nedzen. - The summary line shows cost: the endpoint's
usage.costwhen reported, else for TypeSafe an estimate marked~.
Changed
- The API key is now
SEMGREP_API_KEY;TYPESAFE_API_KEYstill works when it is not set. The key is sent to
SEMGREP_URLas is; withSEMGREP_URLset and no key, no Authorization header is sent. - Breaking:
SEMGREP_ENVis gone../.envthen~/.config/semgrep/.envare still read. - Network errors name the endpoint's host instead of
typesafe.