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,findandwhyhave the new keyfile_bytes_hex. It isnullfor a UTF-8 file name. Else it holds the exact name bytes in lowercase hex, andfilestays the lossy text. Before, two names that differed only in bytes that are not UTF-8 became one row.--paths-stdintakes raw name bytes.--paths-envelopeuses a non-nullfile_bytes_hexbeforefile; a bad hex value givesINVALID_SELECTION, exit 1. A cursor from an earlier rf givesCONFLICT; run the query again. find: the scrubgit logstops at 2000 ms or 1 MiB of output. Past either one, rf givesGIT_SCRUB_UNAVAILABLE. Capabilitieslimitshas the new keyscrub_log.capabilitiesandhelpdeclare anoutput_schema, as the other JSON verbs do.--matcheson a CRLF file: occurrences see the\rat the line end, as the file-level search does.textstill has no\r.- A pattern that can match only a newline (
foo\n,[\n]) givesBAD_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.
findreads Git history paths without Git’s quoting. A path with a non-ASCII byte (for examplecafé.rs) is reported by its real name. A scrub commit hash of any length is read.findgives the new warningGIT_SCRUB_UNAVAILABLEwhengit logfails and the commit that removed a history-only match is unknown.- With
--matches, a matched file that cannot be read for its occurrences hasmatches: nulland aPARTIAL_RESULTwarning, not an empty list.whycan now givePARTIAL_RESULT. find --structural:ast-grepoutput that is not a JSON list givesSTRUCTURAL_UNAVAILABLE, not zero results.--paths-stdinand--paths-envelopereport an unreadable directory above a selected file withPARTIAL_RESULT, or exit 3 (IO_FAILURE) when no file was read.- Undecodable bytes in the value of a declared flag give
INVALID_INPUT, notUNKNOWN_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_versionis amajor.minorstring. Before1.0a minor bump can break.datais an object. Rows are indata.items; the capabilities contract isdata, notdata[0]. A failed request can keep its result.- Errors gain
arganddetails. Warnings are{ code, message, details };msgandfilesare removed, and the files are indetails.files. Every declared key is always present. - An internal defect is exit 7, not 6. Exit 6 means findings present:
doctorwith a faulty external tool, orconformancewith a failed case. An unreadable named path is exit 3. Signal and closed-pipe exits are declared. --humanis removed. Human output is the default, also to a pipe.--jsonis the only machine selector. Thehelpverb is new.- Errors and warnings are in one registry,
error_codes.INVALID_TARGETis nowNOT_FOUND,INVALID_INPUTorIO_FAILURE.CONFORMANCE_FAILis nowCASE_FAILED.MISSING_ARGUMENTis nowMISSING_REQUIRED.USAGEis removed. - Output schemas in
capabilitiesare JSON Schema.value_domainsandwarning_codesare removed. - Cursors from older builds return
CONFLICT.
0.0.8
- Opt-in match evidence on
content,find, andwhy:--matchesand--max-matches. doctorprobesgitandast-grepand reports their health.findreportsmeta.sourceswith history and structural provenance.capabilitiesgainscontract_policy,schema_versions, andverb_dependencies.
0.0.7
whyreportsignore_source: the file, line, and pattern of the ignore rule that hides a file.--fixed-strings,--word,--ignore-case, and--case-sensitiveoncontent,find, andwhy. Results state the active mode inmeta.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.
contentandfindreturn at most 100 rows by default and 1000 at most.findreports 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 canonicalLICENSEfile 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
contentandfindshare the fixed engine.
0.0.1
- Initial published stub reserving the crate name.