`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>
27 lines
644 B
C++
27 lines
644 B
C++
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
export module Crafter.Review;
|
|
|
|
export import :Unicode;
|
|
export import :Json;
|
|
export import :Text;
|
|
export import :Crypto;
|
|
export import :Platform;
|
|
export import :Process;
|
|
export import :Core;
|
|
export import :Schema;
|
|
export import :Tools;
|
|
export import :Plan;
|
|
export import :Artifact;
|
|
export import :Inventory;
|
|
export import :Dispositions;
|
|
export import :State;
|
|
export import :Normalize;
|
|
export import :PgWire;
|
|
export import :Totp;
|
|
export import :Stream;
|
|
export import :Prompt;
|
|
export import :Config;
|
|
export import :Freeze;
|
|
export import :Driver;
|