Driver for extensive AI code reviews
  • C++ 99.5%
  • Python 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf e8a58f893f
feat(sql): the database helper and the TOTP helper, as subcommands
`crafter-review sql` hands the SQL to the driver's broker named in
REVIEW_GATES_DB; the broker runs it as one transaction, rolled back, and
streams the lines back with the exit code last. The client speaks protocol
3.0 over Crafter.Network's TCP client: cleartext, MD5 and SCRAM-SHA-256,
one Parse per statement, the transaction status as the backstop. The
splitter, the refusals, the table layout and every message work on code
points; connect and socket errors read "[Errno 111] Connection refused"
or "timed out". `crafter-review totp` prints "123456 (valid 17s)".

No sleep after the last connect attempt; TOTP reads the clock once; a
broker token that is no string gets the NO DATABASE answer and the exit
mark.

The goldens add the splitter, the comment stripping, the fingerprint, the
refusals, the first words, the headline, the cell, table, error and notice
layouts, the run's refusals and limits and 40 TOTP codes (2774 checks
now). tests/PgWire runs the helper over a Postgres stand-in and compares
its output with the goldens, line for line, plus the broker's protocol.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 07:20:00 +01:00
implementations feat(sql): the database helper and the TOTP helper, as subcommands 2026-10-31 07:20:00 +01:00
interfaces feat(sql): the database helper and the TOTP helper, as subcommands 2026-10-31 07:20:00 +01:00
lib chore: vendor nlohmann/json 3.12.0, and the licence text 2026-10-31 05:29:18 +01:00
packaging/flatpak build(flatpak): net.catcrafts.CrafterReview on the Crafter.Build base 2026-10-31 06:01:19 +01:00
process feat(core): the data home, the lens texts, and --version naming both 2026-10-31 05:51:37 +01:00
tests feat(sql): the database helper and the TOTP helper, as subcommands 2026-10-31 07:20:00 +01:00
.gitignore build(flatpak): net.catcrafts.CrafterReview on the Crafter.Build base 2026-10-31 06:01:19 +01:00
LICENSE chore: vendor nlohmann/json 3.12.0, and the licence text 2026-10-31 05:29:18 +01:00
project.cpp feat(sql): the database helper and the TOTP helper, as subcommands 2026-10-31 07:20:00 +01:00