feat(anatomy): R5.3 curated draft in Rust (changeset applier, migration map, stats, seed SQL) and pnpm r5:import-equine
crates/core/src/curation/draft behind the curation feature: strict changeset and references parsing as JSON.parse + Zod, the six ops, rename cascades, the B/C review rule, the R2 shape and integrity gate, migration map, document stats, seed SQL. import-equine writes both folders; --check reproduces legacy-import/ and the R5.3 draft files byte for byte (12 files, 0 differences), --out claims an absent or empty, non-symlink destination and never deletes. Parity: 825 records, 46 changes, stats, 612 leaves 442/141/29, 58 synthetic TypeScript cases (oracle r5/curation-synthetic.json).
This commit is contained in:
1 parent
5e114da2ce
commit
e0f149b28a
20 files changed
+4252
-58
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# `pnpm r5:import-equine --check | --out <dir>`: the anatomical pipeline on the core (R5.2,
|
||||
# R5.3), the `import-equine` binary of crates/core behind its `curation` feature, on the native
|
||||
# toolchain of the development machine (scripts/rust-env.sh). The first run compiles it
|
||||
# (release profile); the next ones start at once. `--check` compares the produced folders with
|
||||
# the committed seed and writes nothing; `--out <dir>` writes `<dir>/legacy-import` and
|
||||
# `<dir>/draft` into an absent or empty folder (a relative path is typed from the folder pnpm
|
||||
# was run in, INIT_CWD). The TypeScript `pnpm import:equine` stays the writer of the seed until
|
||||
# the R5 switch.
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
. scripts/rust-env.sh
|
||||
|
||||
exec cargo run --release --locked -q -p faunosteo-core --features curation --bin import-equine -- "$@"
|
||||
Reference in new issue
Block a user