diff --git a/Cargo.lock b/Cargo.lock index 9e2bf5d..5b97daf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,20 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "serde", + "version_check", + "zerocopy", +] + [[package]] name = "aho-corasick" version = "1.1.5" @@ -11,6 +25,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + [[package]] name = "anstream" version = "1.0.0" @@ -67,6 +87,12 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + [[package]] name = "base64" version = "0.22.1" @@ -79,6 +105,21 @@ version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + [[package]] name = "bitflags" version = "2.13.2" @@ -94,12 +135,24 @@ dependencies = [ "generic-array", ] +[[package]] +name = "borrow-or-share" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c" + [[package]] name = "bumpalo" version = "3.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +[[package]] +name = "bytecount" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e" + [[package]] name = "bytes" version = "1.12.1" @@ -170,7 +223,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] @@ -203,6 +256,15 @@ dependencies = [ "libc", ] +[[package]] +name = "crc32fast" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +dependencies = [ + "cfg-if", +] + [[package]] name = "crypto-common" version = "0.1.7" @@ -213,6 +275,12 @@ dependencies = [ "typenum", ] +[[package]] +name = "data-encoding" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" + [[package]] name = "deranged" version = "0.5.8" @@ -237,7 +305,16 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", +] + +[[package]] +name = "email_address" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449" +dependencies = [ + "serde", ] [[package]] @@ -256,6 +333,17 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "fancy-regex" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d301f5bf187b3c295fce6468d3875037a0bccc5f6b151c63cac2f85babf21912" +dependencies = [ + "bit-set", + "regex-automata", + "regex-syntax", +] + [[package]] name = "fastrand" version = "2.5.0" @@ -268,6 +356,32 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "zlib-rs", +] + +[[package]] +name = "fluent-uri" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc74ac4d8359ae70623506d512209619e5cf8f347124910440dbc221714b328e" +dependencies = [ + "borrow-or-share", + "ref-cast", + "serde", +] + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + [[package]] name = "form_urlencoded" version = "1.2.2" @@ -277,6 +391,16 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fraction" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e246562084dde8ebbcc943b261c406ce4f68e5032ec28029a251a47d6a295500" +dependencies = [ + "num", + "num-bigint", +] + [[package]] name = "futures-channel" version = "0.3.34" @@ -349,6 +473,20 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 5.3.0", + "wasip2", + "wasm-bindgen", +] + [[package]] name = "getrandom" version = "0.4.3" @@ -358,7 +496,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 6.0.0", "rand_core", "wasm-bindgen", ] @@ -368,6 +506,11 @@ name = "hashbrown" version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] [[package]] name = "heck" @@ -617,6 +760,59 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "jsonschema" +version = "0.58.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5761b0ca0a31464030d7c2a98087fde3124ebb5e09b5a112cdb815f03b8ee150" +dependencies = [ + "ahash", + "bytecount", + "data-encoding", + "email_address", + "fancy-regex", + "fraction", + "getrandom 0.3.4", + "itoa", + "jsonschema-regex", + "jsonschema-value", + "num-cmp", + "num-traits", + "percent-encoding", + "referencing", + "regex", + "serde", + "serde_json", + "strum", + "unicode-general-category", + "uuid-simd", +] + +[[package]] +name = "jsonschema-regex" +version = "0.58.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1ffba4378a3d6ee7f1ab65a8ed95c711ccfe4a3870932bdce89d8260abed38a" +dependencies = [ + "regex-syntax", +] + +[[package]] +name = "jsonschema-value" +version = "0.58.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "386121f898b560ff6aaa7974952720e9d9276a201eca31296387c2ed8707855e" +dependencies = [ + "ahash", + "bytecount", + "fraction", + "getrandom 0.3.4", + "num-cmp", + "num-traits", + "serde_json", + "zmij", +] + [[package]] name = "libc" version = "0.2.189" @@ -635,6 +831,15 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + [[package]] name = "log" version = "0.4.34" @@ -653,6 +858,12 @@ version = "2.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" +[[package]] +name = "micromap" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a86d3146ed3995b5913c414f6664344b9617457320782e64f0bb44afd49d74" + [[package]] name = "mio" version = "1.2.3" @@ -664,12 +875,90 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "num" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" +dependencies = [ + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-cmp" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63335b2e2c34fae2fb0aa2cecfd9f0832a1e24b3b32ecec612c3426d46dc8aaa" + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "num-traits", +] + [[package]] name = "num-conv" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -682,6 +971,35 @@ version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +[[package]] +name = "outref" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + [[package]] name = "percent-encoding" version = "2.3.2" @@ -783,6 +1101,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "r-efi" version = "6.0.0" @@ -815,6 +1139,52 @@ dependencies = [ "rand_core", ] +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "ref-cast" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "referencing" +version = "0.58.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cfa1c91745dbca76a406b926918d7c63e15a4525ebab939fec3e015a1fb82b1" +dependencies = [ + "ahash", + "fluent-uri", + "getrandom 0.3.4", + "hashbrown", + "itoa", + "micromap", + "parking_lot", + "percent-encoding", + "serde_json", +] + [[package]] name = "regex" version = "1.13.1" @@ -898,6 +1268,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rust_xlsxwriter" +version = "0.99.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34f2d2cda7223168a14fb86bc7411dbc3379bd7d49749ecc53b91ed98585b6b0" +dependencies = [ + "zip", +] + [[package]] name = "rustc-hash" version = "2.1.3" @@ -964,6 +1343,12 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + [[package]] name = "serde" version = "1.0.229" @@ -991,7 +1376,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] @@ -1037,6 +1422,12 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + [[package]] name = "slab" version = "0.4.12" @@ -1071,12 +1462,44 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "strum" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "subtle" version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "syn" version = "3.0.6" @@ -1105,7 +1528,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] @@ -1138,7 +1561,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] @@ -1210,7 +1633,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] [[package]] @@ -1292,12 +1715,15 @@ name = "tranche-cli" version = "0.8.3" dependencies = [ "clap", + "jsonschema", + "rust_xlsxwriter", "serde", "serde_json", "tempfile", "time", "tokio", "tranche-core", + "zip", ] [[package]] @@ -1321,12 +1747,24 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "typed-path" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" + [[package]] name = "typenum" version = "1.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" +[[package]] +name = "unicode-general-category" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f" + [[package]] name = "unicode-ident" version = "1.0.26" @@ -1363,12 +1801,28 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" +[[package]] +name = "uuid-simd" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b082222b4f6619906941c17eb2297fff4c2fb96cb60164170522942a200bd8" +dependencies = [ + "outref", + "vsimd", +] + [[package]] name = "version_check" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "vsimd" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" + [[package]] name = "want" version = "0.3.1" @@ -1384,6 +1838,15 @@ version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + [[package]] name = "wasm-bindgen" version = "0.2.128" @@ -1426,7 +1889,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn", + "syn 3.0.6", "wasm-bindgen-shared", ] @@ -1556,6 +2019,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + [[package]] name = "writeable" version = "0.6.4" @@ -1581,10 +2050,30 @@ checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", "synstructure", ] +[[package]] +name = "zerocopy" +version = "0.8.59" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.59" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac4f328cf2f05d084e496c3e9c3f33ed0a183656a16e1fcec4d464d8373aec82" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "zerofrom" version = "0.1.8" @@ -1602,7 +2091,7 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", "synstructure", ] @@ -1642,11 +2131,43 @@ checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 3.0.6", ] +[[package]] +name = "zip" +version = "8.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +dependencies = [ + "crc32fast", + "flate2", + "indexmap", + "memchr", + "typed-path", + "zopfli", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + [[package]] name = "zmij" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zopfli" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249" +dependencies = [ + "bumpalo", + "crc32fast", + "log", + "simd-adler32", +] diff --git a/README.md b/README.md index aee5bcc..d6a42d3 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ tranche dupes # compare candidate pairs tranche cluster # build clusters, dupes, tranches.md, summary tranche batches # pack batches, write the park record tranche page # render the workbench +tranche page --export-json --export-xlsx # optionally write standalone exports ``` `tranche refresh` runs those stages in that fixed order and reuses whatever its @@ -119,7 +120,7 @@ tranche dupes [--max-pairs N] # candidate-pair comparisons tranche cluster [--allow-unbound] # offline; no model, no network tranche batches # offline; packs batches from the report tranche info # read the current report's numbers -tranche page # render docs/index.html +tranche page [--export-json] [--export-xlsx] # render, with optional standalone exports tranche refresh [--max-pairs N] [--no-page] [--dry-run] tranche all # judge --resume, dupes, cluster, batches ``` @@ -176,7 +177,9 @@ Everything lands in `out/`, and all of it is tracked in this repository: | `batches.json` | Merge batches bound to the `dupes.json` digest. | | `parked.json` | PRs held out of batches, each with its named unblock path. | | `summary.json` | Counts, token usage, report binding and output digests. | -| `docs/index.html`, `docs/data/workbench.json` | The rendered workbench. | +| `docs/index.html`, `docs/data/workbench.json` | The rendered workbench and its private client payload. | +| `docs/data/report.json` | Optional versioned standalone JSON export; see [the export schema](docs/PAGE_EXPORT.md). | +| `docs/data/report.xlsx` | Optional filterable Excel export. | Review-candidate thresholds: risk ≤ 1.5, finished_form ≥ 1.8, is_fix ≥ 0.6, security_flag < 0.5, current judgment, not a draft, outside a candidate group. A diff --git a/crates/tranche-cli/Cargo.toml b/crates/tranche-cli/Cargo.toml index c5a2206..d2591bb 100644 --- a/crates/tranche-cli/Cargo.toml +++ b/crates/tranche-cli/Cargo.toml @@ -15,9 +15,12 @@ path = "src/main.rs" clap = { version = "4.6.7", features = ["derive"] } serde = { workspace = true } serde_json = { workspace = true } +rust_xlsxwriter = "0.99" tranche-core = { path = "../tranche-core" } time = { version = "0.3", features = ["formatting"] } tokio = { version = "1", features = ["macros", "rt", "time"] } [dev-dependencies] tempfile = { workspace = true } +jsonschema = { version = "0.58.4", default-features = false } +zip = { version = "8.6", default-features = false, features = ["deflate"] } diff --git a/crates/tranche-cli/src/cli.rs b/crates/tranche-cli/src/cli.rs index 050db1d..ed9a58b 100644 --- a/crates/tranche-cli/src/cli.rs +++ b/crates/tranche-cli/src/cli.rs @@ -51,7 +51,7 @@ pub enum Command { /// Serve the read-only MCP stdio surface over the bound report. Mcp, /// Render the workbench from the bound reports. - Page, + Page(Page), /// Capture, inspect and export public PR evidence. #[command(subcommand_required = true, arg_required_else_help = true)] Evidence { @@ -114,6 +114,17 @@ pub struct Cluster { pub allow_unbound: bool, } +#[derive(Debug, Args)] +pub struct Page { + /// Also write the standalone JSON report to docs/data/report.json. + #[arg(long)] + pub export_json: bool, + + /// Also write the filterable Excel workbook to docs/data/report.xlsx. + #[arg(long)] + pub export_xlsx: bool, +} + #[derive(Debug, Args)] pub struct Refresh { /// Cap the number of pair comparisons this pass. diff --git a/crates/tranche-cli/src/commands.rs b/crates/tranche-cli/src/commands.rs index 665d797..0519218 100644 --- a/crates/tranche-cli/src/commands.rs +++ b/crates/tranche-cli/src/commands.rs @@ -58,7 +58,12 @@ pub fn run(cli: &Cli) -> Outcome { &mut |line: &str| println!("{line}"), ), Command::All(args) => run_all(&root, args.limit, args.max_pairs), - Command::Page => crate::workbench::page(&root, &mut |line: &str| println!("{line}")), + Command::Page(args) => crate::workbench::page( + &root, + args.export_json, + args.export_xlsx, + &mut |line: &str| println!("{line}"), + ), Command::Mcp => match crate::mcp::serve(&root) { Ok(()) => Outcome::success(String::new()), Err(error) => Outcome::refusal(error, 1), diff --git a/crates/tranche-cli/src/refresh.rs b/crates/tranche-cli/src/refresh.rs index 27bcec4..47f2ec9 100644 --- a/crates/tranche-cli/src/refresh.rs +++ b/crates/tranche-cli/src/refresh.rs @@ -66,7 +66,7 @@ pub fn refresh( "dupes" => crate::dupes::dupes(root, max_pairs, &mut say).map(|_| ()), "cluster" => outcome_of(cluster_report(root, false, false)), "batches" => outcome_of(build_batches(root, false)), - "page" => outcome_of(crate::workbench::page(root, &mut say)), + "page" => outcome_of(crate::workbench::page(root, false, false, &mut say)), other => Err(format!("unknown step {other}")), }; if let Err(error) = outcome { diff --git a/crates/tranche-cli/src/workbench/export_data.rs b/crates/tranche-cli/src/workbench/export_data.rs new file mode 100644 index 0000000..bb07976 --- /dev/null +++ b/crates/tranche-cli/src/workbench/export_data.rs @@ -0,0 +1,18 @@ +use serde_json::{Value, json}; +use tranche_core::report::REPOSITORY; + +/// Stable standalone export envelope; the workbench payload remains private to the page. +pub(super) fn document(payload: &Value, report_binding: &str) -> Value { + json!({ + "format": "tranche.page-export", + "schema_version": 1, + "repository": REPOSITORY, + "report_binding": report_binding, + "pull_requests": payload["prs"].clone(), + "categories": payload["categories"].clone(), + "groups": payload["groups"].clone(), + "batches_available": payload["batches_available"].clone(), + "batches": payload["batches"].clone(), + "parked": payload["parked"].clone(), + }) +} diff --git a/crates/tranche-cli/src/workbench/json_export.rs b/crates/tranche-cli/src/workbench/json_export.rs new file mode 100644 index 0000000..5000de0 --- /dev/null +++ b/crates/tranche-cli/src/workbench/json_export.rs @@ -0,0 +1,14 @@ +use serde_json::Value; +use tranche_core::report::Root; +use tranche_core::util::{atomic_write, indented_json}; + +/// Write the versioned standalone JSON contract. +pub(super) fn write(root: &Root, payload: &Value, report_binding: &str) -> Result { + let document = super::export_data::document(payload, report_binding); + let mut encoded = indented_json(&document).map_err(|error| error.to_string())?; + encoded.push('\n'); + let path = root.docs_dir().join("data/report.json"); + atomic_write(&path, encoded.as_bytes()) + .map_err(|error| format!("cannot write {}: {error}", path.display()))?; + Ok(encoded.len()) +} diff --git a/crates/tranche-cli/src/workbench/mod.rs b/crates/tranche-cli/src/workbench/mod.rs index 7871d8b..1982340 100644 --- a/crates/tranche-cli/src/workbench/mod.rs +++ b/crates/tranche-cli/src/workbench/mod.rs @@ -9,10 +9,13 @@ //! Eligibility stays in the pipeline's own predicates. This never reclassifies a //! judgment; it arranges what the report already says. +mod export_data; +mod json_export; mod labels; mod page; mod payload; mod writing; +mod xlsx_export; pub use labels::CATEGORY_LABELS; pub use page::page; diff --git a/crates/tranche-cli/src/workbench/page.rs b/crates/tranche-cli/src/workbench/page.rs index 6760cd9..a32cd5d 100644 --- a/crates/tranche-cli/src/workbench/page.rs +++ b/crates/tranche-cli/src/workbench/page.rs @@ -18,7 +18,12 @@ use crate::commands::Outcome; use crate::report_files::read_json; /// Render the workbench from the bound reports. -pub fn page(root: &Root, report: &mut dyn FnMut(&str)) -> Outcome { +pub fn page( + root: &Root, + export_json: bool, + export_xlsx: bool, + report: &mut dyn FnMut(&str), +) -> Outcome { let corpus: Prs = match load_prs(root, REPOSITORY) { Ok(corpus) => corpus, Err(error) => return Outcome::refusal(format!("corpus: {}", error.0), 1), @@ -118,17 +123,40 @@ pub fn page(root: &Root, report: &mut dyn FnMut(&str)) -> Outcome { parked.as_ref(), root, ); - match super::writing::write(root, built) { - Ok((html, json_bytes)) => { - report(&format!( - "wrote {}/index.html ({} KB) and {}/data/workbench.json ({} KB)", - root.docs_dir().display(), - html / 1024, - root.docs_dir().display(), - json_bytes / 1024 - )); - Outcome::success(String::new()) - } - Err(error) => Outcome::refusal(error, 1), + let (html, json_bytes) = match super::writing::write(root, &built) { + Ok(sizes) => sizes, + Err(error) => return Outcome::refusal(error, 1), + }; + + let mut message = format!( + "wrote {}/index.html ({} KB) and {}/data/workbench.json ({} KB)", + root.docs_dir().display(), + html / 1024, + root.docs_dir().display(), + json_bytes / 1024 + ); + if export_json { + let bytes = match super::json_export::write(root, &built, &binding) { + Ok(bytes) => bytes, + Err(error) => return Outcome::refusal(error, 1), + }; + message.push_str(&format!( + " and {}/data/report.json ({} KB)", + root.docs_dir().display(), + bytes / 1024 + )); + } + if export_xlsx { + let bytes = match super::xlsx_export::write(root, &built, &binding) { + Ok(bytes) => bytes, + Err(error) => return Outcome::refusal(error, 1), + }; + message.push_str(&format!( + " and {}/data/report.xlsx ({} KB)", + root.docs_dir().display(), + bytes / 1024 + )); } + report(&message); + Outcome::success(String::new()) } diff --git a/crates/tranche-cli/src/workbench/writing.rs b/crates/tranche-cli/src/workbench/writing.rs index 9a5243b..6146d33 100644 --- a/crates/tranche-cli/src/workbench/writing.rs +++ b/crates/tranche-cli/src/workbench/writing.rs @@ -11,7 +11,7 @@ use tranche_core::report::Root; use super::CATEGORY_LABELS; /// Write the page and its payload, and report the sizes. -pub(super) fn write(root: &Root, payload: Value) -> Result<(usize, usize), String> { +pub(super) fn write(root: &Root, payload: &Value) -> Result<(usize, usize), String> { let template = std::fs::read_to_string(root.template_path()) .map_err(|error| format!("cannot read {}: {error}", root.template_path().display()))?; let options: String = CATEGORY_LABELS diff --git a/crates/tranche-cli/src/workbench/xlsx_export.rs b/crates/tranche-cli/src/workbench/xlsx_export.rs new file mode 100644 index 0000000..23891a4 --- /dev/null +++ b/crates/tranche-cli/src/workbench/xlsx_export.rs @@ -0,0 +1,270 @@ +use rust_xlsxwriter::{DocProperties, ExcelDateTime, Format, Workbook, Worksheet, XlsxError}; +use serde_json::{Value, json}; +use tranche_core::report::Root; +use tranche_core::util::atomic_write; + +const PR_COLUMNS: &[&str] = &[ + "number", + "title", + "author", + "created", + "draft", + "category", + "categories", + "freshness", + "risk", + "security", + "security_priority", + "finished", + "effort", + "is_fix", + "activity.head_moved", + "activity.idle_since", + "activity.idle_basis", + "activity.thread_updated", + "diffstat", + "candidate", + "senior", + "followup", + "related", + "parked", + "batches", + "body", + "body_truncated", +]; + +/// Write a workbook with filterable tables for the report's review surfaces. +pub(super) fn write(root: &Root, payload: &Value, report_binding: &str) -> Result { + let document = super::export_data::document(payload, report_binding); + let path = root.docs_dir().join("data/report.xlsx"); + let mut workbook = Workbook::new(); + // Keep generated workbooks byte-stable for identical report inputs. + let created = ExcelDateTime::from_ymd(2000, 1, 1).map_err(|error| error.to_string())?; + workbook.set_properties(&DocProperties::new().set_creation_datetime(&created)); + write_report(&mut workbook, &document).map_err(|error| error.to_string())?; + write_prs(&mut workbook, &document["pull_requests"]).map_err(|error| error.to_string())?; + write_groups(&mut workbook, &document["groups"]).map_err(|error| error.to_string())?; + write_batches(&mut workbook, &document["batches"]).map_err(|error| error.to_string())?; + write_parked(&mut workbook, &document["parked"]).map_err(|error| error.to_string())?; + let bytes = workbook + .save_to_buffer() + .map_err(|error| format!("cannot build {}: {error}", path.display()))?; + atomic_write(&path, &bytes) + .map_err(|error| format!("cannot write {}: {error}", path.display()))?; + Ok(bytes.len()) +} + +fn write_report(workbook: &mut Workbook, document: &Value) -> Result<(), XlsxError> { + let rows = vec![ + vec![json!("format"), document["format"].clone()], + vec![json!("schema_version"), document["schema_version"].clone()], + vec![json!("repository"), document["repository"].clone()], + vec![json!("report_binding"), document["report_binding"].clone()], + vec![ + json!("batches_available"), + document["batches_available"].clone(), + ], + vec![ + json!("group_meaning"), + document["groups"]["meaning"].clone(), + ], + ]; + write_table(workbook, "Report", &["field", "value"], &rows) +} + +fn write_prs(workbook: &mut Workbook, prs: &Value) -> Result<(), XlsxError> { + let rows: Vec> = prs + .as_array() + .into_iter() + .flatten() + .map(|pr| PR_COLUMNS.iter().map(|key| field(pr, key)).collect()) + .collect(); + write_table(workbook, "PRs", PR_COLUMNS, &rows) +} + +fn write_groups(workbook: &mut Workbook, groups: &Value) -> Result<(), XlsxError> { + let mut rows = Vec::new(); + for (index, group) in groups["confirmed_groups"] + .as_array() + .into_iter() + .flatten() + .enumerate() + { + rows.push(vec![ + json!("confirmed"), + json!(format!("C{:03}", index + 1)), + json!(member_numbers(group)), + json!(""), + ]); + } + for (index, group) in groups["review_groups"] + .as_array() + .into_iter() + .flatten() + .enumerate() + { + rows.push(vec![ + json!("review"), + json!(format!("R{:03}", index + 1)), + json!(member_numbers(&group["members"])), + json!(compact(group)), + ]); + } + for (index, pair) in groups["uncertain_pairs"] + .as_array() + .into_iter() + .flatten() + .enumerate() + { + let members = [pair.get("a"), pair.get("b")] + .into_iter() + .flatten() + .map(cell_text) + .collect::>() + .join(", "); + rows.push(vec![ + json!("uncertain"), + json!(format!("U{:03}", index + 1)), + json!(members), + json!(compact(pair)), + ]); + } + write_table( + workbook, + "Groups", + &["kind", "group", "members", "details"], + &rows, + ) +} + +fn write_batches(workbook: &mut Workbook, batches: &Value) -> Result<(), XlsxError> { + let columns = [ + "id", + "count", + "members", + "security_members", + "average_risk", + "created", + "review_prompt", + ]; + let rows: Vec> = batches + .as_array() + .into_iter() + .flatten() + .map(|batch| columns.iter().map(|key| field(batch, key)).collect()) + .collect(); + write_table(workbook, "Batches", &columns, &rows) +} + +fn write_parked(workbook: &mut Workbook, parked: &Value) -> Result<(), XlsxError> { + let columns = [ + "number", + "title", + "author", + "reasons", + "unblock", + "head_sha", + "url", + "created", + "security_flag", + ]; + let rows: Vec> = parked["members"] + .as_array() + .into_iter() + .flatten() + .map(|member| columns.iter().map(|key| field(member, key)).collect()) + .collect(); + write_table(workbook, "Parked", &columns, &rows) +} + +fn write_table( + workbook: &mut Workbook, + name: &str, + headers: &[&str], + rows: &[Vec], +) -> Result<(), XlsxError> { + let worksheet = workbook.add_worksheet().set_name(name)?; + let header_format = Format::new().set_bold(); + for (column, header) in headers.iter().enumerate() { + let column = column as u16; + worksheet.write_string_with_format(0, column, *header, &header_format)?; + let width = match *header { + "title" => 46.0, + "body" | "review_prompt" | "unblock" | "details" => 60.0, + "members" | "reasons" | "batches" => 28.0, + _ => 18.0, + }; + worksheet.set_column_width(column, width)?; + } + for (index, row) in rows.iter().enumerate() { + for (column, value) in row.iter().enumerate() { + write_cell(worksheet, index as u32 + 1, column as u16, value)?; + } + } + worksheet.autofilter(0, 0, rows.len() as u32, headers.len() as u16 - 1)?; + worksheet.set_freeze_panes(1, 0)?; + Ok(()) +} + +fn write_cell( + worksheet: &mut Worksheet, + row: u32, + column: u16, + value: &Value, +) -> Result<(), XlsxError> { + match value { + Value::Null => Ok(()), + Value::Bool(value) => { + worksheet.write_boolean(row, column, *value)?; + Ok(()) + } + Value::Number(value) => { + worksheet.write_number(row, column, value.as_f64().unwrap_or_default())?; + Ok(()) + } + Value::String(value) => { + worksheet.write_string(row, column, value)?; + Ok(()) + } + Value::Array(_) | Value::Object(_) => { + worksheet.write_string(row, column, cell_text(value))?; + Ok(()) + } + } +} + +fn field(record: &Value, path: &str) -> Value { + path.split('.').fold(record.clone(), |value, key| { + value.get(key).cloned().unwrap_or(Value::Null) + }) +} + +fn member_numbers(value: &Value) -> String { + value + .as_array() + .into_iter() + .flatten() + .map(cell_text) + .collect::>() + .join(", ") +} + +fn cell_text(value: &Value) -> String { + match value { + Value::Null => String::new(), + Value::String(text) => text.clone(), + Value::Array(items) => items.iter().map(cell_text).collect::>().join(", "), + Value::Object(object) => { + if let (Some(id), Some(count)) = (object.get("id"), object.get("count")) { + format!("{} ({})", cell_text(id), cell_text(count)) + } else { + compact(value) + } + } + _ => value.to_string(), + } +} + +fn compact(value: &Value) -> String { + serde_json::to_string(value).unwrap_or_default() +} diff --git a/crates/tranche-cli/tests/rendering_the_workbench.rs b/crates/tranche-cli/tests/rendering_the_workbench.rs index a27ec4b..db9b760 100644 --- a/crates/tranche-cli/tests/rendering_the_workbench.rs +++ b/crates/tranche-cli/tests/rendering_the_workbench.rs @@ -6,6 +6,7 @@ //! stops it. use std::fs; +use std::io::Read; use std::path::Path; use std::process::{Command, Output}; @@ -45,10 +46,15 @@ fn copy(source: &Path, destination: &Path) { } fn run(root: &Path) -> Output { + run_with(root, &[]) +} + +fn run_with(root: &Path, page_args: &[&str]) -> Output { Command::new(env!("CARGO_BIN_EXE_tranche")) .arg("--root") .arg(root) .arg("page") + .args(page_args) .output() .expect("the tranche binary runs") } @@ -99,6 +105,187 @@ fn a_page_renders_from_consistent_inputs() { rows.iter().any(|row| row["title"] == title.as_str()), "the expected PR is in the payload: {title}" ); + assert!( + !root.path().join("docs/data/report.json").exists(), + "standalone JSON stays opt-in" + ); + assert!( + !root.path().join("docs/data/report.xlsx").exists(), + "Excel stays opt-in" + ); +} + +#[test] +fn standalone_json_export_carries_the_bound_report_and_grouping_context() { + let root = root(); + let output = run_with(root.path(), &["--export-json"]); + assert!( + output.status.success(), + "{}", + String::from_utf8_lossy(&output.stderr) + ); + + let path = root.path().join("docs/data/report.json"); + let text = fs::read_to_string(&path).expect("the standalone export reads"); + let export: serde_json::Value = serde_json::from_str(&text).expect("valid JSON"); + let repository = Path::new(env!("CARGO_MANIFEST_DIR")) + .parent() + .and_then(Path::parent) + .expect("nested in the repository"); + let schema_text = fs::read_to_string(repository.join("docs/page-export.schema.json")) + .expect("the published schema reads"); + let schema: serde_json::Value = serde_json::from_str(&schema_text).expect("valid schema JSON"); + let validator = jsonschema::validator_for(&schema).expect("the schema compiles"); + let errors: Vec = validator + .iter_errors(&export) + .map(|error| error.to_string()) + .collect(); + assert!(errors.is_empty(), "schema validation errors: {errors:?}"); + assert_eq!(export["format"], "tranche.page-export"); + assert_eq!(export["schema_version"], 1); + assert_eq!(export["repository"], "omacom/omarchy"); + assert_eq!(export["report_binding"].as_str().unwrap().len(), 64); + let rows = export["pull_requests"].as_array().expect("PR rows"); + assert!(!rows.is_empty(), "the export carries PR-level data"); + let title = a_fixture_title(); + assert!(rows.iter().any(|row| row["title"] == title.as_str())); + assert!( + !export["groups"]["confirmed_groups"] + .as_array() + .expect("confirmed groups") + .is_empty(), + "the export carries grouping information" + ); + assert_eq!(export["batches_available"], true); + assert!( + !export["batches"].as_array().expect("batches").is_empty(), + "the fixture includes batch information" + ); + assert!( + !export["parked"]["members"] + .as_array() + .expect("parked members") + .is_empty(), + "the fixture includes park information" + ); + assert!(!root.path().join("docs/data/report.xlsx").exists()); +} + +#[test] +fn excel_export_is_a_standalone_workbook_and_can_be_selected_alone() { + let root = root(); + let output = run_with(root.path(), &["--export-xlsx"]); + assert!( + output.status.success(), + "{}", + String::from_utf8_lossy(&output.stderr) + ); + let path = root.path().join("docs/data/report.xlsx"); + let bytes = fs::read(&path).expect("the workbook reads"); + assert!( + bytes.starts_with(b"PK\x03\x04"), + "an xlsx file is a ZIP archive" + ); + assert!(bytes.len() > 1_000, "the workbook contains report data"); + + let mut archive = zip::ZipArchive::new(fs::File::open(path).expect("the workbook opens")) + .expect("the workbook ZIP is valid"); + let mut workbook_xml = String::new(); + archive + .by_name("xl/workbook.xml") + .expect("workbook metadata") + .read_to_string(&mut workbook_xml) + .expect("workbook metadata reads"); + for sheet in ["Report", "PRs", "Groups", "Batches", "Parked"] { + assert!( + workbook_xml.contains(&format!("name=\"{sheet}\"")), + "sheet {sheet}" + ); + } + let mut shared_strings = String::new(); + archive + .by_name("xl/sharedStrings.xml") + .expect("workbook strings") + .read_to_string(&mut shared_strings) + .expect("workbook strings read"); + for value in [ + "report_binding", + "number", + "title", + "kind", + "review_prompt", + "unblock", + "B001", + "C001", + "same_change_hold", + ] { + assert!(shared_strings.contains(value), "workbook contains {value}"); + } + for index in 1..=5 { + let mut sheet_xml = String::new(); + archive + .by_name(&format!("xl/worksheets/sheet{index}.xml")) + .expect("worksheet XML") + .read_to_string(&mut sheet_xml) + .expect("worksheet XML reads"); + assert!( + sheet_xml.contains("