Changelog

rf is in early development. Versions before 1.0 may break the command surface or the JSON envelope; branch on meta.contract_version. The crates.io page is authoritative.

0.1.2 — current

Additive changes and defect fixes. Contract version stays 0.1; no exit meaning changes.

  • Result rows of content, find and why have the new key file_bytes_hex. It is null for a UTF-8 file name. Else it holds the exact name bytes in lowercase hex, and file stays the lossy text. Before, two names that differed only in bytes that are not UTF-8 became one row. --paths-stdin takes raw name bytes. --paths-envelope uses a non-null file_bytes_hex before file; a bad hex value gives INVALID_SELECTION, exit 1. A cursor from an earlier rf gives CONFLICT; run the query again.
  • find: the scrub git log stops at 2000 ms or 1 MiB of output. Past either one, rf gives GIT_SCRUB_UNAVAILABLE. Capabilities limits has the new key scrub_log.
  • capabilities and help declare an output_schema, as the other JSON verbs do.
  • --matches on a CRLF file: occurrences see the \r at the line end, as the file-level search does. text still has no \r.
  • A pattern that can match only a newline (foo\n, [\n]) gives BAD_PATTERN, exit 1, as rg does. Before, it gave no files, exit 0.

0.1.1

Defect fixes. Contract version stays 0.1; no exit meaning changes.

  • find reads Git history paths without Git’s quoting. A path with a non-ASCII byte (for example café.rs) is reported by its real name. A scrub commit hash of any length is read.
  • find gives the new warning GIT_SCRUB_UNAVAILABLE when git log fails and the commit that removed a history-only match is unknown.
  • With --matches, a matched file that cannot be read for its occurrences has matches: null and a PARTIAL_RESULT warning, not an empty list. why can now give PARTIAL_RESULT.
  • find --structural: ast-grep output that is not a JSON list gives STRUCTURAL_UNAVAILABLE, not zero results.
  • --paths-stdin and --paths-envelope report an unreadable directory above a selected file with PARTIAL_RESULT, or exit 3 (IO_FAILURE) when no file was read.
  • Undecodable bytes in the value of a declared flag give INVALID_INPUT, not UNKNOWN_FLAG. Exit 1 in both cases.

0.1.0

Breaking: contract version 0.1. Contract version 2 ends, and no old spelling stays as an alias.

  • contract_version is a major.minor string. Before 1.0 a minor bump can break.
  • data is an object. Rows are in data.items; the capabilities contract is data, not data[0]. A failed request can keep its result.
  • Errors gain arg and details. Warnings are { code, message, details }; msg and files are removed, and the files are in details.files. Every declared key is always present.
  • An internal defect is exit 7, not 6. Exit 6 means findings present: doctor with a faulty external tool, or conformance with a failed case. An unreadable named path is exit 3. Signal and closed-pipe exits are declared.
  • --human is removed. Human output is the default, also to a pipe. --json is the only machine selector. The help verb is new.
  • Errors and warnings are in one registry, error_codes. INVALID_TARGET is now NOT_FOUND, INVALID_INPUT or IO_FAILURE. CONFORMANCE_FAIL is now CASE_FAILED. MISSING_ARGUMENT is now MISSING_REQUIRED. USAGE is removed.
  • Output schemas in capabilities are JSON Schema. value_domains and warning_codes are removed.
  • Cursors from older builds return CONFLICT.

0.0.8

  • Opt-in match evidence on content, find, and why: --matches and --max-matches.
  • doctor probes git and ast-grep and reports their health.
  • find reports meta.sources with history and structural provenance.
  • capabilities gains contract_policy, schema_versions, and verb_dependencies.

0.0.7

  • why reports ignore_source: the file, line, and pattern of the ignore rule that hides a file.
  • --fixed-strings, --word, --ignore-case, and --case-sensitive on content, find, and why. Results state the active mode in meta.query.

0.0.6

  • Added rf why <pattern> <file> for a one-file verdict.

0.0.5

  • Contract version 2: seven top-level envelope keys.
  • Exit code 5 for a paged result whose snapshot changed.
  • content and find return at most 100 rows by default and 1000 at most.
  • find reports Git history coverage.
  • Added rf robot-docs guide.

0.0.4

  • Relicensed to Apache-2.0 (from MIT OR Apache-2.0), and added the canonical LICENSE file to the crate.
  • Yanked 0.0.1–0.0.3. Yanking stops new dependency resolution from selecting them; it does not change their license or remove the tarballs.

0.0.3

  • Reader-first README rewrite, published so the crates.io page reflects the real tool rather than the initial stub.

0.0.2

  • Fixed binary matches being dropped on non-UTF-8 lines: the searcher now uses a bytes sink, so a match on a binary line is recovered even when the line is not valid UTF-8. Surfaced by a real-repository benchmark; both content and find share the fixed engine.

0.0.1

  • Initial published stub reserving the crate name.